]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
32ddf007 | 4 | # Generated by GNU Autoconf 2.59 for wxWindows 2.5.1. |
e6cc62c6 VS |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
32ddf007 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
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 | ## --------------------- ## | |
fe0895cf | 14 | |
e6cc62c6 VS |
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 | |
32ddf007 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
fe0895cf | 26 | |
e6cc62c6 | 27 | # Support unset when possible. |
32ddf007 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
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 | |
32ddf007 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
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 | |
fe0895cf | 60 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
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'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 88 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 119 | |
e6cc62c6 VS |
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 | |
fe0895cf | 158 | |
e6cc62c6 VS |
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 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
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 | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
32ddf007 | 224 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
225 | as_mkdir_p=false |
226 | fi | |
fe0895cf | 227 | |
e6cc62c6 | 228 | as_executable_p="test -f" |
fe0895cf | 229 | |
e6cc62c6 | 230 | # Sed expression to map a string onto a valid CPP name. |
32ddf007 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf | 232 | |
e6cc62c6 | 233 | # Sed expression to map a string onto a valid variable name. |
32ddf007 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf VS |
235 | |
236 | ||
e6cc62c6 VS |
237 | # IFS |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
fe0895cf | 242 | |
e6cc62c6 VS |
243 | # CDPATH. |
244 | $as_unset CDPATH | |
fe0895cf VS |
245 | |
246 | ||
e6cc62c6 VS |
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` | |
fe0895cf | 251 | |
e6cc62c6 | 252 | exec 6>&1 |
fe0895cf | 253 | |
a0b9e27f | 254 | # |
e6cc62c6 VS |
255 | # Initializations. |
256 | # | |
a0b9e27f | 257 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
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. | |
271 | PACKAGE_NAME='wxWindows' | |
272 | PACKAGE_TARNAME='wxwindows' | |
e46d2a18 VS |
273 | PACKAGE_VERSION='2.5.1' |
274 | PACKAGE_STRING='wxWindows 2.5.1' | |
e6cc62c6 VS |
275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' |
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 | ||
672abd7a | 315 | ac_subdirs_all="$ac_subdirs_all src/expat" |
243f8ae5 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 317 | ac_subst_files='' |
10f2d63a VZ |
318 | |
319 | # Initialize some variables set by options. | |
e6cc62c6 VS |
320 | ac_init_help= |
321 | ac_init_version=false | |
10f2d63a VZ |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
e6cc62c6 | 324 | cache_file=/dev/null |
10f2d63a | 325 | exec_prefix=NONE |
10f2d63a | 326 | no_create= |
10f2d63a VZ |
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= | |
10f2d63a VZ |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
e6cc62c6 VS |
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. | |
10f2d63a VZ |
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 | ||
10f2d63a VZ |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
10f2d63a VZ |
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 | ||
e6cc62c6 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
e6cc62c6 | 371 | case $ac_option in |
10f2d63a VZ |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 376 | bindir=$ac_optarg ;; |
10f2d63a VZ |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 379 | ac_prev=build_alias ;; |
10f2d63a | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 381 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 VS |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
10f2d63a VZ |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
e6cc62c6 | 397 | datadir=$ac_optarg ;; |
10f2d63a VZ |
398 | |
399 | -disable-* | --disable-*) | |
e6cc62c6 | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 401 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
407 | |
408 | -enable-* | --enable-*) | |
e6cc62c6 | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 410 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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"`;; | |
10f2d63a VZ |
417 | *) ac_optarg=yes ;; |
418 | esac | |
e6cc62c6 | 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 428 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
e6cc62c6 VS |
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 ;; | |
10f2d63a VZ |
440 | |
441 | -host | --host | --hos | --ho) | |
e6cc62c6 | 442 | ac_prev=host_alias ;; |
10f2d63a | 443 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 444 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 451 | includedir=$ac_optarg ;; |
10f2d63a VZ |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 456 | infodir=$ac_optarg ;; |
10f2d63a VZ |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 461 | libdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 468 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 477 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 482 | mandir=$ac_optarg ;; |
10f2d63a VZ |
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 \ | |
e6cc62c6 | 489 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 503 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 508 | prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 515 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 522 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 539 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 549 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 560 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 565 | site=$ac_optarg ;; |
10f2d63a VZ |
566 | |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 570 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 577 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 580 | ac_prev=target_alias ;; |
10f2d63a | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 582 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
e6cc62c6 VS |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
10f2d63a VZ |
589 | |
590 | -with-* | --with-*) | |
e6cc62c6 | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 592 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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; }; } | |
10f2d63a | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
599 | *) ac_optarg=yes ;; |
600 | esac | |
e6cc62c6 | 601 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
602 | |
603 | -without-* | --without-*) | |
e6cc62c6 | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 605 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 621 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 628 | x_libraries=$ac_optarg ;; |
10f2d63a | 629 | |
e6cc62c6 VS |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
633 | ;; |
634 | ||
e6cc62c6 VS |
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 | ||
10f2d63a | 645 | *) |
e6cc62c6 VS |
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} | |
10f2d63a VZ |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
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; }; } | |
a0b9e27f | 660 | fi |
a0b9e27f | 661 | |
e6cc62c6 VS |
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 | |
8284b0c5 | 672 | |
e6cc62c6 VS |
673 | # Be sure to have absolute paths. |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
32ddf007 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
10f2d63a | 676 | do |
e6cc62c6 VS |
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; }; };; | |
10f2d63a VZ |
682 | esac |
683 | done | |
684 | ||
e6cc62c6 VS |
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 | |
247f5006 | 702 | |
e6cc62c6 VS |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 707 | |
10f2d63a VZ |
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. | |
e6cc62c6 VS |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
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'` | |
10f2d63a VZ |
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 | |
e6cc62c6 VS |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
735 | { (exit 1); exit 1; }; } | |
10f2d63a | 736 | else |
e6cc62c6 VS |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
738 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
739 | fi |
740 | fi | |
e6cc62c6 VS |
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 | |
328a083c | 789 | |
e6cc62c6 VS |
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 | |
e46d2a18 | 797 | \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems. |
10f2d63a | 798 | |
e6cc62c6 | 799 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 800 | |
e6cc62c6 VS |
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. | |
8284b0c5 | 803 | |
e6cc62c6 VS |
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 | |
32ddf007 | 822 | [$ac_default_prefix] |
e6cc62c6 | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
32ddf007 | 824 | [PREFIX] |
e6cc62c6 VS |
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 | |
e46d2a18 | 863 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; |
e6cc62c6 VS |
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 | |
f93ca9fd VS |
871 | --enable-monolithic build wxWindows as single library |
872 | --enable-plugins build parts of wxWindows as loadable components | |
e6cc62c6 VS |
873 | --enable-universal use wxWindows GUI controls instead of native ones |
874 | --enable-nanox use NanoX | |
875 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
0f87e84c | 876 | --enable-gpe use GNOME PDA Environment features if possible |
e6cc62c6 | 877 | --enable-shared create shared library code |
e6cc62c6 VS |
878 | --enable-optimise create optimised code |
879 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 880 | --enable-stl use STL for containers |
e6cc62c6 VS |
881 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
882 | --enable-debug_info create code with debugging information | |
883 | --enable-debug_gdb create code with extra GDB debugging information | |
884 | --enable-debug_cntxt use wxDebugContext | |
885 | --enable-mem_tracing create code with memory tracing | |
886 | --enable-profile create code with profiling information | |
887 | --enable-no_rtti create code without RTTI information | |
888 | --enable-no_exceptions create code without C++ exceptions handling | |
889 | --enable-permissive compile code disregarding strict ANSI | |
890 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
891 | --enable-compat22 enable wxWindows 2.2 compatibility |
892 | --disable-compat24 disable wxWindows 2.4 compatibility | |
893 | --enable-rpath=DIR output the rpath flag from wx-config | |
894 | --enable-intl use internationalization system | |
895 | --enable-config use wxConfig (and derived) classes | |
896 | --enable-protocols use wxProtocol and derived classes | |
897 | --enable-ftp use wxFTP (requires wxProtocol | |
898 | --enable-http use wxHTTP (requires wxProtocol | |
899 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
900 | --enable-sockets use socket/network classes | |
e46d2a18 | 901 | --enable-ole use OLE classes (Win32 only) |
e6cc62c6 VS |
902 | --enable-dataobj use data object classes |
903 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e46d2a18 VS |
904 | --enable-apple_ieee use the Apple IEEE codec |
905 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
e6cc62c6 VS |
906 | --enable-cmdline use wxCmdLineParser class |
907 | --enable-datetime use wxDateTime class | |
e6cc62c6 | 908 | --enable-dialupman use dialup network classes |
e6cc62c6 VS |
909 | --enable-dynlib use wxLibrary class for DLL loading |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
e46d2a18 VS |
911 | --enable-exceptions build exception-safe library |
912 | --enable-ffile use wxFFile class | |
913 | --enable-file use wxFile class | |
914 | --enable-filesystem use virtual file systems classes | |
915 | --enable-fontmap use font encodings conversion classes | |
916 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
917 | --enable-fs_zip use virtual ZIP filesystems | |
e6cc62c6 VS |
918 | --enable-geometry use geometry class |
919 | --enable-log use logging system | |
e46d2a18 VS |
920 | --enable-longlong use wxLongLong class |
921 | --enable-mimetype use wxMimeTypesManager | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
923 | --enable-snglinst use wxSingleInstanceChecker class | |
e6cc62c6 | 924 | --enable-streams use wxStream etc classes |
e46d2a18 VS |
925 | --enable-std_iostreams use standard C++ stream classes |
926 | --enable-stopwatch use wxStopWatch class | |
927 | --enable-sysoptions use wxSystemOptions | |
e6cc62c6 VS |
928 | --enable-textbuf use wxTextBuffer class |
929 | --enable-textfile use wxTextFile class | |
e46d2a18 | 930 | --enable-timer use wxTimer class |
e6cc62c6 | 931 | --enable-unicode compile wxString with Unicode support |
002ed9af | 932 | --enable-sound use wxSound class |
e6cc62c6 | 933 | --enable-wxprintfv use wxWindows implementation of vprintf() |
e6cc62c6 | 934 | --enable-zipstream use wxZipInputStream |
7015ef3a | 935 | --enable-gzstream use wxGzipInputStream |
e6cc62c6 VS |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
950 | --enable-loggui use standard GUI logger | |
951 | --enable-logwin use wxLogWindow | |
952 | --enable-logdialog use wxLogDialog | |
953 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
954 | --enable-prologio not available; see contrib | |
955 | --enable-resources not available; see contrib | |
956 | --enable-clipboard use wxClipboard class | |
957 | --enable-dnd use Drag'n'Drop classes | |
958 | --enable-metafile use win32 metafiles | |
959 | --enable-controls use all usual controls | |
960 | --enable-accel use accelerators | |
961 | --enable-button use wxButton class | |
962 | --enable-bmpbutton use wxBitmapButton class | |
963 | --enable-calendar use wxCalendarCtrl class | |
964 | --enable-caret use wxCaret class | |
965 | --enable-checkbox use wxCheckBox class | |
966 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
967 | --enable-choice use wxChoice class | |
968 | --enable-combobox use wxComboBox class | |
969 | --enable-display use wxDisplay class | |
970 | --enable-gauge use wxGauge class | |
971 | --enable-grid use wxGrid class | |
972 | --enable-imaglist use wxImageList class | |
0e012a93 | 973 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
974 | --enable-listbox use wxListBox class |
975 | --enable-listctrl use wxListCtrl class | |
976 | --enable-notebook use wxNotebook class | |
977 | --enable-radiobox use wxRadioBox class | |
978 | --enable-radiobtn use wxRadioButton class | |
979 | --enable-sash use wxSashWindow class | |
980 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
981 | --enable-slider use wxSlider class | |
982 | --enable-spinbtn use wxSpinButton class | |
983 | --enable-spinctrl use wxSpinCtrl class | |
984 | --enable-splitter use wxSplitterWindow class | |
985 | --enable-statbmp use wxStaticBitmap class | |
986 | --enable-statbox use wxStaticBox class | |
987 | --enable-statline use wxStaticLine class | |
988 | --enable-stattext use wxStaticText class | |
989 | --enable-statusbar use wxStatusBar class | |
990 | --enable-tabdialog use wxTabControl class | |
991 | --enable-textctrl use wxTextCtrl class | |
992 | --enable-togglebtn use wxToggleButton class | |
993 | --enable-toolbar use wxToolBar class | |
994 | --enable-tbarnative use native wxToolBar class | |
995 | --enable-tbarsmpl use wxToolBarSimple class | |
996 | --enable-treectrl use wxTreeCtrl class | |
997 | --enable-tipwindow use wxTipWindow class | |
998 | --enable-popupwin use wxPopUpWindow class | |
999 | --enable-commondlg use all common dialogs | |
1000 | --enable-choicedlg use wxChoiceDialog | |
1001 | --enable-coldlg use wxColourDialog | |
1002 | --enable-filedlg use wxFileDialog | |
1003 | --enable-finddlg use wxFindReplaceDialog | |
1004 | --enable-fontdlg use wxFontDialog | |
1005 | --enable-dirdlg use wxDirDialog | |
1006 | --enable-msgdlg use wxMessageDialog | |
1007 | --enable-numberdlg use wxNumberEntryDialog | |
1008 | --enable-splash use wxSplashScreen | |
1009 | --enable-textdlg use wxTextDialog | |
1010 | --enable-tipdlg use startup tips | |
1011 | --enable-progressdlg use wxProgressDialog | |
1012 | --enable-wizarddlg use wxWizard | |
1013 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1014 | --enable-miniframe use wxMiniFrame class | |
1015 | --enable-tooltips use wxToolTip class | |
1016 | --enable-splines use spline drawing code | |
1017 | --enable-validators use wxValidator and derived classes | |
1018 | --enable-busyinfo use wxBusyInfo | |
1019 | --enable-joystick use wxJoystick (Linux only) | |
1020 | --enable-metafiles use wxMetaFile (Windows only) | |
1021 | --enable-dragimage use wxDragImage | |
1022 | --enable-accessibility enable accessibility support | |
1023 | --enable-palette use wxPalette class | |
1024 | --enable-image use wxImage class | |
1025 | --enable-gif use gif images (GIF file format) | |
1026 | --enable-pcx use pcx images (PCX file format) | |
1027 | --enable-iff use iff images (IFF file format) | |
1028 | --enable-pnm use pnm images (PNM file format) | |
1029 | --enable-xpm use xpm images (XPM file format) | |
1030 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1031 | --enable-official_build official build of wxWindows (win32 DLL only) |
1032 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1033 | --disable-largefile omit support for large files |
1034 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1035 | --disable-gtktest Do not try to compile and run a test GTK program | |
f93ca9fd | 1036 | --disable-sdltest Do not try to compile and run a test SDL program |
45842500 | 1037 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1038 | |
1039 | Optional Packages: | |
1040 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1041 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1042 | --with-gtk use GTK+ | |
1043 | --with-motif use Motif/Lesstif | |
1044 | --with-mac use Mac OS X | |
1045 | --with-cocoa use Cocoa | |
1046 | --with-wine use Wine | |
1047 | --with-msw use MS-Windows | |
1048 | --with-pm use OS/2 Presentation Manager | |
1049 | --with-mgl use SciTech MGL | |
1050 | --with-microwin use MicroWindows | |
1051 | --with-x11 use X11 | |
1052 | --with-libpng use libpng (PNG image format) | |
1053 | --with-libjpeg use libjpeg (JPEG file format) | |
1054 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1055 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1056 | --with-libmspack use libmspack (CHM help files loading) |
f93ca9fd | 1057 | --with-sdl use SDL for audio on Unix |
e6cc62c6 VS |
1058 | --with-opengl use OpenGL (or Mesa) |
1059 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1060 | --with-regex enable support for wxRegEx class | |
1061 | --with-zlib use zlib for LZW compression | |
1062 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1063 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1064 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1065 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1066 | --with-x use the X Window System | |
1067 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
f93ca9fd VS |
1068 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
1069 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
e6cc62c6 VS |
1070 | |
1071 | Some influential environment variables: | |
1072 | CC C compiler command | |
1073 | CFLAGS C compiler flags | |
1074 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1075 | nonstandard directory <lib dir> | |
1076 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1077 | headers in a nonstandard directory <include dir> | |
1078 | CPP C preprocessor | |
1079 | CXX C++ compiler command | |
1080 | CXXFLAGS C++ compiler flags | |
1081 | CXXCPP C++ preprocessor | |
1082 | ||
1083 | Use these variables to override the choices made by `configure' or to help | |
1084 | it to find libraries and programs with nonstandard names/locations. | |
1085 | ||
1086 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1087 | _ACEOF | |
1088 | fi | |
1089 | ||
1090 | if test "$ac_init_help" = "recursive"; then | |
1091 | # If there are subdirs, report their specific --help. | |
1092 | ac_popdir=`pwd` | |
1093 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1094 | test -d $ac_dir || continue | |
1095 | ac_builddir=. | |
1096 | ||
1097 | if test "$ac_dir" != .; then | |
1098 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1099 | # A "../" for each directory in $ac_dir_suffix. | |
1100 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1101 | else | |
1102 | ac_dir_suffix= ac_top_builddir= | |
1103 | fi | |
1104 | ||
1105 | case $srcdir in | |
1106 | .) # No --srcdir option. We are building in place. | |
1107 | ac_srcdir=. | |
1108 | if test -z "$ac_top_builddir"; then | |
1109 | ac_top_srcdir=. | |
1110 | else | |
1111 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1112 | fi ;; | |
1113 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1114 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1115 | ac_top_srcdir=$srcdir ;; | |
1116 | *) # Relative path. | |
1117 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1118 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1119 | esac | |
32ddf007 VS |
1120 | |
1121 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1122 | # the directories may not exist. | |
1123 | case `pwd` in | |
1124 | .) ac_abs_builddir="$ac_dir";; | |
1125 | *) | |
1126 | case "$ac_dir" in | |
1127 | .) ac_abs_builddir=`pwd`;; | |
1128 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1129 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1130 | esac;; | |
1131 | esac | |
1132 | case $ac_abs_builddir in | |
1133 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1134 | *) | |
1135 | case ${ac_top_builddir}. in | |
1136 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1138 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1139 | esac;; | |
1140 | esac | |
1141 | case $ac_abs_builddir in | |
1142 | .) ac_abs_srcdir=$ac_srcdir;; | |
1143 | *) | |
1144 | case $ac_srcdir in | |
1145 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1147 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1152 | *) | |
1153 | case $ac_top_srcdir in | |
1154 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1156 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1157 | esac;; | |
1158 | esac | |
e6cc62c6 VS |
1159 | |
1160 | cd $ac_dir | |
1161 | # Check for guested configure; otherwise get Cygnus style configure. | |
1162 | if test -f $ac_srcdir/configure.gnu; then | |
1163 | echo | |
1164 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1165 | elif test -f $ac_srcdir/configure; then | |
1166 | echo | |
1167 | $SHELL $ac_srcdir/configure --help=recursive | |
1168 | elif test -f $ac_srcdir/configure.ac || | |
32ddf007 | 1169 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1170 | echo |
1171 | $ac_configure --help | |
1172 | else | |
1173 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1174 | fi | |
e1293dcf | 1175 | cd "$ac_popdir" |
e6cc62c6 VS |
1176 | done |
1177 | fi | |
8284b0c5 | 1178 | |
e6cc62c6 VS |
1179 | test -n "$ac_init_help" && exit 0 |
1180 | if $ac_init_version; then | |
1181 | cat <<\_ACEOF | |
e46d2a18 | 1182 | wxWindows configure 2.5.1 |
32ddf007 | 1183 | generated by GNU Autoconf 2.59 |
10f2d63a | 1184 | |
32ddf007 | 1185 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
1186 | This configure script is free software; the Free Software Foundation |
1187 | gives unlimited permission to copy, distribute and modify it. | |
1188 | _ACEOF | |
1189 | exit 0 | |
7c66a493 | 1190 | fi |
e6cc62c6 VS |
1191 | exec 5>config.log |
1192 | cat >&5 <<_ACEOF | |
1193 | This file contains any messages produced by compilers while | |
1194 | running configure, to aid debugging if configure makes a mistake. | |
1195 | ||
e46d2a18 | 1196 | It was created by wxWindows $as_me 2.5.1, which was |
32ddf007 | 1197 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
1198 | |
1199 | $ $0 $@ | |
1200 | ||
1201 | _ACEOF | |
1202 | { | |
1203 | cat <<_ASUNAME | |
1204 | ## --------- ## | |
1205 | ## Platform. ## | |
1206 | ## --------- ## | |
1207 | ||
1208 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1209 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1210 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1211 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1212 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1213 | ||
1214 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1215 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1216 | ||
1217 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1218 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1219 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1220 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1221 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1222 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1223 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1224 | ||
1225 | _ASUNAME | |
1226 | ||
1227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1228 | for as_dir in $PATH | |
1229 | do | |
1230 | IFS=$as_save_IFS | |
1231 | test -z "$as_dir" && as_dir=. | |
1232 | echo "PATH: $as_dir" | |
1233 | done | |
1234 | ||
1235 | } >&5 | |
1236 | ||
1237 | cat >&5 <<_ACEOF | |
1238 | ||
1239 | ||
1240 | ## ----------- ## | |
1241 | ## Core tests. ## | |
1242 | ## ----------- ## | |
1243 | ||
1244 | _ACEOF | |
1245 | ||
1246 | ||
1247 | # Keep a trace of the command line. | |
1248 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1249 | # Strip out --silent because we don't want to record it for future runs. | |
1250 | # Also quote any args containing shell meta-characters. | |
1251 | # Make two passes to allow for proper duplicate-argument suppression. | |
1252 | ac_configure_args= | |
1253 | ac_configure_args0= | |
1254 | ac_configure_args1= | |
1255 | ac_sep= | |
1256 | ac_must_keep_next=false | |
1257 | for ac_pass in 1 2 | |
1258 | do | |
1259 | for ac_arg | |
1260 | do | |
1261 | case $ac_arg in | |
1262 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1263 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1264 | | -silent | --silent | --silen | --sile | --sil) | |
1265 | continue ;; | |
1266 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1267 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1268 | esac | |
1269 | case $ac_pass in | |
1270 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1271 | 2) | |
1272 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1273 | if test $ac_must_keep_next = true; then | |
32ddf007 | 1274 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1275 | else |
32ddf007 VS |
1276 | case $ac_arg in |
1277 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1278 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1279 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1280 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1281 | case "$ac_configure_args0 " in | |
1282 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1283 | esac | |
1284 | ;; | |
1285 | -* ) ac_must_keep_next=true ;; | |
1286 | esac | |
e6cc62c6 VS |
1287 | fi |
1288 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1289 | # Get rid of the leading space. | |
1290 | ac_sep=" " | |
1291 | ;; | |
1292 | esac | |
1293 | done | |
1294 | done | |
1295 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1296 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1297 | ||
1298 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1299 | # config.log. We remove comments because anyway the quotes in there | |
1300 | # would cause problems or look ugly. | |
1301 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1302 | # such as our DU 5.0 friend, will then `close' the trap. | |
1303 | trap 'exit_status=$? | |
1304 | # Save into config.log some information that might help in debugging. | |
1305 | { | |
1306 | echo | |
1307 | ||
1308 | cat <<\_ASBOX | |
1309 | ## ---------------- ## | |
1310 | ## Cache variables. ## | |
1311 | ## ---------------- ## | |
1312 | _ASBOX | |
1313 | echo | |
1314 | # The following way of writing the cache mishandles newlines in values, | |
1315 | { | |
1316 | (set) 2>&1 | | |
1317 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1318 | *ac_space=\ *) | |
1319 | sed -n \ | |
32ddf007 VS |
1320 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1322 | ;; |
1323 | *) | |
1324 | sed -n \ | |
32ddf007 | 1325 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1326 | ;; |
1327 | esac; | |
1328 | } | |
1329 | echo | |
1330 | ||
1331 | cat <<\_ASBOX | |
1332 | ## ----------------- ## | |
1333 | ## Output variables. ## | |
1334 | ## ----------------- ## | |
1335 | _ASBOX | |
1336 | echo | |
1337 | for ac_var in $ac_subst_vars | |
1338 | do | |
1339 | eval ac_val=$`echo $ac_var` | |
1340 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1341 | done | sort | |
1342 | echo | |
1343 | ||
1344 | if test -n "$ac_subst_files"; then | |
1345 | cat <<\_ASBOX | |
1346 | ## ------------- ## | |
1347 | ## Output files. ## | |
1348 | ## ------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_files | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
32ddf007 | 1354 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1355 | done | sort |
1356 | echo | |
1357 | fi | |
1358 | ||
1359 | if test -s confdefs.h; then | |
1360 | cat <<\_ASBOX | |
1361 | ## ----------- ## | |
1362 | ## confdefs.h. ## | |
1363 | ## ----------- ## | |
1364 | _ASBOX | |
1365 | echo | |
1366 | sed "/^$/d" confdefs.h | sort | |
1367 | echo | |
1368 | fi | |
1369 | test "$ac_signal" != 0 && | |
1370 | echo "$as_me: caught signal $ac_signal" | |
1371 | echo "$as_me: exit $exit_status" | |
1372 | } >&5 | |
32ddf007 | 1373 | rm -f core *.core && |
e6cc62c6 VS |
1374 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1375 | exit $exit_status | |
1376 | ' 0 | |
1377 | for ac_signal in 1 2 13 15; do | |
1378 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1379 | done | |
1380 | ac_signal=0 | |
1381 | ||
1382 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1383 | rm -rf conftest* confdefs.h | |
1384 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1385 | echo >confdefs.h | |
1386 | ||
1387 | # Predefined preprocessor variables. | |
1388 | ||
1389 | cat >>confdefs.h <<_ACEOF | |
1390 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1391 | _ACEOF | |
1392 | ||
1393 | ||
1394 | cat >>confdefs.h <<_ACEOF | |
1395 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1396 | _ACEOF | |
1397 | ||
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | # Let the site file select an alternate cache file if it wants to. | |
1415 | # Prefer explicitly selected file to automatically selected ones. | |
1416 | if test -z "$CONFIG_SITE"; then | |
1417 | if test "x$prefix" != xNONE; then | |
1418 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1419 | else | |
1420 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1421 | fi | |
1422 | fi | |
1423 | for ac_site_file in $CONFIG_SITE; do | |
1424 | if test -r "$ac_site_file"; then | |
1425 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1426 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1427 | sed 's/^/| /' "$ac_site_file" >&5 | |
1428 | . "$ac_site_file" | |
1429 | fi | |
1430 | done | |
1431 | ||
1432 | if test -r "$cache_file"; then | |
1433 | # Some versions of bash will fail to source /dev/null (special | |
1434 | # files actually), so we avoid doing that. | |
1435 | if test -f "$cache_file"; then | |
1436 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1437 | echo "$as_me: loading cache $cache_file" >&6;} | |
1438 | case $cache_file in | |
1439 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1440 | *) . ./$cache_file;; | |
1441 | esac | |
1442 | fi | |
1443 | else | |
1444 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1445 | echo "$as_me: creating cache $cache_file" >&6;} | |
1446 | >$cache_file | |
1447 | fi | |
1448 | ||
1449 | # Check that the precious variables saved in the cache have kept the same | |
1450 | # value. | |
1451 | ac_cache_corrupted=false | |
1452 | for ac_var in `(set) 2>&1 | | |
32ddf007 | 1453 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1454 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1455 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1456 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1457 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1458 | case $ac_old_set,$ac_new_set in | |
1459 | set,) | |
1460 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1461 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1462 | ac_cache_corrupted=: ;; | |
1463 | ,set) | |
1464 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1465 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1466 | ac_cache_corrupted=: ;; | |
1467 | ,);; | |
1468 | *) | |
1469 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
32ddf007 | 1470 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1471 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
32ddf007 | 1472 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1473 | echo "$as_me: former value: $ac_old_val" >&2;} |
32ddf007 | 1474 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1475 | echo "$as_me: current value: $ac_new_val" >&2;} |
32ddf007 | 1476 | ac_cache_corrupted=: |
e6cc62c6 VS |
1477 | fi;; |
1478 | esac | |
1479 | # Pass precious variables to config.status. | |
1480 | if test "$ac_new_set" = set; then | |
1481 | case $ac_new_val in | |
1482 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1483 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1484 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1485 | esac | |
1486 | case " $ac_configure_args " in | |
1487 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1488 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1489 | esac | |
1490 | fi | |
1491 | done | |
1492 | if $ac_cache_corrupted; then | |
1493 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1494 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1495 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1496 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1497 | { (exit 1); exit 1; }; } | |
1498 | fi | |
1499 | ||
1500 | ac_ext=c | |
1501 | ac_cpp='$CPP $CPPFLAGS' | |
1502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
698dcdb6 | 1522 | |
8284b0c5 | 1523 | |
7c66a493 | 1524 | |
a0b9e27f MB |
1525 | |
1526 | ||
a0b9e27f | 1527 | |
a0b9e27f | 1528 | |
a0b9e27f | 1529 | |
a0b9e27f | 1530 | |
a0b9e27f | 1531 | |
a0b9e27f | 1532 | |
e6cc62c6 VS |
1533 | |
1534 | ||
1535 | ac_aux_dir= | |
1536 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1537 | if test -f $ac_dir/install-sh; then | |
1538 | ac_aux_dir=$ac_dir | |
1539 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1540 | break | |
1541 | elif test -f $ac_dir/install.sh; then | |
1542 | ac_aux_dir=$ac_dir | |
1543 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1544 | break | |
1545 | elif test -f $ac_dir/shtool; then | |
1546 | ac_aux_dir=$ac_dir | |
1547 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1548 | break | |
1549 | fi | |
1550 | done | |
1551 | if test -z "$ac_aux_dir"; then | |
1552 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1553 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1554 | { (exit 1); exit 1; }; } | |
1555 | fi | |
1556 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1557 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1558 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1559 | ||
1560 | # Make sure we can run config.sub. | |
1561 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1562 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1563 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | ||
1566 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1567 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1568 | if test "${ac_cv_build+set}" = set; then | |
1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1570 | else | |
1571 | ac_cv_build_alias=$build_alias | |
1572 | test -z "$ac_cv_build_alias" && | |
1573 | ac_cv_build_alias=`$ac_config_guess` | |
1574 | test -z "$ac_cv_build_alias" && | |
1575 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1576 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1577 | { (exit 1); exit 1; }; } | |
1578 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1579 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1580 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1581 | { (exit 1); exit 1; }; } | |
1582 | ||
1583 | fi | |
1584 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1585 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1586 | build=$ac_cv_build | |
1587 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1588 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1589 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1590 | ||
1591 | ||
1592 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1593 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1594 | if test "${ac_cv_host+set}" = set; then | |
1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1596 | else | |
1597 | ac_cv_host_alias=$host_alias | |
1598 | test -z "$ac_cv_host_alias" && | |
1599 | ac_cv_host_alias=$ac_cv_build_alias | |
1600 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1601 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1602 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1603 | { (exit 1); exit 1; }; } | |
1604 | ||
1605 | fi | |
1606 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1607 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1608 | host=$ac_cv_host | |
1609 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1610 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1611 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1612 | ||
1613 | ||
1614 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1615 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1616 | if test "${ac_cv_target+set}" = set; then | |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1618 | else | |
1619 | ac_cv_target_alias=$target_alias | |
1620 | test "x$ac_cv_target_alias" = "x" && | |
1621 | ac_cv_target_alias=$ac_cv_host_alias | |
1622 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1623 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1624 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1625 | { (exit 1); exit 1; }; } | |
1626 | ||
1627 | fi | |
1628 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1629 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1630 | target=$ac_cv_target | |
1631 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1632 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1633 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1634 | ||
1635 | ||
1636 | # The aliases save the names the user supplied, while $host etc. | |
1637 | # will get canonicalized. | |
1638 | test -n "$target_alias" && | |
7c66a493 VZ |
1639 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1640 | NONENONEs,x,x, && | |
1641 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1642 | |
1643 | ||
a0b9e27f | 1644 | |
10f2d63a | 1645 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1646 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1647 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1648 | |
10f2d63a | 1649 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1650 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1651 | |
978f1259 RL |
1652 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1653 | ||
7015ef3a | 1654 | WX_CURRENT=1 |
6426998c RL |
1655 | WX_REVISION=0 |
1656 | WX_AGE=0 | |
1657 | ||
8284b0c5 MB |
1658 | |
1659 | ||
10f2d63a | 1660 | USE_UNIX=1 |
73d617c9 | 1661 | USE_OS2=0 |
10f2d63a | 1662 | USE_WIN32=0 |
f9bc1684 | 1663 | USE_DOS=0 |
b12915c1 | 1664 | USE_BEOS=0 |
1216f52d | 1665 | USE_MAC=0 |
b12915c1 | 1666 | |
10f2d63a | 1667 | USE_AIX= |
fe0895cf VS |
1668 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1669 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1670 | USE_LINUX= |
f6bcfd97 | 1671 | USE_NETBSD= |
89e3b3e4 | 1672 | USE_OPENBSD= |
fe0895cf VS |
1673 | USE_OSF= USE_SGI= |
1674 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1675 | USE_ULTRIX= |
89e3b3e4 VZ |
1676 | USE_UNIXWARE= |
1677 | ||
1678 | USE_ALPHA= | |
10f2d63a | 1679 | |
ab9b9eab VZ |
1680 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1681 | ||
ac0c4cc3 | 1682 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1683 | |
ac0c4cc3 | 1684 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1685 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1686 | DEFAULT_wxUSE_MAC=0 |
1687 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1688 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1689 | DEFAULT_wxUSE_MOTIF=0 |
1690 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1691 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1692 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1693 | |
ac0c4cc3 | 1694 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1695 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1696 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1697 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1698 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1699 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1700 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1701 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1702 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1703 | |
d6a55c4b | 1704 | PROGRAM_EXT= |
3a922bb4 | 1705 | SO_SUFFIX=so |
fe0895cf | 1706 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1707 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1708 | |
10f2d63a VZ |
1709 | case "${host}" in |
1710 | *-hp-hpux* ) | |
1711 | USE_HPUX=1 | |
1712 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1713 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1714 | SO_SUFFIX=sl |
e6cc62c6 | 1715 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1716 | #define __HPUX__ 1 |
e6cc62c6 | 1717 | _ACEOF |
10f2d63a VZ |
1718 | |
1719 | ;; | |
1720 | *-*-linux* ) | |
1721 | USE_LINUX=1 | |
e6cc62c6 | 1722 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1723 | #define __LINUX__ 1 |
e6cc62c6 | 1724 | _ACEOF |
10f2d63a VZ |
1725 | |
1726 | TMP=`uname -m` | |
1727 | if test "x$TMP" = "xalpha"; then | |
1728 | USE_ALPHA=1 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1730 | #define __ALPHA__ 1 |
e6cc62c6 | 1731 | _ACEOF |
fe0895cf VS |
1732 | |
1733 | fi | |
1734 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1735 | ;; | |
e1293dcf | 1736 | *-*-gnu* | *-*-k*bsd*-gnu ) |
fe0895cf | 1737 | USE_GNU=1 |
fe0895cf VS |
1738 | TMP=`uname -m` |
1739 | if test "x$TMP" = "xalpha"; then | |
1740 | USE_ALPHA=1 | |
e6cc62c6 | 1741 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1742 | #define __ALPHA__ 1 |
e6cc62c6 | 1743 | _ACEOF |
10f2d63a VZ |
1744 | |
1745 | fi | |
1746 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1747 | ;; | |
1748 | *-*-irix5* | *-*-irix6* ) | |
1749 | USE_SGI=1 | |
1750 | USE_SVR4=1 | |
e6cc62c6 | 1751 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1752 | #define __SGI__ 1 |
e6cc62c6 | 1753 | _ACEOF |
10f2d63a | 1754 | |
e6cc62c6 | 1755 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1756 | #define __SVR4__ 1 |
e6cc62c6 | 1757 | _ACEOF |
10f2d63a VZ |
1758 | |
1759 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1760 | ;; | |
1761 | *-*-solaris2* ) | |
1762 | USE_SUN=1 | |
1763 | USE_SOLARIS=1 | |
1764 | USE_SVR4=1 | |
e6cc62c6 | 1765 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1766 | #define __SUN__ 1 |
e6cc62c6 | 1767 | _ACEOF |
10f2d63a | 1768 | |
e6cc62c6 | 1769 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1770 | #define __SOLARIS__ 1 |
e6cc62c6 | 1771 | _ACEOF |
10f2d63a | 1772 | |
e6cc62c6 | 1773 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1774 | #define __SVR4__ 1 |
e6cc62c6 | 1775 | _ACEOF |
10f2d63a VZ |
1776 | |
1777 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1778 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1779 | ;; |
1780 | *-*-sunos4* ) | |
1781 | USE_SUN=1 | |
1782 | USE_SUNOS=1 | |
1783 | USE_BSD=1 | |
e6cc62c6 | 1784 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1785 | #define __SUN__ 1 |
e6cc62c6 | 1786 | _ACEOF |
10f2d63a | 1787 | |
e6cc62c6 | 1788 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1789 | #define __SUNOS__ 1 |
e6cc62c6 | 1790 | _ACEOF |
10f2d63a | 1791 | |
e6cc62c6 | 1792 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1793 | #define __BSD__ 1 |
e6cc62c6 | 1794 | _ACEOF |
10f2d63a VZ |
1795 | |
1796 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1797 | ;; | |
f6bcfd97 | 1798 | *-*-freebsd*) |
10f2d63a VZ |
1799 | USE_BSD=1 |
1800 | USE_FREEBSD=1 | |
e6cc62c6 | 1801 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1802 | #define __FREEBSD__ 1 |
e6cc62c6 | 1803 | _ACEOF |
10f2d63a | 1804 | |
e6cc62c6 | 1805 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1806 | #define __BSD__ 1 |
e6cc62c6 | 1807 | _ACEOF |
95c8801c VS |
1808 | |
1809 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1810 | ;; | |
1811 | *-*-openbsd*) | |
1812 | USE_BSD=1 | |
1813 | USE_OPENBSD=1 | |
e6cc62c6 | 1814 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1815 | #define __OPENBSD__ 1 |
e6cc62c6 | 1816 | _ACEOF |
95c8801c | 1817 | |
e6cc62c6 | 1818 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1819 | #define __BSD__ 1 |
e6cc62c6 | 1820 | _ACEOF |
f6bcfd97 BP |
1821 | |
1822 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1823 | ;; | |
1824 | *-*-netbsd*) | |
1825 | USE_BSD=1 | |
1826 | USE_NETBSD=1 | |
e6cc62c6 | 1827 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1828 | #define __NETBSD__ 1 |
e6cc62c6 | 1829 | _ACEOF |
f6bcfd97 | 1830 | |
e6cc62c6 | 1831 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1832 | #define __BSD__ 1 |
e6cc62c6 | 1833 | _ACEOF |
10f2d63a VZ |
1834 | |
1835 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1836 | ;; | |
1837 | *-*-osf* ) | |
1838 | USE_ALPHA=1 | |
1839 | USE_OSF=1 | |
e6cc62c6 | 1840 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1841 | #define __ALPHA__ 1 |
e6cc62c6 | 1842 | _ACEOF |
10f2d63a | 1843 | |
e6cc62c6 | 1844 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1845 | #define __OSF__ 1 |
e6cc62c6 | 1846 | _ACEOF |
10f2d63a VZ |
1847 | |
1848 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1849 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1850 | ;; |
1851 | *-*-dgux5* ) | |
1852 | USE_ALPHA=1 | |
1853 | USE_SVR4=1 | |
e6cc62c6 | 1854 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1855 | #define __ALPHA__ 1 |
e6cc62c6 | 1856 | _ACEOF |
10f2d63a | 1857 | |
e6cc62c6 | 1858 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1859 | #define __SVR4__ 1 |
e6cc62c6 | 1860 | _ACEOF |
10f2d63a VZ |
1861 | |
1862 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1863 | ;; | |
1864 | *-*-sysv5* ) | |
1865 | USE_SYSV=1 | |
1866 | USE_SVR4=1 | |
e6cc62c6 | 1867 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1868 | #define __SYSV__ 1 |
e6cc62c6 | 1869 | _ACEOF |
10f2d63a | 1870 | |
e6cc62c6 | 1871 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1872 | #define __SVR4__ 1 |
e6cc62c6 | 1873 | _ACEOF |
10f2d63a VZ |
1874 | |
1875 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1876 | ;; | |
1877 | *-*-aix* ) | |
1878 | USE_AIX=1 | |
1879 | USE_SYSV=1 | |
1880 | USE_SVR4=1 | |
2b5f62a0 | 1881 | SO_SUFFIX=a |
e6cc62c6 | 1882 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1883 | #define __AIX__ 1 |
e6cc62c6 | 1884 | _ACEOF |
10f2d63a | 1885 | |
e6cc62c6 | 1886 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1887 | #define __SYSV__ 1 |
e6cc62c6 | 1888 | _ACEOF |
10f2d63a | 1889 | |
e6cc62c6 | 1890 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1891 | #define __SVR4__ 1 |
e6cc62c6 | 1892 | _ACEOF |
10f2d63a VZ |
1893 | |
1894 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1895 | ;; | |
1896 | ||
89e3b3e4 VZ |
1897 | *-*-*UnixWare*) |
1898 | USE_SYSV=1 | |
1899 | USE_SVR4=1 | |
1900 | USE_UNIXWARE=1 | |
e6cc62c6 | 1901 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1902 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1903 | _ACEOF |
89e3b3e4 VZ |
1904 | |
1905 | ;; | |
1906 | ||
1c8183e2 | 1907 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1908 | SO_SUFFIX=dll |
cf27ef00 | 1909 | PROGRAM_EXT=".exe" |
7b7a7637 | 1910 | RESCOMP=windres |
10f2d63a VZ |
1911 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1912 | ;; | |
1913 | ||
f9bc1684 VS |
1914 | *-pc-msdosdjgpp ) |
1915 | USE_UNIX=0 | |
1916 | USE_DOS=1 | |
e6cc62c6 | 1917 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1918 | #define __DOS__ 1 |
e6cc62c6 | 1919 | _ACEOF |
f9bc1684 VS |
1920 | |
1921 | PROGRAM_EXT=".exe" | |
1922 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1923 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1924 | ;; |
1925 | ||
6fa882bd | 1926 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1927 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1928 | #define __EMX__ 1 |
e6cc62c6 | 1929 | _ACEOF |
10f2d63a | 1930 | |
73d617c9 | 1931 | USE_OS2=1 |
7015ef3a VZ |
1932 | cat >>confdefs.h <<\_ACEOF |
1933 | #define __OS2__ 1 | |
1934 | _ACEOF | |
1935 | ||
cf27ef00 | 1936 | PROGRAM_EXT=".exe" |
e07802fc | 1937 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1938 | CXX=gcc |
32ddf007 | 1939 | LDFLAGS="$LDFLAGS -Zcrtdll" |
d5fc095c VS |
1940 | ac_executable_extensions=".exe" |
1941 | export ac_executable_extensions | |
1942 | ac_save_IFS="$IFS" | |
e46d2a18 | 1943 | IFS='\\' |
d5fc095c VS |
1944 | ac_TEMP_PATH= |
1945 | for ac_dir in $PATH; do | |
1946 | IFS=$ac_save_IFS | |
1947 | if test -z "$ac_TEMP_PATH"; then | |
1948 | ac_TEMP_PATH="$ac_dir" | |
1949 | else | |
1950 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1951 | fi | |
1952 | done | |
1953 | export PATH="$ac_TEMP_PATH" | |
1954 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1955 | ;; |
1956 | ||
d08b457b GD |
1957 | powerpc-*-darwin* ) |
1958 | USE_BSD=1 | |
f11bdd03 | 1959 | USE_DARWIN=1 |
3a922bb4 | 1960 | SO_SUFFIX=dylib |
e6cc62c6 | 1961 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1962 | #define __BSD__ 1 |
e6cc62c6 | 1963 | _ACEOF |
b4085ce6 | 1964 | |
e6cc62c6 | 1965 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1966 | #define __DARWIN__ 1 |
e6cc62c6 | 1967 | _ACEOF |
d08b457b | 1968 | |
e6cc62c6 | 1969 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1970 | #define __POWERPC__ 1 |
e6cc62c6 | 1971 | _ACEOF |
82d43113 | 1972 | |
e6cc62c6 | 1973 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1974 | #define TARGET_CARBON 1 |
e6cc62c6 | 1975 | _ACEOF |
b4085ce6 GD |
1976 | |
1977 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1978 | ;; | |
1979 | ||
b12915c1 VZ |
1980 | *-*-beos* ) |
1981 | USE_BEOS=1 | |
e6cc62c6 | 1982 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1983 | #define __BEOS__ 1 |
e6cc62c6 | 1984 | _ACEOF |
b12915c1 VZ |
1985 | |
1986 | ;; | |
1987 | ||
10f2d63a | 1988 | *) |
e6cc62c6 VS |
1989 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1990 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1991 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1992 | esac |
1993 | ||
8284b0c5 MB |
1994 | |
1995 | ||
1996 | ||
1997 | wx_arg_cache_file="configarg.cache" | |
1998 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1999 | rm -f ${wx_arg_cache_file}.tmp |
2000 | touch ${wx_arg_cache_file}.tmp | |
2001 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 2002 | |
10f2d63a VZ |
2003 | |
2004 | DEBUG_CONFIGURE=0 | |
2005 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 2006 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2007 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2008 | |
d8356fa3 VZ |
2009 | DEFAULT_wxUSE_NANOX=no |
2010 | ||
10f2d63a VZ |
2011 | DEFAULT_wxUSE_THREADS=yes |
2012 | ||
2013 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 2014 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
2015 | DEFAULT_wxUSE_PROFILE=no |
2016 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2017 | DEFAULT_wxUSE_NO_RTTI=no |
2018 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2019 | DEFAULT_wxUSE_PERMISSIVE=no |
2020 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2021 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2022 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2023 | DEFAULT_wxUSE_MEM_TRACING=no | |
2024 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2025 | DEFAULT_wxUSE_DMALLOC=no | |
2026 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2027 | ||
e46d2a18 | 2028 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 2029 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2030 | DEFAULT_wxUSE_LOGWINDOW=no |
2031 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2032 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2033 | |
2034 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2035 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2036 | |
3e44f09d | 2037 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2038 | DEFAULT_wxUSE_XML=no |
2039 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2040 | DEFAULT_wxUSE_ZLIB=no |
2041 | DEFAULT_wxUSE_LIBPNG=no | |
2042 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2043 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2044 | DEFAULT_wxUSE_LIBXPM=no |
f93ca9fd VS |
2045 | DEFAULT_wxUSE_LIBMSPACK=no |
2046 | DEFAULT_wxUSE_LIBSDL=no | |
10f2d63a | 2047 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2048 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2049 | |
eb4efbdc | 2050 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2051 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2052 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2053 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2054 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2055 | DEFAULT_wxUSE_TIMER=no |
2056 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2057 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2058 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2059 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2060 | DEFAULT_wxUSE_TEXTFILE=no |
002ed9af | 2061 | DEFAULT_wxUSE_SOUND=no |
10f2d63a VZ |
2062 | DEFAULT_wxUSE_INTL=no |
2063 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2064 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2065 | DEFAULT_wxUSE_STREAMS=no |
2066 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2067 | DEFAULT_wxUSE_OLE=no |
2068 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2069 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2070 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2071 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2072 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2073 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2074 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2075 | |
2076 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2077 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2078 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2079 | ||
10f2d63a VZ |
2080 | DEFAULT_wxUSE_CLIPBOARD=no |
2081 | DEFAULT_wxUSE_TOOLTIPS=no | |
2082 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2083 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2084 | DEFAULT_wxUSE_SPLINES=no |
2085 | ||
2086 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2087 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2088 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2089 | ||
10f2d63a VZ |
2090 | DEFAULT_wxUSE_RESOURCES=no |
2091 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2092 | DEFAULT_wxUSE_IPC=no | |
2093 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2094 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2095 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2096 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2097 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2098 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2099 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2100 | DEFAULT_wxUSE_PROTOCOL=no | |
2101 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2102 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2103 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2104 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2105 | |
10f2d63a | 2106 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2107 | DEFAULT_wxUSE_CHOICEDLG=no |
2108 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2109 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2110 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2111 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2112 | DEFAULT_wxUSE_FONTDLG=no |
2113 | DEFAULT_wxUSE_MSGDLG=no | |
2114 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2115 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2116 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2117 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2118 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2119 | DEFAULT_wxUSE_WIZARDDLG=no |
2120 | ||
1e6feb95 | 2121 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2122 | DEFAULT_wxUSE_MINIFRAME=no |
2123 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2124 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2125 | DEFAULT_wxUSE_FS_INET=no |
2126 | DEFAULT_wxUSE_FS_ZIP=no | |
2127 | DEFAULT_wxUSE_BUSYINFO=no | |
2128 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2129 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2130 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2131 | |
2132 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2133 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2134 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2135 | DEFAULT_wxUSE_CALCTRL=no |
2136 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2137 | DEFAULT_wxUSE_CHECKBOX=no |
2138 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2139 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2140 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2141 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2142 | DEFAULT_wxUSE_GAUGE=no |
2143 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2144 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2145 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2146 | DEFAULT_wxUSE_LISTBOX=no |
2147 | DEFAULT_wxUSE_LISTCTRL=no | |
2148 | DEFAULT_wxUSE_NOTEBOOK=no | |
2149 | DEFAULT_wxUSE_RADIOBOX=no | |
2150 | DEFAULT_wxUSE_RADIOBTN=no | |
2151 | DEFAULT_wxUSE_SASH=no | |
2152 | DEFAULT_wxUSE_SCROLLBAR=no | |
2153 | DEFAULT_wxUSE_SLIDER=no | |
2154 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2155 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2156 | DEFAULT_wxUSE_SPLITTER=no |
2157 | DEFAULT_wxUSE_STATBMP=no | |
2158 | DEFAULT_wxUSE_STATBOX=no | |
2159 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2160 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2161 | DEFAULT_wxUSE_STATUSBAR=yes |
2162 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2163 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2164 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2165 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2166 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2167 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2168 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2169 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2170 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2171 | |
2172 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2173 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2174 | DEFAULT_wxUSE_WCSRTOMBS=no |
2175 | ||
edae8572 | 2176 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2177 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2178 | DEFAULT_wxUSE_GIF=no |
2179 | DEFAULT_wxUSE_PCX=no | |
2180 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2181 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2182 | DEFAULT_wxUSE_XPM=no |
658974ae | 2183 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2184 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2185 | |
e9e0dc15 | 2186 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2187 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2188 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2189 | else |
1e6feb95 | 2190 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2191 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2192 | |
d8356fa3 VZ |
2193 | DEFAULT_wxUSE_NANOX=no |
2194 | ||
10f2d63a VZ |
2195 | DEFAULT_wxUSE_THREADS=yes |
2196 | ||
2197 | DEFAULT_wxUSE_SHARED=yes | |
2198 | DEFAULT_wxUSE_OPTIMISE=yes | |
2199 | DEFAULT_wxUSE_PROFILE=no | |
2200 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2201 | DEFAULT_wxUSE_NO_RTTI=no |
2202 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2203 | DEFAULT_wxUSE_PERMISSIVE=no |
2204 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2205 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2206 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2207 | DEFAULT_wxUSE_MEM_TRACING=no | |
2208 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2209 | DEFAULT_wxUSE_DMALLOC=no | |
2210 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2211 | ||
e46d2a18 | 2212 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2213 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2214 | DEFAULT_wxUSE_LOGWINDOW=yes |
2215 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2216 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2217 | |
2218 | DEFAULT_wxUSE_GUI=yes | |
2219 | ||
aa2d9ecc | 2220 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2221 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2222 | DEFAULT_wxUSE_EXPAT=yes |
2223 | DEFAULT_wxUSE_ZLIB=yes | |
2224 | DEFAULT_wxUSE_LIBPNG=yes | |
2225 | DEFAULT_wxUSE_LIBJPEG=yes | |
2226 | DEFAULT_wxUSE_LIBTIFF=yes | |
2227 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2228 | DEFAULT_wxUSE_LIBMSPACK=yes |
f93ca9fd | 2229 | DEFAULT_wxUSE_LIBSDL=no |
16b52fa1 | 2230 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2231 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2232 | |
eb4efbdc | 2233 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2234 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2235 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2236 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2237 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2238 | DEFAULT_wxUSE_TIMER=yes |
2239 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2240 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2241 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2242 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2243 | DEFAULT_wxUSE_TEXTFILE=yes |
002ed9af | 2244 | DEFAULT_wxUSE_SOUND=yes |
10f2d63a VZ |
2245 | DEFAULT_wxUSE_INTL=yes |
2246 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2247 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2248 | DEFAULT_wxUSE_STREAMS=yes |
2249 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2250 | DEFAULT_wxUSE_OLE=yes |
2251 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2252 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2253 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2254 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2255 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2256 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2257 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2258 | |
2259 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2260 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2261 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2262 | ||
10f2d63a VZ |
2263 | DEFAULT_wxUSE_CLIPBOARD=yes |
2264 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2265 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2266 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2267 | DEFAULT_wxUSE_SPLINES=yes |
2268 | ||
2269 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2270 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2271 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2272 | ||
2b5f62a0 | 2273 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2274 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2275 | DEFAULT_wxUSE_IPC=yes | |
2276 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2277 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2278 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2279 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2280 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2281 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2282 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2283 | DEFAULT_wxUSE_PROTOCOL=yes |
2284 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2285 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2286 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2287 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2288 | |
2289 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2290 | DEFAULT_wxUSE_CHOICEDLG=yes |
2291 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2292 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2293 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2294 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2295 | DEFAULT_wxUSE_FONTDLG=yes |
2296 | DEFAULT_wxUSE_MSGDLG=yes | |
2297 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2298 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2299 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2300 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2301 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2302 | DEFAULT_wxUSE_WIZARDDLG=yes |
2303 | ||
1e6feb95 | 2304 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2305 | DEFAULT_wxUSE_MINIFRAME=yes |
2306 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2307 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2308 | DEFAULT_wxUSE_FS_INET=yes |
2309 | DEFAULT_wxUSE_FS_ZIP=yes | |
2310 | DEFAULT_wxUSE_BUSYINFO=yes | |
2311 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2312 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2313 | DEFAULT_wxUSE_VALIDATORS=yes |
2314 | ||
2315 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2316 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2317 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2318 | DEFAULT_wxUSE_CALCTRL=yes |
2319 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2320 | DEFAULT_wxUSE_CHECKBOX=yes |
2321 | DEFAULT_wxUSE_CHECKLST=yes | |
2322 | DEFAULT_wxUSE_CHOICE=yes | |
2323 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2324 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2325 | DEFAULT_wxUSE_GAUGE=yes |
2326 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2327 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2328 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2329 | DEFAULT_wxUSE_LISTBOX=yes |
2330 | DEFAULT_wxUSE_LISTCTRL=yes | |
2331 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2332 | DEFAULT_wxUSE_RADIOBOX=yes | |
2333 | DEFAULT_wxUSE_RADIOBTN=yes | |
2334 | DEFAULT_wxUSE_SASH=yes | |
2335 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2336 | DEFAULT_wxUSE_SLIDER=yes | |
2337 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2338 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2339 | DEFAULT_wxUSE_SPLITTER=yes |
2340 | DEFAULT_wxUSE_STATBMP=yes | |
2341 | DEFAULT_wxUSE_STATBOX=yes | |
2342 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2343 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2344 | DEFAULT_wxUSE_STATUSBAR=yes |
2345 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2346 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2347 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2348 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2349 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2350 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2351 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2352 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2353 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2354 | |
2355 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2356 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2357 | DEFAULT_wxUSE_WCSRTOMBS=no |
2358 | ||
edae8572 | 2359 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2360 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2361 | DEFAULT_wxUSE_GIF=yes |
2362 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2363 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2364 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2365 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2366 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2367 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2368 | |
e9e0dc15 | 2369 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2370 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2371 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2372 | fi |
2373 | ||
8284b0c5 MB |
2374 | |
2375 | ||
10f2d63a | 2376 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2377 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2378 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2379 | has_toolkit_in_cache=1 |
2380 | eval "DEFAULT_$LINE" | |
2381 | eval "CACHE_$toolkit=1" | |
2382 | fi | |
2383 | done | |
2384 | ||
8284b0c5 MB |
2385 | |
2386 | ||
5005acfe | 2387 | enablestring= |
e6cc62c6 VS |
2388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2389 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2390 | no_cache=0 |
2391 | # Check whether --enable-gui or --disable-gui was given. | |
2392 | if test "${enable_gui+set}" = set; then | |
2393 | enableval="$enable_gui" | |
e6cc62c6 | 2394 | |
10f2d63a VZ |
2395 | if test "$enableval" = yes; then |
2396 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2397 | else | |
2398 | ac_cv_use_gui='wxUSE_GUI=no' | |
2399 | fi | |
e6cc62c6 | 2400 | |
10f2d63a | 2401 | else |
e6cc62c6 | 2402 | |
10f2d63a VZ |
2403 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2404 | if test "x$LINE" != x ; then | |
2405 | eval "DEFAULT_$LINE" | |
2406 | else | |
2407 | no_cache=1 | |
2408 | fi | |
2409 | ||
2410 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2411 | |
e6cc62c6 | 2412 | fi; |
10f2d63a VZ |
2413 | |
2414 | eval "$ac_cv_use_gui" | |
2415 | if test "$no_cache" != 1; then | |
2416 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2417 | fi | |
2418 | ||
2419 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2420 | echo "$as_me:$LINENO: result: yes" >&5 |
2421 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2422 | else |
e6cc62c6 VS |
2423 | echo "$as_me:$LINENO: result: no" >&5 |
2424 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2425 | fi |
e6cc62c6 | 2426 | |
10f2d63a | 2427 | |
9747f85d VS |
2428 | enablestring= |
2429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2430 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2431 | no_cache=0 | |
2432 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2433 | if test "${enable_monolithic+set}" = set; then | |
2434 | enableval="$enable_monolithic" | |
2435 | ||
2436 | if test "$enableval" = yes; then | |
2437 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2438 | else | |
2439 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2440 | fi | |
2441 | ||
2442 | else | |
2443 | ||
2444 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2445 | if test "x$LINE" != x ; then | |
2446 | eval "DEFAULT_$LINE" | |
2447 | else | |
2448 | no_cache=1 | |
2449 | fi | |
2450 | ||
2451 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2452 | ||
2453 | fi; | |
2454 | ||
2455 | eval "$ac_cv_use_monolithic" | |
2456 | if test "$no_cache" != 1; then | |
2457 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2458 | fi | |
2459 | ||
2460 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2461 | echo "$as_me:$LINENO: result: yes" >&5 | |
2462 | echo "${ECHO_T}yes" >&6 | |
2463 | else | |
2464 | echo "$as_me:$LINENO: result: no" >&5 | |
2465 | echo "${ECHO_T}no" >&6 | |
2466 | fi | |
2467 | ||
2468 | ||
f93ca9fd VS |
2469 | enablestring= |
2470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2471 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2472 | no_cache=0 | |
2473 | # Check whether --enable-plugins or --disable-plugins was given. | |
2474 | if test "${enable_plugins+set}" = set; then | |
2475 | enableval="$enable_plugins" | |
2476 | ||
2477 | if test "$enableval" = yes; then | |
2478 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2479 | else | |
2480 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2481 | fi | |
2482 | ||
2483 | else | |
2484 | ||
2485 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2486 | if test "x$LINE" != x ; then | |
2487 | eval "DEFAULT_$LINE" | |
2488 | else | |
2489 | no_cache=1 | |
2490 | fi | |
2491 | ||
2492 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2493 | ||
2494 | fi; | |
2495 | ||
2496 | eval "$ac_cv_use_plugins" | |
2497 | if test "$no_cache" != 1; then | |
2498 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2499 | fi | |
2500 | ||
2501 | if test "$wxUSE_PLUGINS" = yes; then | |
2502 | echo "$as_me:$LINENO: result: yes" >&5 | |
2503 | echo "${ECHO_T}yes" >&6 | |
2504 | else | |
2505 | echo "$as_me:$LINENO: result: no" >&5 | |
2506 | echo "${ECHO_T}no" >&6 | |
2507 | fi | |
2508 | ||
2509 | ||
b12915c1 | 2510 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2511 | |
8284b0c5 | 2512 | |
5005acfe | 2513 | enablestring= |
e6cc62c6 VS |
2514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2515 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2516 | no_cache=0 |
2517 | # Check whether --enable-universal or --disable-universal was given. | |
2518 | if test "${enable_universal+set}" = set; then | |
2519 | enableval="$enable_universal" | |
e6cc62c6 | 2520 | |
1e6feb95 VZ |
2521 | if test "$enableval" = yes; then |
2522 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2523 | else | |
2524 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2525 | fi | |
e6cc62c6 | 2526 | |
1e6feb95 | 2527 | else |
e6cc62c6 | 2528 | |
1e6feb95 VZ |
2529 | LINE=`grep "wxUSE_UNIVERSAL" ${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_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2537 | |
e6cc62c6 | 2538 | fi; |
1e6feb95 VZ |
2539 | |
2540 | eval "$ac_cv_use_universal" | |
2541 | if test "$no_cache" != 1; then | |
2542 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2543 | fi | |
2544 | ||
2545 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2546 | echo "$as_me:$LINENO: result: yes" >&5 |
2547 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2548 | else |
e6cc62c6 VS |
2549 | echo "$as_me:$LINENO: result: no" >&5 |
2550 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2551 | fi |
e6cc62c6 VS |
2552 | |
2553 | ||
10f2d63a VZ |
2554 | # Check whether --with-gtk or --without-gtk was given. |
2555 | if test "${with_gtk+set}" = set; then | |
2556 | withval="$with_gtk" | |
2557 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2558 | fi; |
10f2d63a VZ |
2559 | |
2560 | # Check whether --with-motif or --without-motif was given. | |
2561 | if test "${with_motif+set}" = set; then | |
2562 | withval="$with_motif" | |
2563 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2564 | fi; |
10f2d63a | 2565 | |
b4085ce6 GD |
2566 | # Check whether --with-mac or --without-mac was given. |
2567 | if test "${with_mac+set}" = set; then | |
2568 | withval="$with_mac" | |
2569 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2570 | fi; |
b4085ce6 | 2571 | |
ac0c4cc3 DE |
2572 | # Check whether --with-cocoa or --without-cocoa was given. |
2573 | if test "${with_cocoa+set}" = set; then | |
2574 | withval="$with_cocoa" | |
2575 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2576 | fi; |
ac0c4cc3 | 2577 | |
10f2d63a VZ |
2578 | # Check whether --with-wine or --without-wine was given. |
2579 | if test "${with_wine+set}" = set; then | |
2580 | withval="$with_wine" | |
89e6bf6d | 2581 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2582 | fi; |
10f2d63a | 2583 | |
77e13408 RL |
2584 | # Check whether --with-msw or --without-msw was given. |
2585 | if test "${with_msw+set}" = set; then | |
2586 | withval="$with_msw" | |
b4efce5e | 2587 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2588 | fi; |
10f2d63a | 2589 | |
e07802fc VZ |
2590 | # Check whether --with-pm or --without-pm was given. |
2591 | if test "${with_pm+set}" = set; then | |
2592 | withval="$with_pm" | |
2593 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2594 | fi; |
698dcdb6 | 2595 | |
1e6feb95 VZ |
2596 | # Check whether --with-mgl or --without-mgl was given. |
2597 | if test "${with_mgl+set}" = set; then | |
2598 | withval="$with_mgl" | |
6c657b52 | 2599 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2600 | fi; |
1e6feb95 | 2601 | |
1725144d RR |
2602 | # Check whether --with-microwin or --without-microwin was given. |
2603 | if test "${with_microwin+set}" = set; then | |
2604 | withval="$with_microwin" | |
2605 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2606 | fi; |
1725144d | 2607 | |
f79bd02d JS |
2608 | # Check whether --with-x11 or --without-x11 was given. |
2609 | if test "${with_x11+set}" = set; then | |
2610 | withval="$with_x11" | |
3c011993 | 2611 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2612 | fi; |
a0b9e27f | 2613 | |
5005acfe | 2614 | enablestring= |
e6cc62c6 VS |
2615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2616 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2617 | no_cache=0 |
ba875e66 VZ |
2618 | # Check whether --enable-nanox or --disable-nanox was given. |
2619 | if test "${enable_nanox+set}" = set; then | |
2620 | enableval="$enable_nanox" | |
e6cc62c6 | 2621 | |
d8356fa3 | 2622 | if test "$enableval" = yes; then |
ba875e66 | 2623 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2624 | else |
ba875e66 | 2625 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2626 | fi |
e6cc62c6 | 2627 | |
d8356fa3 | 2628 | else |
e6cc62c6 | 2629 | |
d8356fa3 VZ |
2630 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2631 | if test "x$LINE" != x ; then | |
2632 | eval "DEFAULT_$LINE" | |
2633 | else | |
2634 | no_cache=1 | |
2635 | fi | |
2636 | ||
ba875e66 | 2637 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2638 | |
e6cc62c6 | 2639 | fi; |
d8356fa3 | 2640 | |
ba875e66 | 2641 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2642 | if test "$no_cache" != 1; then |
ba875e66 | 2643 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2644 | fi |
2645 | ||
2646 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2647 | echo "$as_me:$LINENO: result: yes" >&5 |
2648 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2649 | else |
e6cc62c6 VS |
2650 | echo "$as_me:$LINENO: result: no" >&5 |
2651 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2652 | fi |
e6cc62c6 | 2653 | |
8284b0c5 | 2654 | |
d74f4b5a | 2655 | |
5005acfe | 2656 | enablestring= |
e6cc62c6 VS |
2657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2658 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2659 | no_cache=0 |
2660 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2661 | if test "${enable_gtk2+set}" = set; then |
2662 | enableval="$enable_gtk2" | |
e6cc62c6 | 2663 | |
d74f4b5a VZ |
2664 | if test "$enableval" = yes; then |
2665 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2666 | else | |
2667 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2668 | fi | |
e6cc62c6 | 2669 | |
10f2d63a | 2670 | else |
e6cc62c6 | 2671 | |
d74f4b5a VZ |
2672 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2673 | if test "x$LINE" != x ; then | |
2674 | eval "DEFAULT_$LINE" | |
2675 | else | |
2676 | no_cache=1 | |
2677 | fi | |
2678 | ||
2679 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2680 | |
e6cc62c6 | 2681 | fi; |
328a083c | 2682 | |
d74f4b5a VZ |
2683 | eval "$ac_cv_use_gtk2" |
2684 | if test "$no_cache" != 1; then | |
2685 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2686 | fi | |
2687 | ||
2688 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2689 | echo "$as_me:$LINENO: result: yes" >&5 |
2690 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2691 | else |
e6cc62c6 VS |
2692 | echo "$as_me:$LINENO: result: no" >&5 |
2693 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2694 | fi |
d74f4b5a | 2695 | |
5c6fa7d2 | 2696 | |
0f87e84c RR |
2697 | enablestring= |
2698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2699 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2700 | no_cache=0 | |
2701 | # Check whether --enable-gpe or --disable-gpe was given. | |
2702 | if test "${enable_gpe+set}" = set; then | |
2703 | enableval="$enable_gpe" | |
2704 | ||
2705 | if test "$enableval" = yes; then | |
2706 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2707 | else | |
2708 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2709 | fi | |
2710 | ||
2711 | else | |
2712 | ||
2713 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2714 | if test "x$LINE" != x ; then | |
2715 | eval "DEFAULT_$LINE" | |
2716 | else | |
2717 | no_cache=1 | |
2718 | fi | |
2719 | ||
2720 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2721 | ||
2722 | fi; | |
2723 | ||
2724 | eval "$ac_cv_use_gpe" | |
2725 | if test "$no_cache" != 1; then | |
2726 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2727 | fi | |
2728 | ||
2729 | if test "$wxUSE_GPE" = yes; then | |
2730 | echo "$as_me:$LINENO: result: yes" >&5 | |
2731 | echo "${ECHO_T}yes" >&6 | |
2732 | else | |
2733 | echo "$as_me:$LINENO: result: no" >&5 | |
2734 | echo "${ECHO_T}no" >&6 | |
2735 | fi | |
2736 | ||
2737 | ||
e6cc62c6 VS |
2738 | |
2739 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2740 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2741 | no_cache=0 |
e6cc62c6 VS |
2742 | |
2743 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2744 | if test "${with_libpng+set}" = set; then |
2745 | withval="$with_libpng" | |
e6cc62c6 | 2746 | |
10f2d63a | 2747 | if test "$withval" = yes; then |
b12915c1 | 2748 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2749 | elif test "$withval" = no; then |
b12915c1 | 2750 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2751 | elif test "$withval" = sys; then |
2752 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2753 | elif test "$withval" = builtin; then |
2754 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2755 | else |
e6cc62c6 VS |
2756 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2757 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2758 | { (exit 1); exit 1; }; } | |
10f2d63a | 2759 | fi |
e6cc62c6 | 2760 | |
10f2d63a | 2761 | else |
e6cc62c6 | 2762 | |
b12915c1 | 2763 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2764 | if test "x$LINE" != x ; then |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
b12915c1 | 2770 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2771 | |
e6cc62c6 | 2772 | fi; |
10f2d63a | 2773 | |
b12915c1 | 2774 | eval "$ac_cv_use_libpng" |
10f2d63a | 2775 | if test "$no_cache" != 1; then |
b12915c1 | 2776 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2777 | fi |
2778 | ||
b12915c1 | 2779 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2780 | echo "$as_me:$LINENO: result: yes" >&5 |
2781 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2782 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2783 | echo "$as_me:$LINENO: result: no" >&5 |
2784 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2785 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2786 | echo "$as_me:$LINENO: result: system version" >&5 |
2787 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2788 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2789 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2790 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2791 | else |
e6cc62c6 VS |
2792 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2793 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2794 | { (exit 1); exit 1; }; } | |
10f2d63a | 2795 | fi |
10f2d63a | 2796 | |
e6cc62c6 VS |
2797 | |
2798 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2799 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2800 | no_cache=0 |
e6cc62c6 VS |
2801 | |
2802 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2803 | if test "${with_libjpeg+set}" = set; then |
2804 | withval="$with_libjpeg" | |
e6cc62c6 | 2805 | |
10f2d63a | 2806 | if test "$withval" = yes; then |
b12915c1 | 2807 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2808 | elif test "$withval" = no; then |
b12915c1 | 2809 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2810 | elif test "$withval" = sys; then |
2811 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2812 | elif test "$withval" = builtin; then |
2813 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2814 | else |
e6cc62c6 VS |
2815 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2816 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2817 | { (exit 1); exit 1; }; } | |
10f2d63a | 2818 | fi |
e6cc62c6 | 2819 | |
10f2d63a | 2820 | else |
e6cc62c6 | 2821 | |
b12915c1 | 2822 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2823 | if test "x$LINE" != x ; then |
2824 | eval "DEFAULT_$LINE" | |
2825 | else | |
2826 | no_cache=1 | |
2827 | fi | |
2828 | ||
b12915c1 | 2829 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2830 | |
e6cc62c6 | 2831 | fi; |
10f2d63a | 2832 | |
b12915c1 | 2833 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2834 | if test "$no_cache" != 1; then |
b12915c1 | 2835 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2836 | fi |
2837 | ||
b12915c1 | 2838 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2839 | echo "$as_me:$LINENO: result: yes" >&5 |
2840 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2841 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2842 | echo "$as_me:$LINENO: result: no" >&5 |
2843 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2844 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2845 | echo "$as_me:$LINENO: result: system version" >&5 |
2846 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2847 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2848 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2849 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2850 | else |
e6cc62c6 VS |
2851 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2852 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2853 | { (exit 1); exit 1; }; } | |
10f2d63a | 2854 | fi |
10f2d63a | 2855 | |
e6cc62c6 VS |
2856 | |
2857 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2858 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2859 | no_cache=0 |
e6cc62c6 VS |
2860 | |
2861 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2862 | if test "${with_libtiff+set}" = set; then |
2863 | withval="$with_libtiff" | |
e6cc62c6 | 2864 | |
10f2d63a | 2865 | if test "$withval" = yes; then |
b12915c1 | 2866 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2867 | elif test "$withval" = no; then |
b12915c1 | 2868 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2869 | elif test "$withval" = sys; then |
2870 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2871 | elif test "$withval" = builtin; then |
2872 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2873 | else |
e6cc62c6 VS |
2874 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2875 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2876 | { (exit 1); exit 1; }; } | |
10f2d63a | 2877 | fi |
e6cc62c6 | 2878 | |
10f2d63a | 2879 | else |
e6cc62c6 | 2880 | |
b12915c1 | 2881 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2882 | if test "x$LINE" != x ; then |
2883 | eval "DEFAULT_$LINE" | |
2884 | else | |
2885 | no_cache=1 | |
2886 | fi | |
2887 | ||
b12915c1 | 2888 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2889 | |
e6cc62c6 | 2890 | fi; |
10f2d63a | 2891 | |
b12915c1 | 2892 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2893 | if test "$no_cache" != 1; then |
b12915c1 | 2894 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2895 | fi |
2896 | ||
b12915c1 | 2897 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2898 | echo "$as_me:$LINENO: result: yes" >&5 |
2899 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2900 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2901 | echo "$as_me:$LINENO: result: no" >&5 |
2902 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2903 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2904 | echo "$as_me:$LINENO: result: system version" >&5 |
2905 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2906 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2907 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2908 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2909 | else |
e6cc62c6 VS |
2910 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2911 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2912 | { (exit 1); exit 1; }; } | |
10f2d63a | 2913 | fi |
10f2d63a | 2914 | |
e6cc62c6 | 2915 | |
89fe663f VZ |
2916 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2917 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2918 | no_cache=0 | |
2919 | ||
2920 | # Check whether --with-libxpm or --without-libxpm was given. | |
2921 | if test "${with_libxpm+set}" = set; then | |
2922 | withval="$with_libxpm" | |
2923 | ||
2924 | if test "$withval" = yes; then | |
2925 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2926 | elif test "$withval" = no; then | |
2927 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2928 | elif test "$withval" = sys; then | |
2929 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2930 | elif test "$withval" = builtin; then | |
2931 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2932 | else | |
2933 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2934 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2935 | { (exit 1); exit 1; }; } | |
2936 | fi | |
2937 | ||
2938 | else | |
2939 | ||
2940 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2941 | if test "x$LINE" != x ; then | |
2942 | eval "DEFAULT_$LINE" | |
2943 | else | |
2944 | no_cache=1 | |
2945 | fi | |
2946 | ||
2947 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2948 | ||
2949 | fi; | |
2950 | ||
2951 | eval "$ac_cv_use_libxpm" | |
2952 | if test "$no_cache" != 1; then | |
2953 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2954 | fi | |
2955 | ||
2956 | if test "$wxUSE_LIBXPM" = yes; then | |
2957 | echo "$as_me:$LINENO: result: yes" >&5 | |
2958 | echo "${ECHO_T}yes" >&6 | |
2959 | elif test "$wxUSE_LIBXPM" = no; then | |
2960 | echo "$as_me:$LINENO: result: no" >&5 | |
2961 | echo "${ECHO_T}no" >&6 | |
2962 | elif test "$wxUSE_LIBXPM" = sys; then | |
2963 | echo "$as_me:$LINENO: result: system version" >&5 | |
2964 | echo "${ECHO_T}system version" >&6 | |
2965 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2966 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2967 | echo "${ECHO_T}builtin version" >&6 | |
2968 | else | |
2969 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2970 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2971 | { (exit 1); exit 1; }; } | |
2972 | fi | |
2973 | ||
2974 | ||
3527f29c VS |
2975 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2976 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2977 | no_cache=0 | |
2978 | ||
2979 | # Check whether --with-libmspack or --without-libmspack was given. | |
2980 | if test "${with_libmspack+set}" = set; then | |
2981 | withval="$with_libmspack" | |
2982 | ||
2983 | if test "$withval" = yes; then | |
2984 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2985 | else | |
2986 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2987 | fi | |
2988 | ||
2989 | else | |
2990 | ||
2991 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2992 | if test "x$LINE" != x ; then | |
2993 | eval "DEFAULT_$LINE" | |
2994 | else | |
2995 | no_cache=1 | |
2996 | fi | |
2997 | ||
2998 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2999 | ||
3000 | fi; | |
3001 | ||
3002 | eval "$ac_cv_use_libmspack" | |
3003 | if test "$no_cache" != 1; then | |
3004 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3005 | fi | |
3006 | ||
3007 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3008 | echo "$as_me:$LINENO: result: yes" >&5 | |
3009 | echo "${ECHO_T}yes" >&6 | |
3010 | else | |
3011 | echo "$as_me:$LINENO: result: no" >&5 | |
3012 | echo "${ECHO_T}no" >&6 | |
3013 | fi | |
3014 | ||
3015 | ||
f93ca9fd VS |
3016 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 |
3017 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3018 | no_cache=0 | |
3019 | ||
3020 | # Check whether --with-sdl or --without-sdl was given. | |
3021 | if test "${with_sdl+set}" = set; then | |
3022 | withval="$with_sdl" | |
3023 | ||
3024 | if test "$withval" = yes; then | |
3025 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3026 | else | |
3027 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3028 | fi | |
3029 | ||
3030 | else | |
3031 | ||
3032 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3033 | if test "x$LINE" != x ; then | |
3034 | eval "DEFAULT_$LINE" | |
3035 | else | |
3036 | no_cache=1 | |
3037 | fi | |
3038 | ||
3039 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3040 | ||
3041 | fi; | |
3042 | ||
3043 | eval "$ac_cv_use_sdl" | |
3044 | if test "$no_cache" != 1; then | |
3045 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3046 | fi | |
3047 | ||
3048 | if test "$wxUSE_LIBSDL" = yes; then | |
3049 | echo "$as_me:$LINENO: result: yes" >&5 | |
3050 | echo "${ECHO_T}yes" >&6 | |
3051 | else | |
3052 | echo "$as_me:$LINENO: result: no" >&5 | |
3053 | echo "${ECHO_T}no" >&6 | |
3054 | fi | |
3055 | ||
3056 | ||
e6cc62c6 VS |
3057 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3058 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 3059 | no_cache=0 |
e6cc62c6 VS |
3060 | |
3061 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
3062 | if test "${with_opengl+set}" = set; then |
3063 | withval="$with_opengl" | |
e6cc62c6 | 3064 | |
10f2d63a | 3065 | if test "$withval" = yes; then |
b12915c1 | 3066 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 3067 | else |
b12915c1 | 3068 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 3069 | fi |
e6cc62c6 | 3070 | |
10f2d63a | 3071 | else |
e6cc62c6 | 3072 | |
b12915c1 | 3073 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
3074 | if test "x$LINE" != x ; then |
3075 | eval "DEFAULT_$LINE" | |
3076 | else | |
3077 | no_cache=1 | |
3078 | fi | |
3079 | ||
b12915c1 | 3080 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 3081 | |
e6cc62c6 | 3082 | fi; |
10f2d63a | 3083 | |
b12915c1 | 3084 | eval "$ac_cv_use_opengl" |
10f2d63a | 3085 | if test "$no_cache" != 1; then |
b12915c1 | 3086 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3087 | fi |
3088 | ||
b12915c1 | 3089 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
3090 | echo "$as_me:$LINENO: result: yes" >&5 |
3091 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3092 | else |
e6cc62c6 VS |
3093 | echo "$as_me:$LINENO: result: no" >&5 |
3094 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3095 | fi |
e6cc62c6 | 3096 | |
10f2d63a | 3097 | |
b12915c1 VZ |
3098 | fi |
3099 | ||
5c6fa7d2 | 3100 | |
e6cc62c6 VS |
3101 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
3102 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 3103 | no_cache=0 |
e6cc62c6 VS |
3104 | |
3105 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
3106 | if test "${with_dmalloc+set}" = set; then |
3107 | withval="$with_dmalloc" | |
e6cc62c6 | 3108 | |
c7a2bf27 | 3109 | if test "$withval" = yes; then |
b12915c1 | 3110 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 3111 | else |
b12915c1 | 3112 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 3113 | fi |
e6cc62c6 | 3114 | |
c7a2bf27 | 3115 | else |
e6cc62c6 | 3116 | |
b12915c1 | 3117 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
3118 | if test "x$LINE" != x ; then |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
b12915c1 | 3124 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 3125 | |
e6cc62c6 | 3126 | fi; |
c7a2bf27 | 3127 | |
b12915c1 | 3128 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 3129 | if test "$no_cache" != 1; then |
b12915c1 | 3130 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
3131 | fi |
3132 | ||
b12915c1 | 3133 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3134 | echo "$as_me:$LINENO: result: yes" >&5 |
3135 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3136 | else |
e6cc62c6 VS |
3137 | echo "$as_me:$LINENO: result: no" >&5 |
3138 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3139 | fi |
c7a2bf27 | 3140 | |
e6cc62c6 VS |
3141 | |
3142 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3143 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3144 | no_cache=0 |
e6cc62c6 VS |
3145 | |
3146 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3147 | if test "${with_regex+set}" = set; then |
3148 | withval="$with_regex" | |
e6cc62c6 | 3149 | |
3e44f09d VZ |
3150 | if test "$withval" = yes; then |
3151 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3152 | elif test "$withval" = no; then | |
3153 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3154 | elif test "$withval" = sys; then | |
3155 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3156 | elif test "$withval" = builtin; then |
3157 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3158 | else |
e6cc62c6 VS |
3159 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3160 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3161 | { (exit 1); exit 1; }; } | |
3e44f09d | 3162 | fi |
e6cc62c6 | 3163 | |
3e44f09d | 3164 | else |
e6cc62c6 | 3165 | |
3e44f09d VZ |
3166 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3167 | if test "x$LINE" != x ; then | |
3168 | eval "DEFAULT_$LINE" | |
3169 | else | |
3170 | no_cache=1 | |
3171 | fi | |
3172 | ||
3173 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3174 | |
e6cc62c6 | 3175 | fi; |
3e44f09d VZ |
3176 | |
3177 | eval "$ac_cv_use_regex" | |
3178 | if test "$no_cache" != 1; then | |
3179 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3180 | fi | |
3181 | ||
3182 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3183 | echo "$as_me:$LINENO: result: yes" >&5 |
3184 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3185 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3186 | echo "$as_me:$LINENO: result: no" >&5 |
3187 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3188 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3189 | echo "$as_me:$LINENO: result: system version" >&5 |
3190 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3191 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3192 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3193 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3194 | else |
e6cc62c6 VS |
3195 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3196 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3197 | { (exit 1); exit 1; }; } | |
3e44f09d | 3198 | fi |
3e44f09d | 3199 | |
e6cc62c6 VS |
3200 | |
3201 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3202 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3203 | no_cache=0 |
e6cc62c6 VS |
3204 | |
3205 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3206 | if test "${with_zlib+set}" = set; then |
3207 | withval="$with_zlib" | |
e6cc62c6 | 3208 | |
10f2d63a | 3209 | if test "$withval" = yes; then |
b12915c1 | 3210 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3211 | elif test "$withval" = no; then |
b12915c1 | 3212 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3213 | elif test "$withval" = sys; then |
3214 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3215 | elif test "$withval" = builtin; then |
3216 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3217 | else |
e6cc62c6 VS |
3218 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3219 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3220 | { (exit 1); exit 1; }; } | |
10f2d63a | 3221 | fi |
e6cc62c6 | 3222 | |
10f2d63a | 3223 | else |
e6cc62c6 | 3224 | |
b12915c1 | 3225 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3226 | if test "x$LINE" != x ; then |
3227 | eval "DEFAULT_$LINE" | |
3228 | else | |
3229 | no_cache=1 | |
3230 | fi | |
3231 | ||
b12915c1 | 3232 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3233 | |
e6cc62c6 | 3234 | fi; |
10f2d63a | 3235 | |
b12915c1 | 3236 | eval "$ac_cv_use_zlib" |
10f2d63a | 3237 | if test "$no_cache" != 1; then |
b12915c1 | 3238 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3239 | fi |
3240 | ||
b12915c1 | 3241 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3242 | echo "$as_me:$LINENO: result: yes" >&5 |
3243 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3244 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3245 | echo "$as_me:$LINENO: result: no" >&5 |
3246 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3247 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3248 | echo "$as_me:$LINENO: result: system version" >&5 |
3249 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3250 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3251 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3252 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3253 | else |
e6cc62c6 VS |
3254 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3255 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3256 | { (exit 1); exit 1; }; } | |
10f2d63a | 3257 | fi |
10f2d63a | 3258 | |
e6cc62c6 VS |
3259 | |
3260 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3261 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3262 | no_cache=0 |
e6cc62c6 VS |
3263 | |
3264 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3265 | if test "${with_odbc+set}" = set; then |
3266 | withval="$with_odbc" | |
e6cc62c6 | 3267 | |
10f2d63a VZ |
3268 | if test "$withval" = yes; then |
3269 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3270 | elif test "$withval" = no; then |
10f2d63a | 3271 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3272 | elif test "$withval" = sys; then |
3273 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3274 | elif test "$withval" = builtin; then | |
3275 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3276 | else | |
e6cc62c6 VS |
3277 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3278 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3279 | { (exit 1); exit 1; }; } | |
10f2d63a | 3280 | fi |
e6cc62c6 | 3281 | |
10f2d63a | 3282 | else |
e6cc62c6 | 3283 | |
10f2d63a VZ |
3284 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3285 | if test "x$LINE" != x ; then | |
3286 | eval "DEFAULT_$LINE" | |
3287 | else | |
3288 | no_cache=1 | |
3289 | fi | |
3290 | ||
3291 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3292 | |
e6cc62c6 | 3293 | fi; |
10f2d63a VZ |
3294 | |
3295 | eval "$ac_cv_use_odbc" | |
3296 | if test "$no_cache" != 1; then | |
3297 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3298 | fi | |
3299 | ||
3300 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3301 | echo "$as_me:$LINENO: result: yes" >&5 |
3302 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3303 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3304 | echo "$as_me:$LINENO: result: no" >&5 |
3305 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3306 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3307 | echo "$as_me:$LINENO: result: system version" >&5 |
3308 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3309 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3310 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3311 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3312 | else |
e6cc62c6 VS |
3313 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3314 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3315 | { (exit 1); exit 1; }; } | |
10f2d63a | 3316 | fi |
e6cc62c6 | 3317 | |
52127426 | 3318 | |
672abd7a VS |
3319 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3320 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3321 | no_cache=0 | |
3322 | ||
3323 | # Check whether --with-expat or --without-expat was given. | |
3324 | if test "${with_expat+set}" = set; then | |
3325 | withval="$with_expat" | |
3326 | ||
3327 | if test "$withval" = yes; then | |
3328 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3329 | elif test "$withval" = no; then | |
3330 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3331 | elif test "$withval" = sys; then | |
3332 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3333 | elif test "$withval" = builtin; then | |
3334 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3335 | else | |
3336 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3337 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3338 | { (exit 1); exit 1; }; } | |
3339 | fi | |
3340 | ||
3341 | else | |
3342 | ||
3343 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3344 | if test "x$LINE" != x ; then | |
3345 | eval "DEFAULT_$LINE" | |
3346 | else | |
3347 | no_cache=1 | |
3348 | fi | |
3349 | ||
3350 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3351 | ||
3352 | fi; | |
3353 | ||
3354 | eval "$ac_cv_use_expat" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_EXPAT" = yes; then | |
3360 | echo "$as_me:$LINENO: result: yes" >&5 | |
3361 | echo "${ECHO_T}yes" >&6 | |
3362 | elif test "$wxUSE_EXPAT" = no; then | |
3363 | echo "$as_me:$LINENO: result: no" >&5 | |
3364 | echo "${ECHO_T}no" >&6 | |
3365 | elif test "$wxUSE_EXPAT" = sys; then | |
3366 | echo "$as_me:$LINENO: result: system version" >&5 | |
3367 | echo "${ECHO_T}system version" >&6 | |
3368 | elif test "$wxUSE_EXPAT" = builtin; then | |
3369 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3370 | echo "${ECHO_T}builtin version" >&6 | |
3371 | else | |
3372 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3373 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3374 | { (exit 1); exit 1; }; } | |
3375 | fi | |
3376 | ||
3377 | ||
8284b0c5 MB |
3378 | |
3379 | ||
5005acfe | 3380 | enablestring= |
e6cc62c6 VS |
3381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3382 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3383 | no_cache=0 |
3384 | # Check whether --enable-shared or --disable-shared was given. | |
3385 | if test "${enable_shared+set}" = set; then | |
3386 | enableval="$enable_shared" | |
e6cc62c6 | 3387 | |
10f2d63a VZ |
3388 | if test "$enableval" = yes; then |
3389 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3390 | else | |
3391 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3392 | fi | |
e6cc62c6 | 3393 | |
10f2d63a | 3394 | else |
e6cc62c6 | 3395 | |
10f2d63a VZ |
3396 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3397 | if test "x$LINE" != x ; then | |
3398 | eval "DEFAULT_$LINE" | |
3399 | else | |
3400 | no_cache=1 | |
3401 | fi | |
3402 | ||
3403 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3404 | |
e6cc62c6 | 3405 | fi; |
10f2d63a VZ |
3406 | |
3407 | eval "$ac_cv_use_shared" | |
3408 | if test "$no_cache" != 1; then | |
3409 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3410 | fi | |
3411 | ||
3412 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3413 | echo "$as_me:$LINENO: result: yes" >&5 |
3414 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3415 | else |
e6cc62c6 VS |
3416 | echo "$as_me:$LINENO: result: no" >&5 |
3417 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3418 | fi |
e6cc62c6 | 3419 | |
10f2d63a | 3420 | |
5005acfe | 3421 | enablestring= |
e6cc62c6 VS |
3422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3423 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3424 | no_cache=0 |
3425 | # Check whether --enable-optimise or --disable-optimise was given. | |
3426 | if test "${enable_optimise+set}" = set; then | |
3427 | enableval="$enable_optimise" | |
e6cc62c6 | 3428 | |
10f2d63a VZ |
3429 | if test "$enableval" = yes; then |
3430 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3431 | else | |
3432 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3433 | fi | |
e6cc62c6 | 3434 | |
10f2d63a | 3435 | else |
e6cc62c6 | 3436 | |
10f2d63a VZ |
3437 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3438 | if test "x$LINE" != x ; then | |
3439 | eval "DEFAULT_$LINE" | |
3440 | else | |
3441 | no_cache=1 | |
3442 | fi | |
3443 | ||
3444 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3445 | |
e6cc62c6 | 3446 | fi; |
10f2d63a VZ |
3447 | |
3448 | eval "$ac_cv_use_optimise" | |
3449 | if test "$no_cache" != 1; then | |
3450 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3451 | fi | |
3452 | ||
3453 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3454 | echo "$as_me:$LINENO: result: yes" >&5 |
3455 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3456 | else |
e6cc62c6 VS |
3457 | echo "$as_me:$LINENO: result: no" >&5 |
3458 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3459 | fi |
e6cc62c6 | 3460 | |
10f2d63a | 3461 | |
5005acfe | 3462 | enablestring= |
e6cc62c6 VS |
3463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3464 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3465 | no_cache=0 |
3466 | # Check whether --enable-debug or --disable-debug was given. | |
3467 | if test "${enable_debug+set}" = set; then | |
3468 | enableval="$enable_debug" | |
e6cc62c6 | 3469 | |
10f2d63a VZ |
3470 | if test "$enableval" = yes; then |
3471 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3472 | else | |
3473 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3474 | fi | |
e6cc62c6 | 3475 | |
10f2d63a | 3476 | else |
e6cc62c6 | 3477 | |
10f2d63a VZ |
3478 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3479 | if test "x$LINE" != x ; then | |
3480 | eval "DEFAULT_$LINE" | |
3481 | else | |
3482 | no_cache=1 | |
3483 | fi | |
3484 | ||
3485 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3486 | |
e6cc62c6 | 3487 | fi; |
10f2d63a VZ |
3488 | |
3489 | eval "$ac_cv_use_debug" | |
3490 | if test "$no_cache" != 1; then | |
3491 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3492 | fi | |
3493 | ||
3494 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3495 | echo "$as_me:$LINENO: result: yes" >&5 |
3496 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3497 | else |
e6cc62c6 VS |
3498 | echo "$as_me:$LINENO: result: no" >&5 |
3499 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3500 | fi |
e6cc62c6 | 3501 | |
52127426 | 3502 | |
df5168c4 MB |
3503 | enablestring= |
3504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3505 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3506 | no_cache=0 | |
3507 | # Check whether --enable-stl or --disable-stl was given. | |
3508 | if test "${enable_stl+set}" = set; then | |
3509 | enableval="$enable_stl" | |
3510 | ||
3511 | if test "$enableval" = yes; then | |
3512 | ac_cv_use_stl='wxUSE_STL=yes' | |
3513 | else | |
3514 | ac_cv_use_stl='wxUSE_STL=no' | |
3515 | fi | |
3516 | ||
3517 | else | |
3518 | ||
3519 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3520 | if test "x$LINE" != x ; then | |
3521 | eval "DEFAULT_$LINE" | |
3522 | else | |
3523 | no_cache=1 | |
3524 | fi | |
3525 | ||
3526 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3527 | ||
3528 | fi; | |
3529 | ||
3530 | eval "$ac_cv_use_stl" | |
3531 | if test "$no_cache" != 1; then | |
3532 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3533 | fi | |
3534 | ||
3535 | if test "$wxUSE_STL" = yes; then | |
3536 | echo "$as_me:$LINENO: result: yes" >&5 | |
3537 | echo "${ECHO_T}yes" >&6 | |
3538 | else | |
3539 | echo "$as_me:$LINENO: result: no" >&5 | |
3540 | echo "${ECHO_T}no" >&6 | |
3541 | fi | |
3542 | ||
3543 | ||
10f2d63a VZ |
3544 | if test "$wxUSE_DEBUG" = "yes"; then |
3545 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3546 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3547 | BUILD=debug |
10f2d63a VZ |
3548 | elif test "$wxUSE_DEBUG" = "no"; then |
3549 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3550 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3551 | BUILD=release |
10f2d63a VZ |
3552 | fi |
3553 | ||
8284b0c5 | 3554 | |
5005acfe | 3555 | enablestring= |
e6cc62c6 VS |
3556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3557 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3558 | no_cache=0 |
3559 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3560 | if test "${enable_debug_flag+set}" = set; then | |
3561 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3562 | |
10f2d63a VZ |
3563 | if test "$enableval" = yes; then |
3564 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3565 | else | |
3566 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3567 | fi | |
e6cc62c6 | 3568 | |
10f2d63a | 3569 | else |
e6cc62c6 | 3570 | |
10f2d63a VZ |
3571 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3572 | if test "x$LINE" != x ; then | |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
3578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3579 | |
e6cc62c6 | 3580 | fi; |
10f2d63a VZ |
3581 | |
3582 | eval "$ac_cv_use_debug_flag" | |
3583 | if test "$no_cache" != 1; then | |
3584 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3585 | fi | |
3586 | ||
3587 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3588 | echo "$as_me:$LINENO: result: yes" >&5 |
3589 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3590 | else |
e6cc62c6 VS |
3591 | echo "$as_me:$LINENO: result: no" >&5 |
3592 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3593 | fi |
e6cc62c6 | 3594 | |
10f2d63a | 3595 | |
5005acfe | 3596 | enablestring= |
e6cc62c6 VS |
3597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3598 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3599 | no_cache=0 |
3600 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3601 | if test "${enable_debug_info+set}" = set; then | |
3602 | enableval="$enable_debug_info" | |
e6cc62c6 | 3603 | |
10f2d63a VZ |
3604 | if test "$enableval" = yes; then |
3605 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3606 | else | |
3607 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3608 | fi | |
e6cc62c6 | 3609 | |
10f2d63a | 3610 | else |
e6cc62c6 | 3611 | |
10f2d63a VZ |
3612 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3613 | if test "x$LINE" != x ; then | |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
3619 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3620 | |
e6cc62c6 | 3621 | fi; |
10f2d63a VZ |
3622 | |
3623 | eval "$ac_cv_use_debug_info" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3629 | echo "$as_me:$LINENO: result: yes" >&5 |
3630 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3631 | else |
e6cc62c6 VS |
3632 | echo "$as_me:$LINENO: result: no" >&5 |
3633 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3634 | fi |
e6cc62c6 | 3635 | |
10f2d63a | 3636 | |
5005acfe | 3637 | enablestring= |
e6cc62c6 VS |
3638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3639 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3640 | no_cache=0 |
3641 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3642 | if test "${enable_debug_gdb+set}" = set; then | |
3643 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3644 | |
10f2d63a VZ |
3645 | if test "$enableval" = yes; then |
3646 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3647 | else | |
3648 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3649 | fi | |
e6cc62c6 | 3650 | |
10f2d63a | 3651 | else |
e6cc62c6 | 3652 | |
10f2d63a VZ |
3653 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3654 | if test "x$LINE" != x ; then | |
3655 | eval "DEFAULT_$LINE" | |
3656 | else | |
3657 | no_cache=1 | |
3658 | fi | |
3659 | ||
3660 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3661 | |
e6cc62c6 | 3662 | fi; |
10f2d63a VZ |
3663 | |
3664 | eval "$ac_cv_use_debug_gdb" | |
3665 | if test "$no_cache" != 1; then | |
3666 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3667 | fi | |
3668 | ||
3669 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3670 | echo "$as_me:$LINENO: result: yes" >&5 |
3671 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3672 | else |
e6cc62c6 VS |
3673 | echo "$as_me:$LINENO: result: no" >&5 |
3674 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3675 | fi |
e6cc62c6 | 3676 | |
10f2d63a | 3677 | |
5005acfe | 3678 | enablestring= |
e6cc62c6 VS |
3679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3680 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3681 | no_cache=0 |
3682 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3683 | if test "${enable_debug_cntxt+set}" = set; then | |
3684 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3685 | |
10f2d63a VZ |
3686 | if test "$enableval" = yes; then |
3687 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3688 | else | |
3689 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3690 | fi | |
e6cc62c6 | 3691 | |
10f2d63a | 3692 | else |
e6cc62c6 | 3693 | |
10f2d63a VZ |
3694 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3702 | |
e6cc62c6 | 3703 | fi; |
10f2d63a VZ |
3704 | |
3705 | eval "$ac_cv_use_debug_cntxt" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3711 | echo "$as_me:$LINENO: result: yes" >&5 |
3712 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3713 | else |
e6cc62c6 VS |
3714 | echo "$as_me:$LINENO: result: no" >&5 |
3715 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3716 | fi |
e6cc62c6 | 3717 | |
10f2d63a | 3718 | |
5005acfe | 3719 | enablestring= |
e6cc62c6 VS |
3720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3721 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3722 | no_cache=0 |
3723 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3724 | if test "${enable_mem_tracing+set}" = set; then | |
3725 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3726 | |
10f2d63a VZ |
3727 | if test "$enableval" = yes; then |
3728 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3729 | else | |
3730 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3731 | fi | |
e6cc62c6 | 3732 | |
10f2d63a | 3733 | else |
e6cc62c6 | 3734 | |
10f2d63a VZ |
3735 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3736 | if test "x$LINE" != x ; then | |
3737 | eval "DEFAULT_$LINE" | |
3738 | else | |
3739 | no_cache=1 | |
3740 | fi | |
3741 | ||
3742 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3743 | |
e6cc62c6 | 3744 | fi; |
10f2d63a VZ |
3745 | |
3746 | eval "$ac_cv_use_mem_tracing" | |
3747 | if test "$no_cache" != 1; then | |
3748 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3749 | fi | |
3750 | ||
3751 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3752 | echo "$as_me:$LINENO: result: yes" >&5 |
3753 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3754 | else |
e6cc62c6 VS |
3755 | echo "$as_me:$LINENO: result: no" >&5 |
3756 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3757 | fi |
e6cc62c6 | 3758 | |
10f2d63a | 3759 | |
5005acfe | 3760 | enablestring= |
e6cc62c6 VS |
3761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3762 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3763 | no_cache=0 |
3764 | # Check whether --enable-profile or --disable-profile was given. | |
3765 | if test "${enable_profile+set}" = set; then | |
3766 | enableval="$enable_profile" | |
e6cc62c6 | 3767 | |
10f2d63a VZ |
3768 | if test "$enableval" = yes; then |
3769 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3770 | else | |
3771 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3772 | fi | |
e6cc62c6 | 3773 | |
10f2d63a | 3774 | else |
e6cc62c6 | 3775 | |
10f2d63a VZ |
3776 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3777 | if test "x$LINE" != x ; then | |
3778 | eval "DEFAULT_$LINE" | |
3779 | else | |
3780 | no_cache=1 | |
3781 | fi | |
3782 | ||
3783 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3784 | |
e6cc62c6 | 3785 | fi; |
10f2d63a VZ |
3786 | |
3787 | eval "$ac_cv_use_profile" | |
3788 | if test "$no_cache" != 1; then | |
3789 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3790 | fi | |
3791 | ||
3792 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3793 | echo "$as_me:$LINENO: result: yes" >&5 |
3794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3795 | else |
e6cc62c6 VS |
3796 | echo "$as_me:$LINENO: result: no" >&5 |
3797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3798 | fi |
e6cc62c6 | 3799 | |
10f2d63a | 3800 | |
5005acfe | 3801 | enablestring= |
e6cc62c6 VS |
3802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3803 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3804 | no_cache=0 |
3805 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3806 | if test "${enable_no_rtti+set}" = set; then | |
3807 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3808 | |
10f2d63a VZ |
3809 | if test "$enableval" = yes; then |
3810 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3811 | else | |
3812 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3813 | fi | |
e6cc62c6 | 3814 | |
10f2d63a | 3815 | else |
e6cc62c6 | 3816 | |
10f2d63a VZ |
3817 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3818 | if test "x$LINE" != x ; then | |
3819 | eval "DEFAULT_$LINE" | |
3820 | else | |
3821 | no_cache=1 | |
3822 | fi | |
3823 | ||
3824 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3825 | |
e6cc62c6 | 3826 | fi; |
10f2d63a VZ |
3827 | |
3828 | eval "$ac_cv_use_no_rtti" | |
3829 | if test "$no_cache" != 1; then | |
3830 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3831 | fi | |
3832 | ||
3833 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3834 | echo "$as_me:$LINENO: result: yes" >&5 |
3835 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3836 | else |
e6cc62c6 VS |
3837 | echo "$as_me:$LINENO: result: no" >&5 |
3838 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3839 | fi |
e6cc62c6 | 3840 | |
10f2d63a | 3841 | |
5005acfe | 3842 | enablestring= |
e6cc62c6 VS |
3843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3844 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3845 | no_cache=0 |
3846 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3847 | if test "${enable_no_exceptions+set}" = set; then | |
3848 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3849 | |
10f2d63a VZ |
3850 | if test "$enableval" = yes; then |
3851 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3852 | else | |
3853 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3854 | fi | |
e6cc62c6 | 3855 | |
10f2d63a | 3856 | else |
e6cc62c6 | 3857 | |
10f2d63a VZ |
3858 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3859 | if test "x$LINE" != x ; then | |
3860 | eval "DEFAULT_$LINE" | |
3861 | else | |
3862 | no_cache=1 | |
3863 | fi | |
3864 | ||
3865 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3866 | |
e6cc62c6 | 3867 | fi; |
10f2d63a VZ |
3868 | |
3869 | eval "$ac_cv_use_no_exceptions" | |
3870 | if test "$no_cache" != 1; then | |
3871 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3872 | fi | |
3873 | ||
3874 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3875 | echo "$as_me:$LINENO: result: yes" >&5 |
3876 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3877 | else |
e6cc62c6 VS |
3878 | echo "$as_me:$LINENO: result: no" >&5 |
3879 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3880 | fi |
e6cc62c6 | 3881 | |
10f2d63a | 3882 | |
5005acfe | 3883 | enablestring= |
e6cc62c6 VS |
3884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3885 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3886 | no_cache=0 |
3887 | # Check whether --enable-permissive or --disable-permissive was given. | |
3888 | if test "${enable_permissive+set}" = set; then | |
3889 | enableval="$enable_permissive" | |
e6cc62c6 | 3890 | |
10f2d63a VZ |
3891 | if test "$enableval" = yes; then |
3892 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3893 | else | |
3894 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3895 | fi | |
e6cc62c6 | 3896 | |
10f2d63a | 3897 | else |
e6cc62c6 | 3898 | |
10f2d63a VZ |
3899 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3900 | if test "x$LINE" != x ; then | |
3901 | eval "DEFAULT_$LINE" | |
3902 | else | |
3903 | no_cache=1 | |
3904 | fi | |
3905 | ||
3906 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3907 | |
e6cc62c6 | 3908 | fi; |
10f2d63a VZ |
3909 | |
3910 | eval "$ac_cv_use_permissive" | |
3911 | if test "$no_cache" != 1; then | |
3912 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3913 | fi | |
3914 | ||
3915 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3916 | echo "$as_me:$LINENO: result: yes" >&5 |
3917 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3918 | else |
e6cc62c6 VS |
3919 | echo "$as_me:$LINENO: result: no" >&5 |
3920 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3921 | fi |
e6cc62c6 | 3922 | |
10f2d63a | 3923 | |
5005acfe | 3924 | enablestring= |
e6cc62c6 VS |
3925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3926 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3927 | no_cache=0 |
3928 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3929 | if test "${enable_no_deps+set}" = set; then | |
3930 | enableval="$enable_no_deps" | |
e6cc62c6 | 3931 | |
10f2d63a VZ |
3932 | if test "$enableval" = yes; then |
3933 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3934 | else | |
3935 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3936 | fi | |
e6cc62c6 | 3937 | |
10f2d63a | 3938 | else |
e6cc62c6 | 3939 | |
10f2d63a VZ |
3940 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3941 | if test "x$LINE" != x ; then | |
3942 | eval "DEFAULT_$LINE" | |
3943 | else | |
3944 | no_cache=1 | |
3945 | fi | |
3946 | ||
3947 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3948 | |
e6cc62c6 | 3949 | fi; |
10f2d63a VZ |
3950 | |
3951 | eval "$ac_cv_use_no_deps" | |
3952 | if test "$no_cache" != 1; then | |
3953 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3954 | fi | |
3955 | ||
3956 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3957 | echo "$as_me:$LINENO: result: yes" >&5 |
3958 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3959 | else |
e6cc62c6 VS |
3960 | echo "$as_me:$LINENO: result: no" >&5 |
3961 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3962 | fi |
e6cc62c6 | 3963 | |
52127426 | 3964 | |
8284b0c5 | 3965 | |
65d8ef1e | 3966 | enablestring= |
e6cc62c6 VS |
3967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3968 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3969 | no_cache=0 |
3970 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3971 | if test "${enable_compat22+set}" = set; then | |
3972 | enableval="$enable_compat22" | |
e6cc62c6 | 3973 | |
54276ccf VZ |
3974 | if test "$enableval" = yes; then |
3975 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3976 | else | |
3977 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3978 | fi | |
e6cc62c6 | 3979 | |
54276ccf | 3980 | else |
e6cc62c6 | 3981 | |
54276ccf VZ |
3982 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3983 | if test "x$LINE" != x ; then | |
3984 | eval "DEFAULT_$LINE" | |
3985 | else | |
3986 | no_cache=1 | |
3987 | fi | |
3988 | ||
3989 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3990 | |
e6cc62c6 | 3991 | fi; |
54276ccf VZ |
3992 | |
3993 | eval "$ac_cv_use_compat22" | |
3994 | if test "$no_cache" != 1; then | |
3995 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3996 | fi | |
3997 | ||
3998 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3999 | echo "$as_me:$LINENO: result: yes" >&5 |
4000 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 4001 | else |
e6cc62c6 VS |
4002 | echo "$as_me:$LINENO: result: no" >&5 |
4003 | echo "${ECHO_T}no" >&6 | |
54276ccf | 4004 | fi |
e6cc62c6 | 4005 | |
54276ccf | 4006 | |
65d8ef1e | 4007 | enablestring=disable |
e6cc62c6 VS |
4008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
4009 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
4010 | no_cache=0 |
4011 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4012 | if test "${enable_compat24+set}" = set; then | |
4013 | enableval="$enable_compat24" | |
e6cc62c6 | 4014 | |
65d8ef1e VS |
4015 | if test "$enableval" = yes; then |
4016 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4017 | else | |
4018 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4019 | fi | |
e6cc62c6 | 4020 | |
65d8ef1e | 4021 | else |
e6cc62c6 | 4022 | |
65d8ef1e VS |
4023 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
4024 | if test "x$LINE" != x ; then | |
4025 | eval "DEFAULT_$LINE" | |
4026 | else | |
4027 | no_cache=1 | |
4028 | fi | |
4029 | ||
4030 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 4031 | |
e6cc62c6 | 4032 | fi; |
65d8ef1e VS |
4033 | |
4034 | eval "$ac_cv_use_compat24" | |
4035 | if test "$no_cache" != 1; then | |
4036 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4037 | fi | |
4038 | ||
4039 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
4040 | echo "$as_me:$LINENO: result: yes" >&5 |
4041 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 4042 | else |
e6cc62c6 VS |
4043 | echo "$as_me:$LINENO: result: no" >&5 |
4044 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 4045 | fi |
e6cc62c6 | 4046 | |
65d8ef1e | 4047 | |
3bd8fb5f RD |
4048 | # Check whether --enable-rpath or --disable-rpath was given. |
4049 | if test "${enable_rpath+set}" = set; then | |
4050 | enableval="$enable_rpath" | |
4051 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 4052 | fi; |
3bd8fb5f RD |
4053 | |
4054 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
4055 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
4056 | fi | |
4057 | ||
8284b0c5 MB |
4058 | |
4059 | ||
4060 | ||
5005acfe | 4061 | enablestring= |
e6cc62c6 VS |
4062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
4063 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
4064 | no_cache=0 |
4065 | # Check whether --enable-intl or --disable-intl was given. | |
4066 | if test "${enable_intl+set}" = set; then | |
4067 | enableval="$enable_intl" | |
e6cc62c6 | 4068 | |
10f2d63a VZ |
4069 | if test "$enableval" = yes; then |
4070 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4071 | else | |
4072 | ac_cv_use_intl='wxUSE_INTL=no' | |
4073 | fi | |
e6cc62c6 | 4074 | |
10f2d63a | 4075 | else |
e6cc62c6 | 4076 | |
10f2d63a VZ |
4077 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
4078 | if test "x$LINE" != x ; then | |
4079 | eval "DEFAULT_$LINE" | |
4080 | else | |
4081 | no_cache=1 | |
4082 | fi | |
4083 | ||
4084 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 4085 | |
e6cc62c6 | 4086 | fi; |
10f2d63a VZ |
4087 | |
4088 | eval "$ac_cv_use_intl" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
4094 | echo "$as_me:$LINENO: result: yes" >&5 |
4095 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4096 | else |
e6cc62c6 VS |
4097 | echo "$as_me:$LINENO: result: no" >&5 |
4098 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4099 | fi |
e6cc62c6 | 4100 | |
10f2d63a | 4101 | |
5005acfe | 4102 | enablestring= |
e6cc62c6 VS |
4103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
4104 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
4105 | no_cache=0 |
4106 | # Check whether --enable-config or --disable-config was given. | |
4107 | if test "${enable_config+set}" = set; then | |
4108 | enableval="$enable_config" | |
e6cc62c6 | 4109 | |
10f2d63a VZ |
4110 | if test "$enableval" = yes; then |
4111 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4112 | else | |
4113 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4114 | fi | |
e6cc62c6 | 4115 | |
10f2d63a | 4116 | else |
e6cc62c6 | 4117 | |
10f2d63a VZ |
4118 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 4126 | |
e6cc62c6 | 4127 | fi; |
10f2d63a VZ |
4128 | |
4129 | eval "$ac_cv_use_config" | |
4130 | if test "$no_cache" != 1; then | |
4131 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4132 | fi | |
4133 | ||
4134 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4135 | echo "$as_me:$LINENO: result: yes" >&5 |
4136 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4137 | else |
e6cc62c6 VS |
4138 | echo "$as_me:$LINENO: result: no" >&5 |
4139 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4140 | fi |
e6cc62c6 | 4141 | |
52127426 | 4142 | |
8284b0c5 | 4143 | |
5005acfe | 4144 | enablestring= |
e6cc62c6 VS |
4145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4146 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4147 | no_cache=0 |
4148 | # Check whether --enable-protocols or --disable-protocols was given. | |
4149 | if test "${enable_protocols+set}" = set; then | |
4150 | enableval="$enable_protocols" | |
e6cc62c6 | 4151 | |
a1622950 VZ |
4152 | if test "$enableval" = yes; then |
4153 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4154 | else | |
4155 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4156 | fi | |
e6cc62c6 | 4157 | |
a1622950 | 4158 | else |
e6cc62c6 | 4159 | |
a1622950 VZ |
4160 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4161 | if test "x$LINE" != x ; then | |
4162 | eval "DEFAULT_$LINE" | |
4163 | else | |
4164 | no_cache=1 | |
4165 | fi | |
4166 | ||
4167 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4168 | |
e6cc62c6 | 4169 | fi; |
a1622950 VZ |
4170 | |
4171 | eval "$ac_cv_use_protocols" | |
4172 | if test "$no_cache" != 1; then | |
4173 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4174 | fi | |
4175 | ||
4176 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4177 | echo "$as_me:$LINENO: result: yes" >&5 |
4178 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4179 | else |
e6cc62c6 VS |
4180 | echo "$as_me:$LINENO: result: no" >&5 |
4181 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4182 | fi |
e6cc62c6 | 4183 | |
a1622950 | 4184 | |
5005acfe | 4185 | enablestring= |
e6cc62c6 VS |
4186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4187 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4188 | no_cache=0 |
4189 | # Check whether --enable-ftp or --disable-ftp was given. | |
4190 | if test "${enable_ftp+set}" = set; then | |
4191 | enableval="$enable_ftp" | |
e6cc62c6 | 4192 | |
a1622950 VZ |
4193 | if test "$enableval" = yes; then |
4194 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4195 | else | |
4196 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4197 | fi | |
e6cc62c6 | 4198 | |
a1622950 | 4199 | else |
e6cc62c6 | 4200 | |
a1622950 VZ |
4201 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4202 | if test "x$LINE" != x ; then | |
4203 | eval "DEFAULT_$LINE" | |
4204 | else | |
4205 | no_cache=1 | |
4206 | fi | |
4207 | ||
4208 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4209 | |
e6cc62c6 | 4210 | fi; |
a1622950 VZ |
4211 | |
4212 | eval "$ac_cv_use_ftp" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4218 | echo "$as_me:$LINENO: result: yes" >&5 |
4219 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4220 | else |
e6cc62c6 VS |
4221 | echo "$as_me:$LINENO: result: no" >&5 |
4222 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4223 | fi |
e6cc62c6 | 4224 | |
a1622950 | 4225 | |
5005acfe | 4226 | enablestring= |
e6cc62c6 VS |
4227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4228 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4229 | no_cache=0 |
4230 | # Check whether --enable-http or --disable-http was given. | |
4231 | if test "${enable_http+set}" = set; then | |
4232 | enableval="$enable_http" | |
e6cc62c6 | 4233 | |
a1622950 VZ |
4234 | if test "$enableval" = yes; then |
4235 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4236 | else | |
4237 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4238 | fi | |
e6cc62c6 | 4239 | |
a1622950 | 4240 | else |
e6cc62c6 | 4241 | |
a1622950 VZ |
4242 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4243 | if test "x$LINE" != x ; then | |
4244 | eval "DEFAULT_$LINE" | |
4245 | else | |
4246 | no_cache=1 | |
4247 | fi | |
4248 | ||
4249 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4250 | |
e6cc62c6 | 4251 | fi; |
a1622950 VZ |
4252 | |
4253 | eval "$ac_cv_use_http" | |
4254 | if test "$no_cache" != 1; then | |
4255 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4256 | fi | |
4257 | ||
4258 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4259 | echo "$as_me:$LINENO: result: yes" >&5 |
4260 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4261 | else |
e6cc62c6 VS |
4262 | echo "$as_me:$LINENO: result: no" >&5 |
4263 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4264 | fi |
e6cc62c6 | 4265 | |
a1622950 | 4266 | |
5005acfe | 4267 | enablestring= |
e6cc62c6 VS |
4268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4269 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4270 | no_cache=0 |
4271 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4272 | if test "${enable_fileproto+set}" = set; then | |
4273 | enableval="$enable_fileproto" | |
e6cc62c6 | 4274 | |
a1622950 VZ |
4275 | if test "$enableval" = yes; then |
4276 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4277 | else | |
4278 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4279 | fi | |
e6cc62c6 | 4280 | |
a1622950 | 4281 | else |
e6cc62c6 | 4282 | |
a1622950 VZ |
4283 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4291 | |
e6cc62c6 | 4292 | fi; |
a1622950 VZ |
4293 | |
4294 | eval "$ac_cv_use_fileproto" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4300 | echo "$as_me:$LINENO: result: yes" >&5 |
4301 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4302 | else |
e6cc62c6 VS |
4303 | echo "$as_me:$LINENO: result: no" >&5 |
4304 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4305 | fi |
e6cc62c6 | 4306 | |
a1622950 | 4307 | |
5005acfe | 4308 | enablestring= |
e6cc62c6 VS |
4309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4310 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4311 | no_cache=0 |
4312 | # Check whether --enable-sockets or --disable-sockets was given. | |
4313 | if test "${enable_sockets+set}" = set; then | |
4314 | enableval="$enable_sockets" | |
e6cc62c6 | 4315 | |
10f2d63a VZ |
4316 | if test "$enableval" = yes; then |
4317 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4318 | else | |
4319 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4320 | fi | |
e6cc62c6 | 4321 | |
10f2d63a | 4322 | else |
e6cc62c6 | 4323 | |
10f2d63a VZ |
4324 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4325 | if test "x$LINE" != x ; then | |
4326 | eval "DEFAULT_$LINE" | |
4327 | else | |
4328 | no_cache=1 | |
4329 | fi | |
4330 | ||
4331 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4332 | |
e6cc62c6 | 4333 | fi; |
10f2d63a VZ |
4334 | |
4335 | eval "$ac_cv_use_sockets" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4341 | echo "$as_me:$LINENO: result: yes" >&5 |
4342 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4343 | else |
e6cc62c6 VS |
4344 | echo "$as_me:$LINENO: result: no" >&5 |
4345 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4346 | fi |
e6cc62c6 | 4347 | |
8284b0c5 | 4348 | |
5005acfe | 4349 | enablestring= |
e6cc62c6 VS |
4350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4351 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4352 | no_cache=0 |
4353 | # Check whether --enable-ole or --disable-ole was given. | |
4354 | if test "${enable_ole+set}" = set; then | |
4355 | enableval="$enable_ole" | |
e6cc62c6 | 4356 | |
3bce6687 JS |
4357 | if test "$enableval" = yes; then |
4358 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4359 | else | |
4360 | ac_cv_use_ole='wxUSE_OLE=no' | |
4361 | fi | |
e6cc62c6 | 4362 | |
3bce6687 | 4363 | else |
e6cc62c6 | 4364 | |
3bce6687 JS |
4365 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4366 | if test "x$LINE" != x ; then | |
4367 | eval "DEFAULT_$LINE" | |
4368 | else | |
4369 | no_cache=1 | |
4370 | fi | |
4371 | ||
4372 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4373 | |
e6cc62c6 | 4374 | fi; |
3bce6687 JS |
4375 | |
4376 | eval "$ac_cv_use_ole" | |
4377 | if test "$no_cache" != 1; then | |
4378 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4379 | fi | |
4380 | ||
4381 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4382 | echo "$as_me:$LINENO: result: yes" >&5 |
4383 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4384 | else |
e6cc62c6 VS |
4385 | echo "$as_me:$LINENO: result: no" >&5 |
4386 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4387 | fi |
e6cc62c6 | 4388 | |
3bce6687 | 4389 | |
5005acfe | 4390 | enablestring= |
e6cc62c6 VS |
4391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4392 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4393 | no_cache=0 |
4394 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4395 | if test "${enable_dataobj+set}" = set; then | |
4396 | enableval="$enable_dataobj" | |
e6cc62c6 | 4397 | |
3bce6687 JS |
4398 | if test "$enableval" = yes; then |
4399 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4400 | else | |
4401 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4402 | fi | |
e6cc62c6 | 4403 | |
3bce6687 | 4404 | else |
e6cc62c6 | 4405 | |
3bce6687 JS |
4406 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4414 | |
e6cc62c6 | 4415 | fi; |
3bce6687 JS |
4416 | |
4417 | eval "$ac_cv_use_dataobj" | |
4418 | if test "$no_cache" != 1; then | |
4419 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4420 | fi | |
4421 | ||
4422 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4423 | echo "$as_me:$LINENO: result: yes" >&5 |
4424 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4425 | else |
e6cc62c6 VS |
4426 | echo "$as_me:$LINENO: result: no" >&5 |
4427 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4428 | fi |
e6cc62c6 | 4429 | |
3bce6687 | 4430 | |
52127426 | 4431 | |
5005acfe | 4432 | enablestring= |
e6cc62c6 VS |
4433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4434 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4435 | no_cache=0 |
eb4efbdc VZ |
4436 | # Check whether --enable-ipc or --disable-ipc was given. |
4437 | if test "${enable_ipc+set}" = set; then | |
4438 | enableval="$enable_ipc" | |
e6cc62c6 | 4439 | |
10f2d63a | 4440 | if test "$enableval" = yes; then |
eb4efbdc | 4441 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4442 | else |
eb4efbdc | 4443 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4444 | fi |
e6cc62c6 | 4445 | |
10f2d63a | 4446 | else |
e6cc62c6 | 4447 | |
eb4efbdc | 4448 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4449 | if test "x$LINE" != x ; then |
4450 | eval "DEFAULT_$LINE" | |
4451 | else | |
4452 | no_cache=1 | |
4453 | fi | |
4454 | ||
eb4efbdc | 4455 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4456 | |
e6cc62c6 | 4457 | fi; |
10f2d63a | 4458 | |
eb4efbdc | 4459 | eval "$ac_cv_use_ipc" |
10f2d63a | 4460 | if test "$no_cache" != 1; then |
eb4efbdc | 4461 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4462 | fi |
4463 | ||
eb4efbdc | 4464 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4465 | echo "$as_me:$LINENO: result: yes" >&5 |
4466 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4467 | else |
e6cc62c6 VS |
4468 | echo "$as_me:$LINENO: result: no" >&5 |
4469 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4470 | fi |
e6cc62c6 | 4471 | |
52127426 | 4472 | |
8284b0c5 | 4473 | |
5005acfe | 4474 | enablestring= |
e46d2a18 VS |
4475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4476 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4477 | no_cache=0 |
e46d2a18 VS |
4478 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4479 | if test "${enable_apple_ieee+set}" = set; then | |
4480 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4481 | |
10f2d63a | 4482 | if test "$enableval" = yes; then |
e46d2a18 | 4483 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4484 | else |
e46d2a18 | 4485 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4486 | fi |
e6cc62c6 | 4487 | |
10f2d63a | 4488 | else |
e6cc62c6 | 4489 | |
e46d2a18 | 4490 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4491 | if test "x$LINE" != x ; then |
4492 | eval "DEFAULT_$LINE" | |
4493 | else | |
4494 | no_cache=1 | |
4495 | fi | |
4496 | ||
e46d2a18 | 4497 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4498 | |
e6cc62c6 | 4499 | fi; |
10f2d63a | 4500 | |
e46d2a18 | 4501 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4502 | if test "$no_cache" != 1; then |
e46d2a18 | 4503 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4504 | fi |
4505 | ||
e46d2a18 | 4506 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4507 | echo "$as_me:$LINENO: result: yes" >&5 |
4508 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4509 | else |
e6cc62c6 VS |
4510 | echo "$as_me:$LINENO: result: no" >&5 |
4511 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4512 | fi |
e6cc62c6 | 4513 | |
10f2d63a | 4514 | |
5005acfe | 4515 | enablestring= |
e46d2a18 VS |
4516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4517 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4518 | no_cache=0 |
e46d2a18 VS |
4519 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4520 | if test "${enable_catch_segvs+set}" = set; then | |
4521 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4522 | |
10f2d63a | 4523 | if test "$enableval" = yes; then |
e46d2a18 | 4524 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4525 | else |
e46d2a18 | 4526 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4527 | fi |
e6cc62c6 | 4528 | |
10f2d63a | 4529 | else |
e6cc62c6 | 4530 | |
e46d2a18 | 4531 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4532 | if test "x$LINE" != x ; then |
4533 | eval "DEFAULT_$LINE" | |
4534 | else | |
4535 | no_cache=1 | |
4536 | fi | |
4537 | ||
e46d2a18 | 4538 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4539 | |
e6cc62c6 | 4540 | fi; |
10f2d63a | 4541 | |
e46d2a18 | 4542 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4543 | if test "$no_cache" != 1; then |
e46d2a18 | 4544 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4545 | fi |
4546 | ||
e46d2a18 | 4547 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4548 | echo "$as_me:$LINENO: result: yes" >&5 |
4549 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4550 | else |
e6cc62c6 VS |
4551 | echo "$as_me:$LINENO: result: no" >&5 |
4552 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4553 | fi |
e6cc62c6 | 4554 | |
10f2d63a | 4555 | |
5005acfe | 4556 | enablestring= |
e46d2a18 VS |
4557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4558 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4559 | no_cache=0 |
e46d2a18 VS |
4560 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4561 | if test "${enable_cmdline+set}" = set; then | |
4562 | enableval="$enable_cmdline" | |
e6cc62c6 | 4563 | |
10f2d63a | 4564 | if test "$enableval" = yes; then |
e46d2a18 | 4565 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4566 | else |
e46d2a18 | 4567 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4568 | fi |
e6cc62c6 | 4569 | |
10f2d63a | 4570 | else |
e6cc62c6 | 4571 | |
e46d2a18 | 4572 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4573 | if test "x$LINE" != x ; then |
4574 | eval "DEFAULT_$LINE" | |
4575 | else | |
4576 | no_cache=1 | |
4577 | fi | |
4578 | ||
e46d2a18 | 4579 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4580 | |
e6cc62c6 | 4581 | fi; |
10f2d63a | 4582 | |
e46d2a18 | 4583 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4584 | if test "$no_cache" != 1; then |
e46d2a18 | 4585 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4586 | fi |
4587 | ||
e46d2a18 | 4588 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4589 | echo "$as_me:$LINENO: result: yes" >&5 |
4590 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4591 | else |
e6cc62c6 VS |
4592 | echo "$as_me:$LINENO: result: no" >&5 |
4593 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4594 | fi |
e6cc62c6 | 4595 | |
10f2d63a | 4596 | |
5005acfe | 4597 | enablestring= |
e46d2a18 VS |
4598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4599 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4600 | no_cache=0 |
e46d2a18 VS |
4601 | # Check whether --enable-datetime or --disable-datetime was given. |
4602 | if test "${enable_datetime+set}" = set; then | |
4603 | enableval="$enable_datetime" | |
e6cc62c6 | 4604 | |
10f2d63a | 4605 | if test "$enableval" = yes; then |
e46d2a18 | 4606 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4607 | else |
e46d2a18 | 4608 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4609 | fi |
e6cc62c6 | 4610 | |
10f2d63a | 4611 | else |
e6cc62c6 | 4612 | |
e46d2a18 | 4613 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4614 | if test "x$LINE" != x ; then |
4615 | eval "DEFAULT_$LINE" | |
4616 | else | |
4617 | no_cache=1 | |
4618 | fi | |
4619 | ||
e46d2a18 | 4620 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4621 | |
e6cc62c6 | 4622 | fi; |
10f2d63a | 4623 | |
e46d2a18 | 4624 | eval "$ac_cv_use_datetime" |
10f2d63a | 4625 | if test "$no_cache" != 1; then |
e46d2a18 | 4626 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4627 | fi |
4628 | ||
e46d2a18 | 4629 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4630 | echo "$as_me:$LINENO: result: yes" >&5 |
4631 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4632 | else |
e6cc62c6 VS |
4633 | echo "$as_me:$LINENO: result: no" >&5 |
4634 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4635 | fi |
e6cc62c6 | 4636 | |
10f2d63a | 4637 | |
5005acfe | 4638 | enablestring= |
e46d2a18 VS |
4639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4640 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4641 | no_cache=0 |
e46d2a18 VS |
4642 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4643 | if test "${enable_dialupman+set}" = set; then | |
4644 | enableval="$enable_dialupman" | |
e6cc62c6 | 4645 | |
10f2d63a | 4646 | if test "$enableval" = yes; then |
e46d2a18 | 4647 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4648 | else |
e46d2a18 | 4649 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4650 | fi |
e6cc62c6 | 4651 | |
10f2d63a | 4652 | else |
e6cc62c6 | 4653 | |
e46d2a18 | 4654 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4655 | if test "x$LINE" != x ; then |
4656 | eval "DEFAULT_$LINE" | |
4657 | else | |
4658 | no_cache=1 | |
4659 | fi | |
4660 | ||
e46d2a18 | 4661 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4662 | |
e6cc62c6 | 4663 | fi; |
10f2d63a | 4664 | |
e46d2a18 | 4665 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4666 | if test "$no_cache" != 1; then |
e46d2a18 | 4667 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4668 | fi |
4669 | ||
e46d2a18 | 4670 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4671 | echo "$as_me:$LINENO: result: yes" >&5 |
4672 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4673 | else |
e6cc62c6 VS |
4674 | echo "$as_me:$LINENO: result: no" >&5 |
4675 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4676 | fi |
e6cc62c6 | 4677 | |
10f2d63a | 4678 | |
5005acfe | 4679 | enablestring= |
e6cc62c6 VS |
4680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4681 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4682 | no_cache=0 |
4683 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4684 | if test "${enable_dynlib+set}" = set; then | |
4685 | enableval="$enable_dynlib" | |
e6cc62c6 | 4686 | |
10f2d63a VZ |
4687 | if test "$enableval" = yes; then |
4688 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4689 | else | |
4690 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4691 | fi | |
e6cc62c6 | 4692 | |
10f2d63a | 4693 | else |
e6cc62c6 | 4694 | |
10f2d63a VZ |
4695 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4696 | if test "x$LINE" != x ; then | |
4697 | eval "DEFAULT_$LINE" | |
4698 | else | |
4699 | no_cache=1 | |
4700 | fi | |
4701 | ||
4702 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4703 | |
e6cc62c6 | 4704 | fi; |
10f2d63a VZ |
4705 | |
4706 | eval "$ac_cv_use_dynlib" | |
4707 | if test "$no_cache" != 1; then | |
4708 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4709 | fi | |
4710 | ||
4711 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4712 | echo "$as_me:$LINENO: result: yes" >&5 |
4713 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4714 | else |
e6cc62c6 VS |
4715 | echo "$as_me:$LINENO: result: no" >&5 |
4716 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4717 | fi |
e6cc62c6 | 4718 | |
10f2d63a | 4719 | |
5005acfe | 4720 | enablestring= |
e6cc62c6 VS |
4721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4722 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4723 | no_cache=0 |
4724 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4725 | if test "${enable_dynamicloader+set}" = set; then | |
4726 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4727 | |
0b9ab0bd RL |
4728 | if test "$enableval" = yes; then |
4729 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4730 | else | |
4731 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4732 | fi | |
e6cc62c6 | 4733 | |
0b9ab0bd | 4734 | else |
e6cc62c6 | 4735 | |
0b9ab0bd RL |
4736 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4737 | if test "x$LINE" != x ; then | |
4738 | eval "DEFAULT_$LINE" | |
4739 | else | |
4740 | no_cache=1 | |
4741 | fi | |
4742 | ||
4743 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4744 | |
e6cc62c6 | 4745 | fi; |
0b9ab0bd RL |
4746 | |
4747 | eval "$ac_cv_use_dynamicloader" | |
4748 | if test "$no_cache" != 1; then | |
4749 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4750 | fi | |
4751 | ||
4752 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4753 | echo "$as_me:$LINENO: result: yes" >&5 |
4754 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4755 | else |
e6cc62c6 VS |
4756 | echo "$as_me:$LINENO: result: no" >&5 |
4757 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4758 | fi |
e6cc62c6 | 4759 | |
0b9ab0bd | 4760 | |
5005acfe | 4761 | enablestring= |
e46d2a18 VS |
4762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4763 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4764 | no_cache=0 |
e46d2a18 VS |
4765 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4766 | if test "${enable_exceptions+set}" = set; then | |
4767 | enableval="$enable_exceptions" | |
e6cc62c6 | 4768 | |
10f2d63a | 4769 | if test "$enableval" = yes; then |
e46d2a18 | 4770 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4771 | else |
e46d2a18 | 4772 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4773 | fi |
e6cc62c6 | 4774 | |
10f2d63a | 4775 | else |
e6cc62c6 | 4776 | |
e46d2a18 | 4777 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4778 | if test "x$LINE" != x ; then |
4779 | eval "DEFAULT_$LINE" | |
4780 | else | |
4781 | no_cache=1 | |
4782 | fi | |
4783 | ||
e46d2a18 | 4784 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4785 | |
e6cc62c6 | 4786 | fi; |
10f2d63a | 4787 | |
e46d2a18 | 4788 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4789 | if test "$no_cache" != 1; then |
e46d2a18 | 4790 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4791 | fi |
4792 | ||
e46d2a18 | 4793 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4794 | echo "$as_me:$LINENO: result: yes" >&5 |
4795 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4796 | else |
e6cc62c6 VS |
4797 | echo "$as_me:$LINENO: result: no" >&5 |
4798 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4799 | fi |
e6cc62c6 | 4800 | |
10f2d63a | 4801 | |
5005acfe | 4802 | enablestring= |
e46d2a18 VS |
4803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4804 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4805 | no_cache=0 |
e46d2a18 VS |
4806 | # Check whether --enable-ffile or --disable-ffile was given. |
4807 | if test "${enable_ffile+set}" = set; then | |
4808 | enableval="$enable_ffile" | |
e6cc62c6 | 4809 | |
e8f65ba6 | 4810 | if test "$enableval" = yes; then |
e46d2a18 | 4811 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4812 | else |
e46d2a18 | 4813 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4814 | fi |
e6cc62c6 | 4815 | |
e8f65ba6 | 4816 | else |
e6cc62c6 | 4817 | |
e46d2a18 | 4818 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4819 | if test "x$LINE" != x ; then |
4820 | eval "DEFAULT_$LINE" | |
4821 | else | |
4822 | no_cache=1 | |
4823 | fi | |
4824 | ||
e46d2a18 | 4825 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4826 | |
e6cc62c6 | 4827 | fi; |
e8f65ba6 | 4828 | |
e46d2a18 | 4829 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4830 | if test "$no_cache" != 1; then |
e46d2a18 | 4831 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4832 | fi |
4833 | ||
e46d2a18 | 4834 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4835 | echo "$as_me:$LINENO: result: yes" >&5 |
4836 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4837 | else |
e6cc62c6 VS |
4838 | echo "$as_me:$LINENO: result: no" >&5 |
4839 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4840 | fi |
e6cc62c6 | 4841 | |
e8f65ba6 | 4842 | |
5005acfe | 4843 | enablestring= |
e46d2a18 VS |
4844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4845 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4846 | no_cache=0 |
e46d2a18 VS |
4847 | # Check whether --enable-file or --disable-file was given. |
4848 | if test "${enable_file+set}" = set; then | |
4849 | enableval="$enable_file" | |
e6cc62c6 | 4850 | |
10f2d63a | 4851 | if test "$enableval" = yes; then |
e46d2a18 | 4852 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4853 | else |
e46d2a18 | 4854 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4855 | fi |
e6cc62c6 | 4856 | |
10f2d63a | 4857 | else |
e6cc62c6 | 4858 | |
e46d2a18 | 4859 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4860 | if test "x$LINE" != x ; then |
4861 | eval "DEFAULT_$LINE" | |
4862 | else | |
4863 | no_cache=1 | |
4864 | fi | |
4865 | ||
e46d2a18 | 4866 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4867 | |
e6cc62c6 | 4868 | fi; |
10f2d63a | 4869 | |
e46d2a18 | 4870 | eval "$ac_cv_use_file" |
10f2d63a | 4871 | if test "$no_cache" != 1; then |
e46d2a18 | 4872 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4873 | fi |
4874 | ||
e46d2a18 | 4875 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4876 | echo "$as_me:$LINENO: result: yes" >&5 |
4877 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4878 | else |
e6cc62c6 VS |
4879 | echo "$as_me:$LINENO: result: no" >&5 |
4880 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4881 | fi |
e6cc62c6 | 4882 | |
10f2d63a | 4883 | |
5005acfe | 4884 | enablestring= |
e46d2a18 VS |
4885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4886 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4887 | no_cache=0 |
e46d2a18 VS |
4888 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4889 | if test "${enable_filesystem+set}" = set; then | |
4890 | enableval="$enable_filesystem" | |
e6cc62c6 | 4891 | |
10f2d63a | 4892 | if test "$enableval" = yes; then |
e46d2a18 | 4893 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4894 | else |
e46d2a18 | 4895 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4896 | fi |
e6cc62c6 | 4897 | |
10f2d63a | 4898 | else |
e6cc62c6 | 4899 | |
e46d2a18 | 4900 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4901 | if test "x$LINE" != x ; then |
4902 | eval "DEFAULT_$LINE" | |
4903 | else | |
4904 | no_cache=1 | |
4905 | fi | |
4906 | ||
e46d2a18 | 4907 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4908 | |
e6cc62c6 | 4909 | fi; |
10f2d63a | 4910 | |
e46d2a18 | 4911 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4912 | if test "$no_cache" != 1; then |
e46d2a18 | 4913 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4914 | fi |
4915 | ||
e46d2a18 | 4916 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4917 | echo "$as_me:$LINENO: result: yes" >&5 |
4918 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4919 | else |
e6cc62c6 VS |
4920 | echo "$as_me:$LINENO: result: no" >&5 |
4921 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4922 | fi |
e6cc62c6 | 4923 | |
10f2d63a | 4924 | |
5005acfe | 4925 | enablestring= |
e46d2a18 VS |
4926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4927 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4928 | no_cache=0 |
e46d2a18 VS |
4929 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4930 | if test "${enable_fontmap+set}" = set; then | |
4931 | enableval="$enable_fontmap" | |
e6cc62c6 | 4932 | |
10f2d63a | 4933 | if test "$enableval" = yes; then |
e46d2a18 | 4934 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4935 | else |
e46d2a18 | 4936 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4937 | fi |
e6cc62c6 | 4938 | |
10f2d63a | 4939 | else |
e6cc62c6 | 4940 | |
e46d2a18 | 4941 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4942 | if test "x$LINE" != x ; then |
4943 | eval "DEFAULT_$LINE" | |
4944 | else | |
4945 | no_cache=1 | |
4946 | fi | |
4947 | ||
e46d2a18 | 4948 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4949 | |
e6cc62c6 | 4950 | fi; |
10f2d63a | 4951 | |
e46d2a18 | 4952 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4953 | if test "$no_cache" != 1; then |
e46d2a18 | 4954 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4955 | fi |
4956 | ||
e46d2a18 | 4957 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4958 | echo "$as_me:$LINENO: result: yes" >&5 |
4959 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4960 | else |
e6cc62c6 VS |
4961 | echo "$as_me:$LINENO: result: no" >&5 |
4962 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4963 | fi |
e6cc62c6 | 4964 | |
10f2d63a | 4965 | |
5005acfe | 4966 | enablestring= |
e46d2a18 VS |
4967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4968 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4969 | no_cache=0 |
e46d2a18 VS |
4970 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4971 | if test "${enable_fs_inet+set}" = set; then | |
4972 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4973 | |
10f2d63a | 4974 | if test "$enableval" = yes; then |
e46d2a18 | 4975 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4976 | else |
e46d2a18 | 4977 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4978 | fi |
e6cc62c6 | 4979 | |
10f2d63a | 4980 | else |
e6cc62c6 | 4981 | |
e46d2a18 | 4982 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4983 | if test "x$LINE" != x ; then |
4984 | eval "DEFAULT_$LINE" | |
4985 | else | |
4986 | no_cache=1 | |
4987 | fi | |
4988 | ||
e46d2a18 | 4989 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4990 | |
e6cc62c6 | 4991 | fi; |
10f2d63a | 4992 | |
e46d2a18 | 4993 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4994 | if test "$no_cache" != 1; then |
e46d2a18 | 4995 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4996 | fi |
4997 | ||
e46d2a18 | 4998 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
4999 | echo "$as_me:$LINENO: result: yes" >&5 |
5000 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5001 | else |
e6cc62c6 VS |
5002 | echo "$as_me:$LINENO: result: no" >&5 |
5003 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5004 | fi |
e6cc62c6 | 5005 | |
10f2d63a | 5006 | |
5005acfe | 5007 | enablestring= |
e46d2a18 VS |
5008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5009 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 5010 | no_cache=0 |
e46d2a18 VS |
5011 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
5012 | if test "${enable_fs_zip+set}" = set; then | |
5013 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5014 | |
a3a584a7 | 5015 | if test "$enableval" = yes; then |
e46d2a18 | 5016 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 5017 | else |
e46d2a18 | 5018 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 5019 | fi |
e6cc62c6 | 5020 | |
a3a584a7 | 5021 | else |
e6cc62c6 | 5022 | |
e46d2a18 | 5023 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
5024 | if test "x$LINE" != x ; then |
5025 | eval "DEFAULT_$LINE" | |
5026 | else | |
5027 | no_cache=1 | |
5028 | fi | |
5029 | ||
e46d2a18 | 5030 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 5031 | |
e6cc62c6 | 5032 | fi; |
a3a584a7 | 5033 | |
e46d2a18 | 5034 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 5035 | if test "$no_cache" != 1; then |
e46d2a18 | 5036 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
5037 | fi |
5038 | ||
e46d2a18 | 5039 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
5040 | echo "$as_me:$LINENO: result: yes" >&5 |
5041 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 5042 | else |
e6cc62c6 VS |
5043 | echo "$as_me:$LINENO: result: no" >&5 |
5044 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 5045 | fi |
e6cc62c6 | 5046 | |
a3a584a7 | 5047 | |
5005acfe | 5048 | enablestring= |
e46d2a18 VS |
5049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
5050 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 5051 | no_cache=0 |
e46d2a18 VS |
5052 | # Check whether --enable-geometry or --disable-geometry was given. |
5053 | if test "${enable_geometry+set}" = set; then | |
5054 | enableval="$enable_geometry" | |
e6cc62c6 | 5055 | |
10f2d63a | 5056 | if test "$enableval" = yes; then |
e46d2a18 | 5057 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 5058 | else |
e46d2a18 | 5059 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 5060 | fi |
e6cc62c6 | 5061 | |
10f2d63a | 5062 | else |
e6cc62c6 | 5063 | |
e46d2a18 | 5064 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
5065 | if test "x$LINE" != x ; then |
5066 | eval "DEFAULT_$LINE" | |
5067 | else | |
5068 | no_cache=1 | |
5069 | fi | |
5070 | ||
e46d2a18 | 5071 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 5072 | |
e6cc62c6 | 5073 | fi; |
10f2d63a | 5074 | |
e46d2a18 | 5075 | eval "$ac_cv_use_geometry" |
10f2d63a | 5076 | if test "$no_cache" != 1; then |
e46d2a18 | 5077 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5078 | fi |
5079 | ||
e46d2a18 | 5080 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
5081 | echo "$as_me:$LINENO: result: yes" >&5 |
5082 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5083 | else |
e6cc62c6 VS |
5084 | echo "$as_me:$LINENO: result: no" >&5 |
5085 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5086 | fi |
e6cc62c6 | 5087 | |
10f2d63a | 5088 | |
5005acfe | 5089 | enablestring= |
e46d2a18 VS |
5090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
5091 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 5092 | no_cache=0 |
e46d2a18 VS |
5093 | # Check whether --enable-log or --disable-log was given. |
5094 | if test "${enable_log+set}" = set; then | |
5095 | enableval="$enable_log" | |
e6cc62c6 | 5096 | |
10f2d63a | 5097 | if test "$enableval" = yes; then |
e46d2a18 | 5098 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 5099 | else |
e46d2a18 | 5100 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 5101 | fi |
e6cc62c6 | 5102 | |
10f2d63a | 5103 | else |
e6cc62c6 | 5104 | |
e46d2a18 | 5105 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
5106 | if test "x$LINE" != x ; then |
5107 | eval "DEFAULT_$LINE" | |
5108 | else | |
5109 | no_cache=1 | |
5110 | fi | |
5111 | ||
e46d2a18 | 5112 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 5113 | |
e6cc62c6 | 5114 | fi; |
10f2d63a | 5115 | |
e46d2a18 | 5116 | eval "$ac_cv_use_log" |
10f2d63a | 5117 | if test "$no_cache" != 1; then |
e46d2a18 | 5118 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5119 | fi |
5120 | ||
e46d2a18 | 5121 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
5122 | echo "$as_me:$LINENO: result: yes" >&5 |
5123 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5124 | else |
e6cc62c6 VS |
5125 | echo "$as_me:$LINENO: result: no" >&5 |
5126 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5127 | fi |
e6cc62c6 | 5128 | |
10f2d63a | 5129 | |
5005acfe | 5130 | enablestring= |
e46d2a18 VS |
5131 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
5132 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5133 | no_cache=0 |
e46d2a18 VS |
5134 | # Check whether --enable-longlong or --disable-longlong was given. |
5135 | if test "${enable_longlong+set}" = set; then | |
5136 | enableval="$enable_longlong" | |
e6cc62c6 | 5137 | |
1e6feb95 | 5138 | if test "$enableval" = yes; then |
e46d2a18 | 5139 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5140 | else |
e46d2a18 | 5141 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5142 | fi |
e6cc62c6 | 5143 | |
1e6feb95 | 5144 | else |
e6cc62c6 | 5145 | |
e46d2a18 | 5146 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5147 | if test "x$LINE" != x ; then |
5148 | eval "DEFAULT_$LINE" | |
5149 | else | |
5150 | no_cache=1 | |
5151 | fi | |
5152 | ||
e46d2a18 | 5153 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5154 | |
e6cc62c6 | 5155 | fi; |
1e6feb95 | 5156 | |
e46d2a18 | 5157 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5158 | if test "$no_cache" != 1; then |
e46d2a18 | 5159 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5160 | fi |
5161 | ||
e46d2a18 VS |
5162 | if test "$wxUSE_LONGLONG" = yes; then |
5163 | echo "$as_me:$LINENO: result: yes" >&5 | |
5164 | echo "${ECHO_T}yes" >&6 | |
5165 | else | |
5166 | echo "$as_me:$LINENO: result: no" >&5 | |
5167 | echo "${ECHO_T}no" >&6 | |
5168 | fi | |
5169 | ||
5170 | ||
5171 | enablestring= | |
5172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5173 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5174 | no_cache=0 | |
5175 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5176 | if test "${enable_mimetype+set}" = set; then | |
5177 | enableval="$enable_mimetype" | |
5178 | ||
5179 | if test "$enableval" = yes; then | |
5180 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5181 | else | |
5182 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5183 | fi | |
5184 | ||
5185 | else | |
5186 | ||
5187 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5188 | if test "x$LINE" != x ; then | |
5189 | eval "DEFAULT_$LINE" | |
5190 | else | |
5191 | no_cache=1 | |
5192 | fi | |
5193 | ||
5194 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5195 | ||
5196 | fi; | |
5197 | ||
5198 | eval "$ac_cv_use_mimetype" | |
5199 | if test "$no_cache" != 1; then | |
5200 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5201 | fi | |
5202 | ||
5203 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5204 | echo "$as_me:$LINENO: result: yes" >&5 |
5205 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5206 | else |
e6cc62c6 VS |
5207 | echo "$as_me:$LINENO: result: no" >&5 |
5208 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5209 | fi |
e6cc62c6 | 5210 | |
1e6feb95 | 5211 | |
5005acfe | 5212 | enablestring= |
e6cc62c6 VS |
5213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5214 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5215 | no_cache=0 |
5216 | # Check whether --enable-mslu or --disable-mslu was given. | |
5217 | if test "${enable_mslu+set}" = set; then | |
5218 | enableval="$enable_mslu" | |
e6cc62c6 | 5219 | |
a72a4bfa VS |
5220 | if test "$enableval" = yes; then |
5221 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5222 | else | |
5223 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5224 | fi | |
e6cc62c6 | 5225 | |
a72a4bfa | 5226 | else |
e6cc62c6 | 5227 | |
a72a4bfa VS |
5228 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5229 | if test "x$LINE" != x ; then | |
5230 | eval "DEFAULT_$LINE" | |
5231 | else | |
5232 | no_cache=1 | |
5233 | fi | |
5234 | ||
5235 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5236 | |
e6cc62c6 | 5237 | fi; |
a72a4bfa VS |
5238 | |
5239 | eval "$ac_cv_use_mslu" | |
5240 | if test "$no_cache" != 1; then | |
5241 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5242 | fi | |
5243 | ||
5244 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5245 | echo "$as_me:$LINENO: result: yes" >&5 |
5246 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5247 | else |
e6cc62c6 VS |
5248 | echo "$as_me:$LINENO: result: no" >&5 |
5249 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5250 | fi |
e6cc62c6 | 5251 | |
a72a4bfa | 5252 | |
5005acfe | 5253 | enablestring= |
e46d2a18 VS |
5254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5255 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5256 | no_cache=0 |
e46d2a18 VS |
5257 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5258 | if test "${enable_snglinst+set}" = set; then | |
5259 | enableval="$enable_snglinst" | |
e6cc62c6 | 5260 | |
1e6feb95 | 5261 | if test "$enableval" = yes; then |
e46d2a18 | 5262 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5263 | else |
e46d2a18 | 5264 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5265 | fi |
e6cc62c6 | 5266 | |
10f2d63a | 5267 | else |
e6cc62c6 | 5268 | |
e46d2a18 | 5269 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5270 | if test "x$LINE" != x ; then |
5271 | eval "DEFAULT_$LINE" | |
5272 | else | |
5273 | no_cache=1 | |
5274 | fi | |
5275 | ||
e46d2a18 | 5276 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5277 | |
e6cc62c6 | 5278 | fi; |
10f2d63a | 5279 | |
e46d2a18 | 5280 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5281 | if test "$no_cache" != 1; then |
e46d2a18 | 5282 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5283 | fi |
5284 | ||
e46d2a18 VS |
5285 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5286 | echo "$as_me:$LINENO: result: yes" >&5 | |
5287 | echo "${ECHO_T}yes" >&6 | |
5288 | else | |
5289 | echo "$as_me:$LINENO: result: no" >&5 | |
5290 | echo "${ECHO_T}no" >&6 | |
5291 | fi | |
5292 | ||
5293 | ||
5294 | enablestring= | |
5295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5296 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5297 | no_cache=0 | |
5298 | # Check whether --enable-streams or --disable-streams was given. | |
5299 | if test "${enable_streams+set}" = set; then | |
5300 | enableval="$enable_streams" | |
5301 | ||
5302 | if test "$enableval" = yes; then | |
5303 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5304 | else | |
5305 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5306 | fi | |
5307 | ||
5308 | else | |
5309 | ||
5310 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5318 | ||
5319 | fi; | |
5320 | ||
5321 | eval "$ac_cv_use_streams" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5327 | echo "$as_me:$LINENO: result: yes" >&5 |
5328 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5329 | else |
e6cc62c6 VS |
5330 | echo "$as_me:$LINENO: result: no" >&5 |
5331 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5332 | fi |
e6cc62c6 | 5333 | |
10f2d63a | 5334 | |
5005acfe | 5335 | enablestring= |
e6cc62c6 VS |
5336 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5337 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5338 | no_cache=0 |
5339 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5340 | if test "${enable_std_iostreams+set}" = set; then | |
5341 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5342 | |
10f2d63a VZ |
5343 | if test "$enableval" = yes; then |
5344 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5345 | else | |
5346 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5347 | fi | |
e6cc62c6 | 5348 | |
10f2d63a | 5349 | else |
e6cc62c6 | 5350 | |
10f2d63a VZ |
5351 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5352 | if test "x$LINE" != x ; then | |
5353 | eval "DEFAULT_$LINE" | |
5354 | else | |
5355 | no_cache=1 | |
5356 | fi | |
5357 | ||
5358 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5359 | |
e6cc62c6 | 5360 | fi; |
10f2d63a VZ |
5361 | |
5362 | eval "$ac_cv_use_std_iostreams" | |
5363 | if test "$no_cache" != 1; then | |
5364 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5365 | fi | |
5366 | ||
5367 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5368 | echo "$as_me:$LINENO: result: yes" >&5 |
5369 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5370 | else |
e6cc62c6 VS |
5371 | echo "$as_me:$LINENO: result: no" >&5 |
5372 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5373 | fi |
e6cc62c6 | 5374 | |
10f2d63a | 5375 | |
5005acfe | 5376 | enablestring= |
e46d2a18 VS |
5377 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5378 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5379 | no_cache=0 |
e46d2a18 VS |
5380 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5381 | if test "${enable_stopwatch+set}" = set; then | |
5382 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5383 | |
24528b0c | 5384 | if test "$enableval" = yes; then |
e46d2a18 | 5385 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5386 | else |
e46d2a18 | 5387 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5388 | fi |
e6cc62c6 | 5389 | |
24528b0c | 5390 | else |
e6cc62c6 | 5391 | |
e46d2a18 | 5392 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5393 | if test "x$LINE" != x ; then |
5394 | eval "DEFAULT_$LINE" | |
5395 | else | |
5396 | no_cache=1 | |
5397 | fi | |
5398 | ||
e46d2a18 | 5399 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5400 | |
e6cc62c6 | 5401 | fi; |
24528b0c | 5402 | |
e46d2a18 | 5403 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5404 | if test "$no_cache" != 1; then |
e46d2a18 | 5405 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5406 | fi |
5407 | ||
e46d2a18 | 5408 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5409 | echo "$as_me:$LINENO: result: yes" >&5 |
5410 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5411 | else |
e6cc62c6 VS |
5412 | echo "$as_me:$LINENO: result: no" >&5 |
5413 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5414 | fi |
e6cc62c6 | 5415 | |
24528b0c | 5416 | |
5005acfe | 5417 | enablestring= |
e46d2a18 VS |
5418 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5419 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5420 | no_cache=0 |
e46d2a18 VS |
5421 | # Check whether --enable-system_options or --disable-system_options was given. |
5422 | if test "${enable_system_options+set}" = set; then | |
5423 | enableval="$enable_system_options" | |
e6cc62c6 | 5424 | |
10f2d63a | 5425 | if test "$enableval" = yes; then |
e46d2a18 | 5426 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5427 | else |
e46d2a18 | 5428 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5429 | fi |
e6cc62c6 | 5430 | |
10f2d63a | 5431 | else |
e6cc62c6 | 5432 | |
e46d2a18 | 5433 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5434 | if test "x$LINE" != x ; then |
5435 | eval "DEFAULT_$LINE" | |
5436 | else | |
5437 | no_cache=1 | |
5438 | fi | |
5439 | ||
e46d2a18 | 5440 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5441 | |
e6cc62c6 | 5442 | fi; |
10f2d63a | 5443 | |
e46d2a18 | 5444 | eval "$ac_cv_use_system_options" |
10f2d63a | 5445 | if test "$no_cache" != 1; then |
e46d2a18 | 5446 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5447 | fi |
5448 | ||
e46d2a18 | 5449 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5450 | echo "$as_me:$LINENO: result: yes" >&5 |
5451 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5452 | else |
e6cc62c6 VS |
5453 | echo "$as_me:$LINENO: result: no" >&5 |
5454 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5455 | fi |
e6cc62c6 | 5456 | |
10f2d63a | 5457 | |
5005acfe | 5458 | enablestring= |
e46d2a18 VS |
5459 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5460 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5461 | no_cache=0 |
e46d2a18 VS |
5462 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5463 | if test "${enable_textbuf+set}" = set; then | |
5464 | enableval="$enable_textbuf" | |
e6cc62c6 | 5465 | |
10f2d63a | 5466 | if test "$enableval" = yes; then |
e46d2a18 | 5467 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5468 | else |
e46d2a18 | 5469 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5470 | fi |
e6cc62c6 | 5471 | |
10f2d63a | 5472 | else |
e6cc62c6 | 5473 | |
e46d2a18 | 5474 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5475 | if test "x$LINE" != x ; then |
5476 | eval "DEFAULT_$LINE" | |
5477 | else | |
5478 | no_cache=1 | |
5479 | fi | |
5480 | ||
e46d2a18 | 5481 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5482 | |
e6cc62c6 | 5483 | fi; |
10f2d63a | 5484 | |
e46d2a18 | 5485 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5486 | if test "$no_cache" != 1; then |
e46d2a18 | 5487 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5488 | fi |
5489 | ||
e46d2a18 | 5490 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5491 | echo "$as_me:$LINENO: result: yes" >&5 |
5492 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5493 | else |
e6cc62c6 VS |
5494 | echo "$as_me:$LINENO: result: no" >&5 |
5495 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5496 | fi |
e6cc62c6 | 5497 | |
10f2d63a | 5498 | |
5005acfe | 5499 | enablestring= |
e46d2a18 VS |
5500 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5501 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5502 | no_cache=0 |
e46d2a18 VS |
5503 | # Check whether --enable-textfile or --disable-textfile was given. |
5504 | if test "${enable_textfile+set}" = set; then | |
5505 | enableval="$enable_textfile" | |
e6cc62c6 | 5506 | |
10f2d63a | 5507 | if test "$enableval" = yes; then |
e46d2a18 | 5508 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5509 | else |
e46d2a18 | 5510 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5511 | fi |
e6cc62c6 | 5512 | |
10f2d63a | 5513 | else |
e6cc62c6 | 5514 | |
e46d2a18 | 5515 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5516 | if test "x$LINE" != x ; then |
5517 | eval "DEFAULT_$LINE" | |
5518 | else | |
5519 | no_cache=1 | |
5520 | fi | |
5521 | ||
e46d2a18 | 5522 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5523 | |
e6cc62c6 | 5524 | fi; |
10f2d63a | 5525 | |
e46d2a18 | 5526 | eval "$ac_cv_use_textfile" |
10f2d63a | 5527 | if test "$no_cache" != 1; then |
e46d2a18 | 5528 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5529 | fi |
5530 | ||
e46d2a18 | 5531 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5532 | echo "$as_me:$LINENO: result: yes" >&5 |
5533 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5534 | else |
e6cc62c6 VS |
5535 | echo "$as_me:$LINENO: result: no" >&5 |
5536 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5537 | fi |
e6cc62c6 | 5538 | |
8284b0c5 | 5539 | |
5005acfe | 5540 | enablestring= |
e46d2a18 VS |
5541 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5542 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5543 | no_cache=0 |
e46d2a18 VS |
5544 | # Check whether --enable-timer or --disable-timer was given. |
5545 | if test "${enable_timer+set}" = set; then | |
5546 | enableval="$enable_timer" | |
e6cc62c6 | 5547 | |
eb4efbdc | 5548 | if test "$enableval" = yes; then |
e46d2a18 | 5549 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5550 | else |
e46d2a18 | 5551 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5552 | fi |
e6cc62c6 | 5553 | |
eb4efbdc | 5554 | else |
e6cc62c6 | 5555 | |
e46d2a18 | 5556 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5557 | if test "x$LINE" != x ; then |
5558 | eval "DEFAULT_$LINE" | |
5559 | else | |
5560 | no_cache=1 | |
5561 | fi | |
5562 | ||
e46d2a18 | 5563 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5564 | |
e6cc62c6 | 5565 | fi; |
eb4efbdc | 5566 | |
e46d2a18 | 5567 | eval "$ac_cv_use_timer" |
eb4efbdc | 5568 | if test "$no_cache" != 1; then |
e46d2a18 | 5569 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5570 | fi |
5571 | ||
e46d2a18 | 5572 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5573 | echo "$as_me:$LINENO: result: yes" >&5 |
5574 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5575 | else |
e6cc62c6 VS |
5576 | echo "$as_me:$LINENO: result: no" >&5 |
5577 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5578 | fi |
e6cc62c6 | 5579 | |
eb4efbdc | 5580 | |
5005acfe | 5581 | enablestring= |
e46d2a18 VS |
5582 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5583 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5584 | no_cache=0 |
e46d2a18 VS |
5585 | # Check whether --enable-unicode or --disable-unicode was given. |
5586 | if test "${enable_unicode+set}" = set; then | |
5587 | enableval="$enable_unicode" | |
e6cc62c6 | 5588 | |
4f3c5f06 | 5589 | if test "$enableval" = yes; then |
e46d2a18 | 5590 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5591 | else |
e46d2a18 | 5592 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5593 | fi |
e6cc62c6 | 5594 | |
4f3c5f06 | 5595 | else |
e6cc62c6 | 5596 | |
e46d2a18 | 5597 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5598 | if test "x$LINE" != x ; then |
5599 | eval "DEFAULT_$LINE" | |
5600 | else | |
5601 | no_cache=1 | |
5602 | fi | |
5603 | ||
e46d2a18 | 5604 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5605 | |
e6cc62c6 | 5606 | fi; |
4f3c5f06 | 5607 | |
e46d2a18 | 5608 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5609 | if test "$no_cache" != 1; then |
e46d2a18 | 5610 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5611 | fi |
5612 | ||
e46d2a18 | 5613 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5614 | echo "$as_me:$LINENO: result: yes" >&5 |
5615 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5616 | else |
e6cc62c6 VS |
5617 | echo "$as_me:$LINENO: result: no" >&5 |
5618 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5619 | fi |
e6cc62c6 | 5620 | |
52127426 | 5621 | |
e46d2a18 | 5622 | enablestring= |
002ed9af VS |
5623 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 |
5624 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
e46d2a18 | 5625 | no_cache=0 |
002ed9af VS |
5626 | # Check whether --enable-sound or --disable-sound was given. |
5627 | if test "${enable_sound+set}" = set; then | |
5628 | enableval="$enable_sound" | |
e46d2a18 VS |
5629 | |
5630 | if test "$enableval" = yes; then | |
002ed9af | 5631 | ac_cv_use_sound='wxUSE_SOUND=yes' |
e46d2a18 | 5632 | else |
002ed9af | 5633 | ac_cv_use_sound='wxUSE_SOUND=no' |
e46d2a18 VS |
5634 | fi |
5635 | ||
5636 | else | |
5637 | ||
002ed9af | 5638 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` |
e46d2a18 VS |
5639 | if test "x$LINE" != x ; then |
5640 | eval "DEFAULT_$LINE" | |
5641 | else | |
5642 | no_cache=1 | |
5643 | fi | |
5644 | ||
002ed9af | 5645 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND |
e46d2a18 VS |
5646 | |
5647 | fi; | |
5648 | ||
002ed9af | 5649 | eval "$ac_cv_use_sound" |
e46d2a18 | 5650 | if test "$no_cache" != 1; then |
002ed9af | 5651 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp |
e46d2a18 VS |
5652 | fi |
5653 | ||
002ed9af | 5654 | if test "$wxUSE_SOUND" = yes; then |
e46d2a18 VS |
5655 | echo "$as_me:$LINENO: result: yes" >&5 |
5656 | echo "${ECHO_T}yes" >&6 | |
5657 | else | |
5658 | echo "$as_me:$LINENO: result: no" >&5 | |
5659 | echo "${ECHO_T}no" >&6 | |
5660 | fi | |
5661 | ||
8284b0c5 | 5662 | |
5005acfe | 5663 | enablestring= |
e46d2a18 VS |
5664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5665 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5666 | no_cache=0 |
e46d2a18 VS |
5667 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5668 | if test "${enable_wxprintfv+set}" = set; then | |
5669 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5670 | |
1e6feb95 | 5671 | if test "$enableval" = yes; then |
e46d2a18 | 5672 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5673 | else |
e46d2a18 | 5674 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5675 | fi |
e6cc62c6 | 5676 | |
1e6feb95 | 5677 | else |
e6cc62c6 | 5678 | |
e46d2a18 | 5679 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5680 | if test "x$LINE" != x ; then |
5681 | eval "DEFAULT_$LINE" | |
5682 | else | |
5683 | no_cache=1 | |
5684 | fi | |
5685 | ||
e46d2a18 | 5686 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5687 | |
e6cc62c6 | 5688 | fi; |
1e6feb95 | 5689 | |
e46d2a18 | 5690 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5691 | if test "$no_cache" != 1; then |
e46d2a18 | 5692 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5693 | fi |
5694 | ||
e46d2a18 | 5695 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5696 | echo "$as_me:$LINENO: result: yes" >&5 |
5697 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5698 | else |
e6cc62c6 VS |
5699 | echo "$as_me:$LINENO: result: no" >&5 |
5700 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5701 | fi |
e6cc62c6 | 5702 | |
1e6feb95 | 5703 | |
5005acfe | 5704 | enablestring= |
e46d2a18 VS |
5705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5706 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5707 | no_cache=0 |
e46d2a18 VS |
5708 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5709 | if test "${enable_zipstream+set}" = set; then | |
5710 | enableval="$enable_zipstream" | |
e6cc62c6 | 5711 | |
3e44f09d | 5712 | if test "$enableval" = yes; then |
e46d2a18 | 5713 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5714 | else |
e46d2a18 | 5715 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5716 | fi |
e6cc62c6 | 5717 | |
3e44f09d | 5718 | else |
e6cc62c6 | 5719 | |
e46d2a18 | 5720 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5721 | if test "x$LINE" != x ; then |
5722 | eval "DEFAULT_$LINE" | |
5723 | else | |
5724 | no_cache=1 | |
5725 | fi | |
5726 | ||
e46d2a18 | 5727 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5728 | |
e6cc62c6 | 5729 | fi; |
3e44f09d | 5730 | |
e46d2a18 | 5731 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5732 | if test "$no_cache" != 1; then |
e46d2a18 | 5733 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5734 | fi |
5735 | ||
e46d2a18 | 5736 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5737 | echo "$as_me:$LINENO: result: yes" >&5 |
5738 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5739 | else |
e6cc62c6 VS |
5740 | echo "$as_me:$LINENO: result: no" >&5 |
5741 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5742 | fi |
e6cc62c6 | 5743 | |
8284b0c5 | 5744 | |
7015ef3a VZ |
5745 | enablestring= |
5746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5747 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5748 | no_cache=0 | |
5749 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5750 | if test "${enable_gzstream+set}" = set; then | |
5751 | enableval="$enable_gzstream" | |
5752 | ||
5753 | if test "$enableval" = yes; then | |
5754 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5755 | else | |
5756 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5757 | fi | |
5758 | ||
5759 | else | |
5760 | ||
5761 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5762 | if test "x$LINE" != x ; then | |
5763 | eval "DEFAULT_$LINE" | |
5764 | else | |
5765 | no_cache=1 | |
5766 | fi | |
5767 | ||
5768 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5769 | ||
5770 | fi; | |
5771 | ||
5772 | eval "$ac_cv_use_gzstream" | |
5773 | if test "$no_cache" != 1; then | |
5774 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5775 | fi | |
5776 | ||
5777 | if test "$wxUSE_GZSTREAM" = yes; then | |
5778 | echo "$as_me:$LINENO: result: yes" >&5 | |
5779 | echo "${ECHO_T}yes" >&6 | |
5780 | else | |
5781 | echo "$as_me:$LINENO: result: no" >&5 | |
5782 | echo "${ECHO_T}no" >&6 | |
5783 | fi | |
5784 | ||
5785 | ||
52127426 | 5786 | |
5005acfe | 5787 | enablestring= |
e6cc62c6 VS |
5788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5789 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5790 | no_cache=0 |
5791 | # Check whether --enable-url or --disable-url was given. | |
5792 | if test "${enable_url+set}" = set; then | |
5793 | enableval="$enable_url" | |
e6cc62c6 | 5794 | |
4cdb0ab0 VS |
5795 | if test "$enableval" = yes; then |
5796 | ac_cv_use_url='wxUSE_URL=yes' | |
5797 | else | |
5798 | ac_cv_use_url='wxUSE_URL=no' | |
5799 | fi | |
e6cc62c6 | 5800 | |
4cdb0ab0 | 5801 | else |
e6cc62c6 | 5802 | |
4cdb0ab0 VS |
5803 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5804 | if test "x$LINE" != x ; then | |
5805 | eval "DEFAULT_$LINE" | |
5806 | else | |
5807 | no_cache=1 | |
5808 | fi | |
5809 | ||
5810 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5811 | |
e6cc62c6 | 5812 | fi; |
4cdb0ab0 VS |
5813 | |
5814 | eval "$ac_cv_use_url" | |
5815 | if test "$no_cache" != 1; then | |
5816 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5817 | fi | |
5818 | ||
5819 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5820 | echo "$as_me:$LINENO: result: yes" >&5 |
5821 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5822 | else |
e6cc62c6 VS |
5823 | echo "$as_me:$LINENO: result: no" >&5 |
5824 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5825 | fi |
e6cc62c6 | 5826 | |
4cdb0ab0 | 5827 | |
5005acfe | 5828 | enablestring= |
e6cc62c6 VS |
5829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5830 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5831 | no_cache=0 |
5832 | # Check whether --enable-protocol or --disable-protocol was given. | |
5833 | if test "${enable_protocol+set}" = set; then | |
5834 | enableval="$enable_protocol" | |
e6cc62c6 | 5835 | |
4cdb0ab0 VS |
5836 | if test "$enableval" = yes; then |
5837 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5838 | else | |
5839 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5840 | fi | |
e6cc62c6 | 5841 | |
4cdb0ab0 | 5842 | else |
e6cc62c6 | 5843 | |
4cdb0ab0 VS |
5844 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5852 | |
e6cc62c6 | 5853 | fi; |
4cdb0ab0 VS |
5854 | |
5855 | eval "$ac_cv_use_protocol" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5861 | echo "$as_me:$LINENO: result: yes" >&5 |
5862 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5863 | else |
e6cc62c6 VS |
5864 | echo "$as_me:$LINENO: result: no" >&5 |
5865 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5866 | fi |
e6cc62c6 | 5867 | |
4cdb0ab0 | 5868 | |
5005acfe | 5869 | enablestring= |
e6cc62c6 VS |
5870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5871 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5872 | no_cache=0 |
5873 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5874 | if test "${enable_protocol_http+set}" = set; then | |
5875 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5876 | |
4cdb0ab0 VS |
5877 | if test "$enableval" = yes; then |
5878 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5879 | else | |
5880 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5881 | fi | |
e6cc62c6 | 5882 | |
4cdb0ab0 | 5883 | else |
e6cc62c6 | 5884 | |
4cdb0ab0 VS |
5885 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5886 | if test "x$LINE" != x ; then | |
5887 | eval "DEFAULT_$LINE" | |
5888 | else | |
5889 | no_cache=1 | |
5890 | fi | |
5891 | ||
5892 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5893 | |
e6cc62c6 | 5894 | fi; |
4cdb0ab0 VS |
5895 | |
5896 | eval "$ac_cv_use_protocol_http" | |
5897 | if test "$no_cache" != 1; then | |
5898 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5899 | fi | |
5900 | ||
5901 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5902 | echo "$as_me:$LINENO: result: yes" >&5 |
5903 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5904 | else |
e6cc62c6 VS |
5905 | echo "$as_me:$LINENO: result: no" >&5 |
5906 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5907 | fi |
e6cc62c6 | 5908 | |
4cdb0ab0 | 5909 | |
5005acfe | 5910 | enablestring= |
e6cc62c6 VS |
5911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5912 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5913 | no_cache=0 |
5914 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5915 | if test "${enable_protocol_ftp+set}" = set; then | |
5916 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5917 | |
4cdb0ab0 VS |
5918 | if test "$enableval" = yes; then |
5919 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5920 | else | |
5921 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5922 | fi | |
e6cc62c6 | 5923 | |
4cdb0ab0 | 5924 | else |
e6cc62c6 | 5925 | |
4cdb0ab0 VS |
5926 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5934 | |
e6cc62c6 | 5935 | fi; |
4cdb0ab0 VS |
5936 | |
5937 | eval "$ac_cv_use_protocol_ftp" | |
5938 | if test "$no_cache" != 1; then | |
5939 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5940 | fi | |
5941 | ||
5942 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5943 | echo "$as_me:$LINENO: result: yes" >&5 |
5944 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5945 | else |
e6cc62c6 VS |
5946 | echo "$as_me:$LINENO: result: no" >&5 |
5947 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5948 | fi |
e6cc62c6 | 5949 | |
4cdb0ab0 | 5950 | |
5005acfe | 5951 | enablestring= |
e6cc62c6 VS |
5952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5953 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5954 | no_cache=0 |
5955 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5956 | if test "${enable_protocol_file+set}" = set; then | |
5957 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5958 | |
4cdb0ab0 VS |
5959 | if test "$enableval" = yes; then |
5960 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5961 | else | |
5962 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5963 | fi | |
e6cc62c6 | 5964 | |
4cdb0ab0 | 5965 | else |
e6cc62c6 | 5966 | |
4cdb0ab0 VS |
5967 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5975 | |
e6cc62c6 | 5976 | fi; |
4cdb0ab0 VS |
5977 | |
5978 | eval "$ac_cv_use_protocol_file" | |
5979 | if test "$no_cache" != 1; then | |
5980 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5981 | fi | |
5982 | ||
5983 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5984 | echo "$as_me:$LINENO: result: yes" >&5 |
5985 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5986 | else |
e6cc62c6 VS |
5987 | echo "$as_me:$LINENO: result: no" >&5 |
5988 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5989 | fi |
e6cc62c6 | 5990 | |
52127426 | 5991 | |
8284b0c5 MB |
5992 | |
5993 | ||
5994 | ||
5005acfe | 5995 | enablestring= |
e6cc62c6 VS |
5996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5997 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5998 | no_cache=0 |
5999 | # Check whether --enable-threads or --disable-threads was given. | |
6000 | if test "${enable_threads+set}" = set; then | |
6001 | enableval="$enable_threads" | |
e6cc62c6 | 6002 | |
10f2d63a VZ |
6003 | if test "$enableval" = yes; then |
6004 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6005 | else | |
6006 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6007 | fi | |
e6cc62c6 | 6008 | |
10f2d63a | 6009 | else |
e6cc62c6 | 6010 | |
10f2d63a VZ |
6011 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
6012 | if test "x$LINE" != x ; then | |
6013 | eval "DEFAULT_$LINE" | |
6014 | else | |
6015 | no_cache=1 | |
6016 | fi | |
6017 | ||
6018 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 6019 | |
e6cc62c6 | 6020 | fi; |
10f2d63a VZ |
6021 | |
6022 | eval "$ac_cv_use_threads" | |
6023 | if test "$no_cache" != 1; then | |
6024 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6025 | fi | |
6026 | ||
6027 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
6028 | echo "$as_me:$LINENO: result: yes" >&5 |
6029 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6030 | else |
e6cc62c6 VS |
6031 | echo "$as_me:$LINENO: result: no" >&5 |
6032 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6033 | fi |
e6cc62c6 | 6034 | |
10f2d63a | 6035 | |
b12915c1 VZ |
6036 | if test "$wxUSE_GUI" = "yes"; then |
6037 | ||
8284b0c5 MB |
6038 | |
6039 | ||
5005acfe | 6040 | enablestring= |
e6cc62c6 VS |
6041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
6042 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
6043 | no_cache=0 |
6044 | # Check whether --enable-docview or --disable-docview was given. | |
6045 | if test "${enable_docview+set}" = set; then | |
6046 | enableval="$enable_docview" | |
e6cc62c6 | 6047 | |
10f2d63a VZ |
6048 | if test "$enableval" = yes; then |
6049 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6050 | else | |
6051 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6052 | fi | |
e6cc62c6 | 6053 | |
10f2d63a | 6054 | else |
e6cc62c6 | 6055 | |
10f2d63a VZ |
6056 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
6057 | if test "x$LINE" != x ; then | |
6058 | eval "DEFAULT_$LINE" | |
6059 | else | |
6060 | no_cache=1 | |
6061 | fi | |
6062 | ||
6063 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 6064 | |
e6cc62c6 | 6065 | fi; |
10f2d63a VZ |
6066 | |
6067 | eval "$ac_cv_use_docview" | |
6068 | if test "$no_cache" != 1; then | |
6069 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6070 | fi | |
6071 | ||
6072 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6073 | echo "$as_me:$LINENO: result: yes" >&5 |
6074 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6075 | else |
e6cc62c6 VS |
6076 | echo "$as_me:$LINENO: result: no" >&5 |
6077 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6078 | fi |
e6cc62c6 | 6079 | |
10f2d63a | 6080 | |
5005acfe | 6081 | enablestring= |
e6cc62c6 VS |
6082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
6083 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
6084 | no_cache=0 |
6085 | # Check whether --enable-help or --disable-help was given. | |
6086 | if test "${enable_help+set}" = set; then | |
6087 | enableval="$enable_help" | |
e6cc62c6 | 6088 | |
10f2d63a VZ |
6089 | if test "$enableval" = yes; then |
6090 | ac_cv_use_help='wxUSE_HELP=yes' | |
6091 | else | |
6092 | ac_cv_use_help='wxUSE_HELP=no' | |
6093 | fi | |
e6cc62c6 | 6094 | |
10f2d63a | 6095 | else |
e6cc62c6 | 6096 | |
10f2d63a VZ |
6097 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
6098 | if test "x$LINE" != x ; then | |
6099 | eval "DEFAULT_$LINE" | |
6100 | else | |
6101 | no_cache=1 | |
6102 | fi | |
6103 | ||
6104 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 6105 | |
e6cc62c6 | 6106 | fi; |
10f2d63a VZ |
6107 | |
6108 | eval "$ac_cv_use_help" | |
6109 | if test "$no_cache" != 1; then | |
6110 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6111 | fi | |
6112 | ||
6113 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
6114 | echo "$as_me:$LINENO: result: yes" >&5 |
6115 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6116 | else |
e6cc62c6 VS |
6117 | echo "$as_me:$LINENO: result: no" >&5 |
6118 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6119 | fi |
e6cc62c6 | 6120 | |
10f2d63a | 6121 | |
5005acfe | 6122 | enablestring= |
e6cc62c6 VS |
6123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
6124 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
6125 | no_cache=0 |
6126 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6127 | if test "${enable_mshtmlhelp+set}" = set; then | |
6128 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 6129 | |
29fd3c0c VS |
6130 | if test "$enableval" = yes; then |
6131 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6132 | else | |
6133 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6134 | fi | |
e6cc62c6 | 6135 | |
29fd3c0c | 6136 | else |
e6cc62c6 | 6137 | |
29fd3c0c VS |
6138 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6139 | if test "x$LINE" != x ; then | |
6140 | eval "DEFAULT_$LINE" | |
6141 | else | |
6142 | no_cache=1 | |
6143 | fi | |
6144 | ||
6145 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6146 | |
e6cc62c6 | 6147 | fi; |
29fd3c0c VS |
6148 | |
6149 | eval "$ac_cv_use_mshtmlhelp" | |
6150 | if test "$no_cache" != 1; then | |
6151 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6152 | fi | |
6153 | ||
6154 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6155 | echo "$as_me:$LINENO: result: yes" >&5 |
6156 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6157 | else |
e6cc62c6 VS |
6158 | echo "$as_me:$LINENO: result: no" >&5 |
6159 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6160 | fi |
e6cc62c6 | 6161 | |
29fd3c0c | 6162 | |
5005acfe | 6163 | enablestring= |
e6cc62c6 VS |
6164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6165 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6166 | no_cache=0 |
6167 | # Check whether --enable-html or --disable-html was given. | |
6168 | if test "${enable_html+set}" = set; then | |
6169 | enableval="$enable_html" | |
e6cc62c6 | 6170 | |
3379ed37 VZ |
6171 | if test "$enableval" = yes; then |
6172 | ac_cv_use_html='wxUSE_HTML=yes' | |
6173 | else | |
6174 | ac_cv_use_html='wxUSE_HTML=no' | |
6175 | fi | |
e6cc62c6 | 6176 | |
3379ed37 | 6177 | else |
e6cc62c6 | 6178 | |
3379ed37 VZ |
6179 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6180 | if test "x$LINE" != x ; then | |
6181 | eval "DEFAULT_$LINE" | |
6182 | else | |
6183 | no_cache=1 | |
6184 | fi | |
6185 | ||
6186 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6187 | |
e6cc62c6 | 6188 | fi; |
3379ed37 VZ |
6189 | |
6190 | eval "$ac_cv_use_html" | |
6191 | if test "$no_cache" != 1; then | |
6192 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6193 | fi | |
6194 | ||
6195 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6196 | echo "$as_me:$LINENO: result: yes" >&5 |
6197 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6198 | else |
e6cc62c6 VS |
6199 | echo "$as_me:$LINENO: result: no" >&5 |
6200 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6201 | fi |
e6cc62c6 | 6202 | |
3379ed37 | 6203 | |
5005acfe | 6204 | enablestring= |
e6cc62c6 VS |
6205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6206 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6207 | no_cache=0 |
6208 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6209 | if test "${enable_htmlhelp+set}" = set; then | |
6210 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6211 | |
3379ed37 VZ |
6212 | if test "$enableval" = yes; then |
6213 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6214 | else | |
6215 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6216 | fi | |
e6cc62c6 | 6217 | |
3379ed37 | 6218 | else |
e6cc62c6 | 6219 | |
3379ed37 VZ |
6220 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6221 | if test "x$LINE" != x ; then | |
6222 | eval "DEFAULT_$LINE" | |
6223 | else | |
6224 | no_cache=1 | |
6225 | fi | |
6226 | ||
6227 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6228 | |
e6cc62c6 | 6229 | fi; |
3379ed37 VZ |
6230 | |
6231 | eval "$ac_cv_use_htmlhelp" | |
6232 | if test "$no_cache" != 1; then | |
6233 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6234 | fi | |
6235 | ||
6236 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6237 | echo "$as_me:$LINENO: result: yes" >&5 |
6238 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6239 | else |
e6cc62c6 VS |
6240 | echo "$as_me:$LINENO: result: no" >&5 |
6241 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6242 | fi |
e6cc62c6 | 6243 | |
3379ed37 | 6244 | |
5005acfe | 6245 | enablestring= |
e6cc62c6 VS |
6246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6247 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6248 | no_cache=0 |
6249 | # Check whether --enable-constraints or --disable-constraints was given. | |
6250 | if test "${enable_constraints+set}" = set; then | |
6251 | enableval="$enable_constraints" | |
e6cc62c6 | 6252 | |
10f2d63a VZ |
6253 | if test "$enableval" = yes; then |
6254 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6255 | else | |
6256 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6257 | fi | |
e6cc62c6 | 6258 | |
10f2d63a | 6259 | else |
e6cc62c6 | 6260 | |
10f2d63a VZ |
6261 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6262 | if test "x$LINE" != x ; then | |
6263 | eval "DEFAULT_$LINE" | |
6264 | else | |
6265 | no_cache=1 | |
6266 | fi | |
6267 | ||
6268 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6269 | |
e6cc62c6 | 6270 | fi; |
10f2d63a VZ |
6271 | |
6272 | eval "$ac_cv_use_constraints" | |
6273 | if test "$no_cache" != 1; then | |
6274 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6275 | fi | |
6276 | ||
6277 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6278 | echo "$as_me:$LINENO: result: yes" >&5 |
6279 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6280 | else |
e6cc62c6 VS |
6281 | echo "$as_me:$LINENO: result: no" >&5 |
6282 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6283 | fi |
e6cc62c6 | 6284 | |
10f2d63a | 6285 | |
5005acfe | 6286 | enablestring= |
e6cc62c6 VS |
6287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6288 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6289 | no_cache=0 |
6290 | # Check whether --enable-printarch or --disable-printarch was given. | |
6291 | if test "${enable_printarch+set}" = set; then | |
6292 | enableval="$enable_printarch" | |
e6cc62c6 | 6293 | |
10f2d63a VZ |
6294 | if test "$enableval" = yes; then |
6295 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6296 | else | |
6297 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6298 | fi | |
e6cc62c6 | 6299 | |
10f2d63a | 6300 | else |
e6cc62c6 | 6301 | |
10f2d63a VZ |
6302 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6303 | if test "x$LINE" != x ; then | |
6304 | eval "DEFAULT_$LINE" | |
6305 | else | |
6306 | no_cache=1 | |
6307 | fi | |
6308 | ||
6309 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6310 | |
e6cc62c6 | 6311 | fi; |
10f2d63a VZ |
6312 | |
6313 | eval "$ac_cv_use_printarch" | |
6314 | if test "$no_cache" != 1; then | |
6315 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6316 | fi | |
6317 | ||
6318 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6319 | echo "$as_me:$LINENO: result: yes" >&5 |
6320 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6321 | else |
e6cc62c6 VS |
6322 | echo "$as_me:$LINENO: result: no" >&5 |
6323 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6324 | fi |
e6cc62c6 | 6325 | |
10f2d63a | 6326 | |
5005acfe | 6327 | enablestring= |
e6cc62c6 VS |
6328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6329 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6330 | no_cache=0 |
6331 | # Check whether --enable-mdi or --disable-mdi was given. | |
6332 | if test "${enable_mdi+set}" = set; then | |
6333 | enableval="$enable_mdi" | |
e6cc62c6 | 6334 | |
10f2d63a VZ |
6335 | if test "$enableval" = yes; then |
6336 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6337 | else | |
6338 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6339 | fi | |
e6cc62c6 | 6340 | |
10f2d63a | 6341 | else |
e6cc62c6 | 6342 | |
10f2d63a VZ |
6343 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6344 | if test "x$LINE" != x ; then | |
6345 | eval "DEFAULT_$LINE" | |
6346 | else | |
6347 | no_cache=1 | |
6348 | fi | |
6349 | ||
6350 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6351 | |
e6cc62c6 | 6352 | fi; |
10f2d63a VZ |
6353 | |
6354 | eval "$ac_cv_use_mdi" | |
6355 | if test "$no_cache" != 1; then | |
6356 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6357 | fi | |
6358 | ||
6359 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6360 | echo "$as_me:$LINENO: result: yes" >&5 |
6361 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6362 | else |
e6cc62c6 VS |
6363 | echo "$as_me:$LINENO: result: no" >&5 |
6364 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6365 | fi |
e6cc62c6 | 6366 | |
698dcdb6 | 6367 | |
5005acfe | 6368 | enablestring= |
e6cc62c6 VS |
6369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6370 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6371 | no_cache=0 |
6372 | # Check whether --enable-loggui or --disable-loggui was given. | |
6373 | if test "${enable_loggui+set}" = set; then | |
6374 | enableval="$enable_loggui" | |
e6cc62c6 | 6375 | |
1e6feb95 VZ |
6376 | if test "$enableval" = yes; then |
6377 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6378 | else | |
6379 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6380 | fi | |
e6cc62c6 | 6381 | |
1e6feb95 | 6382 | else |
e6cc62c6 | 6383 | |
1e6feb95 VZ |
6384 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6385 | if test "x$LINE" != x ; then | |
6386 | eval "DEFAULT_$LINE" | |
6387 | else | |
6388 | no_cache=1 | |
6389 | fi | |
6390 | ||
6391 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6392 | |
e6cc62c6 | 6393 | fi; |
1e6feb95 VZ |
6394 | |
6395 | eval "$ac_cv_use_loggui" | |
6396 | if test "$no_cache" != 1; then | |
6397 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6398 | fi | |
6399 | ||
6400 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6401 | echo "$as_me:$LINENO: result: yes" >&5 |
6402 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6403 | else |
e6cc62c6 VS |
6404 | echo "$as_me:$LINENO: result: no" >&5 |
6405 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6406 | fi |
e6cc62c6 | 6407 | |
1e6feb95 | 6408 | |
5005acfe | 6409 | enablestring= |
e6cc62c6 VS |
6410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6411 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6412 | no_cache=0 |
6413 | # Check whether --enable-logwin or --disable-logwin was given. | |
6414 | if test "${enable_logwin+set}" = set; then | |
6415 | enableval="$enable_logwin" | |
e6cc62c6 | 6416 | |
1e6feb95 VZ |
6417 | if test "$enableval" = yes; then |
6418 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6419 | else | |
6420 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6421 | fi | |
e6cc62c6 | 6422 | |
1e6feb95 | 6423 | else |
e6cc62c6 | 6424 | |
1e6feb95 VZ |
6425 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6426 | if test "x$LINE" != x ; then | |
6427 | eval "DEFAULT_$LINE" | |
6428 | else | |
6429 | no_cache=1 | |
6430 | fi | |
6431 | ||
6432 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6433 | |
e6cc62c6 | 6434 | fi; |
1e6feb95 VZ |
6435 | |
6436 | eval "$ac_cv_use_logwin" | |
6437 | if test "$no_cache" != 1; then | |
6438 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6439 | fi | |
6440 | ||
6441 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6442 | echo "$as_me:$LINENO: result: yes" >&5 |
6443 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6444 | else |
e6cc62c6 VS |
6445 | echo "$as_me:$LINENO: result: no" >&5 |
6446 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6447 | fi |
e6cc62c6 | 6448 | |
1e6feb95 | 6449 | |
5005acfe | 6450 | enablestring= |
e6cc62c6 VS |
6451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6452 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6453 | no_cache=0 |
6454 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6455 | if test "${enable_logdialog+set}" = set; then | |
6456 | enableval="$enable_logdialog" | |
e6cc62c6 | 6457 | |
69d27ff7 MB |
6458 | if test "$enableval" = yes; then |
6459 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6460 | else | |
6461 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6462 | fi | |
e6cc62c6 | 6463 | |
69d27ff7 | 6464 | else |
e6cc62c6 | 6465 | |
69d27ff7 MB |
6466 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6467 | if test "x$LINE" != x ; then | |
6468 | eval "DEFAULT_$LINE" | |
6469 | else | |
6470 | no_cache=1 | |
6471 | fi | |
6472 | ||
6473 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6474 | |
e6cc62c6 | 6475 | fi; |
69d27ff7 MB |
6476 | |
6477 | eval "$ac_cv_use_logdialog" | |
6478 | if test "$no_cache" != 1; then | |
6479 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6480 | fi | |
6481 | ||
6482 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6483 | echo "$as_me:$LINENO: result: yes" >&5 |
6484 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6485 | else |
e6cc62c6 VS |
6486 | echo "$as_me:$LINENO: result: no" >&5 |
6487 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6488 | fi |
e6cc62c6 | 6489 | |
8284b0c5 | 6490 | |
52127426 | 6491 | |
5005acfe | 6492 | enablestring= |
e6cc62c6 VS |
6493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6494 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6495 | no_cache=0 |
6496 | # Check whether --enable-postscript or --disable-postscript was given. | |
6497 | if test "${enable_postscript+set}" = set; then | |
6498 | enableval="$enable_postscript" | |
e6cc62c6 | 6499 | |
10f2d63a VZ |
6500 | if test "$enableval" = yes; then |
6501 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6502 | else | |
6503 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6504 | fi | |
e6cc62c6 | 6505 | |
10f2d63a | 6506 | else |
e6cc62c6 | 6507 | |
10f2d63a VZ |
6508 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6509 | if test "x$LINE" != x ; then | |
6510 | eval "DEFAULT_$LINE" | |
6511 | else | |
6512 | no_cache=1 | |
6513 | fi | |
6514 | ||
6515 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6516 | |
e6cc62c6 | 6517 | fi; |
10f2d63a VZ |
6518 | |
6519 | eval "$ac_cv_use_postscript" | |
6520 | if test "$no_cache" != 1; then | |
6521 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6522 | fi | |
6523 | ||
6524 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6525 | echo "$as_me:$LINENO: result: yes" >&5 |
6526 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6527 | else |
e6cc62c6 VS |
6528 | echo "$as_me:$LINENO: result: no" >&5 |
6529 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6530 | fi |
e6cc62c6 | 6531 | |
8284b0c5 MB |
6532 | |
6533 | ||
52127426 | 6534 | |
8284b0c5 | 6535 | |
5005acfe | 6536 | enablestring= |
e6cc62c6 VS |
6537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6538 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6539 | no_cache=0 |
3c907f20 VZ |
6540 | # Check whether --enable-prologio or --disable-prologio was given. |
6541 | if test "${enable_prologio+set}" = set; then | |
6542 | enableval="$enable_prologio" | |
e6cc62c6 | 6543 | |
10f2d63a | 6544 | if test "$enableval" = yes; then |
3c907f20 | 6545 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6546 | else |
3c907f20 | 6547 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6548 | fi |
e6cc62c6 | 6549 | |
10f2d63a | 6550 | else |
e6cc62c6 | 6551 | |
3c907f20 | 6552 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6553 | if test "x$LINE" != x ; then |
6554 | eval "DEFAULT_$LINE" | |
6555 | else | |
6556 | no_cache=1 | |
6557 | fi | |
6558 | ||
3c907f20 | 6559 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6560 | |
e6cc62c6 | 6561 | fi; |
10f2d63a | 6562 | |
3c907f20 | 6563 | eval "$ac_cv_use_prologio" |
10f2d63a | 6564 | if test "$no_cache" != 1; then |
3c907f20 | 6565 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6566 | fi |
6567 | ||
3c907f20 | 6568 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6569 | echo "$as_me:$LINENO: result: yes" >&5 |
6570 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6571 | else |
e6cc62c6 VS |
6572 | echo "$as_me:$LINENO: result: no" >&5 |
6573 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6574 | fi |
e6cc62c6 | 6575 | |
8284b0c5 | 6576 | |
5005acfe | 6577 | enablestring= |
e6cc62c6 VS |
6578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6579 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6580 | no_cache=0 |
3c907f20 VZ |
6581 | # Check whether --enable-resources or --disable-resources was given. |
6582 | if test "${enable_resources+set}" = set; then | |
6583 | enableval="$enable_resources" | |
e6cc62c6 | 6584 | |
10f2d63a | 6585 | if test "$enableval" = yes; then |
3c907f20 | 6586 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6587 | else |
3c907f20 | 6588 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6589 | fi |
e6cc62c6 | 6590 | |
10f2d63a | 6591 | else |
e6cc62c6 | 6592 | |
3c907f20 | 6593 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6594 | if test "x$LINE" != x ; then |
6595 | eval "DEFAULT_$LINE" | |
6596 | else | |
6597 | no_cache=1 | |
6598 | fi | |
6599 | ||
3c907f20 | 6600 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6601 | |
e6cc62c6 | 6602 | fi; |
10f2d63a | 6603 | |
3c907f20 | 6604 | eval "$ac_cv_use_resources" |
10f2d63a | 6605 | if test "$no_cache" != 1; then |
3c907f20 | 6606 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6607 | fi |
6608 | ||
3c907f20 | 6609 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6610 | echo "$as_me:$LINENO: result: yes" >&5 |
6611 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6612 | else |
e6cc62c6 VS |
6613 | echo "$as_me:$LINENO: result: no" >&5 |
6614 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6615 | fi |
e6cc62c6 | 6616 | |
8284b0c5 MB |
6617 | |
6618 | ||
52127426 | 6619 | |
5005acfe | 6620 | enablestring= |
e6cc62c6 VS |
6621 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6622 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6623 | no_cache=0 |
6624 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6625 | if test "${enable_clipboard+set}" = set; then | |
6626 | enableval="$enable_clipboard" | |
e6cc62c6 | 6627 | |
10f2d63a VZ |
6628 | if test "$enableval" = yes; then |
6629 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6630 | else | |
6631 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6632 | fi | |
e6cc62c6 | 6633 | |
10f2d63a | 6634 | else |
e6cc62c6 | 6635 | |
10f2d63a VZ |
6636 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6637 | if test "x$LINE" != x ; then | |
6638 | eval "DEFAULT_$LINE" | |
6639 | else | |
6640 | no_cache=1 | |
6641 | fi | |
6642 | ||
6643 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6644 | |
e6cc62c6 | 6645 | fi; |
10f2d63a VZ |
6646 | |
6647 | eval "$ac_cv_use_clipboard" | |
6648 | if test "$no_cache" != 1; then | |
6649 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6650 | fi | |
6651 | ||
6652 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6653 | echo "$as_me:$LINENO: result: yes" >&5 |
6654 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6655 | else |
e6cc62c6 VS |
6656 | echo "$as_me:$LINENO: result: no" >&5 |
6657 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6658 | fi |
e6cc62c6 | 6659 | |
10f2d63a | 6660 | |
5005acfe | 6661 | enablestring= |
e6cc62c6 VS |
6662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6663 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6664 | no_cache=0 |
6665 | # Check whether --enable-dnd or --disable-dnd was given. | |
6666 | if test "${enable_dnd+set}" = set; then | |
6667 | enableval="$enable_dnd" | |
e6cc62c6 | 6668 | |
10f2d63a VZ |
6669 | if test "$enableval" = yes; then |
6670 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6671 | else | |
6672 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6673 | fi | |
e6cc62c6 | 6674 | |
10f2d63a | 6675 | else |
e6cc62c6 | 6676 | |
10f2d63a VZ |
6677 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6678 | if test "x$LINE" != x ; then | |
6679 | eval "DEFAULT_$LINE" | |
6680 | else | |
6681 | no_cache=1 | |
6682 | fi | |
6683 | ||
6684 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6685 | |
e6cc62c6 | 6686 | fi; |
10f2d63a VZ |
6687 | |
6688 | eval "$ac_cv_use_dnd" | |
6689 | if test "$no_cache" != 1; then | |
6690 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6691 | fi | |
6692 | ||
6693 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6694 | echo "$as_me:$LINENO: result: yes" >&5 |
6695 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6696 | else |
e6cc62c6 VS |
6697 | echo "$as_me:$LINENO: result: no" >&5 |
6698 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6699 | fi |
e6cc62c6 | 6700 | |
10f2d63a | 6701 | |
5005acfe | 6702 | enablestring= |
e6cc62c6 VS |
6703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6704 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6705 | no_cache=0 |
6706 | # Check whether --enable-metafile or --disable-metafile was given. | |
6707 | if test "${enable_metafile+set}" = set; then | |
6708 | enableval="$enable_metafile" | |
e6cc62c6 | 6709 | |
b64f0a5f RL |
6710 | if test "$enableval" = yes; then |
6711 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6712 | else | |
6713 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6714 | fi | |
e6cc62c6 | 6715 | |
b64f0a5f | 6716 | else |
e6cc62c6 | 6717 | |
b64f0a5f RL |
6718 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6719 | if test "x$LINE" != x ; then | |
6720 | eval "DEFAULT_$LINE" | |
6721 | else | |
6722 | no_cache=1 | |
6723 | fi | |
6724 | ||
6725 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6726 | |
e6cc62c6 | 6727 | fi; |
b64f0a5f RL |
6728 | |
6729 | eval "$ac_cv_use_metafile" | |
6730 | if test "$no_cache" != 1; then | |
6731 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6732 | fi | |
6733 | ||
6734 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6735 | echo "$as_me:$LINENO: result: yes" >&5 |
6736 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6737 | else |
e6cc62c6 VS |
6738 | echo "$as_me:$LINENO: result: no" >&5 |
6739 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6740 | fi |
e6cc62c6 | 6741 | |
52127426 | 6742 | |
8284b0c5 | 6743 | |
52127426 | 6744 | |
8284b0c5 | 6745 | |
5005acfe | 6746 | enablestring= |
e6cc62c6 VS |
6747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6748 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6749 | no_cache=0 |
6750 | # Check whether --enable-controls or --disable-controls was given. | |
6751 | if test "${enable_controls+set}" = set; then | |
6752 | enableval="$enable_controls" | |
e6cc62c6 | 6753 | |
10f2d63a VZ |
6754 | if test "$enableval" = yes; then |
6755 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6756 | else | |
6757 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6758 | fi | |
e6cc62c6 | 6759 | |
10f2d63a | 6760 | else |
e6cc62c6 | 6761 | |
10f2d63a VZ |
6762 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6763 | if test "x$LINE" != x ; then | |
6764 | eval "DEFAULT_$LINE" | |
6765 | else | |
6766 | no_cache=1 | |
6767 | fi | |
6768 | ||
6769 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6770 | |
e6cc62c6 | 6771 | fi; |
10f2d63a VZ |
6772 | |
6773 | eval "$ac_cv_use_controls" | |
6774 | if test "$no_cache" != 1; then | |
6775 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6776 | fi | |
6777 | ||
6778 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6779 | echo "$as_me:$LINENO: result: yes" >&5 |
6780 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6781 | else |
e6cc62c6 VS |
6782 | echo "$as_me:$LINENO: result: no" >&5 |
6783 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6784 | fi |
e6cc62c6 | 6785 | |
10f2d63a VZ |
6786 | |
6787 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6788 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6789 | DEFAULT_wxUSE_BMPBUTTON=yes |
6790 | DEFAULT_wxUSE_BUTTON=yes | |
6791 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6792 | DEFAULT_wxUSE_CARET=yes |
6793 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6794 | DEFAULT_wxUSE_CHECKBOX=yes |
6795 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6796 | DEFAULT_wxUSE_CHOICE=yes | |
6797 | DEFAULT_wxUSE_GAUGE=yes | |
6798 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6799 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6800 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6801 | DEFAULT_wxUSE_LISTBOX=yes |
6802 | DEFAULT_wxUSE_LISTCTRL=yes | |
6803 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6804 | DEFAULT_wxUSE_RADIOBOX=yes | |
6805 | DEFAULT_wxUSE_RADIOBTN=yes | |
6806 | DEFAULT_wxUSE_SASH=yes | |
6807 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6808 | DEFAULT_wxUSE_SLIDER=yes | |
6809 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6810 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6811 | DEFAULT_wxUSE_SPLITTER=yes |
6812 | DEFAULT_wxUSE_STATBMP=yes | |
6813 | DEFAULT_wxUSE_STATBOX=yes | |
6814 | DEFAULT_wxUSE_STATLINE=yes | |
6815 | DEFAULT_wxUSE_STATUSBAR=yes | |
6816 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6817 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6818 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6819 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6820 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6821 | DEFAULT_wxUSE_TOOLTIPS=yes |
6822 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6823 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6824 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6825 | elif test "$wxUSE_CONTROLS" = "no"; then |
6826 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6827 | DEFAULT_wxUSE_BMPBUTTON=no |
6828 | DEFAULT_wxUSE_BUTTON=no | |
6829 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6830 | DEFAULT_wxUSE_CARET=no |
6831 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6832 | DEFAULT_wxUSE_CHECKBOX=no |
6833 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6834 | DEFAULT_wxUSE_CHOICE=no | |
6835 | DEFAULT_wxUSE_GAUGE=no | |
6836 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6837 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6838 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6839 | DEFAULT_wxUSE_LISTBOX=no |
6840 | DEFAULT_wxUSE_LISTCTRL=no | |
6841 | DEFAULT_wxUSE_NOTEBOOK=no | |
6842 | DEFAULT_wxUSE_RADIOBOX=no | |
6843 | DEFAULT_wxUSE_RADIOBTN=no | |
6844 | DEFAULT_wxUSE_SASH=no | |
6845 | DEFAULT_wxUSE_SCROLLBAR=no | |
6846 | DEFAULT_wxUSE_SLIDER=no | |
6847 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6848 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6849 | DEFAULT_wxUSE_SPLITTER=no |
6850 | DEFAULT_wxUSE_STATBMP=no | |
6851 | DEFAULT_wxUSE_STATBOX=no | |
6852 | DEFAULT_wxUSE_STATLINE=no | |
6853 | DEFAULT_wxUSE_STATUSBAR=no | |
6854 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6855 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6856 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6857 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6858 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6859 | DEFAULT_wxUSE_TOOLTIPS=no |
6860 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6861 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6862 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6863 | fi |
6864 | ||
ac0c4cc3 DE |
6865 | ## FIXME: This is a blatant hack |
6866 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6867 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6868 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6869 | # Generic notebook requires tab dialog |
6870 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6871 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6872 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6873 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6874 | fi |
6875 | ||
8284b0c5 | 6876 | |
5005acfe | 6877 | enablestring= |
e6cc62c6 VS |
6878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6879 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6880 | no_cache=0 |
6881 | # Check whether --enable-accel or --disable-accel was given. | |
6882 | if test "${enable_accel+set}" = set; then | |
6883 | enableval="$enable_accel" | |
e6cc62c6 | 6884 | |
10f2d63a VZ |
6885 | if test "$enableval" = yes; then |
6886 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6887 | else | |
6888 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6889 | fi | |
e6cc62c6 | 6890 | |
10f2d63a | 6891 | else |
e6cc62c6 | 6892 | |
10f2d63a VZ |
6893 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6894 | if test "x$LINE" != x ; then | |
6895 | eval "DEFAULT_$LINE" | |
6896 | else | |
6897 | no_cache=1 | |
6898 | fi | |
6899 | ||
6900 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6901 | |
e6cc62c6 | 6902 | fi; |
10f2d63a VZ |
6903 | |
6904 | eval "$ac_cv_use_accel" | |
6905 | if test "$no_cache" != 1; then | |
6906 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6907 | fi | |
6908 | ||
6909 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6910 | echo "$as_me:$LINENO: result: yes" >&5 |
6911 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6912 | else |
e6cc62c6 VS |
6913 | echo "$as_me:$LINENO: result: no" >&5 |
6914 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6915 | fi |
e6cc62c6 | 6916 | |
10f2d63a | 6917 | |
5005acfe | 6918 | enablestring= |
e6cc62c6 VS |
6919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6920 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6921 | no_cache=0 |
1e6feb95 VZ |
6922 | # Check whether --enable-button or --disable-button was given. |
6923 | if test "${enable_button+set}" = set; then | |
6924 | enableval="$enable_button" | |
e6cc62c6 | 6925 | |
10f2d63a | 6926 | if test "$enableval" = yes; then |
1e6feb95 | 6927 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6928 | else |
1e6feb95 | 6929 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6930 | fi |
e6cc62c6 | 6931 | |
10f2d63a | 6932 | else |
e6cc62c6 | 6933 | |
1e6feb95 | 6934 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6935 | if test "x$LINE" != x ; then |
6936 | eval "DEFAULT_$LINE" | |
6937 | else | |
6938 | no_cache=1 | |
6939 | fi | |
6940 | ||
1e6feb95 | 6941 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6942 | |
e6cc62c6 | 6943 | fi; |
10f2d63a | 6944 | |
1e6feb95 | 6945 | eval "$ac_cv_use_button" |
10f2d63a | 6946 | if test "$no_cache" != 1; then |
1e6feb95 | 6947 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6948 | fi |
6949 | ||
1e6feb95 | 6950 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6951 | echo "$as_me:$LINENO: result: yes" >&5 |
6952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6953 | else |
e6cc62c6 VS |
6954 | echo "$as_me:$LINENO: result: no" >&5 |
6955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6956 | fi |
e6cc62c6 | 6957 | |
10f2d63a | 6958 | |
5005acfe | 6959 | enablestring= |
e6cc62c6 VS |
6960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6961 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6962 | no_cache=0 |
6963 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6964 | if test "${enable_bmpbutton+set}" = set; then | |
6965 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6966 | |
10f2d63a VZ |
6967 | if test "$enableval" = yes; then |
6968 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6969 | else | |
6970 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6971 | fi | |
e6cc62c6 | 6972 | |
10f2d63a | 6973 | else |
e6cc62c6 | 6974 | |
10f2d63a VZ |
6975 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6976 | if test "x$LINE" != x ; then | |
6977 | eval "DEFAULT_$LINE" | |
6978 | else | |
6979 | no_cache=1 | |
6980 | fi | |
6981 | ||
6982 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6983 | |
e6cc62c6 | 6984 | fi; |
10f2d63a VZ |
6985 | |
6986 | eval "$ac_cv_use_bmpbutton" | |
6987 | if test "$no_cache" != 1; then | |
6988 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6989 | fi | |
6990 | ||
6991 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6992 | echo "$as_me:$LINENO: result: yes" >&5 |
6993 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6994 | else |
e6cc62c6 VS |
6995 | echo "$as_me:$LINENO: result: no" >&5 |
6996 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6997 | fi |
e6cc62c6 | 6998 | |
10f2d63a | 6999 | |
5005acfe | 7000 | enablestring= |
e6cc62c6 VS |
7001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
7002 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
7003 | no_cache=0 |
7004 | # Check whether --enable-calendar or --disable-calendar was given. | |
7005 | if test "${enable_calendar+set}" = set; then | |
7006 | enableval="$enable_calendar" | |
e6cc62c6 | 7007 | |
1e6feb95 VZ |
7008 | if test "$enableval" = yes; then |
7009 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7010 | else | |
7011 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7012 | fi | |
e6cc62c6 | 7013 | |
1e6feb95 | 7014 | else |
e6cc62c6 | 7015 | |
1e6feb95 VZ |
7016 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
7017 | if test "x$LINE" != x ; then | |
7018 | eval "DEFAULT_$LINE" | |
7019 | else | |
7020 | no_cache=1 | |
7021 | fi | |
7022 | ||
7023 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 7024 | |
e6cc62c6 | 7025 | fi; |
1e6feb95 VZ |
7026 | |
7027 | eval "$ac_cv_use_calendar" | |
7028 | if test "$no_cache" != 1; then | |
7029 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7030 | fi | |
7031 | ||
7032 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
7033 | echo "$as_me:$LINENO: result: yes" >&5 |
7034 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7035 | else |
e6cc62c6 VS |
7036 | echo "$as_me:$LINENO: result: no" >&5 |
7037 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7038 | fi |
e6cc62c6 | 7039 | |
1e6feb95 | 7040 | |
5005acfe | 7041 | enablestring= |
e6cc62c6 VS |
7042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
7043 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
7044 | no_cache=0 |
7045 | # Check whether --enable-caret or --disable-caret was given. | |
7046 | if test "${enable_caret+set}" = set; then | |
7047 | enableval="$enable_caret" | |
e6cc62c6 | 7048 | |
1e6feb95 VZ |
7049 | if test "$enableval" = yes; then |
7050 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7051 | else | |
7052 | ac_cv_use_caret='wxUSE_CARET=no' | |
7053 | fi | |
e6cc62c6 | 7054 | |
1e6feb95 | 7055 | else |
e6cc62c6 | 7056 | |
1e6feb95 VZ |
7057 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
7058 | if test "x$LINE" != x ; then | |
7059 | eval "DEFAULT_$LINE" | |
7060 | else | |
7061 | no_cache=1 | |
7062 | fi | |
7063 | ||
7064 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 7065 | |
e6cc62c6 | 7066 | fi; |
1e6feb95 VZ |
7067 | |
7068 | eval "$ac_cv_use_caret" | |
7069 | if test "$no_cache" != 1; then | |
7070 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7071 | fi | |
7072 | ||
7073 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
7074 | echo "$as_me:$LINENO: result: yes" >&5 |
7075 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7076 | else |
e6cc62c6 VS |
7077 | echo "$as_me:$LINENO: result: no" >&5 |
7078 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7079 | fi |
e6cc62c6 | 7080 | |
1e6feb95 | 7081 | |
5005acfe | 7082 | enablestring= |
e6cc62c6 VS |
7083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
7084 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7085 | no_cache=0 |
7086 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7087 | if test "${enable_checkbox+set}" = set; then | |
7088 | enableval="$enable_checkbox" | |
e6cc62c6 | 7089 | |
10f2d63a VZ |
7090 | if test "$enableval" = yes; then |
7091 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7092 | else | |
7093 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7094 | fi | |
e6cc62c6 | 7095 | |
10f2d63a | 7096 | else |
e6cc62c6 | 7097 | |
10f2d63a VZ |
7098 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
7099 | if test "x$LINE" != x ; then | |
7100 | eval "DEFAULT_$LINE" | |
7101 | else | |
7102 | no_cache=1 | |
7103 | fi | |
7104 | ||
7105 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 7106 | |
e6cc62c6 | 7107 | fi; |
10f2d63a VZ |
7108 | |
7109 | eval "$ac_cv_use_checkbox" | |
7110 | if test "$no_cache" != 1; then | |
7111 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7112 | fi | |
7113 | ||
7114 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
7115 | echo "$as_me:$LINENO: result: yes" >&5 |
7116 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7117 | else |
e6cc62c6 VS |
7118 | echo "$as_me:$LINENO: result: no" >&5 |
7119 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7120 | fi |
e6cc62c6 | 7121 | |
10f2d63a | 7122 | |
5005acfe | 7123 | enablestring= |
e6cc62c6 VS |
7124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
7125 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
7126 | no_cache=0 |
7127 | # Check whether --enable-checklst or --disable-checklst was given. | |
7128 | if test "${enable_checklst+set}" = set; then | |
7129 | enableval="$enable_checklst" | |
e6cc62c6 | 7130 | |
10f2d63a VZ |
7131 | if test "$enableval" = yes; then |
7132 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7133 | else | |
7134 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7135 | fi | |
e6cc62c6 | 7136 | |
10f2d63a | 7137 | else |
e6cc62c6 | 7138 | |
10f2d63a VZ |
7139 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7140 | if test "x$LINE" != x ; then | |
7141 | eval "DEFAULT_$LINE" | |
7142 | else | |
7143 | no_cache=1 | |
7144 | fi | |
7145 | ||
7146 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7147 | |
e6cc62c6 | 7148 | fi; |
10f2d63a VZ |
7149 | |
7150 | eval "$ac_cv_use_checklst" | |
7151 | if test "$no_cache" != 1; then | |
7152 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7153 | fi | |
7154 | ||
7155 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7156 | echo "$as_me:$LINENO: result: yes" >&5 |
7157 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7158 | else |
e6cc62c6 VS |
7159 | echo "$as_me:$LINENO: result: no" >&5 |
7160 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7161 | fi |
e6cc62c6 | 7162 | |
10f2d63a | 7163 | |
5005acfe | 7164 | enablestring= |
e6cc62c6 VS |
7165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7166 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7167 | no_cache=0 |
7168 | # Check whether --enable-choice or --disable-choice was given. | |
7169 | if test "${enable_choice+set}" = set; then | |
7170 | enableval="$enable_choice" | |
e6cc62c6 | 7171 | |
10f2d63a VZ |
7172 | if test "$enableval" = yes; then |
7173 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7174 | else | |
7175 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7176 | fi | |
e6cc62c6 | 7177 | |
10f2d63a | 7178 | else |
e6cc62c6 | 7179 | |
10f2d63a VZ |
7180 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7181 | if test "x$LINE" != x ; then | |
7182 | eval "DEFAULT_$LINE" | |
7183 | else | |
7184 | no_cache=1 | |
7185 | fi | |
7186 | ||
7187 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7188 | |
e6cc62c6 | 7189 | fi; |
10f2d63a VZ |
7190 | |
7191 | eval "$ac_cv_use_choice" | |
7192 | if test "$no_cache" != 1; then | |
7193 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7194 | fi | |
7195 | ||
7196 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7197 | echo "$as_me:$LINENO: result: yes" >&5 |
7198 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7199 | else |
e6cc62c6 VS |
7200 | echo "$as_me:$LINENO: result: no" >&5 |
7201 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7202 | fi |
e6cc62c6 | 7203 | |
10f2d63a | 7204 | |
5005acfe | 7205 | enablestring= |
e6cc62c6 VS |
7206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7207 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7208 | no_cache=0 |
7209 | # Check whether --enable-combobox or --disable-combobox was given. | |
7210 | if test "${enable_combobox+set}" = set; then | |
7211 | enableval="$enable_combobox" | |
e6cc62c6 | 7212 | |
10f2d63a VZ |
7213 | if test "$enableval" = yes; then |
7214 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7215 | else | |
7216 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7217 | fi | |
e6cc62c6 | 7218 | |
10f2d63a | 7219 | else |
e6cc62c6 | 7220 | |
10f2d63a VZ |
7221 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7222 | if test "x$LINE" != x ; then | |
7223 | eval "DEFAULT_$LINE" | |
7224 | else | |
7225 | no_cache=1 | |
7226 | fi | |
7227 | ||
7228 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7229 | |
e6cc62c6 | 7230 | fi; |
10f2d63a VZ |
7231 | |
7232 | eval "$ac_cv_use_combobox" | |
7233 | if test "$no_cache" != 1; then | |
7234 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7235 | fi | |
7236 | ||
7237 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7238 | echo "$as_me:$LINENO: result: yes" >&5 |
7239 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7240 | else |
e6cc62c6 VS |
7241 | echo "$as_me:$LINENO: result: no" >&5 |
7242 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7243 | fi |
e6cc62c6 | 7244 | |
10f2d63a | 7245 | |
da494b40 | 7246 | enablestring= |
e6cc62c6 VS |
7247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7248 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7249 | no_cache=0 |
7250 | # Check whether --enable-display or --disable-display was given. | |
7251 | if test "${enable_display+set}" = set; then | |
7252 | enableval="$enable_display" | |
e6cc62c6 | 7253 | |
da494b40 MB |
7254 | if test "$enableval" = yes; then |
7255 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7256 | else | |
7257 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7258 | fi | |
e6cc62c6 | 7259 | |
da494b40 | 7260 | else |
e6cc62c6 | 7261 | |
da494b40 MB |
7262 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7263 | if test "x$LINE" != x ; then | |
7264 | eval "DEFAULT_$LINE" | |
7265 | else | |
7266 | no_cache=1 | |
7267 | fi | |
7268 | ||
7269 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7270 | |
e6cc62c6 | 7271 | fi; |
da494b40 MB |
7272 | |
7273 | eval "$ac_cv_use_display" | |
7274 | if test "$no_cache" != 1; then | |
7275 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7276 | fi | |
7277 | ||
7278 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7279 | echo "$as_me:$LINENO: result: yes" >&5 |
7280 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7281 | else |
e6cc62c6 VS |
7282 | echo "$as_me:$LINENO: result: no" >&5 |
7283 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7284 | fi |
e6cc62c6 | 7285 | |
da494b40 | 7286 | |
5005acfe | 7287 | enablestring= |
e6cc62c6 VS |
7288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7289 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7290 | no_cache=0 |
7291 | # Check whether --enable-gauge or --disable-gauge was given. | |
7292 | if test "${enable_gauge+set}" = set; then | |
7293 | enableval="$enable_gauge" | |
e6cc62c6 | 7294 | |
10f2d63a VZ |
7295 | if test "$enableval" = yes; then |
7296 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7297 | else | |
7298 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7299 | fi | |
e6cc62c6 | 7300 | |
10f2d63a | 7301 | else |
e6cc62c6 | 7302 | |
10f2d63a VZ |
7303 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7304 | if test "x$LINE" != x ; then | |
7305 | eval "DEFAULT_$LINE" | |
7306 | else | |
7307 | no_cache=1 | |
7308 | fi | |
7309 | ||
7310 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7311 | |
e6cc62c6 | 7312 | fi; |
10f2d63a VZ |
7313 | |
7314 | eval "$ac_cv_use_gauge" | |
7315 | if test "$no_cache" != 1; then | |
7316 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7317 | fi | |
7318 | ||
7319 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7320 | echo "$as_me:$LINENO: result: yes" >&5 |
7321 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7322 | else |
e6cc62c6 VS |
7323 | echo "$as_me:$LINENO: result: no" >&5 |
7324 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7325 | fi |
e6cc62c6 | 7326 | |
10f2d63a | 7327 | |
5005acfe | 7328 | enablestring= |
e6cc62c6 VS |
7329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7330 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7331 | no_cache=0 |
7332 | # Check whether --enable-grid or --disable-grid was given. | |
7333 | if test "${enable_grid+set}" = set; then | |
7334 | enableval="$enable_grid" | |
e6cc62c6 | 7335 | |
10f2d63a VZ |
7336 | if test "$enableval" = yes; then |
7337 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7338 | else | |
7339 | ac_cv_use_grid='wxUSE_GRID=no' | |
7340 | fi | |
e6cc62c6 | 7341 | |
10f2d63a | 7342 | else |
e6cc62c6 | 7343 | |
10f2d63a VZ |
7344 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7345 | if test "x$LINE" != x ; then | |
7346 | eval "DEFAULT_$LINE" | |
7347 | else | |
7348 | no_cache=1 | |
7349 | fi | |
7350 | ||
7351 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7352 | |
e6cc62c6 | 7353 | fi; |
10f2d63a VZ |
7354 | |
7355 | eval "$ac_cv_use_grid" | |
7356 | if test "$no_cache" != 1; then | |
7357 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7358 | fi | |
7359 | ||
7360 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7361 | echo "$as_me:$LINENO: result: yes" >&5 |
7362 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7363 | else |
e6cc62c6 VS |
7364 | echo "$as_me:$LINENO: result: no" >&5 |
7365 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7366 | fi |
e6cc62c6 | 7367 | |
10f2d63a | 7368 | |
5005acfe | 7369 | enablestring= |
e6cc62c6 VS |
7370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7371 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7372 | no_cache=0 |
7373 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7374 | if test "${enable_imaglist+set}" = set; then | |
7375 | enableval="$enable_imaglist" | |
e6cc62c6 | 7376 | |
10f2d63a VZ |
7377 | if test "$enableval" = yes; then |
7378 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7379 | else | |
7380 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7381 | fi | |
e6cc62c6 | 7382 | |
10f2d63a | 7383 | else |
e6cc62c6 | 7384 | |
10f2d63a VZ |
7385 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7386 | if test "x$LINE" != x ; then | |
7387 | eval "DEFAULT_$LINE" | |
7388 | else | |
7389 | no_cache=1 | |
7390 | fi | |
7391 | ||
7392 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7393 | |
e6cc62c6 | 7394 | fi; |
10f2d63a VZ |
7395 | |
7396 | eval "$ac_cv_use_imaglist" | |
7397 | if test "$no_cache" != 1; then | |
7398 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7399 | fi | |
7400 | ||
7401 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7402 | echo "$as_me:$LINENO: result: yes" >&5 |
7403 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7404 | else |
e6cc62c6 VS |
7405 | echo "$as_me:$LINENO: result: no" >&5 |
7406 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7407 | fi |
e6cc62c6 | 7408 | |
10f2d63a | 7409 | |
0e012a93 VZ |
7410 | enablestring= |
7411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7412 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7413 | no_cache=0 | |
7414 | # Check whether --enable-listbook or --disable-listbook was given. | |
7415 | if test "${enable_listbook+set}" = set; then | |
7416 | enableval="$enable_listbook" | |
7417 | ||
7418 | if test "$enableval" = yes; then | |
7419 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7420 | else | |
7421 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7422 | fi | |
7423 | ||
7424 | else | |
7425 | ||
7426 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7427 | if test "x$LINE" != x ; then | |
7428 | eval "DEFAULT_$LINE" | |
7429 | else | |
7430 | no_cache=1 | |
7431 | fi | |
7432 | ||
7433 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7434 | ||
7435 | fi; | |
7436 | ||
7437 | eval "$ac_cv_use_listbook" | |
7438 | if test "$no_cache" != 1; then | |
7439 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7440 | fi | |
7441 | ||
7442 | if test "$wxUSE_LISTBOOK" = yes; then | |
7443 | echo "$as_me:$LINENO: result: yes" >&5 | |
7444 | echo "${ECHO_T}yes" >&6 | |
7445 | else | |
7446 | echo "$as_me:$LINENO: result: no" >&5 | |
7447 | echo "${ECHO_T}no" >&6 | |
7448 | fi | |
7449 | ||
7450 | ||
5005acfe | 7451 | enablestring= |
e6cc62c6 VS |
7452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7453 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7454 | no_cache=0 |
7455 | # Check whether --enable-listbox or --disable-listbox was given. | |
7456 | if test "${enable_listbox+set}" = set; then | |
7457 | enableval="$enable_listbox" | |
e6cc62c6 | 7458 | |
10f2d63a VZ |
7459 | if test "$enableval" = yes; then |
7460 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7461 | else | |
7462 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7463 | fi | |
e6cc62c6 | 7464 | |
10f2d63a | 7465 | else |
e6cc62c6 | 7466 | |
10f2d63a VZ |
7467 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7468 | if test "x$LINE" != x ; then | |
7469 | eval "DEFAULT_$LINE" | |
7470 | else | |
7471 | no_cache=1 | |
7472 | fi | |
7473 | ||
7474 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7475 | |
e6cc62c6 | 7476 | fi; |
10f2d63a VZ |
7477 | |
7478 | eval "$ac_cv_use_listbox" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7484 | echo "$as_me:$LINENO: result: yes" >&5 |
7485 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7486 | else |
e6cc62c6 VS |
7487 | echo "$as_me:$LINENO: result: no" >&5 |
7488 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7489 | fi |
e6cc62c6 | 7490 | |
10f2d63a | 7491 | |
5005acfe | 7492 | enablestring= |
e6cc62c6 VS |
7493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7494 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7495 | no_cache=0 |
7496 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7497 | if test "${enable_listctrl+set}" = set; then | |
7498 | enableval="$enable_listctrl" | |
e6cc62c6 | 7499 | |
10f2d63a VZ |
7500 | if test "$enableval" = yes; then |
7501 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7502 | else | |
7503 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7504 | fi | |
e6cc62c6 | 7505 | |
10f2d63a | 7506 | else |
e6cc62c6 | 7507 | |
10f2d63a VZ |
7508 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7509 | if test "x$LINE" != x ; then | |
7510 | eval "DEFAULT_$LINE" | |
7511 | else | |
7512 | no_cache=1 | |
7513 | fi | |
7514 | ||
7515 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7516 | |
e6cc62c6 | 7517 | fi; |
10f2d63a VZ |
7518 | |
7519 | eval "$ac_cv_use_listctrl" | |
7520 | if test "$no_cache" != 1; then | |
7521 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7522 | fi | |
7523 | ||
7524 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7525 | echo "$as_me:$LINENO: result: yes" >&5 |
7526 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7527 | else |
e6cc62c6 VS |
7528 | echo "$as_me:$LINENO: result: no" >&5 |
7529 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7530 | fi |
e6cc62c6 | 7531 | |
10f2d63a | 7532 | |
5005acfe | 7533 | enablestring= |
e6cc62c6 VS |
7534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7535 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7536 | no_cache=0 |
7537 | # Check whether --enable-notebook or --disable-notebook was given. | |
7538 | if test "${enable_notebook+set}" = set; then | |
7539 | enableval="$enable_notebook" | |
e6cc62c6 | 7540 | |
10f2d63a VZ |
7541 | if test "$enableval" = yes; then |
7542 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7543 | else | |
7544 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7545 | fi | |
e6cc62c6 | 7546 | |
10f2d63a | 7547 | else |
e6cc62c6 | 7548 | |
10f2d63a VZ |
7549 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7550 | if test "x$LINE" != x ; then | |
7551 | eval "DEFAULT_$LINE" | |
7552 | else | |
7553 | no_cache=1 | |
7554 | fi | |
7555 | ||
7556 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7557 | |
e6cc62c6 | 7558 | fi; |
10f2d63a VZ |
7559 | |
7560 | eval "$ac_cv_use_notebook" | |
7561 | if test "$no_cache" != 1; then | |
7562 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7563 | fi | |
7564 | ||
7565 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7566 | echo "$as_me:$LINENO: result: yes" >&5 |
7567 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7568 | else |
e6cc62c6 VS |
7569 | echo "$as_me:$LINENO: result: no" >&5 |
7570 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7571 | fi |
e6cc62c6 | 7572 | |
10f2d63a | 7573 | |
5005acfe | 7574 | enablestring= |
e6cc62c6 VS |
7575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7576 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7577 | no_cache=0 |
7578 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7579 | if test "${enable_radiobox+set}" = set; then | |
7580 | enableval="$enable_radiobox" | |
e6cc62c6 | 7581 | |
10f2d63a VZ |
7582 | if test "$enableval" = yes; then |
7583 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7584 | else | |
7585 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7586 | fi | |
e6cc62c6 | 7587 | |
10f2d63a | 7588 | else |
e6cc62c6 | 7589 | |
10f2d63a VZ |
7590 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7591 | if test "x$LINE" != x ; then | |
7592 | eval "DEFAULT_$LINE" | |
7593 | else | |
7594 | no_cache=1 | |
7595 | fi | |
7596 | ||
7597 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7598 | |
e6cc62c6 | 7599 | fi; |
10f2d63a VZ |
7600 | |
7601 | eval "$ac_cv_use_radiobox" | |
7602 | if test "$no_cache" != 1; then | |
7603 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7604 | fi | |
7605 | ||
7606 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7607 | echo "$as_me:$LINENO: result: yes" >&5 |
7608 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7609 | else |
e6cc62c6 VS |
7610 | echo "$as_me:$LINENO: result: no" >&5 |
7611 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7612 | fi |
e6cc62c6 | 7613 | |
10f2d63a | 7614 | |
5005acfe | 7615 | enablestring= |
e6cc62c6 VS |
7616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7617 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7618 | no_cache=0 |
7619 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7620 | if test "${enable_radiobtn+set}" = set; then | |
7621 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7622 | |
10f2d63a VZ |
7623 | if test "$enableval" = yes; then |
7624 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7625 | else | |
7626 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7627 | fi | |
e6cc62c6 | 7628 | |
10f2d63a | 7629 | else |
e6cc62c6 | 7630 | |
10f2d63a VZ |
7631 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7632 | if test "x$LINE" != x ; then | |
7633 | eval "DEFAULT_$LINE" | |
7634 | else | |
7635 | no_cache=1 | |
7636 | fi | |
7637 | ||
7638 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7639 | |
e6cc62c6 | 7640 | fi; |
10f2d63a VZ |
7641 | |
7642 | eval "$ac_cv_use_radiobtn" | |
7643 | if test "$no_cache" != 1; then | |
7644 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7645 | fi | |
7646 | ||
7647 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7648 | echo "$as_me:$LINENO: result: yes" >&5 |
7649 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7650 | else |
e6cc62c6 VS |
7651 | echo "$as_me:$LINENO: result: no" >&5 |
7652 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7653 | fi |
e6cc62c6 | 7654 | |
10f2d63a | 7655 | |
5005acfe | 7656 | enablestring= |
e6cc62c6 VS |
7657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7658 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7659 | no_cache=0 |
7660 | # Check whether --enable-sash or --disable-sash was given. | |
7661 | if test "${enable_sash+set}" = set; then | |
7662 | enableval="$enable_sash" | |
e6cc62c6 | 7663 | |
10f2d63a VZ |
7664 | if test "$enableval" = yes; then |
7665 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7666 | else | |
7667 | ac_cv_use_sash='wxUSE_SASH=no' | |
7668 | fi | |
e6cc62c6 | 7669 | |
10f2d63a | 7670 | else |
e6cc62c6 | 7671 | |
10f2d63a VZ |
7672 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7673 | if test "x$LINE" != x ; then | |
7674 | eval "DEFAULT_$LINE" | |
7675 | else | |
7676 | no_cache=1 | |
7677 | fi | |
7678 | ||
7679 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7680 | |
e6cc62c6 | 7681 | fi; |
10f2d63a VZ |
7682 | |
7683 | eval "$ac_cv_use_sash" | |
7684 | if test "$no_cache" != 1; then | |
7685 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7686 | fi | |
7687 | ||
7688 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7689 | echo "$as_me:$LINENO: result: yes" >&5 |
7690 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7691 | else |
e6cc62c6 VS |
7692 | echo "$as_me:$LINENO: result: no" >&5 |
7693 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7694 | fi |
e6cc62c6 | 7695 | |
10f2d63a | 7696 | |
5005acfe | 7697 | enablestring= |
e6cc62c6 VS |
7698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7699 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7700 | no_cache=0 |
7701 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7702 | if test "${enable_scrollbar+set}" = set; then | |
7703 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7704 | |
10f2d63a VZ |
7705 | if test "$enableval" = yes; then |
7706 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7707 | else | |
7708 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7709 | fi | |
e6cc62c6 | 7710 | |
10f2d63a | 7711 | else |
e6cc62c6 | 7712 | |
10f2d63a VZ |
7713 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7714 | if test "x$LINE" != x ; then | |
7715 | eval "DEFAULT_$LINE" | |
7716 | else | |
7717 | no_cache=1 | |
7718 | fi | |
7719 | ||
7720 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7721 | |
e6cc62c6 | 7722 | fi; |
10f2d63a VZ |
7723 | |
7724 | eval "$ac_cv_use_scrollbar" | |
7725 | if test "$no_cache" != 1; then | |
7726 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7727 | fi | |
7728 | ||
7729 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7730 | echo "$as_me:$LINENO: result: yes" >&5 |
7731 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7732 | else |
e6cc62c6 VS |
7733 | echo "$as_me:$LINENO: result: no" >&5 |
7734 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7735 | fi |
e6cc62c6 | 7736 | |
10f2d63a | 7737 | |
5005acfe | 7738 | enablestring= |
e6cc62c6 VS |
7739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7740 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7741 | no_cache=0 |
7742 | # Check whether --enable-slider or --disable-slider was given. | |
7743 | if test "${enable_slider+set}" = set; then | |
7744 | enableval="$enable_slider" | |
e6cc62c6 | 7745 | |
10f2d63a VZ |
7746 | if test "$enableval" = yes; then |
7747 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7748 | else | |
7749 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7750 | fi | |
e6cc62c6 | 7751 | |
10f2d63a | 7752 | else |
e6cc62c6 | 7753 | |
10f2d63a VZ |
7754 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7755 | if test "x$LINE" != x ; then | |
7756 | eval "DEFAULT_$LINE" | |
7757 | else | |
7758 | no_cache=1 | |
7759 | fi | |
7760 | ||
7761 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7762 | |
e6cc62c6 | 7763 | fi; |
10f2d63a VZ |
7764 | |
7765 | eval "$ac_cv_use_slider" | |
7766 | if test "$no_cache" != 1; then | |
7767 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7768 | fi | |
7769 | ||
7770 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7771 | echo "$as_me:$LINENO: result: yes" >&5 |
7772 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7773 | else |
e6cc62c6 VS |
7774 | echo "$as_me:$LINENO: result: no" >&5 |
7775 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7776 | fi |
e6cc62c6 | 7777 | |
10f2d63a | 7778 | |
5005acfe | 7779 | enablestring= |
e6cc62c6 VS |
7780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7781 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7782 | no_cache=0 |
7783 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7784 | if test "${enable_spinbtn+set}" = set; then | |
7785 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7786 | |
10f2d63a VZ |
7787 | if test "$enableval" = yes; then |
7788 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7789 | else | |
7790 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7791 | fi | |
e6cc62c6 | 7792 | |
10f2d63a | 7793 | else |
e6cc62c6 | 7794 | |
10f2d63a VZ |
7795 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7796 | if test "x$LINE" != x ; then | |
7797 | eval "DEFAULT_$LINE" | |
7798 | else | |
7799 | no_cache=1 | |
7800 | fi | |
7801 | ||
7802 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7803 | |
e6cc62c6 | 7804 | fi; |
10f2d63a VZ |
7805 | |
7806 | eval "$ac_cv_use_spinbtn" | |
7807 | if test "$no_cache" != 1; then | |
7808 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7809 | fi | |
7810 | ||
7811 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7812 | echo "$as_me:$LINENO: result: yes" >&5 |
7813 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7814 | else |
e6cc62c6 VS |
7815 | echo "$as_me:$LINENO: result: no" >&5 |
7816 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7817 | fi |
e6cc62c6 | 7818 | |
10f2d63a | 7819 | |
5005acfe | 7820 | enablestring= |
e6cc62c6 VS |
7821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7822 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7823 | no_cache=0 |
7824 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7825 | if test "${enable_spinctrl+set}" = set; then | |
7826 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7827 | |
56cfaa52 RR |
7828 | if test "$enableval" = yes; then |
7829 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7830 | else | |
7831 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7832 | fi | |
e6cc62c6 | 7833 | |
56cfaa52 | 7834 | else |
e6cc62c6 | 7835 | |
56cfaa52 RR |
7836 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7837 | if test "x$LINE" != x ; then | |
7838 | eval "DEFAULT_$LINE" | |
7839 | else | |
7840 | no_cache=1 | |
7841 | fi | |
7842 | ||
7843 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7844 | |
e6cc62c6 | 7845 | fi; |
56cfaa52 RR |
7846 | |
7847 | eval "$ac_cv_use_spinctrl" | |
7848 | if test "$no_cache" != 1; then | |
7849 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7850 | fi | |
7851 | ||
7852 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7853 | echo "$as_me:$LINENO: result: yes" >&5 |
7854 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7855 | else |
e6cc62c6 VS |
7856 | echo "$as_me:$LINENO: result: no" >&5 |
7857 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7858 | fi |
e6cc62c6 | 7859 | |
56cfaa52 | 7860 | |
5005acfe | 7861 | enablestring= |
e6cc62c6 VS |
7862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7863 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7864 | no_cache=0 |
7865 | # Check whether --enable-splitter or --disable-splitter was given. | |
7866 | if test "${enable_splitter+set}" = set; then | |
7867 | enableval="$enable_splitter" | |
e6cc62c6 | 7868 | |
10f2d63a VZ |
7869 | if test "$enableval" = yes; then |
7870 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7871 | else | |
7872 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7873 | fi | |
e6cc62c6 | 7874 | |
10f2d63a | 7875 | else |
e6cc62c6 | 7876 | |
10f2d63a VZ |
7877 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7878 | if test "x$LINE" != x ; then | |
7879 | eval "DEFAULT_$LINE" | |
7880 | else | |
7881 | no_cache=1 | |
7882 | fi | |
7883 | ||
7884 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7885 | |
e6cc62c6 | 7886 | fi; |
10f2d63a VZ |
7887 | |
7888 | eval "$ac_cv_use_splitter" | |
7889 | if test "$no_cache" != 1; then | |
7890 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7891 | fi | |
7892 | ||
7893 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7894 | echo "$as_me:$LINENO: result: yes" >&5 |
7895 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7896 | else |
e6cc62c6 VS |
7897 | echo "$as_me:$LINENO: result: no" >&5 |
7898 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7899 | fi |
e6cc62c6 | 7900 | |
10f2d63a | 7901 | |
5005acfe | 7902 | enablestring= |
e6cc62c6 VS |
7903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7904 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7905 | no_cache=0 |
7906 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7907 | if test "${enable_statbmp+set}" = set; then | |
7908 | enableval="$enable_statbmp" | |
e6cc62c6 | 7909 | |
10f2d63a VZ |
7910 | if test "$enableval" = yes; then |
7911 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7912 | else | |
7913 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7914 | fi | |
e6cc62c6 | 7915 | |
10f2d63a | 7916 | else |
e6cc62c6 | 7917 | |
10f2d63a VZ |
7918 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7919 | if test "x$LINE" != x ; then | |
7920 | eval "DEFAULT_$LINE" | |
7921 | else | |
7922 | no_cache=1 | |
7923 | fi | |
7924 | ||
7925 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7926 | |
e6cc62c6 | 7927 | fi; |
10f2d63a VZ |
7928 | |
7929 | eval "$ac_cv_use_statbmp" | |
7930 | if test "$no_cache" != 1; then | |
7931 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7932 | fi | |
7933 | ||
7934 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7935 | echo "$as_me:$LINENO: result: yes" >&5 |
7936 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7937 | else |
e6cc62c6 VS |
7938 | echo "$as_me:$LINENO: result: no" >&5 |
7939 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7940 | fi |
e6cc62c6 | 7941 | |
10f2d63a | 7942 | |
5005acfe | 7943 | enablestring= |
e6cc62c6 VS |
7944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7945 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7946 | no_cache=0 |
7947 | # Check whether --enable-statbox or --disable-statbox was given. | |
7948 | if test "${enable_statbox+set}" = set; then | |
7949 | enableval="$enable_statbox" | |
e6cc62c6 | 7950 | |
10f2d63a VZ |
7951 | if test "$enableval" = yes; then |
7952 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7953 | else | |
7954 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7955 | fi | |
e6cc62c6 | 7956 | |
10f2d63a | 7957 | else |
e6cc62c6 | 7958 | |
10f2d63a VZ |
7959 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7960 | if test "x$LINE" != x ; then | |
7961 | eval "DEFAULT_$LINE" | |
7962 | else | |
7963 | no_cache=1 | |
7964 | fi | |
7965 | ||
7966 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7967 | |
e6cc62c6 | 7968 | fi; |
10f2d63a VZ |
7969 | |
7970 | eval "$ac_cv_use_statbox" | |
7971 | if test "$no_cache" != 1; then | |
7972 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7973 | fi | |
7974 | ||
7975 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7976 | echo "$as_me:$LINENO: result: yes" >&5 |
7977 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7978 | else |
e6cc62c6 VS |
7979 | echo "$as_me:$LINENO: result: no" >&5 |
7980 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7981 | fi |
e6cc62c6 | 7982 | |
10f2d63a | 7983 | |
5005acfe | 7984 | enablestring= |
e6cc62c6 VS |
7985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7986 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7987 | no_cache=0 |
7988 | # Check whether --enable-statline or --disable-statline was given. | |
7989 | if test "${enable_statline+set}" = set; then | |
7990 | enableval="$enable_statline" | |
e6cc62c6 | 7991 | |
10f2d63a VZ |
7992 | if test "$enableval" = yes; then |
7993 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7994 | else | |
7995 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7996 | fi | |
e6cc62c6 | 7997 | |
10f2d63a | 7998 | else |
e6cc62c6 | 7999 | |
10f2d63a VZ |
8000 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
8001 | if test "x$LINE" != x ; then | |
8002 | eval "DEFAULT_$LINE" | |
8003 | else | |
8004 | no_cache=1 | |
8005 | fi | |
8006 | ||
8007 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 8008 | |
e6cc62c6 | 8009 | fi; |
10f2d63a VZ |
8010 | |
8011 | eval "$ac_cv_use_statline" | |
8012 | if test "$no_cache" != 1; then | |
8013 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8014 | fi | |
8015 | ||
8016 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
8017 | echo "$as_me:$LINENO: result: yes" >&5 |
8018 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8019 | else |
e6cc62c6 VS |
8020 | echo "$as_me:$LINENO: result: no" >&5 |
8021 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8022 | fi |
e6cc62c6 | 8023 | |
10f2d63a | 8024 | |
5005acfe | 8025 | enablestring= |
e6cc62c6 VS |
8026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
8027 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
8028 | no_cache=0 |
8029 | # Check whether --enable-stattext or --disable-stattext was given. | |
8030 | if test "${enable_stattext+set}" = set; then | |
8031 | enableval="$enable_stattext" | |
e6cc62c6 | 8032 | |
1e6feb95 VZ |
8033 | if test "$enableval" = yes; then |
8034 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8035 | else | |
8036 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8037 | fi | |
e6cc62c6 | 8038 | |
1e6feb95 | 8039 | else |
e6cc62c6 | 8040 | |
1e6feb95 VZ |
8041 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
8042 | if test "x$LINE" != x ; then | |
8043 | eval "DEFAULT_$LINE" | |
8044 | else | |
8045 | no_cache=1 | |
8046 | fi | |
8047 | ||
8048 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 8049 | |
e6cc62c6 | 8050 | fi; |
1e6feb95 VZ |
8051 | |
8052 | eval "$ac_cv_use_stattext" | |
8053 | if test "$no_cache" != 1; then | |
8054 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8055 | fi | |
8056 | ||
8057 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
8058 | echo "$as_me:$LINENO: result: yes" >&5 |
8059 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8060 | else |
e6cc62c6 VS |
8061 | echo "$as_me:$LINENO: result: no" >&5 |
8062 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8063 | fi |
e6cc62c6 | 8064 | |
1e6feb95 | 8065 | |
5005acfe | 8066 | enablestring= |
e6cc62c6 VS |
8067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
8068 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8069 | no_cache=0 |
8070 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8071 | if test "${enable_statusbar+set}" = set; then | |
8072 | enableval="$enable_statusbar" | |
e6cc62c6 | 8073 | |
10f2d63a VZ |
8074 | if test "$enableval" = yes; then |
8075 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8076 | else | |
8077 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8078 | fi | |
e6cc62c6 | 8079 | |
10f2d63a | 8080 | else |
e6cc62c6 | 8081 | |
10f2d63a VZ |
8082 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
8083 | if test "x$LINE" != x ; then | |
8084 | eval "DEFAULT_$LINE" | |
8085 | else | |
8086 | no_cache=1 | |
8087 | fi | |
8088 | ||
8089 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 8090 | |
e6cc62c6 | 8091 | fi; |
10f2d63a VZ |
8092 | |
8093 | eval "$ac_cv_use_statusbar" | |
8094 | if test "$no_cache" != 1; then | |
8095 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8096 | fi | |
8097 | ||
8098 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
8099 | echo "$as_me:$LINENO: result: yes" >&5 |
8100 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8101 | else |
e6cc62c6 VS |
8102 | echo "$as_me:$LINENO: result: no" >&5 |
8103 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8104 | fi |
e6cc62c6 | 8105 | |
10f2d63a | 8106 | |
5005acfe | 8107 | enablestring= |
e6cc62c6 VS |
8108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
8109 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
8110 | no_cache=0 |
8111 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8112 | if test "${enable_tabdialog+set}" = set; then | |
8113 | enableval="$enable_tabdialog" | |
e6cc62c6 | 8114 | |
10f2d63a VZ |
8115 | if test "$enableval" = yes; then |
8116 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8117 | else | |
8118 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8119 | fi | |
e6cc62c6 | 8120 | |
10f2d63a | 8121 | else |
e6cc62c6 | 8122 | |
10f2d63a VZ |
8123 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
8124 | if test "x$LINE" != x ; then | |
8125 | eval "DEFAULT_$LINE" | |
8126 | else | |
8127 | no_cache=1 | |
8128 | fi | |
8129 | ||
8130 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 8131 | |
e6cc62c6 | 8132 | fi; |
10f2d63a VZ |
8133 | |
8134 | eval "$ac_cv_use_tabdialog" | |
8135 | if test "$no_cache" != 1; then | |
8136 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8137 | fi | |
8138 | ||
8139 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8140 | echo "$as_me:$LINENO: result: yes" >&5 |
8141 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8142 | else |
e6cc62c6 VS |
8143 | echo "$as_me:$LINENO: result: no" >&5 |
8144 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8145 | fi |
e6cc62c6 | 8146 | |
10f2d63a | 8147 | |
5005acfe | 8148 | enablestring= |
e6cc62c6 VS |
8149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8150 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8151 | no_cache=0 |
8152 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8153 | if test "${enable_textctrl+set}" = set; then | |
8154 | enableval="$enable_textctrl" | |
e6cc62c6 | 8155 | |
1e6feb95 VZ |
8156 | if test "$enableval" = yes; then |
8157 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8158 | else | |
8159 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8160 | fi | |
e6cc62c6 | 8161 | |
1e6feb95 | 8162 | else |
e6cc62c6 | 8163 | |
1e6feb95 VZ |
8164 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8165 | if test "x$LINE" != x ; then | |
8166 | eval "DEFAULT_$LINE" | |
8167 | else | |
8168 | no_cache=1 | |
8169 | fi | |
8170 | ||
8171 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8172 | |
e6cc62c6 | 8173 | fi; |
1e6feb95 VZ |
8174 | |
8175 | eval "$ac_cv_use_textctrl" | |
8176 | if test "$no_cache" != 1; then | |
8177 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8178 | fi | |
8179 | ||
8180 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8181 | echo "$as_me:$LINENO: result: yes" >&5 |
8182 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8183 | else |
e6cc62c6 VS |
8184 | echo "$as_me:$LINENO: result: no" >&5 |
8185 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8186 | fi |
e6cc62c6 | 8187 | |
1e6feb95 | 8188 | |
5005acfe | 8189 | enablestring= |
e6cc62c6 VS |
8190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8191 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8192 | no_cache=0 |
8193 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8194 | if test "${enable_togglebtn+set}" = set; then | |
8195 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8196 | |
1db8dc4a VZ |
8197 | if test "$enableval" = yes; then |
8198 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8199 | else | |
8200 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8201 | fi | |
e6cc62c6 | 8202 | |
1db8dc4a | 8203 | else |
e6cc62c6 | 8204 | |
1db8dc4a VZ |
8205 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8206 | if test "x$LINE" != x ; then | |
8207 | eval "DEFAULT_$LINE" | |
8208 | else | |
8209 | no_cache=1 | |
8210 | fi | |
8211 | ||
8212 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8213 | |
e6cc62c6 | 8214 | fi; |
1db8dc4a VZ |
8215 | |
8216 | eval "$ac_cv_use_togglebtn" | |
8217 | if test "$no_cache" != 1; then | |
8218 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8219 | fi | |
8220 | ||
8221 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8222 | echo "$as_me:$LINENO: result: yes" >&5 |
8223 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8224 | else |
e6cc62c6 VS |
8225 | echo "$as_me:$LINENO: result: no" >&5 |
8226 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8227 | fi |
e6cc62c6 | 8228 | |
1db8dc4a | 8229 | |
5005acfe | 8230 | enablestring= |
e6cc62c6 VS |
8231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8232 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8233 | no_cache=0 |
8234 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8235 | if test "${enable_toolbar+set}" = set; then | |
8236 | enableval="$enable_toolbar" | |
e6cc62c6 | 8237 | |
10f2d63a VZ |
8238 | if test "$enableval" = yes; then |
8239 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8240 | else | |
8241 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8242 | fi | |
e6cc62c6 | 8243 | |
10f2d63a | 8244 | else |
e6cc62c6 | 8245 | |
10f2d63a VZ |
8246 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8247 | if test "x$LINE" != x ; then | |
8248 | eval "DEFAULT_$LINE" | |
8249 | else | |
8250 | no_cache=1 | |
8251 | fi | |
8252 | ||
8253 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8254 | |
e6cc62c6 | 8255 | fi; |
10f2d63a VZ |
8256 | |
8257 | eval "$ac_cv_use_toolbar" | |
8258 | if test "$no_cache" != 1; then | |
8259 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8260 | fi | |
8261 | ||
8262 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8263 | echo "$as_me:$LINENO: result: yes" >&5 |
8264 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8265 | else |
e6cc62c6 VS |
8266 | echo "$as_me:$LINENO: result: no" >&5 |
8267 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8268 | fi |
e6cc62c6 | 8269 | |
10f2d63a | 8270 | |
5005acfe | 8271 | enablestring= |
e6cc62c6 VS |
8272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8273 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8274 | no_cache=0 |
8275 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8276 | if test "${enable_tbarnative+set}" = set; then | |
8277 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8278 | |
360d6699 VZ |
8279 | if test "$enableval" = yes; then |
8280 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8281 | else | |
8282 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8283 | fi | |
e6cc62c6 | 8284 | |
360d6699 | 8285 | else |
e6cc62c6 | 8286 | |
360d6699 VZ |
8287 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8288 | if test "x$LINE" != x ; then | |
8289 | eval "DEFAULT_$LINE" | |
8290 | else | |
8291 | no_cache=1 | |
8292 | fi | |
8293 | ||
8294 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8295 | |
e6cc62c6 | 8296 | fi; |
360d6699 VZ |
8297 | |
8298 | eval "$ac_cv_use_tbarnative" | |
8299 | if test "$no_cache" != 1; then | |
8300 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8301 | fi | |
8302 | ||
8303 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8304 | echo "$as_me:$LINENO: result: yes" >&5 |
8305 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8306 | else |
e6cc62c6 VS |
8307 | echo "$as_me:$LINENO: result: no" >&5 |
8308 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8309 | fi |
e6cc62c6 | 8310 | |
360d6699 | 8311 | |
5005acfe | 8312 | enablestring= |
e6cc62c6 VS |
8313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8314 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8315 | no_cache=0 |
8316 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8317 | if test "${enable_tbarsmpl+set}" = set; then | |
8318 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8319 | |
360d6699 VZ |
8320 | if test "$enableval" = yes; then |
8321 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8322 | else | |
8323 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8324 | fi | |
e6cc62c6 | 8325 | |
360d6699 | 8326 | else |
e6cc62c6 | 8327 | |
360d6699 VZ |
8328 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8329 | if test "x$LINE" != x ; then | |
8330 | eval "DEFAULT_$LINE" | |
8331 | else | |
8332 | no_cache=1 | |
8333 | fi | |
8334 | ||
8335 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8336 | |
e6cc62c6 | 8337 | fi; |
360d6699 VZ |
8338 | |
8339 | eval "$ac_cv_use_tbarsmpl" | |
8340 | if test "$no_cache" != 1; then | |
8341 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8342 | fi | |
8343 | ||
8344 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8345 | echo "$as_me:$LINENO: result: yes" >&5 |
8346 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8347 | else |
e6cc62c6 VS |
8348 | echo "$as_me:$LINENO: result: no" >&5 |
8349 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8350 | fi |
e6cc62c6 | 8351 | |
360d6699 | 8352 | |
5005acfe | 8353 | enablestring= |
e6cc62c6 VS |
8354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8355 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8356 | no_cache=0 |
8357 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8358 | if test "${enable_treectrl+set}" = set; then | |
8359 | enableval="$enable_treectrl" | |
e6cc62c6 | 8360 | |
10f2d63a VZ |
8361 | if test "$enableval" = yes; then |
8362 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8363 | else | |
8364 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8365 | fi | |
e6cc62c6 | 8366 | |
10f2d63a | 8367 | else |
e6cc62c6 | 8368 | |
10f2d63a VZ |
8369 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8370 | if test "x$LINE" != x ; then | |
8371 | eval "DEFAULT_$LINE" | |
8372 | else | |
8373 | no_cache=1 | |
8374 | fi | |
8375 | ||
8376 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8377 | |
e6cc62c6 | 8378 | fi; |
10f2d63a | 8379 | |
1e6feb95 VZ |
8380 | eval "$ac_cv_use_treectrl" |
8381 | if test "$no_cache" != 1; then | |
8382 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8383 | fi | |
8384 | ||
8385 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8386 | echo "$as_me:$LINENO: result: yes" >&5 |
8387 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8388 | else |
e6cc62c6 VS |
8389 | echo "$as_me:$LINENO: result: no" >&5 |
8390 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8391 | fi |
e6cc62c6 | 8392 | |
1e6feb95 | 8393 | |
5005acfe | 8394 | enablestring= |
e6cc62c6 VS |
8395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8396 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8397 | no_cache=0 |
8398 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8399 | if test "${enable_tipwindow+set}" = set; then | |
8400 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8401 | |
9926e4a4 VZ |
8402 | if test "$enableval" = yes; then |
8403 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8404 | else | |
8405 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8406 | fi | |
e6cc62c6 | 8407 | |
9926e4a4 | 8408 | else |
e6cc62c6 | 8409 | |
9926e4a4 VZ |
8410 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8411 | if test "x$LINE" != x ; then | |
8412 | eval "DEFAULT_$LINE" | |
8413 | else | |
8414 | no_cache=1 | |
8415 | fi | |
8416 | ||
8417 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8418 | |
e6cc62c6 | 8419 | fi; |
9926e4a4 VZ |
8420 | |
8421 | eval "$ac_cv_use_tipwindow" | |
8422 | if test "$no_cache" != 1; then | |
8423 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8424 | fi | |
8425 | ||
8426 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8427 | echo "$as_me:$LINENO: result: yes" >&5 |
8428 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8429 | else |
e6cc62c6 VS |
8430 | echo "$as_me:$LINENO: result: no" >&5 |
8431 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8432 | fi |
e6cc62c6 | 8433 | |
9926e4a4 | 8434 | |
5005acfe | 8435 | enablestring= |
e6cc62c6 VS |
8436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8437 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8438 | no_cache=0 |
8439 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8440 | if test "${enable_popupwin+set}" = set; then | |
8441 | enableval="$enable_popupwin" | |
e6cc62c6 | 8442 | |
9f41d601 RR |
8443 | if test "$enableval" = yes; then |
8444 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8445 | else | |
8446 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8447 | fi | |
e6cc62c6 | 8448 | |
9f41d601 | 8449 | else |
e6cc62c6 | 8450 | |
9f41d601 RR |
8451 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8452 | if test "x$LINE" != x ; then | |
8453 | eval "DEFAULT_$LINE" | |
8454 | else | |
8455 | no_cache=1 | |
8456 | fi | |
8457 | ||
8458 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8459 | |
e6cc62c6 | 8460 | fi; |
9f41d601 RR |
8461 | |
8462 | eval "$ac_cv_use_popupwin" | |
8463 | if test "$no_cache" != 1; then | |
8464 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8465 | fi | |
8466 | ||
8467 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8468 | echo "$as_me:$LINENO: result: yes" >&5 |
8469 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8470 | else |
e6cc62c6 VS |
8471 | echo "$as_me:$LINENO: result: no" >&5 |
8472 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8473 | fi |
e6cc62c6 | 8474 | |
52127426 | 8475 | |
8284b0c5 MB |
8476 | |
8477 | ||
5005acfe | 8478 | enablestring= |
e6cc62c6 VS |
8479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8480 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8481 | no_cache=0 |
8482 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8483 | if test "${enable_commondlg+set}" = set; then | |
8484 | enableval="$enable_commondlg" | |
e6cc62c6 | 8485 | |
1e6feb95 VZ |
8486 | if test "$enableval" = yes; then |
8487 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8488 | else | |
8489 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8490 | fi | |
e6cc62c6 | 8491 | |
1e6feb95 | 8492 | else |
e6cc62c6 | 8493 | |
1e6feb95 VZ |
8494 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8495 | if test "x$LINE" != x ; then | |
8496 | eval "DEFAULT_$LINE" | |
8497 | else | |
8498 | no_cache=1 | |
8499 | fi | |
8500 | ||
8501 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8502 | |
e6cc62c6 | 8503 | fi; |
1e6feb95 VZ |
8504 | |
8505 | eval "$ac_cv_use_commondlg" | |
8506 | if test "$no_cache" != 1; then | |
8507 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8508 | fi | |
8509 | ||
8510 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8511 | echo "$as_me:$LINENO: result: yes" >&5 |
8512 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8513 | else |
e6cc62c6 VS |
8514 | echo "$as_me:$LINENO: result: no" >&5 |
8515 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8516 | fi |
e6cc62c6 | 8517 | |
1e6feb95 | 8518 | |
5005acfe | 8519 | enablestring= |
e6cc62c6 VS |
8520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8521 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8522 | no_cache=0 |
8523 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8524 | if test "${enable_choicedlg+set}" = set; then | |
8525 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8526 | |
1e6feb95 VZ |
8527 | if test "$enableval" = yes; then |
8528 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8529 | else | |
8530 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8531 | fi | |
e6cc62c6 | 8532 | |
1e6feb95 | 8533 | else |
e6cc62c6 | 8534 | |
1e6feb95 VZ |
8535 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8536 | if test "x$LINE" != x ; then | |
8537 | eval "DEFAULT_$LINE" | |
8538 | else | |
8539 | no_cache=1 | |
8540 | fi | |
8541 | ||
8542 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8543 | |
e6cc62c6 | 8544 | fi; |
1e6feb95 VZ |
8545 | |
8546 | eval "$ac_cv_use_choicedlg" | |
8547 | if test "$no_cache" != 1; then | |
8548 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8549 | fi | |
8550 | ||
8551 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8552 | echo "$as_me:$LINENO: result: yes" >&5 |
8553 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8554 | else |
e6cc62c6 VS |
8555 | echo "$as_me:$LINENO: result: no" >&5 |
8556 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8557 | fi |
e6cc62c6 | 8558 | |
1e6feb95 | 8559 | |
5005acfe | 8560 | enablestring= |
e6cc62c6 VS |
8561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8562 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8563 | no_cache=0 |
8564 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8565 | if test "${enable_coldlg+set}" = set; then | |
8566 | enableval="$enable_coldlg" | |
e6cc62c6 | 8567 | |
1e6feb95 VZ |
8568 | if test "$enableval" = yes; then |
8569 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8570 | else | |
8571 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8572 | fi | |
e6cc62c6 | 8573 | |
1e6feb95 | 8574 | else |
e6cc62c6 | 8575 | |
1e6feb95 VZ |
8576 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8577 | if test "x$LINE" != x ; then | |
8578 | eval "DEFAULT_$LINE" | |
8579 | else | |
8580 | no_cache=1 | |
8581 | fi | |
8582 | ||
8583 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8584 | |
e6cc62c6 | 8585 | fi; |
1e6feb95 VZ |
8586 | |
8587 | eval "$ac_cv_use_coldlg" | |
8588 | if test "$no_cache" != 1; then | |
8589 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8590 | fi | |
8591 | ||
8592 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8593 | echo "$as_me:$LINENO: result: yes" >&5 |
8594 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8595 | else |
e6cc62c6 VS |
8596 | echo "$as_me:$LINENO: result: no" >&5 |
8597 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8598 | fi |
e6cc62c6 | 8599 | |
1e6feb95 | 8600 | |
5005acfe | 8601 | enablestring= |
e6cc62c6 VS |
8602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8603 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8604 | no_cache=0 |
8605 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8606 | if test "${enable_filedlg+set}" = set; then | |
8607 | enableval="$enable_filedlg" | |
e6cc62c6 | 8608 | |
1e6feb95 VZ |
8609 | if test "$enableval" = yes; then |
8610 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8611 | else | |
8612 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8613 | fi | |
e6cc62c6 | 8614 | |
1e6feb95 | 8615 | else |
e6cc62c6 | 8616 | |
1e6feb95 VZ |
8617 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8618 | if test "x$LINE" != x ; then | |
8619 | eval "DEFAULT_$LINE" | |
8620 | else | |
8621 | no_cache=1 | |
8622 | fi | |
8623 | ||
8624 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8625 | |
e6cc62c6 | 8626 | fi; |
1e6feb95 VZ |
8627 | |
8628 | eval "$ac_cv_use_filedlg" | |
8629 | if test "$no_cache" != 1; then | |
8630 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8631 | fi | |
8632 | ||
8633 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8634 | echo "$as_me:$LINENO: result: yes" >&5 |
8635 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8636 | else |
e6cc62c6 VS |
8637 | echo "$as_me:$LINENO: result: no" >&5 |
8638 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8639 | fi |
e6cc62c6 | 8640 | |
1e6feb95 | 8641 | |
5005acfe | 8642 | enablestring= |
e6cc62c6 VS |
8643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8644 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8645 | no_cache=0 |
69d27ff7 MB |
8646 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8647 | if test "${enable_finddlg+set}" = set; then | |
8648 | enableval="$enable_finddlg" | |
e6cc62c6 | 8649 | |
8db37e06 | 8650 | if test "$enableval" = yes; then |
69d27ff7 | 8651 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8652 | else |
69d27ff7 | 8653 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8654 | fi |
e6cc62c6 | 8655 | |
8db37e06 | 8656 | else |
e6cc62c6 | 8657 | |
8db37e06 VZ |
8658 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8659 | if test "x$LINE" != x ; then | |
8660 | eval "DEFAULT_$LINE" | |
8661 | else | |
8662 | no_cache=1 | |
8663 | fi | |
8664 | ||
69d27ff7 | 8665 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8666 | |
e6cc62c6 | 8667 | fi; |
8db37e06 | 8668 | |
69d27ff7 | 8669 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8670 | if test "$no_cache" != 1; then |
69d27ff7 | 8671 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8672 | fi |
8673 | ||
8674 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8675 | echo "$as_me:$LINENO: result: yes" >&5 |
8676 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8677 | else |
e6cc62c6 VS |
8678 | echo "$as_me:$LINENO: result: no" >&5 |
8679 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8680 | fi |
e6cc62c6 | 8681 | |
8db37e06 | 8682 | |
5005acfe | 8683 | enablestring= |
e6cc62c6 VS |
8684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8685 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8686 | no_cache=0 |
8687 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8688 | if test "${enable_fontdlg+set}" = set; then | |
8689 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8690 | |
1e6feb95 VZ |
8691 | if test "$enableval" = yes; then |
8692 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8693 | else | |
8694 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8695 | fi | |
e6cc62c6 | 8696 | |
1e6feb95 | 8697 | else |
e6cc62c6 | 8698 | |
1e6feb95 VZ |
8699 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8700 | if test "x$LINE" != x ; then | |
8701 | eval "DEFAULT_$LINE" | |
8702 | else | |
8703 | no_cache=1 | |
8704 | fi | |
8705 | ||
8706 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8707 | |
e6cc62c6 | 8708 | fi; |
1e6feb95 VZ |
8709 | |
8710 | eval "$ac_cv_use_fontdlg" | |
8711 | if test "$no_cache" != 1; then | |
8712 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8713 | fi | |
8714 | ||
8715 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8716 | echo "$as_me:$LINENO: result: yes" >&5 |
8717 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8718 | else |
e6cc62c6 VS |
8719 | echo "$as_me:$LINENO: result: no" >&5 |
8720 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8721 | fi |
e6cc62c6 | 8722 | |
1e6feb95 | 8723 | |
5005acfe | 8724 | enablestring= |
e6cc62c6 VS |
8725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8726 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8727 | no_cache=0 |
8728 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8729 | if test "${enable_dirdlg+set}" = set; then | |
8730 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8731 | |
1e6feb95 VZ |
8732 | if test "$enableval" = yes; then |
8733 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8734 | else | |
8735 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8736 | fi | |
e6cc62c6 | 8737 | |
1e6feb95 | 8738 | else |
e6cc62c6 | 8739 | |
1e6feb95 VZ |
8740 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8741 | if test "x$LINE" != x ; then | |
8742 | eval "DEFAULT_$LINE" | |
8743 | else | |
8744 | no_cache=1 | |
8745 | fi | |
8746 | ||
8747 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8748 | |
e6cc62c6 | 8749 | fi; |
1e6feb95 VZ |
8750 | |
8751 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8752 | if test "$no_cache" != 1; then |
1e6feb95 | 8753 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8754 | fi |
8755 | ||
1e6feb95 | 8756 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8757 | echo "$as_me:$LINENO: result: yes" >&5 |
8758 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8759 | else |
e6cc62c6 VS |
8760 | echo "$as_me:$LINENO: result: no" >&5 |
8761 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8762 | fi |
e6cc62c6 | 8763 | |
698dcdb6 | 8764 | |
5005acfe | 8765 | enablestring= |
e6cc62c6 VS |
8766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8767 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8768 | no_cache=0 |
1e6feb95 VZ |
8769 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8770 | if test "${enable_msgdlg+set}" = set; then | |
8771 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8772 | |
10f2d63a | 8773 | if test "$enableval" = yes; then |
1e6feb95 | 8774 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8775 | else |
1e6feb95 | 8776 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8777 | fi |
e6cc62c6 | 8778 | |
10f2d63a | 8779 | else |
e6cc62c6 | 8780 | |
1e6feb95 | 8781 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8782 | if test "x$LINE" != x ; then |
8783 | eval "DEFAULT_$LINE" | |
8784 | else | |
8785 | no_cache=1 | |
8786 | fi | |
8787 | ||
1e6feb95 | 8788 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8789 | |
e6cc62c6 | 8790 | fi; |
10f2d63a | 8791 | |
1e6feb95 | 8792 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8793 | if test "$no_cache" != 1; then |
1e6feb95 | 8794 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8795 | fi |
8796 | ||
1e6feb95 | 8797 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8798 | echo "$as_me:$LINENO: result: yes" >&5 |
8799 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8800 | else |
e6cc62c6 VS |
8801 | echo "$as_me:$LINENO: result: no" >&5 |
8802 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8803 | fi |
e6cc62c6 | 8804 | |
10f2d63a | 8805 | |
5005acfe | 8806 | enablestring= |
e6cc62c6 VS |
8807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8808 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8809 | no_cache=0 |
1e6feb95 VZ |
8810 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8811 | if test "${enable_numberdlg+set}" = set; then | |
8812 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8813 | |
10f2d63a | 8814 | if test "$enableval" = yes; then |
1e6feb95 | 8815 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8816 | else |
1e6feb95 | 8817 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8818 | fi |
e6cc62c6 | 8819 | |
10f2d63a | 8820 | else |
e6cc62c6 | 8821 | |
1e6feb95 | 8822 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8823 | if test "x$LINE" != x ; then |
8824 | eval "DEFAULT_$LINE" | |
8825 | else | |
8826 | no_cache=1 | |
8827 | fi | |
8828 | ||
1e6feb95 | 8829 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8830 | |
e6cc62c6 | 8831 | fi; |
10f2d63a | 8832 | |
1e6feb95 | 8833 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8834 | if test "$no_cache" != 1; then |
1e6feb95 | 8835 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8836 | fi |
8837 | ||
1e6feb95 | 8838 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8839 | echo "$as_me:$LINENO: result: yes" >&5 |
8840 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8841 | else |
e6cc62c6 VS |
8842 | echo "$as_me:$LINENO: result: no" >&5 |
8843 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8844 | fi |
e6cc62c6 | 8845 | |
10f2d63a | 8846 | |
5005acfe | 8847 | enablestring= |
e6cc62c6 VS |
8848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8849 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8850 | no_cache=0 |
8851 | # Check whether --enable-splash or --disable-splash was given. | |
8852 | if test "${enable_splash+set}" = set; then | |
8853 | enableval="$enable_splash" | |
e6cc62c6 | 8854 | |
cbca9943 VZ |
8855 | if test "$enableval" = yes; then |
8856 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8857 | else | |
8858 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8859 | fi | |
e6cc62c6 | 8860 | |
cbca9943 | 8861 | else |
e6cc62c6 | 8862 | |
cbca9943 VZ |
8863 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8864 | if test "x$LINE" != x ; then | |
8865 | eval "DEFAULT_$LINE" | |
8866 | else | |
8867 | no_cache=1 | |
8868 | fi | |
8869 | ||
8870 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8871 | |
e6cc62c6 | 8872 | fi; |
cbca9943 VZ |
8873 | |
8874 | eval "$ac_cv_use_splash" | |
8875 | if test "$no_cache" != 1; then | |
8876 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8877 | fi | |
8878 | ||
8879 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8880 | echo "$as_me:$LINENO: result: yes" >&5 |
8881 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8882 | else |
e6cc62c6 VS |
8883 | echo "$as_me:$LINENO: result: no" >&5 |
8884 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8885 | fi |
e6cc62c6 | 8886 | |
cbca9943 | 8887 | |
5005acfe | 8888 | enablestring= |
e6cc62c6 VS |
8889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8890 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8891 | no_cache=0 |
8892 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8893 | if test "${enable_textdlg+set}" = set; then | |
8894 | enableval="$enable_textdlg" | |
e6cc62c6 | 8895 | |
10f2d63a VZ |
8896 | if test "$enableval" = yes; then |
8897 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8898 | else | |
8899 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8900 | fi | |
e6cc62c6 | 8901 | |
10f2d63a | 8902 | else |
e6cc62c6 | 8903 | |
10f2d63a VZ |
8904 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8905 | if test "x$LINE" != x ; then | |
8906 | eval "DEFAULT_$LINE" | |
8907 | else | |
8908 | no_cache=1 | |
8909 | fi | |
8910 | ||
8911 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8912 | |
e6cc62c6 | 8913 | fi; |
10f2d63a VZ |
8914 | |
8915 | eval "$ac_cv_use_textdlg" | |
8916 | if test "$no_cache" != 1; then | |
8917 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8918 | fi | |
8919 | ||
8920 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8921 | echo "$as_me:$LINENO: result: yes" >&5 |
8922 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8923 | else |
e6cc62c6 VS |
8924 | echo "$as_me:$LINENO: result: no" >&5 |
8925 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8926 | fi |
e6cc62c6 | 8927 | |
10f2d63a | 8928 | |
5005acfe | 8929 | enablestring= |
e6cc62c6 VS |
8930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8931 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8932 | no_cache=0 |
8933 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8934 | if test "${enable_tipdlg+set}" = set; then | |
8935 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8936 | |
10f2d63a VZ |
8937 | if test "$enableval" = yes; then |
8938 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8939 | else | |
8940 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8941 | fi | |
e6cc62c6 | 8942 | |
10f2d63a | 8943 | else |
e6cc62c6 | 8944 | |
10f2d63a VZ |
8945 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8946 | if test "x$LINE" != x ; then | |
8947 | eval "DEFAULT_$LINE" | |
8948 | else | |
8949 | no_cache=1 | |
8950 | fi | |
8951 | ||
8952 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8953 | |
e6cc62c6 | 8954 | fi; |
10f2d63a VZ |
8955 | |
8956 | eval "$ac_cv_use_tipdlg" | |
8957 | if test "$no_cache" != 1; then | |
8958 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8959 | fi | |
8960 | ||
8961 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8962 | echo "$as_me:$LINENO: result: yes" >&5 |
8963 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8964 | else |
e6cc62c6 VS |
8965 | echo "$as_me:$LINENO: result: no" >&5 |
8966 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8967 | fi |
e6cc62c6 | 8968 | |
10f2d63a | 8969 | |
5005acfe | 8970 | enablestring= |
e6cc62c6 VS |
8971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8972 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8973 | no_cache=0 |
8974 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8975 | if test "${enable_progressdlg+set}" = set; then | |
8976 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8977 | |
10f2d63a VZ |
8978 | if test "$enableval" = yes; then |
8979 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8980 | else | |
8981 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8982 | fi | |
e6cc62c6 | 8983 | |
10f2d63a | 8984 | else |
e6cc62c6 | 8985 | |
10f2d63a VZ |
8986 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8987 | if test "x$LINE" != x ; then | |
8988 | eval "DEFAULT_$LINE" | |
8989 | else | |
8990 | no_cache=1 | |
8991 | fi | |
8992 | ||
8993 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8994 | |
e6cc62c6 | 8995 | fi; |
10f2d63a VZ |
8996 | |
8997 | eval "$ac_cv_use_progressdlg" | |
8998 | if test "$no_cache" != 1; then | |
8999 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9000 | fi | |
9001 | ||
9002 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
9003 | echo "$as_me:$LINENO: result: yes" >&5 |
9004 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9005 | else |
e6cc62c6 VS |
9006 | echo "$as_me:$LINENO: result: no" >&5 |
9007 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9008 | fi |
e6cc62c6 | 9009 | |
10f2d63a | 9010 | |
5005acfe | 9011 | enablestring= |
e6cc62c6 VS |
9012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
9013 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
9014 | no_cache=0 |
9015 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9016 | if test "${enable_wizarddlg+set}" = set; then | |
9017 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 9018 | |
b1f5d087 VZ |
9019 | if test "$enableval" = yes; then |
9020 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9021 | else | |
9022 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9023 | fi | |
e6cc62c6 | 9024 | |
b1f5d087 | 9025 | else |
e6cc62c6 | 9026 | |
b1f5d087 VZ |
9027 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
9028 | if test "x$LINE" != x ; then | |
9029 | eval "DEFAULT_$LINE" | |
9030 | else | |
9031 | no_cache=1 | |
9032 | fi | |
9033 | ||
9034 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 9035 | |
e6cc62c6 | 9036 | fi; |
b1f5d087 VZ |
9037 | |
9038 | eval "$ac_cv_use_wizarddlg" | |
9039 | if test "$no_cache" != 1; then | |
9040 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9041 | fi | |
9042 | ||
9043 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
9044 | echo "$as_me:$LINENO: result: yes" >&5 |
9045 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 9046 | else |
e6cc62c6 VS |
9047 | echo "$as_me:$LINENO: result: no" >&5 |
9048 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 9049 | fi |
e6cc62c6 | 9050 | |
8284b0c5 MB |
9051 | |
9052 | ||
52127426 | 9053 | |
5005acfe | 9054 | enablestring= |
e6cc62c6 VS |
9055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
9056 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
9057 | no_cache=0 |
9058 | # Check whether --enable-menus or --disable-menus was given. | |
9059 | if test "${enable_menus+set}" = set; then | |
9060 | enableval="$enable_menus" | |
e6cc62c6 | 9061 | |
1e6feb95 VZ |
9062 | if test "$enableval" = yes; then |
9063 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9064 | else | |
9065 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9066 | fi | |
e6cc62c6 | 9067 | |
1e6feb95 | 9068 | else |
e6cc62c6 | 9069 | |
1e6feb95 VZ |
9070 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
9071 | if test "x$LINE" != x ; then | |
9072 | eval "DEFAULT_$LINE" | |
9073 | else | |
9074 | no_cache=1 | |
9075 | fi | |
9076 | ||
9077 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 9078 | |
e6cc62c6 | 9079 | fi; |
1e6feb95 VZ |
9080 | |
9081 | eval "$ac_cv_use_menus" | |
9082 | if test "$no_cache" != 1; then | |
9083 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9084 | fi | |
9085 | ||
9086 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
9087 | echo "$as_me:$LINENO: result: yes" >&5 |
9088 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9089 | else |
e6cc62c6 VS |
9090 | echo "$as_me:$LINENO: result: no" >&5 |
9091 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9092 | fi |
e6cc62c6 | 9093 | |
1e6feb95 | 9094 | |
5005acfe | 9095 | enablestring= |
e6cc62c6 VS |
9096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
9097 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
9098 | no_cache=0 |
9099 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9100 | if test "${enable_miniframe+set}" = set; then | |
9101 | enableval="$enable_miniframe" | |
e6cc62c6 | 9102 | |
10f2d63a VZ |
9103 | if test "$enableval" = yes; then |
9104 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9105 | else | |
9106 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9107 | fi | |
e6cc62c6 | 9108 | |
10f2d63a | 9109 | else |
e6cc62c6 | 9110 | |
10f2d63a VZ |
9111 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
9112 | if test "x$LINE" != x ; then | |
9113 | eval "DEFAULT_$LINE" | |
9114 | else | |
9115 | no_cache=1 | |
9116 | fi | |
9117 | ||
9118 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 9119 | |
e6cc62c6 | 9120 | fi; |
10f2d63a VZ |
9121 | |
9122 | eval "$ac_cv_use_miniframe" | |
9123 | if test "$no_cache" != 1; then | |
9124 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9125 | fi | |
9126 | ||
9127 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
9128 | echo "$as_me:$LINENO: result: yes" >&5 |
9129 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9130 | else |
e6cc62c6 VS |
9131 | echo "$as_me:$LINENO: result: no" >&5 |
9132 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9133 | fi |
e6cc62c6 | 9134 | |
10f2d63a | 9135 | |
5005acfe | 9136 | enablestring= |
e6cc62c6 VS |
9137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9138 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9139 | no_cache=0 |
9140 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9141 | if test "${enable_tooltips+set}" = set; then | |
9142 | enableval="$enable_tooltips" | |
e6cc62c6 | 9143 | |
10f2d63a VZ |
9144 | if test "$enableval" = yes; then |
9145 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9146 | else | |
9147 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9148 | fi | |
e6cc62c6 | 9149 | |
10f2d63a | 9150 | else |
e6cc62c6 | 9151 | |
10f2d63a VZ |
9152 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9153 | if test "x$LINE" != x ; then | |
9154 | eval "DEFAULT_$LINE" | |
9155 | else | |
9156 | no_cache=1 | |
9157 | fi | |
9158 | ||
9159 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9160 | |
e6cc62c6 | 9161 | fi; |
10f2d63a VZ |
9162 | |
9163 | eval "$ac_cv_use_tooltips" | |
9164 | if test "$no_cache" != 1; then | |
9165 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9166 | fi | |
9167 | ||
9168 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9169 | echo "$as_me:$LINENO: result: yes" >&5 |
9170 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9171 | else |
e6cc62c6 VS |
9172 | echo "$as_me:$LINENO: result: no" >&5 |
9173 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9174 | fi |
e6cc62c6 | 9175 | |
10f2d63a | 9176 | |
5005acfe | 9177 | enablestring= |
e6cc62c6 VS |
9178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9179 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9180 | no_cache=0 |
9181 | # Check whether --enable-splines or --disable-splines was given. | |
9182 | if test "${enable_splines+set}" = set; then | |
9183 | enableval="$enable_splines" | |
e6cc62c6 | 9184 | |
10f2d63a VZ |
9185 | if test "$enableval" = yes; then |
9186 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9187 | else | |
9188 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9189 | fi | |
e6cc62c6 | 9190 | |
10f2d63a | 9191 | else |
e6cc62c6 | 9192 | |
10f2d63a VZ |
9193 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9194 | if test "x$LINE" != x ; then | |
9195 | eval "DEFAULT_$LINE" | |
9196 | else | |
9197 | no_cache=1 | |
9198 | fi | |
9199 | ||
9200 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9201 | |
e6cc62c6 | 9202 | fi; |
10f2d63a VZ |
9203 | |
9204 | eval "$ac_cv_use_splines" | |
9205 | if test "$no_cache" != 1; then | |
9206 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9207 | fi | |
9208 | ||
9209 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9210 | echo "$as_me:$LINENO: result: yes" >&5 |
9211 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9212 | else |
e6cc62c6 VS |
9213 | echo "$as_me:$LINENO: result: no" >&5 |
9214 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9215 | fi |
e6cc62c6 | 9216 | |
10f2d63a | 9217 | |
5005acfe | 9218 | enablestring= |
e6cc62c6 VS |
9219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9220 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9221 | no_cache=0 |
9222 | # Check whether --enable-validators or --disable-validators was given. | |
9223 | if test "${enable_validators+set}" = set; then | |
9224 | enableval="$enable_validators" | |
e6cc62c6 | 9225 | |
10f2d63a VZ |
9226 | if test "$enableval" = yes; then |
9227 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9228 | else | |
9229 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9230 | fi | |
e6cc62c6 | 9231 | |
10f2d63a | 9232 | else |
e6cc62c6 | 9233 | |
10f2d63a VZ |
9234 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9235 | if test "x$LINE" != x ; then | |
9236 | eval "DEFAULT_$LINE" | |
9237 | else | |
9238 | no_cache=1 | |
9239 | fi | |
9240 | ||
9241 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9242 | |
e6cc62c6 | 9243 | fi; |
10f2d63a VZ |
9244 | |
9245 | eval "$ac_cv_use_validators" | |
9246 | if test "$no_cache" != 1; then | |
9247 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9248 | fi | |
9249 | ||
9250 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9251 | echo "$as_me:$LINENO: result: yes" >&5 |
9252 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9253 | else |
e6cc62c6 VS |
9254 | echo "$as_me:$LINENO: result: no" >&5 |
9255 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9256 | fi |
e6cc62c6 | 9257 | |
10f2d63a | 9258 | |
5005acfe | 9259 | enablestring= |
e6cc62c6 VS |
9260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9261 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9262 | no_cache=0 |
9263 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9264 | if test "${enable_busyinfo+set}" = set; then | |
9265 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9266 | |
10f2d63a VZ |
9267 | if test "$enableval" = yes; then |
9268 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9269 | else | |
9270 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9271 | fi | |
e6cc62c6 | 9272 | |
10f2d63a | 9273 | else |
e6cc62c6 | 9274 | |
10f2d63a VZ |
9275 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9276 | if test "x$LINE" != x ; then | |
9277 | eval "DEFAULT_$LINE" | |
9278 | else | |
9279 | no_cache=1 | |
9280 | fi | |
9281 | ||
9282 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9283 | |
e6cc62c6 | 9284 | fi; |
10f2d63a VZ |
9285 | |
9286 | eval "$ac_cv_use_busyinfo" | |
9287 | if test "$no_cache" != 1; then | |
9288 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9289 | fi | |
9290 | ||
9291 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9292 | echo "$as_me:$LINENO: result: yes" >&5 |
9293 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9294 | else |
e6cc62c6 VS |
9295 | echo "$as_me:$LINENO: result: no" >&5 |
9296 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9297 | fi |
e6cc62c6 | 9298 | |
10f2d63a | 9299 | |
5005acfe | 9300 | enablestring= |
e6cc62c6 VS |
9301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9302 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9303 | no_cache=0 |
9304 | # Check whether --enable-joystick or --disable-joystick was given. | |
9305 | if test "${enable_joystick+set}" = set; then | |
9306 | enableval="$enable_joystick" | |
e6cc62c6 | 9307 | |
f6bcfd97 BP |
9308 | if test "$enableval" = yes; then |
9309 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9310 | else | |
9311 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9312 | fi | |
e6cc62c6 | 9313 | |
f6bcfd97 | 9314 | else |
e6cc62c6 | 9315 | |
f6bcfd97 BP |
9316 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9317 | if test "x$LINE" != x ; then | |
9318 | eval "DEFAULT_$LINE" | |
9319 | else | |
9320 | no_cache=1 | |
9321 | fi | |
9322 | ||
9323 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9324 | |
e6cc62c6 | 9325 | fi; |
f6bcfd97 BP |
9326 | |
9327 | eval "$ac_cv_use_joystick" | |
9328 | if test "$no_cache" != 1; then | |
9329 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9330 | fi | |
9331 | ||
9332 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9333 | echo "$as_me:$LINENO: result: yes" >&5 |
9334 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9335 | else |
e6cc62c6 VS |
9336 | echo "$as_me:$LINENO: result: no" >&5 |
9337 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9338 | fi |
e6cc62c6 | 9339 | |
698dcdb6 | 9340 | |
5005acfe | 9341 | enablestring= |
e6cc62c6 VS |
9342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9343 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9344 | no_cache=0 |
9345 | # Check whether --enable-metafile or --disable-metafile was given. | |
9346 | if test "${enable_metafile+set}" = set; then | |
9347 | enableval="$enable_metafile" | |
e6cc62c6 | 9348 | |
1e6feb95 VZ |
9349 | if test "$enableval" = yes; then |
9350 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9351 | else | |
9352 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9353 | fi | |
e6cc62c6 | 9354 | |
1e6feb95 | 9355 | else |
e6cc62c6 | 9356 | |
1e6feb95 VZ |
9357 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9358 | if test "x$LINE" != x ; then | |
9359 | eval "DEFAULT_$LINE" | |
9360 | else | |
9361 | no_cache=1 | |
9362 | fi | |
9363 | ||
9364 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9365 | |
e6cc62c6 | 9366 | fi; |
1e6feb95 VZ |
9367 | |
9368 | eval "$ac_cv_use_metafile" | |
9369 | if test "$no_cache" != 1; then | |
9370 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9371 | fi | |
9372 | ||
9373 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9374 | echo "$as_me:$LINENO: result: yes" >&5 |
9375 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9376 | else |
e6cc62c6 VS |
9377 | echo "$as_me:$LINENO: result: no" >&5 |
9378 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9379 | fi |
e6cc62c6 | 9380 | |
1e6feb95 | 9381 | |
5005acfe | 9382 | enablestring= |
e6cc62c6 VS |
9383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9384 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9385 | no_cache=0 |
9386 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9387 | if test "${enable_dragimage+set}" = set; then | |
9388 | enableval="$enable_dragimage" | |
e6cc62c6 | 9389 | |
24fd6d87 VZ |
9390 | if test "$enableval" = yes; then |
9391 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9392 | else | |
9393 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9394 | fi | |
e6cc62c6 | 9395 | |
24fd6d87 | 9396 | else |
e6cc62c6 | 9397 | |
24fd6d87 VZ |
9398 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9399 | if test "x$LINE" != x ; then | |
9400 | eval "DEFAULT_$LINE" | |
9401 | else | |
9402 | no_cache=1 | |
9403 | fi | |
9404 | ||
9405 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9406 | |
e6cc62c6 | 9407 | fi; |
24fd6d87 VZ |
9408 | |
9409 | eval "$ac_cv_use_dragimage" | |
9410 | if test "$no_cache" != 1; then | |
9411 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9412 | fi | |
9413 | ||
9414 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9415 | echo "$as_me:$LINENO: result: yes" >&5 |
9416 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9417 | else |
e6cc62c6 VS |
9418 | echo "$as_me:$LINENO: result: no" >&5 |
9419 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9420 | fi |
e6cc62c6 | 9421 | |
52127426 | 9422 | |
7bb2947d | 9423 | enablestring= |
e6cc62c6 VS |
9424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9425 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9426 | no_cache=0 |
9427 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9428 | if test "${enable_accessibility+set}" = set; then | |
9429 | enableval="$enable_accessibility" | |
e6cc62c6 | 9430 | |
7bb2947d MB |
9431 | if test "$enableval" = yes; then |
9432 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9433 | else | |
9434 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9435 | fi | |
e6cc62c6 | 9436 | |
7bb2947d | 9437 | else |
e6cc62c6 | 9438 | |
7bb2947d MB |
9439 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9440 | if test "x$LINE" != x ; then | |
9441 | eval "DEFAULT_$LINE" | |
9442 | else | |
9443 | no_cache=1 | |
9444 | fi | |
9445 | ||
9446 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9447 | |
e6cc62c6 | 9448 | fi; |
7bb2947d MB |
9449 | |
9450 | eval "$ac_cv_use_accessibility" | |
9451 | if test "$no_cache" != 1; then | |
9452 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9453 | fi | |
9454 | ||
9455 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9456 | echo "$as_me:$LINENO: result: yes" >&5 |
9457 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9458 | else |
e6cc62c6 VS |
9459 | echo "$as_me:$LINENO: result: no" >&5 |
9460 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9461 | fi |
e6cc62c6 | 9462 | |
7bb2947d | 9463 | |
8284b0c5 MB |
9464 | |
9465 | ||
5005acfe | 9466 | enablestring= |
e6cc62c6 VS |
9467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9468 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9469 | no_cache=0 |
9470 | # Check whether --enable-palette or --disable-palette was given. | |
9471 | if test "${enable_palette+set}" = set; then | |
9472 | enableval="$enable_palette" | |
e6cc62c6 | 9473 | |
edae8572 VZ |
9474 | if test "$enableval" = yes; then |
9475 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9476 | else | |
9477 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9478 | fi | |
e6cc62c6 | 9479 | |
edae8572 | 9480 | else |
e6cc62c6 | 9481 | |
edae8572 VZ |
9482 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9483 | if test "x$LINE" != x ; then | |
9484 | eval "DEFAULT_$LINE" | |
9485 | else | |
9486 | no_cache=1 | |
9487 | fi | |
9488 | ||
9489 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9490 | |
e6cc62c6 | 9491 | fi; |
edae8572 VZ |
9492 | |
9493 | eval "$ac_cv_use_palette" | |
9494 | if test "$no_cache" != 1; then | |
9495 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9496 | fi | |
9497 | ||
9498 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9499 | echo "$as_me:$LINENO: result: yes" >&5 |
9500 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9501 | else |
e6cc62c6 VS |
9502 | echo "$as_me:$LINENO: result: no" >&5 |
9503 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9504 | fi |
e6cc62c6 | 9505 | |
edae8572 | 9506 | |
5005acfe | 9507 | enablestring= |
e6cc62c6 VS |
9508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9509 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9510 | no_cache=0 |
9511 | # Check whether --enable-image or --disable-image was given. | |
9512 | if test "${enable_image+set}" = set; then | |
9513 | enableval="$enable_image" | |
e6cc62c6 | 9514 | |
0046ff7c VS |
9515 | if test "$enableval" = yes; then |
9516 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9517 | else | |
9518 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9519 | fi | |
e6cc62c6 | 9520 | |
0046ff7c | 9521 | else |
e6cc62c6 | 9522 | |
0046ff7c VS |
9523 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9524 | if test "x$LINE" != x ; then | |
9525 | eval "DEFAULT_$LINE" | |
9526 | else | |
9527 | no_cache=1 | |
9528 | fi | |
9529 | ||
9530 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9531 | |
e6cc62c6 | 9532 | fi; |
0046ff7c VS |
9533 | |
9534 | eval "$ac_cv_use_image" | |
9535 | if test "$no_cache" != 1; then | |
9536 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9537 | fi | |
9538 | ||
9539 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9540 | echo "$as_me:$LINENO: result: yes" >&5 |
9541 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9542 | else |
e6cc62c6 VS |
9543 | echo "$as_me:$LINENO: result: no" >&5 |
9544 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9545 | fi |
e6cc62c6 | 9546 | |
0046ff7c | 9547 | |
5005acfe | 9548 | enablestring= |
e6cc62c6 VS |
9549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9550 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9551 | no_cache=0 |
9552 | # Check whether --enable-gif or --disable-gif was given. | |
9553 | if test "${enable_gif+set}" = set; then | |
9554 | enableval="$enable_gif" | |
e6cc62c6 | 9555 | |
10f2d63a VZ |
9556 | if test "$enableval" = yes; then |
9557 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9558 | else | |
9559 | ac_cv_use_gif='wxUSE_GIF=no' | |
9560 | fi | |
e6cc62c6 | 9561 | |
10f2d63a | 9562 | else |
e6cc62c6 | 9563 | |
10f2d63a VZ |
9564 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9565 | if test "x$LINE" != x ; then | |
9566 | eval "DEFAULT_$LINE" | |
9567 | else | |
9568 | no_cache=1 | |
9569 | fi | |
9570 | ||
9571 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9572 | |
e6cc62c6 | 9573 | fi; |
10f2d63a VZ |
9574 | |
9575 | eval "$ac_cv_use_gif" | |
9576 | if test "$no_cache" != 1; then | |
9577 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9578 | fi | |
9579 | ||
9580 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9581 | echo "$as_me:$LINENO: result: yes" >&5 |
9582 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9583 | else |
e6cc62c6 VS |
9584 | echo "$as_me:$LINENO: result: no" >&5 |
9585 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9586 | fi |
e6cc62c6 | 9587 | |
10f2d63a | 9588 | |
5005acfe | 9589 | enablestring= |
e6cc62c6 VS |
9590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9591 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9592 | no_cache=0 |
9593 | # Check whether --enable-pcx or --disable-pcx was given. | |
9594 | if test "${enable_pcx+set}" = set; then | |
9595 | enableval="$enable_pcx" | |
e6cc62c6 | 9596 | |
10f2d63a VZ |
9597 | if test "$enableval" = yes; then |
9598 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9599 | else | |
9600 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9601 | fi | |
e6cc62c6 | 9602 | |
10f2d63a | 9603 | else |
e6cc62c6 | 9604 | |
10f2d63a VZ |
9605 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9606 | if test "x$LINE" != x ; then | |
9607 | eval "DEFAULT_$LINE" | |
9608 | else | |
9609 | no_cache=1 | |
9610 | fi | |
9611 | ||
9612 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9613 | |
e6cc62c6 | 9614 | fi; |
10f2d63a VZ |
9615 | |
9616 | eval "$ac_cv_use_pcx" | |
9617 | if test "$no_cache" != 1; then | |
9618 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9619 | fi | |
9620 | ||
9621 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9622 | echo "$as_me:$LINENO: result: yes" >&5 |
9623 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9624 | else |
e6cc62c6 VS |
9625 | echo "$as_me:$LINENO: result: no" >&5 |
9626 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9627 | fi |
e6cc62c6 | 9628 | |
10f2d63a | 9629 | |
5005acfe | 9630 | enablestring= |
e6cc62c6 VS |
9631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9632 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9633 | no_cache=0 |
9634 | # Check whether --enable-iff or --disable-iff was given. | |
9635 | if test "${enable_iff+set}" = set; then | |
9636 | enableval="$enable_iff" | |
e6cc62c6 | 9637 | |
4b6b4dfc RR |
9638 | if test "$enableval" = yes; then |
9639 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9640 | else | |
9641 | ac_cv_use_iff='wxUSE_IFF=no' | |
9642 | fi | |
e6cc62c6 | 9643 | |
4b6b4dfc | 9644 | else |
e6cc62c6 | 9645 | |
4b6b4dfc RR |
9646 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9647 | if test "x$LINE" != x ; then | |
9648 | eval "DEFAULT_$LINE" | |
9649 | else | |
9650 | no_cache=1 | |
9651 | fi | |
9652 | ||
9653 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9654 | |
e6cc62c6 | 9655 | fi; |
4b6b4dfc RR |
9656 | |
9657 | eval "$ac_cv_use_iff" | |
9658 | if test "$no_cache" != 1; then | |
9659 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9660 | fi | |
9661 | ||
9662 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9663 | echo "$as_me:$LINENO: result: yes" >&5 |
9664 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9665 | else |
e6cc62c6 VS |
9666 | echo "$as_me:$LINENO: result: no" >&5 |
9667 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9668 | fi |
e6cc62c6 | 9669 | |
4b6b4dfc | 9670 | |
5005acfe | 9671 | enablestring= |
e6cc62c6 VS |
9672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9673 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9674 | no_cache=0 |
9675 | # Check whether --enable-pnm or --disable-pnm was given. | |
9676 | if test "${enable_pnm+set}" = set; then | |
9677 | enableval="$enable_pnm" | |
e6cc62c6 | 9678 | |
10f2d63a VZ |
9679 | if test "$enableval" = yes; then |
9680 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9681 | else | |
9682 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9683 | fi | |
e6cc62c6 | 9684 | |
10f2d63a | 9685 | else |
e6cc62c6 | 9686 | |
10f2d63a VZ |
9687 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9688 | if test "x$LINE" != x ; then | |
9689 | eval "DEFAULT_$LINE" | |
9690 | else | |
9691 | no_cache=1 | |
9692 | fi | |
9693 | ||
9694 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9695 | |
e6cc62c6 | 9696 | fi; |
10f2d63a VZ |
9697 | |
9698 | eval "$ac_cv_use_pnm" | |
9699 | if test "$no_cache" != 1; then | |
9700 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9701 | fi | |
9702 | ||
9703 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9704 | echo "$as_me:$LINENO: result: yes" >&5 |
9705 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9706 | else |
e6cc62c6 VS |
9707 | echo "$as_me:$LINENO: result: no" >&5 |
9708 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9709 | fi |
e6cc62c6 | 9710 | |
10f2d63a | 9711 | |
5005acfe | 9712 | enablestring= |
e6cc62c6 VS |
9713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9714 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9715 | no_cache=0 |
69d27ff7 MB |
9716 | # Check whether --enable-xpm or --disable-xpm was given. |
9717 | if test "${enable_xpm+set}" = set; then | |
9718 | enableval="$enable_xpm" | |
e6cc62c6 | 9719 | |
0046ff7c | 9720 | if test "$enableval" = yes; then |
69d27ff7 | 9721 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9722 | else |
69d27ff7 | 9723 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9724 | fi |
e6cc62c6 | 9725 | |
0046ff7c | 9726 | else |
e6cc62c6 | 9727 | |
0046ff7c VS |
9728 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9729 | if test "x$LINE" != x ; then | |
9730 | eval "DEFAULT_$LINE" | |
9731 | else | |
9732 | no_cache=1 | |
9733 | fi | |
9734 | ||
69d27ff7 | 9735 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9736 | |
e6cc62c6 | 9737 | fi; |
0046ff7c | 9738 | |
69d27ff7 | 9739 | eval "$ac_cv_use_xpm" |
0046ff7c | 9740 | if test "$no_cache" != 1; then |
69d27ff7 | 9741 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9742 | fi |
9743 | ||
9744 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9745 | echo "$as_me:$LINENO: result: yes" >&5 |
9746 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9747 | else |
e6cc62c6 VS |
9748 | echo "$as_me:$LINENO: result: no" >&5 |
9749 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9750 | fi |
e6cc62c6 | 9751 | |
0046ff7c | 9752 | |
5005acfe | 9753 | enablestring= |
e6cc62c6 VS |
9754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9755 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9756 | no_cache=0 |
c7206e64 VS |
9757 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9758 | if test "${enable_ico_cur+set}" = set; then | |
9759 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9760 | |
658974ae | 9761 | if test "$enableval" = yes; then |
c7206e64 | 9762 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9763 | else |
c7206e64 | 9764 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9765 | fi |
e6cc62c6 | 9766 | |
658974ae | 9767 | else |
e6cc62c6 | 9768 | |
658974ae VS |
9769 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9770 | if test "x$LINE" != x ; then | |
9771 | eval "DEFAULT_$LINE" | |
9772 | else | |
9773 | no_cache=1 | |
9774 | fi | |
9775 | ||
c7206e64 | 9776 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9777 | |
e6cc62c6 | 9778 | fi; |
658974ae | 9779 | |
c7206e64 | 9780 | eval "$ac_cv_use_ico_cur" |
658974ae | 9781 | if test "$no_cache" != 1; then |
c7206e64 | 9782 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9783 | fi |
9784 | ||
9785 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9786 | echo "$as_me:$LINENO: result: yes" >&5 |
9787 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9788 | else |
e6cc62c6 VS |
9789 | echo "$as_me:$LINENO: result: no" >&5 |
9790 | echo "${ECHO_T}no" >&6 | |
658974ae | 9791 | fi |
e6cc62c6 | 9792 | |
658974ae | 9793 | |
b12915c1 VZ |
9794 | fi |
9795 | ||
029b47ad VS |
9796 | |
9797 | ||
9798 | enablestring= | |
9799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9800 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9801 | no_cache=0 | |
9802 | # Check whether --enable-official_build or --disable-official_build was given. | |
9803 | if test "${enable_official_build+set}" = set; then | |
9804 | enableval="$enable_official_build" | |
9805 | ||
9806 | if test "$enableval" = yes; then | |
9807 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9808 | else | |
9809 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9810 | fi | |
9811 | ||
9812 | else | |
9813 | ||
9814 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9815 | if test "x$LINE" != x ; then | |
9816 | eval "DEFAULT_$LINE" | |
9817 | else | |
9818 | no_cache=1 | |
9819 | fi | |
9820 | ||
9821 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9822 | ||
9823 | fi; | |
9824 | ||
9825 | eval "$ac_cv_use_official_build" | |
9826 | if test "$no_cache" != 1; then | |
9827 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9828 | fi | |
9829 | ||
9830 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9831 | echo "$as_me:$LINENO: result: yes" >&5 | |
9832 | echo "${ECHO_T}yes" >&6 | |
9833 | else | |
9834 | echo "$as_me:$LINENO: result: no" >&5 | |
9835 | echo "${ECHO_T}no" >&6 | |
9836 | fi | |
9837 | ||
9838 | # Check whether --enable-vendor or --disable-vendor was given. | |
9839 | if test "${enable_vendor+set}" = set; then | |
9840 | enableval="$enable_vendor" | |
9841 | VENDOR="$enableval" | |
9842 | fi; | |
9843 | if test "x$VENDOR" = "x"; then | |
9844 | VENDOR="custom" | |
9845 | fi | |
9846 | ||
d558c907 VS |
9847 | case "${host}" in |
9848 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9849 | PATH_IFS=';' |
d558c907 VS |
9850 | ;; |
9851 | *) | |
9852 | PATH_IFS=':' | |
d558c907 VS |
9853 | ;; |
9854 | esac | |
9855 | ||
8284b0c5 MB |
9856 | |
9857 | ||
10f2d63a VZ |
9858 | echo "saving argument cache $wx_arg_cache_file" |
9859 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9860 | |
8284b0c5 | 9861 | |
e6cc62c6 VS |
9862 | |
9863 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9864 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9865 | |
9866 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9867 | if test "$wxUSE_WINE" = "yes"; then | |
9868 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9869 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9870 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9871 | wxUSE_SHARED=no |
89e6bf6d | 9872 | fi |
10f2d63a VZ |
9873 | |
9874 | if test "$wxUSE_GUI" = "yes"; then | |
9875 | ||
3a922bb4 | 9876 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9877 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9878 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9879 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9880 | fi |
b12915c1 | 9881 | |
3a922bb4 RL |
9882 | if test "$TOOLKIT_GIVEN" = 1; then |
9883 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9884 | var=wxUSE_$toolkit | |
9885 | eval "value=\$${var}" | |
9886 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9887 | done | |
10f2d63a | 9888 | else |
3a922bb4 RL |
9889 | for toolkit in `echo $ALL_TOOLKITS`; do |
9890 | if test "$has_toolkit_in_cache" != 1; then | |
9891 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9892 | else | |
9893 | var=DEFAULT_wxUSE_$toolkit | |
9894 | fi | |
9895 | eval "wxUSE_$toolkit=\$${var}" | |
9896 | done | |
10f2d63a | 9897 | fi |
10f2d63a | 9898 | |
ac0c4cc3 DE |
9899 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9900 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9901 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9902 | |
d558c907 | 9903 | case "${host}" in |
6fa882bd | 9904 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9905 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9906 | esac |
10f2d63a | 9907 | |
3a922bb4 RL |
9908 | case "$NUM_TOOLKITS" in |
9909 | 1) | |
9910 | ;; | |
9911 | 0) | |
e6cc62c6 VS |
9912 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9913 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9914 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9915 | ;; |
9916 | *) | |
e6cc62c6 VS |
9917 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9918 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9919 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9920 | esac |
10f2d63a | 9921 | |
3a922bb4 RL |
9922 | for toolkit in `echo $ALL_TOOLKITS`; do |
9923 | var=wxUSE_$toolkit | |
9924 | eval "value=\$${var}" | |
9925 | if test "x$value" != x; then | |
9926 | cache_var=CACHE_$toolkit | |
9927 | eval "cache=\$${cache_var}" | |
9928 | if test "$cache" = 1; then | |
9929 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9930 | fi | |
9931 | if test "$value" = 1; then | |
89fe663f | 9932 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9933 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9934 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9935 | fi |
9936 | fi | |
9937 | done | |
10f2d63a | 9938 | else |
9de9b8f0 VZ |
9939 | if test "x$host_alias" != "x"; then |
9940 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9941 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9942 | else |
9943 | echo "$as_me:$LINENO: result: base only" >&5 | |
9944 | echo "${ECHO_T}base only" >&6 | |
9945 | fi | |
10f2d63a VZ |
9946 | fi |
9947 | ||
43d99b6d VS |
9948 | wants_win32=0 |
9949 | doesnt_want_win32=0 | |
17234b26 MB |
9950 | case "${host}" in |
9951 | *-*-cygwin*) | |
9952 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9953 | wants_win32=1 |
9954 | else | |
9955 | doesnt_want_win32=1 | |
17234b26 MB |
9956 | fi |
9957 | ;; | |
9958 | *-*-mingw*) | |
43d99b6d | 9959 | wants_win32=1 |
17234b26 MB |
9960 | ;; |
9961 | esac | |
9962 | ||
89e6bf6d VZ |
9963 | if test "$wxUSE_WINE" = "yes"; then |
9964 | wants_win32=1 | |
9965 | CC=winegcc | |
9966 | CXX=wineg++ | |
9967 | RESCOMP=wrc | |
30f2fa6c | 9968 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9969 | fi |
9970 | ||
43d99b6d | 9971 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9972 | USE_UNIX=0 |
9973 | USE_WIN32=1 | |
e6cc62c6 | 9974 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9975 | #define __WIN32__ 1 |
e6cc62c6 | 9976 | _ACEOF |
17234b26 | 9977 | |
e6cc62c6 | 9978 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9979 | #define __WIN95__ 1 |
e6cc62c6 | 9980 | _ACEOF |
17234b26 | 9981 | |
e6cc62c6 | 9982 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9983 | #define __WINDOWS__ 1 |
e6cc62c6 | 9984 | _ACEOF |
17234b26 | 9985 | |
e6cc62c6 | 9986 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9987 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9988 | _ACEOF |
17234b26 | 9989 | |
e6cc62c6 | 9990 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9991 | #define STRICT 1 |
e6cc62c6 | 9992 | _ACEOF |
17234b26 | 9993 | |
e6cc62c6 | 9994 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9995 | #define WINVER 0x0400 |
e6cc62c6 | 9996 | _ACEOF |
17234b26 | 9997 | |
43d99b6d VS |
9998 | fi |
9999 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
10000 | USE_UNIX=1 |
10001 | USE_WIN32=0 | |
10002 | fi | |
10003 | ||
10004 | if test "$USE_UNIX" = 1 ; then | |
10005 | wxUSE_UNIX=yes | |
e6cc62c6 | 10006 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 10007 | #define __UNIX__ 1 |
e6cc62c6 | 10008 | _ACEOF |
17234b26 MB |
10009 | |
10010 | fi | |
10011 | ||
8284b0c5 | 10012 | |
e6cc62c6 | 10013 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
10014 | # This file is a shell script that caches the results of configure |
10015 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
10016 | # scripts and configure runs, see configure's option --config-cache. |
10017 | # It is not useful on other systems. If it contains results you don't | |
10018 | # want to keep, you may remove or edit it. | |
10f2d63a | 10019 | # |
e6cc62c6 VS |
10020 | # config.status only pays attention to the cache file if you give it |
10021 | # the --recheck option to rerun configure. | |
10f2d63a | 10022 | # |
e6cc62c6 VS |
10023 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10024 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10025 | # following values. | |
10026 | ||
10027 | _ACEOF | |
10028 | ||
10f2d63a VZ |
10029 | # The following way of writing the cache mishandles newlines in values, |
10030 | # but we know of no workaround that is simple, portable, and efficient. | |
10031 | # So, don't put newlines in cache variables' values. | |
10032 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10033 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
10034 | { |
10035 | (set) 2>&1 | | |
10036 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10037 | *ac_space=\ *) | |
10038 | # `set' does not quote correctly, so add quotes (double-quote | |
10039 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10040 | sed -n \ | |
32ddf007 VS |
10041 | "s/'/'\\\\''/g; |
10042 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
10043 | ;; |
10044 | *) | |
10045 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10046 | sed -n \ | |
32ddf007 | 10047 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
10048 | ;; |
10049 | esac; | |
10050 | } | | |
10051 | sed ' | |
10052 | t clear | |
10053 | : clear | |
10054 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10055 | t end | |
10056 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10057 | : end' >>confcache | |
10058 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 10059 | if test -w $cache_file; then |
e6cc62c6 VS |
10060 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10061 | cat confcache >$cache_file | |
10f2d63a VZ |
10062 | else |
10063 | echo "not updating unwritable cache $cache_file" | |
10064 | fi | |
10065 | fi | |
10066 | rm -f confcache | |
10067 | ||
e59890c3 | 10068 | if test "$build" != "$host" ; then |
9d353d4a | 10069 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
10070 | CC=$host_alias-gcc |
10071 | CXX=$host_alias-c++ | |
10072 | AR=$host_alias-ar | |
10073 | RANLIB=$host_alias-ranlib | |
10074 | DLLTOOL=$host_alias-dlltool | |
10075 | RESCOMP=$host_alias-windres | |
10076 | LD=$host_alias-ld | |
10077 | NM=$host_alias-nm | |
10078 | STRIP=$host_alias-strip | |
10079 | else | |
e6cc62c6 VS |
10080 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
10081 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10082 | { (exit 1); exit 1; }; } | |
3a922bb4 | 10083 | fi |
10f2d63a VZ |
10084 | fi |
10085 | ||
ec603395 | 10086 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
10087 | ac_ext=c |
10088 | ac_cpp='$CPP $CPPFLAGS' | |
10089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10092 | if test -n "$ac_tool_prefix"; then | |
10093 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10094 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10097 | if test "${ac_cv_prog_CC+set}" = set; then | |
10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10099 | else | |
10100 | if test -n "$CC"; then | |
10101 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10102 | else | |
10103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10104 | for as_dir in $PATH | |
10105 | do | |
10106 | IFS=$as_save_IFS | |
10107 | test -z "$as_dir" && as_dir=. | |
10108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10110 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10112 | break 2 | |
10113 | fi | |
10114 | done | |
10115 | done | |
10116 | ||
10117 | fi | |
10118 | fi | |
10119 | CC=$ac_cv_prog_CC | |
10120 | if test -n "$CC"; then | |
10121 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10122 | echo "${ECHO_T}$CC" >&6 | |
10123 | else | |
10124 | echo "$as_me:$LINENO: result: no" >&5 | |
10125 | echo "${ECHO_T}no" >&6 | |
10126 | fi | |
10127 | ||
10128 | fi | |
10129 | if test -z "$ac_cv_prog_CC"; then | |
10130 | ac_ct_CC=$CC | |
10131 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 10132 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
10133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10137 | else | |
10138 | if test -n "$ac_ct_CC"; then | |
10139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10140 | else | |
10141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10142 | for as_dir in $PATH | |
10143 | do | |
10144 | IFS=$as_save_IFS | |
10145 | test -z "$as_dir" && as_dir=. | |
10146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10147 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10148 | ac_cv_prog_ac_ct_CC="gcc" | |
10149 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10150 | break 2 | |
10151 | fi | |
10152 | done | |
10153 | done | |
10154 | ||
10155 | fi | |
10156 | fi | |
10157 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10158 | if test -n "$ac_ct_CC"; then | |
10159 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10160 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10161 | else | |
10162 | echo "$as_me:$LINENO: result: no" >&5 | |
10163 | echo "${ECHO_T}no" >&6 | |
10164 | fi | |
10165 | ||
10166 | CC=$ac_ct_CC | |
10167 | else | |
10168 | CC="$ac_cv_prog_CC" | |
10169 | fi | |
10170 | ||
10171 | if test -z "$CC"; then | |
10172 | if test -n "$ac_tool_prefix"; then | |
10173 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10174 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10177 | if test "${ac_cv_prog_CC+set}" = set; then | |
10178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10179 | else |
10180 | if test -n "$CC"; then | |
10181 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10182 | else |
e6cc62c6 VS |
10183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10184 | for as_dir in $PATH | |
10185 | do | |
10186 | IFS=$as_save_IFS | |
10187 | test -z "$as_dir" && as_dir=. | |
10188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10190 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10192 | break 2 | |
10193 | fi | |
10194 | done | |
10195 | done | |
10196 | ||
10f2d63a | 10197 | fi |
6232543b | 10198 | fi |
e6cc62c6 | 10199 | CC=$ac_cv_prog_CC |
6232543b | 10200 | if test -n "$CC"; then |
e6cc62c6 VS |
10201 | echo "$as_me:$LINENO: result: $CC" >&5 |
10202 | echo "${ECHO_T}$CC" >&6 | |
10203 | else | |
10204 | echo "$as_me:$LINENO: result: no" >&5 | |
10205 | echo "${ECHO_T}no" >&6 | |
10206 | fi | |
10207 | ||
10208 | fi | |
10209 | if test -z "$ac_cv_prog_CC"; then | |
10210 | ac_ct_CC=$CC | |
10211 | # Extract the first word of "cc", so it can be a program name with args. | |
10212 | set dummy cc; ac_word=$2 | |
10213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10215 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10217 | else | |
10218 | if test -n "$ac_ct_CC"; then | |
10219 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10220 | else | |
10221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10222 | for as_dir in $PATH | |
10223 | do | |
10224 | IFS=$as_save_IFS | |
10225 | test -z "$as_dir" && as_dir=. | |
10226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10228 | ac_cv_prog_ac_ct_CC="cc" | |
10229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10230 | break 2 | |
10231 | fi | |
10232 | done | |
10233 | done | |
10234 | ||
10235 | fi | |
10236 | fi | |
10237 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10238 | if test -n "$ac_ct_CC"; then | |
10239 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10240 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10241 | else | |
10242 | echo "$as_me:$LINENO: result: no" >&5 | |
10243 | echo "${ECHO_T}no" >&6 | |
10244 | fi | |
10245 | ||
10246 | CC=$ac_ct_CC | |
247f5006 | 10247 | else |
e6cc62c6 | 10248 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10249 | fi |
10250 | ||
e6cc62c6 | 10251 | fi |
5c6fa7d2 RR |
10252 | if test -z "$CC"; then |
10253 | # Extract the first word of "cc", so it can be a program name with args. | |
10254 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10257 | if test "${ac_cv_prog_CC+set}" = set; then | |
10258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10259 | else |
10260 | if test -n "$CC"; then | |
10261 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10262 | else | |
10263 | ac_prog_rejected=no | |
e6cc62c6 VS |
10264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10265 | for as_dir in $PATH | |
10266 | do | |
10267 | IFS=$as_save_IFS | |
10268 | test -z "$as_dir" && as_dir=. | |
10269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10271 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10272 | ac_prog_rejected=yes | |
10273 | continue | |
10274 | fi | |
10275 | ac_cv_prog_CC="cc" | |
10276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10277 | break 2 | |
10278 | fi | |
10279 | done | |
10280 | done | |
10281 | ||
328a083c RR |
10282 | if test $ac_prog_rejected = yes; then |
10283 | # We found a bogon in the path, so make sure we never use it. | |
10284 | set dummy $ac_cv_prog_CC | |
10285 | shift | |
e6cc62c6 | 10286 | if test $# != 0; then |
328a083c | 10287 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10288 | # However, it has the same basename, so the bogon will be chosen |
10289 | # first if we set CC to just the basename; use the full file name. | |
10290 | shift | |
e6cc62c6 | 10291 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10292 | fi |
1e487827 VS |
10293 | fi |
10294 | fi | |
10295 | fi | |
e6cc62c6 | 10296 | CC=$ac_cv_prog_CC |
1e487827 | 10297 | if test -n "$CC"; then |
e6cc62c6 VS |
10298 | echo "$as_me:$LINENO: result: $CC" >&5 |
10299 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10300 | else |
e6cc62c6 VS |
10301 | echo "$as_me:$LINENO: result: no" >&5 |
10302 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10303 | fi |
1e487827 | 10304 | |
e6cc62c6 VS |
10305 | fi |
10306 | if test -z "$CC"; then | |
10307 | if test -n "$ac_tool_prefix"; then | |
10308 | for ac_prog in cl | |
10309 | do | |
10310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10314 | if test "${ac_cv_prog_CC+set}" = set; then | |
10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10316 | else |
10317 | if test -n "$CC"; then | |
10318 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10319 | else | |
e6cc62c6 VS |
10320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10321 | for as_dir in $PATH | |
10322 | do | |
10323 | IFS=$as_save_IFS | |
10324 | test -z "$as_dir" && as_dir=. | |
10325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10327 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10329 | break 2 | |
10330 | fi | |
10331 | done | |
10332 | done | |
10333 | ||
f09359cf VS |
10334 | fi |
10335 | fi | |
e6cc62c6 | 10336 | CC=$ac_cv_prog_CC |
f09359cf | 10337 | if test -n "$CC"; then |
e6cc62c6 VS |
10338 | echo "$as_me:$LINENO: result: $CC" >&5 |
10339 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10340 | else |
e6cc62c6 VS |
10341 | echo "$as_me:$LINENO: result: no" >&5 |
10342 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10343 | fi |
1e487827 | 10344 | |
e6cc62c6 VS |
10345 | test -n "$CC" && break |
10346 | done | |
10347 | fi | |
10348 | if test -z "$CC"; then | |
10349 | ac_ct_CC=$CC | |
10350 | for ac_prog in cl | |
10351 | do | |
10352 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10353 | set dummy $ac_prog; ac_word=$2 | |
10354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10356 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10358 | else | |
10359 | if test -n "$ac_ct_CC"; then | |
10360 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10361 | else | |
10362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10363 | for as_dir in $PATH | |
10364 | do | |
10365 | IFS=$as_save_IFS | |
10366 | test -z "$as_dir" && as_dir=. | |
10367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10369 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10371 | break 2 | |
10372 | fi | |
10373 | done | |
10374 | done | |
f09359cf | 10375 | |
e6cc62c6 VS |
10376 | fi |
10377 | fi | |
10378 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10379 | if test -n "$ac_ct_CC"; then | |
10380 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10381 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10382 | else | |
10383 | echo "$as_me:$LINENO: result: no" >&5 | |
10384 | echo "${ECHO_T}no" >&6 | |
10385 | fi | |
f09359cf | 10386 | |
e6cc62c6 VS |
10387 | test -n "$ac_ct_CC" && break |
10388 | done | |
247f5006 | 10389 | |
e6cc62c6 VS |
10390 | CC=$ac_ct_CC |
10391 | fi | |
10392 | ||
10393 | fi | |
10394 | ||
10395 | ||
10396 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10397 | See \`config.log' for more details." >&5 | |
10398 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10399 | See \`config.log' for more details." >&2;} | |
10400 | { (exit 1); exit 1; }; } | |
10401 | ||
10402 | # Provide some information about the compiler. | |
10403 | echo "$as_me:$LINENO:" \ | |
10404 | "checking for C compiler version" >&5 | |
10405 | ac_compiler=`set X $ac_compile; echo $2` | |
10406 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10407 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10408 | ac_status=$? | |
10409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10410 | (exit $ac_status); } | |
10411 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10412 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10413 | ac_status=$? | |
10414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10415 | (exit $ac_status); } | |
10416 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10417 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10418 | ac_status=$? | |
10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10420 | (exit $ac_status); } | |
10421 | ||
10422 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10423 | /* confdefs.h. */ |
10424 | _ACEOF | |
10425 | cat confdefs.h >>conftest.$ac_ext | |
10426 | cat >>conftest.$ac_ext <<_ACEOF | |
10427 | /* end confdefs.h. */ | |
10428 | ||
10429 | int | |
10430 | main () | |
10431 | { | |
247f5006 | 10432 | |
e6cc62c6 VS |
10433 | ; |
10434 | return 0; | |
10435 | } | |
10436 | _ACEOF | |
10437 | ac_clean_files_save=$ac_clean_files | |
10438 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10439 | # Try to create an executable without -o first, disregard a.out. | |
10440 | # It will help us diagnose broken compilers, and finding out an intuition | |
10441 | # of exeext. | |
32ddf007 VS |
10442 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10443 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
e6cc62c6 VS |
10444 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10445 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10446 | (eval $ac_link_default) 2>&5 | |
10447 | ac_status=$? | |
10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10449 | (exit $ac_status); }; then | |
10450 | # Find the output, starting from the most likely. This scheme is | |
10451 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10452 | # resort. | |
10453 | ||
10454 | # Be careful to initialize this variable, since it used to be cached. | |
10455 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10456 | ac_cv_exeext= | |
10457 | # b.out is created by i960 compilers. | |
10458 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10459 | do | |
10460 | test -f "$ac_file" || continue | |
10461 | case $ac_file in | |
10462 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
32ddf007 | 10463 | ;; |
e6cc62c6 | 10464 | conftest.$ac_ext ) |
32ddf007 VS |
10465 | # This is the source file. |
10466 | ;; | |
e6cc62c6 | 10467 | [ab].out ) |
32ddf007 VS |
10468 | # We found the default executable, but exeext='' is most |
10469 | # certainly right. | |
10470 | break;; | |
e6cc62c6 | 10471 | *.* ) |
32ddf007 VS |
10472 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10473 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10474 | # but it would be cool to find out if it's true. Does anybody | |
10475 | # maintain Libtool? --akim. | |
10476 | export ac_cv_exeext | |
10477 | break;; | |
e6cc62c6 | 10478 | * ) |
32ddf007 | 10479 | break;; |
e6cc62c6 VS |
10480 | esac |
10481 | done | |
10482 | else | |
10483 | echo "$as_me: failed program was:" >&5 | |
10484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10485 | ||
10486 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10487 | See \`config.log' for more details." >&5 | |
10488 | echo "$as_me: error: C compiler cannot create executables | |
10489 | See \`config.log' for more details." >&2;} | |
10490 | { (exit 77); exit 77; }; } | |
10491 | fi | |
10492 | ||
10493 | ac_exeext=$ac_cv_exeext | |
10494 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10495 | echo "${ECHO_T}$ac_file" >&6 | |
10496 | ||
10497 | # Check the compiler produces executables we can run. If not, either | |
10498 | # the compiler is broken, or we cross compile. | |
10499 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10500 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10501 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10502 | # If not cross compiling, check that we can run a simple program. | |
10503 | if test "$cross_compiling" != yes; then | |
10504 | if { ac_try='./$ac_file' | |
10505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10506 | (eval $ac_try) 2>&5 | |
10507 | ac_status=$? | |
10508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10509 | (exit $ac_status); }; }; then | |
10510 | cross_compiling=no | |
698dcdb6 | 10511 | else |
e6cc62c6 VS |
10512 | if test "$cross_compiling" = maybe; then |
10513 | cross_compiling=yes | |
10514 | else | |
10515 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10516 | If you meant to cross compile, use \`--host'. | |
10517 | See \`config.log' for more details." >&5 | |
10518 | echo "$as_me: error: cannot run C compiled programs. | |
10519 | If you meant to cross compile, use \`--host'. | |
10520 | See \`config.log' for more details." >&2;} | |
10521 | { (exit 1); exit 1; }; } | |
10522 | fi | |
698dcdb6 | 10523 | fi |
52127426 | 10524 | fi |
e6cc62c6 VS |
10525 | echo "$as_me:$LINENO: result: yes" >&5 |
10526 | echo "${ECHO_T}yes" >&6 | |
10527 | ||
10528 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10529 | ac_clean_files=$ac_clean_files_save | |
10530 | # Check the compiler produces executables we can run. If not, either | |
10531 | # the compiler is broken, or we cross compile. | |
10532 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10533 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10534 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10535 | echo "${ECHO_T}$cross_compiling" >&6 | |
10536 | ||
10537 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10538 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10540 | (eval $ac_link) 2>&5 | |
10541 | ac_status=$? | |
10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10543 | (exit $ac_status); }; then | |
10544 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10545 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10546 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10547 | # `rm'. | |
10548 | for ac_file in conftest.exe conftest conftest.*; do | |
10549 | test -f "$ac_file" || continue | |
10550 | case $ac_file in | |
10551 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10552 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
32ddf007 VS |
10553 | export ac_cv_exeext |
10554 | break;; | |
e6cc62c6 VS |
10555 | * ) break;; |
10556 | esac | |
10557 | done | |
5c6fa7d2 | 10558 | else |
e6cc62c6 VS |
10559 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10560 | See \`config.log' for more details." >&5 | |
10561 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10562 | See \`config.log' for more details." >&2;} | |
10563 | { (exit 1); exit 1; }; } | |
10564 | fi | |
10565 | ||
10566 | rm -f conftest$ac_cv_exeext | |
10567 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10568 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10569 | ||
10570 | rm -f conftest.$ac_ext | |
10571 | EXEEXT=$ac_cv_exeext | |
10572 | ac_exeext=$EXEEXT | |
10573 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10574 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10575 | if test "${ac_cv_objext+set}" = set; then | |
10576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10577 | else | |
10578 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10579 | /* confdefs.h. */ |
10580 | _ACEOF | |
10581 | cat confdefs.h >>conftest.$ac_ext | |
10582 | cat >>conftest.$ac_ext <<_ACEOF | |
10583 | /* end confdefs.h. */ | |
10584 | ||
10585 | int | |
10586 | main () | |
10587 | { | |
f09359cf | 10588 | |
e6cc62c6 VS |
10589 | ; |
10590 | return 0; | |
10591 | } | |
10592 | _ACEOF | |
10593 | rm -f conftest.o conftest.obj | |
10594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10595 | (eval $ac_compile) 2>&5 | |
10596 | ac_status=$? | |
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10598 | (exit $ac_status); }; then | |
10599 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10600 | case $ac_file in | |
10601 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10602 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10603 | break;; | |
10604 | esac | |
10605 | done | |
a0b9e27f | 10606 | else |
e6cc62c6 VS |
10607 | echo "$as_me: failed program was:" >&5 |
10608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10609 | ||
10610 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10611 | See \`config.log' for more details." >&5 | |
10612 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10613 | See \`config.log' for more details." >&2;} | |
10614 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10615 | fi |
247f5006 | 10616 | |
e6cc62c6 VS |
10617 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10618 | fi | |
10619 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10620 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10621 | OBJEXT=$ac_cv_objext | |
10622 | ac_objext=$OBJEXT | |
10623 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10624 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10625 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10627 | else |
e6cc62c6 | 10628 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10629 | /* confdefs.h. */ |
10630 | _ACEOF | |
10631 | cat confdefs.h >>conftest.$ac_ext | |
10632 | cat >>conftest.$ac_ext <<_ACEOF | |
10633 | /* end confdefs.h. */ | |
10634 | ||
10635 | int | |
10636 | main () | |
10637 | { | |
10638 | #ifndef __GNUC__ | |
10639 | choke me | |
10640 | #endif | |
10641 | ||
10642 | ; | |
10643 | return 0; | |
10644 | } | |
10645 | _ACEOF | |
10646 | rm -f conftest.$ac_objext | |
10647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10648 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10649 | ac_status=$? |
32ddf007 VS |
10650 | grep -v '^ *+' conftest.er1 >conftest.err |
10651 | rm -f conftest.er1 | |
10652 | cat conftest.err >&5 | |
e6cc62c6 VS |
10653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10654 | (exit $ac_status); } && | |
e1293dcf | 10655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10657 | (eval $ac_try) 2>&5 | |
10658 | ac_status=$? | |
10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10660 | (exit $ac_status); }; } && | |
10661 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10663 | (eval $ac_try) 2>&5 | |
10664 | ac_status=$? | |
10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10666 | (exit $ac_status); }; }; then | |
10667 | ac_compiler_gnu=yes | |
10668 | else | |
10669 | echo "$as_me: failed program was:" >&5 | |
10670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10671 | ||
10672 | ac_compiler_gnu=no | |
10673 | fi | |
32ddf007 | 10674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10675 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10676 | ||
10677 | fi | |
10678 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10679 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10680 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10681 | ac_test_CFLAGS=${CFLAGS+set} | |
10682 | ac_save_CFLAGS=$CFLAGS | |
10683 | CFLAGS="-g" | |
10684 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10685 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10686 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10688 | else | |
10689 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10690 | /* confdefs.h. */ |
10691 | _ACEOF | |
10692 | cat confdefs.h >>conftest.$ac_ext | |
10693 | cat >>conftest.$ac_ext <<_ACEOF | |
10694 | /* end confdefs.h. */ | |
10695 | ||
10696 | int | |
10697 | main () | |
10698 | { | |
10699 | ||
10700 | ; | |
10701 | return 0; | |
10702 | } | |
10703 | _ACEOF | |
10704 | rm -f conftest.$ac_objext | |
10705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10706 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10707 | ac_status=$? |
32ddf007 VS |
10708 | grep -v '^ *+' conftest.er1 >conftest.err |
10709 | rm -f conftest.er1 | |
10710 | cat conftest.err >&5 | |
e6cc62c6 VS |
10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10712 | (exit $ac_status); } && | |
e1293dcf | 10713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10715 | (eval $ac_try) 2>&5 | |
10716 | ac_status=$? | |
10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10718 | (exit $ac_status); }; } && | |
10719 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10721 | (eval $ac_try) 2>&5 | |
10722 | ac_status=$? | |
10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10724 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10725 | ac_cv_prog_cc_g=yes |
10726 | else | |
e6cc62c6 VS |
10727 | echo "$as_me: failed program was:" >&5 |
10728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10729 | |
e6cc62c6 | 10730 | ac_cv_prog_cc_g=no |
10f2d63a | 10731 | fi |
32ddf007 | 10732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10733 | fi |
10734 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10735 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10736 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10737 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10738 | elif test $ac_cv_prog_cc_g = yes; then |
10739 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10740 | CFLAGS="-g -O2" |
10741 | else | |
f09359cf | 10742 | CFLAGS="-g" |
10f2d63a | 10743 | fi |
5c0a20c3 | 10744 | else |
f09359cf VS |
10745 | if test "$GCC" = yes; then |
10746 | CFLAGS="-O2" | |
10747 | else | |
10748 | CFLAGS= | |
10749 | fi | |
10f2d63a | 10750 | fi |
e6cc62c6 VS |
10751 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10752 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10753 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10755 | else | |
10756 | ac_cv_prog_cc_stdc=no | |
10757 | ac_save_CC=$CC | |
10758 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10759 | /* confdefs.h. */ |
10760 | _ACEOF | |
10761 | cat confdefs.h >>conftest.$ac_ext | |
10762 | cat >>conftest.$ac_ext <<_ACEOF | |
10763 | /* end confdefs.h. */ | |
10764 | #include <stdarg.h> | |
10765 | #include <stdio.h> | |
10766 | #include <sys/types.h> | |
10767 | #include <sys/stat.h> | |
10768 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10769 | struct buf { int x; }; | |
10770 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10771 | static char *e (p, i) | |
10772 | char **p; | |
10773 | int i; | |
10774 | { | |
10775 | return p[i]; | |
10776 | } | |
10777 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10778 | { | |
10779 | char *s; | |
10780 | va_list v; | |
10781 | va_start (v,p); | |
10782 | s = g (p, va_arg (v,int)); | |
10783 | va_end (v); | |
10784 | return s; | |
10785 | } | |
32ddf007 VS |
10786 | |
10787 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10788 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10789 | These don't provoke an error unfortunately, instead are silently treated | |
10790 | as 'x'. The following induces an error, until -std1 is added to get | |
10791 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10792 | array size at least. It's necessary to write '\x00'==0 to get something | |
10793 | that's true only with -std1. */ | |
10794 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10795 | ||
e6cc62c6 VS |
10796 | int test (int i, double x); |
10797 | struct s1 {int (*f) (int a);}; | |
10798 | struct s2 {int (*f) (double a);}; | |
10799 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10800 | int argc; | |
10801 | char **argv; | |
10802 | int | |
10803 | main () | |
10804 | { | |
10805 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10806 | ; | |
10807 | return 0; | |
10808 | } | |
10809 | _ACEOF | |
10810 | # Don't try gcc -ansi; that turns off useful extensions and | |
10811 | # breaks some systems' header files. | |
10812 | # AIX -qlanglvl=ansi | |
10813 | # Ultrix and OSF/1 -std1 | |
10814 | # HP-UX 10.20 and later -Ae | |
10815 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10816 | # SVR4 -Xc -D__EXTENSIONS__ | |
10817 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10818 | do | |
10819 | CC="$ac_save_CC $ac_arg" | |
10820 | rm -f conftest.$ac_objext | |
10821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10822 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10823 | ac_status=$? |
32ddf007 VS |
10824 | grep -v '^ *+' conftest.er1 >conftest.err |
10825 | rm -f conftest.er1 | |
10826 | cat conftest.err >&5 | |
e6cc62c6 VS |
10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10828 | (exit $ac_status); } && | |
e1293dcf | 10829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10831 | (eval $ac_try) 2>&5 | |
10832 | ac_status=$? | |
10833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10834 | (exit $ac_status); }; } && | |
10835 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10837 | (eval $ac_try) 2>&5 | |
10838 | ac_status=$? | |
10839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10840 | (exit $ac_status); }; }; then | |
10841 | ac_cv_prog_cc_stdc=$ac_arg | |
10842 | break | |
10843 | else | |
10844 | echo "$as_me: failed program was:" >&5 | |
10845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10846 | ||
10847 | fi | |
32ddf007 | 10848 | rm -f conftest.err conftest.$ac_objext |
e6cc62c6 VS |
10849 | done |
10850 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10851 | CC=$ac_save_CC | |
10852 | ||
10853 | fi | |
10854 | ||
10855 | case "x$ac_cv_prog_cc_stdc" in | |
10856 | x|xno) | |
10857 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10858 | echo "${ECHO_T}none needed" >&6 ;; | |
10859 | *) | |
10860 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10861 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10862 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10863 | esac | |
10864 | ||
10865 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10866 | # in C++ we need to declare it. In case someone uses the same compiler | |
10867 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10868 | # the declaration of exit, since it's the most demanding environment. | |
10869 | cat >conftest.$ac_ext <<_ACEOF | |
10870 | #ifndef __cplusplus | |
10871 | choke me | |
10872 | #endif | |
10873 | _ACEOF | |
10874 | rm -f conftest.$ac_objext | |
10875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10876 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10877 | ac_status=$? |
32ddf007 VS |
10878 | grep -v '^ *+' conftest.er1 >conftest.err |
10879 | rm -f conftest.er1 | |
10880 | cat conftest.err >&5 | |
e6cc62c6 VS |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10882 | (exit $ac_status); } && | |
e1293dcf | 10883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10885 | (eval $ac_try) 2>&5 | |
10886 | ac_status=$? | |
10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10888 | (exit $ac_status); }; } && | |
10889 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10891 | (eval $ac_try) 2>&5 | |
10892 | ac_status=$? | |
10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10894 | (exit $ac_status); }; }; then | |
10895 | for ac_declaration in \ | |
32ddf007 | 10896 | '' \ |
e6cc62c6 VS |
10897 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10898 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10899 | 'extern "C" void exit (int) throw ();' \ | |
10900 | 'extern "C" void exit (int);' \ | |
10901 | 'void exit (int);' | |
10902 | do | |
10903 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10904 | /* confdefs.h. */ |
10905 | _ACEOF | |
10906 | cat confdefs.h >>conftest.$ac_ext | |
10907 | cat >>conftest.$ac_ext <<_ACEOF | |
10908 | /* end confdefs.h. */ | |
0f87e84c | 10909 | $ac_declaration |
32ddf007 | 10910 | #include <stdlib.h> |
e6cc62c6 VS |
10911 | int |
10912 | main () | |
10913 | { | |
10914 | exit (42); | |
10915 | ; | |
10916 | return 0; | |
10917 | } | |
10918 | _ACEOF | |
10919 | rm -f conftest.$ac_objext | |
10920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10921 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10922 | ac_status=$? |
32ddf007 VS |
10923 | grep -v '^ *+' conftest.er1 >conftest.err |
10924 | rm -f conftest.er1 | |
10925 | cat conftest.err >&5 | |
e6cc62c6 VS |
10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10927 | (exit $ac_status); } && | |
e1293dcf | 10928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10930 | (eval $ac_try) 2>&5 | |
10931 | ac_status=$? | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); }; } && | |
10934 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10936 | (eval $ac_try) 2>&5 | |
10937 | ac_status=$? | |
10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10939 | (exit $ac_status); }; }; then | |
10940 | : | |
10941 | else | |
10942 | echo "$as_me: failed program was:" >&5 | |
10943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10944 | ||
10945 | continue | |
10946 | fi | |
32ddf007 | 10947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10948 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10949 | /* confdefs.h. */ |
10950 | _ACEOF | |
10951 | cat confdefs.h >>conftest.$ac_ext | |
10952 | cat >>conftest.$ac_ext <<_ACEOF | |
10953 | /* end confdefs.h. */ | |
10954 | $ac_declaration | |
10955 | int | |
10956 | main () | |
10957 | { | |
10958 | exit (42); | |
10959 | ; | |
10960 | return 0; | |
10961 | } | |
10962 | _ACEOF | |
10963 | rm -f conftest.$ac_objext | |
10964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10965 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10966 | ac_status=$? |
32ddf007 VS |
10967 | grep -v '^ *+' conftest.er1 >conftest.err |
10968 | rm -f conftest.er1 | |
10969 | cat conftest.err >&5 | |
e6cc62c6 VS |
10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10971 | (exit $ac_status); } && | |
e1293dcf | 10972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10974 | (eval $ac_try) 2>&5 | |
10975 | ac_status=$? | |
10976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10977 | (exit $ac_status); }; } && | |
10978 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10980 | (eval $ac_try) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; }; then | |
10984 | break | |
10985 | else | |
10986 | echo "$as_me: failed program was:" >&5 | |
10987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10988 | ||
10989 | fi | |
32ddf007 | 10990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10991 | done |
10992 | rm -f conftest* | |
10993 | if test -n "$ac_declaration"; then | |
10994 | echo '#ifdef __cplusplus' >>confdefs.h | |
10995 | echo $ac_declaration >>confdefs.h | |
10996 | echo '#endif' >>confdefs.h | |
10997 | fi | |
10998 | ||
10999 | else | |
11000 | echo "$as_me: failed program was:" >&5 | |
11001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11002 | ||
11003 | fi | |
32ddf007 | 11004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11005 | ac_ext=c |
11006 | ac_cpp='$CPP $CPPFLAGS' | |
11007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
11010 | |
11011 | ||
e6cc62c6 VS |
11012 | |
11013 | ac_ext=c | |
11014 | ac_cpp='$CPP $CPPFLAGS' | |
11015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11018 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11019 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
11020 | # On Suns, sometimes $CPP names a directory. |
11021 | if test -n "$CPP" && test -d "$CPP"; then | |
11022 | CPP= | |
11023 | fi | |
11024 | if test -z "$CPP"; then | |
e6cc62c6 VS |
11025 | if test "${ac_cv_prog_CPP+set}" = set; then |
11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11027 | else | |
11028 | # Double quotes because CPP needs to be expanded | |
11029 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11030 | do | |
11031 | ac_preproc_ok=false | |
11032 | for ac_c_preproc_warn_flag in '' yes | |
11033 | do | |
11034 | # Use a header file that comes with gcc, so configuring glibc | |
11035 | # with a fresh cross-compiler works. | |
11036 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11037 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 11038 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
11039 | # not just through cpp. "Syntax error" is here to catch this case. |
11040 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11041 | /* confdefs.h. */ |
11042 | _ACEOF | |
11043 | cat confdefs.h >>conftest.$ac_ext | |
11044 | cat >>conftest.$ac_ext <<_ACEOF | |
11045 | /* end confdefs.h. */ | |
11046 | #ifdef __STDC__ | |
11047 | # include <limits.h> | |
11048 | #else | |
11049 | # include <assert.h> | |
11050 | #endif | |
32ddf007 | 11051 | Syntax error |
e6cc62c6 VS |
11052 | _ACEOF |
11053 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11054 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11055 | ac_status=$? | |
11056 | grep -v '^ *+' conftest.er1 >conftest.err | |
11057 | rm -f conftest.er1 | |
11058 | cat conftest.err >&5 | |
11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11060 | (exit $ac_status); } >/dev/null; then | |
11061 | if test -s conftest.err; then | |
11062 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11063 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11064 | else |
11065 | ac_cpp_err= | |
11066 | fi | |
10f2d63a | 11067 | else |
e6cc62c6 VS |
11068 | ac_cpp_err=yes |
11069 | fi | |
11070 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 11071 | : |
247f5006 | 11072 | else |
e6cc62c6 VS |
11073 | echo "$as_me: failed program was:" >&5 |
11074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11075 | ||
11076 | # Broken: fails on valid input. | |
11077 | continue | |
11078 | fi | |
11079 | rm -f conftest.err conftest.$ac_ext | |
11080 | ||
11081 | # OK, works on sane cases. Now check whether non-existent headers | |
11082 | # can be detected and how. | |
11083 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11084 | /* confdefs.h. */ |
11085 | _ACEOF | |
11086 | cat confdefs.h >>conftest.$ac_ext | |
11087 | cat >>conftest.$ac_ext <<_ACEOF | |
11088 | /* end confdefs.h. */ | |
11089 | #include <ac_nonexistent.h> | |
11090 | _ACEOF | |
11091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11093 | ac_status=$? | |
11094 | grep -v '^ *+' conftest.er1 >conftest.err | |
11095 | rm -f conftest.er1 | |
11096 | cat conftest.err >&5 | |
11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11098 | (exit $ac_status); } >/dev/null; then | |
11099 | if test -s conftest.err; then | |
11100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11101 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11102 | else |
11103 | ac_cpp_err= | |
11104 | fi | |
10f2d63a | 11105 | else |
e6cc62c6 | 11106 | ac_cpp_err=yes |
579d8138 | 11107 | fi |
e6cc62c6 VS |
11108 | if test -z "$ac_cpp_err"; then |
11109 | # Broken: success on invalid input. | |
11110 | continue | |
11111 | else | |
11112 | echo "$as_me: failed program was:" >&5 | |
11113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11114 | ||
11115 | # Passes both tests. | |
11116 | ac_preproc_ok=: | |
11117 | break | |
52127426 | 11118 | fi |
e6cc62c6 VS |
11119 | rm -f conftest.err conftest.$ac_ext |
11120 | ||
11121 | done | |
11122 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11123 | rm -f conftest.err conftest.$ac_ext | |
11124 | if $ac_preproc_ok; then | |
11125 | break | |
8284b0c5 | 11126 | fi |
e6cc62c6 VS |
11127 | |
11128 | done | |
11129 | ac_cv_prog_CPP=$CPP | |
11130 | ||
11131 | fi | |
11132 | CPP=$ac_cv_prog_CPP | |
11133 | else | |
11134 | ac_cv_prog_CPP=$CPP | |
11135 | fi | |
11136 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11137 | echo "${ECHO_T}$CPP" >&6 | |
11138 | ac_preproc_ok=false | |
11139 | for ac_c_preproc_warn_flag in '' yes | |
11140 | do | |
11141 | # Use a header file that comes with gcc, so configuring glibc | |
11142 | # with a fresh cross-compiler works. | |
11143 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11144 | # <limits.h> exists even on freestanding compilers. | |
11145 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11146 | # not just through cpp. "Syntax error" is here to catch this case. | |
11147 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11148 | /* confdefs.h. */ |
11149 | _ACEOF | |
11150 | cat confdefs.h >>conftest.$ac_ext | |
11151 | cat >>conftest.$ac_ext <<_ACEOF | |
11152 | /* end confdefs.h. */ | |
11153 | #ifdef __STDC__ | |
11154 | # include <limits.h> | |
11155 | #else | |
11156 | # include <assert.h> | |
11157 | #endif | |
32ddf007 | 11158 | Syntax error |
e6cc62c6 VS |
11159 | _ACEOF |
11160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11162 | ac_status=$? | |
11163 | grep -v '^ *+' conftest.er1 >conftest.err | |
11164 | rm -f conftest.er1 | |
11165 | cat conftest.err >&5 | |
11166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11167 | (exit $ac_status); } >/dev/null; then | |
11168 | if test -s conftest.err; then | |
11169 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11171 | else |
11172 | ac_cpp_err= | |
11173 | fi | |
11174 | else | |
11175 | ac_cpp_err=yes | |
11176 | fi | |
11177 | if test -z "$ac_cpp_err"; then | |
11178 | : | |
11179 | else | |
11180 | echo "$as_me: failed program was:" >&5 | |
11181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11182 | ||
11183 | # Broken: fails on valid input. | |
11184 | continue | |
11185 | fi | |
11186 | rm -f conftest.err conftest.$ac_ext | |
11187 | ||
11188 | # OK, works on sane cases. Now check whether non-existent headers | |
11189 | # can be detected and how. | |
11190 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11191 | /* confdefs.h. */ |
11192 | _ACEOF | |
11193 | cat confdefs.h >>conftest.$ac_ext | |
11194 | cat >>conftest.$ac_ext <<_ACEOF | |
11195 | /* end confdefs.h. */ | |
11196 | #include <ac_nonexistent.h> | |
11197 | _ACEOF | |
11198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11200 | ac_status=$? | |
11201 | grep -v '^ *+' conftest.er1 >conftest.err | |
11202 | rm -f conftest.er1 | |
11203 | cat conftest.err >&5 | |
11204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11205 | (exit $ac_status); } >/dev/null; then | |
11206 | if test -s conftest.err; then | |
11207 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11208 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11209 | else |
11210 | ac_cpp_err= | |
11211 | fi | |
11212 | else | |
11213 | ac_cpp_err=yes | |
11214 | fi | |
11215 | if test -z "$ac_cpp_err"; then | |
11216 | # Broken: success on invalid input. | |
11217 | continue | |
11218 | else | |
11219 | echo "$as_me: failed program was:" >&5 | |
11220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11221 | ||
11222 | # Passes both tests. | |
11223 | ac_preproc_ok=: | |
11224 | break | |
a0b9e27f | 11225 | fi |
e6cc62c6 VS |
11226 | rm -f conftest.err conftest.$ac_ext |
11227 | ||
11228 | done | |
11229 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11230 | rm -f conftest.err conftest.$ac_ext | |
11231 | if $ac_preproc_ok; then | |
11232 | : | |
11233 | else | |
11234 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11235 | See \`config.log' for more details." >&5 | |
11236 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11237 | See \`config.log' for more details." >&2;} | |
11238 | { (exit 1); exit 1; }; } | |
11239 | fi | |
11240 | ||
11241 | ac_ext=c | |
11242 | ac_cpp='$CPP $CPPFLAGS' | |
11243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11246 | ||
11247 | ||
11248 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11249 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11250 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11252 | else |
e6cc62c6 VS |
11253 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11254 | then ac_cv_prog_egrep='grep -E' | |
11255 | else ac_cv_prog_egrep='egrep' | |
11256 | fi | |
10f2d63a | 11257 | fi |
e6cc62c6 VS |
11258 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11259 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11260 | EGREP=$ac_cv_prog_egrep | |
11261 | ||
10f2d63a | 11262 | |
e6cc62c6 VS |
11263 | if test $ac_cv_c_compiler_gnu = yes; then |
11264 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11265 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11266 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11268 | else |
11269 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11270 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11271 | /* confdefs.h. */ |
11272 | _ACEOF | |
11273 | cat confdefs.h >>conftest.$ac_ext | |
11274 | cat >>conftest.$ac_ext <<_ACEOF | |
11275 | /* end confdefs.h. */ | |
10f2d63a VZ |
11276 | #include <sgtty.h> |
11277 | Autoconf TIOCGETP | |
e6cc62c6 | 11278 | _ACEOF |
10f2d63a | 11279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11280 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11281 | ac_cv_prog_gcc_traditional=yes |
11282 | else | |
10f2d63a VZ |
11283 | ac_cv_prog_gcc_traditional=no |
11284 | fi | |
11285 | rm -f conftest* | |
11286 | ||
8284b0c5 | 11287 | |
10f2d63a | 11288 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11289 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11290 | /* confdefs.h. */ |
11291 | _ACEOF | |
11292 | cat confdefs.h >>conftest.$ac_ext | |
11293 | cat >>conftest.$ac_ext <<_ACEOF | |
11294 | /* end confdefs.h. */ | |
10f2d63a VZ |
11295 | #include <termio.h> |
11296 | Autoconf TCGETA | |
e6cc62c6 | 11297 | _ACEOF |
10f2d63a | 11298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11299 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11300 | ac_cv_prog_gcc_traditional=yes |
11301 | fi | |
11302 | rm -f conftest* | |
11303 | ||
11304 | fi | |
11305 | fi | |
e6cc62c6 VS |
11306 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11307 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11308 | if test $ac_cv_prog_gcc_traditional = yes; then |
11309 | CC="$CC -traditional" | |
11310 | fi | |
11311 | fi | |
11312 | ||
8284b0c5 MB |
11313 | |
11314 | ||
e6cc62c6 VS |
11315 | |
11316 | ac_ext=cc | |
1e487827 | 11317 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11318 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11319 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11320 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11321 | |
698dcdb6 | 11322 | |
ec603395 | 11323 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11324 | ac_ext=cc |
11325 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11329 | if test -n "$ac_tool_prefix"; then | |
11330 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11331 | do | |
11332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11336 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11338 | else |
11339 | if test -n "$CXX"; then | |
11340 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11341 | else | |
e6cc62c6 VS |
11342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11343 | for as_dir in $PATH | |
11344 | do | |
11345 | IFS=$as_save_IFS | |
11346 | test -z "$as_dir" && as_dir=. | |
11347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11349 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11351 | break 2 | |
11352 | fi | |
11353 | done | |
11354 | done | |
11355 | ||
10f2d63a VZ |
11356 | fi |
11357 | fi | |
e6cc62c6 | 11358 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11359 | if test -n "$CXX"; then |
e6cc62c6 VS |
11360 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11361 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11362 | else |
e6cc62c6 VS |
11363 | echo "$as_me:$LINENO: result: no" >&5 |
11364 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11365 | fi |
11366 | ||
e6cc62c6 VS |
11367 | test -n "$CXX" && break |
11368 | done | |
11369 | fi | |
11370 | if test -z "$CXX"; then | |
11371 | ac_ct_CXX=$CXX | |
11372 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11373 | do | |
11374 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11375 | set dummy $ac_prog; ac_word=$2 | |
11376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11378 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11380 | else | |
11381 | if test -n "$ac_ct_CXX"; then | |
11382 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11383 | else | |
11384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11385 | for as_dir in $PATH | |
11386 | do | |
11387 | IFS=$as_save_IFS | |
11388 | test -z "$as_dir" && as_dir=. | |
11389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11391 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11393 | break 2 | |
11394 | fi | |
11395 | done | |
10f2d63a | 11396 | done |
a0b9e27f | 11397 | |
8284b0c5 | 11398 | fi |
a0b9e27f | 11399 | fi |
e6cc62c6 VS |
11400 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11401 | if test -n "$ac_ct_CXX"; then | |
11402 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11403 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11404 | else | |
11405 | echo "$as_me:$LINENO: result: no" >&5 | |
11406 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11407 | fi |
10f2d63a | 11408 | |
e6cc62c6 VS |
11409 | test -n "$ac_ct_CXX" && break |
11410 | done | |
11411 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11412 | ||
11413 | CXX=$ac_ct_CXX | |
11414 | fi | |
11415 | ||
11416 | ||
11417 | # Provide some information about the compiler. | |
11418 | echo "$as_me:$LINENO:" \ | |
11419 | "checking for C++ compiler version" >&5 | |
11420 | ac_compiler=`set X $ac_compile; echo $2` | |
11421 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11422 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11423 | ac_status=$? | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); } | |
11426 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11427 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11428 | ac_status=$? | |
11429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11430 | (exit $ac_status); } | |
11431 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11432 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11433 | ac_status=$? | |
11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11435 | (exit $ac_status); } | |
11436 | ||
11437 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11438 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11439 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11441 | else | |
11442 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11443 | /* confdefs.h. */ |
11444 | _ACEOF | |
11445 | cat confdefs.h >>conftest.$ac_ext | |
11446 | cat >>conftest.$ac_ext <<_ACEOF | |
11447 | /* end confdefs.h. */ | |
11448 | ||
11449 | int | |
11450 | main () | |
11451 | { | |
11452 | #ifndef __GNUC__ | |
11453 | choke me | |
11454 | #endif | |
10f2d63a | 11455 | |
e6cc62c6 VS |
11456 | ; |
11457 | return 0; | |
11458 | } | |
11459 | _ACEOF | |
11460 | rm -f conftest.$ac_objext | |
11461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11462 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11463 | ac_status=$? |
32ddf007 VS |
11464 | grep -v '^ *+' conftest.er1 >conftest.err |
11465 | rm -f conftest.er1 | |
11466 | cat conftest.err >&5 | |
e6cc62c6 VS |
11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11468 | (exit $ac_status); } && | |
e1293dcf | 11469 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11471 | (eval $ac_try) 2>&5 | |
11472 | ac_status=$? | |
11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11474 | (exit $ac_status); }; } && | |
11475 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11477 | (eval $ac_try) 2>&5 | |
11478 | ac_status=$? | |
11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11480 | (exit $ac_status); }; }; then | |
11481 | ac_compiler_gnu=yes | |
11482 | else | |
11483 | echo "$as_me: failed program was:" >&5 | |
11484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11485 | ||
11486 | ac_compiler_gnu=no | |
11487 | fi | |
32ddf007 | 11488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11489 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11490 | ||
11491 | fi | |
11492 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11493 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11494 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11495 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11496 | ac_save_CXXFLAGS=$CXXFLAGS | |
11497 | CXXFLAGS="-g" | |
11498 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11499 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11500 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11502 | else | |
11503 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11504 | /* confdefs.h. */ |
11505 | _ACEOF | |
11506 | cat confdefs.h >>conftest.$ac_ext | |
11507 | cat >>conftest.$ac_ext <<_ACEOF | |
11508 | /* end confdefs.h. */ | |
11509 | ||
11510 | int | |
11511 | main () | |
11512 | { | |
f09359cf | 11513 | |
e6cc62c6 VS |
11514 | ; |
11515 | return 0; | |
11516 | } | |
11517 | _ACEOF | |
11518 | rm -f conftest.$ac_objext | |
11519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11520 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11521 | ac_status=$? |
32ddf007 VS |
11522 | grep -v '^ *+' conftest.er1 >conftest.err |
11523 | rm -f conftest.er1 | |
11524 | cat conftest.err >&5 | |
e6cc62c6 VS |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11526 | (exit $ac_status); } && | |
e1293dcf | 11527 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11529 | (eval $ac_try) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); }; } && | |
11533 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11535 | (eval $ac_try) 2>&5 | |
11536 | ac_status=$? | |
11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11538 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11539 | ac_cv_prog_cxx_g=yes |
11540 | else | |
e6cc62c6 VS |
11541 | echo "$as_me: failed program was:" >&5 |
11542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11543 | |
e6cc62c6 | 11544 | ac_cv_prog_cxx_g=no |
10f2d63a | 11545 | fi |
32ddf007 | 11546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11547 | fi |
11548 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11549 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11550 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11551 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11552 | elif test $ac_cv_prog_cxx_g = yes; then |
11553 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11554 | CXXFLAGS="-g -O2" |
11555 | else | |
f09359cf | 11556 | CXXFLAGS="-g" |
10f2d63a | 11557 | fi |
5c0a20c3 | 11558 | else |
f09359cf VS |
11559 | if test "$GXX" = yes; then |
11560 | CXXFLAGS="-O2" | |
11561 | else | |
11562 | CXXFLAGS= | |
11563 | fi | |
10f2d63a | 11564 | fi |
e6cc62c6 | 11565 | for ac_declaration in \ |
32ddf007 | 11566 | '' \ |
e6cc62c6 VS |
11567 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11568 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11569 | 'extern "C" void exit (int) throw ();' \ | |
11570 | 'extern "C" void exit (int);' \ | |
11571 | 'void exit (int);' | |
11572 | do | |
11573 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11574 | /* confdefs.h. */ |
11575 | _ACEOF | |
11576 | cat confdefs.h >>conftest.$ac_ext | |
11577 | cat >>conftest.$ac_ext <<_ACEOF | |
11578 | /* end confdefs.h. */ | |
0f87e84c | 11579 | $ac_declaration |
32ddf007 | 11580 | #include <stdlib.h> |
e6cc62c6 VS |
11581 | int |
11582 | main () | |
11583 | { | |
11584 | exit (42); | |
11585 | ; | |
11586 | return 0; | |
11587 | } | |
11588 | _ACEOF | |
11589 | rm -f conftest.$ac_objext | |
11590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11591 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11592 | ac_status=$? |
32ddf007 VS |
11593 | grep -v '^ *+' conftest.er1 >conftest.err |
11594 | rm -f conftest.er1 | |
11595 | cat conftest.err >&5 | |
e6cc62c6 VS |
11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11597 | (exit $ac_status); } && | |
e1293dcf | 11598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11600 | (eval $ac_try) 2>&5 | |
11601 | ac_status=$? | |
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11603 | (exit $ac_status); }; } && | |
11604 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11606 | (eval $ac_try) 2>&5 | |
11607 | ac_status=$? | |
11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11609 | (exit $ac_status); }; }; then | |
11610 | : | |
11611 | else | |
11612 | echo "$as_me: failed program was:" >&5 | |
11613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11614 | ||
11615 | continue | |
11616 | fi | |
32ddf007 | 11617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11618 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11619 | /* confdefs.h. */ |
11620 | _ACEOF | |
11621 | cat confdefs.h >>conftest.$ac_ext | |
11622 | cat >>conftest.$ac_ext <<_ACEOF | |
11623 | /* end confdefs.h. */ | |
11624 | $ac_declaration | |
11625 | int | |
11626 | main () | |
11627 | { | |
11628 | exit (42); | |
11629 | ; | |
11630 | return 0; | |
11631 | } | |
11632 | _ACEOF | |
11633 | rm -f conftest.$ac_objext | |
11634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11635 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11636 | ac_status=$? |
32ddf007 VS |
11637 | grep -v '^ *+' conftest.er1 >conftest.err |
11638 | rm -f conftest.er1 | |
11639 | cat conftest.err >&5 | |
e6cc62c6 VS |
11640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11641 | (exit $ac_status); } && | |
e1293dcf | 11642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11644 | (eval $ac_try) 2>&5 | |
11645 | ac_status=$? | |
11646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11647 | (exit $ac_status); }; } && | |
11648 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11650 | (eval $ac_try) 2>&5 | |
11651 | ac_status=$? | |
11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11653 | (exit $ac_status); }; }; then | |
11654 | break | |
11655 | else | |
11656 | echo "$as_me: failed program was:" >&5 | |
11657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11658 | ||
11659 | fi | |
32ddf007 | 11660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11661 | done |
11662 | rm -f conftest* | |
11663 | if test -n "$ac_declaration"; then | |
11664 | echo '#ifdef __cplusplus' >>confdefs.h | |
11665 | echo $ac_declaration >>confdefs.h | |
11666 | echo '#endif' >>confdefs.h | |
11667 | fi | |
11668 | ||
11669 | ac_ext=cc | |
11670 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11674 | |
11675 | ||
10f2d63a | 11676 | ac_ext=c |
10f2d63a | 11677 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11681 | |
11682 | ||
243f8ae5 VS |
11683 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 |
11684 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11685 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11686 | if test "$GCC" = "yes" ; then | |
11687 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11688 | sed -n '1,/End of search list\./p' | \ | |
11689 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11690 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11691 | fi | |
11692 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11693 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11694 | ||
e6cc62c6 VS |
11695 | if test -n "$ac_tool_prefix"; then |
11696 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11697 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11700 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11702 | else |
11703 | if test -n "$RANLIB"; then | |
11704 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11705 | else | |
e6cc62c6 VS |
11706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11707 | for as_dir in $PATH | |
11708 | do | |
11709 | IFS=$as_save_IFS | |
11710 | test -z "$as_dir" && as_dir=. | |
11711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11713 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11715 | break 2 | |
11716 | fi | |
11717 | done | |
11718 | done | |
11719 | ||
10f2d63a VZ |
11720 | fi |
11721 | fi | |
e6cc62c6 | 11722 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11723 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11724 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11725 | echo "${ECHO_T}$RANLIB" >&6 | |
11726 | else | |
11727 | echo "$as_me:$LINENO: result: no" >&5 | |
11728 | echo "${ECHO_T}no" >&6 | |
11729 | fi | |
11730 | ||
11731 | fi | |
11732 | if test -z "$ac_cv_prog_RANLIB"; then | |
11733 | ac_ct_RANLIB=$RANLIB | |
11734 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11735 | set dummy ranlib; ac_word=$2 | |
11736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11738 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11740 | else |
e6cc62c6 VS |
11741 | if test -n "$ac_ct_RANLIB"; then |
11742 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11743 | else | |
11744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11745 | for as_dir in $PATH | |
11746 | do | |
11747 | IFS=$as_save_IFS | |
11748 | test -z "$as_dir" && as_dir=. | |
11749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11751 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11753 | break 2 | |
11754 | fi | |
11755 | done | |
11756 | done | |
11757 | ||
11758 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11759 | fi | |
11760 | fi | |
11761 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11762 | if test -n "$ac_ct_RANLIB"; then | |
11763 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11764 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11765 | else | |
11766 | echo "$as_me:$LINENO: result: no" >&5 | |
11767 | echo "${ECHO_T}no" >&6 | |
11768 | fi | |
11769 | ||
11770 | RANLIB=$ac_ct_RANLIB | |
11771 | else | |
11772 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11773 | fi |
11774 | ||
10f2d63a VZ |
11775 | |
11776 | # Extract the first word of "ar", so it can be a program name with args. | |
11777 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11780 | if test "${ac_cv_prog_AR+set}" = set; then | |
11781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11782 | else |
11783 | if test -n "$AR"; then | |
11784 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11785 | else | |
e6cc62c6 VS |
11786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11787 | for as_dir in $PATH | |
11788 | do | |
11789 | IFS=$as_save_IFS | |
11790 | test -z "$as_dir" && as_dir=. | |
11791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11793 | ac_cv_prog_AR="ar" | |
11794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11795 | break 2 | |
11796 | fi | |
11797 | done | |
11798 | done | |
11799 | ||
10f2d63a VZ |
11800 | fi |
11801 | fi | |
e6cc62c6 | 11802 | AR=$ac_cv_prog_AR |
10f2d63a | 11803 | if test -n "$AR"; then |
e6cc62c6 VS |
11804 | echo "$as_me:$LINENO: result: $AR" >&5 |
11805 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11806 | else |
e6cc62c6 VS |
11807 | echo "$as_me:$LINENO: result: no" >&5 |
11808 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11809 | fi |
11810 | ||
911740e7 VS |
11811 | if test "x$AR" = "x" ; then |
11812 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11813 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11814 | { (exit 1); exit 1; }; } | |
11815 | fi | |
8284b0c5 | 11816 | |
6054113a | 11817 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11818 | # so one script is as good as another. But avoid the broken or |
11819 | # incompatible versions: | |
11820 | # SysV /etc/install, /usr/sbin/install | |
11821 | # SunOS /usr/etc/install | |
11822 | # IRIX /sbin/install | |
11823 | # AIX /bin/install | |
e6cc62c6 | 11824 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11825 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11826 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11827 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 11828 | # OS/2's system install, which has a completely different semantic |
10f2d63a | 11829 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
11830 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11831 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11832 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11833 | if test "${ac_cv_path_install+set}" = set; then |
11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11835 | else | |
11836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11837 | for as_dir in $PATH | |
11838 | do | |
11839 | IFS=$as_save_IFS | |
11840 | test -z "$as_dir" && as_dir=. | |
11841 | # Account for people who put trailing slashes in PATH elements. | |
11842 | case $as_dir/ in | |
11843 | ./ | .// | /cC/* | \ | |
11844 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 11845 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
11846 | /usr/ucb/* ) ;; |
11847 | *) | |
11848 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11849 | # Don't use installbsd from OSF since it installs stuff as root | |
11850 | # by default. | |
11851 | for ac_prog in ginstall scoinst install; do | |
11852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
11853 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11854 | if test $ac_prog = install && | |
11855 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11856 | # AIX install. It has an incompatible calling convention. | |
11857 | : | |
11858 | elif test $ac_prog = install && | |
11859 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11860 | # program-specific install script used by HP pwplus--don't use. | |
11861 | : | |
11862 | else | |
11863 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11864 | break 3 | |
11865 | fi | |
11866 | fi | |
10f2d63a | 11867 | done |
e6cc62c6 VS |
11868 | done |
11869 | ;; | |
11870 | esac | |
11871 | done | |
11872 | ||
10f2d63a VZ |
11873 | |
11874 | fi | |
11875 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11876 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11877 | else |
11878 | # As a last resort, use the slow shell script. We don't cache a | |
11879 | # path for INSTALL within a source directory, because that will | |
11880 | # break other packages using the cache if that directory is | |
11881 | # removed, or if the path is relative. | |
e6cc62c6 | 11882 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11883 | fi |
11884 | fi | |
e6cc62c6 VS |
11885 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11886 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11887 | |
11888 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11889 | # It thinks the first close brace ends the variable substitution. | |
11890 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11891 | ||
e6cc62c6 | 11892 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11893 | |
10f2d63a VZ |
11894 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11895 | ||
8284b0c5 | 11896 | |
1d1b75ac VZ |
11897 | case ${INSTALL} in |
11898 | /* ) # Absolute | |
11899 | ;; | |
4f5a7f74 VZ |
11900 | ?:* ) # Drive letter, considered as absolute. |
11901 | ;; | |
3bd8fb5f | 11902 | *) |
1d1b75ac VZ |
11903 | INSTALL=`pwd`/${INSTALL} ;; |
11904 | esac | |
11905 | ||
4f5a7f74 VZ |
11906 | case ${host} in |
11907 | *-hp-hpux* ) | |
11908 | INSTALL_DIR="mkdir" | |
11909 | ;; | |
11910 | ||
11911 | *) INSTALL_DIR="$INSTALL -d" | |
11912 | ;; | |
11913 | esac | |
11914 | ||
8284b0c5 | 11915 | |
6054113a GD |
11916 | case "${host}" in |
11917 | ||
b5853384 | 11918 | powerpc-*-darwin* ) |
eb99ae0b GD |
11919 | INSTALL_PROGRAM="cp -fp" |
11920 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11921 | ;; |
11922 | *) | |
11923 | ;; | |
d6853540 | 11924 | esac |
698dcdb6 | 11925 | |
10f2d63a VZ |
11926 | # Extract the first word of "strip", so it can be a program name with args. |
11927 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11930 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11932 | else |
11933 | if test -n "$STRIP"; then | |
11934 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11935 | else | |
e6cc62c6 VS |
11936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11937 | for as_dir in $PATH | |
11938 | do | |
11939 | IFS=$as_save_IFS | |
11940 | test -z "$as_dir" && as_dir=. | |
11941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11943 | ac_cv_prog_STRIP="strip" | |
11944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11945 | break 2 | |
11946 | fi | |
11947 | done | |
11948 | done | |
11949 | ||
10f2d63a VZ |
11950 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11951 | fi | |
11952 | fi | |
e6cc62c6 | 11953 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11954 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11955 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11956 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11957 | else |
e6cc62c6 VS |
11958 | echo "$as_me:$LINENO: result: no" >&5 |
11959 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11960 | fi |
11961 | ||
5c6fa7d2 | 11962 | |
e6cc62c6 VS |
11963 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11964 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11965 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11967 | else |
e6cc62c6 | 11968 | |
414eab6d | 11969 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11970 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11971 | wx_cv_prog_makeisgnu="yes" |
11972 | else | |
11973 | wx_cv_prog_makeisgnu="no" | |
11974 | fi | |
11975 | ||
11976 | fi | |
e6cc62c6 VS |
11977 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11978 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11979 | |
11980 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11981 | IF_GNU_MAKE="" | |
11982 | else | |
11983 | IF_GNU_MAKE="#" | |
11984 | fi | |
11985 | ||
8284b0c5 MB |
11986 | |
11987 | ||
414eab6d | 11988 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11989 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11990 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11991 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11993 | else |
e6cc62c6 | 11994 | |
10f2d63a VZ |
11995 | cat - << EOF > confMake |
11996 | check : file | |
11997 | cp \$? \$@ | |
11998 | cp \$? final_file | |
11999 | EOF | |
12000 | ||
12001 | if test ! -d sub ; then | |
12002 | mkdir sub | |
12003 | fi | |
12004 | echo dummy > sub/file | |
f6bcfd97 | 12005 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
12006 | RESULT=$? |
12007 | rm -f sub/file check final_file confMake | |
12008 | rmdir sub | |
12009 | if test "$RESULT" = 0; then | |
04e7a216 | 12010 | wx_cv_prog_makevpath="yes" |
10f2d63a | 12011 | else |
04e7a216 VZ |
12012 | wx_cv_prog_makevpath="no" |
12013 | fi | |
12014 | ||
12015 | fi | |
e6cc62c6 VS |
12016 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
12017 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
12018 | |
12019 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 12020 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
12021 | You need a make-utility that is able to use the variable |
12022 | VPATH correctly. | |
12023 | If your version of make does not support VPATH correctly, | |
12024 | please install GNU-make (possibly as gmake), and start | |
12025 | configure with the following command: | |
12026 | export MAKE=gmake; ./configure for sh-type shells | |
12027 | setenv MAKE gmake; ./configure for csh-type shells | |
12028 | Also please do remember to use gmake in this case every time | |
12029 | you are trying to compile. | |
e6cc62c6 VS |
12030 | " >&5 |
12031 | echo "$as_me: error: | |
12032 | You need a make-utility that is able to use the variable | |
12033 | VPATH correctly. | |
12034 | If your version of make does not support VPATH correctly, | |
12035 | please install GNU-make (possibly as gmake), and start | |
12036 | configure with the following command: | |
12037 | export MAKE=gmake; ./configure for sh-type shells | |
12038 | setenv MAKE gmake; ./configure for csh-type shells | |
12039 | Also please do remember to use gmake in this case every time | |
12040 | you are trying to compile. | |
12041 | " >&2;} | |
12042 | { (exit 1); exit 1; }; } | |
12043 | fi fi | |
e6cc62c6 VS |
12044 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
12045 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12046 | LN_S=$as_ln_s | |
12047 | if test "$LN_S" = "ln -s"; then | |
12048 | echo "$as_me:$LINENO: result: yes" >&5 | |
12049 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 12050 | else |
e6cc62c6 VS |
12051 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
12052 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 12053 | fi |
5c6fa7d2 | 12054 | |
247f5006 | 12055 | |
243f8ae5 | 12056 | |
2b5f62a0 VZ |
12057 | case "${host}" in |
12058 | *-pc-os2_emx | *-pc-os2-emx ) | |
243f8ae5 | 12059 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
12060 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
12061 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12062 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 12064 | else |
e6cc62c6 | 12065 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 12066 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 12067 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
12068 | /* confdefs.h. */ |
12069 | _ACEOF | |
12070 | cat confdefs.h >>conftest.$ac_ext | |
12071 | cat >>conftest.$ac_ext <<_ACEOF | |
12072 | /* end confdefs.h. */ | |
12073 | ||
2b5f62a0 | 12074 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
12075 | #ifdef __cplusplus |
12076 | extern "C" | |
12077 | #endif | |
2b5f62a0 | 12078 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
12079 | builtin and then its argument prototype would still apply. */ |
12080 | char drand48 (); | |
12081 | int | |
12082 | main () | |
12083 | { | |
12084 | drand48 (); | |
12085 | ; | |
12086 | return 0; | |
12087 | } | |
12088 | _ACEOF | |
12089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12091 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 12092 | ac_status=$? |
32ddf007 VS |
12093 | grep -v '^ *+' conftest.er1 >conftest.err |
12094 | rm -f conftest.er1 | |
12095 | cat conftest.err >&5 | |
e6cc62c6 VS |
12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12097 | (exit $ac_status); } && | |
e1293dcf | 12098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12100 | (eval $ac_try) 2>&5 | |
12101 | ac_status=$? | |
12102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12103 | (exit $ac_status); }; } && | |
12104 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
12105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12106 | (eval $ac_try) 2>&5 | |
12107 | ac_status=$? | |
12108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12109 | (exit $ac_status); }; }; then | |
12110 | ac_cv_lib_cExt_drand48=yes | |
12111 | else | |
12112 | echo "$as_me: failed program was:" >&5 | |
12113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12114 | ||
12115 | ac_cv_lib_cExt_drand48=no | |
12116 | fi | |
32ddf007 VS |
12117 | rm -f conftest.err conftest.$ac_objext \ |
12118 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
12119 | LIBS=$ac_check_lib_save_LIBS |
12120 | fi | |
12121 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12122 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12123 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 12124 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
12125 | fi |
12126 | ||
12127 | else | |
12128 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12129 | fi | |
32ddf007 VS |
12130 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
12131 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12132 | if test "${wx_cv_gccversion+set}" = set; then | |
73d617c9 MB |
12133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12134 | else | |
12135 | ||
12136 | cat >conftest.$ac_ext <<_ACEOF | |
73d617c9 MB |
12137 | /* confdefs.h. */ |
12138 | _ACEOF | |
12139 | cat confdefs.h >>conftest.$ac_ext | |
12140 | cat >>conftest.$ac_ext <<_ACEOF | |
12141 | /* end confdefs.h. */ | |
3527f29c | 12142 | |
73d617c9 MB |
12143 | int |
12144 | main () | |
12145 | { | |
12146 | ||
12147 | #if (__GNUC__ < 3) | |
12148 | #error old gcc | |
12149 | #endif | |
12150 | ||
12151 | ; | |
12152 | return 0; | |
12153 | } | |
12154 | _ACEOF | |
12155 | rm -f conftest.$ac_objext | |
12156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 VS |
12157 | (eval $ac_compile) 2>conftest.er1 |
12158 | ac_status=$? | |
12159 | grep -v '^ *+' conftest.er1 >conftest.err | |
12160 | rm -f conftest.er1 | |
12161 | cat conftest.err >&5 | |
12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12163 | (exit $ac_status); } && | |
e1293dcf | 12164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12166 | (eval $ac_try) 2>&5 | |
12167 | ac_status=$? | |
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12169 | (exit $ac_status); }; } && | |
12170 | { ac_try='test -s conftest.$ac_objext' | |
12171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12172 | (eval $ac_try) 2>&5 | |
12173 | ac_status=$? | |
12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12175 | (exit $ac_status); }; }; then | |
12176 | ||
12177 | cat >conftest.$ac_ext <<_ACEOF | |
12178 | /* confdefs.h. */ | |
12179 | _ACEOF | |
12180 | cat confdefs.h >>conftest.$ac_ext | |
12181 | cat >>conftest.$ac_ext <<_ACEOF | |
12182 | /* end confdefs.h. */ | |
12183 | ||
12184 | int | |
12185 | main () | |
12186 | { | |
12187 | ||
12188 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12189 | #error intermediate gcc | |
12190 | #endif | |
12191 | ||
12192 | ; | |
12193 | return 0; | |
12194 | } | |
12195 | _ACEOF | |
12196 | rm -f conftest.$ac_objext | |
12197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12198 | (eval $ac_compile) 2>conftest.er1 | |
73d617c9 | 12199 | ac_status=$? |
32ddf007 VS |
12200 | grep -v '^ *+' conftest.er1 >conftest.err |
12201 | rm -f conftest.er1 | |
12202 | cat conftest.err >&5 | |
73d617c9 MB |
12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12204 | (exit $ac_status); } && | |
e1293dcf | 12205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12207 | (eval $ac_try) 2>&5 | |
12208 | ac_status=$? | |
12209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12210 | (exit $ac_status); }; } && | |
12211 | { ac_try='test -s conftest.$ac_objext' | |
73d617c9 MB |
12212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12213 | (eval $ac_try) 2>&5 | |
12214 | ac_status=$? | |
12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12216 | (exit $ac_status); }; }; then | |
12217 | ||
32ddf007 | 12218 | wx_cv_gccversion=Innotek |
73d617c9 MB |
12219 | |
12220 | else | |
12221 | echo "$as_me: failed program was:" >&5 | |
12222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12223 | ||
12224 | ||
32ddf007 | 12225 | wx_cv_gccversion=3 |
73d617c9 MB |
12226 | |
12227 | ||
12228 | fi | |
32ddf007 VS |
12229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12230 | ||
12231 | else | |
12232 | echo "$as_me: failed program was:" >&5 | |
12233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12234 | ||
12235 | ||
12236 | wx_cv_gccversion=2 | |
12237 | ||
73d617c9 MB |
12238 | |
12239 | fi | |
32ddf007 VS |
12240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12241 | ||
12242 | fi | |
12243 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12244 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12245 | if test "$wx_cv_gccversion" = "2"; then | |
73d617c9 | 12246 | LIBS="$LIBS -lstdcpp" |
32ddf007 | 12247 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
73d617c9 | 12248 | else |
32ddf007 VS |
12249 | if test "$wx_cv_gccversion" = "3"; then |
12250 | LIBS="$LIBS -lstdcxx" | |
12251 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12252 | else | |
12253 | LIBS="$LIBS -lstdc++" | |
12254 | fi | |
73d617c9 | 12255 | fi |
243f8ae5 VS |
12256 | ;; |
12257 | *) | |
a0b9e27f | 12258 | |
1c2d1459 VZ |
12259 | |
12260 | ||
243f8ae5 | 12261 | ac_ext=cc |
1c2d1459 VZ |
12262 | ac_cpp='$CXXCPP $CPPFLAGS' |
12263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12266 | ||
12267 | ||
12268 | ||
12269 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12270 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12271 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
01aa5863 VS |
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12273 | else | |
1c2d1459 | 12274 | |
243f8ae5 | 12275 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12276 | /* confdefs.h. */ |
12277 | _ACEOF | |
12278 | cat confdefs.h >>conftest.$ac_ext | |
12279 | cat >>conftest.$ac_ext <<_ACEOF | |
12280 | /* end confdefs.h. */ | |
12281 | ||
243f8ae5 | 12282 | #include <string.h> |
1c2d1459 VZ |
12283 | |
12284 | int | |
12285 | main () | |
12286 | { | |
12287 | ||
243f8ae5 | 12288 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12289 | |
12290 | ; | |
12291 | return 0; | |
12292 | } | |
12293 | _ACEOF | |
12294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12296 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12297 | ac_status=$? |
32ddf007 VS |
12298 | grep -v '^ *+' conftest.er1 >conftest.err |
12299 | rm -f conftest.er1 | |
12300 | cat conftest.err >&5 | |
1c2d1459 VZ |
12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12302 | (exit $ac_status); } && | |
e1293dcf | 12303 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12305 | (eval $ac_try) 2>&5 | |
12306 | ac_status=$? | |
12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12308 | (exit $ac_status); }; } && | |
12309 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12311 | (eval $ac_try) 2>&5 | |
12312 | ac_status=$? | |
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12314 | (exit $ac_status); }; }; then | |
12315 | ac_cv_string_strcasecmp=yes | |
12316 | else | |
12317 | echo "$as_me: failed program was:" >&5 | |
12318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12319 | ||
12320 | ac_cv_string_strcasecmp=no | |
12321 | ||
12322 | fi | |
32ddf007 VS |
12323 | rm -f conftest.err conftest.$ac_objext \ |
12324 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 VZ |
12325 | |
12326 | fi | |
12327 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12328 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12329 | ||
243f8ae5 VS |
12330 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12331 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12332 | #define HAVE_STRCASECMP_IN_STRING_H 1 |
12333 | _ACEOF | |
12334 | ||
243f8ae5 VS |
12335 | else |
12336 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
1c2d1459 VZ |
12337 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 |
12338 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12340 | else | |
12341 | ||
243f8ae5 | 12342 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12343 | /* confdefs.h. */ |
12344 | _ACEOF | |
12345 | cat confdefs.h >>conftest.$ac_ext | |
12346 | cat >>conftest.$ac_ext <<_ACEOF | |
12347 | /* end confdefs.h. */ | |
12348 | ||
243f8ae5 | 12349 | #include <strings.h> |
1c2d1459 VZ |
12350 | |
12351 | int | |
12352 | main () | |
12353 | { | |
12354 | ||
243f8ae5 | 12355 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12356 | |
12357 | ; | |
12358 | return 0; | |
12359 | } | |
12360 | _ACEOF | |
12361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12363 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12364 | ac_status=$? |
32ddf007 VS |
12365 | grep -v '^ *+' conftest.er1 >conftest.err |
12366 | rm -f conftest.er1 | |
12367 | cat conftest.err >&5 | |
1c2d1459 VZ |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12369 | (exit $ac_status); } && | |
e1293dcf | 12370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12372 | (eval $ac_try) 2>&5 | |
12373 | ac_status=$? | |
12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12375 | (exit $ac_status); }; } && | |
12376 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12378 | (eval $ac_try) 2>&5 | |
12379 | ac_status=$? | |
12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12381 | (exit $ac_status); }; }; then | |
12382 | ac_cv_strings_strcasecmp=yes | |
12383 | else | |
12384 | echo "$as_me: failed program was:" >&5 | |
12385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12386 | ||
12387 | ac_cv_strings_strcasecmp=no | |
12388 | ||
12389 | fi | |
32ddf007 VS |
12390 | rm -f conftest.err conftest.$ac_objext \ |
12391 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 | 12392 | |
01aa5863 | 12393 | fi |
1c2d1459 VZ |
12394 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 |
12395 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12396 | ||
243f8ae5 VS |
12397 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12398 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12399 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 |
12400 | _ACEOF | |
12401 | ||
243f8ae5 VS |
12402 | else |
12403 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
1c2d1459 VZ |
12404 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} |
12405 | { (exit 1); exit 1; }; } | |
243f8ae5 VS |
12406 | fi |
12407 | fi | |
1c2d1459 | 12408 | |
243f8ae5 | 12409 | ac_ext=c |
1c2d1459 VZ |
12410 | ac_cpp='$CPP $CPPFLAGS' |
12411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12414 | ||
243f8ae5 VS |
12415 | ;; |
12416 | esac | |
12417 | ||
1c2d1459 | 12418 | |
01aa5863 | 12419 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e6cc62c6 VS |
12420 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12421 | if test "${ac_cv_header_stdc+set}" = set; then | |
12422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12423 | else | |
12424 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12425 | /* confdefs.h. */ |
12426 | _ACEOF | |
12427 | cat confdefs.h >>conftest.$ac_ext | |
12428 | cat >>conftest.$ac_ext <<_ACEOF | |
12429 | /* end confdefs.h. */ | |
12430 | #include <stdlib.h> | |
12431 | #include <stdarg.h> | |
12432 | #include <string.h> | |
12433 | #include <float.h> | |
247f5006 | 12434 | |
e6cc62c6 VS |
12435 | int |
12436 | main () | |
12437 | { | |
90dd450c | 12438 | |
e6cc62c6 VS |
12439 | ; |
12440 | return 0; | |
12441 | } | |
12442 | _ACEOF | |
12443 | rm -f conftest.$ac_objext | |
12444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12445 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12446 | ac_status=$? |
32ddf007 VS |
12447 | grep -v '^ *+' conftest.er1 >conftest.err |
12448 | rm -f conftest.er1 | |
12449 | cat conftest.err >&5 | |
e6cc62c6 VS |
12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12451 | (exit $ac_status); } && | |
e1293dcf | 12452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12454 | (eval $ac_try) 2>&5 | |
12455 | ac_status=$? | |
12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12457 | (exit $ac_status); }; } && | |
12458 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12460 | (eval $ac_try) 2>&5 | |
12461 | ac_status=$? | |
12462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12463 | (exit $ac_status); }; }; then | |
12464 | ac_cv_header_stdc=yes | |
8284b0c5 | 12465 | else |
e6cc62c6 VS |
12466 | echo "$as_me: failed program was:" >&5 |
12467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12468 | ||
12469 | ac_cv_header_stdc=no | |
21d1c967 | 12470 | fi |
32ddf007 | 12471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12472 | |
e6cc62c6 VS |
12473 | if test $ac_cv_header_stdc = yes; then |
12474 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12475 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12476 | /* confdefs.h. */ |
12477 | _ACEOF | |
12478 | cat confdefs.h >>conftest.$ac_ext | |
12479 | cat >>conftest.$ac_ext <<_ACEOF | |
12480 | /* end confdefs.h. */ | |
12481 | #include <string.h> | |
12482 | ||
12483 | _ACEOF | |
12484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12485 | $EGREP "memchr" >/dev/null 2>&1; then | |
12486 | : | |
12487 | else | |
12488 | ac_cv_header_stdc=no | |
3a922bb4 | 12489 | fi |
a0b9e27f | 12490 | rm -f conftest* |
e6cc62c6 | 12491 | |
90dd450c | 12492 | fi |
e6cc62c6 VS |
12493 | |
12494 | if test $ac_cv_header_stdc = yes; then | |
12495 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12497 | /* confdefs.h. */ |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | #include <stdlib.h> | |
12503 | ||
12504 | _ACEOF | |
12505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12506 | $EGREP "free" >/dev/null 2>&1; then | |
12507 | : | |
a0b9e27f | 12508 | else |
e6cc62c6 | 12509 | ac_cv_header_stdc=no |
21d1c967 | 12510 | fi |
e6cc62c6 | 12511 | rm -f conftest* |
247f5006 VZ |
12512 | |
12513 | fi | |
e6cc62c6 VS |
12514 | |
12515 | if test $ac_cv_header_stdc = yes; then | |
12516 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12517 | if test "$cross_compiling" = yes; then | |
12518 | : | |
12519 | else | |
12520 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12521 | /* confdefs.h. */ |
12522 | _ACEOF | |
12523 | cat confdefs.h >>conftest.$ac_ext | |
12524 | cat >>conftest.$ac_ext <<_ACEOF | |
12525 | /* end confdefs.h. */ | |
12526 | #include <ctype.h> | |
12527 | #if ((' ' & 0x0FF) == 0x020) | |
12528 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12529 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12530 | #else | |
12531 | # define ISLOWER(c) \ | |
32ddf007 VS |
12532 | (('a' <= (c) && (c) <= 'i') \ |
12533 | || ('j' <= (c) && (c) <= 'r') \ | |
12534 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12536 | #endif | |
12537 | ||
12538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12539 | int | |
12540 | main () | |
12541 | { | |
12542 | int i; | |
12543 | for (i = 0; i < 256; i++) | |
12544 | if (XOR (islower (i), ISLOWER (i)) | |
32ddf007 | 12545 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12546 | exit(2); |
12547 | exit (0); | |
12548 | } | |
12549 | _ACEOF | |
12550 | rm -f conftest$ac_exeext | |
12551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12552 | (eval $ac_link) 2>&5 | |
12553 | ac_status=$? | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12557 | (eval $ac_try) 2>&5 | |
12558 | ac_status=$? | |
12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12560 | (exit $ac_status); }; }; then | |
12561 | : | |
a0b9e27f | 12562 | else |
e6cc62c6 VS |
12563 | echo "$as_me: program exited with status $ac_status" >&5 |
12564 | echo "$as_me: failed program was:" >&5 | |
12565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12566 | ||
12567 | ( exit $ac_status ) | |
12568 | ac_cv_header_stdc=no | |
12569 | fi | |
32ddf007 | 12570 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12571 | fi |
12572 | fi | |
12573 | fi | |
12574 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12575 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12576 | if test $ac_cv_header_stdc = yes; then | |
12577 | ||
12578 | cat >>confdefs.h <<\_ACEOF | |
12579 | #define STDC_HEADERS 1 | |
12580 | _ACEOF | |
12581 | ||
a0b9e27f | 12582 | fi |
e6cc62c6 VS |
12583 | |
12584 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12585 | ||
12586 | ||
12587 | ||
12588 | ||
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | ||
12594 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
32ddf007 | 12595 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12596 | do |
12597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12602 | else | |
12603 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12604 | /* confdefs.h. */ |
12605 | _ACEOF | |
12606 | cat confdefs.h >>conftest.$ac_ext | |
12607 | cat >>conftest.$ac_ext <<_ACEOF | |
12608 | /* end confdefs.h. */ | |
12609 | $ac_includes_default | |
12610 | ||
12611 | #include <$ac_header> | |
12612 | _ACEOF | |
12613 | rm -f conftest.$ac_objext | |
12614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12615 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12616 | ac_status=$? |
32ddf007 VS |
12617 | grep -v '^ *+' conftest.er1 >conftest.err |
12618 | rm -f conftest.er1 | |
12619 | cat conftest.err >&5 | |
e6cc62c6 VS |
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12621 | (exit $ac_status); } && | |
e1293dcf | 12622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12624 | (eval $ac_try) 2>&5 | |
12625 | ac_status=$? | |
12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); }; } && | |
12628 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12630 | (eval $ac_try) 2>&5 | |
12631 | ac_status=$? | |
12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12633 | (exit $ac_status); }; }; then | |
12634 | eval "$as_ac_Header=yes" | |
12635 | else | |
12636 | echo "$as_me: failed program was:" >&5 | |
12637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12638 | ||
12639 | eval "$as_ac_Header=no" | |
12640 | fi | |
32ddf007 | 12641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12642 | fi |
12643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12644 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12645 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12646 | cat >>confdefs.h <<_ACEOF | |
12647 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12648 | _ACEOF | |
12649 | ||
12650 | fi | |
12651 | ||
a0b9e27f | 12652 | done |
90dd450c | 12653 | |
e6cc62c6 VS |
12654 | |
12655 | ||
e6cc62c6 VS |
12656 | for ac_header in stdlib.h |
12657 | do | |
12658 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12664 | fi | |
12665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12667 | else | |
12668 | # Is the header compilable? | |
12669 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12670 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12671 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12672 | /* confdefs.h. */ |
12673 | _ACEOF | |
12674 | cat confdefs.h >>conftest.$ac_ext | |
12675 | cat >>conftest.$ac_ext <<_ACEOF | |
12676 | /* end confdefs.h. */ | |
12677 | $ac_includes_default | |
12678 | #include <$ac_header> | |
12679 | _ACEOF | |
12680 | rm -f conftest.$ac_objext | |
12681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12682 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12683 | ac_status=$? |
32ddf007 VS |
12684 | grep -v '^ *+' conftest.er1 >conftest.err |
12685 | rm -f conftest.er1 | |
12686 | cat conftest.err >&5 | |
e6cc62c6 VS |
12687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12688 | (exit $ac_status); } && | |
e1293dcf | 12689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12691 | (eval $ac_try) 2>&5 | |
12692 | ac_status=$? | |
12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12694 | (exit $ac_status); }; } && | |
12695 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12697 | (eval $ac_try) 2>&5 | |
12698 | ac_status=$? | |
12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12700 | (exit $ac_status); }; }; then | |
12701 | ac_header_compiler=yes | |
12702 | else | |
12703 | echo "$as_me: failed program was:" >&5 | |
12704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12705 | ||
12706 | ac_header_compiler=no | |
12707 | fi | |
32ddf007 | 12708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12709 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12710 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12711 | ||
12712 | # Is the header present? | |
12713 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12714 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12715 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12716 | /* confdefs.h. */ |
12717 | _ACEOF | |
12718 | cat confdefs.h >>conftest.$ac_ext | |
12719 | cat >>conftest.$ac_ext <<_ACEOF | |
12720 | /* end confdefs.h. */ | |
12721 | #include <$ac_header> | |
12722 | _ACEOF | |
12723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12725 | ac_status=$? | |
12726 | grep -v '^ *+' conftest.er1 >conftest.err | |
12727 | rm -f conftest.er1 | |
12728 | cat conftest.err >&5 | |
12729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12730 | (exit $ac_status); } >/dev/null; then | |
12731 | if test -s conftest.err; then | |
12732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12734 | else |
12735 | ac_cpp_err= | |
12736 | fi | |
12737 | else | |
12738 | ac_cpp_err=yes | |
12739 | fi | |
12740 | if test -z "$ac_cpp_err"; then | |
12741 | ac_header_preproc=yes | |
12742 | else | |
12743 | echo "$as_me: failed program was:" >&5 | |
12744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12745 | ||
12746 | ac_header_preproc=no | |
12747 | fi | |
12748 | rm -f conftest.err conftest.$ac_ext | |
12749 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12750 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12751 | ||
12752 | # So? What about this header? | |
32ddf007 VS |
12753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12754 | yes:no: ) | |
e6cc62c6 VS |
12755 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12756 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12758 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12759 | ac_header_preproc=yes | |
e6cc62c6 | 12760 | ;; |
32ddf007 | 12761 | no:yes:* ) |
e6cc62c6 VS |
12762 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12763 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12764 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12765 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12766 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12767 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12768 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12769 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12771 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12772 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12773 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12774 | ( |
12775 | cat <<\_ASBOX | |
32ddf007 VS |
12776 | ## ----------------------------------------- ## |
12777 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12778 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12779 | _ASBOX |
12780 | ) | | |
12781 | sed "s/^/$as_me: WARNING: /" >&2 | |
12782 | ;; | |
12783 | esac | |
12784 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12788 | else |
32ddf007 | 12789 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12790 | fi |
12791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12793 | ||
21d1c967 | 12794 | fi |
e6cc62c6 VS |
12795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12796 | cat >>confdefs.h <<_ACEOF | |
12797 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12798 | _ACEOF | |
12799 | ||
12800 | fi | |
12801 | ||
21d1c967 | 12802 | done |
4f14bcd8 | 12803 | |
5c6fa7d2 | 12804 | |
e6cc62c6 | 12805 | for ac_header in malloc.h |
21d1c967 | 12806 | do |
e6cc62c6 VS |
12807 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12809 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12813 | fi | |
12814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12816 | else | |
12817 | # Is the header compilable? | |
12818 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12819 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12820 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12821 | /* confdefs.h. */ |
12822 | _ACEOF | |
12823 | cat confdefs.h >>conftest.$ac_ext | |
12824 | cat >>conftest.$ac_ext <<_ACEOF | |
12825 | /* end confdefs.h. */ | |
12826 | $ac_includes_default | |
12827 | #include <$ac_header> | |
12828 | _ACEOF | |
12829 | rm -f conftest.$ac_objext | |
12830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12831 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12832 | ac_status=$? |
32ddf007 VS |
12833 | grep -v '^ *+' conftest.er1 >conftest.err |
12834 | rm -f conftest.er1 | |
12835 | cat conftest.err >&5 | |
e6cc62c6 VS |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12837 | (exit $ac_status); } && | |
e1293dcf | 12838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
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); }; } && | |
12844 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12846 | (eval $ac_try) 2>&5 | |
12847 | ac_status=$? | |
12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12849 | (exit $ac_status); }; }; then | |
12850 | ac_header_compiler=yes | |
12851 | else | |
12852 | echo "$as_me: failed program was:" >&5 | |
12853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12854 | ||
12855 | ac_header_compiler=no | |
12856 | fi | |
32ddf007 | 12857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12858 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12859 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12860 | ||
12861 | # Is the header present? | |
12862 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12863 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12864 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12865 | /* confdefs.h. */ |
12866 | _ACEOF | |
12867 | cat confdefs.h >>conftest.$ac_ext | |
12868 | cat >>conftest.$ac_ext <<_ACEOF | |
12869 | /* end confdefs.h. */ | |
12870 | #include <$ac_header> | |
12871 | _ACEOF | |
12872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12874 | ac_status=$? | |
12875 | grep -v '^ *+' conftest.er1 >conftest.err | |
12876 | rm -f conftest.er1 | |
12877 | cat conftest.err >&5 | |
12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12879 | (exit $ac_status); } >/dev/null; then | |
12880 | if test -s conftest.err; then | |
12881 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12883 | else |
12884 | ac_cpp_err= | |
12885 | fi | |
12886 | else | |
12887 | ac_cpp_err=yes | |
12888 | fi | |
12889 | if test -z "$ac_cpp_err"; then | |
12890 | ac_header_preproc=yes | |
12891 | else | |
12892 | echo "$as_me: failed program was:" >&5 | |
12893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12894 | ||
12895 | ac_header_preproc=no | |
12896 | fi | |
12897 | rm -f conftest.err conftest.$ac_ext | |
12898 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12899 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12900 | ||
12901 | # So? What about this header? | |
32ddf007 VS |
12902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12903 | yes:no: ) | |
e6cc62c6 VS |
12904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12908 | ac_header_preproc=yes | |
e6cc62c6 | 12909 | ;; |
32ddf007 | 12910 | no:yes:* ) |
e6cc62c6 VS |
12911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12922 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12923 | ( |
12924 | cat <<\_ASBOX | |
32ddf007 VS |
12925 | ## ----------------------------------------- ## |
12926 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12927 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12928 | _ASBOX |
12929 | ) | | |
12930 | sed "s/^/$as_me: WARNING: /" >&2 | |
12931 | ;; | |
12932 | esac | |
12933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12937 | else | |
32ddf007 | 12938 | eval "$as_ac_Header=\$ac_header_preproc" |
d4158b5d | 12939 | fi |
e6cc62c6 VS |
12940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12942 | ||
21d1c967 | 12943 | fi |
e6cc62c6 VS |
12944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12945 | cat >>confdefs.h <<_ACEOF | |
12946 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12947 | _ACEOF | |
12948 | ||
12949 | fi | |
12950 | ||
12951 | done | |
12952 | ||
12953 | ||
12954 | for ac_header in unistd.h | |
12955 | do | |
12956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12962 | fi | |
12963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12965 | else | |
12966 | # Is the header compilable? | |
12967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12969 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12970 | /* confdefs.h. */ |
12971 | _ACEOF | |
12972 | cat confdefs.h >>conftest.$ac_ext | |
12973 | cat >>conftest.$ac_ext <<_ACEOF | |
12974 | /* end confdefs.h. */ | |
12975 | $ac_includes_default | |
12976 | #include <$ac_header> | |
12977 | _ACEOF | |
12978 | rm -f conftest.$ac_objext | |
12979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12980 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12981 | ac_status=$? |
32ddf007 VS |
12982 | grep -v '^ *+' conftest.er1 >conftest.err |
12983 | rm -f conftest.er1 | |
12984 | cat conftest.err >&5 | |
e6cc62c6 VS |
12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12986 | (exit $ac_status); } && | |
e1293dcf | 12987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12989 | (eval $ac_try) 2>&5 | |
12990 | ac_status=$? | |
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12992 | (exit $ac_status); }; } && | |
12993 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12995 | (eval $ac_try) 2>&5 | |
12996 | ac_status=$? | |
12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12998 | (exit $ac_status); }; }; then | |
12999 | ac_header_compiler=yes | |
13000 | else | |
13001 | echo "$as_me: failed program was:" >&5 | |
13002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13003 | ||
13004 | ac_header_compiler=no | |
13005 | fi | |
32ddf007 | 13006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13008 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13009 | ||
13010 | # Is the header present? | |
13011 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13013 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13014 | /* confdefs.h. */ |
13015 | _ACEOF | |
13016 | cat confdefs.h >>conftest.$ac_ext | |
13017 | cat >>conftest.$ac_ext <<_ACEOF | |
13018 | /* end confdefs.h. */ | |
13019 | #include <$ac_header> | |
13020 | _ACEOF | |
13021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13023 | ac_status=$? | |
13024 | grep -v '^ *+' conftest.er1 >conftest.err | |
13025 | rm -f conftest.er1 | |
13026 | cat conftest.err >&5 | |
13027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13028 | (exit $ac_status); } >/dev/null; then | |
13029 | if test -s conftest.err; then | |
13030 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13032 | else |
13033 | ac_cpp_err= | |
13034 | fi | |
a0b9e27f | 13035 | else |
e6cc62c6 VS |
13036 | ac_cpp_err=yes |
13037 | fi | |
13038 | if test -z "$ac_cpp_err"; then | |
13039 | ac_header_preproc=yes | |
13040 | else | |
13041 | echo "$as_me: failed program was:" >&5 | |
13042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13043 | ||
13044 | ac_header_preproc=no | |
13045 | fi | |
13046 | rm -f conftest.err conftest.$ac_ext | |
13047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13048 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13049 | ||
13050 | # So? What about this header? | |
32ddf007 VS |
13051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13052 | yes:no: ) | |
e6cc62c6 VS |
13053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13057 | ac_header_preproc=yes | |
e6cc62c6 | 13058 | ;; |
32ddf007 | 13059 | no:yes:* ) |
e6cc62c6 VS |
13060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13071 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13072 | ( |
13073 | cat <<\_ASBOX | |
32ddf007 VS |
13074 | ## ----------------------------------------- ## |
13075 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13076 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13077 | _ASBOX |
13078 | ) | | |
13079 | sed "s/^/$as_me: WARNING: /" >&2 | |
13080 | ;; | |
13081 | esac | |
13082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13086 | else | |
32ddf007 | 13087 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13088 | fi |
13089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13091 | ||
13092 | fi | |
13093 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13094 | cat >>confdefs.h <<_ACEOF | |
13095 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13096 | _ACEOF | |
13097 | ||
d4158b5d | 13098 | fi |
e6cc62c6 | 13099 | |
21d1c967 | 13100 | done |
f6bcfd97 | 13101 | |
e6cc62c6 VS |
13102 | |
13103 | for ac_header in wchar.h | |
13104 | do | |
13105 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13106 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13107 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13111 | fi | |
13112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13114 | else | |
13115 | # Is the header compilable? | |
13116 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13117 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13118 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13119 | /* confdefs.h. */ |
13120 | _ACEOF | |
13121 | cat confdefs.h >>conftest.$ac_ext | |
13122 | cat >>conftest.$ac_ext <<_ACEOF | |
13123 | /* end confdefs.h. */ | |
13124 | $ac_includes_default | |
13125 | #include <$ac_header> | |
13126 | _ACEOF | |
13127 | rm -f conftest.$ac_objext | |
13128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13129 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13130 | ac_status=$? |
32ddf007 VS |
13131 | grep -v '^ *+' conftest.er1 >conftest.err |
13132 | rm -f conftest.er1 | |
13133 | cat conftest.err >&5 | |
e6cc62c6 VS |
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13135 | (exit $ac_status); } && | |
e1293dcf | 13136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13138 | (eval $ac_try) 2>&5 | |
13139 | ac_status=$? | |
13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13141 | (exit $ac_status); }; } && | |
13142 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13144 | (eval $ac_try) 2>&5 | |
13145 | ac_status=$? | |
13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13147 | (exit $ac_status); }; }; then | |
13148 | ac_header_compiler=yes | |
13149 | else | |
13150 | echo "$as_me: failed program was:" >&5 | |
13151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13152 | ||
13153 | ac_header_compiler=no | |
13154 | fi | |
32ddf007 | 13155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13156 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13157 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13158 | ||
13159 | # Is the header present? | |
13160 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13161 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13162 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13163 | /* confdefs.h. */ |
13164 | _ACEOF | |
13165 | cat confdefs.h >>conftest.$ac_ext | |
13166 | cat >>conftest.$ac_ext <<_ACEOF | |
13167 | /* end confdefs.h. */ | |
13168 | #include <$ac_header> | |
13169 | _ACEOF | |
13170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13172 | ac_status=$? | |
13173 | grep -v '^ *+' conftest.er1 >conftest.err | |
13174 | rm -f conftest.er1 | |
13175 | cat conftest.err >&5 | |
13176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13177 | (exit $ac_status); } >/dev/null; then | |
13178 | if test -s conftest.err; then | |
13179 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13180 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13181 | else |
13182 | ac_cpp_err= | |
13183 | fi | |
13184 | else | |
13185 | ac_cpp_err=yes | |
13186 | fi | |
13187 | if test -z "$ac_cpp_err"; then | |
13188 | ac_header_preproc=yes | |
13189 | else | |
13190 | echo "$as_me: failed program was:" >&5 | |
13191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13192 | ||
13193 | ac_header_preproc=no | |
13194 | fi | |
13195 | rm -f conftest.err conftest.$ac_ext | |
13196 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13197 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13198 | ||
13199 | # So? What about this header? | |
32ddf007 VS |
13200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13201 | yes:no: ) | |
e6cc62c6 VS |
13202 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13203 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13205 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13206 | ac_header_preproc=yes | |
e6cc62c6 | 13207 | ;; |
32ddf007 | 13208 | no:yes:* ) |
e6cc62c6 VS |
13209 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13210 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13211 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13212 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13213 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13214 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13215 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13216 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13218 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13219 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13220 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13221 | ( |
13222 | cat <<\_ASBOX | |
32ddf007 VS |
13223 | ## ----------------------------------------- ## |
13224 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13225 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13226 | _ASBOX |
13227 | ) | | |
13228 | sed "s/^/$as_me: WARNING: /" >&2 | |
13229 | ;; | |
13230 | esac | |
13231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13235 | else | |
32ddf007 | 13236 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13237 | fi |
13238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13240 | ||
90dd450c | 13241 | fi |
e6cc62c6 VS |
13242 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13243 | cat >>confdefs.h <<_ACEOF | |
13244 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13245 | _ACEOF | |
13246 | ||
13247 | fi | |
13248 | ||
13249 | done | |
90dd450c | 13250 | |
e6cc62c6 VS |
13251 | |
13252 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13253 | ||
13254 | for ac_header in wcstr.h | |
21d1c967 | 13255 | do |
e6cc62c6 VS |
13256 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13258 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13260 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13262 | fi | |
13263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13265 | else | |
13266 | # Is the header compilable? | |
13267 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13269 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13270 | /* confdefs.h. */ |
13271 | _ACEOF | |
13272 | cat confdefs.h >>conftest.$ac_ext | |
13273 | cat >>conftest.$ac_ext <<_ACEOF | |
13274 | /* end confdefs.h. */ | |
13275 | $ac_includes_default | |
13276 | #include <$ac_header> | |
13277 | _ACEOF | |
13278 | rm -f conftest.$ac_objext | |
13279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13280 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13281 | ac_status=$? |
32ddf007 VS |
13282 | grep -v '^ *+' conftest.er1 >conftest.err |
13283 | rm -f conftest.er1 | |
13284 | cat conftest.err >&5 | |
e6cc62c6 VS |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13286 | (exit $ac_status); } && | |
e1293dcf | 13287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13289 | (eval $ac_try) 2>&5 | |
13290 | ac_status=$? | |
13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13292 | (exit $ac_status); }; } && | |
13293 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13295 | (eval $ac_try) 2>&5 | |
13296 | ac_status=$? | |
13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13298 | (exit $ac_status); }; }; then | |
13299 | ac_header_compiler=yes | |
13300 | else | |
13301 | echo "$as_me: failed program was:" >&5 | |
13302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13303 | ||
13304 | ac_header_compiler=no | |
13305 | fi | |
32ddf007 | 13306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13309 | ||
13310 | # Is the header present? | |
13311 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13313 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13314 | /* confdefs.h. */ |
13315 | _ACEOF | |
13316 | cat confdefs.h >>conftest.$ac_ext | |
13317 | cat >>conftest.$ac_ext <<_ACEOF | |
13318 | /* end confdefs.h. */ | |
13319 | #include <$ac_header> | |
13320 | _ACEOF | |
13321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13323 | ac_status=$? | |
13324 | grep -v '^ *+' conftest.er1 >conftest.err | |
13325 | rm -f conftest.er1 | |
13326 | cat conftest.err >&5 | |
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13328 | (exit $ac_status); } >/dev/null; then | |
13329 | if test -s conftest.err; then | |
13330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13332 | else |
13333 | ac_cpp_err= | |
13334 | fi | |
13335 | else | |
13336 | ac_cpp_err=yes | |
13337 | fi | |
13338 | if test -z "$ac_cpp_err"; then | |
13339 | ac_header_preproc=yes | |
13340 | else | |
13341 | echo "$as_me: failed program was:" >&5 | |
13342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13343 | ||
13344 | ac_header_preproc=no | |
13345 | fi | |
13346 | rm -f conftest.err conftest.$ac_ext | |
13347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13349 | ||
13350 | # So? What about this header? | |
32ddf007 VS |
13351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13352 | yes:no: ) | |
e6cc62c6 VS |
13353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13357 | ac_header_preproc=yes | |
e6cc62c6 | 13358 | ;; |
32ddf007 | 13359 | no:yes:* ) |
e6cc62c6 VS |
13360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13372 | ( |
13373 | cat <<\_ASBOX | |
32ddf007 VS |
13374 | ## ----------------------------------------- ## |
13375 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13376 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13377 | _ASBOX |
13378 | ) | | |
13379 | sed "s/^/$as_me: WARNING: /" >&2 | |
13380 | ;; | |
13381 | esac | |
13382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13386 | else | |
32ddf007 | 13387 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13388 | fi |
e6cc62c6 VS |
13389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13391 | ||
4f14bcd8 | 13392 | fi |
e6cc62c6 VS |
13393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13394 | cat >>confdefs.h <<_ACEOF | |
13395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13396 | _ACEOF | |
13397 | ||
13398 | fi | |
13399 | ||
13400 | done | |
13401 | ||
13402 | fi | |
13403 | ||
13404 | ||
13405 | for ac_header in fnmatch.h | |
13406 | do | |
13407 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13413 | fi | |
13414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13416 | else | |
13417 | # Is the header compilable? | |
13418 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13419 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13420 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13421 | /* confdefs.h. */ |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
13426 | $ac_includes_default | |
13427 | #include <$ac_header> | |
13428 | _ACEOF | |
13429 | rm -f conftest.$ac_objext | |
13430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13431 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13432 | ac_status=$? |
32ddf007 VS |
13433 | grep -v '^ *+' conftest.er1 >conftest.err |
13434 | rm -f conftest.er1 | |
13435 | cat conftest.err >&5 | |
e6cc62c6 VS |
13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13437 | (exit $ac_status); } && | |
e1293dcf | 13438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13440 | (eval $ac_try) 2>&5 | |
13441 | ac_status=$? | |
13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13443 | (exit $ac_status); }; } && | |
13444 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13446 | (eval $ac_try) 2>&5 | |
13447 | ac_status=$? | |
13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13449 | (exit $ac_status); }; }; then | |
13450 | ac_header_compiler=yes | |
13451 | else | |
13452 | echo "$as_me: failed program was:" >&5 | |
13453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13454 | ||
13455 | ac_header_compiler=no | |
13456 | fi | |
32ddf007 | 13457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13459 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13460 | ||
13461 | # Is the header present? | |
13462 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13463 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13464 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13465 | /* confdefs.h. */ |
13466 | _ACEOF | |
13467 | cat confdefs.h >>conftest.$ac_ext | |
13468 | cat >>conftest.$ac_ext <<_ACEOF | |
13469 | /* end confdefs.h. */ | |
13470 | #include <$ac_header> | |
13471 | _ACEOF | |
13472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13474 | ac_status=$? | |
13475 | grep -v '^ *+' conftest.er1 >conftest.err | |
13476 | rm -f conftest.er1 | |
13477 | cat conftest.err >&5 | |
13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13479 | (exit $ac_status); } >/dev/null; then | |
13480 | if test -s conftest.err; then | |
13481 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13483 | else |
13484 | ac_cpp_err= | |
13485 | fi | |
13486 | else | |
13487 | ac_cpp_err=yes | |
13488 | fi | |
13489 | if test -z "$ac_cpp_err"; then | |
13490 | ac_header_preproc=yes | |
13491 | else | |
13492 | echo "$as_me: failed program was:" >&5 | |
13493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13494 | ||
13495 | ac_header_preproc=no | |
13496 | fi | |
13497 | rm -f conftest.err conftest.$ac_ext | |
13498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13499 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13500 | ||
13501 | # So? What about this header? | |
32ddf007 VS |
13502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13503 | yes:no: ) | |
e6cc62c6 VS |
13504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13505 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13508 | ac_header_preproc=yes | |
e6cc62c6 | 13509 | ;; |
32ddf007 | 13510 | no:yes:* ) |
e6cc62c6 VS |
13511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13513 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13514 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13517 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13518 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13520 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13522 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13523 | ( |
13524 | cat <<\_ASBOX | |
32ddf007 VS |
13525 | ## ----------------------------------------- ## |
13526 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13527 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13528 | _ASBOX |
13529 | ) | | |
13530 | sed "s/^/$as_me: WARNING: /" >&2 | |
13531 | ;; | |
13532 | esac | |
13533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13537 | else |
32ddf007 | 13538 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13539 | fi |
13540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13542 | ||
21d1c967 | 13543 | fi |
e6cc62c6 VS |
13544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13545 | cat >>confdefs.h <<_ACEOF | |
13546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13547 | _ACEOF | |
13548 | ||
13549 | fi | |
13550 | ||
21d1c967 | 13551 | done |
90dd450c | 13552 | |
5c6fa7d2 | 13553 | |
a0b9e27f | 13554 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13555 | |
13556 | for ac_func in fnmatch | |
21d1c967 | 13557 | do |
e6cc62c6 VS |
13558 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13559 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13560 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13561 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13563 | else | |
13564 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13565 | /* confdefs.h. */ |
13566 | _ACEOF | |
13567 | cat confdefs.h >>conftest.$ac_ext | |
13568 | cat >>conftest.$ac_ext <<_ACEOF | |
13569 | /* end confdefs.h. */ | |
32ddf007 VS |
13570 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13572 | #define $ac_func innocuous_$ac_func | |
13573 | ||
a0b9e27f | 13574 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13575 | which can conflict with char $ac_func (); below. |
13576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13577 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 13578 | |
e6cc62c6 VS |
13579 | #ifdef __STDC__ |
13580 | # include <limits.h> | |
13581 | #else | |
13582 | # include <assert.h> | |
13583 | #endif | |
32ddf007 VS |
13584 | |
13585 | #undef $ac_func | |
13586 | ||
a0b9e27f | 13587 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13588 | #ifdef __cplusplus |
13589 | extern "C" | |
13590 | { | |
13591 | #endif | |
a0b9e27f | 13592 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13593 | builtin and then its argument prototype would still apply. */ |
13594 | char $ac_func (); | |
a0b9e27f MB |
13595 | /* The GNU C library defines this for functions which it implements |
13596 | to always fail with ENOSYS. Some functions are actually named | |
13597 | something starting with __ and the normal name is an alias. */ | |
13598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13599 | choke me | |
13600 | #else | |
e6cc62c6 VS |
13601 | char (*f) () = $ac_func; |
13602 | #endif | |
13603 | #ifdef __cplusplus | |
13604 | } | |
a0b9e27f MB |
13605 | #endif |
13606 | ||
e6cc62c6 VS |
13607 | int |
13608 | main () | |
13609 | { | |
13610 | return f != $ac_func; | |
13611 | ; | |
13612 | return 0; | |
13613 | } | |
13614 | _ACEOF | |
13615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 13617 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 13618 | ac_status=$? |
32ddf007 VS |
13619 | grep -v '^ *+' conftest.er1 >conftest.err |
13620 | rm -f conftest.er1 | |
13621 | cat conftest.err >&5 | |
e6cc62c6 VS |
13622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13623 | (exit $ac_status); } && | |
e1293dcf | 13624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13626 | (eval $ac_try) 2>&5 | |
13627 | ac_status=$? | |
13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13629 | (exit $ac_status); }; } && | |
13630 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13632 | (eval $ac_try) 2>&5 | |
13633 | ac_status=$? | |
13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13635 | (exit $ac_status); }; }; then | |
13636 | eval "$as_ac_var=yes" | |
13637 | else | |
13638 | echo "$as_me: failed program was:" >&5 | |
13639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13640 | ||
13641 | eval "$as_ac_var=no" | |
13642 | fi | |
32ddf007 VS |
13643 | rm -f conftest.err conftest.$ac_objext \ |
13644 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
13645 | fi |
13646 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13647 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13648 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13649 | cat >>confdefs.h <<_ACEOF | |
13650 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13651 | _ACEOF | |
32832908 | 13652 | |
21d1c967 GD |
13653 | fi |
13654 | done | |
90dd450c | 13655 | |
a0b9e27f | 13656 | fi |
90dd450c | 13657 | |
e6cc62c6 VS |
13658 | |
13659 | for ac_header in langinfo.h | |
21d1c967 | 13660 | do |
e6cc62c6 VS |
13661 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13667 | fi | |
13668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13670 | else | |
13671 | # Is the header compilable? | |
13672 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13674 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13675 | /* confdefs.h. */ |
13676 | _ACEOF | |
13677 | cat confdefs.h >>conftest.$ac_ext | |
13678 | cat >>conftest.$ac_ext <<_ACEOF | |
13679 | /* end confdefs.h. */ | |
13680 | $ac_includes_default | |
13681 | #include <$ac_header> | |
13682 | _ACEOF | |
13683 | rm -f conftest.$ac_objext | |
13684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13685 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13686 | ac_status=$? |
32ddf007 VS |
13687 | grep -v '^ *+' conftest.er1 >conftest.err |
13688 | rm -f conftest.er1 | |
13689 | cat conftest.err >&5 | |
e6cc62c6 VS |
13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13691 | (exit $ac_status); } && | |
e1293dcf | 13692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13694 | (eval $ac_try) 2>&5 | |
13695 | ac_status=$? | |
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13697 | (exit $ac_status); }; } && | |
13698 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13700 | (eval $ac_try) 2>&5 | |
13701 | ac_status=$? | |
13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13703 | (exit $ac_status); }; }; then | |
13704 | ac_header_compiler=yes | |
13705 | else | |
13706 | echo "$as_me: failed program was:" >&5 | |
13707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13708 | ||
13709 | ac_header_compiler=no | |
13710 | fi | |
32ddf007 | 13711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13712 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13713 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13714 | ||
13715 | # Is the header present? | |
13716 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13717 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13718 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13719 | /* confdefs.h. */ |
13720 | _ACEOF | |
13721 | cat confdefs.h >>conftest.$ac_ext | |
13722 | cat >>conftest.$ac_ext <<_ACEOF | |
13723 | /* end confdefs.h. */ | |
13724 | #include <$ac_header> | |
13725 | _ACEOF | |
13726 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13727 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13728 | ac_status=$? | |
13729 | grep -v '^ *+' conftest.er1 >conftest.err | |
13730 | rm -f conftest.er1 | |
13731 | cat conftest.err >&5 | |
13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13733 | (exit $ac_status); } >/dev/null; then | |
13734 | if test -s conftest.err; then | |
13735 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13736 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13737 | else |
13738 | ac_cpp_err= | |
13739 | fi | |
13740 | else | |
13741 | ac_cpp_err=yes | |
13742 | fi | |
13743 | if test -z "$ac_cpp_err"; then | |
13744 | ac_header_preproc=yes | |
13745 | else | |
13746 | echo "$as_me: failed program was:" >&5 | |
13747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13748 | ||
13749 | ac_header_preproc=no | |
13750 | fi | |
13751 | rm -f conftest.err conftest.$ac_ext | |
13752 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13753 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13754 | ||
13755 | # So? What about this header? | |
32ddf007 VS |
13756 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13757 | yes:no: ) | |
e6cc62c6 VS |
13758 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13759 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13761 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13762 | ac_header_preproc=yes | |
e6cc62c6 | 13763 | ;; |
32ddf007 | 13764 | no:yes:* ) |
e6cc62c6 VS |
13765 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13766 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13767 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13768 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13769 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13770 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13771 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13772 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13773 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13774 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13775 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13776 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13777 | ( |
13778 | cat <<\_ASBOX | |
32ddf007 VS |
13779 | ## ----------------------------------------- ## |
13780 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13781 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13782 | _ASBOX |
13783 | ) | | |
13784 | sed "s/^/$as_me: WARNING: /" >&2 | |
13785 | ;; | |
13786 | esac | |
13787 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13791 | else | |
32ddf007 | 13792 | eval "$as_ac_Header=\$ac_header_preproc" |
90dd450c | 13793 | fi |
e6cc62c6 VS |
13794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13796 | ||
4f14bcd8 | 13797 | fi |
e6cc62c6 VS |
13798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13799 | cat >>confdefs.h <<_ACEOF | |
13800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13801 | _ACEOF | |
13802 | ||
21d1c967 | 13803 | fi |
e6cc62c6 | 13804 | |
21d1c967 | 13805 | done |
3a922bb4 | 13806 | |
8284b0c5 | 13807 | |
4f5a7f74 VZ |
13808 | case "${host}" in |
13809 | *-pc-os2_emx | *-pc-os2-emx ) | |
13810 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13811 | LIBS="$LIBS -lintl" | |
13812 | fi | |
13813 | ;; | |
13814 | esac | |
1542ea39 | 13815 | |
a0b9e27f | 13816 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13817 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13818 | |
eb69fda5 | 13819 | for ac_header in X11/Xlib.h |
21d1c967 | 13820 | do |
e6cc62c6 VS |
13821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13827 | fi | |
13828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13830 | else | |
13831 | # Is the header compilable? | |
13832 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13833 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13834 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13835 | /* confdefs.h. */ |
13836 | _ACEOF | |
13837 | cat confdefs.h >>conftest.$ac_ext | |
13838 | cat >>conftest.$ac_ext <<_ACEOF | |
13839 | /* end confdefs.h. */ | |
13840 | $ac_includes_default | |
13841 | #include <$ac_header> | |
13842 | _ACEOF | |
13843 | rm -f conftest.$ac_objext | |
13844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13845 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13846 | ac_status=$? |
32ddf007 VS |
13847 | grep -v '^ *+' conftest.er1 >conftest.err |
13848 | rm -f conftest.er1 | |
13849 | cat conftest.err >&5 | |
e6cc62c6 VS |
13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13851 | (exit $ac_status); } && | |
e1293dcf | 13852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13854 | (eval $ac_try) 2>&5 | |
13855 | ac_status=$? | |
13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13857 | (exit $ac_status); }; } && | |
13858 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13860 | (eval $ac_try) 2>&5 | |
13861 | ac_status=$? | |
13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13863 | (exit $ac_status); }; }; then | |
13864 | ac_header_compiler=yes | |
13865 | else | |
13866 | echo "$as_me: failed program was:" >&5 | |
13867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13868 | ||
13869 | ac_header_compiler=no | |
13870 | fi | |
32ddf007 | 13871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13873 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13874 | ||
13875 | # Is the header present? | |
13876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13878 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13879 | /* confdefs.h. */ |
13880 | _ACEOF | |
13881 | cat confdefs.h >>conftest.$ac_ext | |
13882 | cat >>conftest.$ac_ext <<_ACEOF | |
13883 | /* end confdefs.h. */ | |
13884 | #include <$ac_header> | |
13885 | _ACEOF | |
13886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13888 | ac_status=$? | |
13889 | grep -v '^ *+' conftest.er1 >conftest.err | |
13890 | rm -f conftest.er1 | |
13891 | cat conftest.err >&5 | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); } >/dev/null; then | |
13894 | if test -s conftest.err; then | |
13895 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13897 | else |
13898 | ac_cpp_err= | |
13899 | fi | |
13900 | else | |
13901 | ac_cpp_err=yes | |
13902 | fi | |
13903 | if test -z "$ac_cpp_err"; then | |
13904 | ac_header_preproc=yes | |
13905 | else | |
13906 | echo "$as_me: failed program was:" >&5 | |
13907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13908 | ||
13909 | ac_header_preproc=no | |
13910 | fi | |
13911 | rm -f conftest.err conftest.$ac_ext | |
13912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13913 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13914 | ||
13915 | # So? What about this header? | |
32ddf007 VS |
13916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13917 | yes:no: ) | |
e6cc62c6 VS |
13918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13922 | ac_header_preproc=yes | |
e6cc62c6 | 13923 | ;; |
32ddf007 | 13924 | no:yes:* ) |
e6cc62c6 VS |
13925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13937 | ( |
13938 | cat <<\_ASBOX | |
32ddf007 VS |
13939 | ## ----------------------------------------- ## |
13940 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13941 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13942 | _ASBOX |
13943 | ) | | |
13944 | sed "s/^/$as_me: WARNING: /" >&2 | |
13945 | ;; | |
13946 | esac | |
13947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13951 | else | |
32ddf007 | 13952 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13953 | fi |
e6cc62c6 VS |
13954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13956 | ||
90dd450c | 13957 | fi |
e6cc62c6 VS |
13958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13959 | cat >>confdefs.h <<_ACEOF | |
13960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13961 | _ACEOF | |
13962 | ||
247f5006 | 13963 | fi |
e6cc62c6 | 13964 | |
eb69fda5 VS |
13965 | done |
13966 | ||
13967 | ||
13968 | for ac_header in X11/XKBlib.h | |
13969 | do | |
13970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13971 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13972 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13975 | else | |
13976 | cat >conftest.$ac_ext <<_ACEOF | |
eb69fda5 VS |
13977 | /* confdefs.h. */ |
13978 | _ACEOF | |
13979 | cat confdefs.h >>conftest.$ac_ext | |
13980 | cat >>conftest.$ac_ext <<_ACEOF | |
13981 | /* end confdefs.h. */ | |
13982 | ||
13983 | #if HAVE_X11_XLIB_H | |
13984 | #include <X11/Xlib.h> | |
13985 | #endif | |
13986 | ||
13987 | ||
13988 | #include <$ac_header> | |
13989 | _ACEOF | |
13990 | rm -f conftest.$ac_objext | |
13991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13992 | (eval $ac_compile) 2>conftest.er1 |
eb69fda5 | 13993 | ac_status=$? |
32ddf007 VS |
13994 | grep -v '^ *+' conftest.er1 >conftest.err |
13995 | rm -f conftest.er1 | |
13996 | cat conftest.err >&5 | |
eb69fda5 VS |
13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13998 | (exit $ac_status); } && | |
e1293dcf | 13999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14001 | (eval $ac_try) 2>&5 | |
14002 | ac_status=$? | |
14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14004 | (exit $ac_status); }; } && | |
14005 | { ac_try='test -s conftest.$ac_objext' | |
eb69fda5 VS |
14006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14007 | (eval $ac_try) 2>&5 | |
14008 | ac_status=$? | |
14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14010 | (exit $ac_status); }; }; then | |
14011 | eval "$as_ac_Header=yes" | |
14012 | else | |
14013 | echo "$as_me: failed program was:" >&5 | |
14014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14015 | ||
14016 | eval "$as_ac_Header=no" | |
14017 | fi | |
32ddf007 | 14018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
14019 | fi |
14020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14021 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14023 | cat >>confdefs.h <<_ACEOF | |
14024 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14025 | _ACEOF | |
14026 | ||
14027 | fi | |
14028 | ||
247f5006 VZ |
14029 | done |
14030 | ||
a0b9e27f MB |
14031 | fi |
14032 | fi | |
247f5006 | 14033 | |
247f5006 | 14034 | |
e6cc62c6 VS |
14035 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
14036 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14037 | if test "${ac_cv_c_const+set}" = set; then | |
14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14039 | else | |
14040 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14041 | /* confdefs.h. */ |
14042 | _ACEOF | |
14043 | cat confdefs.h >>conftest.$ac_ext | |
14044 | cat >>conftest.$ac_ext <<_ACEOF | |
14045 | /* end confdefs.h. */ | |
14046 | ||
14047 | int | |
14048 | main () | |
14049 | { | |
14050 | /* FIXME: Include the comments suggested by Paul. */ | |
14051 | #ifndef __cplusplus | |
14052 | /* Ultrix mips cc rejects this. */ | |
14053 | typedef int charset[2]; | |
14054 | const charset x; | |
14055 | /* SunOS 4.1.1 cc rejects this. */ | |
14056 | char const *const *ccp; | |
14057 | char **p; | |
14058 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14059 | struct point {int x, y;}; | |
14060 | static struct point const zero = {0,0}; | |
14061 | /* AIX XL C 1.02.0.0 rejects this. | |
14062 | It does not let you subtract one const X* pointer from another in | |
14063 | an arm of an if-expression whose if-part is not a constant | |
14064 | expression */ | |
14065 | const char *g = "string"; | |
14066 | ccp = &g + (g ? g-g : 0); | |
14067 | /* HPUX 7.0 cc rejects these. */ | |
14068 | ++ccp; | |
14069 | p = (char**) ccp; | |
14070 | ccp = (char const *const *) p; | |
14071 | { /* SCO 3.2v4 cc rejects this. */ | |
14072 | char *t; | |
14073 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14074 | ||
14075 | *t++ = 0; | |
14076 | } | |
14077 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14078 | int x[] = {25, 17}; | |
14079 | const int *foo = &x[0]; | |
14080 | ++foo; | |
14081 | } | |
14082 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14083 | typedef const int *iptr; | |
14084 | iptr p = 0; | |
14085 | ++p; | |
14086 | } | |
14087 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14088 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14089 | struct s { int j; const int *ap[3]; }; | |
14090 | struct s *b; b->j = 5; | |
14091 | } | |
14092 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14093 | const int foo = 10; | |
14094 | } | |
14095 | #endif | |
14096 | ||
14097 | ; | |
14098 | return 0; | |
14099 | } | |
14100 | _ACEOF | |
14101 | rm -f conftest.$ac_objext | |
14102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14103 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14104 | ac_status=$? |
32ddf007 VS |
14105 | grep -v '^ *+' conftest.er1 >conftest.err |
14106 | rm -f conftest.er1 | |
14107 | cat conftest.err >&5 | |
e6cc62c6 VS |
14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14109 | (exit $ac_status); } && | |
e1293dcf | 14110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14112 | (eval $ac_try) 2>&5 | |
14113 | ac_status=$? | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); }; } && | |
14116 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14118 | (eval $ac_try) 2>&5 | |
14119 | ac_status=$? | |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14121 | (exit $ac_status); }; }; then | |
a0b9e27f | 14122 | ac_cv_c_const=yes |
247f5006 | 14123 | else |
e6cc62c6 VS |
14124 | echo "$as_me: failed program was:" >&5 |
14125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14126 | ||
14127 | ac_cv_c_const=no | |
247f5006 | 14128 | fi |
32ddf007 | 14129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 14130 | fi |
e6cc62c6 VS |
14131 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14132 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 14133 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
14134 | |
14135 | cat >>confdefs.h <<\_ACEOF | |
14136 | #define const | |
14137 | _ACEOF | |
10f2d63a | 14138 | |
90dd450c | 14139 | fi |
81809c07 | 14140 | |
e6cc62c6 VS |
14141 | echo "$as_me:$LINENO: checking for inline" >&5 |
14142 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14143 | if test "${ac_cv_c_inline+set}" = set; then | |
14144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 14145 | else |
a0b9e27f MB |
14146 | ac_cv_c_inline=no |
14147 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 14148 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
14149 | /* confdefs.h. */ |
14150 | _ACEOF | |
14151 | cat confdefs.h >>conftest.$ac_ext | |
14152 | cat >>conftest.$ac_ext <<_ACEOF | |
14153 | /* end confdefs.h. */ | |
14154 | #ifndef __cplusplus | |
14155 | typedef int foo_t; | |
14156 | static $ac_kw foo_t static_foo () {return 0; } | |
14157 | $ac_kw foo_t foo () {return 0; } | |
14158 | #endif | |
a0b9e27f | 14159 | |
e6cc62c6 VS |
14160 | _ACEOF |
14161 | rm -f conftest.$ac_objext | |
14162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14163 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14164 | ac_status=$? |
32ddf007 VS |
14165 | grep -v '^ *+' conftest.er1 >conftest.err |
14166 | rm -f conftest.er1 | |
14167 | cat conftest.err >&5 | |
e6cc62c6 VS |
14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14169 | (exit $ac_status); } && | |
e1293dcf | 14170 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14172 | (eval $ac_try) 2>&5 | |
14173 | ac_status=$? | |
14174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14175 | (exit $ac_status); }; } && | |
14176 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14178 | (eval $ac_try) 2>&5 | |
14179 | ac_status=$? | |
14180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14181 | (exit $ac_status); }; }; then | |
a0b9e27f | 14182 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 14183 | else |
e6cc62c6 VS |
14184 | echo "$as_me: failed program was:" >&5 |
14185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14186 | ||
247f5006 | 14187 | fi |
32ddf007 | 14188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 14189 | done |
247f5006 VZ |
14190 | |
14191 | fi | |
e6cc62c6 VS |
14192 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14193 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
32ddf007 VS |
14194 | |
14195 | ||
e6cc62c6 | 14196 | case $ac_cv_c_inline in |
a0b9e27f | 14197 | inline | yes) ;; |
32ddf007 VS |
14198 | *) |
14199 | case $ac_cv_c_inline in | |
14200 | no) ac_val=;; | |
14201 | *) ac_val=$ac_cv_c_inline;; | |
14202 | esac | |
14203 | cat >>confdefs.h <<_ACEOF | |
14204 | #ifndef __cplusplus | |
14205 | #define inline $ac_val | |
14206 | #endif | |
0f87e84c | 14207 | _ACEOF |
32ddf007 | 14208 | ;; |
a0b9e27f | 14209 | esac |
247f5006 | 14210 | |
247f5006 | 14211 | |
e6cc62c6 VS |
14212 | echo "$as_me:$LINENO: checking for char" >&5 |
14213 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14214 | if test "${ac_cv_type_char+set}" = set; then | |
14215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14216 | else | |
14217 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14218 | /* confdefs.h. */ |
14219 | _ACEOF | |
14220 | cat confdefs.h >>conftest.$ac_ext | |
14221 | cat >>conftest.$ac_ext <<_ACEOF | |
14222 | /* end confdefs.h. */ | |
14223 | $ac_includes_default | |
14224 | int | |
14225 | main () | |
14226 | { | |
14227 | if ((char *) 0) | |
14228 | return 0; | |
14229 | if (sizeof (char)) | |
14230 | return 0; | |
14231 | ; | |
14232 | return 0; | |
14233 | } | |
14234 | _ACEOF | |
14235 | rm -f conftest.$ac_objext | |
14236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14237 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14238 | ac_status=$? |
32ddf007 VS |
14239 | grep -v '^ *+' conftest.er1 >conftest.err |
14240 | rm -f conftest.er1 | |
14241 | cat conftest.err >&5 | |
e6cc62c6 VS |
14242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14243 | (exit $ac_status); } && | |
e1293dcf | 14244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14246 | (eval $ac_try) 2>&5 | |
14247 | ac_status=$? | |
14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14249 | (exit $ac_status); }; } && | |
14250 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14252 | (eval $ac_try) 2>&5 | |
14253 | ac_status=$? | |
14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14255 | (exit $ac_status); }; }; then | |
14256 | ac_cv_type_char=yes | |
14257 | else | |
14258 | echo "$as_me: failed program was:" >&5 | |
14259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14260 | ||
14261 | ac_cv_type_char=no | |
14262 | fi | |
32ddf007 | 14263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14264 | fi |
14265 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14266 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14267 | ||
14268 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14269 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14270 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14272 | else | |
14273 | if test "$ac_cv_type_char" = yes; then | |
14274 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14275 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14276 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14277 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 14278 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
14279 | # Depending upon the size, compute the lo and hi bounds. |
14280 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14281 | /* confdefs.h. */ |
14282 | _ACEOF | |
14283 | cat confdefs.h >>conftest.$ac_ext | |
14284 | cat >>conftest.$ac_ext <<_ACEOF | |
14285 | /* end confdefs.h. */ | |
14286 | $ac_includes_default | |
14287 | int | |
14288 | main () | |
14289 | { | |
14290 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14291 | test_array [0] = 0 | |
14292 | ||
14293 | ; | |
14294 | return 0; | |
14295 | } | |
14296 | _ACEOF | |
14297 | rm -f conftest.$ac_objext | |
14298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14299 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14300 | ac_status=$? |
32ddf007 VS |
14301 | grep -v '^ *+' conftest.er1 >conftest.err |
14302 | rm -f conftest.er1 | |
14303 | cat conftest.err >&5 | |
e6cc62c6 VS |
14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14305 | (exit $ac_status); } && | |
e1293dcf | 14306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14308 | (eval $ac_try) 2>&5 | |
14309 | ac_status=$? | |
14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14311 | (exit $ac_status); }; } && | |
14312 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14314 | (eval $ac_try) 2>&5 | |
14315 | ac_status=$? | |
14316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14317 | (exit $ac_status); }; }; then | |
14318 | ac_lo=0 ac_mid=0 | |
14319 | while :; do | |
14320 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14321 | /* confdefs.h. */ |
14322 | _ACEOF | |
14323 | cat confdefs.h >>conftest.$ac_ext | |
14324 | cat >>conftest.$ac_ext <<_ACEOF | |
14325 | /* end confdefs.h. */ | |
14326 | $ac_includes_default | |
14327 | int | |
14328 | main () | |
14329 | { | |
14330 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14331 | test_array [0] = 0 | |
14332 | ||
14333 | ; | |
14334 | return 0; | |
14335 | } | |
14336 | _ACEOF | |
14337 | rm -f conftest.$ac_objext | |
14338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14339 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14340 | ac_status=$? |
32ddf007 VS |
14341 | grep -v '^ *+' conftest.er1 >conftest.err |
14342 | rm -f conftest.er1 | |
14343 | cat conftest.err >&5 | |
e6cc62c6 VS |
14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14345 | (exit $ac_status); } && | |
e1293dcf | 14346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14348 | (eval $ac_try) 2>&5 | |
14349 | ac_status=$? | |
14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14351 | (exit $ac_status); }; } && | |
14352 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14354 | (eval $ac_try) 2>&5 | |
14355 | ac_status=$? | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); }; }; then | |
14358 | ac_hi=$ac_mid; break | |
14359 | else | |
14360 | echo "$as_me: failed program was:" >&5 | |
14361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14362 | ||
14363 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14364 | if test $ac_lo -le $ac_mid; then |
14365 | ac_lo= ac_hi= | |
14366 | break | |
14367 | fi | |
14368 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 14369 | fi |
32ddf007 | 14370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14371 | done |
a0b9e27f | 14372 | else |
e6cc62c6 VS |
14373 | echo "$as_me: failed program was:" >&5 |
14374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14375 | ||
14376 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14377 | /* confdefs.h. */ |
14378 | _ACEOF | |
14379 | cat confdefs.h >>conftest.$ac_ext | |
14380 | cat >>conftest.$ac_ext <<_ACEOF | |
14381 | /* end confdefs.h. */ | |
14382 | $ac_includes_default | |
14383 | int | |
14384 | main () | |
14385 | { | |
14386 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14387 | test_array [0] = 0 | |
14388 | ||
14389 | ; | |
14390 | return 0; | |
14391 | } | |
14392 | _ACEOF | |
14393 | rm -f conftest.$ac_objext | |
14394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14395 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14396 | ac_status=$? |
32ddf007 VS |
14397 | grep -v '^ *+' conftest.er1 >conftest.err |
14398 | rm -f conftest.er1 | |
14399 | cat conftest.err >&5 | |
e6cc62c6 VS |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14401 | (exit $ac_status); } && | |
e1293dcf | 14402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
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); }; } && | |
14408 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14410 | (eval $ac_try) 2>&5 | |
14411 | ac_status=$? | |
14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14413 | (exit $ac_status); }; }; then | |
14414 | ac_hi=-1 ac_mid=-1 | |
14415 | while :; do | |
14416 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14417 | /* confdefs.h. */ |
14418 | _ACEOF | |
14419 | cat confdefs.h >>conftest.$ac_ext | |
14420 | cat >>conftest.$ac_ext <<_ACEOF | |
14421 | /* end confdefs.h. */ | |
14422 | $ac_includes_default | |
14423 | int | |
14424 | main () | |
14425 | { | |
14426 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14427 | test_array [0] = 0 | |
14428 | ||
14429 | ; | |
14430 | return 0; | |
14431 | } | |
14432 | _ACEOF | |
14433 | rm -f conftest.$ac_objext | |
14434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14435 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14436 | ac_status=$? |
32ddf007 VS |
14437 | grep -v '^ *+' conftest.er1 >conftest.err |
14438 | rm -f conftest.er1 | |
14439 | cat conftest.err >&5 | |
e6cc62c6 VS |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14441 | (exit $ac_status); } && | |
e1293dcf | 14442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14444 | (eval $ac_try) 2>&5 | |
14445 | ac_status=$? | |
14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14447 | (exit $ac_status); }; } && | |
14448 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14450 | (eval $ac_try) 2>&5 | |
14451 | ac_status=$? | |
14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 | (exit $ac_status); }; }; then | |
14454 | ac_lo=$ac_mid; break | |
14455 | else | |
14456 | echo "$as_me: failed program was:" >&5 | |
14457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14458 | ||
14459 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14460 | if test $ac_mid -le $ac_hi; then |
14461 | ac_lo= ac_hi= | |
14462 | break | |
14463 | fi | |
14464 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14465 | fi |
32ddf007 | 14466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14467 | done |
14468 | else | |
14469 | echo "$as_me: failed program was:" >&5 | |
14470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14471 | ||
14472 | ac_lo= ac_hi= | |
14473 | fi | |
32ddf007 | 14474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14475 | fi |
32ddf007 | 14476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14477 | # Binary search between lo and hi bounds. |
14478 | while test "x$ac_lo" != "x$ac_hi"; do | |
14479 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14480 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14481 | /* confdefs.h. */ |
14482 | _ACEOF | |
14483 | cat confdefs.h >>conftest.$ac_ext | |
14484 | cat >>conftest.$ac_ext <<_ACEOF | |
14485 | /* end confdefs.h. */ | |
14486 | $ac_includes_default | |
14487 | int | |
14488 | main () | |
14489 | { | |
14490 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14491 | test_array [0] = 0 | |
14492 | ||
14493 | ; | |
14494 | return 0; | |
14495 | } | |
14496 | _ACEOF | |
14497 | rm -f conftest.$ac_objext | |
14498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14499 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14500 | ac_status=$? |
32ddf007 VS |
14501 | grep -v '^ *+' conftest.er1 >conftest.err |
14502 | rm -f conftest.er1 | |
14503 | cat conftest.err >&5 | |
e6cc62c6 VS |
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14505 | (exit $ac_status); } && | |
e1293dcf | 14506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14508 | (eval $ac_try) 2>&5 | |
14509 | ac_status=$? | |
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); }; } && | |
14512 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14514 | (eval $ac_try) 2>&5 | |
14515 | ac_status=$? | |
14516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14517 | (exit $ac_status); }; }; then | |
14518 | ac_hi=$ac_mid | |
14519 | else | |
14520 | echo "$as_me: failed program was:" >&5 | |
14521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14522 | ||
14523 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14524 | fi | |
32ddf007 | 14525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14526 | done |
14527 | case $ac_lo in | |
14528 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14529 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14530 | See \`config.log' for more details." >&5 | |
14531 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14532 | See \`config.log' for more details." >&2;} | |
14533 | { (exit 1); exit 1; }; } ;; | |
14534 | esac | |
14535 | else | |
14536 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
14537 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14538 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
14539 | { (exit 1); exit 1; }; } |
14540 | else | |
14541 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14542 | /* confdefs.h. */ |
14543 | _ACEOF | |
14544 | cat confdefs.h >>conftest.$ac_ext | |
14545 | cat >>conftest.$ac_ext <<_ACEOF | |
14546 | /* end confdefs.h. */ | |
14547 | $ac_includes_default | |
14548 | long longval () { return (long) (sizeof (char)); } | |
14549 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14550 | #include <stdio.h> |
e6cc62c6 VS |
14551 | #include <stdlib.h> |
14552 | int | |
14553 | main () | |
247f5006 | 14554 | { |
e6cc62c6 VS |
14555 | |
14556 | FILE *f = fopen ("conftest.val", "w"); | |
14557 | if (! f) | |
14558 | exit (1); | |
14559 | if (((long) (sizeof (char))) < 0) | |
14560 | { | |
14561 | long i = longval (); | |
14562 | if (i != ((long) (sizeof (char)))) | |
14563 | exit (1); | |
14564 | fprintf (f, "%ld\n", i); | |
14565 | } | |
14566 | else | |
14567 | { | |
14568 | unsigned long i = ulongval (); | |
14569 | if (i != ((long) (sizeof (char)))) | |
14570 | exit (1); | |
14571 | fprintf (f, "%lu\n", i); | |
14572 | } | |
14573 | exit (ferror (f) || fclose (f) != 0); | |
14574 | ||
14575 | ; | |
14576 | return 0; | |
52127426 | 14577 | } |
e6cc62c6 VS |
14578 | _ACEOF |
14579 | rm -f conftest$ac_exeext | |
14580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14581 | (eval $ac_link) 2>&5 | |
14582 | ac_status=$? | |
14583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14586 | (eval $ac_try) 2>&5 | |
14587 | ac_status=$? | |
14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14589 | (exit $ac_status); }; }; then | |
14590 | ac_cv_sizeof_char=`cat conftest.val` | |
14591 | else | |
14592 | echo "$as_me: program exited with status $ac_status" >&5 | |
14593 | echo "$as_me: failed program was:" >&5 | |
14594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14595 | ||
14596 | ( exit $ac_status ) | |
14597 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14598 | See \`config.log' for more details." >&5 | |
14599 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14600 | See \`config.log' for more details." >&2;} | |
14601 | { (exit 1); exit 1; }; } | |
14602 | fi | |
32ddf007 | 14603 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14604 | fi |
14605 | fi | |
14606 | rm -f conftest.val | |
247f5006 | 14607 | else |
a0b9e27f | 14608 | ac_cv_sizeof_char=0 |
247f5006 | 14609 | fi |
247f5006 | 14610 | fi |
e6cc62c6 VS |
14611 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14612 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14613 | cat >>confdefs.h <<_ACEOF | |
14614 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14615 | _ACEOF | |
14616 | ||
14617 | ||
14618 | echo "$as_me:$LINENO: checking for short" >&5 | |
14619 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14620 | if test "${ac_cv_type_short+set}" = set; then | |
14621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14622 | else | |
14623 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14624 | /* confdefs.h. */ |
14625 | _ACEOF | |
14626 | cat confdefs.h >>conftest.$ac_ext | |
14627 | cat >>conftest.$ac_ext <<_ACEOF | |
14628 | /* end confdefs.h. */ | |
14629 | $ac_includes_default | |
14630 | int | |
14631 | main () | |
14632 | { | |
14633 | if ((short *) 0) | |
14634 | return 0; | |
14635 | if (sizeof (short)) | |
14636 | return 0; | |
14637 | ; | |
14638 | return 0; | |
14639 | } | |
14640 | _ACEOF | |
14641 | rm -f conftest.$ac_objext | |
14642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14643 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14644 | ac_status=$? |
32ddf007 VS |
14645 | grep -v '^ *+' conftest.er1 >conftest.err |
14646 | rm -f conftest.er1 | |
14647 | cat conftest.err >&5 | |
e6cc62c6 VS |
14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14649 | (exit $ac_status); } && | |
e1293dcf | 14650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14652 | (eval $ac_try) 2>&5 | |
14653 | ac_status=$? | |
14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14655 | (exit $ac_status); }; } && | |
14656 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
14662 | ac_cv_type_short=yes | |
14663 | else | |
14664 | echo "$as_me: failed program was:" >&5 | |
14665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14666 | ||
14667 | ac_cv_type_short=no | |
14668 | fi | |
32ddf007 | 14669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14670 | fi |
14671 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14672 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14673 | ||
14674 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14675 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14676 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14678 | else | |
14679 | if test "$ac_cv_type_short" = yes; then | |
14680 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14683 | # This bug is HP SR number 8606223364. | |
14684 | if test "$cross_compiling" = yes; then | |
14685 | # Depending upon the size, compute the lo and hi bounds. | |
14686 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14687 | /* confdefs.h. */ |
14688 | _ACEOF | |
14689 | cat confdefs.h >>conftest.$ac_ext | |
14690 | cat >>conftest.$ac_ext <<_ACEOF | |
14691 | /* end confdefs.h. */ | |
14692 | $ac_includes_default | |
14693 | int | |
14694 | main () | |
14695 | { | |
14696 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14697 | test_array [0] = 0 | |
247f5006 | 14698 | |
e6cc62c6 VS |
14699 | ; |
14700 | return 0; | |
14701 | } | |
14702 | _ACEOF | |
14703 | rm -f conftest.$ac_objext | |
14704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14705 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14706 | ac_status=$? |
32ddf007 VS |
14707 | grep -v '^ *+' conftest.er1 >conftest.err |
14708 | rm -f conftest.er1 | |
14709 | cat conftest.err >&5 | |
e6cc62c6 VS |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14711 | (exit $ac_status); } && | |
e1293dcf | 14712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14717 | (exit $ac_status); }; } && | |
14718 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14720 | (eval $ac_try) 2>&5 | |
14721 | ac_status=$? | |
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14723 | (exit $ac_status); }; }; then | |
14724 | ac_lo=0 ac_mid=0 | |
14725 | while :; do | |
14726 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14727 | /* confdefs.h. */ |
14728 | _ACEOF | |
14729 | cat confdefs.h >>conftest.$ac_ext | |
14730 | cat >>conftest.$ac_ext <<_ACEOF | |
14731 | /* end confdefs.h. */ | |
14732 | $ac_includes_default | |
14733 | int | |
14734 | main () | |
14735 | { | |
14736 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14737 | test_array [0] = 0 | |
14738 | ||
14739 | ; | |
14740 | return 0; | |
14741 | } | |
14742 | _ACEOF | |
14743 | rm -f conftest.$ac_objext | |
14744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14745 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14746 | ac_status=$? |
32ddf007 VS |
14747 | grep -v '^ *+' conftest.er1 >conftest.err |
14748 | rm -f conftest.er1 | |
14749 | cat conftest.err >&5 | |
e6cc62c6 VS |
14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14751 | (exit $ac_status); } && | |
e1293dcf | 14752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14754 | (eval $ac_try) 2>&5 | |
14755 | ac_status=$? | |
14756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14757 | (exit $ac_status); }; } && | |
14758 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14760 | (eval $ac_try) 2>&5 | |
14761 | ac_status=$? | |
14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14763 | (exit $ac_status); }; }; then | |
14764 | ac_hi=$ac_mid; break | |
14765 | else | |
14766 | echo "$as_me: failed program was:" >&5 | |
14767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14768 | ||
14769 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14770 | if test $ac_lo -le $ac_mid; then |
14771 | ac_lo= ac_hi= | |
14772 | break | |
14773 | fi | |
14774 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14775 | fi |
32ddf007 | 14776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14777 | done |
14778 | else | |
14779 | echo "$as_me: failed program was:" >&5 | |
14780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14781 | ||
14782 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14783 | /* confdefs.h. */ |
14784 | _ACEOF | |
14785 | cat confdefs.h >>conftest.$ac_ext | |
14786 | cat >>conftest.$ac_ext <<_ACEOF | |
14787 | /* end confdefs.h. */ | |
14788 | $ac_includes_default | |
14789 | int | |
14790 | main () | |
14791 | { | |
14792 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14793 | test_array [0] = 0 | |
247f5006 | 14794 | |
e6cc62c6 VS |
14795 | ; |
14796 | return 0; | |
14797 | } | |
14798 | _ACEOF | |
14799 | rm -f conftest.$ac_objext | |
14800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14801 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14802 | ac_status=$? |
32ddf007 VS |
14803 | grep -v '^ *+' conftest.er1 >conftest.err |
14804 | rm -f conftest.er1 | |
14805 | cat conftest.err >&5 | |
e6cc62c6 VS |
14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14807 | (exit $ac_status); } && | |
e1293dcf | 14808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14810 | (eval $ac_try) 2>&5 | |
14811 | ac_status=$? | |
14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 | (exit $ac_status); }; } && | |
14814 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14816 | (eval $ac_try) 2>&5 | |
14817 | ac_status=$? | |
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14819 | (exit $ac_status); }; }; then | |
14820 | ac_hi=-1 ac_mid=-1 | |
14821 | while :; do | |
14822 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14823 | /* confdefs.h. */ |
14824 | _ACEOF | |
14825 | cat confdefs.h >>conftest.$ac_ext | |
14826 | cat >>conftest.$ac_ext <<_ACEOF | |
14827 | /* end confdefs.h. */ | |
14828 | $ac_includes_default | |
14829 | int | |
14830 | main () | |
14831 | { | |
14832 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14833 | test_array [0] = 0 | |
247f5006 | 14834 | |
e6cc62c6 VS |
14835 | ; |
14836 | return 0; | |
14837 | } | |
14838 | _ACEOF | |
14839 | rm -f conftest.$ac_objext | |
14840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14841 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14842 | ac_status=$? |
32ddf007 VS |
14843 | grep -v '^ *+' conftest.er1 >conftest.err |
14844 | rm -f conftest.er1 | |
14845 | cat conftest.err >&5 | |
e6cc62c6 VS |
14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14847 | (exit $ac_status); } && | |
e1293dcf | 14848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14850 | (eval $ac_try) 2>&5 | |
14851 | ac_status=$? | |
14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14853 | (exit $ac_status); }; } && | |
14854 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14856 | (eval $ac_try) 2>&5 | |
14857 | ac_status=$? | |
14858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14859 | (exit $ac_status); }; }; then | |
14860 | ac_lo=$ac_mid; break | |
14861 | else | |
14862 | echo "$as_me: failed program was:" >&5 | |
14863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14864 | ||
14865 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14866 | if test $ac_mid -le $ac_hi; then |
14867 | ac_lo= ac_hi= | |
14868 | break | |
14869 | fi | |
14870 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14871 | fi |
32ddf007 | 14872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14873 | done |
247f5006 | 14874 | else |
e6cc62c6 VS |
14875 | echo "$as_me: failed program was:" >&5 |
14876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14877 | ||
14878 | ac_lo= ac_hi= | |
14879 | fi | |
32ddf007 | 14880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14881 | fi |
32ddf007 | 14882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14883 | # Binary search between lo and hi bounds. |
14884 | while test "x$ac_lo" != "x$ac_hi"; do | |
14885 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14886 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14887 | /* confdefs.h. */ |
14888 | _ACEOF | |
14889 | cat confdefs.h >>conftest.$ac_ext | |
14890 | cat >>conftest.$ac_ext <<_ACEOF | |
14891 | /* end confdefs.h. */ | |
14892 | $ac_includes_default | |
14893 | int | |
14894 | main () | |
14895 | { | |
14896 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14897 | test_array [0] = 0 | |
14898 | ||
14899 | ; | |
14900 | return 0; | |
14901 | } | |
14902 | _ACEOF | |
14903 | rm -f conftest.$ac_objext | |
14904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14905 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14906 | ac_status=$? |
32ddf007 VS |
14907 | grep -v '^ *+' conftest.er1 >conftest.err |
14908 | rm -f conftest.er1 | |
14909 | cat conftest.err >&5 | |
e6cc62c6 VS |
14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14911 | (exit $ac_status); } && | |
e1293dcf | 14912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14914 | (eval $ac_try) 2>&5 | |
14915 | ac_status=$? | |
14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14917 | (exit $ac_status); }; } && | |
14918 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14920 | (eval $ac_try) 2>&5 | |
14921 | ac_status=$? | |
14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14923 | (exit $ac_status); }; }; then | |
14924 | ac_hi=$ac_mid | |
14925 | else | |
14926 | echo "$as_me: failed program was:" >&5 | |
14927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14928 | ||
14929 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14930 | fi | |
32ddf007 | 14931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14932 | done |
14933 | case $ac_lo in | |
14934 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14935 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14936 | See \`config.log' for more details." >&5 | |
14937 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14938 | See \`config.log' for more details." >&2;} | |
14939 | { (exit 1); exit 1; }; } ;; | |
14940 | esac | |
247f5006 | 14941 | else |
e6cc62c6 | 14942 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
14943 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14944 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
14945 | { (exit 1); exit 1; }; } |
14946 | else | |
14947 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14948 | /* confdefs.h. */ |
14949 | _ACEOF | |
14950 | cat confdefs.h >>conftest.$ac_ext | |
14951 | cat >>conftest.$ac_ext <<_ACEOF | |
14952 | /* end confdefs.h. */ | |
14953 | $ac_includes_default | |
14954 | long longval () { return (long) (sizeof (short)); } | |
14955 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14956 | #include <stdio.h> |
e6cc62c6 VS |
14957 | #include <stdlib.h> |
14958 | int | |
14959 | main () | |
a0b9e27f | 14960 | { |
e6cc62c6 VS |
14961 | |
14962 | FILE *f = fopen ("conftest.val", "w"); | |
14963 | if (! f) | |
14964 | exit (1); | |
14965 | if (((long) (sizeof (short))) < 0) | |
14966 | { | |
14967 | long i = longval (); | |
14968 | if (i != ((long) (sizeof (short)))) | |
14969 | exit (1); | |
14970 | fprintf (f, "%ld\n", i); | |
14971 | } | |
14972 | else | |
14973 | { | |
14974 | unsigned long i = ulongval (); | |
14975 | if (i != ((long) (sizeof (short)))) | |
14976 | exit (1); | |
14977 | fprintf (f, "%lu\n", i); | |
14978 | } | |
14979 | exit (ferror (f) || fclose (f) != 0); | |
14980 | ||
14981 | ; | |
14982 | return 0; | |
a0b9e27f | 14983 | } |
e6cc62c6 VS |
14984 | _ACEOF |
14985 | rm -f conftest$ac_exeext | |
14986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14987 | (eval $ac_link) 2>&5 | |
14988 | ac_status=$? | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14992 | (eval $ac_try) 2>&5 | |
14993 | ac_status=$? | |
14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14995 | (exit $ac_status); }; }; then | |
14996 | ac_cv_sizeof_short=`cat conftest.val` | |
14997 | else | |
14998 | echo "$as_me: program exited with status $ac_status" >&5 | |
14999 | echo "$as_me: failed program was:" >&5 | |
15000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15001 | ||
15002 | ( exit $ac_status ) | |
15003 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15004 | See \`config.log' for more details." >&5 | |
15005 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15006 | See \`config.log' for more details." >&2;} | |
15007 | { (exit 1); exit 1; }; } | |
15008 | fi | |
32ddf007 | 15009 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15010 | fi |
15011 | fi | |
15012 | rm -f conftest.val | |
247f5006 | 15013 | else |
a0b9e27f | 15014 | ac_cv_sizeof_short=0 |
247f5006 | 15015 | fi |
247f5006 | 15016 | fi |
e6cc62c6 VS |
15017 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
15018 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15019 | cat >>confdefs.h <<_ACEOF | |
15020 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15021 | _ACEOF | |
15022 | ||
15023 | ||
15024 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15025 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15026 | if test "${ac_cv_type_void_p+set}" = set; then | |
15027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15028 | else | |
15029 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15030 | /* confdefs.h. */ |
15031 | _ACEOF | |
15032 | cat confdefs.h >>conftest.$ac_ext | |
15033 | cat >>conftest.$ac_ext <<_ACEOF | |
15034 | /* end confdefs.h. */ | |
15035 | $ac_includes_default | |
15036 | int | |
15037 | main () | |
15038 | { | |
15039 | if ((void * *) 0) | |
15040 | return 0; | |
15041 | if (sizeof (void *)) | |
15042 | return 0; | |
15043 | ; | |
15044 | return 0; | |
15045 | } | |
15046 | _ACEOF | |
15047 | rm -f conftest.$ac_objext | |
15048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15049 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15050 | ac_status=$? |
32ddf007 VS |
15051 | grep -v '^ *+' conftest.er1 >conftest.err |
15052 | rm -f conftest.er1 | |
15053 | cat conftest.err >&5 | |
e6cc62c6 VS |
15054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15055 | (exit $ac_status); } && | |
e1293dcf | 15056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15058 | (eval $ac_try) 2>&5 | |
15059 | ac_status=$? | |
15060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15061 | (exit $ac_status); }; } && | |
15062 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15064 | (eval $ac_try) 2>&5 | |
15065 | ac_status=$? | |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15067 | (exit $ac_status); }; }; then | |
15068 | ac_cv_type_void_p=yes | |
15069 | else | |
15070 | echo "$as_me: failed program was:" >&5 | |
15071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15072 | ||
15073 | ac_cv_type_void_p=no | |
15074 | fi | |
32ddf007 | 15075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15076 | fi |
15077 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15078 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15079 | ||
15080 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15081 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15082 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15084 | else | |
15085 | if test "$ac_cv_type_void_p" = yes; then | |
15086 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15087 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15088 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15089 | # This bug is HP SR number 8606223364. | |
15090 | if test "$cross_compiling" = yes; then | |
15091 | # Depending upon the size, compute the lo and hi bounds. | |
15092 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15093 | /* confdefs.h. */ |
15094 | _ACEOF | |
15095 | cat confdefs.h >>conftest.$ac_ext | |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | $ac_includes_default | |
15099 | int | |
15100 | main () | |
15101 | { | |
15102 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15103 | test_array [0] = 0 | |
15104 | ||
15105 | ; | |
15106 | return 0; | |
15107 | } | |
15108 | _ACEOF | |
15109 | rm -f conftest.$ac_objext | |
15110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15111 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15112 | ac_status=$? |
32ddf007 VS |
15113 | grep -v '^ *+' conftest.er1 >conftest.err |
15114 | rm -f conftest.er1 | |
15115 | cat conftest.err >&5 | |
e6cc62c6 VS |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15117 | (exit $ac_status); } && | |
e1293dcf | 15118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15120 | (eval $ac_try) 2>&5 | |
15121 | ac_status=$? | |
15122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15123 | (exit $ac_status); }; } && | |
15124 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15126 | (eval $ac_try) 2>&5 | |
15127 | ac_status=$? | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); }; }; then | |
15130 | ac_lo=0 ac_mid=0 | |
15131 | while :; do | |
15132 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15133 | /* confdefs.h. */ |
15134 | _ACEOF | |
15135 | cat confdefs.h >>conftest.$ac_ext | |
15136 | cat >>conftest.$ac_ext <<_ACEOF | |
15137 | /* end confdefs.h. */ | |
15138 | $ac_includes_default | |
15139 | int | |
15140 | main () | |
15141 | { | |
15142 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15143 | test_array [0] = 0 | |
247f5006 | 15144 | |
e6cc62c6 VS |
15145 | ; |
15146 | return 0; | |
15147 | } | |
15148 | _ACEOF | |
15149 | rm -f conftest.$ac_objext | |
15150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15151 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15152 | ac_status=$? |
32ddf007 VS |
15153 | grep -v '^ *+' conftest.er1 >conftest.err |
15154 | rm -f conftest.er1 | |
15155 | cat conftest.err >&5 | |
e6cc62c6 VS |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15157 | (exit $ac_status); } && | |
e1293dcf | 15158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15160 | (eval $ac_try) 2>&5 | |
15161 | ac_status=$? | |
15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15163 | (exit $ac_status); }; } && | |
15164 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15166 | (eval $ac_try) 2>&5 | |
15167 | ac_status=$? | |
15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15169 | (exit $ac_status); }; }; then | |
15170 | ac_hi=$ac_mid; break | |
15171 | else | |
15172 | echo "$as_me: failed program was:" >&5 | |
15173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15174 | ||
15175 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15176 | if test $ac_lo -le $ac_mid; then |
15177 | ac_lo= ac_hi= | |
15178 | break | |
15179 | fi | |
15180 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15181 | fi |
32ddf007 | 15182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15183 | done |
15184 | else | |
15185 | echo "$as_me: failed program was:" >&5 | |
15186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15187 | ||
15188 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15189 | /* confdefs.h. */ |
15190 | _ACEOF | |
15191 | cat confdefs.h >>conftest.$ac_ext | |
15192 | cat >>conftest.$ac_ext <<_ACEOF | |
15193 | /* end confdefs.h. */ | |
15194 | $ac_includes_default | |
15195 | int | |
15196 | main () | |
15197 | { | |
15198 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15199 | test_array [0] = 0 | |
247f5006 | 15200 | |
e6cc62c6 VS |
15201 | ; |
15202 | return 0; | |
15203 | } | |
15204 | _ACEOF | |
15205 | rm -f conftest.$ac_objext | |
15206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15207 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15208 | ac_status=$? |
32ddf007 VS |
15209 | grep -v '^ *+' conftest.er1 >conftest.err |
15210 | rm -f conftest.er1 | |
15211 | cat conftest.err >&5 | |
e6cc62c6 VS |
15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15213 | (exit $ac_status); } && | |
e1293dcf | 15214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15216 | (eval $ac_try) 2>&5 | |
15217 | ac_status=$? | |
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15219 | (exit $ac_status); }; } && | |
15220 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; }; then | |
15226 | ac_hi=-1 ac_mid=-1 | |
15227 | while :; do | |
15228 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15229 | /* confdefs.h. */ |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | $ac_includes_default | |
15235 | int | |
15236 | main () | |
15237 | { | |
15238 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15239 | test_array [0] = 0 | |
247f5006 | 15240 | |
e6cc62c6 VS |
15241 | ; |
15242 | return 0; | |
15243 | } | |
15244 | _ACEOF | |
15245 | rm -f conftest.$ac_objext | |
15246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15247 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15248 | ac_status=$? |
32ddf007 VS |
15249 | grep -v '^ *+' conftest.er1 >conftest.err |
15250 | rm -f conftest.er1 | |
15251 | cat conftest.err >&5 | |
e6cc62c6 VS |
15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15253 | (exit $ac_status); } && | |
e1293dcf | 15254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15256 | (eval $ac_try) 2>&5 | |
15257 | ac_status=$? | |
15258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15259 | (exit $ac_status); }; } && | |
15260 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15262 | (eval $ac_try) 2>&5 | |
15263 | ac_status=$? | |
15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15265 | (exit $ac_status); }; }; then | |
15266 | ac_lo=$ac_mid; break | |
15267 | else | |
15268 | echo "$as_me: failed program was:" >&5 | |
15269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15270 | ||
15271 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15272 | if test $ac_mid -le $ac_hi; then |
15273 | ac_lo= ac_hi= | |
15274 | break | |
15275 | fi | |
15276 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15277 | fi |
32ddf007 | 15278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15279 | done |
a0b9e27f | 15280 | else |
e6cc62c6 VS |
15281 | echo "$as_me: failed program was:" >&5 |
15282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15283 | ||
15284 | ac_lo= ac_hi= | |
15285 | fi | |
32ddf007 | 15286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15287 | fi |
32ddf007 | 15288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15289 | # Binary search between lo and hi bounds. |
15290 | while test "x$ac_lo" != "x$ac_hi"; do | |
15291 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15292 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15293 | /* confdefs.h. */ |
15294 | _ACEOF | |
15295 | cat confdefs.h >>conftest.$ac_ext | |
15296 | cat >>conftest.$ac_ext <<_ACEOF | |
15297 | /* end confdefs.h. */ | |
15298 | $ac_includes_default | |
15299 | int | |
15300 | main () | |
15301 | { | |
15302 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15303 | test_array [0] = 0 | |
15304 | ||
15305 | ; | |
15306 | return 0; | |
15307 | } | |
15308 | _ACEOF | |
15309 | rm -f conftest.$ac_objext | |
15310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15311 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15312 | ac_status=$? |
32ddf007 VS |
15313 | grep -v '^ *+' conftest.er1 >conftest.err |
15314 | rm -f conftest.er1 | |
15315 | cat conftest.err >&5 | |
e6cc62c6 VS |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15317 | (exit $ac_status); } && | |
e1293dcf | 15318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15320 | (eval $ac_try) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); }; } && | |
15324 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15326 | (eval $ac_try) 2>&5 | |
15327 | ac_status=$? | |
15328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15329 | (exit $ac_status); }; }; then | |
15330 | ac_hi=$ac_mid | |
15331 | else | |
15332 | echo "$as_me: failed program was:" >&5 | |
15333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15334 | ||
15335 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15336 | fi | |
32ddf007 | 15337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15338 | done |
15339 | case $ac_lo in | |
15340 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15341 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15342 | See \`config.log' for more details." >&5 | |
15343 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15344 | See \`config.log' for more details." >&2;} | |
15345 | { (exit 1); exit 1; }; } ;; | |
15346 | esac | |
247f5006 | 15347 | else |
e6cc62c6 | 15348 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
15349 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15350 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
15351 | { (exit 1); exit 1; }; } |
15352 | else | |
15353 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15354 | /* confdefs.h. */ |
15355 | _ACEOF | |
15356 | cat confdefs.h >>conftest.$ac_ext | |
15357 | cat >>conftest.$ac_ext <<_ACEOF | |
15358 | /* end confdefs.h. */ | |
15359 | $ac_includes_default | |
15360 | long longval () { return (long) (sizeof (void *)); } | |
15361 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 15362 | #include <stdio.h> |
e6cc62c6 VS |
15363 | #include <stdlib.h> |
15364 | int | |
15365 | main () | |
247f5006 | 15366 | { |
e6cc62c6 VS |
15367 | |
15368 | FILE *f = fopen ("conftest.val", "w"); | |
15369 | if (! f) | |
15370 | exit (1); | |
15371 | if (((long) (sizeof (void *))) < 0) | |
15372 | { | |
15373 | long i = longval (); | |
15374 | if (i != ((long) (sizeof (void *)))) | |
15375 | exit (1); | |
15376 | fprintf (f, "%ld\n", i); | |
15377 | } | |
15378 | else | |
15379 | { | |
15380 | unsigned long i = ulongval (); | |
15381 | if (i != ((long) (sizeof (void *)))) | |
15382 | exit (1); | |
15383 | fprintf (f, "%lu\n", i); | |
15384 | } | |
15385 | exit (ferror (f) || fclose (f) != 0); | |
15386 | ||
15387 | ; | |
15388 | return 0; | |
5c6fa7d2 | 15389 | } |
e6cc62c6 VS |
15390 | _ACEOF |
15391 | rm -f conftest$ac_exeext | |
15392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15393 | (eval $ac_link) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; }; then | |
15402 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15403 | else | |
15404 | echo "$as_me: program exited with status $ac_status" >&5 | |
15405 | echo "$as_me: failed program was:" >&5 | |
15406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15407 | ||
15408 | ( exit $ac_status ) | |
15409 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15410 | See \`config.log' for more details." >&5 | |
15411 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15412 | See \`config.log' for more details." >&2;} | |
15413 | { (exit 1); exit 1; }; } | |
15414 | fi | |
32ddf007 | 15415 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15416 | fi |
15417 | fi | |
15418 | rm -f conftest.val | |
a0b9e27f | 15419 | else |
a0b9e27f MB |
15420 | ac_cv_sizeof_void_p=0 |
15421 | fi | |
a0b9e27f | 15422 | fi |
e6cc62c6 VS |
15423 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15424 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15425 | cat >>confdefs.h <<_ACEOF | |
15426 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15427 | _ACEOF | |
15428 | ||
15429 | ||
15430 | echo "$as_me:$LINENO: checking for int" >&5 | |
15431 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15432 | if test "${ac_cv_type_int+set}" = set; then | |
15433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15434 | else | |
15435 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15436 | /* confdefs.h. */ |
15437 | _ACEOF | |
15438 | cat confdefs.h >>conftest.$ac_ext | |
15439 | cat >>conftest.$ac_ext <<_ACEOF | |
15440 | /* end confdefs.h. */ | |
15441 | $ac_includes_default | |
15442 | int | |
15443 | main () | |
15444 | { | |
15445 | if ((int *) 0) | |
15446 | return 0; | |
15447 | if (sizeof (int)) | |
15448 | return 0; | |
15449 | ; | |
15450 | return 0; | |
15451 | } | |
15452 | _ACEOF | |
15453 | rm -f conftest.$ac_objext | |
15454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15455 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15456 | ac_status=$? |
32ddf007 VS |
15457 | grep -v '^ *+' conftest.er1 >conftest.err |
15458 | rm -f conftest.er1 | |
15459 | cat conftest.err >&5 | |
e6cc62c6 VS |
15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15461 | (exit $ac_status); } && | |
e1293dcf | 15462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15464 | (eval $ac_try) 2>&5 | |
15465 | ac_status=$? | |
15466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15467 | (exit $ac_status); }; } && | |
15468 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15470 | (eval $ac_try) 2>&5 | |
15471 | ac_status=$? | |
15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15473 | (exit $ac_status); }; }; then | |
15474 | ac_cv_type_int=yes | |
15475 | else | |
15476 | echo "$as_me: failed program was:" >&5 | |
15477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15478 | ||
15479 | ac_cv_type_int=no | |
15480 | fi | |
32ddf007 | 15481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15482 | fi |
15483 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15484 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15485 | ||
15486 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15487 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15488 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15490 | else | |
15491 | if test "$ac_cv_type_int" = yes; then | |
15492 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15493 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15494 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15495 | # This bug is HP SR number 8606223364. | |
15496 | if test "$cross_compiling" = yes; then | |
15497 | # Depending upon the size, compute the lo and hi bounds. | |
15498 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15499 | /* confdefs.h. */ |
15500 | _ACEOF | |
15501 | cat confdefs.h >>conftest.$ac_ext | |
15502 | cat >>conftest.$ac_ext <<_ACEOF | |
15503 | /* end confdefs.h. */ | |
15504 | $ac_includes_default | |
15505 | int | |
15506 | main () | |
15507 | { | |
15508 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15509 | test_array [0] = 0 | |
8284b0c5 | 15510 | |
e6cc62c6 VS |
15511 | ; |
15512 | return 0; | |
15513 | } | |
15514 | _ACEOF | |
15515 | rm -f conftest.$ac_objext | |
15516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15517 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15518 | ac_status=$? |
32ddf007 VS |
15519 | grep -v '^ *+' conftest.er1 >conftest.err |
15520 | rm -f conftest.er1 | |
15521 | cat conftest.err >&5 | |
e6cc62c6 VS |
15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15523 | (exit $ac_status); } && | |
e1293dcf | 15524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15526 | (eval $ac_try) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); }; } && | |
15530 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15532 | (eval $ac_try) 2>&5 | |
15533 | ac_status=$? | |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15535 | (exit $ac_status); }; }; then | |
15536 | ac_lo=0 ac_mid=0 | |
15537 | while :; do | |
15538 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15539 | /* confdefs.h. */ |
15540 | _ACEOF | |
15541 | cat confdefs.h >>conftest.$ac_ext | |
15542 | cat >>conftest.$ac_ext <<_ACEOF | |
15543 | /* end confdefs.h. */ | |
15544 | $ac_includes_default | |
15545 | int | |
15546 | main () | |
15547 | { | |
15548 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15549 | test_array [0] = 0 | |
15550 | ||
15551 | ; | |
15552 | return 0; | |
15553 | } | |
15554 | _ACEOF | |
15555 | rm -f conftest.$ac_objext | |
15556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15557 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15558 | ac_status=$? |
32ddf007 VS |
15559 | grep -v '^ *+' conftest.er1 >conftest.err |
15560 | rm -f conftest.er1 | |
15561 | cat conftest.err >&5 | |
e6cc62c6 VS |
15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15563 | (exit $ac_status); } && | |
e1293dcf | 15564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15566 | (eval $ac_try) 2>&5 | |
15567 | ac_status=$? | |
15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15569 | (exit $ac_status); }; } && | |
15570 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15572 | (eval $ac_try) 2>&5 | |
15573 | ac_status=$? | |
15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15575 | (exit $ac_status); }; }; then | |
15576 | ac_hi=$ac_mid; break | |
15577 | else | |
15578 | echo "$as_me: failed program was:" >&5 | |
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15580 | ||
15581 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15582 | if test $ac_lo -le $ac_mid; then |
15583 | ac_lo= ac_hi= | |
15584 | break | |
15585 | fi | |
15586 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15587 | fi |
32ddf007 | 15588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15589 | done |
15590 | else | |
15591 | echo "$as_me: failed program was:" >&5 | |
15592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15593 | ||
15594 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15595 | /* confdefs.h. */ |
15596 | _ACEOF | |
15597 | cat confdefs.h >>conftest.$ac_ext | |
15598 | cat >>conftest.$ac_ext <<_ACEOF | |
15599 | /* end confdefs.h. */ | |
15600 | $ac_includes_default | |
15601 | int | |
15602 | main () | |
15603 | { | |
15604 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15605 | test_array [0] = 0 | |
247f5006 | 15606 | |
e6cc62c6 VS |
15607 | ; |
15608 | return 0; | |
15609 | } | |
15610 | _ACEOF | |
15611 | rm -f conftest.$ac_objext | |
15612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15613 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15614 | ac_status=$? |
32ddf007 VS |
15615 | grep -v '^ *+' conftest.er1 >conftest.err |
15616 | rm -f conftest.er1 | |
15617 | cat conftest.err >&5 | |
e6cc62c6 VS |
15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15619 | (exit $ac_status); } && | |
e1293dcf | 15620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 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' | |
e6cc62c6 VS |
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_hi=-1 ac_mid=-1 | |
15633 | while :; do | |
15634 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15635 | /* confdefs.h. */ |
15636 | _ACEOF | |
15637 | cat confdefs.h >>conftest.$ac_ext | |
15638 | cat >>conftest.$ac_ext <<_ACEOF | |
15639 | /* end confdefs.h. */ | |
15640 | $ac_includes_default | |
15641 | int | |
15642 | main () | |
15643 | { | |
15644 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15645 | test_array [0] = 0 | |
247f5006 | 15646 | |
e6cc62c6 VS |
15647 | ; |
15648 | return 0; | |
15649 | } | |
15650 | _ACEOF | |
15651 | rm -f conftest.$ac_objext | |
15652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15653 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15654 | ac_status=$? |
32ddf007 VS |
15655 | grep -v '^ *+' conftest.er1 >conftest.err |
15656 | rm -f conftest.er1 | |
15657 | cat conftest.err >&5 | |
e6cc62c6 VS |
15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15659 | (exit $ac_status); } && | |
e1293dcf | 15660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15662 | (eval $ac_try) 2>&5 | |
15663 | ac_status=$? | |
15664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15665 | (exit $ac_status); }; } && | |
15666 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15668 | (eval $ac_try) 2>&5 | |
15669 | ac_status=$? | |
15670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15671 | (exit $ac_status); }; }; then | |
15672 | ac_lo=$ac_mid; break | |
15673 | else | |
15674 | echo "$as_me: failed program was:" >&5 | |
15675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15676 | ||
15677 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15678 | if test $ac_mid -le $ac_hi; then |
15679 | ac_lo= ac_hi= | |
15680 | break | |
15681 | fi | |
15682 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15683 | fi |
32ddf007 | 15684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15685 | done |
247f5006 | 15686 | else |
e6cc62c6 VS |
15687 | echo "$as_me: failed program was:" >&5 |
15688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15689 | ||
15690 | ac_lo= ac_hi= | |
15691 | fi | |
32ddf007 | 15692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15693 | fi |
32ddf007 | 15694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15695 | # Binary search between lo and hi bounds. |
15696 | while test "x$ac_lo" != "x$ac_hi"; do | |
15697 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15698 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15699 | /* confdefs.h. */ |
15700 | _ACEOF | |
15701 | cat confdefs.h >>conftest.$ac_ext | |
15702 | cat >>conftest.$ac_ext <<_ACEOF | |
15703 | /* end confdefs.h. */ | |
15704 | $ac_includes_default | |
15705 | int | |
15706 | main () | |
15707 | { | |
15708 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15709 | test_array [0] = 0 | |
15710 | ||
15711 | ; | |
15712 | return 0; | |
15713 | } | |
15714 | _ACEOF | |
15715 | rm -f conftest.$ac_objext | |
15716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15717 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15718 | ac_status=$? |
32ddf007 VS |
15719 | grep -v '^ *+' conftest.er1 >conftest.err |
15720 | rm -f conftest.er1 | |
15721 | cat conftest.err >&5 | |
e6cc62c6 VS |
15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15723 | (exit $ac_status); } && | |
e1293dcf | 15724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 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' | |
e6cc62c6 VS |
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 | |
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` | |
15742 | fi | |
32ddf007 | 15743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15744 | done |
15745 | case $ac_lo in | |
15746 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15747 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15748 | See \`config.log' for more details." >&5 | |
15749 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15750 | See \`config.log' for more details." >&2;} | |
15751 | { (exit 1); exit 1; }; } ;; | |
15752 | esac | |
a0b9e27f | 15753 | else |
e6cc62c6 | 15754 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
15755 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15756 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
15757 | { (exit 1); exit 1; }; } |
15758 | else | |
15759 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15760 | /* confdefs.h. */ |
15761 | _ACEOF | |
15762 | cat confdefs.h >>conftest.$ac_ext | |
15763 | cat >>conftest.$ac_ext <<_ACEOF | |
15764 | /* end confdefs.h. */ | |
15765 | $ac_includes_default | |
15766 | long longval () { return (long) (sizeof (int)); } | |
15767 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15768 | #include <stdio.h> |
e6cc62c6 VS |
15769 | #include <stdlib.h> |
15770 | int | |
15771 | main () | |
247f5006 | 15772 | { |
e6cc62c6 VS |
15773 | |
15774 | FILE *f = fopen ("conftest.val", "w"); | |
15775 | if (! f) | |
15776 | exit (1); | |
15777 | if (((long) (sizeof (int))) < 0) | |
15778 | { | |
15779 | long i = longval (); | |
15780 | if (i != ((long) (sizeof (int)))) | |
15781 | exit (1); | |
15782 | fprintf (f, "%ld\n", i); | |
15783 | } | |
15784 | else | |
15785 | { | |
15786 | unsigned long i = ulongval (); | |
15787 | if (i != ((long) (sizeof (int)))) | |
15788 | exit (1); | |
15789 | fprintf (f, "%lu\n", i); | |
15790 | } | |
15791 | exit (ferror (f) || fclose (f) != 0); | |
15792 | ||
15793 | ; | |
15794 | return 0; | |
247f5006 | 15795 | } |
e6cc62c6 VS |
15796 | _ACEOF |
15797 | rm -f conftest$ac_exeext | |
15798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15799 | (eval $ac_link) 2>&5 | |
15800 | ac_status=$? | |
15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15804 | (eval $ac_try) 2>&5 | |
15805 | ac_status=$? | |
15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15807 | (exit $ac_status); }; }; then | |
15808 | ac_cv_sizeof_int=`cat conftest.val` | |
15809 | else | |
15810 | echo "$as_me: program exited with status $ac_status" >&5 | |
15811 | echo "$as_me: failed program was:" >&5 | |
15812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15813 | ||
15814 | ( exit $ac_status ) | |
15815 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15816 | See \`config.log' for more details." >&5 | |
15817 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15818 | See \`config.log' for more details." >&2;} | |
15819 | { (exit 1); exit 1; }; } | |
15820 | fi | |
32ddf007 | 15821 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15822 | fi |
15823 | fi | |
15824 | rm -f conftest.val | |
6f72b082 | 15825 | else |
a0b9e27f | 15826 | ac_cv_sizeof_int=0 |
21d1c967 | 15827 | fi |
698dcdb6 | 15828 | fi |
e6cc62c6 VS |
15829 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15830 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15831 | cat >>confdefs.h <<_ACEOF | |
15832 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15833 | _ACEOF | |
15834 | ||
15835 | ||
15836 | echo "$as_me:$LINENO: checking for long" >&5 | |
15837 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15838 | if test "${ac_cv_type_long+set}" = set; then | |
15839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15840 | else | |
15841 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15842 | /* confdefs.h. */ |
15843 | _ACEOF | |
15844 | cat confdefs.h >>conftest.$ac_ext | |
15845 | cat >>conftest.$ac_ext <<_ACEOF | |
15846 | /* end confdefs.h. */ | |
15847 | $ac_includes_default | |
15848 | int | |
15849 | main () | |
15850 | { | |
15851 | if ((long *) 0) | |
15852 | return 0; | |
15853 | if (sizeof (long)) | |
15854 | return 0; | |
15855 | ; | |
15856 | return 0; | |
15857 | } | |
15858 | _ACEOF | |
15859 | rm -f conftest.$ac_objext | |
15860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15861 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15862 | ac_status=$? |
32ddf007 VS |
15863 | grep -v '^ *+' conftest.er1 >conftest.err |
15864 | rm -f conftest.er1 | |
15865 | cat conftest.err >&5 | |
e6cc62c6 VS |
15866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15867 | (exit $ac_status); } && | |
e1293dcf | 15868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15870 | (eval $ac_try) 2>&5 | |
15871 | ac_status=$? | |
15872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15873 | (exit $ac_status); }; } && | |
15874 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15876 | (eval $ac_try) 2>&5 | |
15877 | ac_status=$? | |
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15879 | (exit $ac_status); }; }; then | |
15880 | ac_cv_type_long=yes | |
15881 | else | |
15882 | echo "$as_me: failed program was:" >&5 | |
15883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15884 | ||
15885 | ac_cv_type_long=no | |
15886 | fi | |
32ddf007 | 15887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15888 | fi |
15889 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15890 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15891 | ||
15892 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15893 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15894 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15896 | else | |
15897 | if test "$ac_cv_type_long" = yes; then | |
15898 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15899 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15900 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15901 | # This bug is HP SR number 8606223364. | |
15902 | if test "$cross_compiling" = yes; then | |
15903 | # Depending upon the size, compute the lo and hi bounds. | |
15904 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15905 | /* confdefs.h. */ |
15906 | _ACEOF | |
15907 | cat confdefs.h >>conftest.$ac_ext | |
15908 | cat >>conftest.$ac_ext <<_ACEOF | |
15909 | /* end confdefs.h. */ | |
15910 | $ac_includes_default | |
15911 | int | |
15912 | main () | |
15913 | { | |
15914 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15915 | test_array [0] = 0 | |
15916 | ||
15917 | ; | |
15918 | return 0; | |
15919 | } | |
15920 | _ACEOF | |
15921 | rm -f conftest.$ac_objext | |
15922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15923 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15924 | ac_status=$? |
32ddf007 VS |
15925 | grep -v '^ *+' conftest.er1 >conftest.err |
15926 | rm -f conftest.er1 | |
15927 | cat conftest.err >&5 | |
e6cc62c6 VS |
15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15929 | (exit $ac_status); } && | |
e1293dcf | 15930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15932 | (eval $ac_try) 2>&5 | |
15933 | ac_status=$? | |
15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15935 | (exit $ac_status); }; } && | |
15936 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15938 | (eval $ac_try) 2>&5 | |
15939 | ac_status=$? | |
15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15941 | (exit $ac_status); }; }; then | |
15942 | ac_lo=0 ac_mid=0 | |
15943 | while :; do | |
15944 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15945 | /* confdefs.h. */ |
15946 | _ACEOF | |
15947 | cat confdefs.h >>conftest.$ac_ext | |
15948 | cat >>conftest.$ac_ext <<_ACEOF | |
15949 | /* end confdefs.h. */ | |
15950 | $ac_includes_default | |
15951 | int | |
15952 | main () | |
15953 | { | |
15954 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15955 | test_array [0] = 0 | |
4f14bcd8 | 15956 | |
e6cc62c6 VS |
15957 | ; |
15958 | return 0; | |
15959 | } | |
15960 | _ACEOF | |
15961 | rm -f conftest.$ac_objext | |
15962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15963 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15964 | ac_status=$? |
32ddf007 VS |
15965 | grep -v '^ *+' conftest.er1 >conftest.err |
15966 | rm -f conftest.er1 | |
15967 | cat conftest.err >&5 | |
e6cc62c6 VS |
15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15969 | (exit $ac_status); } && | |
e1293dcf | 15970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15972 | (eval $ac_try) 2>&5 | |
15973 | ac_status=$? | |
15974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15975 | (exit $ac_status); }; } && | |
15976 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15978 | (eval $ac_try) 2>&5 | |
15979 | ac_status=$? | |
15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15981 | (exit $ac_status); }; }; then | |
15982 | ac_hi=$ac_mid; break | |
15983 | else | |
15984 | echo "$as_me: failed program was:" >&5 | |
15985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15986 | ||
15987 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15988 | if test $ac_lo -le $ac_mid; then |
15989 | ac_lo= ac_hi= | |
15990 | break | |
15991 | fi | |
15992 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15993 | fi |
32ddf007 | 15994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15995 | done |
15996 | else | |
15997 | echo "$as_me: failed program was:" >&5 | |
15998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15999 | ||
16000 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16001 | /* confdefs.h. */ |
16002 | _ACEOF | |
16003 | cat confdefs.h >>conftest.$ac_ext | |
16004 | cat >>conftest.$ac_ext <<_ACEOF | |
16005 | /* end confdefs.h. */ | |
16006 | $ac_includes_default | |
16007 | int | |
16008 | main () | |
16009 | { | |
16010 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16011 | test_array [0] = 0 | |
4f14bcd8 | 16012 | |
e6cc62c6 VS |
16013 | ; |
16014 | return 0; | |
16015 | } | |
16016 | _ACEOF | |
16017 | rm -f conftest.$ac_objext | |
16018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16019 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16020 | ac_status=$? |
32ddf007 VS |
16021 | grep -v '^ *+' conftest.er1 >conftest.err |
16022 | rm -f conftest.er1 | |
16023 | cat conftest.err >&5 | |
e6cc62c6 VS |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16025 | (exit $ac_status); } && | |
e1293dcf | 16026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16028 | (eval $ac_try) 2>&5 | |
16029 | ac_status=$? | |
16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16031 | (exit $ac_status); }; } && | |
16032 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16034 | (eval $ac_try) 2>&5 | |
16035 | ac_status=$? | |
16036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16037 | (exit $ac_status); }; }; then | |
16038 | ac_hi=-1 ac_mid=-1 | |
16039 | while :; do | |
16040 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16041 | /* confdefs.h. */ |
16042 | _ACEOF | |
16043 | cat confdefs.h >>conftest.$ac_ext | |
16044 | cat >>conftest.$ac_ext <<_ACEOF | |
16045 | /* end confdefs.h. */ | |
16046 | $ac_includes_default | |
16047 | int | |
16048 | main () | |
16049 | { | |
16050 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16051 | test_array [0] = 0 | |
5c6fa7d2 | 16052 | |
e6cc62c6 VS |
16053 | ; |
16054 | return 0; | |
16055 | } | |
16056 | _ACEOF | |
16057 | rm -f conftest.$ac_objext | |
16058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16059 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16060 | ac_status=$? |
32ddf007 VS |
16061 | grep -v '^ *+' conftest.er1 >conftest.err |
16062 | rm -f conftest.er1 | |
16063 | cat conftest.err >&5 | |
e6cc62c6 VS |
16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16065 | (exit $ac_status); } && | |
e1293dcf | 16066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16068 | (eval $ac_try) 2>&5 | |
16069 | ac_status=$? | |
16070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16071 | (exit $ac_status); }; } && | |
16072 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16074 | (eval $ac_try) 2>&5 | |
16075 | ac_status=$? | |
16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16077 | (exit $ac_status); }; }; then | |
16078 | ac_lo=$ac_mid; break | |
16079 | else | |
16080 | echo "$as_me: failed program was:" >&5 | |
16081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16082 | ||
16083 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16084 | if test $ac_mid -le $ac_hi; then |
16085 | ac_lo= ac_hi= | |
16086 | break | |
16087 | fi | |
16088 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16089 | fi |
32ddf007 | 16090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16091 | done |
247f5006 | 16092 | else |
e6cc62c6 VS |
16093 | echo "$as_me: failed program was:" >&5 |
16094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16095 | ||
16096 | ac_lo= ac_hi= | |
16097 | fi | |
32ddf007 | 16098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16099 | fi |
32ddf007 | 16100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16101 | # Binary search between lo and hi bounds. |
16102 | while test "x$ac_lo" != "x$ac_hi"; do | |
16103 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16104 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16105 | /* confdefs.h. */ |
16106 | _ACEOF | |
16107 | cat confdefs.h >>conftest.$ac_ext | |
16108 | cat >>conftest.$ac_ext <<_ACEOF | |
16109 | /* end confdefs.h. */ | |
16110 | $ac_includes_default | |
16111 | int | |
16112 | main () | |
16113 | { | |
16114 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16115 | test_array [0] = 0 | |
16116 | ||
16117 | ; | |
16118 | return 0; | |
16119 | } | |
16120 | _ACEOF | |
16121 | rm -f conftest.$ac_objext | |
16122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16123 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16124 | ac_status=$? |
32ddf007 VS |
16125 | grep -v '^ *+' conftest.er1 >conftest.err |
16126 | rm -f conftest.er1 | |
16127 | cat conftest.err >&5 | |
e6cc62c6 VS |
16128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16129 | (exit $ac_status); } && | |
e1293dcf | 16130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16132 | (eval $ac_try) 2>&5 | |
16133 | ac_status=$? | |
16134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16135 | (exit $ac_status); }; } && | |
16136 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16138 | (eval $ac_try) 2>&5 | |
16139 | ac_status=$? | |
16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16141 | (exit $ac_status); }; }; then | |
16142 | ac_hi=$ac_mid | |
16143 | else | |
16144 | echo "$as_me: failed program was:" >&5 | |
16145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16146 | ||
16147 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16148 | fi | |
32ddf007 | 16149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16150 | done |
16151 | case $ac_lo in | |
16152 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16153 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16154 | See \`config.log' for more details." >&5 | |
16155 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16156 | See \`config.log' for more details." >&2;} | |
16157 | { (exit 1); exit 1; }; } ;; | |
16158 | esac | |
247f5006 | 16159 | else |
e6cc62c6 | 16160 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
16161 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16162 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
16163 | { (exit 1); exit 1; }; } |
16164 | else | |
16165 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16166 | /* confdefs.h. */ |
16167 | _ACEOF | |
16168 | cat confdefs.h >>conftest.$ac_ext | |
16169 | cat >>conftest.$ac_ext <<_ACEOF | |
16170 | /* end confdefs.h. */ | |
16171 | $ac_includes_default | |
16172 | long longval () { return (long) (sizeof (long)); } | |
16173 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 16174 | #include <stdio.h> |
e6cc62c6 VS |
16175 | #include <stdlib.h> |
16176 | int | |
16177 | main () | |
247f5006 | 16178 | { |
e6cc62c6 VS |
16179 | |
16180 | FILE *f = fopen ("conftest.val", "w"); | |
16181 | if (! f) | |
16182 | exit (1); | |
16183 | if (((long) (sizeof (long))) < 0) | |
16184 | { | |
16185 | long i = longval (); | |
16186 | if (i != ((long) (sizeof (long)))) | |
16187 | exit (1); | |
16188 | fprintf (f, "%ld\n", i); | |
16189 | } | |
16190 | else | |
16191 | { | |
16192 | unsigned long i = ulongval (); | |
16193 | if (i != ((long) (sizeof (long)))) | |
16194 | exit (1); | |
16195 | fprintf (f, "%lu\n", i); | |
16196 | } | |
16197 | exit (ferror (f) || fclose (f) != 0); | |
16198 | ||
16199 | ; | |
16200 | return 0; | |
247f5006 | 16201 | } |
e6cc62c6 VS |
16202 | _ACEOF |
16203 | rm -f conftest$ac_exeext | |
16204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16205 | (eval $ac_link) 2>&5 | |
16206 | ac_status=$? | |
16207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16210 | (eval $ac_try) 2>&5 | |
16211 | ac_status=$? | |
16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16213 | (exit $ac_status); }; }; then | |
16214 | ac_cv_sizeof_long=`cat conftest.val` | |
16215 | else | |
16216 | echo "$as_me: program exited with status $ac_status" >&5 | |
16217 | echo "$as_me: failed program was:" >&5 | |
16218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16219 | ||
16220 | ( exit $ac_status ) | |
16221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16222 | See \`config.log' for more details." >&5 | |
16223 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16224 | See \`config.log' for more details." >&2;} | |
16225 | { (exit 1); exit 1; }; } | |
16226 | fi | |
32ddf007 | 16227 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16228 | fi |
16229 | fi | |
16230 | rm -f conftest.val | |
247f5006 | 16231 | else |
a0b9e27f | 16232 | ac_cv_sizeof_long=0 |
247f5006 | 16233 | fi |
247f5006 | 16234 | fi |
e6cc62c6 VS |
16235 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16236 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16237 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 16238 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 16239 | _ACEOF |
247f5006 | 16240 | |
a0b9e27f | 16241 | |
ecfd48ca VZ |
16242 | echo "$as_me:$LINENO: checking for size_t" >&5 |
16243 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16244 | if test "${ac_cv_type_size_t+set}" = set; then | |
16245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16246 | else | |
16247 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16248 | /* confdefs.h. */ |
16249 | _ACEOF | |
16250 | cat confdefs.h >>conftest.$ac_ext | |
16251 | cat >>conftest.$ac_ext <<_ACEOF | |
16252 | /* end confdefs.h. */ | |
16253 | $ac_includes_default | |
16254 | int | |
16255 | main () | |
16256 | { | |
16257 | if ((size_t *) 0) | |
16258 | return 0; | |
16259 | if (sizeof (size_t)) | |
16260 | return 0; | |
16261 | ; | |
16262 | return 0; | |
16263 | } | |
16264 | _ACEOF | |
16265 | rm -f conftest.$ac_objext | |
16266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16267 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16268 | ac_status=$? |
32ddf007 VS |
16269 | grep -v '^ *+' conftest.er1 >conftest.err |
16270 | rm -f conftest.er1 | |
16271 | cat conftest.err >&5 | |
ecfd48ca VZ |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16273 | (exit $ac_status); } && | |
e1293dcf | 16274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16276 | (eval $ac_try) 2>&5 | |
16277 | ac_status=$? | |
16278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16279 | (exit $ac_status); }; } && | |
16280 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16282 | (eval $ac_try) 2>&5 | |
16283 | ac_status=$? | |
16284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16285 | (exit $ac_status); }; }; then | |
16286 | ac_cv_type_size_t=yes | |
16287 | else | |
16288 | echo "$as_me: failed program was:" >&5 | |
16289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16290 | ||
16291 | ac_cv_type_size_t=no | |
16292 | fi | |
32ddf007 | 16293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16294 | fi |
16295 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16296 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16297 | ||
16298 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16299 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16300 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16302 | else | |
16303 | if test "$ac_cv_type_size_t" = yes; then | |
16304 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16305 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16306 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16307 | # This bug is HP SR number 8606223364. | |
16308 | if test "$cross_compiling" = yes; then | |
16309 | # Depending upon the size, compute the lo and hi bounds. | |
16310 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16311 | /* confdefs.h. */ |
16312 | _ACEOF | |
16313 | cat confdefs.h >>conftest.$ac_ext | |
16314 | cat >>conftest.$ac_ext <<_ACEOF | |
16315 | /* end confdefs.h. */ | |
16316 | $ac_includes_default | |
16317 | int | |
16318 | main () | |
16319 | { | |
16320 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16321 | test_array [0] = 0 | |
16322 | ||
16323 | ; | |
16324 | return 0; | |
16325 | } | |
16326 | _ACEOF | |
16327 | rm -f conftest.$ac_objext | |
16328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16329 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16330 | ac_status=$? |
32ddf007 VS |
16331 | grep -v '^ *+' conftest.er1 >conftest.err |
16332 | rm -f conftest.er1 | |
16333 | cat conftest.err >&5 | |
ecfd48ca VZ |
16334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16335 | (exit $ac_status); } && | |
e1293dcf | 16336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16338 | (eval $ac_try) 2>&5 | |
16339 | ac_status=$? | |
16340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16341 | (exit $ac_status); }; } && | |
16342 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16344 | (eval $ac_try) 2>&5 | |
16345 | ac_status=$? | |
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16347 | (exit $ac_status); }; }; then | |
16348 | ac_lo=0 ac_mid=0 | |
16349 | while :; do | |
16350 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16351 | /* confdefs.h. */ |
16352 | _ACEOF | |
16353 | cat confdefs.h >>conftest.$ac_ext | |
16354 | cat >>conftest.$ac_ext <<_ACEOF | |
16355 | /* end confdefs.h. */ | |
16356 | $ac_includes_default | |
16357 | int | |
16358 | main () | |
16359 | { | |
16360 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16361 | test_array [0] = 0 | |
16362 | ||
16363 | ; | |
16364 | return 0; | |
16365 | } | |
16366 | _ACEOF | |
16367 | rm -f conftest.$ac_objext | |
16368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16369 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16370 | ac_status=$? |
32ddf007 VS |
16371 | grep -v '^ *+' conftest.er1 >conftest.err |
16372 | rm -f conftest.er1 | |
16373 | cat conftest.err >&5 | |
ecfd48ca VZ |
16374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16375 | (exit $ac_status); } && | |
e1293dcf | 16376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16378 | (eval $ac_try) 2>&5 | |
16379 | ac_status=$? | |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16381 | (exit $ac_status); }; } && | |
16382 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16384 | (eval $ac_try) 2>&5 | |
16385 | ac_status=$? | |
16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16387 | (exit $ac_status); }; }; then | |
16388 | ac_hi=$ac_mid; break | |
16389 | else | |
16390 | echo "$as_me: failed program was:" >&5 | |
16391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16392 | ||
16393 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16394 | if test $ac_lo -le $ac_mid; then |
16395 | ac_lo= ac_hi= | |
16396 | break | |
16397 | fi | |
16398 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
ecfd48ca | 16399 | fi |
32ddf007 | 16400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16401 | done |
16402 | else | |
16403 | echo "$as_me: failed program was:" >&5 | |
16404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16405 | ||
16406 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16407 | /* confdefs.h. */ |
16408 | _ACEOF | |
16409 | cat confdefs.h >>conftest.$ac_ext | |
16410 | cat >>conftest.$ac_ext <<_ACEOF | |
16411 | /* end confdefs.h. */ | |
16412 | $ac_includes_default | |
16413 | int | |
16414 | main () | |
16415 | { | |
16416 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16417 | test_array [0] = 0 | |
16418 | ||
16419 | ; | |
16420 | return 0; | |
16421 | } | |
16422 | _ACEOF | |
16423 | rm -f conftest.$ac_objext | |
16424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16425 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16426 | ac_status=$? |
32ddf007 VS |
16427 | grep -v '^ *+' conftest.er1 >conftest.err |
16428 | rm -f conftest.er1 | |
16429 | cat conftest.err >&5 | |
ecfd48ca VZ |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16431 | (exit $ac_status); } && | |
e1293dcf | 16432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16434 | (eval $ac_try) 2>&5 | |
16435 | ac_status=$? | |
16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16437 | (exit $ac_status); }; } && | |
16438 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16440 | (eval $ac_try) 2>&5 | |
16441 | ac_status=$? | |
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16443 | (exit $ac_status); }; }; then | |
16444 | ac_hi=-1 ac_mid=-1 | |
16445 | while :; do | |
16446 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16447 | /* confdefs.h. */ |
16448 | _ACEOF | |
16449 | cat confdefs.h >>conftest.$ac_ext | |
16450 | cat >>conftest.$ac_ext <<_ACEOF | |
16451 | /* end confdefs.h. */ | |
16452 | $ac_includes_default | |
16453 | int | |
16454 | main () | |
16455 | { | |
16456 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16457 | test_array [0] = 0 | |
16458 | ||
16459 | ; | |
16460 | return 0; | |
16461 | } | |
16462 | _ACEOF | |
16463 | rm -f conftest.$ac_objext | |
16464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16465 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16466 | ac_status=$? |
32ddf007 VS |
16467 | grep -v '^ *+' conftest.er1 >conftest.err |
16468 | rm -f conftest.er1 | |
16469 | cat conftest.err >&5 | |
ecfd48ca VZ |
16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16471 | (exit $ac_status); } && | |
e1293dcf | 16472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16474 | (eval $ac_try) 2>&5 | |
16475 | ac_status=$? | |
16476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16477 | (exit $ac_status); }; } && | |
16478 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16480 | (eval $ac_try) 2>&5 | |
16481 | ac_status=$? | |
16482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16483 | (exit $ac_status); }; }; then | |
16484 | ac_lo=$ac_mid; break | |
16485 | else | |
16486 | echo "$as_me: failed program was:" >&5 | |
16487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16488 | ||
16489 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16490 | if test $ac_mid -le $ac_hi; then |
16491 | ac_lo= ac_hi= | |
16492 | break | |
16493 | fi | |
16494 | ac_mid=`expr 2 '*' $ac_mid` | |
ecfd48ca | 16495 | fi |
32ddf007 | 16496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16497 | done |
16498 | else | |
16499 | echo "$as_me: failed program was:" >&5 | |
16500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16501 | ||
16502 | ac_lo= ac_hi= | |
16503 | fi | |
32ddf007 | 16504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca | 16505 | fi |
32ddf007 | 16506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16507 | # Binary search between lo and hi bounds. |
16508 | while test "x$ac_lo" != "x$ac_hi"; do | |
16509 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16510 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16511 | /* confdefs.h. */ |
16512 | _ACEOF | |
16513 | cat confdefs.h >>conftest.$ac_ext | |
16514 | cat >>conftest.$ac_ext <<_ACEOF | |
16515 | /* end confdefs.h. */ | |
16516 | $ac_includes_default | |
16517 | int | |
16518 | main () | |
16519 | { | |
16520 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16521 | test_array [0] = 0 | |
16522 | ||
16523 | ; | |
16524 | return 0; | |
16525 | } | |
16526 | _ACEOF | |
16527 | rm -f conftest.$ac_objext | |
16528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16529 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16530 | ac_status=$? |
32ddf007 VS |
16531 | grep -v '^ *+' conftest.er1 >conftest.err |
16532 | rm -f conftest.er1 | |
16533 | cat conftest.err >&5 | |
ecfd48ca VZ |
16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16535 | (exit $ac_status); } && | |
e1293dcf | 16536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16538 | (eval $ac_try) 2>&5 | |
16539 | ac_status=$? | |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16541 | (exit $ac_status); }; } && | |
16542 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16544 | (eval $ac_try) 2>&5 | |
16545 | ac_status=$? | |
16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16547 | (exit $ac_status); }; }; then | |
16548 | ac_hi=$ac_mid | |
16549 | else | |
16550 | echo "$as_me: failed program was:" >&5 | |
16551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16552 | ||
16553 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16554 | fi | |
32ddf007 | 16555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16556 | done |
16557 | case $ac_lo in | |
16558 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16559 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16560 | See \`config.log' for more details." >&5 | |
16561 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16562 | See \`config.log' for more details." >&2;} | |
16563 | { (exit 1); exit 1; }; } ;; | |
16564 | esac | |
16565 | else | |
16566 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
16567 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16568 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
ecfd48ca VZ |
16569 | { (exit 1); exit 1; }; } |
16570 | else | |
16571 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16572 | /* confdefs.h. */ |
16573 | _ACEOF | |
16574 | cat confdefs.h >>conftest.$ac_ext | |
16575 | cat >>conftest.$ac_ext <<_ACEOF | |
16576 | /* end confdefs.h. */ | |
16577 | $ac_includes_default | |
16578 | long longval () { return (long) (sizeof (size_t)); } | |
16579 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16580 | #include <stdio.h> | |
16581 | #include <stdlib.h> | |
16582 | int | |
16583 | main () | |
16584 | { | |
16585 | ||
16586 | FILE *f = fopen ("conftest.val", "w"); | |
16587 | if (! f) | |
16588 | exit (1); | |
16589 | if (((long) (sizeof (size_t))) < 0) | |
16590 | { | |
16591 | long i = longval (); | |
16592 | if (i != ((long) (sizeof (size_t)))) | |
16593 | exit (1); | |
16594 | fprintf (f, "%ld\n", i); | |
16595 | } | |
16596 | else | |
16597 | { | |
16598 | unsigned long i = ulongval (); | |
16599 | if (i != ((long) (sizeof (size_t)))) | |
16600 | exit (1); | |
16601 | fprintf (f, "%lu\n", i); | |
16602 | } | |
16603 | exit (ferror (f) || fclose (f) != 0); | |
16604 | ||
16605 | ; | |
16606 | return 0; | |
16607 | } | |
16608 | _ACEOF | |
16609 | rm -f conftest$ac_exeext | |
16610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16611 | (eval $ac_link) 2>&5 | |
16612 | ac_status=$? | |
16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16616 | (eval $ac_try) 2>&5 | |
16617 | ac_status=$? | |
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16619 | (exit $ac_status); }; }; then | |
16620 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16621 | else | |
16622 | echo "$as_me: program exited with status $ac_status" >&5 | |
16623 | echo "$as_me: failed program was:" >&5 | |
16624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16625 | ||
16626 | ( exit $ac_status ) | |
16627 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16628 | See \`config.log' for more details." >&5 | |
16629 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16630 | See \`config.log' for more details." >&2;} | |
16631 | { (exit 1); exit 1; }; } | |
16632 | fi | |
32ddf007 | 16633 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16634 | fi |
16635 | fi | |
16636 | rm -f conftest.val | |
16637 | else | |
16638 | ac_cv_sizeof_size_t=0 | |
16639 | fi | |
16640 | fi | |
16641 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16642 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16643 | cat >>confdefs.h <<_ACEOF | |
16644 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16645 | _ACEOF | |
16646 | ||
16647 | ||
a0b9e27f MB |
16648 | |
16649 | case "${host}" in | |
16650 | arm-*-linux* ) | |
e6cc62c6 VS |
16651 | echo "$as_me:$LINENO: checking for long long" >&5 |
16652 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16653 | if test "${ac_cv_type_long_long+set}" = set; then | |
16654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16655 | else | |
16656 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16657 | /* confdefs.h. */ |
16658 | _ACEOF | |
16659 | cat confdefs.h >>conftest.$ac_ext | |
16660 | cat >>conftest.$ac_ext <<_ACEOF | |
16661 | /* end confdefs.h. */ | |
16662 | $ac_includes_default | |
16663 | int | |
16664 | main () | |
16665 | { | |
16666 | if ((long long *) 0) | |
16667 | return 0; | |
16668 | if (sizeof (long long)) | |
16669 | return 0; | |
16670 | ; | |
16671 | return 0; | |
16672 | } | |
16673 | _ACEOF | |
16674 | rm -f conftest.$ac_objext | |
16675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16676 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16677 | ac_status=$? |
32ddf007 VS |
16678 | grep -v '^ *+' conftest.er1 >conftest.err |
16679 | rm -f conftest.er1 | |
16680 | cat conftest.err >&5 | |
e6cc62c6 VS |
16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16682 | (exit $ac_status); } && | |
e1293dcf | 16683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16685 | (eval $ac_try) 2>&5 | |
16686 | ac_status=$? | |
16687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16688 | (exit $ac_status); }; } && | |
16689 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16691 | (eval $ac_try) 2>&5 | |
16692 | ac_status=$? | |
16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16694 | (exit $ac_status); }; }; then | |
16695 | ac_cv_type_long_long=yes | |
16696 | else | |
16697 | echo "$as_me: failed program was:" >&5 | |
16698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16699 | ||
16700 | ac_cv_type_long_long=no | |
16701 | fi | |
32ddf007 | 16702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16703 | fi |
16704 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16705 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16706 | ||
16707 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16708 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16709 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16711 | else | |
16712 | if test "$ac_cv_type_long_long" = yes; then | |
16713 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16714 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16715 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16716 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16717 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16718 | # Depending upon the size, compute the lo and hi bounds. |
16719 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16720 | /* confdefs.h. */ |
16721 | _ACEOF | |
16722 | cat confdefs.h >>conftest.$ac_ext | |
16723 | cat >>conftest.$ac_ext <<_ACEOF | |
16724 | /* end confdefs.h. */ | |
16725 | $ac_includes_default | |
16726 | int | |
16727 | main () | |
16728 | { | |
16729 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16730 | test_array [0] = 0 | |
16731 | ||
16732 | ; | |
16733 | return 0; | |
16734 | } | |
16735 | _ACEOF | |
16736 | rm -f conftest.$ac_objext | |
16737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16738 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16739 | ac_status=$? |
32ddf007 VS |
16740 | grep -v '^ *+' conftest.er1 >conftest.err |
16741 | rm -f conftest.er1 | |
16742 | cat conftest.err >&5 | |
e6cc62c6 VS |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16744 | (exit $ac_status); } && | |
e1293dcf | 16745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16747 | (eval $ac_try) 2>&5 | |
16748 | ac_status=$? | |
16749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16750 | (exit $ac_status); }; } && | |
16751 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16753 | (eval $ac_try) 2>&5 | |
16754 | ac_status=$? | |
16755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16756 | (exit $ac_status); }; }; then | |
16757 | ac_lo=0 ac_mid=0 | |
16758 | while :; do | |
16759 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16760 | /* confdefs.h. */ |
16761 | _ACEOF | |
16762 | cat confdefs.h >>conftest.$ac_ext | |
16763 | cat >>conftest.$ac_ext <<_ACEOF | |
16764 | /* end confdefs.h. */ | |
16765 | $ac_includes_default | |
16766 | int | |
16767 | main () | |
16768 | { | |
16769 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16770 | test_array [0] = 0 | |
16771 | ||
16772 | ; | |
16773 | return 0; | |
16774 | } | |
16775 | _ACEOF | |
16776 | rm -f conftest.$ac_objext | |
16777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16778 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16779 | ac_status=$? |
32ddf007 VS |
16780 | grep -v '^ *+' conftest.er1 >conftest.err |
16781 | rm -f conftest.er1 | |
16782 | cat conftest.err >&5 | |
e6cc62c6 VS |
16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16784 | (exit $ac_status); } && | |
e1293dcf | 16785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16787 | (eval $ac_try) 2>&5 | |
16788 | ac_status=$? | |
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16790 | (exit $ac_status); }; } && | |
16791 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16793 | (eval $ac_try) 2>&5 | |
16794 | ac_status=$? | |
16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16796 | (exit $ac_status); }; }; then | |
16797 | ac_hi=$ac_mid; break | |
16798 | else | |
16799 | echo "$as_me: failed program was:" >&5 | |
16800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16801 | ||
16802 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16803 | if test $ac_lo -le $ac_mid; then |
16804 | ac_lo= ac_hi= | |
16805 | break | |
16806 | fi | |
16807 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16808 | fi |
32ddf007 | 16809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16810 | done |
16811 | else | |
16812 | echo "$as_me: failed program was:" >&5 | |
16813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16814 | ||
16815 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16816 | /* confdefs.h. */ |
16817 | _ACEOF | |
16818 | cat confdefs.h >>conftest.$ac_ext | |
16819 | cat >>conftest.$ac_ext <<_ACEOF | |
16820 | /* end confdefs.h. */ | |
16821 | $ac_includes_default | |
16822 | int | |
16823 | main () | |
16824 | { | |
16825 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16826 | test_array [0] = 0 | |
16827 | ||
16828 | ; | |
16829 | return 0; | |
16830 | } | |
16831 | _ACEOF | |
16832 | rm -f conftest.$ac_objext | |
16833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16834 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16835 | ac_status=$? |
32ddf007 VS |
16836 | grep -v '^ *+' conftest.er1 >conftest.err |
16837 | rm -f conftest.er1 | |
16838 | cat conftest.err >&5 | |
e6cc62c6 VS |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16840 | (exit $ac_status); } && | |
e1293dcf | 16841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16843 | (eval $ac_try) 2>&5 | |
16844 | ac_status=$? | |
16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16846 | (exit $ac_status); }; } && | |
16847 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16849 | (eval $ac_try) 2>&5 | |
16850 | ac_status=$? | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); }; }; then | |
16853 | ac_hi=-1 ac_mid=-1 | |
16854 | while :; do | |
16855 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16856 | /* confdefs.h. */ |
16857 | _ACEOF | |
16858 | cat confdefs.h >>conftest.$ac_ext | |
16859 | cat >>conftest.$ac_ext <<_ACEOF | |
16860 | /* end confdefs.h. */ | |
16861 | $ac_includes_default | |
16862 | int | |
16863 | main () | |
16864 | { | |
16865 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16866 | test_array [0] = 0 | |
16867 | ||
16868 | ; | |
16869 | return 0; | |
16870 | } | |
16871 | _ACEOF | |
16872 | rm -f conftest.$ac_objext | |
16873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16874 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16875 | ac_status=$? |
32ddf007 VS |
16876 | grep -v '^ *+' conftest.er1 >conftest.err |
16877 | rm -f conftest.er1 | |
16878 | cat conftest.err >&5 | |
e6cc62c6 VS |
16879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16880 | (exit $ac_status); } && | |
e1293dcf | 16881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16883 | (eval $ac_try) 2>&5 | |
16884 | ac_status=$? | |
16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16886 | (exit $ac_status); }; } && | |
16887 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16889 | (eval $ac_try) 2>&5 | |
16890 | ac_status=$? | |
16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16892 | (exit $ac_status); }; }; then | |
16893 | ac_lo=$ac_mid; break | |
16894 | else | |
16895 | echo "$as_me: failed program was:" >&5 | |
16896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16897 | ||
16898 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16899 | if test $ac_mid -le $ac_hi; then |
16900 | ac_lo= ac_hi= | |
16901 | break | |
16902 | fi | |
16903 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16904 | fi |
32ddf007 | 16905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16906 | done |
16907 | else | |
16908 | echo "$as_me: failed program was:" >&5 | |
16909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16910 | ||
16911 | ac_lo= ac_hi= | |
16912 | fi | |
32ddf007 | 16913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16914 | fi |
32ddf007 | 16915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16916 | # Binary search between lo and hi bounds. |
16917 | while test "x$ac_lo" != "x$ac_hi"; do | |
16918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16919 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16920 | /* confdefs.h. */ |
16921 | _ACEOF | |
16922 | cat confdefs.h >>conftest.$ac_ext | |
16923 | cat >>conftest.$ac_ext <<_ACEOF | |
16924 | /* end confdefs.h. */ | |
16925 | $ac_includes_default | |
16926 | int | |
16927 | main () | |
16928 | { | |
16929 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16930 | test_array [0] = 0 | |
16931 | ||
16932 | ; | |
16933 | return 0; | |
16934 | } | |
16935 | _ACEOF | |
16936 | rm -f conftest.$ac_objext | |
16937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16938 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16939 | ac_status=$? |
32ddf007 VS |
16940 | grep -v '^ *+' conftest.er1 >conftest.err |
16941 | rm -f conftest.er1 | |
16942 | cat conftest.err >&5 | |
e6cc62c6 VS |
16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16944 | (exit $ac_status); } && | |
e1293dcf | 16945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16947 | (eval $ac_try) 2>&5 | |
16948 | ac_status=$? | |
16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16950 | (exit $ac_status); }; } && | |
16951 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16953 | (eval $ac_try) 2>&5 | |
16954 | ac_status=$? | |
16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16956 | (exit $ac_status); }; }; then | |
16957 | ac_hi=$ac_mid | |
16958 | else | |
16959 | echo "$as_me: failed program was:" >&5 | |
16960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16961 | ||
16962 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16963 | fi | |
32ddf007 | 16964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16965 | done |
16966 | case $ac_lo in | |
16967 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16968 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16969 | See \`config.log' for more details." >&5 | |
16970 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16971 | See \`config.log' for more details." >&2;} | |
16972 | { (exit 1); exit 1; }; } ;; | |
16973 | esac | |
a0b9e27f | 16974 | else |
e6cc62c6 | 16975 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
16976 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16977 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
16978 | { (exit 1); exit 1; }; } |
16979 | else | |
16980 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16981 | /* confdefs.h. */ |
16982 | _ACEOF | |
16983 | cat confdefs.h >>conftest.$ac_ext | |
16984 | cat >>conftest.$ac_ext <<_ACEOF | |
16985 | /* end confdefs.h. */ | |
16986 | $ac_includes_default | |
16987 | long longval () { return (long) (sizeof (long long)); } | |
16988 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 16989 | #include <stdio.h> |
e6cc62c6 VS |
16990 | #include <stdlib.h> |
16991 | int | |
16992 | main () | |
247f5006 | 16993 | { |
e6cc62c6 VS |
16994 | |
16995 | FILE *f = fopen ("conftest.val", "w"); | |
16996 | if (! f) | |
16997 | exit (1); | |
16998 | if (((long) (sizeof (long long))) < 0) | |
16999 | { | |
17000 | long i = longval (); | |
17001 | if (i != ((long) (sizeof (long long)))) | |
17002 | exit (1); | |
17003 | fprintf (f, "%ld\n", i); | |
17004 | } | |
17005 | else | |
17006 | { | |
17007 | unsigned long i = ulongval (); | |
17008 | if (i != ((long) (sizeof (long long)))) | |
17009 | exit (1); | |
17010 | fprintf (f, "%lu\n", i); | |
17011 | } | |
17012 | exit (ferror (f) || fclose (f) != 0); | |
17013 | ||
17014 | ; | |
17015 | return 0; | |
247f5006 | 17016 | } |
e6cc62c6 VS |
17017 | _ACEOF |
17018 | rm -f conftest$ac_exeext | |
17019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17020 | (eval $ac_link) 2>&5 | |
17021 | ac_status=$? | |
17022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
17029 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17030 | else | |
17031 | echo "$as_me: program exited with status $ac_status" >&5 | |
17032 | echo "$as_me: failed program was:" >&5 | |
17033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17034 | ||
17035 | ( exit $ac_status ) | |
17036 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17037 | See \`config.log' for more details." >&5 | |
17038 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17039 | See \`config.log' for more details." >&2;} | |
17040 | { (exit 1); exit 1; }; } | |
17041 | fi | |
32ddf007 | 17042 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17043 | fi |
17044 | fi | |
17045 | rm -f conftest.val | |
7b4a847f | 17046 | else |
a0b9e27f | 17047 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
17048 | fi |
17049 | fi | |
e6cc62c6 VS |
17050 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17051 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17052 | cat >>confdefs.h <<_ACEOF | |
17053 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17054 | _ACEOF | |
17055 | ||
17056 | ||
17057 | ;; | |
17058 | *-hp-hpux* ) | |
17059 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17060 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17061 | if test "${ac_cv_type_long_long+set}" = set; then | |
17062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17063 | else | |
17064 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17065 | /* confdefs.h. */ |
17066 | _ACEOF | |
17067 | cat confdefs.h >>conftest.$ac_ext | |
17068 | cat >>conftest.$ac_ext <<_ACEOF | |
17069 | /* end confdefs.h. */ | |
17070 | $ac_includes_default | |
17071 | int | |
17072 | main () | |
17073 | { | |
17074 | if ((long long *) 0) | |
17075 | return 0; | |
17076 | if (sizeof (long long)) | |
17077 | return 0; | |
17078 | ; | |
17079 | return 0; | |
17080 | } | |
17081 | _ACEOF | |
17082 | rm -f conftest.$ac_objext | |
17083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17084 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17085 | ac_status=$? |
32ddf007 VS |
17086 | grep -v '^ *+' conftest.er1 >conftest.err |
17087 | rm -f conftest.er1 | |
17088 | cat conftest.err >&5 | |
e6cc62c6 VS |
17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17090 | (exit $ac_status); } && | |
e1293dcf | 17091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17093 | (eval $ac_try) 2>&5 | |
17094 | ac_status=$? | |
17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17096 | (exit $ac_status); }; } && | |
17097 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17099 | (eval $ac_try) 2>&5 | |
17100 | ac_status=$? | |
17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17102 | (exit $ac_status); }; }; then | |
17103 | ac_cv_type_long_long=yes | |
17104 | else | |
17105 | echo "$as_me: failed program was:" >&5 | |
17106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17107 | ||
17108 | ac_cv_type_long_long=no | |
17109 | fi | |
32ddf007 | 17110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17111 | fi |
17112 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17113 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17114 | ||
17115 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17116 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17117 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17119 | else | |
17120 | if test "$ac_cv_type_long_long" = yes; then | |
17121 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17122 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17123 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17124 | # This bug is HP SR number 8606223364. | |
17125 | if test "$cross_compiling" = yes; then | |
17126 | # Depending upon the size, compute the lo and hi bounds. | |
17127 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17128 | /* confdefs.h. */ |
17129 | _ACEOF | |
17130 | cat confdefs.h >>conftest.$ac_ext | |
17131 | cat >>conftest.$ac_ext <<_ACEOF | |
17132 | /* end confdefs.h. */ | |
17133 | $ac_includes_default | |
17134 | int | |
17135 | main () | |
17136 | { | |
17137 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17138 | test_array [0] = 0 | |
17139 | ||
17140 | ; | |
17141 | return 0; | |
17142 | } | |
17143 | _ACEOF | |
17144 | rm -f conftest.$ac_objext | |
17145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17146 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17147 | ac_status=$? |
32ddf007 VS |
17148 | grep -v '^ *+' conftest.er1 >conftest.err |
17149 | rm -f conftest.er1 | |
17150 | cat conftest.err >&5 | |
e6cc62c6 VS |
17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17152 | (exit $ac_status); } && | |
e1293dcf | 17153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17155 | (eval $ac_try) 2>&5 | |
17156 | ac_status=$? | |
17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17158 | (exit $ac_status); }; } && | |
17159 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); }; }; then | |
17165 | ac_lo=0 ac_mid=0 | |
17166 | while :; do | |
17167 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17168 | /* confdefs.h. */ |
17169 | _ACEOF | |
17170 | cat confdefs.h >>conftest.$ac_ext | |
17171 | cat >>conftest.$ac_ext <<_ACEOF | |
17172 | /* end confdefs.h. */ | |
17173 | $ac_includes_default | |
17174 | int | |
17175 | main () | |
17176 | { | |
17177 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17178 | test_array [0] = 0 | |
8284b0c5 | 17179 | |
e6cc62c6 VS |
17180 | ; |
17181 | return 0; | |
17182 | } | |
17183 | _ACEOF | |
17184 | rm -f conftest.$ac_objext | |
17185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17186 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17187 | ac_status=$? |
32ddf007 VS |
17188 | grep -v '^ *+' conftest.er1 >conftest.err |
17189 | rm -f conftest.er1 | |
17190 | cat conftest.err >&5 | |
e6cc62c6 VS |
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17192 | (exit $ac_status); } && | |
e1293dcf | 17193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17195 | (eval $ac_try) 2>&5 | |
17196 | ac_status=$? | |
17197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17198 | (exit $ac_status); }; } && | |
17199 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17201 | (eval $ac_try) 2>&5 | |
17202 | ac_status=$? | |
17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17204 | (exit $ac_status); }; }; then | |
17205 | ac_hi=$ac_mid; break | |
17206 | else | |
17207 | echo "$as_me: failed program was:" >&5 | |
17208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17209 | ||
17210 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17211 | if test $ac_lo -le $ac_mid; then |
17212 | ac_lo= ac_hi= | |
17213 | break | |
17214 | fi | |
17215 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 17216 | fi |
32ddf007 | 17217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17218 | done |
17219 | else | |
17220 | echo "$as_me: failed program was:" >&5 | |
17221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17222 | ||
17223 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17224 | /* confdefs.h. */ |
17225 | _ACEOF | |
17226 | cat confdefs.h >>conftest.$ac_ext | |
17227 | cat >>conftest.$ac_ext <<_ACEOF | |
17228 | /* end confdefs.h. */ | |
17229 | $ac_includes_default | |
17230 | int | |
17231 | main () | |
17232 | { | |
17233 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17234 | test_array [0] = 0 | |
a0b9e27f | 17235 | |
e6cc62c6 VS |
17236 | ; |
17237 | return 0; | |
17238 | } | |
17239 | _ACEOF | |
17240 | rm -f conftest.$ac_objext | |
17241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17242 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17243 | ac_status=$? |
32ddf007 VS |
17244 | grep -v '^ *+' conftest.er1 >conftest.err |
17245 | rm -f conftest.er1 | |
17246 | cat conftest.err >&5 | |
e6cc62c6 VS |
17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17248 | (exit $ac_status); } && | |
e1293dcf | 17249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17251 | (eval $ac_try) 2>&5 | |
17252 | ac_status=$? | |
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17254 | (exit $ac_status); }; } && | |
17255 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17257 | (eval $ac_try) 2>&5 | |
17258 | ac_status=$? | |
17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17260 | (exit $ac_status); }; }; then | |
17261 | ac_hi=-1 ac_mid=-1 | |
17262 | while :; do | |
17263 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17264 | /* confdefs.h. */ |
17265 | _ACEOF | |
17266 | cat confdefs.h >>conftest.$ac_ext | |
17267 | cat >>conftest.$ac_ext <<_ACEOF | |
17268 | /* end confdefs.h. */ | |
17269 | $ac_includes_default | |
17270 | int | |
17271 | main () | |
17272 | { | |
17273 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17274 | test_array [0] = 0 | |
a0b9e27f | 17275 | |
e6cc62c6 VS |
17276 | ; |
17277 | return 0; | |
17278 | } | |
17279 | _ACEOF | |
17280 | rm -f conftest.$ac_objext | |
17281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17282 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17283 | ac_status=$? |
32ddf007 VS |
17284 | grep -v '^ *+' conftest.er1 >conftest.err |
17285 | rm -f conftest.er1 | |
17286 | cat conftest.err >&5 | |
e6cc62c6 VS |
17287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17288 | (exit $ac_status); } && | |
e1293dcf | 17289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17291 | (eval $ac_try) 2>&5 | |
17292 | ac_status=$? | |
17293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17294 | (exit $ac_status); }; } && | |
17295 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17297 | (eval $ac_try) 2>&5 | |
17298 | ac_status=$? | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); }; }; then | |
17301 | ac_lo=$ac_mid; break | |
17302 | else | |
17303 | echo "$as_me: failed program was:" >&5 | |
17304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17305 | ||
17306 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17307 | if test $ac_mid -le $ac_hi; then |
17308 | ac_lo= ac_hi= | |
17309 | break | |
17310 | fi | |
17311 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17312 | fi |
32ddf007 | 17313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17314 | done |
8284b0c5 | 17315 | else |
e6cc62c6 VS |
17316 | echo "$as_me: failed program was:" >&5 |
17317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17318 | ||
17319 | ac_lo= ac_hi= | |
17320 | fi | |
32ddf007 | 17321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17322 | fi |
32ddf007 | 17323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17324 | # Binary search between lo and hi bounds. |
17325 | while test "x$ac_lo" != "x$ac_hi"; do | |
17326 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17327 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17328 | /* confdefs.h. */ |
17329 | _ACEOF | |
17330 | cat confdefs.h >>conftest.$ac_ext | |
17331 | cat >>conftest.$ac_ext <<_ACEOF | |
17332 | /* end confdefs.h. */ | |
17333 | $ac_includes_default | |
17334 | int | |
17335 | main () | |
17336 | { | |
17337 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17338 | test_array [0] = 0 | |
17339 | ||
17340 | ; | |
17341 | return 0; | |
17342 | } | |
17343 | _ACEOF | |
17344 | rm -f conftest.$ac_objext | |
17345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17346 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17347 | ac_status=$? |
32ddf007 VS |
17348 | grep -v '^ *+' conftest.er1 >conftest.err |
17349 | rm -f conftest.er1 | |
17350 | cat conftest.err >&5 | |
e6cc62c6 VS |
17351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17352 | (exit $ac_status); } && | |
e1293dcf | 17353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17355 | (eval $ac_try) 2>&5 | |
17356 | ac_status=$? | |
17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17358 | (exit $ac_status); }; } && | |
17359 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17361 | (eval $ac_try) 2>&5 | |
17362 | ac_status=$? | |
17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17364 | (exit $ac_status); }; }; then | |
17365 | ac_hi=$ac_mid | |
17366 | else | |
17367 | echo "$as_me: failed program was:" >&5 | |
17368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17369 | ||
17370 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17371 | fi | |
32ddf007 | 17372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17373 | done |
17374 | case $ac_lo in | |
17375 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17376 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17377 | See \`config.log' for more details." >&5 | |
17378 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17379 | See \`config.log' for more details." >&2;} | |
17380 | { (exit 1); exit 1; }; } ;; | |
17381 | esac | |
8284b0c5 | 17382 | else |
e6cc62c6 | 17383 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
17384 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17385 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
17386 | { (exit 1); exit 1; }; } |
17387 | else | |
17388 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17389 | /* confdefs.h. */ |
17390 | _ACEOF | |
17391 | cat confdefs.h >>conftest.$ac_ext | |
17392 | cat >>conftest.$ac_ext <<_ACEOF | |
17393 | /* end confdefs.h. */ | |
17394 | $ac_includes_default | |
17395 | long longval () { return (long) (sizeof (long long)); } | |
17396 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 17397 | #include <stdio.h> |
e6cc62c6 VS |
17398 | #include <stdlib.h> |
17399 | int | |
17400 | main () | |
8284b0c5 | 17401 | { |
e6cc62c6 VS |
17402 | |
17403 | FILE *f = fopen ("conftest.val", "w"); | |
17404 | if (! f) | |
17405 | exit (1); | |
17406 | if (((long) (sizeof (long long))) < 0) | |
17407 | { | |
17408 | long i = longval (); | |
17409 | if (i != ((long) (sizeof (long long)))) | |
17410 | exit (1); | |
17411 | fprintf (f, "%ld\n", i); | |
17412 | } | |
17413 | else | |
17414 | { | |
17415 | unsigned long i = ulongval (); | |
17416 | if (i != ((long) (sizeof (long long)))) | |
17417 | exit (1); | |
17418 | fprintf (f, "%lu\n", i); | |
17419 | } | |
17420 | exit (ferror (f) || fclose (f) != 0); | |
17421 | ||
17422 | ; | |
17423 | return 0; | |
8284b0c5 | 17424 | } |
e6cc62c6 VS |
17425 | _ACEOF |
17426 | rm -f conftest$ac_exeext | |
17427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17428 | (eval $ac_link) 2>&5 | |
17429 | ac_status=$? | |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17433 | (eval $ac_try) 2>&5 | |
17434 | ac_status=$? | |
17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17436 | (exit $ac_status); }; }; then | |
17437 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17438 | else | |
17439 | echo "$as_me: program exited with status $ac_status" >&5 | |
17440 | echo "$as_me: failed program was:" >&5 | |
17441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17442 | ||
17443 | ( exit $ac_status ) | |
17444 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17445 | See \`config.log' for more details." >&5 | |
17446 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17447 | See \`config.log' for more details." >&2;} | |
17448 | { (exit 1); exit 1; }; } | |
17449 | fi | |
32ddf007 | 17450 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17451 | fi |
17452 | fi | |
17453 | rm -f conftest.val | |
5c6fa7d2 RR |
17454 | else |
17455 | ac_cv_sizeof_long_long=0 | |
52127426 | 17456 | fi |
4f57cf11 | 17457 | fi |
e6cc62c6 VS |
17458 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17459 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17460 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 17461 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17462 | _ACEOF |
4f57cf11 GD |
17463 | |
17464 | ||
17465 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17466 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17467 | fi | |
17468 | ;; | |
17469 | * ) | |
e6cc62c6 VS |
17470 | echo "$as_me:$LINENO: checking for long long" >&5 |
17471 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17472 | if test "${ac_cv_type_long_long+set}" = set; then | |
17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17474 | else | |
17475 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17476 | /* confdefs.h. */ |
17477 | _ACEOF | |
17478 | cat confdefs.h >>conftest.$ac_ext | |
17479 | cat >>conftest.$ac_ext <<_ACEOF | |
17480 | /* end confdefs.h. */ | |
17481 | $ac_includes_default | |
17482 | int | |
17483 | main () | |
17484 | { | |
17485 | if ((long long *) 0) | |
17486 | return 0; | |
17487 | if (sizeof (long long)) | |
17488 | return 0; | |
17489 | ; | |
17490 | return 0; | |
17491 | } | |
17492 | _ACEOF | |
17493 | rm -f conftest.$ac_objext | |
17494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17495 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17496 | ac_status=$? |
32ddf007 VS |
17497 | grep -v '^ *+' conftest.er1 >conftest.err |
17498 | rm -f conftest.er1 | |
17499 | cat conftest.err >&5 | |
e6cc62c6 VS |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17501 | (exit $ac_status); } && | |
e1293dcf | 17502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17504 | (eval $ac_try) 2>&5 | |
17505 | ac_status=$? | |
17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17507 | (exit $ac_status); }; } && | |
17508 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17510 | (eval $ac_try) 2>&5 | |
17511 | ac_status=$? | |
17512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17513 | (exit $ac_status); }; }; then | |
17514 | ac_cv_type_long_long=yes | |
17515 | else | |
17516 | echo "$as_me: failed program was:" >&5 | |
17517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17518 | ||
17519 | ac_cv_type_long_long=no | |
17520 | fi | |
32ddf007 | 17521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17522 | fi |
17523 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17524 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17525 | ||
17526 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17527 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17528 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17530 | else | |
17531 | if test "$ac_cv_type_long_long" = yes; then | |
17532 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17535 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 17536 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
17537 | # Depending upon the size, compute the lo and hi bounds. |
17538 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17539 | /* confdefs.h. */ |
17540 | _ACEOF | |
17541 | cat confdefs.h >>conftest.$ac_ext | |
17542 | cat >>conftest.$ac_ext <<_ACEOF | |
17543 | /* end confdefs.h. */ | |
17544 | $ac_includes_default | |
17545 | int | |
17546 | main () | |
17547 | { | |
17548 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17549 | test_array [0] = 0 | |
17550 | ||
17551 | ; | |
17552 | return 0; | |
17553 | } | |
17554 | _ACEOF | |
17555 | rm -f conftest.$ac_objext | |
17556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17557 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17558 | ac_status=$? |
32ddf007 VS |
17559 | grep -v '^ *+' conftest.er1 >conftest.err |
17560 | rm -f conftest.er1 | |
17561 | cat conftest.err >&5 | |
e6cc62c6 VS |
17562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17563 | (exit $ac_status); } && | |
e1293dcf | 17564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17566 | (eval $ac_try) 2>&5 | |
17567 | ac_status=$? | |
17568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17569 | (exit $ac_status); }; } && | |
17570 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17572 | (eval $ac_try) 2>&5 | |
17573 | ac_status=$? | |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); }; }; then | |
17576 | ac_lo=0 ac_mid=0 | |
17577 | while :; do | |
17578 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17579 | /* confdefs.h. */ |
17580 | _ACEOF | |
17581 | cat confdefs.h >>conftest.$ac_ext | |
17582 | cat >>conftest.$ac_ext <<_ACEOF | |
17583 | /* end confdefs.h. */ | |
17584 | $ac_includes_default | |
17585 | int | |
17586 | main () | |
17587 | { | |
17588 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17589 | test_array [0] = 0 | |
17590 | ||
17591 | ; | |
17592 | return 0; | |
17593 | } | |
17594 | _ACEOF | |
17595 | rm -f conftest.$ac_objext | |
17596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17597 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17598 | ac_status=$? |
32ddf007 VS |
17599 | grep -v '^ *+' conftest.er1 >conftest.err |
17600 | rm -f conftest.er1 | |
17601 | cat conftest.err >&5 | |
e6cc62c6 VS |
17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17603 | (exit $ac_status); } && | |
e1293dcf | 17604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17606 | (eval $ac_try) 2>&5 | |
17607 | ac_status=$? | |
17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17609 | (exit $ac_status); }; } && | |
17610 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17612 | (eval $ac_try) 2>&5 | |
17613 | ac_status=$? | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); }; }; then | |
17616 | ac_hi=$ac_mid; break | |
17617 | else | |
17618 | echo "$as_me: failed program was:" >&5 | |
17619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17620 | ||
17621 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17622 | if test $ac_lo -le $ac_mid; then |
17623 | ac_lo= ac_hi= | |
17624 | break | |
17625 | fi | |
17626 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 17627 | fi |
32ddf007 | 17628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17629 | done |
17630 | else | |
17631 | echo "$as_me: failed program was:" >&5 | |
17632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17633 | ||
17634 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17635 | /* confdefs.h. */ |
17636 | _ACEOF | |
17637 | cat confdefs.h >>conftest.$ac_ext | |
17638 | cat >>conftest.$ac_ext <<_ACEOF | |
17639 | /* end confdefs.h. */ | |
17640 | $ac_includes_default | |
17641 | int | |
17642 | main () | |
17643 | { | |
17644 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17645 | test_array [0] = 0 | |
17646 | ||
17647 | ; | |
17648 | return 0; | |
17649 | } | |
17650 | _ACEOF | |
17651 | rm -f conftest.$ac_objext | |
17652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17653 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17654 | ac_status=$? |
32ddf007 VS |
17655 | grep -v '^ *+' conftest.er1 >conftest.err |
17656 | rm -f conftest.er1 | |
17657 | cat conftest.err >&5 | |
e6cc62c6 VS |
17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17659 | (exit $ac_status); } && | |
e1293dcf | 17660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17662 | (eval $ac_try) 2>&5 | |
17663 | ac_status=$? | |
17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17665 | (exit $ac_status); }; } && | |
17666 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17668 | (eval $ac_try) 2>&5 | |
17669 | ac_status=$? | |
17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17671 | (exit $ac_status); }; }; then | |
17672 | ac_hi=-1 ac_mid=-1 | |
17673 | while :; do | |
17674 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17675 | /* confdefs.h. */ |
17676 | _ACEOF | |
17677 | cat confdefs.h >>conftest.$ac_ext | |
17678 | cat >>conftest.$ac_ext <<_ACEOF | |
17679 | /* end confdefs.h. */ | |
17680 | $ac_includes_default | |
17681 | int | |
17682 | main () | |
17683 | { | |
17684 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17685 | test_array [0] = 0 | |
17686 | ||
17687 | ; | |
17688 | return 0; | |
17689 | } | |
17690 | _ACEOF | |
17691 | rm -f conftest.$ac_objext | |
17692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17693 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17694 | ac_status=$? |
32ddf007 VS |
17695 | grep -v '^ *+' conftest.er1 >conftest.err |
17696 | rm -f conftest.er1 | |
17697 | cat conftest.err >&5 | |
e6cc62c6 VS |
17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17699 | (exit $ac_status); } && | |
e1293dcf | 17700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17702 | (eval $ac_try) 2>&5 | |
17703 | ac_status=$? | |
17704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17705 | (exit $ac_status); }; } && | |
17706 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17708 | (eval $ac_try) 2>&5 | |
17709 | ac_status=$? | |
17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17711 | (exit $ac_status); }; }; then | |
17712 | ac_lo=$ac_mid; break | |
17713 | else | |
17714 | echo "$as_me: failed program was:" >&5 | |
17715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17716 | ||
17717 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17718 | if test $ac_mid -le $ac_hi; then |
17719 | ac_lo= ac_hi= | |
17720 | break | |
17721 | fi | |
17722 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17723 | fi |
32ddf007 | 17724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17725 | done |
4f57cf11 | 17726 | else |
e6cc62c6 VS |
17727 | echo "$as_me: failed program was:" >&5 |
17728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17729 | ||
17730 | ac_lo= ac_hi= | |
17731 | fi | |
32ddf007 | 17732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17733 | fi |
32ddf007 | 17734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17735 | # Binary search between lo and hi bounds. |
17736 | while test "x$ac_lo" != "x$ac_hi"; do | |
17737 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17738 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17739 | /* confdefs.h. */ |
17740 | _ACEOF | |
17741 | cat confdefs.h >>conftest.$ac_ext | |
17742 | cat >>conftest.$ac_ext <<_ACEOF | |
17743 | /* end confdefs.h. */ | |
17744 | $ac_includes_default | |
17745 | int | |
17746 | main () | |
17747 | { | |
17748 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17749 | test_array [0] = 0 | |
17750 | ||
17751 | ; | |
17752 | return 0; | |
17753 | } | |
17754 | _ACEOF | |
17755 | rm -f conftest.$ac_objext | |
17756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17757 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17758 | ac_status=$? |
32ddf007 VS |
17759 | grep -v '^ *+' conftest.er1 >conftest.err |
17760 | rm -f conftest.er1 | |
17761 | cat conftest.err >&5 | |
e6cc62c6 VS |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17763 | (exit $ac_status); } && | |
e1293dcf | 17764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
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); }; } && | |
17770 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17772 | (eval $ac_try) 2>&5 | |
17773 | ac_status=$? | |
17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17775 | (exit $ac_status); }; }; then | |
17776 | ac_hi=$ac_mid | |
17777 | else | |
17778 | echo "$as_me: failed program was:" >&5 | |
17779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17780 | ||
17781 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17782 | fi | |
32ddf007 | 17783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17784 | done |
17785 | case $ac_lo in | |
17786 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17787 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17788 | See \`config.log' for more details." >&5 | |
17789 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17790 | See \`config.log' for more details." >&2;} | |
17791 | { (exit 1); exit 1; }; } ;; | |
17792 | esac | |
17793 | else | |
17794 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
17795 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17796 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
17797 | { (exit 1); exit 1; }; } |
17798 | else | |
17799 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17800 | /* confdefs.h. */ |
17801 | _ACEOF | |
17802 | cat confdefs.h >>conftest.$ac_ext | |
17803 | cat >>conftest.$ac_ext <<_ACEOF | |
17804 | /* end confdefs.h. */ | |
17805 | $ac_includes_default | |
17806 | long longval () { return (long) (sizeof (long long)); } | |
17807 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17808 | #include <stdio.h> |
e6cc62c6 VS |
17809 | #include <stdlib.h> |
17810 | int | |
17811 | main () | |
4f57cf11 | 17812 | { |
e6cc62c6 VS |
17813 | |
17814 | FILE *f = fopen ("conftest.val", "w"); | |
17815 | if (! f) | |
17816 | exit (1); | |
17817 | if (((long) (sizeof (long long))) < 0) | |
17818 | { | |
17819 | long i = longval (); | |
17820 | if (i != ((long) (sizeof (long long)))) | |
17821 | exit (1); | |
17822 | fprintf (f, "%ld\n", i); | |
17823 | } | |
17824 | else | |
17825 | { | |
17826 | unsigned long i = ulongval (); | |
17827 | if (i != ((long) (sizeof (long long)))) | |
17828 | exit (1); | |
17829 | fprintf (f, "%lu\n", i); | |
17830 | } | |
17831 | exit (ferror (f) || fclose (f) != 0); | |
17832 | ||
17833 | ; | |
17834 | return 0; | |
4f57cf11 | 17835 | } |
e6cc62c6 VS |
17836 | _ACEOF |
17837 | rm -f conftest$ac_exeext | |
17838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17839 | (eval $ac_link) 2>&5 | |
17840 | ac_status=$? | |
17841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17844 | (eval $ac_try) 2>&5 | |
17845 | ac_status=$? | |
17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17847 | (exit $ac_status); }; }; then | |
17848 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17849 | else | |
17850 | echo "$as_me: program exited with status $ac_status" >&5 | |
17851 | echo "$as_me: failed program was:" >&5 | |
17852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17853 | ||
17854 | ( exit $ac_status ) | |
17855 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17856 | See \`config.log' for more details." >&5 | |
17857 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17858 | See \`config.log' for more details." >&2;} | |
17859 | { (exit 1); exit 1; }; } | |
17860 | fi | |
32ddf007 | 17861 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17862 | fi |
17863 | fi | |
17864 | rm -f conftest.val | |
4f57cf11 | 17865 | else |
4f57cf11 GD |
17866 | ac_cv_sizeof_long_long=0 |
17867 | fi | |
7b4a847f | 17868 | fi |
e6cc62c6 VS |
17869 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17870 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17871 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17872 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17873 | _ACEOF |
9e691f46 | 17874 | |
8284b0c5 | 17875 | |
21d1c967 GD |
17876 | esac |
17877 | ||
e6cc62c6 VS |
17878 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17879 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17880 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17882 | else |
e6cc62c6 | 17883 | |
21d1c967 | 17884 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17885 | |
2b5f62a0 VZ |
17886 | case "${host}" in |
17887 | *-pc-msdosdjgpp ) | |
17888 | wx_cv_sizeof_wchar_t=0 | |
17889 | ;; | |
17890 | * ) | |
17891 | wx_cv_sizeof_wchar_t=4 | |
17892 | ;; | |
17893 | esac | |
e6cc62c6 VS |
17894 | |
17895 | ||
6f72b082 | 17896 | else |
e6cc62c6 | 17897 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17898 | /* confdefs.h. */ |
17899 | _ACEOF | |
17900 | cat confdefs.h >>conftest.$ac_ext | |
17901 | cat >>conftest.$ac_ext <<_ACEOF | |
17902 | /* end confdefs.h. */ | |
21d1c967 | 17903 | |
2b5f62a0 VZ |
17904 | /* DJGPP only has fake wchar_t: */ |
17905 | #ifdef __DJGPP__ | |
17906 | # error "fake wchar_t" | |
17907 | #endif | |
21d1c967 GD |
17908 | #ifdef HAVE_WCHAR_H |
17909 | # ifdef __CYGWIN__ | |
17910 | # include <stddef.h> | |
17911 | # endif | |
17912 | # include <wchar.h> | |
17913 | #endif | |
17914 | #ifdef HAVE_STDLIB_H | |
17915 | # include <stdlib.h> | |
17916 | #endif | |
17917 | #include <stdio.h> | |
17918 | int main() | |
17919 | { | |
17920 | FILE *f=fopen("conftestval", "w"); | |
17921 | if (!f) exit(1); | |
17922 | fprintf(f, "%i", sizeof(wchar_t)); | |
17923 | exit(0); | |
17924 | } | |
e6cc62c6 VS |
17925 | |
17926 | _ACEOF | |
17927 | rm -f conftest$ac_exeext | |
17928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17929 | (eval $ac_link) 2>&5 | |
17930 | ac_status=$? | |
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17934 | (eval $ac_try) 2>&5 | |
17935 | ac_status=$? | |
17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17937 | (exit $ac_status); }; }; then | |
21d1c967 | 17938 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 17939 | else |
e6cc62c6 VS |
17940 | echo "$as_me: program exited with status $ac_status" >&5 |
17941 | echo "$as_me: failed program was:" >&5 | |
17942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17943 | ||
17944 | ( exit $ac_status ) | |
17945 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 17946 | fi |
32ddf007 | 17947 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 17948 | fi |
6f72b082 | 17949 | |
3f345b47 | 17950 | fi |
e6cc62c6 VS |
17951 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
17952 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 17953 | |
e6cc62c6 | 17954 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17955 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 17956 | _ACEOF |
90dd450c | 17957 | |
8284b0c5 | 17958 | |
21d1c967 GD |
17959 | # Check whether --enable-largefile or --disable-largefile was given. |
17960 | if test "${enable_largefile+set}" = set; then | |
17961 | enableval="$enable_largefile" | |
3f345b47 | 17962 | |
e6cc62c6 | 17963 | fi; |
21d1c967 GD |
17964 | if test "$enable_largefile" != no; then |
17965 | wx_largefile=no | |
e6cc62c6 VS |
17966 | |
17967 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17968 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17969 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17971 | else | |
17972 | ||
17973 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17974 | /* confdefs.h. */ |
17975 | _ACEOF | |
17976 | cat confdefs.h >>conftest.$ac_ext | |
17977 | cat >>conftest.$ac_ext <<_ACEOF | |
17978 | /* end confdefs.h. */ | |
21d1c967 GD |
17979 | #define _FILE_OFFSET_BITS 64 |
17980 | #include <sys/types.h> | |
e6cc62c6 VS |
17981 | int |
17982 | main () | |
17983 | { | |
21d1c967 GD |
17984 | typedef struct { |
17985 | unsigned int field: sizeof(off_t) == 8; | |
17986 | } wxlf; | |
17987 | ||
e6cc62c6 VS |
17988 | ; |
17989 | return 0; | |
17990 | } | |
17991 | _ACEOF | |
17992 | rm -f conftest.$ac_objext | |
17993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17994 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17995 | ac_status=$? |
32ddf007 VS |
17996 | grep -v '^ *+' conftest.er1 >conftest.err |
17997 | rm -f conftest.er1 | |
17998 | cat conftest.err >&5 | |
e6cc62c6 VS |
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18000 | (exit $ac_status); } && | |
e1293dcf | 18001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18003 | (eval $ac_try) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); }; } && | |
18007 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18009 | (eval $ac_try) 2>&5 | |
18010 | ac_status=$? | |
18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18012 | (exit $ac_status); }; }; then | |
21d1c967 | 18013 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 18014 | else |
e6cc62c6 VS |
18015 | echo "$as_me: failed program was:" >&5 |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 18019 | fi |
32ddf007 | 18020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18021 | |
a0b9e27f | 18022 | |
e6cc62c6 VS |
18023 | fi |
18024 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18025 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
18026 | |
18027 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18028 | wx_largefile=yes | |
e6cc62c6 | 18029 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18030 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 18031 | _ACEOF |
21d1c967 GD |
18032 | |
18033 | fi | |
18034 | ||
18035 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
18036 | |
18037 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18038 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18039 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18041 | else | |
18042 | ||
18043 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18044 | /* confdefs.h. */ |
18045 | _ACEOF | |
18046 | cat confdefs.h >>conftest.$ac_ext | |
18047 | cat >>conftest.$ac_ext <<_ACEOF | |
18048 | /* end confdefs.h. */ | |
21d1c967 GD |
18049 | #define _LARGE_FILES 1 |
18050 | #include <sys/types.h> | |
e6cc62c6 VS |
18051 | int |
18052 | main () | |
18053 | { | |
21d1c967 GD |
18054 | typedef struct { |
18055 | unsigned int field: sizeof(off_t) == 8; | |
18056 | } wxlf; | |
18057 | ||
e6cc62c6 VS |
18058 | ; |
18059 | return 0; | |
18060 | } | |
18061 | _ACEOF | |
18062 | rm -f conftest.$ac_objext | |
18063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18064 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18065 | ac_status=$? |
32ddf007 VS |
18066 | grep -v '^ *+' conftest.er1 >conftest.err |
18067 | rm -f conftest.er1 | |
18068 | cat conftest.err >&5 | |
e6cc62c6 VS |
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18070 | (exit $ac_status); } && | |
e1293dcf | 18071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18073 | (eval $ac_try) 2>&5 | |
18074 | ac_status=$? | |
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18076 | (exit $ac_status); }; } && | |
18077 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18079 | (eval $ac_try) 2>&5 | |
18080 | ac_status=$? | |
18081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18082 | (exit $ac_status); }; }; then | |
21d1c967 | 18083 | ac_cv_sys_large_files=1 |
f6bcfd97 | 18084 | else |
e6cc62c6 VS |
18085 | echo "$as_me: failed program was:" >&5 |
18086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18087 | ||
18088 | ac_cv_sys_large_files=no | |
247f5006 | 18089 | fi |
32ddf007 | 18090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18091 | |
e6cc62c6 VS |
18092 | |
18093 | fi | |
18094 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18095 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 18096 | |
21d1c967 GD |
18097 | if test "$ac_cv_sys_large_files" != no; then |
18098 | wx_largefile=yes | |
e6cc62c6 | 18099 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18100 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 18101 | _ACEOF |
90dd450c | 18102 | |
90dd450c VZ |
18103 | fi |
18104 | ||
90dd450c | 18105 | fi |
90dd450c | 18106 | |
e6cc62c6 VS |
18107 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
18108 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 18109 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 18110 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18111 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 18112 | _ACEOF |
90dd450c | 18113 | |
90dd450c | 18114 | fi |
e6cc62c6 VS |
18115 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
18116 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 18117 | fi |
90dd450c | 18118 | |
8284b0c5 | 18119 | |
f02444d0 | 18120 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
18121 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
18122 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 18123 | else |
e26c13cf | 18124 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 18125 | fi |
e26c13cf | 18126 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
18127 | fi |
18128 | ||
e6cc62c6 VS |
18129 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
18130 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18131 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 18133 | else |
21d1c967 GD |
18134 | ac_cv_c_bigendian=unknown |
18135 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 18136 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18137 | /* confdefs.h. */ |
18138 | _ACEOF | |
18139 | cat confdefs.h >>conftest.$ac_ext | |
18140 | cat >>conftest.$ac_ext <<_ACEOF | |
18141 | /* end confdefs.h. */ | |
21d1c967 GD |
18142 | #include <sys/types.h> |
18143 | #include <sys/param.h> | |
e6cc62c6 VS |
18144 | int |
18145 | main () | |
18146 | { | |
21d1c967 GD |
18147 | |
18148 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18149 | bogus endian macros | |
18150 | #endif | |
e6cc62c6 VS |
18151 | ; |
18152 | return 0; | |
18153 | } | |
18154 | _ACEOF | |
18155 | rm -f conftest.$ac_objext | |
18156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18157 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18158 | ac_status=$? |
32ddf007 VS |
18159 | grep -v '^ *+' conftest.er1 >conftest.err |
18160 | rm -f conftest.er1 | |
18161 | cat conftest.err >&5 | |
e6cc62c6 VS |
18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18163 | (exit $ac_status); } && | |
e1293dcf | 18164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18166 | (eval $ac_try) 2>&5 | |
18167 | ac_status=$? | |
18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18169 | (exit $ac_status); }; } && | |
18170 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18172 | (eval $ac_try) 2>&5 | |
18173 | ac_status=$? | |
18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18175 | (exit $ac_status); }; }; then | |
21d1c967 | 18176 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 18177 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18178 | /* confdefs.h. */ |
18179 | _ACEOF | |
18180 | cat confdefs.h >>conftest.$ac_ext | |
18181 | cat >>conftest.$ac_ext <<_ACEOF | |
18182 | /* end confdefs.h. */ | |
21d1c967 GD |
18183 | #include <sys/types.h> |
18184 | #include <sys/param.h> | |
e6cc62c6 VS |
18185 | int |
18186 | main () | |
18187 | { | |
21d1c967 GD |
18188 | |
18189 | #if BYTE_ORDER != BIG_ENDIAN | |
18190 | not big endian | |
18191 | #endif | |
e6cc62c6 VS |
18192 | ; |
18193 | return 0; | |
18194 | } | |
18195 | _ACEOF | |
18196 | rm -f conftest.$ac_objext | |
18197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18198 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18199 | ac_status=$? |
32ddf007 VS |
18200 | grep -v '^ *+' conftest.er1 >conftest.err |
18201 | rm -f conftest.er1 | |
18202 | cat conftest.err >&5 | |
e6cc62c6 VS |
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18204 | (exit $ac_status); } && | |
e1293dcf | 18205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18207 | (eval $ac_try) 2>&5 | |
18208 | ac_status=$? | |
18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18210 | (exit $ac_status); }; } && | |
18211 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18213 | (eval $ac_try) 2>&5 | |
18214 | ac_status=$? | |
18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18216 | (exit $ac_status); }; }; then | |
21d1c967 | 18217 | ac_cv_c_bigendian=yes |
3f345b47 | 18218 | else |
e6cc62c6 VS |
18219 | echo "$as_me: failed program was:" >&5 |
18220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18221 | ||
18222 | ac_cv_c_bigendian=no | |
3f345b47 | 18223 | fi |
32ddf007 | 18224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 18225 | else |
e6cc62c6 VS |
18226 | echo "$as_me: failed program was:" >&5 |
18227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18228 | ||
3f345b47 | 18229 | fi |
32ddf007 | 18230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18231 | if test $ac_cv_c_bigendian = unknown; then |
18232 | if test "$cross_compiling" = yes; then | |
18233 | ac_cv_c_bigendian=unknown | |
10f2d63a | 18234 | else |
e6cc62c6 | 18235 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18236 | /* confdefs.h. */ |
18237 | _ACEOF | |
18238 | cat confdefs.h >>conftest.$ac_ext | |
18239 | cat >>conftest.$ac_ext <<_ACEOF | |
18240 | /* end confdefs.h. */ | |
21d1c967 GD |
18241 | main () { |
18242 | /* Are we little or big endian? From Harbison&Steele. */ | |
18243 | union | |
18244 | { | |
18245 | long l; | |
18246 | char c[sizeof (long)]; | |
18247 | } u; | |
18248 | u.l = 1; | |
18249 | exit (u.c[sizeof (long) - 1] == 1); | |
18250 | } | |
e6cc62c6 VS |
18251 | _ACEOF |
18252 | rm -f conftest$ac_exeext | |
18253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18254 | (eval $ac_link) 2>&5 | |
18255 | ac_status=$? | |
18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18259 | (eval $ac_try) 2>&5 | |
18260 | ac_status=$? | |
18261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18262 | (exit $ac_status); }; }; then | |
21d1c967 | 18263 | ac_cv_c_bigendian=no |
3f345b47 | 18264 | else |
e6cc62c6 VS |
18265 | echo "$as_me: program exited with status $ac_status" >&5 |
18266 | echo "$as_me: failed program was:" >&5 | |
18267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18268 | ||
18269 | ( exit $ac_status ) | |
18270 | ac_cv_c_bigendian=yes | |
247f5006 | 18271 | fi |
32ddf007 | 18272 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 18273 | fi |
3f345b47 | 18274 | fi |
8168de4c | 18275 | fi |
e6cc62c6 VS |
18276 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
18277 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 18278 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
18279 | { 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 |
18280 | 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;} | |
247f5006 VZ |
18281 | fi |
18282 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 18283 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 18284 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 18285 | _ACEOF |
247f5006 VZ |
18286 | |
18287 | fi | |
18288 | ||
18289 | ||
e6cc62c6 VS |
18290 | ac_ext=cc |
18291 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18295 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18296 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 18297 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
18298 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
18299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18300 | else | |
18301 | # Double quotes because CXXCPP needs to be expanded | |
18302 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18303 | do | |
18304 | ac_preproc_ok=false | |
18305 | for ac_cxx_preproc_warn_flag in '' yes | |
18306 | do | |
18307 | # Use a header file that comes with gcc, so configuring glibc | |
18308 | # with a fresh cross-compiler works. | |
18309 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18310 | # <limits.h> exists even on freestanding compilers. | |
18311 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18312 | # not just through cpp. "Syntax error" is here to catch this case. | |
18313 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18314 | /* confdefs.h. */ |
18315 | _ACEOF | |
18316 | cat confdefs.h >>conftest.$ac_ext | |
18317 | cat >>conftest.$ac_ext <<_ACEOF | |
18318 | /* end confdefs.h. */ | |
18319 | #ifdef __STDC__ | |
18320 | # include <limits.h> | |
18321 | #else | |
18322 | # include <assert.h> | |
18323 | #endif | |
32ddf007 | 18324 | Syntax error |
e6cc62c6 VS |
18325 | _ACEOF |
18326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18328 | ac_status=$? | |
18329 | grep -v '^ *+' conftest.er1 >conftest.err | |
18330 | rm -f conftest.er1 | |
18331 | cat conftest.err >&5 | |
18332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18333 | (exit $ac_status); } >/dev/null; then | |
18334 | if test -s conftest.err; then | |
18335 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18336 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18337 | else |
18338 | ac_cpp_err= | |
18339 | fi | |
247f5006 | 18340 | else |
e6cc62c6 VS |
18341 | ac_cpp_err=yes |
18342 | fi | |
18343 | if test -z "$ac_cpp_err"; then | |
18344 | : | |
18345 | else | |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
18349 | # Broken: fails on valid input. | |
18350 | continue | |
18351 | fi | |
18352 | rm -f conftest.err conftest.$ac_ext | |
18353 | ||
18354 | # OK, works on sane cases. Now check whether non-existent headers | |
18355 | # can be detected and how. | |
18356 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18357 | /* confdefs.h. */ |
18358 | _ACEOF | |
18359 | cat confdefs.h >>conftest.$ac_ext | |
18360 | cat >>conftest.$ac_ext <<_ACEOF | |
18361 | /* end confdefs.h. */ | |
18362 | #include <ac_nonexistent.h> | |
18363 | _ACEOF | |
18364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18366 | ac_status=$? | |
18367 | grep -v '^ *+' conftest.er1 >conftest.err | |
18368 | rm -f conftest.er1 | |
18369 | cat conftest.err >&5 | |
18370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18371 | (exit $ac_status); } >/dev/null; then | |
18372 | if test -s conftest.err; then | |
18373 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18374 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18375 | else |
18376 | ac_cpp_err= | |
18377 | fi | |
18378 | else | |
18379 | ac_cpp_err=yes | |
18380 | fi | |
18381 | if test -z "$ac_cpp_err"; then | |
18382 | # Broken: success on invalid input. | |
18383 | continue | |
18384 | else | |
18385 | echo "$as_me: failed program was:" >&5 | |
18386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18387 | ||
18388 | # Passes both tests. | |
18389 | ac_preproc_ok=: | |
18390 | break | |
18391 | fi | |
18392 | rm -f conftest.err conftest.$ac_ext | |
18393 | ||
18394 | done | |
18395 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18396 | rm -f conftest.err conftest.$ac_ext | |
18397 | if $ac_preproc_ok; then | |
18398 | break | |
18399 | fi | |
18400 | ||
18401 | done | |
18402 | ac_cv_prog_CXXCPP=$CXXCPP | |
18403 | ||
18404 | fi | |
18405 | CXXCPP=$ac_cv_prog_CXXCPP | |
18406 | else | |
18407 | ac_cv_prog_CXXCPP=$CXXCPP | |
18408 | fi | |
18409 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18410 | echo "${ECHO_T}$CXXCPP" >&6 | |
18411 | ac_preproc_ok=false | |
18412 | for ac_cxx_preproc_warn_flag in '' yes | |
18413 | do | |
18414 | # Use a header file that comes with gcc, so configuring glibc | |
18415 | # with a fresh cross-compiler works. | |
18416 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18417 | # <limits.h> exists even on freestanding compilers. | |
18418 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18419 | # not just through cpp. "Syntax error" is here to catch this case. | |
18420 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18421 | /* confdefs.h. */ |
18422 | _ACEOF | |
18423 | cat confdefs.h >>conftest.$ac_ext | |
18424 | cat >>conftest.$ac_ext <<_ACEOF | |
18425 | /* end confdefs.h. */ | |
18426 | #ifdef __STDC__ | |
18427 | # include <limits.h> | |
18428 | #else | |
18429 | # include <assert.h> | |
18430 | #endif | |
32ddf007 | 18431 | Syntax error |
e6cc62c6 VS |
18432 | _ACEOF |
18433 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18434 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18435 | ac_status=$? | |
18436 | grep -v '^ *+' conftest.er1 >conftest.err | |
18437 | rm -f conftest.er1 | |
18438 | cat conftest.err >&5 | |
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18440 | (exit $ac_status); } >/dev/null; then | |
18441 | if test -s conftest.err; then | |
18442 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18443 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18444 | else |
18445 | ac_cpp_err= | |
18446 | fi | |
18447 | else | |
18448 | ac_cpp_err=yes | |
18449 | fi | |
18450 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 18451 | : |
698dcdb6 | 18452 | else |
e6cc62c6 VS |
18453 | echo "$as_me: failed program was:" >&5 |
18454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18455 | ||
18456 | # Broken: fails on valid input. | |
18457 | continue | |
18458 | fi | |
18459 | rm -f conftest.err conftest.$ac_ext | |
18460 | ||
18461 | # OK, works on sane cases. Now check whether non-existent headers | |
18462 | # can be detected and how. | |
18463 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18464 | /* confdefs.h. */ |
18465 | _ACEOF | |
18466 | cat confdefs.h >>conftest.$ac_ext | |
18467 | cat >>conftest.$ac_ext <<_ACEOF | |
18468 | /* end confdefs.h. */ | |
18469 | #include <ac_nonexistent.h> | |
18470 | _ACEOF | |
18471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18473 | ac_status=$? | |
18474 | grep -v '^ *+' conftest.er1 >conftest.err | |
18475 | rm -f conftest.er1 | |
18476 | cat conftest.err >&5 | |
18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18478 | (exit $ac_status); } >/dev/null; then | |
18479 | if test -s conftest.err; then | |
18480 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18481 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18482 | else |
18483 | ac_cpp_err= | |
18484 | fi | |
18485 | else | |
18486 | ac_cpp_err=yes | |
247f5006 | 18487 | fi |
e6cc62c6 VS |
18488 | if test -z "$ac_cpp_err"; then |
18489 | # Broken: success on invalid input. | |
18490 | continue | |
18491 | else | |
18492 | echo "$as_me: failed program was:" >&5 | |
18493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18494 | ||
18495 | # Passes both tests. | |
18496 | ac_preproc_ok=: | |
18497 | break | |
328a083c | 18498 | fi |
e6cc62c6 VS |
18499 | rm -f conftest.err conftest.$ac_ext |
18500 | ||
18501 | done | |
18502 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18503 | rm -f conftest.err conftest.$ac_ext | |
18504 | if $ac_preproc_ok; then | |
18505 | : | |
18506 | else | |
18507 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18508 | See \`config.log' for more details." >&5 | |
18509 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18510 | See \`config.log' for more details." >&2;} | |
18511 | { (exit 1); exit 1; }; } | |
90dd450c | 18512 | fi |
e6cc62c6 VS |
18513 | |
18514 | ac_ext=cc | |
18515 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18516 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18517 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18518 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18519 | ||
1e6feb95 | 18520 | |
1725144d | 18521 | |
21d1c967 | 18522 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 18523 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18524 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18525 | _ACEOF |
ab9b9eab | 18526 | |
21d1c967 | 18527 | else |
e6cc62c6 VS |
18528 | |
18529 | ||
18530 | ac_ext=cc | |
5c6fa7d2 | 18531 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18535 | ||
52127426 | 18536 | |
247f5006 | 18537 | |
e6cc62c6 | 18538 | for ac_header in iostream |
21d1c967 | 18539 | do |
e6cc62c6 VS |
18540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18546 | fi | |
18547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18549 | else | |
18550 | # Is the header compilable? | |
18551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18553 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18554 | /* confdefs.h. */ |
18555 | _ACEOF | |
18556 | cat confdefs.h >>conftest.$ac_ext | |
18557 | cat >>conftest.$ac_ext <<_ACEOF | |
18558 | /* end confdefs.h. */ | |
18559 | $ac_includes_default | |
18560 | #include <$ac_header> | |
18561 | _ACEOF | |
18562 | rm -f conftest.$ac_objext | |
18563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18564 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18565 | ac_status=$? |
32ddf007 VS |
18566 | grep -v '^ *+' conftest.er1 >conftest.err |
18567 | rm -f conftest.er1 | |
18568 | cat conftest.err >&5 | |
e6cc62c6 VS |
18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18570 | (exit $ac_status); } && | |
e1293dcf | 18571 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18573 | (eval $ac_try) 2>&5 | |
18574 | ac_status=$? | |
18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18576 | (exit $ac_status); }; } && | |
18577 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18579 | (eval $ac_try) 2>&5 | |
18580 | ac_status=$? | |
18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18582 | (exit $ac_status); }; }; then | |
18583 | ac_header_compiler=yes | |
18584 | else | |
18585 | echo "$as_me: failed program was:" >&5 | |
18586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18587 | ||
18588 | ac_header_compiler=no | |
18589 | fi | |
32ddf007 | 18590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18591 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18592 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18593 | ||
18594 | # Is the header present? | |
18595 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18596 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18597 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18598 | /* confdefs.h. */ |
18599 | _ACEOF | |
18600 | cat confdefs.h >>conftest.$ac_ext | |
18601 | cat >>conftest.$ac_ext <<_ACEOF | |
18602 | /* end confdefs.h. */ | |
18603 | #include <$ac_header> | |
18604 | _ACEOF | |
18605 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18606 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18607 | ac_status=$? | |
18608 | grep -v '^ *+' conftest.er1 >conftest.err | |
18609 | rm -f conftest.er1 | |
18610 | cat conftest.err >&5 | |
18611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18612 | (exit $ac_status); } >/dev/null; then | |
18613 | if test -s conftest.err; then | |
18614 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18615 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18616 | else |
18617 | ac_cpp_err= | |
18618 | fi | |
18619 | else | |
18620 | ac_cpp_err=yes | |
18621 | fi | |
18622 | if test -z "$ac_cpp_err"; then | |
18623 | ac_header_preproc=yes | |
18624 | else | |
18625 | echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | ac_header_preproc=no | |
18629 | fi | |
18630 | rm -f conftest.err conftest.$ac_ext | |
18631 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18632 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18633 | ||
18634 | # So? What about this header? | |
32ddf007 VS |
18635 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18636 | yes:no: ) | |
e6cc62c6 VS |
18637 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18638 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
18639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18640 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18641 | ac_header_preproc=yes | |
e6cc62c6 | 18642 | ;; |
32ddf007 | 18643 | no:yes:* ) |
e6cc62c6 VS |
18644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
18646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18648 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18649 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18650 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18651 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
18652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18653 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
18654 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18655 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
18656 | ( |
18657 | cat <<\_ASBOX | |
32ddf007 VS |
18658 | ## ----------------------------------------- ## |
18659 | ## Report this to wx-dev@lists.wxwindows.org ## | |
18660 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
18661 | _ASBOX |
18662 | ) | | |
18663 | sed "s/^/$as_me: WARNING: /" >&2 | |
18664 | ;; | |
18665 | esac | |
18666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18670 | else | |
32ddf007 | 18671 | eval "$as_ac_Header=\$ac_header_preproc" |
ab9b9eab | 18672 | fi |
e6cc62c6 VS |
18673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18674 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18675 | ||
90dd450c | 18676 | fi |
e6cc62c6 VS |
18677 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18678 | cat >>confdefs.h <<_ACEOF | |
18679 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18680 | _ACEOF | |
18681 | ||
90dd450c | 18682 | fi |
e6cc62c6 | 18683 | |
21d1c967 | 18684 | done |
10f2d63a | 18685 | |
8284b0c5 | 18686 | |
21d1c967 GD |
18687 | if test "$ac_cv_header_iostream" = "yes" ; then |
18688 | : | |
18689 | else | |
e6cc62c6 | 18690 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18691 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18692 | _ACEOF |
788deba1 | 18693 | |
90dd450c | 18694 | fi |
ab9b9eab | 18695 | |
21d1c967 | 18696 | ac_ext=c |
21d1c967 | 18697 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 18701 | |
21d1c967 | 18702 | fi |
ab9b9eab | 18703 | |
52127426 | 18704 | |
8284b0c5 | 18705 | |
e6cc62c6 VS |
18706 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
18707 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18708 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18710 | else |
e6cc62c6 VS |
18711 | |
18712 | ||
18713 | ||
18714 | ac_ext=cc | |
5c6fa7d2 | 18715 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18716 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18717 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18718 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 18719 | |
8284b0c5 | 18720 | |
e6cc62c6 | 18721 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18722 | /* confdefs.h. */ |
18723 | _ACEOF | |
18724 | cat confdefs.h >>conftest.$ac_ext | |
18725 | cat >>conftest.$ac_ext <<_ACEOF | |
18726 | /* end confdefs.h. */ | |
21d1c967 | 18727 | |
e6cc62c6 VS |
18728 | |
18729 | int | |
18730 | main () | |
18731 | { | |
21d1c967 GD |
18732 | |
18733 | bool b = true; | |
18734 | ||
18735 | return 0; | |
e6cc62c6 VS |
18736 | |
18737 | ; | |
18738 | return 0; | |
18739 | } | |
18740 | _ACEOF | |
18741 | rm -f conftest.$ac_objext | |
18742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18743 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18744 | ac_status=$? |
32ddf007 VS |
18745 | grep -v '^ *+' conftest.er1 >conftest.err |
18746 | rm -f conftest.er1 | |
18747 | cat conftest.err >&5 | |
e6cc62c6 VS |
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18749 | (exit $ac_status); } && | |
e1293dcf | 18750 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18752 | (eval $ac_try) 2>&5 | |
18753 | ac_status=$? | |
18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18755 | (exit $ac_status); }; } && | |
18756 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18758 | (eval $ac_try) 2>&5 | |
18759 | ac_status=$? | |
18760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18761 | (exit $ac_status); }; }; then | |
18762 | ||
21d1c967 | 18763 | wx_cv_cpp_bool=yes |
e6cc62c6 | 18764 | |
698dcdb6 | 18765 | else |
e6cc62c6 VS |
18766 | echo "$as_me: failed program was:" >&5 |
18767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18768 | ||
18769 | ||
21d1c967 | 18770 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
18771 | |
18772 | ||
698dcdb6 | 18773 | fi |
32ddf007 | 18774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18775 | |
18776 | ac_ext=c | |
21d1c967 | 18777 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18781 | |
a0b9e27f | 18782 | |
e6cc62c6 VS |
18783 | fi |
18784 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18785 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
18786 | |
18787 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 18788 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18789 | #define HAVE_BOOL 1 |
e6cc62c6 | 18790 | _ACEOF |
ab9b9eab | 18791 | |
21d1c967 GD |
18792 | fi |
18793 | ||
52127426 | 18794 | |
8284b0c5 | 18795 | |
e6cc62c6 VS |
18796 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
18797 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18798 | if test "${wx_cv_explicit+set}" = set; then | |
18799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18800 | else |
e6cc62c6 VS |
18801 | |
18802 | ||
18803 | ||
18804 | ac_ext=cc | |
5c6fa7d2 | 18805 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18806 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18807 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18808 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 18809 | |
8284b0c5 | 18810 | |
e6cc62c6 | 18811 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18812 | /* confdefs.h. */ |
18813 | _ACEOF | |
18814 | cat confdefs.h >>conftest.$ac_ext | |
18815 | cat >>conftest.$ac_ext <<_ACEOF | |
18816 | /* end confdefs.h. */ | |
986ecc86 VZ |
18817 | |
18818 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
18819 | |
18820 | int | |
18821 | main () | |
18822 | { | |
986ecc86 VZ |
18823 | |
18824 | return 0; | |
e6cc62c6 VS |
18825 | |
18826 | ; | |
18827 | return 0; | |
18828 | } | |
18829 | _ACEOF | |
18830 | rm -f conftest.$ac_objext | |
18831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18832 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18833 | ac_status=$? |
32ddf007 VS |
18834 | grep -v '^ *+' conftest.er1 >conftest.err |
18835 | rm -f conftest.er1 | |
18836 | cat conftest.err >&5 | |
e6cc62c6 VS |
18837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18838 | (exit $ac_status); } && | |
e1293dcf | 18839 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18841 | (eval $ac_try) 2>&5 | |
18842 | ac_status=$? | |
18843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18844 | (exit $ac_status); }; } && | |
18845 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18847 | (eval $ac_try) 2>&5 | |
18848 | ac_status=$? | |
18849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18850 | (exit $ac_status); }; }; then | |
18851 | ||
18852 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18853 | /* confdefs.h. */ |
18854 | _ACEOF | |
18855 | cat confdefs.h >>conftest.$ac_ext | |
18856 | cat >>conftest.$ac_ext <<_ACEOF | |
18857 | /* end confdefs.h. */ | |
986ecc86 VZ |
18858 | |
18859 | class Foo { public: explicit Foo(int) {} }; | |
18860 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18861 | |
18862 | int | |
18863 | main () | |
18864 | { | |
986ecc86 VZ |
18865 | |
18866 | TakeFoo(17); | |
18867 | return 0; | |
e6cc62c6 VS |
18868 | |
18869 | ; | |
18870 | return 0; | |
18871 | } | |
18872 | _ACEOF | |
18873 | rm -f conftest.$ac_objext | |
18874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18875 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18876 | ac_status=$? |
32ddf007 VS |
18877 | grep -v '^ *+' conftest.er1 >conftest.err |
18878 | rm -f conftest.er1 | |
18879 | cat conftest.err >&5 | |
e6cc62c6 VS |
18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18881 | (exit $ac_status); } && | |
e1293dcf | 18882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18884 | (eval $ac_try) 2>&5 | |
18885 | ac_status=$? | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); }; } && | |
18888 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18890 | (eval $ac_try) 2>&5 | |
18891 | ac_status=$? | |
18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18893 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
18894 | wx_cv_explicit=no |
18895 | else | |
e6cc62c6 VS |
18896 | echo "$as_me: failed program was:" >&5 |
18897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18898 | ||
18899 | wx_cv_explicit=yes | |
18900 | ||
986ecc86 | 18901 | fi |
32ddf007 | 18902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18903 | |
986ecc86 | 18904 | else |
e6cc62c6 VS |
18905 | echo "$as_me: failed program was:" >&5 |
18906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18907 | ||
18908 | wx_cv_explicit=no | |
18909 | ||
986ecc86 | 18910 | fi |
32ddf007 | 18911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
18912 | |
18913 | ac_ext=c | |
986ecc86 | 18914 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18918 | |
a0b9e27f | 18919 | |
e6cc62c6 VS |
18920 | fi |
18921 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18922 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
18923 | |
18924 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 18925 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 18926 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 18927 | _ACEOF |
986ecc86 VZ |
18928 | |
18929 | fi | |
18930 | ||
8284b0c5 | 18931 | |
e6cc62c6 VS |
18932 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
18933 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18934 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 18936 | else |
521196a2 | 18937 | |
521196a2 | 18938 | |
e6cc62c6 VS |
18939 | ac_ext=cc |
18940 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18944 | ||
18945 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18946 | /* confdefs.h. */ |
18947 | _ACEOF | |
18948 | cat confdefs.h >>conftest.$ac_ext | |
18949 | cat >>conftest.$ac_ext <<_ACEOF | |
18950 | /* end confdefs.h. */ | |
18951 | ||
18952 | int | |
18953 | main () | |
18954 | { | |
521196a2 | 18955 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
18956 | ; |
18957 | return 0; | |
18958 | } | |
18959 | _ACEOF | |
18960 | rm -f conftest.$ac_objext | |
18961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18962 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18963 | ac_status=$? |
32ddf007 VS |
18964 | grep -v '^ *+' conftest.er1 >conftest.err |
18965 | rm -f conftest.er1 | |
18966 | cat conftest.err >&5 | |
e6cc62c6 VS |
18967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18968 | (exit $ac_status); } && | |
e1293dcf | 18969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18971 | (eval $ac_try) 2>&5 | |
18972 | ac_status=$? | |
18973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18974 | (exit $ac_status); }; } && | |
18975 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18977 | (eval $ac_try) 2>&5 | |
18978 | ac_status=$? | |
18979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18980 | (exit $ac_status); }; }; then | |
521196a2 MB |
18981 | ac_cv_cxx_const_cast=yes |
18982 | else | |
e6cc62c6 VS |
18983 | echo "$as_me: failed program was:" >&5 |
18984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18985 | ||
18986 | ac_cv_cxx_const_cast=no | |
521196a2 | 18987 | fi |
32ddf007 | 18988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
521196a2 | 18989 | ac_ext=c |
521196a2 | 18990 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
18994 | |
18995 | ||
18996 | fi | |
e6cc62c6 VS |
18997 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
18998 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 18999 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
19000 | |
19001 | cat >>confdefs.h <<\_ACEOF | |
19002 | #define HAVE_CONST_CAST | |
19003 | _ACEOF | |
521196a2 MB |
19004 | |
19005 | fi | |
19006 | ||
ecfd48ca VZ |
19007 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19008 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19009 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19011 | else | |
19012 | ||
19013 | ||
19014 | ac_ext=cc | |
19015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19019 | ||
19020 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
19021 | /* confdefs.h. */ |
19022 | _ACEOF | |
19023 | cat confdefs.h >>conftest.$ac_ext | |
19024 | cat >>conftest.$ac_ext <<_ACEOF | |
19025 | /* end confdefs.h. */ | |
19026 | #include <typeinfo> | |
19027 | class Base { public : Base () {} virtual void f () = 0; }; | |
19028 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19029 | int g (Derived&) { return 0; } | |
19030 | int | |
19031 | main () | |
19032 | { | |
19033 | ||
19034 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19035 | ; | |
19036 | return 0; | |
19037 | } | |
19038 | _ACEOF | |
19039 | rm -f conftest.$ac_objext | |
19040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19041 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 19042 | ac_status=$? |
32ddf007 VS |
19043 | grep -v '^ *+' conftest.er1 >conftest.err |
19044 | rm -f conftest.er1 | |
19045 | cat conftest.err >&5 | |
ecfd48ca VZ |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19047 | (exit $ac_status); } && | |
e1293dcf | 19048 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19050 | (eval $ac_try) 2>&5 | |
19051 | ac_status=$? | |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19053 | (exit $ac_status); }; } && | |
19054 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19056 | (eval $ac_try) 2>&5 | |
19057 | ac_status=$? | |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19059 | (exit $ac_status); }; }; then | |
19060 | ac_cv_cxx_static_cast=yes | |
19061 | else | |
19062 | echo "$as_me: failed program was:" >&5 | |
19063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19064 | ||
19065 | ac_cv_cxx_static_cast=no | |
19066 | fi | |
32ddf007 | 19067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
19068 | ac_ext=c |
19069 | ac_cpp='$CPP $CPPFLAGS' | |
19070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19073 | ||
19074 | ||
19075 | fi | |
19076 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19077 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19078 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19079 | ||
19080 | cat >>confdefs.h <<\_ACEOF | |
19081 | #define HAVE_STATIC_CAST | |
19082 | _ACEOF | |
19083 | ||
19084 | fi | |
19085 | ||
521196a2 | 19086 | |
e87b7833 MB |
19087 | if test "$wxUSE_STL" = "yes"; then |
19088 | ac_ext=cc | |
19089 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19093 | ||
19094 | ||
19095 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19096 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19097 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19098 | /* confdefs.h. */ |
19099 | _ACEOF | |
19100 | cat confdefs.h >>conftest.$ac_ext | |
19101 | cat >>conftest.$ac_ext <<_ACEOF | |
19102 | /* end confdefs.h. */ | |
19103 | #include <string> | |
19104 | #include <functional> | |
19105 | #include <algorithm> | |
19106 | #include <vector> | |
19107 | #include <list> | |
19108 | int | |
19109 | main () | |
19110 | { | |
19111 | std::vector<int> moo; | |
19112 | std::list<int> foo; | |
19113 | std::vector<int>::iterator it = | |
19114 | std::find_if(moo.begin(), moo.end(), | |
19115 | std::bind2nd(std::less<int>(), 3)); | |
19116 | ; | |
19117 | return 0; | |
19118 | } | |
19119 | _ACEOF | |
19120 | rm -f conftest.$ac_objext | |
19121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19122 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19123 | ac_status=$? |
32ddf007 VS |
19124 | grep -v '^ *+' conftest.er1 >conftest.err |
19125 | rm -f conftest.er1 | |
19126 | cat conftest.err >&5 | |
e87b7833 MB |
19127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19128 | (exit $ac_status); } && | |
e1293dcf | 19129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19131 | (eval $ac_try) 2>&5 | |
19132 | ac_status=$? | |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19134 | (exit $ac_status); }; } && | |
19135 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19137 | (eval $ac_try) 2>&5 | |
19138 | ac_status=$? | |
19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19140 | (exit $ac_status); }; }; then | |
19141 | echo "$as_me:$LINENO: result: yes" >&5 | |
19142 | echo "${ECHO_T}yes" >&6 | |
19143 | else | |
19144 | echo "$as_me: failed program was:" >&5 | |
19145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19146 | ||
19147 | echo "$as_me:$LINENO: result: no" >&5 | |
19148 | echo "${ECHO_T}no" >&6 | |
19149 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19150 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19151 | { (exit 1); exit 1; }; } | |
19152 | fi | |
32ddf007 | 19153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19154 | |
19155 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19156 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19157 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19158 | /* confdefs.h. */ |
19159 | _ACEOF | |
19160 | cat confdefs.h >>conftest.$ac_ext | |
19161 | cat >>conftest.$ac_ext <<_ACEOF | |
19162 | /* end confdefs.h. */ | |
19163 | #include <string> | |
19164 | int | |
19165 | main () | |
19166 | { | |
19167 | std::wstring foo; | |
19168 | ; | |
19169 | return 0; | |
19170 | } | |
19171 | _ACEOF | |
19172 | rm -f conftest.$ac_objext | |
19173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19174 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19175 | ac_status=$? |
32ddf007 VS |
19176 | grep -v '^ *+' conftest.er1 >conftest.err |
19177 | rm -f conftest.er1 | |
19178 | cat conftest.err >&5 | |
e87b7833 MB |
19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19180 | (exit $ac_status); } && | |
e1293dcf | 19181 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19183 | (eval $ac_try) 2>&5 | |
19184 | ac_status=$? | |
19185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19186 | (exit $ac_status); }; } && | |
19187 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19189 | (eval $ac_try) 2>&5 | |
19190 | ac_status=$? | |
19191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19192 | (exit $ac_status); }; }; then | |
19193 | echo "$as_me:$LINENO: result: yes" >&5 | |
19194 | echo "${ECHO_T}yes" >&6 | |
19195 | cat >>confdefs.h <<\_ACEOF | |
19196 | #define HAVE_STD_WSTRING 1 | |
19197 | _ACEOF | |
19198 | ||
19199 | else | |
19200 | echo "$as_me: failed program was:" >&5 | |
19201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19202 | ||
19203 | echo "$as_me:$LINENO: result: no" >&5 | |
19204 | echo "${ECHO_T}no" >&6 | |
19205 | fi | |
32ddf007 | 19206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19207 | |
19208 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19209 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19210 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19211 | /* confdefs.h. */ |
19212 | _ACEOF | |
19213 | cat confdefs.h >>conftest.$ac_ext | |
19214 | cat >>conftest.$ac_ext <<_ACEOF | |
19215 | /* end confdefs.h. */ | |
19216 | #include <string> | |
19217 | int | |
19218 | main () | |
19219 | { | |
19220 | std::string foo, bar; | |
19221 | foo.compare(bar); | |
19222 | foo.compare(1, 1, bar); | |
19223 | foo.compare(1, 1, bar, 1, 1); | |
19224 | foo.compare(""); | |
19225 | foo.compare(1, 1, ""); | |
19226 | foo.compare(1, 1, "", 2); | |
19227 | ; | |
19228 | return 0; | |
19229 | } | |
19230 | _ACEOF | |
19231 | rm -f conftest.$ac_objext | |
19232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19233 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19234 | ac_status=$? |
32ddf007 VS |
19235 | grep -v '^ *+' conftest.er1 >conftest.err |
19236 | rm -f conftest.er1 | |
19237 | cat conftest.err >&5 | |
e87b7833 MB |
19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19239 | (exit $ac_status); } && | |
e1293dcf | 19240 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19242 | (eval $ac_try) 2>&5 | |
19243 | ac_status=$? | |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19245 | (exit $ac_status); }; } && | |
19246 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19248 | (eval $ac_try) 2>&5 | |
19249 | ac_status=$? | |
19250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19251 | (exit $ac_status); }; }; then | |
19252 | echo "$as_me:$LINENO: result: yes" >&5 | |
19253 | echo "${ECHO_T}yes" >&6 | |
19254 | cat >>confdefs.h <<\_ACEOF | |
19255 | #define HAVE_STD_STRING_COMPARE 1 | |
19256 | _ACEOF | |
19257 | ||
19258 | else | |
19259 | echo "$as_me: failed program was:" >&5 | |
19260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19261 | ||
19262 | echo "$as_me:$LINENO: result: no" >&5 | |
19263 | echo "${ECHO_T}no" >&6 | |
19264 | fi | |
32ddf007 | 19265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19266 | |
19267 | ac_ext=c | |
19268 | ac_cpp='$CPP $CPPFLAGS' | |
19269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19272 | ||
19273 | fi | |
19274 | ||
8284b0c5 | 19275 | |
21d1c967 GD |
19276 | SEARCH_INCLUDE="\ |
19277 | /usr/local/include \ | |
19278 | \ | |
21d1c967 | 19279 | /usr/Motif-2.1/include \ |
789c5f4a | 19280 | /usr/Motif-1.2/include \ |
21d1c967 GD |
19281 | /usr/include/Motif1.2 \ |
19282 | /opt/xpm/include/X11 \ | |
19283 | /opt/GBxpm/include/ \ | |
19284 | /opt/GBxpm/X11/include/ \ | |
19285 | \ | |
21d1c967 GD |
19286 | /usr/dt/include \ |
19287 | /usr/openwin/include \ | |
19288 | \ | |
19289 | /usr/include/Xm \ | |
19290 | \ | |
19291 | /usr/X11R6/include \ | |
19292 | /usr/X11R6.4/include \ | |
19293 | /usr/X11R5/include \ | |
19294 | /usr/X11R4/include \ | |
19295 | \ | |
19296 | /usr/include/X11R6 \ | |
19297 | /usr/include/X11R5 \ | |
19298 | /usr/include/X11R4 \ | |
19299 | \ | |
19300 | /usr/local/X11R6/include \ | |
19301 | /usr/local/X11R5/include \ | |
19302 | /usr/local/X11R4/include \ | |
19303 | \ | |
19304 | /usr/local/include/X11R6 \ | |
19305 | /usr/local/include/X11R5 \ | |
19306 | /usr/local/include/X11R4 \ | |
19307 | \ | |
19308 | /usr/X11/include \ | |
19309 | /usr/include/X11 \ | |
19310 | /usr/local/X11/include \ | |
19311 | /usr/local/include/X11 \ | |
19312 | \ | |
19313 | /usr/X386/include \ | |
19314 | /usr/x386/include \ | |
19315 | /usr/XFree86/include/X11 \ | |
19316 | \ | |
19317 | X:/XFree86/include \ | |
19318 | X:/XFree86/include/X11 \ | |
19319 | \ | |
19320 | /usr/include/gtk \ | |
19321 | /usr/local/include/gtk \ | |
19322 | /usr/include/glib \ | |
19323 | /usr/local/include/glib \ | |
19324 | \ | |
19325 | /usr/include/qt \ | |
19326 | /usr/local/include/qt \ | |
19327 | \ | |
0f87e84c RR |
19328 | /usr/local/arm/3.3.2/include \ |
19329 | \ | |
21d1c967 GD |
19330 | /usr/include/windows \ |
19331 | /usr/include/wine \ | |
19332 | /usr/local/include/wine \ | |
19333 | \ | |
19334 | /usr/unsupported/include \ | |
19335 | /usr/athena/include \ | |
19336 | /usr/local/x11r5/include \ | |
19337 | /usr/lpp/Xamples/include \ | |
19338 | \ | |
2b5f62a0 | 19339 | /usr/openwin/share/include" |
21d1c967 | 19340 | |
b62e750d | 19341 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" |
21d1c967 | 19342 | |
8284b0c5 | 19343 | |
e6cc62c6 | 19344 | cat >confcache <<\_ACEOF |
21d1c967 GD |
19345 | # This file is a shell script that caches the results of configure |
19346 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
19347 | # scripts and configure runs, see configure's option --config-cache. |
19348 | # It is not useful on other systems. If it contains results you don't | |
19349 | # want to keep, you may remove or edit it. | |
21d1c967 | 19350 | # |
e6cc62c6 VS |
19351 | # config.status only pays attention to the cache file if you give it |
19352 | # the --recheck option to rerun configure. | |
21d1c967 | 19353 | # |
e6cc62c6 VS |
19354 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19355 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19356 | # following values. | |
19357 | ||
19358 | _ACEOF | |
19359 | ||
21d1c967 GD |
19360 | # The following way of writing the cache mishandles newlines in values, |
19361 | # but we know of no workaround that is simple, portable, and efficient. | |
19362 | # So, don't put newlines in cache variables' values. | |
19363 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19364 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
19365 | { |
19366 | (set) 2>&1 | | |
19367 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19368 | *ac_space=\ *) | |
19369 | # `set' does not quote correctly, so add quotes (double-quote | |
19370 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19371 | sed -n \ | |
32ddf007 VS |
19372 | "s/'/'\\\\''/g; |
19373 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
19374 | ;; |
19375 | *) | |
19376 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19377 | sed -n \ | |
32ddf007 | 19378 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
19379 | ;; |
19380 | esac; | |
19381 | } | | |
19382 | sed ' | |
19383 | t clear | |
19384 | : clear | |
19385 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19386 | t end | |
19387 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19388 | : end' >>confcache | |
19389 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 19390 | if test -w $cache_file; then |
e6cc62c6 VS |
19391 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19392 | cat confcache >$cache_file | |
21d1c967 GD |
19393 | else |
19394 | echo "not updating unwritable cache $cache_file" | |
19395 | fi | |
ab9b9eab | 19396 | fi |
21d1c967 | 19397 | rm -f confcache |
ab9b9eab | 19398 | |
fe0895cf | 19399 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
19400 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
19401 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
19402 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
19403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19404 | else | |
19405 | ||
19406 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19407 | /* confdefs.h. */ |
19408 | _ACEOF | |
19409 | cat confdefs.h >>conftest.$ac_ext | |
19410 | cat >>conftest.$ac_ext <<_ACEOF | |
19411 | /* end confdefs.h. */ | |
21d1c967 | 19412 | #include <features.h> |
e6cc62c6 VS |
19413 | int |
19414 | main () | |
19415 | { | |
ab9b9eab | 19416 | |
21d1c967 GD |
19417 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
19418 | #error not glibc2.1 | |
19419 | #endif | |
e6cc62c6 VS |
19420 | |
19421 | ; | |
19422 | return 0; | |
19423 | } | |
19424 | _ACEOF | |
19425 | rm -f conftest.$ac_objext | |
19426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19427 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19428 | ac_status=$? |
32ddf007 VS |
19429 | grep -v '^ *+' conftest.er1 >conftest.err |
19430 | rm -f conftest.er1 | |
19431 | cat conftest.err >&5 | |
e6cc62c6 VS |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19433 | (exit $ac_status); } && | |
e1293dcf | 19434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; } && | |
19440 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19442 | (eval $ac_try) 2>&5 | |
19443 | ac_status=$? | |
19444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19445 | (exit $ac_status); }; }; then | |
19446 | ||
21d1c967 | 19447 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 19448 | |
698dcdb6 | 19449 | else |
e6cc62c6 VS |
19450 | echo "$as_me: failed program was:" >&5 |
19451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19452 | ||
19453 | ||
21d1c967 | 19454 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
19455 | |
19456 | ||
247f5006 | 19457 | fi |
32ddf007 | 19458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19459 | |
e6cc62c6 VS |
19460 | fi |
19461 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
19462 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 19463 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 19464 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19465 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 19466 | _ACEOF |
1e487827 | 19467 | |
90dd450c | 19468 | fi |
ab9b9eab VZ |
19469 | fi |
19470 | ||
5c0a20c3 VZ |
19471 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
19472 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 19473 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 19474 | #define _GNU_SOURCE 1 |
e6cc62c6 | 19475 | _ACEOF |
5c0a20c3 VZ |
19476 | |
19477 | fi | |
19478 | fi | |
19479 | ||
8284b0c5 MB |
19480 | |
19481 | ||
21d1c967 | 19482 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 19483 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19484 | #define wxUSE_REGEX 1 |
e6cc62c6 | 19485 | _ACEOF |
698dcdb6 | 19486 | |
8284b0c5 | 19487 | |
30f2fa6c | 19488 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
4996f261 VS |
19489 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 |
19490 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
30f2fa6c VS |
19491 | wxUSE_REGEX=builtin |
19492 | fi | |
19493 | ||
21d1c967 | 19494 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
19495 | if test "${ac_cv_header_regex_h+set}" = set; then |
19496 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19497 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19498 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19500 | fi | |
19501 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
19502 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19503 | else | |
19504 | # Is the header compilable? | |
19505 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
19506 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
19507 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19508 | /* confdefs.h. */ |
19509 | _ACEOF | |
19510 | cat confdefs.h >>conftest.$ac_ext | |
19511 | cat >>conftest.$ac_ext <<_ACEOF | |
19512 | /* end confdefs.h. */ | |
19513 | $ac_includes_default | |
247f5006 | 19514 | #include <regex.h> |
e6cc62c6 VS |
19515 | _ACEOF |
19516 | rm -f conftest.$ac_objext | |
19517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19518 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19519 | ac_status=$? |
32ddf007 VS |
19520 | grep -v '^ *+' conftest.er1 >conftest.err |
19521 | rm -f conftest.er1 | |
19522 | cat conftest.err >&5 | |
e6cc62c6 VS |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19524 | (exit $ac_status); } && | |
e1293dcf | 19525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); }; } && | |
19531 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19533 | (eval $ac_try) 2>&5 | |
19534 | ac_status=$? | |
19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19536 | (exit $ac_status); }; }; then | |
19537 | ac_header_compiler=yes | |
19538 | else | |
19539 | echo "$as_me: failed program was:" >&5 | |
19540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19541 | ||
19542 | ac_header_compiler=no | |
19543 | fi | |
32ddf007 | 19544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19547 | ||
19548 | # Is the header present? | |
19549 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
19550 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
19551 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19552 | /* confdefs.h. */ |
19553 | _ACEOF | |
19554 | cat confdefs.h >>conftest.$ac_ext | |
19555 | cat >>conftest.$ac_ext <<_ACEOF | |
19556 | /* end confdefs.h. */ | |
19557 | #include <regex.h> | |
19558 | _ACEOF | |
19559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19561 | ac_status=$? | |
19562 | grep -v '^ *+' conftest.er1 >conftest.err | |
19563 | rm -f conftest.er1 | |
19564 | cat conftest.err >&5 | |
19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19566 | (exit $ac_status); } >/dev/null; then | |
19567 | if test -s conftest.err; then | |
19568 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 19569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19570 | else |
19571 | ac_cpp_err= | |
19572 | fi | |
19573 | else | |
19574 | ac_cpp_err=yes | |
19575 | fi | |
19576 | if test -z "$ac_cpp_err"; then | |
19577 | ac_header_preproc=yes | |
19578 | else | |
19579 | echo "$as_me: failed program was:" >&5 | |
19580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19581 | ||
19582 | ac_header_preproc=no | |
19583 | fi | |
19584 | rm -f conftest.err conftest.$ac_ext | |
19585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19587 | ||
19588 | # So? What about this header? | |
32ddf007 VS |
19589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19590 | yes:no: ) | |
e6cc62c6 VS |
19591 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19592 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
19593 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
19594 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
19595 | ac_header_preproc=yes | |
e6cc62c6 | 19596 | ;; |
32ddf007 | 19597 | no:yes:* ) |
e6cc62c6 VS |
19598 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
19599 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
19600 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
19601 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
19602 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
19603 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
19604 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19605 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19606 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
19607 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
19608 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
19609 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19610 | ( |
19611 | cat <<\_ASBOX | |
32ddf007 VS |
19612 | ## ----------------------------------------- ## |
19613 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19614 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19615 | _ASBOX |
19616 | ) | | |
19617 | sed "s/^/$as_me: WARNING: /" >&2 | |
19618 | ;; | |
19619 | esac | |
19620 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19621 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19622 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19624 | else | |
19625 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 19626 | fi |
e6cc62c6 VS |
19627 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
19628 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19629 | ||
698dcdb6 | 19630 | fi |
e6cc62c6 VS |
19631 | if test $ac_cv_header_regex_h = yes; then |
19632 | ||
19633 | for ac_func in regcomp | |
21d1c967 | 19634 | do |
e6cc62c6 VS |
19635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19636 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19638 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19640 | else | |
19641 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19642 | /* confdefs.h. */ |
19643 | _ACEOF | |
19644 | cat confdefs.h >>conftest.$ac_ext | |
19645 | cat >>conftest.$ac_ext <<_ACEOF | |
19646 | /* end confdefs.h. */ | |
32ddf007 VS |
19647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19649 | #define $ac_func innocuous_$ac_func | |
19650 | ||
a0b9e27f | 19651 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
19652 | which can conflict with char $ac_func (); below. |
19653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19654 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 19655 | |
e6cc62c6 VS |
19656 | #ifdef __STDC__ |
19657 | # include <limits.h> | |
19658 | #else | |
19659 | # include <assert.h> | |
19660 | #endif | |
32ddf007 VS |
19661 | |
19662 | #undef $ac_func | |
19663 | ||
21d1c967 | 19664 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19665 | #ifdef __cplusplus |
19666 | extern "C" | |
19667 | { | |
19668 | #endif | |
21d1c967 | 19669 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19670 | builtin and then its argument prototype would still apply. */ |
19671 | char $ac_func (); | |
21d1c967 GD |
19672 | /* The GNU C library defines this for functions which it implements |
19673 | to always fail with ENOSYS. Some functions are actually named | |
19674 | something starting with __ and the normal name is an alias. */ | |
19675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19676 | choke me | |
19677 | #else | |
e6cc62c6 VS |
19678 | char (*f) () = $ac_func; |
19679 | #endif | |
19680 | #ifdef __cplusplus | |
19681 | } | |
21d1c967 | 19682 | #endif |
90dd450c | 19683 | |
e6cc62c6 VS |
19684 | int |
19685 | main () | |
19686 | { | |
19687 | return f != $ac_func; | |
19688 | ; | |
19689 | return 0; | |
19690 | } | |
19691 | _ACEOF | |
19692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 19694 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19695 | ac_status=$? |
32ddf007 VS |
19696 | grep -v '^ *+' conftest.er1 >conftest.err |
19697 | rm -f conftest.er1 | |
19698 | cat conftest.err >&5 | |
e6cc62c6 VS |
19699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19700 | (exit $ac_status); } && | |
e1293dcf | 19701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19703 | (eval $ac_try) 2>&5 | |
19704 | ac_status=$? | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); }; } && | |
19707 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19709 | (eval $ac_try) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); }; }; then | |
19713 | eval "$as_ac_var=yes" | |
19714 | else | |
19715 | echo "$as_me: failed program was:" >&5 | |
19716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19717 | ||
19718 | eval "$as_ac_var=no" | |
19719 | fi | |
32ddf007 VS |
19720 | rm -f conftest.err conftest.$ac_objext \ |
19721 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19722 | fi |
19723 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19724 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19725 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19726 | cat >>confdefs.h <<_ACEOF | |
19727 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19728 | _ACEOF | |
5c6fa7d2 | 19729 | |
698dcdb6 | 19730 | fi |
21d1c967 GD |
19731 | done |
19732 | ||
ab9b9eab VZ |
19733 | fi |
19734 | ||
8284b0c5 | 19735 | |
e6cc62c6 | 19736 | |
21d1c967 GD |
19737 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
19738 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
19739 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
19740 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
19741 | { (exit 1); exit 1; }; } | |
21d1c967 | 19742 | else |
e6cc62c6 VS |
19743 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
19744 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19745 | wxUSE_REGEX=builtin |
19746 | fi | |
19747 | else | |
19748 | wxUSE_REGEX=sys | |
4996f261 VS |
19749 | cat >>confdefs.h <<\_ACEOF |
19750 | #define WX_NO_REGEX_ADVANCED 1 | |
19751 | _ACEOF | |
19752 | ||
21d1c967 | 19753 | fi |
ab9b9eab | 19754 | fi |
21d1c967 | 19755 | fi |
90dd450c | 19756 | |
8284b0c5 | 19757 | |
21d1c967 GD |
19758 | ZLIB_LINK= |
19759 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 19760 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19761 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 19762 | _ACEOF |
21d1c967 | 19763 | |
8284b0c5 | 19764 | |
21d1c967 | 19765 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
19766 | if test "$USE_DARWIN" = 1; then |
19767 | system_zlib_h_ok="yes" | |
19768 | else | |
e6cc62c6 VS |
19769 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
19770 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
19771 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
19773 | else |
19774 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19775 | unset ac_cv_header_zlib_h |
e6cc62c6 | 19776 | |
d643b80e | 19777 | else |
e6cc62c6 | 19778 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19779 | /* confdefs.h. */ |
19780 | _ACEOF | |
19781 | cat confdefs.h >>conftest.$ac_ext | |
19782 | cat >>conftest.$ac_ext <<_ACEOF | |
19783 | /* end confdefs.h. */ | |
19784 | ||
ef33c576 | 19785 | #include <zlib.h> |
d775acfa | 19786 | #include <stdio.h> |
d643b80e | 19787 | |
d775acfa VZ |
19788 | int main() |
19789 | { | |
19790 | FILE *f=fopen("conftestval", "w"); | |
19791 | if (!f) exit(1); | |
19792 | fprintf(f, "%s", | |
19793 | ZLIB_VERSION[0] == '1' && | |
19794 | (ZLIB_VERSION[2] > '1' || | |
19795 | (ZLIB_VERSION[2] == '1' && | |
19796 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19797 | exit(0); | |
19798 | } | |
e6cc62c6 VS |
19799 | |
19800 | _ACEOF | |
19801 | rm -f conftest$ac_exeext | |
19802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19803 | (eval $ac_link) 2>&5 | |
19804 | ac_status=$? | |
19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19808 | (eval $ac_try) 2>&5 | |
19809 | ac_status=$? | |
19810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19811 | (exit $ac_status); }; }; then | |
d643b80e VZ |
19812 | ac_cv_header_zlib_h=`cat conftestval` |
19813 | else | |
e6cc62c6 VS |
19814 | echo "$as_me: program exited with status $ac_status" >&5 |
19815 | echo "$as_me: failed program was:" >&5 | |
19816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19817 | ||
19818 | ( exit $ac_status ) | |
19819 | ac_cv_header_zlib_h=no | |
d643b80e | 19820 | fi |
32ddf007 | 19821 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
19822 | fi |
19823 | ||
d643b80e | 19824 | fi |
e6cc62c6 VS |
19825 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
19826 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19827 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19828 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19829 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19830 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19832 | fi | |
19833 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19834 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 19835 | else |
e6cc62c6 VS |
19836 | # Is the header compilable? |
19837 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19838 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19839 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19840 | /* confdefs.h. */ |
19841 | _ACEOF | |
19842 | cat confdefs.h >>conftest.$ac_ext | |
19843 | cat >>conftest.$ac_ext <<_ACEOF | |
19844 | /* end confdefs.h. */ | |
19845 | $ac_includes_default | |
89e6bf6d | 19846 | #include <zlib.h> |
e6cc62c6 VS |
19847 | _ACEOF |
19848 | rm -f conftest.$ac_objext | |
19849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19850 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19851 | ac_status=$? |
32ddf007 VS |
19852 | grep -v '^ *+' conftest.er1 >conftest.err |
19853 | rm -f conftest.er1 | |
19854 | cat conftest.err >&5 | |
e6cc62c6 VS |
19855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19856 | (exit $ac_status); } && | |
e1293dcf | 19857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19859 | (eval $ac_try) 2>&5 | |
19860 | ac_status=$? | |
19861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19862 | (exit $ac_status); }; } && | |
19863 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19865 | (eval $ac_try) 2>&5 | |
19866 | ac_status=$? | |
19867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19868 | (exit $ac_status); }; }; then | |
19869 | ac_header_compiler=yes | |
19870 | else | |
19871 | echo "$as_me: failed program was:" >&5 | |
19872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19873 | ||
19874 | ac_header_compiler=no | |
19875 | fi | |
32ddf007 | 19876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19877 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19878 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19879 | ||
19880 | # Is the header present? | |
19881 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19882 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19883 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19884 | /* confdefs.h. */ |
19885 | _ACEOF | |
19886 | cat confdefs.h >>conftest.$ac_ext | |
19887 | cat >>conftest.$ac_ext <<_ACEOF | |
19888 | /* end confdefs.h. */ | |
19889 | #include <zlib.h> | |
19890 | _ACEOF | |
19891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19893 | ac_status=$? | |
19894 | grep -v '^ *+' conftest.er1 >conftest.err | |
19895 | rm -f conftest.er1 | |
19896 | cat conftest.err >&5 | |
19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19898 | (exit $ac_status); } >/dev/null; then | |
19899 | if test -s conftest.err; then | |
19900 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 19901 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19902 | else |
19903 | ac_cpp_err= | |
19904 | fi | |
19905 | else | |
19906 | ac_cpp_err=yes | |
19907 | fi | |
19908 | if test -z "$ac_cpp_err"; then | |
19909 | ac_header_preproc=yes | |
19910 | else | |
19911 | echo "$as_me: failed program was:" >&5 | |
19912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19913 | ||
19914 | ac_header_preproc=no | |
19915 | fi | |
19916 | rm -f conftest.err conftest.$ac_ext | |
19917 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19918 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19919 | ||
19920 | # So? What about this header? | |
32ddf007 VS |
19921 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19922 | yes:no: ) | |
e6cc62c6 VS |
19923 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19924 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
19925 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
19926 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19927 | ac_header_preproc=yes | |
e6cc62c6 | 19928 | ;; |
32ddf007 | 19929 | no:yes:* ) |
e6cc62c6 VS |
19930 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19931 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
19932 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19933 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19934 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19935 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19936 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19937 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19938 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19939 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
19940 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
19941 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19942 | ( |
19943 | cat <<\_ASBOX | |
32ddf007 VS |
19944 | ## ----------------------------------------- ## |
19945 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19946 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19947 | _ASBOX |
19948 | ) | | |
19949 | sed "s/^/$as_me: WARNING: /" >&2 | |
19950 | ;; | |
19951 | esac | |
19952 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19953 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19954 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19956 | else |
e6cc62c6 VS |
19957 | ac_cv_header_zlib_h=$ac_header_preproc |
19958 | fi | |
19959 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19960 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19961 | ||
89e6bf6d VZ |
19962 | fi |
19963 | ||
d643b80e | 19964 | |
e6cc62c6 | 19965 | |
d775acfa VZ |
19966 | system_zlib_h_ok=$ac_cv_header_zlib_h |
19967 | fi | |
19968 | ||
19969 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
19970 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
19971 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19972 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19974 | else |
e6cc62c6 | 19975 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19976 | LIBS="-lz $LIBS" |
e6cc62c6 | 19977 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19978 | /* confdefs.h. */ |
19979 | _ACEOF | |
19980 | cat confdefs.h >>conftest.$ac_ext | |
19981 | cat >>conftest.$ac_ext <<_ACEOF | |
19982 | /* end confdefs.h. */ | |
19983 | ||
21d1c967 | 19984 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19985 | #ifdef __cplusplus |
19986 | extern "C" | |
19987 | #endif | |
21d1c967 | 19988 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19989 | builtin and then its argument prototype would still apply. */ |
19990 | char deflate (); | |
19991 | int | |
19992 | main () | |
19993 | { | |
19994 | deflate (); | |
19995 | ; | |
19996 | return 0; | |
19997 | } | |
19998 | _ACEOF | |
19999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20001 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20002 | ac_status=$? |
32ddf007 VS |
20003 | grep -v '^ *+' conftest.er1 >conftest.err |
20004 | rm -f conftest.er1 | |
20005 | cat conftest.err >&5 | |
e6cc62c6 VS |
20006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20007 | (exit $ac_status); } && | |
e1293dcf | 20008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20010 | (eval $ac_try) 2>&5 | |
20011 | ac_status=$? | |
20012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20013 | (exit $ac_status); }; } && | |
20014 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20016 | (eval $ac_try) 2>&5 | |
20017 | ac_status=$? | |
20018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20019 | (exit $ac_status); }; }; then | |
20020 | ac_cv_lib_z_deflate=yes | |
20021 | else | |
20022 | echo "$as_me: failed program was:" >&5 | |
20023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20024 | ||
20025 | ac_cv_lib_z_deflate=no | |
20026 | fi | |
32ddf007 VS |
20027 | rm -f conftest.err conftest.$ac_objext \ |
20028 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20029 | LIBS=$ac_check_lib_save_LIBS |
20030 | fi | |
20031 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20032 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20033 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 20034 | ZLIB_LINK=" -lz" |
a0b9e27f | 20035 | fi |
698dcdb6 | 20036 | |
d643b80e | 20037 | fi |
247f5006 | 20038 | |
21d1c967 GD |
20039 | if test "x$ZLIB_LINK" = "x" ; then |
20040 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
20041 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
20042 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20043 | { (exit 1); exit 1; }; } | |
21d1c967 | 20044 | else |
e6cc62c6 VS |
20045 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
20046 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20047 | wxUSE_ZLIB=builtin |
20048 | fi | |
20049 | else | |
20050 | wxUSE_ZLIB=sys | |
20051 | fi | |
20052 | fi | |
ab9b9eab VZ |
20053 | fi |
20054 | ||
8284b0c5 | 20055 | |
21d1c967 GD |
20056 | PNG_LINK= |
20057 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 20058 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20059 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 20060 | _ACEOF |
90dd450c | 20061 | |
8284b0c5 | 20062 | |
21d1c967 | 20063 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
20064 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
20065 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20066 | wxUSE_LIBPNG=sys |
20067 | fi | |
90dd450c | 20068 | |
21d1c967 | 20069 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
20070 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
20071 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
20072 | wxUSE_LIBPNG=builtin |
20073 | fi | |
20074 | ||
20075 | if test "$wxUSE_MGL" != 1 ; then | |
20076 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
20077 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
20078 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20079 | if test "${ac_cv_header_png_h+set}" = set; then | |
20080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
20081 | else |
20082 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 20083 | unset ac_cv_header_png_h |
e6cc62c6 | 20084 | |
5d3f766d | 20085 | else |
e6cc62c6 | 20086 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20087 | /* confdefs.h. */ |
20088 | _ACEOF | |
20089 | cat confdefs.h >>conftest.$ac_ext | |
20090 | cat >>conftest.$ac_ext <<_ACEOF | |
20091 | /* end confdefs.h. */ | |
20092 | ||
ef33c576 | 20093 | #include <png.h> |
5d3f766d VZ |
20094 | #include <stdio.h> |
20095 | ||
20096 | int main() | |
20097 | { | |
20098 | FILE *f=fopen("conftestval", "w"); | |
20099 | if (!f) exit(1); | |
20100 | fprintf(f, "%s", | |
20101 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20102 | exit(0); | |
20103 | } | |
e6cc62c6 VS |
20104 | |
20105 | _ACEOF | |
20106 | rm -f conftest$ac_exeext | |
20107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20108 | (eval $ac_link) 2>&5 | |
20109 | ac_status=$? | |
20110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20113 | (eval $ac_try) 2>&5 | |
20114 | ac_status=$? | |
20115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20116 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
20117 | ac_cv_header_png_h=`cat conftestval` |
20118 | else | |
e6cc62c6 VS |
20119 | echo "$as_me: program exited with status $ac_status" >&5 |
20120 | echo "$as_me: failed program was:" >&5 | |
20121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20122 | ||
20123 | ( exit $ac_status ) | |
20124 | ac_cv_header_png_h=no | |
5d3f766d | 20125 | fi |
32ddf007 | 20126 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
20127 | fi |
20128 | ||
5d3f766d | 20129 | fi |
e6cc62c6 VS |
20130 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
20131 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20132 | if test "${ac_cv_header_png_h+set}" = set; then | |
20133 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20134 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20135 | if test "${ac_cv_header_png_h+set}" = set; then | |
20136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20137 | fi | |
20138 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20139 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 20140 | else |
e6cc62c6 VS |
20141 | # Is the header compilable? |
20142 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20143 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20144 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20145 | /* confdefs.h. */ |
20146 | _ACEOF | |
20147 | cat confdefs.h >>conftest.$ac_ext | |
20148 | cat >>conftest.$ac_ext <<_ACEOF | |
20149 | /* end confdefs.h. */ | |
20150 | $ac_includes_default | |
89e6bf6d | 20151 | #include <png.h> |
e6cc62c6 VS |
20152 | _ACEOF |
20153 | rm -f conftest.$ac_objext | |
20154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20155 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20156 | ac_status=$? |
32ddf007 VS |
20157 | grep -v '^ *+' conftest.er1 >conftest.err |
20158 | rm -f conftest.er1 | |
20159 | cat conftest.err >&5 | |
e6cc62c6 VS |
20160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20161 | (exit $ac_status); } && | |
e1293dcf | 20162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20164 | (eval $ac_try) 2>&5 | |
20165 | ac_status=$? | |
20166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20167 | (exit $ac_status); }; } && | |
20168 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20170 | (eval $ac_try) 2>&5 | |
20171 | ac_status=$? | |
20172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20173 | (exit $ac_status); }; }; then | |
20174 | ac_header_compiler=yes | |
20175 | else | |
20176 | echo "$as_me: failed program was:" >&5 | |
20177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20178 | ||
20179 | ac_header_compiler=no | |
20180 | fi | |
32ddf007 | 20181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20184 | ||
20185 | # Is the header present? | |
20186 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20187 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20188 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20189 | /* confdefs.h. */ |
20190 | _ACEOF | |
20191 | cat confdefs.h >>conftest.$ac_ext | |
20192 | cat >>conftest.$ac_ext <<_ACEOF | |
20193 | /* end confdefs.h. */ | |
20194 | #include <png.h> | |
20195 | _ACEOF | |
20196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20198 | ac_status=$? | |
20199 | grep -v '^ *+' conftest.er1 >conftest.err | |
20200 | rm -f conftest.er1 | |
20201 | cat conftest.err >&5 | |
20202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20203 | (exit $ac_status); } >/dev/null; then | |
20204 | if test -s conftest.err; then | |
20205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20207 | else |
20208 | ac_cpp_err= | |
20209 | fi | |
20210 | else | |
20211 | ac_cpp_err=yes | |
20212 | fi | |
20213 | if test -z "$ac_cpp_err"; then | |
20214 | ac_header_preproc=yes | |
20215 | else | |
20216 | echo "$as_me: failed program was:" >&5 | |
20217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20218 | ||
20219 | ac_header_preproc=no | |
20220 | fi | |
20221 | rm -f conftest.err conftest.$ac_ext | |
20222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20224 | ||
20225 | # So? What about this header? | |
32ddf007 VS |
20226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20227 | yes:no: ) | |
e6cc62c6 VS |
20228 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20229 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20230 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20231 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20232 | ac_header_preproc=yes | |
e6cc62c6 | 20233 | ;; |
32ddf007 | 20234 | no:yes:* ) |
e6cc62c6 VS |
20235 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20236 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20237 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20238 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20239 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20240 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20241 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20242 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20243 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20244 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20245 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20246 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20247 | ( |
20248 | cat <<\_ASBOX | |
32ddf007 VS |
20249 | ## ----------------------------------------- ## |
20250 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20251 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20252 | _ASBOX |
20253 | ) | | |
20254 | sed "s/^/$as_me: WARNING: /" >&2 | |
20255 | ;; | |
20256 | esac | |
20257 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20258 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20259 | if test "${ac_cv_header_png_h+set}" = set; then | |
20260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 20261 | else |
e6cc62c6 VS |
20262 | ac_cv_header_png_h=$ac_header_preproc |
20263 | fi | |
20264 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20265 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20266 | ||
89e6bf6d VZ |
20267 | fi |
20268 | ||
5d3f766d | 20269 | |
e6cc62c6 | 20270 | |
5d3f766d | 20271 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
20272 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
20273 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20274 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20276 | else |
e6cc62c6 | 20277 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20278 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 20279 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20280 | /* confdefs.h. */ |
20281 | _ACEOF | |
20282 | cat confdefs.h >>conftest.$ac_ext | |
20283 | cat >>conftest.$ac_ext <<_ACEOF | |
20284 | /* end confdefs.h. */ | |
20285 | ||
21d1c967 | 20286 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20287 | #ifdef __cplusplus |
20288 | extern "C" | |
20289 | #endif | |
21d1c967 | 20290 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20291 | builtin and then its argument prototype would still apply. */ |
20292 | char png_check_sig (); | |
20293 | int | |
20294 | main () | |
20295 | { | |
20296 | png_check_sig (); | |
20297 | ; | |
20298 | return 0; | |
20299 | } | |
20300 | _ACEOF | |
20301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20303 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20304 | ac_status=$? |
32ddf007 VS |
20305 | grep -v '^ *+' conftest.er1 >conftest.err |
20306 | rm -f conftest.er1 | |
20307 | cat conftest.err >&5 | |
e6cc62c6 VS |
20308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20309 | (exit $ac_status); } && | |
e1293dcf | 20310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20312 | (eval $ac_try) 2>&5 | |
20313 | ac_status=$? | |
20314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20315 | (exit $ac_status); }; } && | |
20316 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20318 | (eval $ac_try) 2>&5 | |
20319 | ac_status=$? | |
20320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20321 | (exit $ac_status); }; }; then | |
20322 | ac_cv_lib_png_png_check_sig=yes | |
20323 | else | |
20324 | echo "$as_me: failed program was:" >&5 | |
20325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20326 | ||
20327 | ac_cv_lib_png_png_check_sig=no | |
20328 | fi | |
32ddf007 VS |
20329 | rm -f conftest.err conftest.$ac_objext \ |
20330 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20331 | LIBS=$ac_check_lib_save_LIBS |
20332 | fi | |
20333 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20334 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20335 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 20336 | PNG_LINK=" -lpng" |
a0b9e27f | 20337 | fi |
90dd450c | 20338 | |
5d3f766d | 20339 | fi |
247f5006 | 20340 | |
21d1c967 GD |
20341 | if test "x$PNG_LINK" = "x" ; then |
20342 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
20343 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
20344 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20345 | { (exit 1); exit 1; }; } | |
21d1c967 | 20346 | else |
e6cc62c6 VS |
20347 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
20348 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20349 | wxUSE_LIBPNG=builtin |
20350 | fi | |
20351 | else | |
2b5f62a0 | 20352 | wxUSE_LIBPNG=sys |
21d1c967 GD |
20353 | fi |
20354 | fi | |
20355 | fi | |
90dd450c | 20356 | |
21d1c967 | 20357 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
20358 | fi |
20359 | ||
8284b0c5 | 20360 | |
21d1c967 GD |
20361 | JPEG_LINK= |
20362 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 20363 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20364 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 20365 | _ACEOF |
90dd450c | 20366 | |
8284b0c5 | 20367 | |
21d1c967 | 20368 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
20369 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
20370 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20371 | wxUSE_LIBJPEG=sys |
20372 | fi | |
90dd450c | 20373 | |
21d1c967 GD |
20374 | if test "$wxUSE_MGL" != 1 ; then |
20375 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
20376 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
20377 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20378 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20380 | else | |
20381 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20382 | /* confdefs.h. */ |
20383 | _ACEOF | |
20384 | cat confdefs.h >>conftest.$ac_ext | |
20385 | cat >>conftest.$ac_ext <<_ACEOF | |
20386 | /* end confdefs.h. */ | |
90dd450c | 20387 | |
21d1c967 GD |
20388 | #undef HAVE_STDLIB_H |
20389 | #include <stdio.h> | |
20390 | #include <jpeglib.h> | |
90dd450c | 20391 | |
e6cc62c6 VS |
20392 | int |
20393 | main () | |
20394 | { | |
20395 | ||
20396 | ||
20397 | ; | |
20398 | return 0; | |
20399 | } | |
20400 | _ACEOF | |
20401 | rm -f conftest.$ac_objext | |
20402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20403 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20404 | ac_status=$? |
32ddf007 VS |
20405 | grep -v '^ *+' conftest.er1 >conftest.err |
20406 | rm -f conftest.er1 | |
20407 | cat conftest.err >&5 | |
e6cc62c6 VS |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20409 | (exit $ac_status); } && | |
e1293dcf | 20410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20412 | (eval $ac_try) 2>&5 | |
20413 | ac_status=$? | |
20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20415 | (exit $ac_status); }; } && | |
20416 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20418 | (eval $ac_try) 2>&5 | |
20419 | ac_status=$? | |
20420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20421 | (exit $ac_status); }; }; then | |
21d1c967 | 20422 | ac_cv_header_jpeglib_h=yes |
90dd450c | 20423 | else |
e6cc62c6 VS |
20424 | echo "$as_me: failed program was:" >&5 |
20425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20426 | ||
20427 | ac_cv_header_jpeglib_h=no | |
20428 | ||
90dd450c | 20429 | fi |
32ddf007 | 20430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 20431 | |
90dd450c VZ |
20432 | fi |
20433 | ||
e6cc62c6 VS |
20434 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
20435 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 20436 | |
21d1c967 | 20437 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
20438 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
20439 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
20440 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
20441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20442 | else |
e6cc62c6 | 20443 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20444 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 20445 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20446 | /* confdefs.h. */ |
20447 | _ACEOF | |
20448 | cat confdefs.h >>conftest.$ac_ext | |
20449 | cat >>conftest.$ac_ext <<_ACEOF | |
20450 | /* end confdefs.h. */ | |
20451 | ||
21d1c967 | 20452 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20453 | #ifdef __cplusplus |
20454 | extern "C" | |
20455 | #endif | |
21d1c967 | 20456 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20457 | builtin and then its argument prototype would still apply. */ |
20458 | char jpeg_read_header (); | |
20459 | int | |
20460 | main () | |
20461 | { | |
20462 | jpeg_read_header (); | |
20463 | ; | |
20464 | return 0; | |
20465 | } | |
20466 | _ACEOF | |
20467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20469 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20470 | ac_status=$? |
32ddf007 VS |
20471 | grep -v '^ *+' conftest.er1 >conftest.err |
20472 | rm -f conftest.er1 | |
20473 | cat conftest.err >&5 | |
e6cc62c6 VS |
20474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20475 | (exit $ac_status); } && | |
e1293dcf | 20476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20478 | (eval $ac_try) 2>&5 | |
20479 | ac_status=$? | |
20480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20481 | (exit $ac_status); }; } && | |
20482 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20484 | (eval $ac_try) 2>&5 | |
20485 | ac_status=$? | |
20486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20487 | (exit $ac_status); }; }; then | |
20488 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
20489 | else | |
20490 | echo "$as_me: failed program was:" >&5 | |
20491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20492 | ||
20493 | ac_cv_lib_jpeg_jpeg_read_header=no | |
20494 | fi | |
32ddf007 VS |
20495 | rm -f conftest.err conftest.$ac_objext \ |
20496 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20497 | LIBS=$ac_check_lib_save_LIBS |
20498 | fi | |
20499 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
20500 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
20501 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 20502 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
20503 | fi |
20504 | ||
21d1c967 | 20505 | fi |
90dd450c | 20506 | |
21d1c967 GD |
20507 | if test "x$JPEG_LINK" = "x" ; then |
20508 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
20509 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
20510 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
20511 | { (exit 1); exit 1; }; } | |
21d1c967 | 20512 | else |
e6cc62c6 VS |
20513 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
20514 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
20515 | wxUSE_LIBJPEG=builtin |
20516 | fi | |
20517 | else | |
20518 | wxUSE_LIBJPEG=sys | |
20519 | fi | |
20520 | fi | |
20521 | fi | |
21d1c967 | 20522 | fi |
90dd450c | 20523 | |
8284b0c5 | 20524 | |
21d1c967 | 20525 | TIFF_LINK= |
2b5f62a0 | 20526 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 20527 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 20528 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20529 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 20530 | _ACEOF |
21d1c967 | 20531 | |
8284b0c5 | 20532 | |
21d1c967 | 20533 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
20534 | if test "$wxUSE_LIBJPEG" = "sys"; then |
20535 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
20536 | fi | |
20537 | if test "$wxUSE_ZLIB" = "sys"; then | |
20538 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
20539 | fi | |
e6cc62c6 VS |
20540 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
20541 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20542 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20543 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20545 | fi | |
20546 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
20547 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20548 | else | |
20549 | # Is the header compilable? | |
20550 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
20551 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
20552 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20553 | /* confdefs.h. */ |
20554 | _ACEOF | |
20555 | cat confdefs.h >>conftest.$ac_ext | |
20556 | cat >>conftest.$ac_ext <<_ACEOF | |
20557 | /* end confdefs.h. */ | |
20558 | $ac_includes_default | |
247f5006 | 20559 | #include <tiffio.h> |
e6cc62c6 VS |
20560 | _ACEOF |
20561 | rm -f conftest.$ac_objext | |
20562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20563 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20564 | ac_status=$? |
32ddf007 VS |
20565 | grep -v '^ *+' conftest.er1 >conftest.err |
20566 | rm -f conftest.er1 | |
20567 | cat conftest.err >&5 | |
e6cc62c6 VS |
20568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20569 | (exit $ac_status); } && | |
e1293dcf | 20570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20572 | (eval $ac_try) 2>&5 | |
20573 | ac_status=$? | |
20574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20575 | (exit $ac_status); }; } && | |
20576 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20578 | (eval $ac_try) 2>&5 | |
20579 | ac_status=$? | |
20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20581 | (exit $ac_status); }; }; then | |
20582 | ac_header_compiler=yes | |
20583 | else | |
20584 | echo "$as_me: failed program was:" >&5 | |
20585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20586 | ||
20587 | ac_header_compiler=no | |
20588 | fi | |
32ddf007 | 20589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20590 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20591 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20592 | ||
20593 | # Is the header present? | |
20594 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
20595 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
20596 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20597 | /* confdefs.h. */ |
20598 | _ACEOF | |
20599 | cat confdefs.h >>conftest.$ac_ext | |
20600 | cat >>conftest.$ac_ext <<_ACEOF | |
20601 | /* end confdefs.h. */ | |
20602 | #include <tiffio.h> | |
20603 | _ACEOF | |
20604 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20605 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20606 | ac_status=$? | |
20607 | grep -v '^ *+' conftest.er1 >conftest.err | |
20608 | rm -f conftest.er1 | |
20609 | cat conftest.err >&5 | |
20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20611 | (exit $ac_status); } >/dev/null; then | |
20612 | if test -s conftest.err; then | |
20613 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20614 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20615 | else |
20616 | ac_cpp_err= | |
20617 | fi | |
20618 | else | |
20619 | ac_cpp_err=yes | |
20620 | fi | |
20621 | if test -z "$ac_cpp_err"; then | |
20622 | ac_header_preproc=yes | |
20623 | else | |
20624 | echo "$as_me: failed program was:" >&5 | |
20625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20626 | ||
20627 | ac_header_preproc=no | |
20628 | fi | |
20629 | rm -f conftest.err conftest.$ac_ext | |
20630 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20631 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20632 | ||
20633 | # So? What about this header? | |
32ddf007 VS |
20634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20635 | yes:no: ) | |
e6cc62c6 VS |
20636 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20637 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20638 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
20639 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
20640 | ac_header_preproc=yes | |
e6cc62c6 | 20641 | ;; |
32ddf007 | 20642 | no:yes:* ) |
e6cc62c6 VS |
20643 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
20644 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20645 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
20646 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
20647 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
20648 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
20649 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20650 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20651 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
20652 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20653 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
20654 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20655 | ( |
20656 | cat <<\_ASBOX | |
32ddf007 VS |
20657 | ## ----------------------------------------- ## |
20658 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20659 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20660 | _ASBOX |
20661 | ) | | |
20662 | sed "s/^/$as_me: WARNING: /" >&2 | |
20663 | ;; | |
20664 | esac | |
20665 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20666 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20667 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20669 | else | |
20670 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 20671 | fi |
e6cc62c6 VS |
20672 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
20673 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20674 | ||
21d1c967 | 20675 | fi |
e6cc62c6 | 20676 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
20677 | |
20678 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
20679 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
20680 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
20681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 20682 | else |
e6cc62c6 | 20683 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 20684 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 20685 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20686 | /* confdefs.h. */ |
20687 | _ACEOF | |
20688 | cat confdefs.h >>conftest.$ac_ext | |
20689 | cat >>conftest.$ac_ext <<_ACEOF | |
20690 | /* end confdefs.h. */ | |
20691 | ||
ab9b9eab | 20692 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20693 | #ifdef __cplusplus |
20694 | extern "C" | |
20695 | #endif | |
ab9b9eab | 20696 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20697 | builtin and then its argument prototype would still apply. */ |
20698 | char TIFFError (); | |
20699 | int | |
20700 | main () | |
20701 | { | |
20702 | TIFFError (); | |
20703 | ; | |
20704 | return 0; | |
20705 | } | |
20706 | _ACEOF | |
20707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20709 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20710 | ac_status=$? |
32ddf007 VS |
20711 | grep -v '^ *+' conftest.er1 >conftest.err |
20712 | rm -f conftest.er1 | |
20713 | cat conftest.err >&5 | |
e6cc62c6 VS |
20714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20715 | (exit $ac_status); } && | |
e1293dcf | 20716 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20718 | (eval $ac_try) 2>&5 | |
20719 | ac_status=$? | |
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20721 | (exit $ac_status); }; } && | |
20722 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20724 | (eval $ac_try) 2>&5 | |
20725 | ac_status=$? | |
20726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20727 | (exit $ac_status); }; }; then | |
20728 | ac_cv_lib_tiff_TIFFError=yes | |
20729 | else | |
20730 | echo "$as_me: failed program was:" >&5 | |
20731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20732 | ||
20733 | ac_cv_lib_tiff_TIFFError=no | |
20734 | fi | |
32ddf007 VS |
20735 | rm -f conftest.err conftest.$ac_objext \ |
20736 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20737 | LIBS=$ac_check_lib_save_LIBS |
20738 | fi | |
20739 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
20740 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
20741 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 20742 | TIFF_LINK=" -ltiff" |
a0b9e27f | 20743 | fi |
cd6d6d5b | 20744 | |
e6cc62c6 | 20745 | |
0e012a93 | 20746 | |
a0b9e27f | 20747 | fi |
8284b0c5 | 20748 | |
247f5006 | 20749 | |
e6cc62c6 | 20750 | |
21d1c967 GD |
20751 | if test "x$TIFF_LINK" = "x" ; then |
20752 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
20753 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
20754 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
20755 | { (exit 1); exit 1; }; } | |
90dd450c | 20756 | else |
e6cc62c6 VS |
20757 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
20758 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 20759 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 20760 | fi |
d8356fa3 | 20761 | else |
21d1c967 | 20762 | wxUSE_LIBTIFF=sys |
d8356fa3 | 20763 | fi |
21d1c967 | 20764 | fi |
21d1c967 | 20765 | fi |
10f2d63a | 20766 | |
8284b0c5 | 20767 | |
672abd7a | 20768 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 20769 | wxUSE_XML=yes |
672abd7a VS |
20770 | cat >>confdefs.h <<\_ACEOF |
20771 | #define wxUSE_EXPAT 1 | |
20772 | _ACEOF | |
20773 | ||
20774 | cat >>confdefs.h <<\_ACEOF | |
20775 | #define wxUSE_XML 1 | |
20776 | _ACEOF | |
20777 | ||
20778 | ||
20779 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
20780 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20781 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20782 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20783 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20785 | fi | |
20786 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20787 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20788 | else | |
20789 | # Is the header compilable? | |
20790 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
20791 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
20792 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20793 | /* confdefs.h. */ |
20794 | _ACEOF | |
20795 | cat confdefs.h >>conftest.$ac_ext | |
20796 | cat >>conftest.$ac_ext <<_ACEOF | |
20797 | /* end confdefs.h. */ | |
20798 | $ac_includes_default | |
20799 | #include <expat.h> | |
20800 | _ACEOF | |
20801 | rm -f conftest.$ac_objext | |
20802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20803 | (eval $ac_compile) 2>conftest.er1 |
672abd7a | 20804 | ac_status=$? |
32ddf007 VS |
20805 | grep -v '^ *+' conftest.er1 >conftest.err |
20806 | rm -f conftest.er1 | |
20807 | cat conftest.err >&5 | |
672abd7a VS |
20808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20809 | (exit $ac_status); } && | |
e1293dcf | 20810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20812 | (eval $ac_try) 2>&5 | |
20813 | ac_status=$? | |
20814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20815 | (exit $ac_status); }; } && | |
20816 | { ac_try='test -s conftest.$ac_objext' | |
672abd7a VS |
20817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20818 | (eval $ac_try) 2>&5 | |
20819 | ac_status=$? | |
20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20821 | (exit $ac_status); }; }; then | |
20822 | ac_header_compiler=yes | |
20823 | else | |
20824 | echo "$as_me: failed program was:" >&5 | |
20825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20826 | ||
20827 | ac_header_compiler=no | |
20828 | fi | |
32ddf007 | 20829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
20830 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20831 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20832 | ||
20833 | # Is the header present? | |
20834 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
20835 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
20836 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20837 | /* confdefs.h. */ |
20838 | _ACEOF | |
20839 | cat confdefs.h >>conftest.$ac_ext | |
20840 | cat >>conftest.$ac_ext <<_ACEOF | |
20841 | /* end confdefs.h. */ | |
20842 | #include <expat.h> | |
20843 | _ACEOF | |
20844 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20845 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20846 | ac_status=$? | |
20847 | grep -v '^ *+' conftest.er1 >conftest.err | |
20848 | rm -f conftest.er1 | |
20849 | cat conftest.err >&5 | |
20850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20851 | (exit $ac_status); } >/dev/null; then | |
20852 | if test -s conftest.err; then | |
20853 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20854 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
672abd7a VS |
20855 | else |
20856 | ac_cpp_err= | |
20857 | fi | |
20858 | else | |
20859 | ac_cpp_err=yes | |
20860 | fi | |
20861 | if test -z "$ac_cpp_err"; then | |
20862 | ac_header_preproc=yes | |
20863 | else | |
20864 | echo "$as_me: failed program was:" >&5 | |
20865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20866 | ||
20867 | ac_header_preproc=no | |
20868 | fi | |
20869 | rm -f conftest.err conftest.$ac_ext | |
20870 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20871 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20872 | ||
20873 | # So? What about this header? | |
32ddf007 VS |
20874 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20875 | yes:no: ) | |
672abd7a VS |
20876 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20877 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20878 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
20879 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
20880 | ac_header_preproc=yes | |
672abd7a | 20881 | ;; |
32ddf007 | 20882 | no:yes:* ) |
672abd7a VS |
20883 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
20884 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20885 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
20886 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
20887 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
20888 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
20889 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20890 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
672abd7a VS |
20891 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20892 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20893 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
20894 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
672abd7a VS |
20895 | ( |
20896 | cat <<\_ASBOX | |
32ddf007 VS |
20897 | ## ----------------------------------------- ## |
20898 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20899 | ## ----------------------------------------- ## | |
672abd7a VS |
20900 | _ASBOX |
20901 | ) | | |
20902 | sed "s/^/$as_me: WARNING: /" >&2 | |
20903 | ;; | |
20904 | esac | |
20905 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20906 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20907 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20909 | else | |
20910 | ac_cv_header_expat_h=$ac_header_preproc | |
20911 | fi | |
20912 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20913 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20914 | ||
20915 | fi | |
5f0b6dff VS |
20916 | if test $ac_cv_header_expat_h = yes; then |
20917 | found_expat_h=1 | |
20918 | fi | |
20919 | ||
20920 | ||
20921 | if test "x$found_expat_h" = "x1"; then | |
20922 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
20923 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
20924 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
20925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20926 | else | |
20927 | ||
20928 | ||
672abd7a | 20929 | |
5f0b6dff VS |
20930 | ac_ext=cc |
20931 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20935 | ||
20936 | cat >conftest.$ac_ext <<_ACEOF | |
5f0b6dff VS |
20937 | /* confdefs.h. */ |
20938 | _ACEOF | |
20939 | cat confdefs.h >>conftest.$ac_ext | |
20940 | cat >>conftest.$ac_ext <<_ACEOF | |
20941 | /* end confdefs.h. */ | |
20942 | #include <expat.h> | |
20943 | int | |
20944 | main () | |
20945 | { | |
672abd7a | 20946 | |
5f0b6dff VS |
20947 | ; |
20948 | return 0; | |
20949 | } | |
20950 | _ACEOF | |
20951 | rm -f conftest.$ac_objext | |
20952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20953 | (eval $ac_compile) 2>conftest.er1 |
5f0b6dff | 20954 | ac_status=$? |
32ddf007 VS |
20955 | grep -v '^ *+' conftest.er1 >conftest.err |
20956 | rm -f conftest.er1 | |
20957 | cat conftest.err >&5 | |
5f0b6dff VS |
20958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20959 | (exit $ac_status); } && | |
e1293dcf | 20960 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20962 | (eval $ac_try) 2>&5 | |
20963 | ac_status=$? | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); }; } && | |
20966 | { ac_try='test -s conftest.$ac_objext' | |
5f0b6dff VS |
20967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20968 | (eval $ac_try) 2>&5 | |
20969 | ac_status=$? | |
20970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20971 | (exit $ac_status); }; }; then | |
20972 | wx_cv_expat_is_not_broken=yes | |
20973 | else | |
20974 | echo "$as_me: failed program was:" >&5 | |
20975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20976 | ||
20977 | wx_cv_expat_is_not_broken=no | |
20978 | ||
20979 | fi | |
32ddf007 | 20980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
20981 | ac_ext=c |
20982 | ac_cpp='$CPP $CPPFLAGS' | |
20983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20986 | ||
20987 | ||
20988 | ||
20989 | fi | |
20990 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
20991 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
20992 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
20993 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
20994 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
20995 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
20996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20997 | else | |
20998 | ac_check_lib_save_LIBS=$LIBS | |
20999 | LIBS="-lexpat $LIBS" | |
21000 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
21001 | /* confdefs.h. */ |
21002 | _ACEOF | |
21003 | cat confdefs.h >>conftest.$ac_ext | |
21004 | cat >>conftest.$ac_ext <<_ACEOF | |
21005 | /* end confdefs.h. */ | |
21006 | ||
21007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21008 | #ifdef __cplusplus | |
21009 | extern "C" | |
21010 | #endif | |
21011 | /* We use char because int might match the return type of a gcc2 | |
21012 | builtin and then its argument prototype would still apply. */ | |
21013 | char XML_ParserCreate (); | |
21014 | int | |
21015 | main () | |
21016 | { | |
21017 | XML_ParserCreate (); | |
21018 | ; | |
21019 | return 0; | |
21020 | } | |
21021 | _ACEOF | |
21022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21024 | (eval $ac_link) 2>conftest.er1 |
672abd7a | 21025 | ac_status=$? |
32ddf007 VS |
21026 | grep -v '^ *+' conftest.er1 >conftest.err |
21027 | rm -f conftest.er1 | |
21028 | cat conftest.err >&5 | |
672abd7a VS |
21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21030 | (exit $ac_status); } && | |
e1293dcf | 21031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21033 | (eval $ac_try) 2>&5 | |
21034 | ac_status=$? | |
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21036 | (exit $ac_status); }; } && | |
21037 | { ac_try='test -s conftest$ac_exeext' | |
672abd7a VS |
21038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21039 | (eval $ac_try) 2>&5 | |
21040 | ac_status=$? | |
21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21042 | (exit $ac_status); }; }; then | |
21043 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21044 | else | |
21045 | echo "$as_me: failed program was:" >&5 | |
21046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21047 | ||
21048 | ac_cv_lib_expat_XML_ParserCreate=no | |
21049 | fi | |
32ddf007 VS |
21050 | rm -f conftest.err conftest.$ac_objext \ |
21051 | conftest$ac_exeext conftest.$ac_ext | |
672abd7a VS |
21052 | LIBS=$ac_check_lib_save_LIBS |
21053 | fi | |
21054 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21055 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21056 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21057 | EXPAT_LINK=" -lexpat" | |
21058 | fi | |
21059 | ||
5f0b6dff | 21060 | fi |
672abd7a VS |
21061 | fi |
21062 | if test "x$EXPAT_LINK" = "x" ; then | |
21063 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21064 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21065 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21066 | { (exit 1); exit 1; }; } | |
21067 | else | |
21068 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21069 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21070 | wxUSE_EXPAT=builtin | |
21071 | fi | |
21072 | else | |
21073 | wxUSE_EXPAT=sys | |
21074 | fi | |
21075 | fi | |
21076 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21077 | ||
21078 | ||
21079 | subdirs="$subdirs src/expat" | |
21080 | ||
21081 | fi | |
21082 | fi | |
21083 | ||
21084 | ||
21085 | ||
3527f29c VS |
21086 | if test "$wxUSE_LIBMSPACK" != "no"; then |
21087 | ||
21088 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21089 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21090 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21091 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21093 | fi | |
21094 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21095 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21096 | else | |
21097 | # Is the header compilable? | |
21098 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21099 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21100 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21101 | /* confdefs.h. */ |
21102 | _ACEOF | |
21103 | cat confdefs.h >>conftest.$ac_ext | |
21104 | cat >>conftest.$ac_ext <<_ACEOF | |
21105 | /* end confdefs.h. */ | |
21106 | $ac_includes_default | |
21107 | #include <mspack.h> | |
21108 | _ACEOF | |
21109 | rm -f conftest.$ac_objext | |
21110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21111 | (eval $ac_compile) 2>conftest.er1 |
3527f29c | 21112 | ac_status=$? |
32ddf007 VS |
21113 | grep -v '^ *+' conftest.er1 >conftest.err |
21114 | rm -f conftest.er1 | |
21115 | cat conftest.err >&5 | |
3527f29c VS |
21116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21117 | (exit $ac_status); } && | |
e1293dcf | 21118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21120 | (eval $ac_try) 2>&5 | |
21121 | ac_status=$? | |
21122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21123 | (exit $ac_status); }; } && | |
21124 | { ac_try='test -s conftest.$ac_objext' | |
3527f29c 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); }; }; then | |
21130 | ac_header_compiler=yes | |
21131 | else | |
21132 | echo "$as_me: failed program was:" >&5 | |
21133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21134 | ||
21135 | ac_header_compiler=no | |
21136 | fi | |
32ddf007 | 21137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
21138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21139 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21140 | ||
21141 | # Is the header present? | |
21142 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21143 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21144 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21145 | /* confdefs.h. */ |
21146 | _ACEOF | |
21147 | cat confdefs.h >>conftest.$ac_ext | |
21148 | cat >>conftest.$ac_ext <<_ACEOF | |
21149 | /* end confdefs.h. */ | |
21150 | #include <mspack.h> | |
21151 | _ACEOF | |
21152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21154 | ac_status=$? | |
21155 | grep -v '^ *+' conftest.er1 >conftest.err | |
21156 | rm -f conftest.er1 | |
21157 | cat conftest.err >&5 | |
21158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21159 | (exit $ac_status); } >/dev/null; then | |
21160 | if test -s conftest.err; then | |
21161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3527f29c VS |
21163 | else |
21164 | ac_cpp_err= | |
21165 | fi | |
21166 | else | |
21167 | ac_cpp_err=yes | |
21168 | fi | |
21169 | if test -z "$ac_cpp_err"; then | |
21170 | ac_header_preproc=yes | |
21171 | else | |
21172 | echo "$as_me: failed program was:" >&5 | |
21173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21174 | ||
21175 | ac_header_preproc=no | |
21176 | fi | |
21177 | rm -f conftest.err conftest.$ac_ext | |
21178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21179 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21180 | ||
21181 | # So? What about this header? | |
32ddf007 VS |
21182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21183 | yes:no: ) | |
3527f29c VS |
21184 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21185 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21186 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21187 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21188 | ac_header_preproc=yes | |
3527f29c | 21189 | ;; |
32ddf007 | 21190 | no:yes:* ) |
3527f29c VS |
21191 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21192 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21193 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21194 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21195 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21196 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21197 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21198 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3527f29c VS |
21199 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21200 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21201 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21202 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
3527f29c VS |
21203 | ( |
21204 | cat <<\_ASBOX | |
32ddf007 VS |
21205 | ## ----------------------------------------- ## |
21206 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21207 | ## ----------------------------------------- ## | |
3527f29c VS |
21208 | _ASBOX |
21209 | ) | | |
21210 | sed "s/^/$as_me: WARNING: /" >&2 | |
21211 | ;; | |
21212 | esac | |
21213 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21214 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21215 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21217 | else | |
21218 | ac_cv_header_mspack_h=$ac_header_preproc | |
21219 | fi | |
21220 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21221 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21222 | ||
21223 | fi | |
21224 | if test $ac_cv_header_mspack_h = yes; then | |
21225 | found_mspack_h=1 | |
21226 | fi | |
21227 | ||
21228 | ||
21229 | if test "x$found_mspack_h" = "x1"; then | |
21230 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21231 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21232 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21234 | else | |
21235 | ac_check_lib_save_LIBS=$LIBS | |
21236 | LIBS="-lmspack $LIBS" | |
21237 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21238 | /* confdefs.h. */ |
21239 | _ACEOF | |
21240 | cat confdefs.h >>conftest.$ac_ext | |
21241 | cat >>conftest.$ac_ext <<_ACEOF | |
21242 | /* end confdefs.h. */ | |
21243 | ||
21244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21245 | #ifdef __cplusplus | |
21246 | extern "C" | |
21247 | #endif | |
21248 | /* We use char because int might match the return type of a gcc2 | |
21249 | builtin and then its argument prototype would still apply. */ | |
21250 | char mspack_create_chm_decompressor (); | |
21251 | int | |
21252 | main () | |
21253 | { | |
21254 | mspack_create_chm_decompressor (); | |
21255 | ; | |
21256 | return 0; | |
21257 | } | |
21258 | _ACEOF | |
21259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21261 | (eval $ac_link) 2>conftest.er1 |
3527f29c | 21262 | ac_status=$? |
32ddf007 VS |
21263 | grep -v '^ *+' conftest.er1 >conftest.err |
21264 | rm -f conftest.er1 | |
21265 | cat conftest.err >&5 | |
3527f29c VS |
21266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21267 | (exit $ac_status); } && | |
e1293dcf | 21268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21270 | (eval $ac_try) 2>&5 | |
21271 | ac_status=$? | |
21272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21273 | (exit $ac_status); }; } && | |
21274 | { ac_try='test -s conftest$ac_exeext' | |
3527f29c VS |
21275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21276 | (eval $ac_try) 2>&5 | |
21277 | ac_status=$? | |
21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21279 | (exit $ac_status); }; }; then | |
21280 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21281 | else | |
21282 | echo "$as_me: failed program was:" >&5 | |
21283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21284 | ||
21285 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21286 | fi | |
32ddf007 VS |
21287 | rm -f conftest.err conftest.$ac_objext \ |
21288 | conftest$ac_exeext conftest.$ac_ext | |
3527f29c VS |
21289 | LIBS=$ac_check_lib_save_LIBS |
21290 | fi | |
21291 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21292 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21293 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21294 | MSPACK_LINK=" -lmspack" | |
21295 | fi | |
21296 | ||
21297 | fi | |
21298 | if test "x$MSPACK_LINK" = "x" ; then | |
21299 | wxUSE_LIBMSPACK=no | |
21300 | else | |
21301 | cat >>confdefs.h <<\_ACEOF | |
21302 | #define wxUSE_LIBMSPACK 1 | |
21303 | _ACEOF | |
21304 | ||
21305 | fi | |
21306 | fi | |
21307 | ||
21308 | ||
21309 | ||
21d1c967 | 21310 | AFMINSTALL= |
2b5f62a0 | 21311 | WIN32INSTALL= |
90dd450c | 21312 | |
21d1c967 GD |
21313 | TOOLKIT= |
21314 | TOOLKIT_INCLUDE= | |
21315 | WIDGET_SET= | |
21316 | ||
21317 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
21318 | |
21319 | for ac_header in w32api.h | |
21d1c967 | 21320 | do |
e6cc62c6 VS |
21321 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21323 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21324 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21325 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21327 | fi | |
21328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21329 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21330 | else | |
21331 | # Is the header compilable? | |
21332 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21333 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21334 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21335 | /* confdefs.h. */ |
21336 | _ACEOF | |
21337 | cat confdefs.h >>conftest.$ac_ext | |
21338 | cat >>conftest.$ac_ext <<_ACEOF | |
21339 | /* end confdefs.h. */ | |
21340 | $ac_includes_default | |
21341 | #include <$ac_header> | |
21342 | _ACEOF | |
21343 | rm -f conftest.$ac_objext | |
21344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21345 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21346 | ac_status=$? |
32ddf007 VS |
21347 | grep -v '^ *+' conftest.er1 >conftest.err |
21348 | rm -f conftest.er1 | |
21349 | cat conftest.err >&5 | |
e6cc62c6 VS |
21350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21351 | (exit $ac_status); } && | |
e1293dcf | 21352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21354 | (eval $ac_try) 2>&5 | |
21355 | ac_status=$? | |
21356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21357 | (exit $ac_status); }; } && | |
21358 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21360 | (eval $ac_try) 2>&5 | |
21361 | ac_status=$? | |
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21363 | (exit $ac_status); }; }; then | |
21364 | ac_header_compiler=yes | |
21365 | else | |
21366 | echo "$as_me: failed program was:" >&5 | |
21367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21368 | ||
21369 | ac_header_compiler=no | |
21370 | fi | |
32ddf007 | 21371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21372 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21373 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21374 | ||
21375 | # Is the header present? | |
21376 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21377 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21378 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21379 | /* confdefs.h. */ |
21380 | _ACEOF | |
21381 | cat confdefs.h >>conftest.$ac_ext | |
21382 | cat >>conftest.$ac_ext <<_ACEOF | |
21383 | /* end confdefs.h. */ | |
21384 | #include <$ac_header> | |
21385 | _ACEOF | |
21386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21388 | ac_status=$? | |
21389 | grep -v '^ *+' conftest.er1 >conftest.err | |
21390 | rm -f conftest.er1 | |
21391 | cat conftest.err >&5 | |
21392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21393 | (exit $ac_status); } >/dev/null; then | |
21394 | if test -s conftest.err; then | |
21395 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21397 | else |
21398 | ac_cpp_err= | |
21399 | fi | |
21400 | else | |
21401 | ac_cpp_err=yes | |
21402 | fi | |
21403 | if test -z "$ac_cpp_err"; then | |
21404 | ac_header_preproc=yes | |
21405 | else | |
21406 | echo "$as_me: failed program was:" >&5 | |
21407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21408 | ||
21409 | ac_header_preproc=no | |
21410 | fi | |
21411 | rm -f conftest.err conftest.$ac_ext | |
21412 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21413 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21414 | ||
21415 | # So? What about this header? | |
32ddf007 VS |
21416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21417 | yes:no: ) | |
e6cc62c6 VS |
21418 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21419 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21421 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21422 | ac_header_preproc=yes | |
e6cc62c6 | 21423 | ;; |
32ddf007 | 21424 | no:yes:* ) |
e6cc62c6 VS |
21425 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21426 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21427 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21428 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21429 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21430 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21431 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21432 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21433 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21434 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21435 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21436 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21437 | ( |
21438 | cat <<\_ASBOX | |
32ddf007 VS |
21439 | ## ----------------------------------------- ## |
21440 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21441 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21442 | _ASBOX |
21443 | ) | | |
21444 | sed "s/^/$as_me: WARNING: /" >&2 | |
21445 | ;; | |
21446 | esac | |
21447 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21449 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21451 | else | |
32ddf007 | 21452 | eval "$as_ac_Header=\$ac_header_preproc" |
f79bd02d | 21453 | fi |
e6cc62c6 VS |
21454 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21455 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21456 | ||
21d1c967 | 21457 | fi |
e6cc62c6 VS |
21458 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21459 | cat >>confdefs.h <<_ACEOF | |
21460 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21461 | _ACEOF | |
21462 | ||
21d1c967 | 21463 | fi |
e6cc62c6 | 21464 | |
21d1c967 | 21465 | done |
f79bd02d | 21466 | |
e6cc62c6 VS |
21467 | if test "${ac_cv_header_windows_h+set}" = set; then |
21468 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21469 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21470 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21472 | fi | |
21473 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21474 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21475 | else | |
21476 | # Is the header compilable? | |
21477 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
21478 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
21479 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21480 | /* confdefs.h. */ |
21481 | _ACEOF | |
21482 | cat confdefs.h >>conftest.$ac_ext | |
21483 | cat >>conftest.$ac_ext <<_ACEOF | |
21484 | /* end confdefs.h. */ | |
21485 | $ac_includes_default | |
247f5006 | 21486 | #include <windows.h> |
e6cc62c6 VS |
21487 | _ACEOF |
21488 | rm -f conftest.$ac_objext | |
21489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21490 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21491 | ac_status=$? |
32ddf007 VS |
21492 | grep -v '^ *+' conftest.er1 >conftest.err |
21493 | rm -f conftest.er1 | |
21494 | cat conftest.err >&5 | |
e6cc62c6 VS |
21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21496 | (exit $ac_status); } && | |
e1293dcf | 21497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21499 | (eval $ac_try) 2>&5 | |
21500 | ac_status=$? | |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21502 | (exit $ac_status); }; } && | |
21503 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21505 | (eval $ac_try) 2>&5 | |
21506 | ac_status=$? | |
21507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21508 | (exit $ac_status); }; }; then | |
21509 | ac_header_compiler=yes | |
21510 | else | |
21511 | echo "$as_me: failed program was:" >&5 | |
21512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21513 | ||
21514 | ac_header_compiler=no | |
21515 | fi | |
32ddf007 | 21516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21518 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21519 | ||
21520 | # Is the header present? | |
21521 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
21522 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
21523 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21524 | /* confdefs.h. */ |
21525 | _ACEOF | |
21526 | cat confdefs.h >>conftest.$ac_ext | |
21527 | cat >>conftest.$ac_ext <<_ACEOF | |
21528 | /* end confdefs.h. */ | |
21529 | #include <windows.h> | |
21530 | _ACEOF | |
21531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21533 | ac_status=$? | |
21534 | grep -v '^ *+' conftest.er1 >conftest.err | |
21535 | rm -f conftest.er1 | |
21536 | cat conftest.err >&5 | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); } >/dev/null; then | |
21539 | if test -s conftest.err; then | |
21540 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21541 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21542 | else |
21543 | ac_cpp_err= | |
21544 | fi | |
21545 | else | |
21546 | ac_cpp_err=yes | |
21547 | fi | |
21548 | if test -z "$ac_cpp_err"; then | |
21549 | ac_header_preproc=yes | |
21550 | else | |
21551 | echo "$as_me: failed program was:" >&5 | |
21552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21553 | ||
21554 | ac_header_preproc=no | |
21555 | fi | |
21556 | rm -f conftest.err conftest.$ac_ext | |
21557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21559 | ||
21560 | # So? What about this header? | |
32ddf007 VS |
21561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21562 | yes:no: ) | |
e6cc62c6 VS |
21563 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21564 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21565 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
21566 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
21567 | ac_header_preproc=yes | |
e6cc62c6 | 21568 | ;; |
32ddf007 | 21569 | no:yes:* ) |
e6cc62c6 VS |
21570 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21571 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21572 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
21573 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21574 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21575 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21576 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21577 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21578 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
21579 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21580 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
21581 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21582 | ( |
21583 | cat <<\_ASBOX | |
32ddf007 VS |
21584 | ## ----------------------------------------- ## |
21585 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21586 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21587 | _ASBOX |
21588 | ) | | |
21589 | sed "s/^/$as_me: WARNING: /" >&2 | |
21590 | ;; | |
21591 | esac | |
21592 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21593 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21594 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21596 | else | |
21597 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 21598 | fi |
e6cc62c6 VS |
21599 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21600 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21601 | ||
90dd450c | 21602 | fi |
e6cc62c6 | 21603 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 21604 | : |
90dd450c | 21605 | else |
21d1c967 | 21606 | |
e6cc62c6 VS |
21607 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
21608 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
21609 | { (exit 1); exit 1; }; } | |
21610 | ||
5c6fa7d2 | 21611 | fi |
7b4a847f | 21612 | |
5c6fa7d2 | 21613 | |
e6cc62c6 | 21614 | |
b3dfbbc9 | 21615 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 21616 | |
7bb2947d MB |
21617 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
21618 | LIBS="$LIBS -loleacc" | |
21619 | fi | |
21620 | ||
21d1c967 GD |
21621 | case "${host}" in |
21622 | *-*-cygwin* ) | |
b3dfbbc9 | 21623 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 21624 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 21625 | esac |
f79bd02d | 21626 | |
8647bec6 RG |
21627 | if test "$wxUSE_ODBC" = "sys" ; then |
21628 | wxUSE_ODBC = "yes" | |
21d1c967 | 21629 | fi |
8647bec6 RG |
21630 | if test "$wxUSE_ODBC" = "yes" ; then |
21631 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 21632 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 21633 | #define wxUSE_ODBC 1 |
e6cc62c6 | 21634 | _ACEOF |
f79bd02d | 21635 | |
8647bec6 | 21636 | fi |
e6cc62c6 | 21637 | |
21d1c967 GD |
21638 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
21639 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
21640 | |
21641 | WIN32INSTALL=win32install | |
f79bd02d | 21642 | fi |
f79bd02d | 21643 | |
21d1c967 GD |
21644 | if test "$wxUSE_GUI" = "yes"; then |
21645 | USE_GUI=1 | |
f79bd02d | 21646 | |
21d1c967 | 21647 | GUI_TK_LIBRARY= |
f79bd02d | 21648 | |
21d1c967 GD |
21649 | WXGTK12= |
21650 | WXGTK127= | |
21651 | WXGTK20= | |
0f87e84c | 21652 | WXGPE= |
f79bd02d | 21653 | |
21d1c967 GD |
21654 | if test "$wxUSE_MSW" = 1 ; then |
21655 | TOOLKIT=MSW | |
21656 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
21657 | |
21658 | case "${host}" in | |
21659 | *-*-mingw32* ) | |
21660 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
21661 | esac | |
f79bd02d JS |
21662 | fi |
21663 | ||
21d1c967 | 21664 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
21665 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
21666 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
21667 | |
21668 | gtk_version_cached=1 | |
e6cc62c6 VS |
21669 | if test "${wx_cv_lib_gtk+set}" = set; then |
21670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 21671 | else |
e6cc62c6 | 21672 | |
21d1c967 | 21673 | gtk_version_cached=0 |
e6cc62c6 VS |
21674 | echo "$as_me:$LINENO: result: " >&5 |
21675 | echo "${ECHO_T}" >&6 | |
f79bd02d | 21676 | |
21d1c967 GD |
21677 | GTK_MODULES= |
21678 | if test "$wxUSE_THREADS" = "yes"; then | |
21679 | GTK_MODULES=gthread | |
21680 | fi | |
f79bd02d | 21681 | |
2b5f62a0 | 21682 | wx_cv_lib_gtk= |
21d1c967 GD |
21683 | if test "x$wxUSE_GTK2" = "xyes"; then |
21684 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21685 | if test "${enable_gtktest+set}" = set; then | |
21686 | enableval="$enable_gtktest" | |
e6cc62c6 | 21687 | |
f79bd02d | 21688 | else |
21d1c967 | 21689 | enable_gtktest=yes |
e6cc62c6 | 21690 | fi; |
f79bd02d | 21691 | |
21d1c967 GD |
21692 | pkg_config_args=gtk+-2.0 |
21693 | for module in . $GTK_MODULES | |
21694 | do | |
21695 | case "$module" in | |
e6cc62c6 | 21696 | gthread) |
21d1c967 GD |
21697 | pkg_config_args="$pkg_config_args gthread-2.0" |
21698 | ;; | |
21699 | esac | |
21700 | done | |
21701 | ||
21702 | no_gtk="" | |
f79bd02d | 21703 | |
21d1c967 GD |
21704 | # Extract the first word of "pkg-config", so it can be a program name with args. |
21705 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21708 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21710 | else |
e6cc62c6 VS |
21711 | case $PKG_CONFIG in |
21712 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21713 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21714 | ;; | |
21d1c967 | 21715 | *) |
e6cc62c6 VS |
21716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21717 | for as_dir in $PATH | |
21718 | do | |
21719 | IFS=$as_save_IFS | |
21720 | test -z "$as_dir" && as_dir=. | |
21721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21723 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21725 | break 2 | |
21726 | fi | |
21727 | done | |
21728 | done | |
21729 | ||
21d1c967 GD |
21730 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21731 | ;; | |
21732 | esac | |
f79bd02d | 21733 | fi |
e6cc62c6 VS |
21734 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21735 | ||
21d1c967 | 21736 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21737 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21738 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 21739 | else |
e6cc62c6 VS |
21740 | echo "$as_me:$LINENO: result: no" >&5 |
21741 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
21742 | fi |
21743 | ||
8284b0c5 | 21744 | |
21d1c967 GD |
21745 | if test x$PKG_CONFIG != xno ; then |
21746 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
21747 | : | |
21748 | else | |
21749 | echo *** pkg-config too old; version 0.7 or better required. | |
21750 | no_gtk=yes | |
21751 | PKG_CONFIG=no | |
21752 | fi | |
21753 | else | |
21754 | no_gtk=yes | |
21755 | fi | |
f79bd02d | 21756 | |
21d1c967 | 21757 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
21758 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
21759 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 21760 | |
21d1c967 GD |
21761 | if test x$PKG_CONFIG != xno ; then |
21762 | ## don't try to run the test against uninstalled libtool libs | |
21763 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
21764 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
21765 | enable_gtktest=no | |
21766 | fi | |
f79bd02d | 21767 | |
21d1c967 GD |
21768 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
21769 | : | |
21770 | else | |
21771 | no_gtk=yes | |
21772 | fi | |
21773 | fi | |
f79bd02d | 21774 | |
21d1c967 GD |
21775 | if test x"$no_gtk" = x ; then |
21776 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
21777 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
21778 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21779 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21780 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21781 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21782 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21783 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21784 | if test "x$enable_gtktest" = "xyes" ; then | |
21785 | ac_save_CFLAGS="$CFLAGS" | |
21786 | ac_save_LIBS="$LIBS" | |
21787 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21788 | LIBS="$GTK_LIBS $LIBS" | |
21789 | rm -f conf.gtktest | |
21790 | if test "$cross_compiling" = yes; then | |
21791 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21792 | else |
e6cc62c6 | 21793 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21794 | /* confdefs.h. */ |
21795 | _ACEOF | |
21796 | cat confdefs.h >>conftest.$ac_ext | |
21797 | cat >>conftest.$ac_ext <<_ACEOF | |
21798 | /* end confdefs.h. */ | |
f79bd02d | 21799 | |
21d1c967 GD |
21800 | #include <gtk/gtk.h> |
21801 | #include <stdio.h> | |
21802 | #include <stdlib.h> | |
f79bd02d | 21803 | |
e6cc62c6 | 21804 | int |
21d1c967 GD |
21805 | main () |
21806 | { | |
21807 | int major, minor, micro; | |
21808 | char *tmp_version; | |
f79bd02d | 21809 | |
21d1c967 | 21810 | system ("touch conf.gtktest"); |
f79bd02d | 21811 | |
21d1c967 GD |
21812 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
21813 | tmp_version = g_strdup("$min_gtk_version"); | |
21814 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21815 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21816 | exit(1); | |
21817 | } | |
f79bd02d | 21818 | |
21d1c967 GD |
21819 | if ((gtk_major_version != $gtk_config_major_version) || |
21820 | (gtk_minor_version != $gtk_config_minor_version) || | |
21821 | (gtk_micro_version != $gtk_config_micro_version)) | |
21822 | { | |
e6cc62c6 | 21823 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21824 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21825 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21826 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
21827 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21828 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21829 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21830 | printf("*** required on your system.\n"); | |
21831 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
21832 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 21833 | } |
21d1c967 GD |
21834 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
21835 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21836 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21837 | { | |
21838 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21839 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21840 | printf("*** library (version %d.%d.%d)\n", | |
21841 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21842 | } | |
21843 | else | |
21844 | { | |
21845 | if ((gtk_major_version > major) || | |
21846 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21847 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21848 | { | |
21849 | return 0; | |
21850 | } | |
21851 | else | |
21852 | { | |
21853 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21854 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21855 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21856 | major, minor, micro); | |
21857 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21858 | printf("***\n"); | |
21859 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21860 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
21861 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21862 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
21863 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
21864 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21865 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21866 | } | |
21867 | } | |
21868 | return 1; | |
21869 | } | |
f79bd02d | 21870 | |
e6cc62c6 VS |
21871 | _ACEOF |
21872 | rm -f conftest$ac_exeext | |
21873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21874 | (eval $ac_link) 2>&5 | |
21875 | ac_status=$? | |
21876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21877 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21879 | (eval $ac_try) 2>&5 | |
21880 | ac_status=$? | |
21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21882 | (exit $ac_status); }; }; then | |
21d1c967 | 21883 | : |
f79bd02d | 21884 | else |
e6cc62c6 VS |
21885 | echo "$as_me: program exited with status $ac_status" >&5 |
21886 | echo "$as_me: failed program was:" >&5 | |
21887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21888 | ||
21889 | ( exit $ac_status ) | |
21890 | no_gtk=yes | |
f79bd02d | 21891 | fi |
32ddf007 | 21892 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 21893 | fi |
21d1c967 GD |
21894 | CFLAGS="$ac_save_CFLAGS" |
21895 | LIBS="$ac_save_LIBS" | |
21896 | fi | |
21897 | fi | |
21898 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21899 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
21900 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
21901 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 21902 | else |
e6cc62c6 VS |
21903 | echo "$as_me:$LINENO: result: no" >&5 |
21904 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21905 | if test "$PKG_CONFIG" = "no" ; then |
21906 | echo "*** A new enough version of pkg-config was not found." | |
21907 | echo "*** See http://pkgconfig.sourceforge.net" | |
21908 | else | |
21909 | if test -f conf.gtktest ; then | |
21910 | : | |
21911 | else | |
21912 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
21913 | ac_save_CFLAGS="$CFLAGS" |
21914 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
21915 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
21916 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21917 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21918 | /* confdefs.h. */ |
21919 | _ACEOF | |
21920 | cat confdefs.h >>conftest.$ac_ext | |
21921 | cat >>conftest.$ac_ext <<_ACEOF | |
21922 | /* end confdefs.h. */ | |
21d1c967 GD |
21923 | |
21924 | #include <gtk/gtk.h> | |
21925 | #include <stdio.h> | |
f79bd02d | 21926 | |
e6cc62c6 VS |
21927 | int |
21928 | main () | |
21929 | { | |
21930 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21931 | ; | |
21932 | return 0; | |
21933 | } | |
21934 | _ACEOF | |
21935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21937 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21938 | ac_status=$? |
32ddf007 VS |
21939 | grep -v '^ *+' conftest.er1 >conftest.err |
21940 | rm -f conftest.er1 | |
21941 | cat conftest.err >&5 | |
e6cc62c6 VS |
21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21943 | (exit $ac_status); } && | |
e1293dcf | 21944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21946 | (eval $ac_try) 2>&5 | |
21947 | ac_status=$? | |
21948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21949 | (exit $ac_status); }; } && | |
21950 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
21951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21952 | (eval $ac_try) 2>&5 | |
21953 | ac_status=$? | |
21954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21955 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21956 | echo "*** The test program compiled, but did not run. This usually means" |
21957 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
21958 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
21959 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21960 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21961 | echo "*** is required on your system" | |
21962 | echo "***" | |
21963 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 21964 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 21965 | else |
e6cc62c6 VS |
21966 | echo "$as_me: failed program was:" >&5 |
21967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21968 | ||
21969 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 21970 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 21971 | fi |
32ddf007 VS |
21972 | rm -f conftest.err conftest.$ac_objext \ |
21973 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21974 | CFLAGS="$ac_save_CFLAGS" |
21975 | LIBS="$ac_save_LIBS" | |
21976 | fi | |
21977 | fi | |
21978 | GTK_CFLAGS="" | |
21979 | GTK_LIBS="" | |
21980 | : | |
21981 | fi | |
e6cc62c6 VS |
21982 | |
21983 | ||
21d1c967 | 21984 | rm -f conf.gtktest |
f79bd02d | 21985 | |
2b5f62a0 | 21986 | else |
e6cc62c6 VS |
21987 | |
21988 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21989 | if test "${with_gtk_prefix+set}" = set; then |
21990 | withval="$with_gtk_prefix" | |
21991 | gtk_config_prefix="$withval" | |
21992 | else | |
21993 | gtk_config_prefix="" | |
e6cc62c6 | 21994 | fi; |
f79bd02d | 21995 | |
21d1c967 GD |
21996 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21997 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21998 | withval="$with_gtk_exec_prefix" | |
21999 | gtk_config_exec_prefix="$withval" | |
22000 | else | |
22001 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22002 | fi; |
21d1c967 GD |
22003 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22004 | if test "${enable_gtktest+set}" = set; then | |
22005 | enableval="$enable_gtktest" | |
e6cc62c6 | 22006 | |
21d1c967 GD |
22007 | else |
22008 | enable_gtktest=yes | |
e6cc62c6 | 22009 | fi; |
21d1c967 GD |
22010 | |
22011 | for module in . $GTK_MODULES | |
22012 | do | |
22013 | case "$module" in | |
e6cc62c6 | 22014 | gthread) |
21d1c967 GD |
22015 | gtk_config_args="$gtk_config_args gthread" |
22016 | ;; | |
22017 | esac | |
22018 | done | |
22019 | ||
22020 | if test x$gtk_config_exec_prefix != x ; then | |
22021 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22022 | if test x${GTK_CONFIG+set} != xset ; then | |
22023 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22024 | fi | |
22025 | fi | |
22026 | if test x$gtk_config_prefix != x ; then | |
22027 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22028 | if test x${GTK_CONFIG+set} != xset ; then | |
22029 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22030 | fi | |
22031 | fi | |
22032 | ||
22033 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22034 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22037 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22039 | else |
e6cc62c6 VS |
22040 | case $GTK_CONFIG in |
22041 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22042 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22043 | ;; | |
21d1c967 | 22044 | *) |
e6cc62c6 VS |
22045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22046 | for as_dir in $PATH | |
22047 | do | |
22048 | IFS=$as_save_IFS | |
22049 | test -z "$as_dir" && as_dir=. | |
22050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22052 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22054 | break 2 | |
22055 | fi | |
22056 | done | |
22057 | done | |
22058 | ||
21d1c967 GD |
22059 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22060 | ;; | |
22061 | esac | |
22062 | fi | |
e6cc62c6 VS |
22063 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22064 | ||
21d1c967 | 22065 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22066 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22067 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22068 | else |
e6cc62c6 VS |
22069 | echo "$as_me:$LINENO: result: no" >&5 |
22070 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22071 | fi |
22072 | ||
22073 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
22074 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22075 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22076 | no_gtk="" |
22077 | if test "$GTK_CONFIG" = "no" ; then | |
22078 | no_gtk=yes | |
22079 | else | |
22080 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22081 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22082 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22083 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22084 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22085 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22086 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22087 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22088 | if test "x$enable_gtktest" = "xyes" ; then | |
22089 | ac_save_CFLAGS="$CFLAGS" | |
22090 | ac_save_LIBS="$LIBS" | |
22091 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22092 | LIBS="$GTK_LIBS $LIBS" | |
22093 | rm -f conf.gtktest | |
22094 | if test "$cross_compiling" = yes; then | |
22095 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 22096 | else |
e6cc62c6 | 22097 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22098 | /* confdefs.h. */ |
22099 | _ACEOF | |
22100 | cat confdefs.h >>conftest.$ac_ext | |
22101 | cat >>conftest.$ac_ext <<_ACEOF | |
22102 | /* end confdefs.h. */ | |
f79bd02d | 22103 | |
21d1c967 GD |
22104 | #include <gtk/gtk.h> |
22105 | #include <stdio.h> | |
22106 | #include <stdlib.h> | |
f79bd02d | 22107 | |
e6cc62c6 | 22108 | int |
21d1c967 GD |
22109 | main () |
22110 | { | |
22111 | int major, minor, micro; | |
22112 | char *tmp_version; | |
22113 | ||
22114 | system ("touch conf.gtktest"); | |
22115 | ||
22116 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22117 | tmp_version = g_strdup("$min_gtk_version"); | |
22118 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22119 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22120 | exit(1); | |
22121 | } | |
90dd450c | 22122 | |
21d1c967 GD |
22123 | if ((gtk_major_version != $gtk_config_major_version) || |
22124 | (gtk_minor_version != $gtk_config_minor_version) || | |
22125 | (gtk_micro_version != $gtk_config_micro_version)) | |
22126 | { | |
e6cc62c6 | 22127 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22128 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22129 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22130 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22131 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22132 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22133 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22134 | printf("*** required on your system.\n"); | |
22135 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22136 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22137 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22138 | } |
21d1c967 GD |
22139 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22140 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22141 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22142 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22143 | { | |
22144 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22145 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22146 | printf("*** library (version %d.%d.%d)\n", | |
22147 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22148 | } | |
22149 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22150 | else | |
22151 | { | |
22152 | if ((gtk_major_version > major) || | |
22153 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22154 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22155 | { | |
22156 | return 0; | |
22157 | } | |
22158 | else | |
22159 | { | |
22160 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22161 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22162 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22163 | major, minor, micro); | |
22164 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22165 | printf("***\n"); | |
22166 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22167 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22168 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22169 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22170 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22171 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22172 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22173 | } | |
22174 | } | |
22175 | return 1; | |
22176 | } | |
22177 | ||
e6cc62c6 VS |
22178 | _ACEOF |
22179 | rm -f conftest$ac_exeext | |
22180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22181 | (eval $ac_link) 2>&5 | |
22182 | ac_status=$? | |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22186 | (eval $ac_try) 2>&5 | |
22187 | ac_status=$? | |
22188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22189 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22190 | : |
22191 | else | |
e6cc62c6 VS |
22192 | echo "$as_me: program exited with status $ac_status" >&5 |
22193 | echo "$as_me: failed program was:" >&5 | |
22194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22195 | ||
22196 | ( exit $ac_status ) | |
22197 | no_gtk=yes | |
21d1c967 | 22198 | fi |
32ddf007 | 22199 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22200 | fi |
21d1c967 GD |
22201 | CFLAGS="$ac_save_CFLAGS" |
22202 | LIBS="$ac_save_LIBS" | |
22203 | fi | |
22204 | fi | |
22205 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22206 | echo "$as_me:$LINENO: result: yes" >&5 |
22207 | echo "${ECHO_T}yes" >&6 | |
22208 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 22209 | else |
e6cc62c6 VS |
22210 | echo "$as_me:$LINENO: result: no" >&5 |
22211 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22212 | if test "$GTK_CONFIG" = "no" ; then |
22213 | echo "*** The gtk-config script installed by GTK could not be found" | |
22214 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22215 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22216 | echo "*** full path to gtk-config." | |
22217 | else | |
22218 | if test -f conf.gtktest ; then | |
22219 | : | |
22220 | else | |
22221 | echo "*** Could not run GTK test program, checking why..." | |
22222 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22223 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22224 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22225 | /* confdefs.h. */ |
22226 | _ACEOF | |
22227 | cat confdefs.h >>conftest.$ac_ext | |
22228 | cat >>conftest.$ac_ext <<_ACEOF | |
22229 | /* end confdefs.h. */ | |
21d1c967 GD |
22230 | |
22231 | #include <gtk/gtk.h> | |
22232 | #include <stdio.h> | |
22233 | ||
e6cc62c6 VS |
22234 | int |
22235 | main () | |
22236 | { | |
22237 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22238 | ; | |
22239 | return 0; | |
22240 | } | |
22241 | _ACEOF | |
22242 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22244 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22245 | ac_status=$? |
32ddf007 VS |
22246 | grep -v '^ *+' conftest.er1 >conftest.err |
22247 | rm -f conftest.er1 | |
22248 | cat conftest.err >&5 | |
e6cc62c6 VS |
22249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22250 | (exit $ac_status); } && | |
e1293dcf | 22251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22253 | (eval $ac_try) 2>&5 | |
22254 | ac_status=$? | |
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22256 | (exit $ac_status); }; } && | |
22257 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22259 | (eval $ac_try) 2>&5 | |
22260 | ac_status=$? | |
22261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22262 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22263 | echo "*** The test program compiled, but did not run. This usually means" |
22264 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22265 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22266 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22267 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22268 | echo "*** is required on your system" | |
22269 | echo "***" | |
22270 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22271 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22272 | echo "***" | |
22273 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22274 | echo "*** came with the system with the command" | |
22275 | echo "***" | |
e6cc62c6 | 22276 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22277 | else |
e6cc62c6 VS |
22278 | echo "$as_me: failed program was:" >&5 |
22279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22280 | ||
22281 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22282 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22283 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22284 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22285 | fi |
32ddf007 VS |
22286 | rm -f conftest.err conftest.$ac_objext \ |
22287 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22288 | CFLAGS="$ac_save_CFLAGS" |
22289 | LIBS="$ac_save_LIBS" | |
22290 | fi | |
22291 | fi | |
22292 | GTK_CFLAGS="" | |
22293 | GTK_LIBS="" | |
22294 | : | |
22295 | fi | |
e6cc62c6 VS |
22296 | |
22297 | ||
21d1c967 GD |
22298 | rm -f conf.gtktest |
22299 | ||
21d1c967 | 22300 | |
2b5f62a0 | 22301 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
22302 | |
22303 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
22304 | if test "${with_gtk_prefix+set}" = set; then |
22305 | withval="$with_gtk_prefix" | |
22306 | gtk_config_prefix="$withval" | |
22307 | else | |
22308 | gtk_config_prefix="" | |
e6cc62c6 | 22309 | fi; |
f79bd02d | 22310 | |
21d1c967 GD |
22311 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
22312 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22313 | withval="$with_gtk_exec_prefix" | |
22314 | gtk_config_exec_prefix="$withval" | |
22315 | else | |
22316 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22317 | fi; |
21d1c967 GD |
22318 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22319 | if test "${enable_gtktest+set}" = set; then | |
22320 | enableval="$enable_gtktest" | |
e6cc62c6 | 22321 | |
90dd450c | 22322 | else |
21d1c967 | 22323 | enable_gtktest=yes |
e6cc62c6 | 22324 | fi; |
21d1c967 GD |
22325 | |
22326 | for module in . $GTK_MODULES | |
22327 | do | |
22328 | case "$module" in | |
e6cc62c6 | 22329 | gthread) |
21d1c967 GD |
22330 | gtk_config_args="$gtk_config_args gthread" |
22331 | ;; | |
22332 | esac | |
22333 | done | |
22334 | ||
22335 | if test x$gtk_config_exec_prefix != x ; then | |
22336 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22337 | if test x${GTK_CONFIG+set} != xset ; then | |
22338 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22339 | fi | |
22340 | fi | |
22341 | if test x$gtk_config_prefix != x ; then | |
22342 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22343 | if test x${GTK_CONFIG+set} != xset ; then | |
22344 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22345 | fi | |
22346 | fi | |
22347 | ||
22348 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22349 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22350 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22352 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22354 | else |
e6cc62c6 VS |
22355 | case $GTK_CONFIG in |
22356 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22357 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22358 | ;; | |
21d1c967 | 22359 | *) |
e6cc62c6 VS |
22360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22361 | for as_dir in $PATH | |
22362 | do | |
22363 | IFS=$as_save_IFS | |
22364 | test -z "$as_dir" && as_dir=. | |
22365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22367 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22369 | break 2 | |
22370 | fi | |
22371 | done | |
22372 | done | |
22373 | ||
21d1c967 GD |
22374 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22375 | ;; | |
22376 | esac | |
22377 | fi | |
e6cc62c6 VS |
22378 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22379 | ||
21d1c967 | 22380 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22381 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22382 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22383 | else |
e6cc62c6 VS |
22384 | echo "$as_me:$LINENO: result: no" >&5 |
22385 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22386 | fi |
22387 | ||
22388 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
22389 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22390 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22391 | no_gtk="" |
22392 | if test "$GTK_CONFIG" = "no" ; then | |
22393 | no_gtk=yes | |
22394 | else | |
22395 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22396 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22397 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22398 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22399 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22400 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22401 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22402 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22403 | if test "x$enable_gtktest" = "xyes" ; then | |
22404 | ac_save_CFLAGS="$CFLAGS" | |
22405 | ac_save_LIBS="$LIBS" | |
22406 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22407 | LIBS="$GTK_LIBS $LIBS" | |
22408 | rm -f conf.gtktest | |
22409 | if test "$cross_compiling" = yes; then | |
22410 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22411 | else | |
e6cc62c6 | 22412 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22413 | /* confdefs.h. */ |
22414 | _ACEOF | |
22415 | cat confdefs.h >>conftest.$ac_ext | |
22416 | cat >>conftest.$ac_ext <<_ACEOF | |
22417 | /* end confdefs.h. */ | |
21d1c967 GD |
22418 | |
22419 | #include <gtk/gtk.h> | |
22420 | #include <stdio.h> | |
22421 | #include <stdlib.h> | |
22422 | ||
e6cc62c6 | 22423 | int |
21d1c967 GD |
22424 | main () |
22425 | { | |
22426 | int major, minor, micro; | |
22427 | char *tmp_version; | |
22428 | ||
22429 | system ("touch conf.gtktest"); | |
22430 | ||
22431 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22432 | tmp_version = g_strdup("$min_gtk_version"); | |
22433 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22434 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22435 | exit(1); | |
22436 | } | |
22437 | ||
22438 | if ((gtk_major_version != $gtk_config_major_version) || | |
22439 | (gtk_minor_version != $gtk_config_minor_version) || | |
22440 | (gtk_micro_version != $gtk_config_micro_version)) | |
22441 | { | |
e6cc62c6 | 22442 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22443 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22444 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22445 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22446 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22447 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22448 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22449 | printf("*** required on your system.\n"); | |
22450 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22451 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22452 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22453 | } |
21d1c967 GD |
22454 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22455 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22456 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22457 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22458 | { | |
22459 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22460 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22461 | printf("*** library (version %d.%d.%d)\n", | |
22462 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22463 | } | |
22464 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22465 | else | |
22466 | { | |
22467 | if ((gtk_major_version > major) || | |
22468 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22469 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22470 | { | |
22471 | return 0; | |
22472 | } | |
22473 | else | |
22474 | { | |
22475 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22476 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22477 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22478 | major, minor, micro); | |
22479 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22480 | printf("***\n"); | |
22481 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22482 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22483 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22484 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22485 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22486 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22487 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22488 | } | |
22489 | } | |
22490 | return 1; | |
22491 | } | |
22492 | ||
e6cc62c6 VS |
22493 | _ACEOF |
22494 | rm -f conftest$ac_exeext | |
22495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22496 | (eval $ac_link) 2>&5 | |
22497 | ac_status=$? | |
22498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22501 | (eval $ac_try) 2>&5 | |
22502 | ac_status=$? | |
22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22504 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22505 | : |
22506 | else | |
e6cc62c6 VS |
22507 | echo "$as_me: program exited with status $ac_status" >&5 |
22508 | echo "$as_me: failed program was:" >&5 | |
22509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22510 | ||
22511 | ( exit $ac_status ) | |
22512 | no_gtk=yes | |
21d1c967 | 22513 | fi |
32ddf007 | 22514 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22515 | fi |
21d1c967 GD |
22516 | CFLAGS="$ac_save_CFLAGS" |
22517 | LIBS="$ac_save_LIBS" | |
22518 | fi | |
22519 | fi | |
22520 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22521 | echo "$as_me:$LINENO: result: yes" >&5 |
22522 | echo "${ECHO_T}yes" >&6 | |
22523 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 22524 | else |
e6cc62c6 VS |
22525 | echo "$as_me:$LINENO: result: no" >&5 |
22526 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22527 | if test "$GTK_CONFIG" = "no" ; then |
22528 | echo "*** The gtk-config script installed by GTK could not be found" | |
22529 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22530 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22531 | echo "*** full path to gtk-config." | |
22532 | else | |
22533 | if test -f conf.gtktest ; then | |
22534 | : | |
22535 | else | |
22536 | echo "*** Could not run GTK test program, checking why..." | |
22537 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22538 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22539 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22540 | /* confdefs.h. */ |
22541 | _ACEOF | |
22542 | cat confdefs.h >>conftest.$ac_ext | |
22543 | cat >>conftest.$ac_ext <<_ACEOF | |
22544 | /* end confdefs.h. */ | |
21d1c967 GD |
22545 | |
22546 | #include <gtk/gtk.h> | |
22547 | #include <stdio.h> | |
f79bd02d | 22548 | |
e6cc62c6 VS |
22549 | int |
22550 | main () | |
22551 | { | |
22552 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22553 | ; | |
22554 | return 0; | |
22555 | } | |
22556 | _ACEOF | |
22557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22559 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22560 | ac_status=$? |
32ddf007 VS |
22561 | grep -v '^ *+' conftest.er1 >conftest.err |
22562 | rm -f conftest.er1 | |
22563 | cat conftest.err >&5 | |
e6cc62c6 VS |
22564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22565 | (exit $ac_status); } && | |
e1293dcf | 22566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22568 | (eval $ac_try) 2>&5 | |
22569 | ac_status=$? | |
22570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22571 | (exit $ac_status); }; } && | |
22572 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22574 | (eval $ac_try) 2>&5 | |
22575 | ac_status=$? | |
22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22577 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22578 | echo "*** The test program compiled, but did not run. This usually means" |
22579 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22580 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22581 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22582 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22583 | echo "*** is required on your system" | |
22584 | echo "***" | |
22585 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22586 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22587 | echo "***" | |
22588 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22589 | echo "*** came with the system with the command" | |
22590 | echo "***" | |
e6cc62c6 | 22591 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22592 | else |
e6cc62c6 VS |
22593 | echo "$as_me: failed program was:" >&5 |
22594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22595 | ||
22596 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22597 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22598 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22599 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22600 | fi |
32ddf007 VS |
22601 | rm -f conftest.err conftest.$ac_objext \ |
22602 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22603 | CFLAGS="$ac_save_CFLAGS" |
22604 | LIBS="$ac_save_LIBS" | |
22605 | fi | |
22606 | fi | |
22607 | GTK_CFLAGS="" | |
22608 | GTK_LIBS="" | |
22609 | : | |
22610 | fi | |
e6cc62c6 VS |
22611 | |
22612 | ||
21d1c967 | 22613 | rm -f conf.gtktest |
f79bd02d | 22614 | |
2b5f62a0 | 22615 | fi |
21d1c967 GD |
22616 | fi |
22617 | ||
22618 | if test -z "$wx_cv_lib_gtk"; then | |
22619 | wx_cv_lib_gtk=none | |
22620 | else | |
22621 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
22622 | wx_cv_libs_gtk=$GTK_LIBS | |
22623 | fi | |
e6cc62c6 VS |
22624 | |
22625 | ||
5c6fa7d2 | 22626 | fi |
52127426 | 22627 | |
8284b0c5 | 22628 | |
21d1c967 | 22629 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
22630 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
22631 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
22632 | fi |
22633 | ||
22634 | case "$wx_cv_lib_gtk" in | |
22635 | 2.0) WXGTK20=1 | |
2b5f62a0 | 22636 | TOOLKIT_VERSION=2 |
21d1c967 GD |
22637 | ;; |
22638 | 1.2.7) WXGTK127=1 | |
22639 | WXGTK12=1 | |
22640 | ;; | |
22641 | 1.2.3) WXGTK12=1 | |
22642 | ;; | |
e6cc62c6 VS |
22643 | *) { { echo "$as_me:$LINENO: error: |
22644 | Please check that gtk-config is in path, the directory | |
22645 | where GTK+ libraries are installed (returned by | |
22646 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22647 | equivalent variable and GTK+ is version 1.2.3 or above. | |
22648 | " >&5 | |
22649 | echo "$as_me: error: | |
247f5006 VZ |
22650 | Please check that gtk-config is in path, the directory |
22651 | where GTK+ libraries are installed (returned by | |
22652 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22653 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
22654 | " >&2;} |
22655 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22656 | ;; |
22657 | esac | |
22658 | ||
b13cd66e VZ |
22659 | if test "$WXGTK20" = 1; then |
22660 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 22661 | |
f09359cf VS |
22662 | succeeded=no |
22663 | ||
22664 | if test -z "$PKG_CONFIG"; then | |
22665 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22666 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22667 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22669 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 22671 | else |
e6cc62c6 VS |
22672 | case $PKG_CONFIG in |
22673 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
22674 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22675 | ;; | |
f09359cf | 22676 | *) |
e6cc62c6 VS |
22677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22678 | for as_dir in $PATH | |
22679 | do | |
22680 | IFS=$as_save_IFS | |
22681 | test -z "$as_dir" && as_dir=. | |
22682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22684 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22686 | break 2 | |
22687 | fi | |
22688 | done | |
22689 | done | |
22690 | ||
f09359cf VS |
22691 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22692 | ;; | |
22693 | esac | |
22694 | fi | |
e6cc62c6 VS |
22695 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22696 | ||
f09359cf | 22697 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22698 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22699 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 22700 | else |
e6cc62c6 VS |
22701 | echo "$as_me:$LINENO: result: no" >&5 |
22702 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
22703 | fi |
22704 | ||
22705 | fi | |
22706 | ||
22707 | if test "$PKG_CONFIG" = "no" ; then | |
22708 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22709 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22710 | echo "*** to the full path to pkg-config." | |
22711 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22712 | else | |
22713 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22714 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22715 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22716 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
22717 | |
22718 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22719 | echo "$as_me:$LINENO: result: yes" >&5 |
22720 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
22721 | succeeded=yes |
22722 | ||
e6cc62c6 VS |
22723 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22724 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 22725 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22726 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22727 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 22728 | |
e6cc62c6 VS |
22729 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22730 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 22731 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22732 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22733 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
22734 | else |
22735 | PANGOFT2_CFLAGS="" | |
22736 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22737 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
22738 | ## do set a variable so people can do so. |
22739 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22740 | |
f09359cf VS |
22741 | fi |
22742 | ||
e6cc62c6 VS |
22743 | |
22744 | ||
f09359cf VS |
22745 | else |
22746 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22747 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22748 | fi | |
22749 | fi | |
22750 | ||
22751 | if test $succeeded = yes; then | |
e6cc62c6 | 22752 | |
b13cd66e | 22753 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22754 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22755 | |
f09359cf | 22756 | else |
e6cc62c6 VS |
22757 | |
22758 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22759 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 22760 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22761 | |
22762 | ||
f09359cf VS |
22763 | fi |
22764 | ||
b13cd66e | 22765 | fi |
2b5f62a0 VZ |
22766 | else |
22767 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
22768 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
22769 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
22770 | wxUSE_UNICODE=no |
22771 | fi | |
22772 | fi | |
22773 | ||
22774 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
22775 | |
22776 | for ac_func in poll | |
2b5f62a0 | 22777 | do |
e6cc62c6 VS |
22778 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22779 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22780 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22781 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22783 | else | |
22784 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22785 | /* confdefs.h. */ |
22786 | _ACEOF | |
22787 | cat confdefs.h >>conftest.$ac_ext | |
22788 | cat >>conftest.$ac_ext <<_ACEOF | |
22789 | /* end confdefs.h. */ | |
32ddf007 VS |
22790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22792 | #define $ac_func innocuous_$ac_func | |
22793 | ||
2b5f62a0 | 22794 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22795 | which can conflict with char $ac_func (); below. |
22796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22797 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 22798 | |
e6cc62c6 VS |
22799 | #ifdef __STDC__ |
22800 | # include <limits.h> | |
22801 | #else | |
22802 | # include <assert.h> | |
22803 | #endif | |
32ddf007 VS |
22804 | |
22805 | #undef $ac_func | |
22806 | ||
2b5f62a0 | 22807 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22808 | #ifdef __cplusplus |
22809 | extern "C" | |
22810 | { | |
22811 | #endif | |
2b5f62a0 | 22812 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22813 | builtin and then its argument prototype would still apply. */ |
22814 | char $ac_func (); | |
2b5f62a0 VZ |
22815 | /* The GNU C library defines this for functions which it implements |
22816 | to always fail with ENOSYS. Some functions are actually named | |
22817 | something starting with __ and the normal name is an alias. */ | |
22818 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22819 | choke me | |
22820 | #else | |
e6cc62c6 VS |
22821 | char (*f) () = $ac_func; |
22822 | #endif | |
22823 | #ifdef __cplusplus | |
22824 | } | |
2b5f62a0 VZ |
22825 | #endif |
22826 | ||
e6cc62c6 VS |
22827 | int |
22828 | main () | |
22829 | { | |
22830 | return f != $ac_func; | |
22831 | ; | |
22832 | return 0; | |
22833 | } | |
22834 | _ACEOF | |
22835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22837 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22838 | ac_status=$? |
32ddf007 VS |
22839 | grep -v '^ *+' conftest.er1 >conftest.err |
22840 | rm -f conftest.er1 | |
22841 | cat conftest.err >&5 | |
e6cc62c6 VS |
22842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22843 | (exit $ac_status); } && | |
e1293dcf | 22844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22846 | (eval $ac_try) 2>&5 | |
22847 | ac_status=$? | |
22848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22849 | (exit $ac_status); }; } && | |
22850 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22852 | (eval $ac_try) 2>&5 | |
22853 | ac_status=$? | |
22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22855 | (exit $ac_status); }; }; then | |
22856 | eval "$as_ac_var=yes" | |
22857 | else | |
22858 | echo "$as_me: failed program was:" >&5 | |
22859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22860 | ||
22861 | eval "$as_ac_var=no" | |
22862 | fi | |
32ddf007 VS |
22863 | rm -f conftest.err conftest.$ac_objext \ |
22864 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22865 | fi |
22866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22867 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22868 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22869 | cat >>confdefs.h <<_ACEOF | |
22870 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22871 | _ACEOF | |
2b5f62a0 | 22872 | |
2b5f62a0 VZ |
22873 | fi |
22874 | done | |
22875 | ||
f09359cf VS |
22876 | fi |
22877 | ||
21d1c967 | 22878 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 22879 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
22880 | |
22881 | AFMINSTALL=afminstall | |
22882 | TOOLKIT=GTK | |
22883 | GUIDIST=GTK_DIST | |
22884 | ||
e6cc62c6 VS |
22885 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
22886 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
22887 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
22888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22889 | else |
e6cc62c6 | 22890 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22891 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 22892 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22893 | /* confdefs.h. */ |
22894 | _ACEOF | |
22895 | cat confdefs.h >>conftest.$ac_ext | |
22896 | cat >>conftest.$ac_ext <<_ACEOF | |
22897 | /* end confdefs.h. */ | |
22898 | ||
5c6fa7d2 | 22899 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22900 | #ifdef __cplusplus |
22901 | extern "C" | |
22902 | #endif | |
5c6fa7d2 | 22903 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22904 | builtin and then its argument prototype would still apply. */ |
22905 | char gdk_im_open (); | |
22906 | int | |
22907 | main () | |
22908 | { | |
22909 | gdk_im_open (); | |
22910 | ; | |
22911 | return 0; | |
22912 | } | |
22913 | _ACEOF | |
22914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22916 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22917 | ac_status=$? |
32ddf007 VS |
22918 | grep -v '^ *+' conftest.er1 >conftest.err |
22919 | rm -f conftest.er1 | |
22920 | cat conftest.err >&5 | |
e6cc62c6 VS |
22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22922 | (exit $ac_status); } && | |
e1293dcf | 22923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22925 | (eval $ac_try) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); }; } && | |
22929 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22931 | (eval $ac_try) 2>&5 | |
22932 | ac_status=$? | |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22934 | (exit $ac_status); }; }; then | |
22935 | ac_cv_lib_gdk_gdk_im_open=yes | |
22936 | else | |
22937 | echo "$as_me: failed program was:" >&5 | |
22938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22939 | ||
22940 | ac_cv_lib_gdk_gdk_im_open=no | |
22941 | fi | |
32ddf007 VS |
22942 | rm -f conftest.err conftest.$ac_objext \ |
22943 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22944 | LIBS=$ac_check_lib_save_LIBS |
22945 | fi | |
22946 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
22947 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
22948 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
22949 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22950 | #define HAVE_XIM 1 |
e6cc62c6 | 22951 | _ACEOF |
21d1c967 | 22952 | |
90dd450c | 22953 | fi |
1e6feb95 | 22954 | |
0f87e84c RR |
22955 | |
22956 | ||
22957 | if test "$wxUSE_GPE" = "yes"; then | |
22958 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
22959 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
22960 | ||
22961 | ac_find_libraries= | |
22962 | for ac_dir in $SEARCH_LIB /usr/lib; | |
22963 | do | |
22964 | for ac_extension in a so sl dylib; do | |
22965 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
22966 | ac_find_libraries=$ac_dir | |
22967 | break 2 | |
22968 | fi | |
22969 | done | |
22970 | done | |
22971 | ||
22972 | if test "$ac_find_libraries" != "" ; then | |
22973 | ||
22974 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
22975 | result=$? | |
22976 | if test $result = 0; then | |
22977 | ac_path_to_link="" | |
22978 | else | |
22979 | ac_path_to_link=" -L$ac_find_libraries" | |
22980 | fi | |
22981 | ||
22982 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
22983 | WXGPE=1 | |
22984 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
22985 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
22986 | else | |
22987 | echo "$as_me:$LINENO: result: not found" >&5 | |
22988 | echo "${ECHO_T}not found" >&6 | |
22989 | fi | |
22990 | ||
22991 | fi | |
21d1c967 | 22992 | fi |
1e6feb95 | 22993 | |
21d1c967 | 22994 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
22995 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
22996 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 22997 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
22998 | echo "$as_me:$LINENO: result: not found" >&5 |
22999 | echo "${ECHO_T}not found" >&6 | |
23000 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23001 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23002 | { (exit 1); exit 1; }; } | |
21d1c967 | 23003 | else |
e6cc62c6 VS |
23004 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
23005 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
23006 | fi |
23007 | ||
e6cc62c6 VS |
23008 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
23009 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 23010 | case "${host}" in |
21d1c967 | 23011 | *-*-linux* ) |
e46d2a18 VS |
23012 | if test "x$wxUSE_SHARED" = xyes ; then |
23013 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 23014 | else |
e46d2a18 | 23015 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 23016 | fi |
21d1c967 GD |
23017 | ;; |
23018 | *-pc-msdosdjgpp ) | |
63a76696 | 23019 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
23020 | ;; |
23021 | *) | |
e6cc62c6 VS |
23022 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
23023 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23024 | { (exit 1); exit 1; }; } | |
21d1c967 | 23025 | esac |
1e6feb95 | 23026 | |
21d1c967 | 23027 | mgl_lib_type="" |
63a76696 VS |
23028 | mgl_os="" |
23029 | ||
23030 | for mgl_os_i in $mgl_os_candidates ; do | |
23031 | if test "x$mgl_os" = x ; then | |
23032 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23033 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23034 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23035 | mgl_lib_type=debug | |
23036 | mgl_os=$mgl_os_i | |
23037 | fi | |
23038 | fi | |
23039 | if test "x$mgl_lib_type" = x ; then | |
23040 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23041 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23042 | mgl_lib_type=release | |
23043 | mgl_os=$mgl_os_i | |
23044 | fi | |
23045 | fi | |
21d1c967 | 23046 | fi |
63a76696 | 23047 | done |
2224580a | 23048 | |
63a76696 | 23049 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
23050 | echo "$as_me:$LINENO: result: not found" >&5 |
23051 | echo "${ECHO_T}not found" >&6 | |
23052 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23053 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23054 | { (exit 1); exit 1; }; } | |
63a76696 | 23055 | fi |
e6cc62c6 VS |
23056 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
23057 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 23058 | |
1d1b75ac VZ |
23059 | wxUSE_UNIVERSAL="yes" |
23060 | ||
21d1c967 GD |
23061 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
23062 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23063 | ||
90dd450c | 23064 | AFMINSTALL=afminstall |
21d1c967 GD |
23065 | TOOLKIT=MGL |
23066 | GUIDIST=MGL_DIST | |
23067 | fi | |
dad6c0ea | 23068 | |
21d1c967 | 23069 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
23070 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
23071 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 23072 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
23073 | echo "$as_me:$LINENO: result: not found" >&5 |
23074 | echo "${ECHO_T}not found" >&6 | |
23075 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23076 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23077 | { (exit 1); exit 1; }; } | |
21d1c967 | 23078 | else |
e6cc62c6 VS |
23079 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
23080 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 23081 | fi |
f6bcfd97 | 23082 | |
21d1c967 | 23083 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
23084 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
23085 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 23086 | else |
e6cc62c6 VS |
23087 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
23088 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23089 | { (exit 1); exit 1; }; } | |
90dd450c | 23090 | fi |
0b2effe9 | 23091 | |
21d1c967 GD |
23092 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
23093 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23094 | ||
1d1b75ac VZ |
23095 | wxUSE_UNIVERSAL="yes" |
23096 | ||
21d1c967 GD |
23097 | AFMINSTALL=afminstall |
23098 | TOOLKIT=MICROWIN | |
23099 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
23100 | |
23101 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 23102 | fi |
f6bcfd97 | 23103 | |
21d1c967 | 23104 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
23105 | echo "$as_me:$LINENO: checking for X" >&5 |
23106 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
23107 | ||
d8356fa3 | 23108 | |
21d1c967 GD |
23109 | # Check whether --with-x or --without-x was given. |
23110 | if test "${with_x+set}" = set; then | |
23111 | withval="$with_x" | |
2224580a | 23112 | |
e6cc62c6 | 23113 | fi; |
21d1c967 GD |
23114 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23115 | if test "x$with_x" = xno; then | |
23116 | # The user explicitly disabled X. | |
23117 | have_x=disabled | |
23118 | else | |
23119 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23120 | # Both variables are already set. | |
23121 | have_x=yes | |
23122 | else | |
e6cc62c6 VS |
23123 | if test "${ac_cv_have_x+set}" = set; then |
23124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
23125 | else |
23126 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
23127 | ac_x_includes=no ac_x_libraries=no |
23128 | rm -fr conftest.dir | |
23129 | if mkdir conftest.dir; then | |
23130 | cd conftest.dir | |
21d1c967 | 23131 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 23132 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
23133 | acfindx: |
23134 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 23135 | _ACEOF |
21d1c967 GD |
23136 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
23137 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23138 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23139 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23140 | for ac_extension in a so sl; do | |
23141 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
32ddf007 VS |
23142 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23143 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
23144 | fi |
23145 | done | |
23146 | # Screen out bogus values from the imake configuration. They are | |
23147 | # bogus both because they are the default anyway, and because | |
23148 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 23149 | case $ac_im_incroot in |
21d1c967 | 23150 | /usr/include) ;; |
e6cc62c6 | 23151 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 23152 | esac |
e6cc62c6 | 23153 | case $ac_im_usrlibdir in |
21d1c967 | 23154 | /usr/lib | /lib) ;; |
e6cc62c6 | 23155 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
23156 | esac |
23157 | fi | |
23158 | cd .. | |
e6cc62c6 | 23159 | rm -fr conftest.dir |
21d1c967 | 23160 | fi |
10f2d63a | 23161 | |
e6cc62c6 VS |
23162 | # Standard set of common directories for X headers. |
23163 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23164 | ac_x_header_dirs=' | |
23165 | /usr/X11/include | |
23166 | /usr/X11R6/include | |
23167 | /usr/X11R5/include | |
23168 | /usr/X11R4/include | |
23169 | ||
23170 | /usr/include/X11 | |
23171 | /usr/include/X11R6 | |
23172 | /usr/include/X11R5 | |
23173 | /usr/include/X11R4 | |
23174 | ||
23175 | /usr/local/X11/include | |
23176 | /usr/local/X11R6/include | |
23177 | /usr/local/X11R5/include | |
23178 | /usr/local/X11R4/include | |
23179 | ||
23180 | /usr/local/include/X11 | |
23181 | /usr/local/include/X11R6 | |
23182 | /usr/local/include/X11R5 | |
23183 | /usr/local/include/X11R4 | |
23184 | ||
23185 | /usr/X386/include | |
23186 | /usr/x386/include | |
23187 | /usr/XFree86/include/X11 | |
23188 | ||
23189 | /usr/include | |
23190 | /usr/local/include | |
23191 | /usr/unsupported/include | |
23192 | /usr/athena/include | |
23193 | /usr/local/x11r5/include | |
23194 | /usr/lpp/Xamples/include | |
23195 | ||
23196 | /usr/openwin/include | |
23197 | /usr/openwin/share/include' | |
23198 | ||
23199 | if test "$ac_x_includes" = no; then | |
23200 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 23201 | # First, try using that file with no special directory specified. |
e6cc62c6 | 23202 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23203 | /* confdefs.h. */ |
23204 | _ACEOF | |
23205 | cat confdefs.h >>conftest.$ac_ext | |
23206 | cat >>conftest.$ac_ext <<_ACEOF | |
23207 | /* end confdefs.h. */ | |
23208 | #include <X11/Intrinsic.h> | |
23209 | _ACEOF | |
23210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23212 | ac_status=$? | |
23213 | grep -v '^ *+' conftest.er1 >conftest.err | |
23214 | rm -f conftest.er1 | |
23215 | cat conftest.err >&5 | |
23216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23217 | (exit $ac_status); } >/dev/null; then | |
23218 | if test -s conftest.err; then | |
23219 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 23220 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
23221 | else |
23222 | ac_cpp_err= | |
23223 | fi | |
23224 | else | |
23225 | ac_cpp_err=yes | |
23226 | fi | |
23227 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
23228 | # We can compile using X headers with no special include directory. |
23229 | ac_x_includes= | |
90dd450c | 23230 | else |
e6cc62c6 VS |
23231 | echo "$as_me: failed program was:" >&5 |
23232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23233 | ||
23234 | for ac_dir in $ac_x_header_dirs; do | |
23235 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23236 | ac_x_includes=$ac_dir | |
23237 | break | |
23238 | fi | |
23239 | done | |
3a922bb4 | 23240 | fi |
e6cc62c6 VS |
23241 | rm -f conftest.err conftest.$ac_ext |
23242 | fi # $ac_x_includes = no | |
10f2d63a | 23243 | |
e6cc62c6 | 23244 | if test "$ac_x_libraries" = no; then |
21d1c967 | 23245 | # Check for the libraries. |
21d1c967 GD |
23246 | # See if we find them without any special options. |
23247 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
23248 | ac_save_LIBS=$LIBS |
23249 | LIBS="-lXt $LIBS" | |
23250 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23251 | /* confdefs.h. */ |
23252 | _ACEOF | |
23253 | cat confdefs.h >>conftest.$ac_ext | |
23254 | cat >>conftest.$ac_ext <<_ACEOF | |
23255 | /* end confdefs.h. */ | |
23256 | #include <X11/Intrinsic.h> | |
23257 | int | |
23258 | main () | |
23259 | { | |
23260 | XtMalloc (0) | |
23261 | ; | |
23262 | return 0; | |
23263 | } | |
23264 | _ACEOF | |
23265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23267 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23268 | ac_status=$? |
32ddf007 VS |
23269 | grep -v '^ *+' conftest.er1 >conftest.err |
23270 | rm -f conftest.er1 | |
23271 | cat conftest.err >&5 | |
e6cc62c6 VS |
23272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23273 | (exit $ac_status); } && | |
e1293dcf | 23274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23276 | (eval $ac_try) 2>&5 | |
23277 | ac_status=$? | |
23278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23279 | (exit $ac_status); }; } && | |
23280 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23282 | (eval $ac_try) 2>&5 | |
23283 | ac_status=$? | |
23284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23285 | (exit $ac_status); }; }; then | |
23286 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
23287 | # We can link X programs with no special library path. |
23288 | ac_x_libraries= | |
3a922bb4 | 23289 | else |
e6cc62c6 VS |
23290 | echo "$as_me: failed program was:" >&5 |
23291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23292 | ||
23293 | LIBS=$ac_save_LIBS | |
23294 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 23295 | do |
e6cc62c6 | 23296 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 23297 | for ac_extension in a so sl; do |
e6cc62c6 | 23298 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
23299 | ac_x_libraries=$ac_dir |
23300 | break 2 | |
23301 | fi | |
23302 | done | |
23303 | done | |
3a922bb4 | 23304 | fi |
32ddf007 VS |
23305 | rm -f conftest.err conftest.$ac_objext \ |
23306 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23307 | fi # $ac_x_libraries = no |
90dd450c | 23308 | |
e6cc62c6 | 23309 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
23310 | # Didn't find X anywhere. Cache the known absence of X. |
23311 | ac_cv_have_x="have_x=no" | |
23312 | else | |
23313 | # Record where we found X for the cache. | |
23314 | ac_cv_have_x="have_x=yes \ | |
32ddf007 | 23315 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 23316 | fi |
21d1c967 | 23317 | fi |
e6cc62c6 | 23318 | |
21d1c967 GD |
23319 | fi |
23320 | eval "$ac_cv_have_x" | |
23321 | fi # $with_x != no | |
90dd450c | 23322 | |
21d1c967 | 23323 | if test "$have_x" != yes; then |
e6cc62c6 VS |
23324 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23325 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
23326 | no_x=yes |
23327 | else | |
23328 | # If each of the values was on the command line, it overrides each guess. | |
23329 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23330 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23331 | # Update the cache value to reflect the command line values. | |
23332 | ac_cv_have_x="have_x=yes \ | |
23333 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
23334 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23335 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 23336 | fi |
90dd450c | 23337 | |
21d1c967 | 23338 | if test "$no_x" = yes; then |
90dd450c | 23339 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
23340 | |
23341 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 23342 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 23343 | _ACEOF |
90dd450c VZ |
23344 | |
23345 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23346 | else | |
23347 | if test -n "$x_includes"; then | |
23348 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 23349 | fi |
3a922bb4 | 23350 | |
90dd450c VZ |
23351 | # It would also be nice to do this for all -L options, not just this one. |
23352 | if test -n "$x_libraries"; then | |
23353 | X_LIBS="$X_LIBS -L$x_libraries" | |
23354 | # For Solaris; some versions of Sun CC require a space after -R and | |
23355 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23356 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 23357 | "SunOS 5"*) |
e6cc62c6 VS |
23358 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23359 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23360 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23361 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23362 | /* confdefs.h. */ |
23363 | _ACEOF | |
23364 | cat confdefs.h >>conftest.$ac_ext | |
23365 | cat >>conftest.$ac_ext <<_ACEOF | |
23366 | /* end confdefs.h. */ | |
23367 | ||
23368 | int | |
23369 | main () | |
23370 | { | |
90dd450c | 23371 | |
e6cc62c6 VS |
23372 | ; |
23373 | return 0; | |
23374 | } | |
23375 | _ACEOF | |
23376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23378 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23379 | ac_status=$? |
32ddf007 VS |
23380 | grep -v '^ *+' conftest.er1 >conftest.err |
23381 | rm -f conftest.er1 | |
23382 | cat conftest.err >&5 | |
e6cc62c6 VS |
23383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23384 | (exit $ac_status); } && | |
e1293dcf | 23385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23387 | (eval $ac_try) 2>&5 | |
23388 | ac_status=$? | |
23389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23390 | (exit $ac_status); }; } && | |
23391 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23393 | (eval $ac_try) 2>&5 | |
23394 | ac_status=$? | |
23395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23396 | (exit $ac_status); }; }; then | |
90dd450c | 23397 | ac_R_nospace=yes |
3a922bb4 | 23398 | else |
e6cc62c6 VS |
23399 | echo "$as_me: failed program was:" >&5 |
23400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23401 | ||
23402 | ac_R_nospace=no | |
3a922bb4 | 23403 | fi |
32ddf007 VS |
23404 | rm -f conftest.err conftest.$ac_objext \ |
23405 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23406 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23407 | echo "$as_me:$LINENO: result: no" >&5 |
23408 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
23409 | X_LIBS="$X_LIBS -R$x_libraries" |
23410 | else | |
23411 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 23412 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23413 | /* confdefs.h. */ |
23414 | _ACEOF | |
23415 | cat confdefs.h >>conftest.$ac_ext | |
23416 | cat >>conftest.$ac_ext <<_ACEOF | |
23417 | /* end confdefs.h. */ | |
23418 | ||
23419 | int | |
23420 | main () | |
23421 | { | |
6f754473 | 23422 | |
e6cc62c6 VS |
23423 | ; |
23424 | return 0; | |
23425 | } | |
23426 | _ACEOF | |
23427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23429 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23430 | ac_status=$? |
32ddf007 VS |
23431 | grep -v '^ *+' conftest.er1 >conftest.err |
23432 | rm -f conftest.er1 | |
23433 | cat conftest.err >&5 | |
e6cc62c6 VS |
23434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23435 | (exit $ac_status); } && | |
e1293dcf | 23436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23438 | (eval $ac_try) 2>&5 | |
23439 | ac_status=$? | |
23440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23441 | (exit $ac_status); }; } && | |
23442 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23444 | (eval $ac_try) 2>&5 | |
23445 | ac_status=$? | |
23446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23447 | (exit $ac_status); }; }; then | |
90dd450c VZ |
23448 | ac_R_space=yes |
23449 | else | |
e6cc62c6 VS |
23450 | echo "$as_me: failed program was:" >&5 |
23451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23452 | ||
23453 | ac_R_space=no | |
90dd450c | 23454 | fi |
32ddf007 VS |
23455 | rm -f conftest.err conftest.$ac_objext \ |
23456 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23457 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23458 | echo "$as_me:$LINENO: result: yes" >&5 |
23459 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
23460 | X_LIBS="$X_LIBS -R $x_libraries" |
23461 | else | |
e6cc62c6 VS |
23462 | echo "$as_me:$LINENO: result: neither works" >&5 |
23463 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
23464 | fi |
23465 | fi | |
e6cc62c6 | 23466 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
23467 | esac |
23468 | fi | |
23469 | ||
23470 | # Check for system-dependent libraries X programs must link with. | |
23471 | # Do this before checking for the system-independent R6 libraries | |
23472 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 23473 | |
90dd450c VZ |
23474 | if test "$ISC" = yes; then |
23475 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23476 | else | |
e6cc62c6 VS |
23477 | # Martyn Johnson says this is needed for Ultrix, if the X |
23478 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 23479 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23480 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23481 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23482 | /* confdefs.h. */ |
23483 | _ACEOF | |
23484 | cat confdefs.h >>conftest.$ac_ext | |
23485 | cat >>conftest.$ac_ext <<_ACEOF | |
23486 | /* end confdefs.h. */ | |
23487 | ||
247f5006 | 23488 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23489 | #ifdef __cplusplus |
23490 | extern "C" | |
23491 | #endif | |
247f5006 | 23492 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23493 | builtin and then its argument prototype would still apply. */ |
23494 | char XOpenDisplay (); | |
23495 | int | |
23496 | main () | |
23497 | { | |
23498 | XOpenDisplay (); | |
23499 | ; | |
23500 | return 0; | |
23501 | } | |
23502 | _ACEOF | |
23503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23505 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23506 | ac_status=$? |
32ddf007 VS |
23507 | grep -v '^ *+' conftest.er1 >conftest.err |
23508 | rm -f conftest.er1 | |
23509 | cat conftest.err >&5 | |
e6cc62c6 VS |
23510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23511 | (exit $ac_status); } && | |
e1293dcf | 23512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23514 | (eval $ac_try) 2>&5 | |
23515 | ac_status=$? | |
23516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23517 | (exit $ac_status); }; } && | |
23518 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23520 | (eval $ac_try) 2>&5 | |
23521 | ac_status=$? | |
23522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23523 | (exit $ac_status); }; }; then | |
23524 | : | |
23525 | else | |
23526 | echo "$as_me: failed program was:" >&5 | |
23527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23528 | |
e6cc62c6 VS |
23529 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23530 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23531 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23533 | else |
e6cc62c6 VS |
23534 | ac_check_lib_save_LIBS=$LIBS |
23535 | LIBS="-ldnet $LIBS" | |
23536 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23537 | /* confdefs.h. */ |
23538 | _ACEOF | |
23539 | cat confdefs.h >>conftest.$ac_ext | |
23540 | cat >>conftest.$ac_ext <<_ACEOF | |
23541 | /* end confdefs.h. */ | |
a0b9e27f | 23542 | |
e6cc62c6 VS |
23543 | /* Override any gcc2 internal prototype to avoid an error. */ |
23544 | #ifdef __cplusplus | |
23545 | extern "C" | |
23546 | #endif | |
23547 | /* We use char because int might match the return type of a gcc2 | |
23548 | builtin and then its argument prototype would still apply. */ | |
23549 | char dnet_ntoa (); | |
23550 | int | |
23551 | main () | |
23552 | { | |
23553 | dnet_ntoa (); | |
23554 | ; | |
23555 | return 0; | |
23556 | } | |
23557 | _ACEOF | |
23558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23560 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23561 | ac_status=$? |
32ddf007 VS |
23562 | grep -v '^ *+' conftest.er1 >conftest.err |
23563 | rm -f conftest.er1 | |
23564 | cat conftest.err >&5 | |
e6cc62c6 VS |
23565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23566 | (exit $ac_status); } && | |
e1293dcf | 23567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23569 | (eval $ac_try) 2>&5 | |
23570 | ac_status=$? | |
23571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23572 | (exit $ac_status); }; } && | |
23573 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23575 | (eval $ac_try) 2>&5 | |
23576 | ac_status=$? | |
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23578 | (exit $ac_status); }; }; then | |
23579 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23580 | else | |
23581 | echo "$as_me: failed program was:" >&5 | |
23582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23583 | ||
23584 | ac_cv_lib_dnet_dnet_ntoa=no | |
23585 | fi | |
32ddf007 VS |
23586 | rm -f conftest.err conftest.$ac_objext \ |
23587 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23588 | LIBS=$ac_check_lib_save_LIBS |
23589 | fi | |
23590 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23591 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23592 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 23593 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
23594 | fi |
23595 | ||
90dd450c | 23596 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23597 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23598 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23599 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23601 | else |
e6cc62c6 | 23602 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23603 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23604 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23605 | /* confdefs.h. */ |
23606 | _ACEOF | |
23607 | cat confdefs.h >>conftest.$ac_ext | |
23608 | cat >>conftest.$ac_ext <<_ACEOF | |
23609 | /* end confdefs.h. */ | |
23610 | ||
90dd450c | 23611 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23612 | #ifdef __cplusplus |
23613 | extern "C" | |
23614 | #endif | |
90dd450c | 23615 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23616 | builtin and then its argument prototype would still apply. */ |
23617 | char dnet_ntoa (); | |
23618 | int | |
23619 | main () | |
23620 | { | |
23621 | dnet_ntoa (); | |
23622 | ; | |
23623 | return 0; | |
23624 | } | |
23625 | _ACEOF | |
23626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23628 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23629 | ac_status=$? |
32ddf007 VS |
23630 | grep -v '^ *+' conftest.er1 >conftest.err |
23631 | rm -f conftest.er1 | |
23632 | cat conftest.err >&5 | |
e6cc62c6 VS |
23633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23634 | (exit $ac_status); } && | |
e1293dcf | 23635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23637 | (eval $ac_try) 2>&5 | |
23638 | ac_status=$? | |
23639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23640 | (exit $ac_status); }; } && | |
23641 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23643 | (eval $ac_try) 2>&5 | |
23644 | ac_status=$? | |
23645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23646 | (exit $ac_status); }; }; then | |
23647 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23648 | else | |
23649 | echo "$as_me: failed program was:" >&5 | |
23650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23651 | ||
23652 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23653 | fi | |
32ddf007 VS |
23654 | rm -f conftest.err conftest.$ac_objext \ |
23655 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23656 | LIBS=$ac_check_lib_save_LIBS |
23657 | fi | |
23658 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23659 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23660 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 23661 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
23662 | fi |
23663 | ||
90dd450c | 23664 | fi |
e6cc62c6 | 23665 | fi |
32ddf007 VS |
23666 | rm -f conftest.err conftest.$ac_objext \ |
23667 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23668 | LIBS="$ac_xsave_LIBS" |
978f1259 | 23669 | |
90dd450c VZ |
23670 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23671 | # to get the SysV transport functions. | |
e6cc62c6 | 23672 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
23673 | # needs -lnsl. |
23674 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23675 | # on Irix 5.2, according to T.E. Dickey. |
23676 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23677 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23678 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23679 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23680 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23682 | else | |
23683 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23684 | /* confdefs.h. */ |
23685 | _ACEOF | |
23686 | cat confdefs.h >>conftest.$ac_ext | |
23687 | cat >>conftest.$ac_ext <<_ACEOF | |
23688 | /* end confdefs.h. */ | |
32ddf007 VS |
23689 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
23690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23691 | #define gethostbyname innocuous_gethostbyname | |
23692 | ||
90dd450c | 23693 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23694 | which can conflict with char gethostbyname (); below. |
23695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23696 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 23697 | |
e6cc62c6 VS |
23698 | #ifdef __STDC__ |
23699 | # include <limits.h> | |
23700 | #else | |
23701 | # include <assert.h> | |
23702 | #endif | |
32ddf007 VS |
23703 | |
23704 | #undef gethostbyname | |
23705 | ||
90dd450c | 23706 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23707 | #ifdef __cplusplus |
23708 | extern "C" | |
23709 | { | |
23710 | #endif | |
90dd450c | 23711 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23712 | builtin and then its argument prototype would still apply. */ |
23713 | char gethostbyname (); | |
90dd450c VZ |
23714 | /* The GNU C library defines this for functions which it implements |
23715 | to always fail with ENOSYS. Some functions are actually named | |
23716 | something starting with __ and the normal name is an alias. */ | |
23717 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23718 | choke me | |
23719 | #else | |
e6cc62c6 VS |
23720 | char (*f) () = gethostbyname; |
23721 | #endif | |
23722 | #ifdef __cplusplus | |
23723 | } | |
90dd450c | 23724 | #endif |
978f1259 | 23725 | |
e6cc62c6 VS |
23726 | int |
23727 | main () | |
23728 | { | |
23729 | return f != gethostbyname; | |
23730 | ; | |
23731 | return 0; | |
23732 | } | |
23733 | _ACEOF | |
23734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23736 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23737 | ac_status=$? |
32ddf007 VS |
23738 | grep -v '^ *+' conftest.er1 >conftest.err |
23739 | rm -f conftest.er1 | |
23740 | cat conftest.err >&5 | |
e6cc62c6 VS |
23741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23742 | (exit $ac_status); } && | |
e1293dcf | 23743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23745 | (eval $ac_try) 2>&5 | |
23746 | ac_status=$? | |
23747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23748 | (exit $ac_status); }; } && | |
23749 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23751 | (eval $ac_try) 2>&5 | |
23752 | ac_status=$? | |
23753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23754 | (exit $ac_status); }; }; then | |
23755 | ac_cv_func_gethostbyname=yes | |
23756 | else | |
23757 | echo "$as_me: failed program was:" >&5 | |
23758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23759 | ||
23760 | ac_cv_func_gethostbyname=no | |
23761 | fi | |
32ddf007 VS |
23762 | rm -f conftest.err conftest.$ac_objext \ |
23763 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23764 | fi |
23765 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23766 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 23767 | |
90dd450c | 23768 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23769 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23770 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23771 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23773 | else |
e6cc62c6 | 23774 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23775 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23776 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23777 | /* confdefs.h. */ |
23778 | _ACEOF | |
23779 | cat confdefs.h >>conftest.$ac_ext | |
23780 | cat >>conftest.$ac_ext <<_ACEOF | |
23781 | /* end confdefs.h. */ | |
23782 | ||
90dd450c | 23783 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23784 | #ifdef __cplusplus |
23785 | extern "C" | |
23786 | #endif | |
90dd450c | 23787 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23788 | builtin and then its argument prototype would still apply. */ |
23789 | char gethostbyname (); | |
23790 | int | |
23791 | main () | |
23792 | { | |
23793 | gethostbyname (); | |
23794 | ; | |
23795 | return 0; | |
23796 | } | |
23797 | _ACEOF | |
23798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23800 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23801 | ac_status=$? |
32ddf007 VS |
23802 | grep -v '^ *+' conftest.er1 >conftest.err |
23803 | rm -f conftest.er1 | |
23804 | cat conftest.err >&5 | |
e6cc62c6 VS |
23805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23806 | (exit $ac_status); } && | |
e1293dcf | 23807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23809 | (eval $ac_try) 2>&5 | |
23810 | ac_status=$? | |
23811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23812 | (exit $ac_status); }; } && | |
23813 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23815 | (eval $ac_try) 2>&5 | |
23816 | ac_status=$? | |
23817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23818 | (exit $ac_status); }; }; then | |
23819 | ac_cv_lib_nsl_gethostbyname=yes | |
23820 | else | |
23821 | echo "$as_me: failed program was:" >&5 | |
23822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23823 | ||
23824 | ac_cv_lib_nsl_gethostbyname=no | |
23825 | fi | |
32ddf007 VS |
23826 | rm -f conftest.err conftest.$ac_objext \ |
23827 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23828 | LIBS=$ac_check_lib_save_LIBS |
23829 | fi | |
23830 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23831 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23832 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23833 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23834 | fi |
247f5006 | 23835 | |
e6cc62c6 | 23836 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 23837 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23838 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23839 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23841 | else |
e6cc62c6 VS |
23842 | ac_check_lib_save_LIBS=$LIBS |
23843 | LIBS="-lbsd $LIBS" | |
23844 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23845 | /* confdefs.h. */ |
23846 | _ACEOF | |
23847 | cat confdefs.h >>conftest.$ac_ext | |
23848 | cat >>conftest.$ac_ext <<_ACEOF | |
23849 | /* end confdefs.h. */ | |
23850 | ||
23851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23852 | #ifdef __cplusplus | |
23853 | extern "C" | |
23854 | #endif | |
23855 | /* We use char because int might match the return type of a gcc2 | |
23856 | builtin and then its argument prototype would still apply. */ | |
23857 | char gethostbyname (); | |
23858 | int | |
23859 | main () | |
23860 | { | |
23861 | gethostbyname (); | |
23862 | ; | |
23863 | return 0; | |
23864 | } | |
23865 | _ACEOF | |
23866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23868 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23869 | ac_status=$? |
32ddf007 VS |
23870 | grep -v '^ *+' conftest.er1 >conftest.err |
23871 | rm -f conftest.er1 | |
23872 | cat conftest.err >&5 | |
e6cc62c6 VS |
23873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23874 | (exit $ac_status); } && | |
e1293dcf | 23875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23877 | (eval $ac_try) 2>&5 | |
23878 | ac_status=$? | |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23880 | (exit $ac_status); }; } && | |
23881 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23883 | (eval $ac_try) 2>&5 | |
23884 | ac_status=$? | |
23885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23886 | (exit $ac_status); }; }; then | |
23887 | ac_cv_lib_bsd_gethostbyname=yes | |
23888 | else | |
23889 | echo "$as_me: failed program was:" >&5 | |
23890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23891 | ||
23892 | ac_cv_lib_bsd_gethostbyname=no | |
23893 | fi | |
32ddf007 VS |
23894 | rm -f conftest.err conftest.$ac_objext \ |
23895 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23896 | LIBS=$ac_check_lib_save_LIBS |
23897 | fi | |
23898 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23899 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23900 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23901 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 23902 | fi |
b12915c1 | 23903 | |
e6cc62c6 | 23904 | fi |
90dd450c VZ |
23905 | fi |
23906 | ||
23907 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
23908 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23909 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23910 | # on later versions), says Simon Leinen: it contains gethostby* |
23911 | # variants that don't use the name server (or something). -lsocket | |
23912 | # must be given before -lnsl if both are needed. We assume that | |
23913 | # if connect needs -lnsl, so does gethostbyname. | |
23914 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23915 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23916 | if test "${ac_cv_func_connect+set}" = set; then | |
23917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23918 | else | |
23919 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23920 | /* confdefs.h. */ |
23921 | _ACEOF | |
23922 | cat confdefs.h >>conftest.$ac_ext | |
23923 | cat >>conftest.$ac_ext <<_ACEOF | |
23924 | /* end confdefs.h. */ | |
32ddf007 VS |
23925 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
23926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23927 | #define connect innocuous_connect | |
23928 | ||
90dd450c | 23929 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23930 | which can conflict with char connect (); below. |
23931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23932 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 23933 | |
e6cc62c6 VS |
23934 | #ifdef __STDC__ |
23935 | # include <limits.h> | |
23936 | #else | |
23937 | # include <assert.h> | |
23938 | #endif | |
32ddf007 VS |
23939 | |
23940 | #undef connect | |
23941 | ||
90dd450c | 23942 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23943 | #ifdef __cplusplus |
23944 | extern "C" | |
23945 | { | |
23946 | #endif | |
90dd450c | 23947 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23948 | builtin and then its argument prototype would still apply. */ |
23949 | char connect (); | |
90dd450c VZ |
23950 | /* The GNU C library defines this for functions which it implements |
23951 | to always fail with ENOSYS. Some functions are actually named | |
23952 | something starting with __ and the normal name is an alias. */ | |
23953 | #if defined (__stub_connect) || defined (__stub___connect) | |
23954 | choke me | |
23955 | #else | |
e6cc62c6 VS |
23956 | char (*f) () = connect; |
23957 | #endif | |
23958 | #ifdef __cplusplus | |
23959 | } | |
90dd450c VZ |
23960 | #endif |
23961 | ||
e6cc62c6 VS |
23962 | int |
23963 | main () | |
23964 | { | |
23965 | return f != connect; | |
23966 | ; | |
23967 | return 0; | |
23968 | } | |
23969 | _ACEOF | |
23970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23972 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23973 | ac_status=$? |
32ddf007 VS |
23974 | grep -v '^ *+' conftest.er1 >conftest.err |
23975 | rm -f conftest.er1 | |
23976 | cat conftest.err >&5 | |
e6cc62c6 VS |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23978 | (exit $ac_status); } && | |
e1293dcf | 23979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23981 | (eval $ac_try) 2>&5 | |
23982 | ac_status=$? | |
23983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23984 | (exit $ac_status); }; } && | |
23985 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23987 | (eval $ac_try) 2>&5 | |
23988 | ac_status=$? | |
23989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23990 | (exit $ac_status); }; }; then | |
23991 | ac_cv_func_connect=yes | |
23992 | else | |
23993 | echo "$as_me: failed program was:" >&5 | |
23994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23995 | ||
23996 | ac_cv_func_connect=no | |
23997 | fi | |
32ddf007 VS |
23998 | rm -f conftest.err conftest.$ac_objext \ |
23999 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24000 | fi |
24001 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24002 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 24003 | |
90dd450c | 24004 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24005 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24006 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24007 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24009 | else |
e6cc62c6 | 24010 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24011 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24012 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24013 | /* confdefs.h. */ |
24014 | _ACEOF | |
24015 | cat confdefs.h >>conftest.$ac_ext | |
24016 | cat >>conftest.$ac_ext <<_ACEOF | |
24017 | /* end confdefs.h. */ | |
24018 | ||
90dd450c | 24019 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24020 | #ifdef __cplusplus |
24021 | extern "C" | |
24022 | #endif | |
90dd450c | 24023 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24024 | builtin and then its argument prototype would still apply. */ |
24025 | char connect (); | |
24026 | int | |
24027 | main () | |
24028 | { | |
24029 | connect (); | |
24030 | ; | |
24031 | return 0; | |
24032 | } | |
24033 | _ACEOF | |
24034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24036 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24037 | ac_status=$? |
32ddf007 VS |
24038 | grep -v '^ *+' conftest.er1 >conftest.err |
24039 | rm -f conftest.er1 | |
24040 | cat conftest.err >&5 | |
e6cc62c6 VS |
24041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24042 | (exit $ac_status); } && | |
e1293dcf | 24043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24045 | (eval $ac_try) 2>&5 | |
24046 | ac_status=$? | |
24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24048 | (exit $ac_status); }; } && | |
24049 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24051 | (eval $ac_try) 2>&5 | |
24052 | ac_status=$? | |
24053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24054 | (exit $ac_status); }; }; then | |
24055 | ac_cv_lib_socket_connect=yes | |
24056 | else | |
24057 | echo "$as_me: failed program was:" >&5 | |
24058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24059 | ||
24060 | ac_cv_lib_socket_connect=no | |
24061 | fi | |
32ddf007 VS |
24062 | rm -f conftest.err conftest.$ac_objext \ |
24063 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24064 | LIBS=$ac_check_lib_save_LIBS |
24065 | fi | |
24066 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24067 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24068 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 24069 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 24070 | fi |
77e13408 | 24071 | |
90dd450c | 24072 | fi |
25d0687a | 24073 | |
e6cc62c6 VS |
24074 | # Guillermo Gomez says -lposix is necessary on A/UX. |
24075 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24076 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24077 | if test "${ac_cv_func_remove+set}" = set; then | |
24078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24079 | else | |
24080 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24081 | /* confdefs.h. */ |
24082 | _ACEOF | |
24083 | cat confdefs.h >>conftest.$ac_ext | |
24084 | cat >>conftest.$ac_ext <<_ACEOF | |
24085 | /* end confdefs.h. */ | |
32ddf007 VS |
24086 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24088 | #define remove innocuous_remove | |
24089 | ||
90dd450c | 24090 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24091 | which can conflict with char remove (); below. |
24092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24093 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24094 | |
e6cc62c6 VS |
24095 | #ifdef __STDC__ |
24096 | # include <limits.h> | |
24097 | #else | |
24098 | # include <assert.h> | |
24099 | #endif | |
32ddf007 VS |
24100 | |
24101 | #undef remove | |
24102 | ||
90dd450c | 24103 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24104 | #ifdef __cplusplus |
24105 | extern "C" | |
24106 | { | |
24107 | #endif | |
90dd450c | 24108 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24109 | builtin and then its argument prototype would still apply. */ |
24110 | char remove (); | |
90dd450c VZ |
24111 | /* The GNU C library defines this for functions which it implements |
24112 | to always fail with ENOSYS. Some functions are actually named | |
24113 | something starting with __ and the normal name is an alias. */ | |
24114 | #if defined (__stub_remove) || defined (__stub___remove) | |
24115 | choke me | |
24116 | #else | |
e6cc62c6 VS |
24117 | char (*f) () = remove; |
24118 | #endif | |
24119 | #ifdef __cplusplus | |
24120 | } | |
90dd450c | 24121 | #endif |
55e80573 | 24122 | |
e6cc62c6 VS |
24123 | int |
24124 | main () | |
24125 | { | |
24126 | return f != remove; | |
24127 | ; | |
24128 | return 0; | |
24129 | } | |
24130 | _ACEOF | |
24131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24133 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24134 | ac_status=$? |
32ddf007 VS |
24135 | grep -v '^ *+' conftest.er1 >conftest.err |
24136 | rm -f conftest.er1 | |
24137 | cat conftest.err >&5 | |
e6cc62c6 VS |
24138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24139 | (exit $ac_status); } && | |
e1293dcf | 24140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24142 | (eval $ac_try) 2>&5 | |
24143 | ac_status=$? | |
24144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24145 | (exit $ac_status); }; } && | |
24146 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24148 | (eval $ac_try) 2>&5 | |
24149 | ac_status=$? | |
24150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24151 | (exit $ac_status); }; }; then | |
24152 | ac_cv_func_remove=yes | |
24153 | else | |
24154 | echo "$as_me: failed program was:" >&5 | |
24155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24156 | ||
24157 | ac_cv_func_remove=no | |
24158 | fi | |
32ddf007 VS |
24159 | rm -f conftest.err conftest.$ac_objext \ |
24160 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24161 | fi |
24162 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24163 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 24164 | |
90dd450c | 24165 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
24166 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
24167 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24168 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24170 | else |
e6cc62c6 | 24171 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24172 | LIBS="-lposix $LIBS" |
e6cc62c6 | 24173 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24174 | /* confdefs.h. */ |
24175 | _ACEOF | |
24176 | cat confdefs.h >>conftest.$ac_ext | |
24177 | cat >>conftest.$ac_ext <<_ACEOF | |
24178 | /* end confdefs.h. */ | |
24179 | ||
90dd450c | 24180 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24181 | #ifdef __cplusplus |
24182 | extern "C" | |
24183 | #endif | |
90dd450c | 24184 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24185 | builtin and then its argument prototype would still apply. */ |
24186 | char remove (); | |
24187 | int | |
24188 | main () | |
24189 | { | |
24190 | remove (); | |
24191 | ; | |
24192 | return 0; | |
24193 | } | |
24194 | _ACEOF | |
24195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24197 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24198 | ac_status=$? |
32ddf007 VS |
24199 | grep -v '^ *+' conftest.er1 >conftest.err |
24200 | rm -f conftest.er1 | |
24201 | cat conftest.err >&5 | |
e6cc62c6 VS |
24202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24203 | (exit $ac_status); } && | |
e1293dcf | 24204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24206 | (eval $ac_try) 2>&5 | |
24207 | ac_status=$? | |
24208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24209 | (exit $ac_status); }; } && | |
24210 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24212 | (eval $ac_try) 2>&5 | |
24213 | ac_status=$? | |
24214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24215 | (exit $ac_status); }; }; then | |
24216 | ac_cv_lib_posix_remove=yes | |
24217 | else | |
24218 | echo "$as_me: failed program was:" >&5 | |
24219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24220 | ||
24221 | ac_cv_lib_posix_remove=no | |
24222 | fi | |
32ddf007 VS |
24223 | rm -f conftest.err conftest.$ac_objext \ |
24224 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24225 | LIBS=$ac_check_lib_save_LIBS |
24226 | fi | |
24227 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24228 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24229 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 24230 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 24231 | fi |
f6bcfd97 | 24232 | |
6fa882bd RR |
24233 | fi |
24234 | ||
90dd450c | 24235 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
24236 | echo "$as_me:$LINENO: checking for shmat" >&5 |
24237 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24238 | if test "${ac_cv_func_shmat+set}" = set; then | |
24239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24240 | else | |
24241 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24242 | /* confdefs.h. */ |
24243 | _ACEOF | |
24244 | cat confdefs.h >>conftest.$ac_ext | |
24245 | cat >>conftest.$ac_ext <<_ACEOF | |
24246 | /* end confdefs.h. */ | |
32ddf007 VS |
24247 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24249 | #define shmat innocuous_shmat | |
24250 | ||
90dd450c | 24251 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24252 | which can conflict with char shmat (); below. |
24253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24254 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24255 | |
e6cc62c6 VS |
24256 | #ifdef __STDC__ |
24257 | # include <limits.h> | |
24258 | #else | |
24259 | # include <assert.h> | |
24260 | #endif | |
32ddf007 VS |
24261 | |
24262 | #undef shmat | |
24263 | ||
90dd450c | 24264 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24265 | #ifdef __cplusplus |
24266 | extern "C" | |
24267 | { | |
24268 | #endif | |
90dd450c | 24269 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24270 | builtin and then its argument prototype would still apply. */ |
24271 | char shmat (); | |
90dd450c VZ |
24272 | /* The GNU C library defines this for functions which it implements |
24273 | to always fail with ENOSYS. Some functions are actually named | |
24274 | something starting with __ and the normal name is an alias. */ | |
24275 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24276 | choke me | |
24277 | #else | |
e6cc62c6 VS |
24278 | char (*f) () = shmat; |
24279 | #endif | |
24280 | #ifdef __cplusplus | |
24281 | } | |
90dd450c | 24282 | #endif |
10f2d63a | 24283 | |
e6cc62c6 VS |
24284 | int |
24285 | main () | |
24286 | { | |
24287 | return f != shmat; | |
24288 | ; | |
24289 | return 0; | |
24290 | } | |
24291 | _ACEOF | |
24292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24294 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24295 | ac_status=$? |
32ddf007 VS |
24296 | grep -v '^ *+' conftest.er1 >conftest.err |
24297 | rm -f conftest.er1 | |
24298 | cat conftest.err >&5 | |
e6cc62c6 VS |
24299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24300 | (exit $ac_status); } && | |
e1293dcf | 24301 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24303 | (eval $ac_try) 2>&5 | |
24304 | ac_status=$? | |
24305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24306 | (exit $ac_status); }; } && | |
24307 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24309 | (eval $ac_try) 2>&5 | |
24310 | ac_status=$? | |
24311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24312 | (exit $ac_status); }; }; then | |
24313 | ac_cv_func_shmat=yes | |
24314 | else | |
24315 | echo "$as_me: failed program was:" >&5 | |
24316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24317 | ||
24318 | ac_cv_func_shmat=no | |
24319 | fi | |
32ddf007 VS |
24320 | rm -f conftest.err conftest.$ac_objext \ |
24321 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24322 | fi |
24323 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24324 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 24325 | |
90dd450c | 24326 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
24327 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
24328 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24329 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 24331 | else |
e6cc62c6 | 24332 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24333 | LIBS="-lipc $LIBS" |
e6cc62c6 | 24334 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24335 | /* confdefs.h. */ |
24336 | _ACEOF | |
24337 | cat confdefs.h >>conftest.$ac_ext | |
24338 | cat >>conftest.$ac_ext <<_ACEOF | |
24339 | /* end confdefs.h. */ | |
24340 | ||
8284b0c5 | 24341 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24342 | #ifdef __cplusplus |
24343 | extern "C" | |
24344 | #endif | |
90dd450c | 24345 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24346 | builtin and then its argument prototype would still apply. */ |
24347 | char shmat (); | |
24348 | int | |
24349 | main () | |
24350 | { | |
24351 | shmat (); | |
24352 | ; | |
24353 | return 0; | |
24354 | } | |
24355 | _ACEOF | |
24356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24358 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24359 | ac_status=$? |
32ddf007 VS |
24360 | grep -v '^ *+' conftest.er1 >conftest.err |
24361 | rm -f conftest.er1 | |
24362 | cat conftest.err >&5 | |
e6cc62c6 VS |
24363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24364 | (exit $ac_status); } && | |
e1293dcf | 24365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24367 | (eval $ac_try) 2>&5 | |
24368 | ac_status=$? | |
24369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24370 | (exit $ac_status); }; } && | |
24371 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24373 | (eval $ac_try) 2>&5 | |
24374 | ac_status=$? | |
24375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24376 | (exit $ac_status); }; }; then | |
24377 | ac_cv_lib_ipc_shmat=yes | |
24378 | else | |
24379 | echo "$as_me: failed program was:" >&5 | |
24380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24381 | ||
24382 | ac_cv_lib_ipc_shmat=no | |
24383 | fi | |
32ddf007 VS |
24384 | rm -f conftest.err conftest.$ac_objext \ |
24385 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24386 | LIBS=$ac_check_lib_save_LIBS |
24387 | fi | |
24388 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24389 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24390 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 24391 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
24392 | fi |
24393 | ||
d558c907 | 24394 | fi |
90dd450c | 24395 | fi |
3a922bb4 | 24396 | |
90dd450c | 24397 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 24398 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
24399 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
24400 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24401 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24402 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24403 | # These have to be linked with before -lX11, unlike the other | |
24404 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
24405 | # John Interrante, Karl Berry |
24406 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24407 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24408 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24410 | else | |
24411 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 24412 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24413 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24414 | /* confdefs.h. */ |
24415 | _ACEOF | |
24416 | cat confdefs.h >>conftest.$ac_ext | |
24417 | cat >>conftest.$ac_ext <<_ACEOF | |
24418 | /* end confdefs.h. */ | |
24419 | ||
90dd450c | 24420 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24421 | #ifdef __cplusplus |
24422 | extern "C" | |
24423 | #endif | |
90dd450c | 24424 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24425 | builtin and then its argument prototype would still apply. */ |
24426 | char IceConnectionNumber (); | |
24427 | int | |
24428 | main () | |
24429 | { | |
24430 | IceConnectionNumber (); | |
24431 | ; | |
24432 | return 0; | |
24433 | } | |
24434 | _ACEOF | |
24435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24437 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24438 | ac_status=$? |
32ddf007 VS |
24439 | grep -v '^ *+' conftest.er1 >conftest.err |
24440 | rm -f conftest.er1 | |
24441 | cat conftest.err >&5 | |
e6cc62c6 VS |
24442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24443 | (exit $ac_status); } && | |
e1293dcf | 24444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24446 | (eval $ac_try) 2>&5 | |
24447 | ac_status=$? | |
24448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24449 | (exit $ac_status); }; } && | |
24450 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24452 | (eval $ac_try) 2>&5 | |
24453 | ac_status=$? | |
24454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24455 | (exit $ac_status); }; }; then | |
24456 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
24457 | else | |
24458 | echo "$as_me: failed program was:" >&5 | |
24459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24460 | ||
24461 | ac_cv_lib_ICE_IceConnectionNumber=no | |
24462 | fi | |
32ddf007 VS |
24463 | rm -f conftest.err conftest.$ac_objext \ |
24464 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24465 | LIBS=$ac_check_lib_save_LIBS |
24466 | fi | |
24467 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
24468 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
24469 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 24470 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 24471 | fi |
10f2d63a | 24472 | |
e6cc62c6 | 24473 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
24474 | |
24475 | fi | |
24476 | ||
8284b0c5 | 24477 | |
90dd450c | 24478 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
24479 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
24480 | echo "$as_me: error: X11 not found" >&2;} | |
24481 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
24482 | fi |
24483 | ||
24484 | GUI_TK_LIBRARY="$X_LIBS" | |
24485 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
24486 | AFMINSTALL=afminstall | |
24487 | COMPILED_X_PROGRAM=0 | |
24488 | ||
21d1c967 | 24489 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
24490 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
24491 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 24492 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
24493 | echo "$as_me:$LINENO: result: not found" >&5 |
24494 | echo "${ECHO_T}not found" >&6 | |
24495 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
24496 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
24497 | { (exit 1); exit 1; }; } | |
90dd450c | 24498 | else |
e6cc62c6 VS |
24499 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
24500 | echo "${ECHO_T}$MICROWIN" >&6 | |
24501 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24502 | #define wxUSE_NANOX 1 |
e6cc62c6 | 24503 | _ACEOF |
21d1c967 | 24504 | |
90dd450c VZ |
24505 | fi |
24506 | fi | |
24507 | ||
2b5f62a0 | 24508 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 24509 | |
2b5f62a0 | 24510 | succeeded=no |
90dd450c | 24511 | |
2b5f62a0 VZ |
24512 | if test -z "$PKG_CONFIG"; then |
24513 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24514 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24517 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24519 | else |
e6cc62c6 VS |
24520 | case $PKG_CONFIG in |
24521 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24522 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24523 | ;; | |
2b5f62a0 | 24524 | *) |
e6cc62c6 VS |
24525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24526 | for as_dir in $PATH | |
24527 | do | |
24528 | IFS=$as_save_IFS | |
24529 | test -z "$as_dir" && as_dir=. | |
24530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24532 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24534 | break 2 | |
24535 | fi | |
24536 | done | |
24537 | done | |
24538 | ||
2b5f62a0 VZ |
24539 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24540 | ;; | |
24541 | esac | |
24542 | fi | |
e6cc62c6 VS |
24543 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24544 | ||
2b5f62a0 | 24545 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24546 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24547 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24548 | else |
e6cc62c6 VS |
24549 | echo "$as_me:$LINENO: result: no" >&5 |
24550 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24551 | fi |
24552 | ||
24553 | fi | |
24554 | ||
24555 | if test "$PKG_CONFIG" = "no" ; then | |
24556 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24557 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24558 | echo "*** to the full path to pkg-config." | |
24559 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24560 | else | |
24561 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24562 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24563 | echo "$as_me:$LINENO: checking for pangox" >&5 |
24564 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24565 | |
24566 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
24567 | echo "$as_me:$LINENO: result: yes" >&5 |
24568 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24569 | succeeded=yes |
24570 | ||
e6cc62c6 VS |
24571 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
24572 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24573 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
24574 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
24575 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 24576 | |
e6cc62c6 VS |
24577 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
24578 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24579 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
24580 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
24581 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
24582 | else |
24583 | PANGOX_CFLAGS="" | |
24584 | PANGOX_LIBS="" | |
e6cc62c6 | 24585 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24586 | ## do set a variable so people can do so. |
24587 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 24588 | |
2b5f62a0 VZ |
24589 | fi |
24590 | ||
e6cc62c6 VS |
24591 | |
24592 | ||
2b5f62a0 VZ |
24593 | else |
24594 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24595 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24596 | fi | |
24597 | fi | |
24598 | ||
24599 | if test $succeeded = yes; then | |
e6cc62c6 | 24600 | |
2b5f62a0 | 24601 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 24602 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 24603 | |
2b5f62a0 | 24604 | else |
e6cc62c6 VS |
24605 | |
24606 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
24607 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
24608 | { (exit 1); exit 1; }; } | |
24609 | ||
24610 | ||
2b5f62a0 VZ |
24611 | fi |
24612 | ||
e6cc62c6 | 24613 | |
2b5f62a0 VZ |
24614 | succeeded=no |
24615 | ||
24616 | if test -z "$PKG_CONFIG"; then | |
24617 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24618 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24621 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24623 | else |
e6cc62c6 VS |
24624 | case $PKG_CONFIG in |
24625 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24626 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24627 | ;; | |
2b5f62a0 | 24628 | *) |
e6cc62c6 VS |
24629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24630 | for as_dir in $PATH | |
24631 | do | |
24632 | IFS=$as_save_IFS | |
24633 | test -z "$as_dir" && as_dir=. | |
24634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24636 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24638 | break 2 | |
24639 | fi | |
24640 | done | |
24641 | done | |
24642 | ||
2b5f62a0 VZ |
24643 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24644 | ;; | |
24645 | esac | |
24646 | fi | |
e6cc62c6 VS |
24647 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24648 | ||
2b5f62a0 | 24649 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24650 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24651 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24652 | else |
e6cc62c6 VS |
24653 | echo "$as_me:$LINENO: result: no" >&5 |
24654 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24655 | fi |
24656 | ||
24657 | fi | |
24658 | ||
24659 | if test "$PKG_CONFIG" = "no" ; then | |
24660 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24661 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24662 | echo "*** to the full path to pkg-config." | |
24663 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24664 | else | |
24665 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24666 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24667 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
24668 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24669 | |
24670 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
24671 | echo "$as_me:$LINENO: result: yes" >&5 |
24672 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24673 | succeeded=yes |
24674 | ||
e6cc62c6 VS |
24675 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
24676 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24677 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
24678 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
24679 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 24680 | |
e6cc62c6 VS |
24681 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
24682 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24683 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
24684 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
24685 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
24686 | else |
24687 | PANGOFT2_CFLAGS="" | |
24688 | PANGOFT2_LIBS="" | |
e6cc62c6 | 24689 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24690 | ## do set a variable so people can do so. |
24691 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 24692 | |
2b5f62a0 VZ |
24693 | fi |
24694 | ||
e6cc62c6 VS |
24695 | |
24696 | ||
2b5f62a0 VZ |
24697 | else |
24698 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24699 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24700 | fi | |
24701 | fi | |
24702 | ||
24703 | if test $succeeded = yes; then | |
e6cc62c6 | 24704 | |
2b5f62a0 | 24705 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 24706 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 24707 | |
2b5f62a0 | 24708 | else |
e6cc62c6 VS |
24709 | |
24710 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
24711 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 24712 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
24713 | |
24714 | ||
2b5f62a0 VZ |
24715 | fi |
24716 | ||
e6cc62c6 | 24717 | |
2b5f62a0 VZ |
24718 | succeeded=no |
24719 | ||
24720 | if test -z "$PKG_CONFIG"; then | |
24721 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24722 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24723 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24725 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24727 | else |
e6cc62c6 VS |
24728 | case $PKG_CONFIG in |
24729 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24730 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24731 | ;; | |
2b5f62a0 | 24732 | *) |
e6cc62c6 VS |
24733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24734 | for as_dir in $PATH | |
24735 | do | |
24736 | IFS=$as_save_IFS | |
24737 | test -z "$as_dir" && as_dir=. | |
24738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24740 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24742 | break 2 | |
24743 | fi | |
24744 | done | |
24745 | done | |
24746 | ||
2b5f62a0 VZ |
24747 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24748 | ;; | |
24749 | esac | |
24750 | fi | |
e6cc62c6 VS |
24751 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24752 | ||
2b5f62a0 | 24753 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24754 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24755 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24756 | else |
e6cc62c6 VS |
24757 | echo "$as_me:$LINENO: result: no" >&5 |
24758 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24759 | fi |
24760 | ||
24761 | fi | |
24762 | ||
24763 | if test "$PKG_CONFIG" = "no" ; then | |
24764 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24765 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24766 | echo "*** to the full path to pkg-config." | |
24767 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24768 | else | |
24769 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24770 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24771 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
24772 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24773 | |
24774 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
24775 | echo "$as_me:$LINENO: result: yes" >&5 |
24776 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24777 | succeeded=yes |
24778 | ||
e6cc62c6 VS |
24779 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
24780 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24781 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
24782 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
24783 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 24784 | |
e6cc62c6 VS |
24785 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
24786 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24787 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
24788 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
24789 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
24790 | else |
24791 | PANGOXFT_CFLAGS="" | |
24792 | PANGOXFT_LIBS="" | |
e6cc62c6 | 24793 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24794 | ## do set a variable so people can do so. |
24795 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 24796 | |
2b5f62a0 VZ |
24797 | fi |
24798 | ||
e6cc62c6 VS |
24799 | |
24800 | ||
2b5f62a0 VZ |
24801 | else |
24802 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24803 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24804 | fi | |
24805 | fi | |
24806 | ||
24807 | if test $succeeded = yes; then | |
e6cc62c6 | 24808 | |
2b5f62a0 | 24809 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 24810 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 24811 | |
2b5f62a0 | 24812 | else |
e6cc62c6 VS |
24813 | |
24814 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
24815 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
24816 | ||
24817 | ||
2b5f62a0 VZ |
24818 | fi |
24819 | ||
24820 | fi | |
24821 | ||
24822 | wxUSE_UNIVERSAL="yes" | |
24823 | ||
24824 | if test "$wxUSE_NANOX" = "yes"; then | |
24825 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 24826 | 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" |
2b5f62a0 VZ |
24827 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
24828 | else | |
93a543aa | 24829 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
24830 | fi |
24831 | ||
24832 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
24833 | TOOLKIT=X11 | |
24834 | GUIDIST=X11_DIST | |
24835 | fi | |
24836 | ||
21d1c967 GD |
24837 | if test "$wxUSE_MOTIF" = 1; then |
24838 | if test "$no_x" = yes; then | |
24839 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
24840 | |
24841 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24842 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 24843 | _ACEOF |
21d1c967 GD |
24844 | |
24845 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24846 | else | |
24847 | if test -n "$x_includes"; then | |
24848 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
24849 | fi |
24850 | ||
21d1c967 GD |
24851 | # It would also be nice to do this for all -L options, not just this one. |
24852 | if test -n "$x_libraries"; then | |
24853 | X_LIBS="$X_LIBS -L$x_libraries" | |
24854 | # For Solaris; some versions of Sun CC require a space after -R and | |
24855 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 24856 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 24857 | "SunOS 5"*) |
e6cc62c6 VS |
24858 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
24859 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24860 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24861 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24862 | /* confdefs.h. */ |
24863 | _ACEOF | |
24864 | cat confdefs.h >>conftest.$ac_ext | |
24865 | cat >>conftest.$ac_ext <<_ACEOF | |
24866 | /* end confdefs.h. */ | |
24867 | ||
24868 | int | |
24869 | main () | |
24870 | { | |
21d1c967 | 24871 | |
e6cc62c6 VS |
24872 | ; |
24873 | return 0; | |
24874 | } | |
24875 | _ACEOF | |
24876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24878 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24879 | ac_status=$? |
32ddf007 VS |
24880 | grep -v '^ *+' conftest.er1 >conftest.err |
24881 | rm -f conftest.er1 | |
24882 | cat conftest.err >&5 | |
e6cc62c6 VS |
24883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24884 | (exit $ac_status); } && | |
e1293dcf | 24885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24887 | (eval $ac_try) 2>&5 | |
24888 | ac_status=$? | |
24889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24890 | (exit $ac_status); }; } && | |
24891 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24893 | (eval $ac_try) 2>&5 | |
24894 | ac_status=$? | |
24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24896 | (exit $ac_status); }; }; then | |
21d1c967 | 24897 | ac_R_nospace=yes |
698dcdb6 | 24898 | else |
e6cc62c6 VS |
24899 | echo "$as_me: failed program was:" >&5 |
24900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24901 | ||
24902 | ac_R_nospace=no | |
10f2d63a | 24903 | fi |
32ddf007 VS |
24904 | rm -f conftest.err conftest.$ac_objext \ |
24905 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24906 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
24907 | echo "$as_me:$LINENO: result: no" >&5 |
24908 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24909 | X_LIBS="$X_LIBS -R$x_libraries" |
24910 | else | |
24911 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 24912 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24913 | /* confdefs.h. */ |
24914 | _ACEOF | |
24915 | cat confdefs.h >>conftest.$ac_ext | |
24916 | cat >>conftest.$ac_ext <<_ACEOF | |
24917 | /* end confdefs.h. */ | |
24918 | ||
24919 | int | |
24920 | main () | |
24921 | { | |
f0c87536 | 24922 | |
e6cc62c6 VS |
24923 | ; |
24924 | return 0; | |
24925 | } | |
24926 | _ACEOF | |
24927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24929 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24930 | ac_status=$? |
32ddf007 VS |
24931 | grep -v '^ *+' conftest.er1 >conftest.err |
24932 | rm -f conftest.er1 | |
24933 | cat conftest.err >&5 | |
e6cc62c6 VS |
24934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24935 | (exit $ac_status); } && | |
e1293dcf | 24936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24938 | (eval $ac_try) 2>&5 | |
24939 | ac_status=$? | |
24940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24941 | (exit $ac_status); }; } && | |
24942 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24944 | (eval $ac_try) 2>&5 | |
24945 | ac_status=$? | |
24946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24947 | (exit $ac_status); }; }; then | |
21d1c967 GD |
24948 | ac_R_space=yes |
24949 | else | |
e6cc62c6 VS |
24950 | echo "$as_me: failed program was:" >&5 |
24951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24952 | ||
24953 | ac_R_space=no | |
21d1c967 | 24954 | fi |
32ddf007 VS |
24955 | rm -f conftest.err conftest.$ac_objext \ |
24956 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24957 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
24958 | echo "$as_me:$LINENO: result: yes" >&5 |
24959 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
24960 | X_LIBS="$X_LIBS -R $x_libraries" |
24961 | else | |
e6cc62c6 VS |
24962 | echo "$as_me:$LINENO: result: neither works" >&5 |
24963 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
24964 | fi |
24965 | fi | |
e6cc62c6 | 24966 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
24967 | esac |
24968 | fi | |
90dd450c | 24969 | |
21d1c967 GD |
24970 | # Check for system-dependent libraries X programs must link with. |
24971 | # Do this before checking for the system-independent R6 libraries | |
24972 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24973 | ||
24974 | if test "$ISC" = yes; then | |
24975 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24976 | else | |
e6cc62c6 VS |
24977 | # Martyn Johnson says this is needed for Ultrix, if the X |
24978 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 24979 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
24980 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
24981 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24982 | /* confdefs.h. */ |
24983 | _ACEOF | |
24984 | cat confdefs.h >>conftest.$ac_ext | |
24985 | cat >>conftest.$ac_ext <<_ACEOF | |
24986 | /* end confdefs.h. */ | |
24987 | ||
247f5006 | 24988 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24989 | #ifdef __cplusplus |
24990 | extern "C" | |
24991 | #endif | |
247f5006 | 24992 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24993 | builtin and then its argument prototype would still apply. */ |
24994 | char XOpenDisplay (); | |
24995 | int | |
24996 | main () | |
24997 | { | |
24998 | XOpenDisplay (); | |
24999 | ; | |
25000 | return 0; | |
25001 | } | |
25002 | _ACEOF | |
25003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25005 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25006 | ac_status=$? |
32ddf007 VS |
25007 | grep -v '^ *+' conftest.er1 >conftest.err |
25008 | rm -f conftest.er1 | |
25009 | cat conftest.err >&5 | |
e6cc62c6 VS |
25010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25011 | (exit $ac_status); } && | |
e1293dcf | 25012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25014 | (eval $ac_try) 2>&5 | |
25015 | ac_status=$? | |
25016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25017 | (exit $ac_status); }; } && | |
25018 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25020 | (eval $ac_try) 2>&5 | |
25021 | ac_status=$? | |
25022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25023 | (exit $ac_status); }; }; then | |
25024 | : | |
25025 | else | |
25026 | echo "$as_me: failed program was:" >&5 | |
25027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25028 | |
e6cc62c6 VS |
25029 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
25030 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25031 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25033 | else |
e6cc62c6 VS |
25034 | ac_check_lib_save_LIBS=$LIBS |
25035 | LIBS="-ldnet $LIBS" | |
25036 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25037 | /* confdefs.h. */ |
25038 | _ACEOF | |
25039 | cat confdefs.h >>conftest.$ac_ext | |
25040 | cat >>conftest.$ac_ext <<_ACEOF | |
25041 | /* end confdefs.h. */ | |
a0b9e27f | 25042 | |
e6cc62c6 VS |
25043 | /* Override any gcc2 internal prototype to avoid an error. */ |
25044 | #ifdef __cplusplus | |
25045 | extern "C" | |
25046 | #endif | |
25047 | /* We use char because int might match the return type of a gcc2 | |
25048 | builtin and then its argument prototype would still apply. */ | |
25049 | char dnet_ntoa (); | |
25050 | int | |
25051 | main () | |
25052 | { | |
25053 | dnet_ntoa (); | |
25054 | ; | |
25055 | return 0; | |
25056 | } | |
25057 | _ACEOF | |
25058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25060 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25061 | ac_status=$? |
32ddf007 VS |
25062 | grep -v '^ *+' conftest.er1 >conftest.err |
25063 | rm -f conftest.er1 | |
25064 | cat conftest.err >&5 | |
e6cc62c6 VS |
25065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25066 | (exit $ac_status); } && | |
e1293dcf | 25067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25069 | (eval $ac_try) 2>&5 | |
25070 | ac_status=$? | |
25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25072 | (exit $ac_status); }; } && | |
25073 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25075 | (eval $ac_try) 2>&5 | |
25076 | ac_status=$? | |
25077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25078 | (exit $ac_status); }; }; then | |
25079 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25080 | else | |
25081 | echo "$as_me: failed program was:" >&5 | |
25082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25083 | ||
25084 | ac_cv_lib_dnet_dnet_ntoa=no | |
25085 | fi | |
32ddf007 VS |
25086 | rm -f conftest.err conftest.$ac_objext \ |
25087 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25088 | LIBS=$ac_check_lib_save_LIBS |
25089 | fi | |
25090 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25091 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25092 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 25093 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 25094 | fi |
0fb0dd83 | 25095 | |
21d1c967 | 25096 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
25097 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
25098 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25099 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25101 | else |
e6cc62c6 | 25102 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25103 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 25104 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25105 | /* confdefs.h. */ |
25106 | _ACEOF | |
25107 | cat confdefs.h >>conftest.$ac_ext | |
25108 | cat >>conftest.$ac_ext <<_ACEOF | |
25109 | /* end confdefs.h. */ | |
25110 | ||
21d1c967 | 25111 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25112 | #ifdef __cplusplus |
25113 | extern "C" | |
25114 | #endif | |
21d1c967 | 25115 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25116 | builtin and then its argument prototype would still apply. */ |
25117 | char dnet_ntoa (); | |
25118 | int | |
25119 | main () | |
25120 | { | |
25121 | dnet_ntoa (); | |
25122 | ; | |
25123 | return 0; | |
25124 | } | |
25125 | _ACEOF | |
25126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25128 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25129 | ac_status=$? |
32ddf007 VS |
25130 | grep -v '^ *+' conftest.er1 >conftest.err |
25131 | rm -f conftest.er1 | |
25132 | cat conftest.err >&5 | |
e6cc62c6 VS |
25133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25134 | (exit $ac_status); } && | |
e1293dcf | 25135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25137 | (eval $ac_try) 2>&5 | |
25138 | ac_status=$? | |
25139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25140 | (exit $ac_status); }; } && | |
25141 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25143 | (eval $ac_try) 2>&5 | |
25144 | ac_status=$? | |
25145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25146 | (exit $ac_status); }; }; then | |
25147 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25148 | else | |
25149 | echo "$as_me: failed program was:" >&5 | |
25150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25151 | ||
25152 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25153 | fi | |
32ddf007 VS |
25154 | rm -f conftest.err conftest.$ac_objext \ |
25155 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25156 | LIBS=$ac_check_lib_save_LIBS |
25157 | fi | |
25158 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25159 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25160 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 25161 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
25162 | fi |
25163 | ||
21d1c967 | 25164 | fi |
e6cc62c6 | 25165 | fi |
32ddf007 VS |
25166 | rm -f conftest.err conftest.$ac_objext \ |
25167 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 25168 | LIBS="$ac_xsave_LIBS" |
90dd450c | 25169 | |
21d1c967 GD |
25170 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
25171 | # to get the SysV transport functions. | |
e6cc62c6 | 25172 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
25173 | # needs -lnsl. |
25174 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
25175 | # on Irix 5.2, according to T.E. Dickey. |
25176 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25177 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25178 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25179 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25180 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25182 | else | |
25183 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25184 | /* confdefs.h. */ |
25185 | _ACEOF | |
25186 | cat confdefs.h >>conftest.$ac_ext | |
25187 | cat >>conftest.$ac_ext <<_ACEOF | |
25188 | /* end confdefs.h. */ | |
32ddf007 VS |
25189 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25191 | #define gethostbyname innocuous_gethostbyname | |
25192 | ||
21d1c967 | 25193 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25194 | which can conflict with char gethostbyname (); below. |
25195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25196 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25197 | |
e6cc62c6 VS |
25198 | #ifdef __STDC__ |
25199 | # include <limits.h> | |
25200 | #else | |
25201 | # include <assert.h> | |
25202 | #endif | |
32ddf007 VS |
25203 | |
25204 | #undef gethostbyname | |
25205 | ||
21d1c967 | 25206 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25207 | #ifdef __cplusplus |
25208 | extern "C" | |
25209 | { | |
25210 | #endif | |
21d1c967 | 25211 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25212 | builtin and then its argument prototype would still apply. */ |
25213 | char gethostbyname (); | |
21d1c967 GD |
25214 | /* The GNU C library defines this for functions which it implements |
25215 | to always fail with ENOSYS. Some functions are actually named | |
25216 | something starting with __ and the normal name is an alias. */ | |
25217 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25218 | choke me | |
25219 | #else | |
e6cc62c6 VS |
25220 | char (*f) () = gethostbyname; |
25221 | #endif | |
25222 | #ifdef __cplusplus | |
25223 | } | |
21d1c967 | 25224 | #endif |
90dd450c | 25225 | |
e6cc62c6 VS |
25226 | int |
25227 | main () | |
25228 | { | |
25229 | return f != gethostbyname; | |
25230 | ; | |
25231 | return 0; | |
25232 | } | |
25233 | _ACEOF | |
25234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25236 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25237 | ac_status=$? |
32ddf007 VS |
25238 | grep -v '^ *+' conftest.er1 >conftest.err |
25239 | rm -f conftest.er1 | |
25240 | cat conftest.err >&5 | |
e6cc62c6 VS |
25241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25242 | (exit $ac_status); } && | |
e1293dcf | 25243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25245 | (eval $ac_try) 2>&5 | |
25246 | ac_status=$? | |
25247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25248 | (exit $ac_status); }; } && | |
25249 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25251 | (eval $ac_try) 2>&5 | |
25252 | ac_status=$? | |
25253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25254 | (exit $ac_status); }; }; then | |
25255 | ac_cv_func_gethostbyname=yes | |
25256 | else | |
25257 | echo "$as_me: failed program was:" >&5 | |
25258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25259 | ||
25260 | ac_cv_func_gethostbyname=no | |
25261 | fi | |
32ddf007 VS |
25262 | rm -f conftest.err conftest.$ac_objext \ |
25263 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25264 | fi |
25265 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25266 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 25267 | |
21d1c967 | 25268 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
25269 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
25270 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25271 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25273 | else |
e6cc62c6 | 25274 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25275 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 25276 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25277 | /* confdefs.h. */ |
25278 | _ACEOF | |
25279 | cat confdefs.h >>conftest.$ac_ext | |
25280 | cat >>conftest.$ac_ext <<_ACEOF | |
25281 | /* end confdefs.h. */ | |
25282 | ||
21d1c967 | 25283 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25284 | #ifdef __cplusplus |
25285 | extern "C" | |
25286 | #endif | |
21d1c967 | 25287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25288 | builtin and then its argument prototype would still apply. */ |
25289 | char gethostbyname (); | |
25290 | int | |
25291 | main () | |
25292 | { | |
25293 | gethostbyname (); | |
25294 | ; | |
25295 | return 0; | |
25296 | } | |
25297 | _ACEOF | |
25298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25300 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25301 | ac_status=$? |
32ddf007 VS |
25302 | grep -v '^ *+' conftest.er1 >conftest.err |
25303 | rm -f conftest.er1 | |
25304 | cat conftest.err >&5 | |
e6cc62c6 VS |
25305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25306 | (exit $ac_status); } && | |
e1293dcf | 25307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25309 | (eval $ac_try) 2>&5 | |
25310 | ac_status=$? | |
25311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25312 | (exit $ac_status); }; } && | |
25313 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25315 | (eval $ac_try) 2>&5 | |
25316 | ac_status=$? | |
25317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25318 | (exit $ac_status); }; }; then | |
25319 | ac_cv_lib_nsl_gethostbyname=yes | |
25320 | else | |
25321 | echo "$as_me: failed program was:" >&5 | |
25322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25323 | ||
25324 | ac_cv_lib_nsl_gethostbyname=no | |
25325 | fi | |
32ddf007 VS |
25326 | rm -f conftest.err conftest.$ac_objext \ |
25327 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25328 | LIBS=$ac_check_lib_save_LIBS |
25329 | fi | |
25330 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25331 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25332 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25333 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 25334 | fi |
247f5006 | 25335 | |
e6cc62c6 | 25336 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 25337 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
25338 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
25339 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25341 | else |
e6cc62c6 VS |
25342 | ac_check_lib_save_LIBS=$LIBS |
25343 | LIBS="-lbsd $LIBS" | |
25344 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25345 | /* confdefs.h. */ |
25346 | _ACEOF | |
25347 | cat confdefs.h >>conftest.$ac_ext | |
25348 | cat >>conftest.$ac_ext <<_ACEOF | |
25349 | /* end confdefs.h. */ | |
25350 | ||
25351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25352 | #ifdef __cplusplus | |
25353 | extern "C" | |
25354 | #endif | |
25355 | /* We use char because int might match the return type of a gcc2 | |
25356 | builtin and then its argument prototype would still apply. */ | |
25357 | char gethostbyname (); | |
25358 | int | |
25359 | main () | |
25360 | { | |
25361 | gethostbyname (); | |
25362 | ; | |
25363 | return 0; | |
25364 | } | |
25365 | _ACEOF | |
25366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25368 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25369 | ac_status=$? |
32ddf007 VS |
25370 | grep -v '^ *+' conftest.er1 >conftest.err |
25371 | rm -f conftest.er1 | |
25372 | cat conftest.err >&5 | |
e6cc62c6 VS |
25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25374 | (exit $ac_status); } && | |
e1293dcf | 25375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25377 | (eval $ac_try) 2>&5 | |
25378 | ac_status=$? | |
25379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25380 | (exit $ac_status); }; } && | |
25381 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25383 | (eval $ac_try) 2>&5 | |
25384 | ac_status=$? | |
25385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25386 | (exit $ac_status); }; }; then | |
25387 | ac_cv_lib_bsd_gethostbyname=yes | |
25388 | else | |
25389 | echo "$as_me: failed program was:" >&5 | |
25390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25391 | ||
25392 | ac_cv_lib_bsd_gethostbyname=no | |
25393 | fi | |
32ddf007 VS |
25394 | rm -f conftest.err conftest.$ac_objext \ |
25395 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25396 | LIBS=$ac_check_lib_save_LIBS |
25397 | fi | |
25398 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25399 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25400 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25401 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 25402 | fi |
90dd450c | 25403 | |
e6cc62c6 | 25404 | fi |
90dd450c VZ |
25405 | fi |
25406 | ||
21d1c967 GD |
25407 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
25408 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25409 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
25410 | # on later versions), says Simon Leinen: it contains gethostby* |
25411 | # variants that don't use the name server (or something). -lsocket | |
25412 | # must be given before -lnsl if both are needed. We assume that | |
25413 | # if connect needs -lnsl, so does gethostbyname. | |
25414 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25415 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25416 | if test "${ac_cv_func_connect+set}" = set; then | |
25417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25418 | else | |
25419 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25420 | /* confdefs.h. */ |
25421 | _ACEOF | |
25422 | cat confdefs.h >>conftest.$ac_ext | |
25423 | cat >>conftest.$ac_ext <<_ACEOF | |
25424 | /* end confdefs.h. */ | |
32ddf007 VS |
25425 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25427 | #define connect innocuous_connect | |
25428 | ||
21d1c967 | 25429 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25430 | which can conflict with char connect (); below. |
25431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25432 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25433 | |
e6cc62c6 VS |
25434 | #ifdef __STDC__ |
25435 | # include <limits.h> | |
25436 | #else | |
25437 | # include <assert.h> | |
25438 | #endif | |
32ddf007 VS |
25439 | |
25440 | #undef connect | |
25441 | ||
21d1c967 | 25442 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25443 | #ifdef __cplusplus |
25444 | extern "C" | |
25445 | { | |
25446 | #endif | |
21d1c967 | 25447 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25448 | builtin and then its argument prototype would still apply. */ |
25449 | char connect (); | |
21d1c967 GD |
25450 | /* The GNU C library defines this for functions which it implements |
25451 | to always fail with ENOSYS. Some functions are actually named | |
25452 | something starting with __ and the normal name is an alias. */ | |
25453 | #if defined (__stub_connect) || defined (__stub___connect) | |
25454 | choke me | |
25455 | #else | |
e6cc62c6 VS |
25456 | char (*f) () = connect; |
25457 | #endif | |
25458 | #ifdef __cplusplus | |
25459 | } | |
21d1c967 | 25460 | #endif |
90dd450c | 25461 | |
e6cc62c6 VS |
25462 | int |
25463 | main () | |
25464 | { | |
25465 | return f != connect; | |
25466 | ; | |
25467 | return 0; | |
25468 | } | |
25469 | _ACEOF | |
25470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25472 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25473 | ac_status=$? |
32ddf007 VS |
25474 | grep -v '^ *+' conftest.er1 >conftest.err |
25475 | rm -f conftest.er1 | |
25476 | cat conftest.err >&5 | |
e6cc62c6 VS |
25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25478 | (exit $ac_status); } && | |
e1293dcf | 25479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25481 | (eval $ac_try) 2>&5 | |
25482 | ac_status=$? | |
25483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25484 | (exit $ac_status); }; } && | |
25485 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25487 | (eval $ac_try) 2>&5 | |
25488 | ac_status=$? | |
25489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25490 | (exit $ac_status); }; }; then | |
25491 | ac_cv_func_connect=yes | |
25492 | else | |
25493 | echo "$as_me: failed program was:" >&5 | |
25494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25495 | ||
25496 | ac_cv_func_connect=no | |
25497 | fi | |
32ddf007 VS |
25498 | rm -f conftest.err conftest.$ac_objext \ |
25499 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25500 | fi |
25501 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25502 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 25503 | |
21d1c967 | 25504 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
25505 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
25506 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25507 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 25509 | else |
e6cc62c6 | 25510 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25511 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25512 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25513 | /* confdefs.h. */ |
25514 | _ACEOF | |
25515 | cat confdefs.h >>conftest.$ac_ext | |
25516 | cat >>conftest.$ac_ext <<_ACEOF | |
25517 | /* end confdefs.h. */ | |
25518 | ||
21d1c967 | 25519 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25520 | #ifdef __cplusplus |
25521 | extern "C" | |
25522 | #endif | |
21d1c967 | 25523 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25524 | builtin and then its argument prototype would still apply. */ |
25525 | char connect (); | |
25526 | int | |
25527 | main () | |
25528 | { | |
25529 | connect (); | |
25530 | ; | |
25531 | return 0; | |
25532 | } | |
25533 | _ACEOF | |
25534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25536 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25537 | ac_status=$? |
32ddf007 VS |
25538 | grep -v '^ *+' conftest.er1 >conftest.err |
25539 | rm -f conftest.er1 | |
25540 | cat conftest.err >&5 | |
e6cc62c6 VS |
25541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25542 | (exit $ac_status); } && | |
e1293dcf | 25543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25545 | (eval $ac_try) 2>&5 | |
25546 | ac_status=$? | |
25547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25548 | (exit $ac_status); }; } && | |
25549 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25551 | (eval $ac_try) 2>&5 | |
25552 | ac_status=$? | |
25553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25554 | (exit $ac_status); }; }; then | |
25555 | ac_cv_lib_socket_connect=yes | |
25556 | else | |
25557 | echo "$as_me: failed program was:" >&5 | |
25558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25559 | ||
25560 | ac_cv_lib_socket_connect=no | |
25561 | fi | |
32ddf007 VS |
25562 | rm -f conftest.err conftest.$ac_objext \ |
25563 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25564 | LIBS=$ac_check_lib_save_LIBS |
25565 | fi | |
25566 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25567 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25568 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 25569 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 25570 | fi |
90dd450c | 25571 | |
21d1c967 | 25572 | fi |
90dd450c | 25573 | |
e6cc62c6 VS |
25574 | # Guillermo Gomez says -lposix is necessary on A/UX. |
25575 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25576 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25577 | if test "${ac_cv_func_remove+set}" = set; then | |
25578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25579 | else | |
25580 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25581 | /* confdefs.h. */ |
25582 | _ACEOF | |
25583 | cat confdefs.h >>conftest.$ac_ext | |
25584 | cat >>conftest.$ac_ext <<_ACEOF | |
25585 | /* end confdefs.h. */ | |
32ddf007 VS |
25586 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25588 | #define remove innocuous_remove | |
25589 | ||
21d1c967 | 25590 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25591 | which can conflict with char remove (); below. |
25592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25593 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25594 | |
e6cc62c6 VS |
25595 | #ifdef __STDC__ |
25596 | # include <limits.h> | |
25597 | #else | |
25598 | # include <assert.h> | |
25599 | #endif | |
32ddf007 VS |
25600 | |
25601 | #undef remove | |
25602 | ||
21d1c967 | 25603 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25604 | #ifdef __cplusplus |
25605 | extern "C" | |
25606 | { | |
25607 | #endif | |
21d1c967 | 25608 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25609 | builtin and then its argument prototype would still apply. */ |
25610 | char remove (); | |
21d1c967 GD |
25611 | /* The GNU C library defines this for functions which it implements |
25612 | to always fail with ENOSYS. Some functions are actually named | |
25613 | something starting with __ and the normal name is an alias. */ | |
25614 | #if defined (__stub_remove) || defined (__stub___remove) | |
25615 | choke me | |
25616 | #else | |
e6cc62c6 VS |
25617 | char (*f) () = remove; |
25618 | #endif | |
25619 | #ifdef __cplusplus | |
25620 | } | |
21d1c967 | 25621 | #endif |
90dd450c | 25622 | |
e6cc62c6 VS |
25623 | int |
25624 | main () | |
25625 | { | |
25626 | return f != remove; | |
25627 | ; | |
25628 | return 0; | |
25629 | } | |
25630 | _ACEOF | |
25631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25633 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25634 | ac_status=$? |
32ddf007 VS |
25635 | grep -v '^ *+' conftest.er1 >conftest.err |
25636 | rm -f conftest.er1 | |
25637 | cat conftest.err >&5 | |
e6cc62c6 VS |
25638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25639 | (exit $ac_status); } && | |
e1293dcf | 25640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25642 | (eval $ac_try) 2>&5 | |
25643 | ac_status=$? | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); }; } && | |
25646 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25648 | (eval $ac_try) 2>&5 | |
25649 | ac_status=$? | |
25650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25651 | (exit $ac_status); }; }; then | |
25652 | ac_cv_func_remove=yes | |
25653 | else | |
25654 | echo "$as_me: failed program was:" >&5 | |
25655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25656 | ||
25657 | ac_cv_func_remove=no | |
25658 | fi | |
32ddf007 VS |
25659 | rm -f conftest.err conftest.$ac_objext \ |
25660 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25661 | fi |
25662 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25663 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 25664 | |
21d1c967 | 25665 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
25666 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
25667 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25668 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25670 | else |
e6cc62c6 | 25671 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25672 | LIBS="-lposix $LIBS" |
e6cc62c6 | 25673 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25674 | /* confdefs.h. */ |
25675 | _ACEOF | |
25676 | cat confdefs.h >>conftest.$ac_ext | |
25677 | cat >>conftest.$ac_ext <<_ACEOF | |
25678 | /* end confdefs.h. */ | |
25679 | ||
21d1c967 | 25680 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25681 | #ifdef __cplusplus |
25682 | extern "C" | |
25683 | #endif | |
21d1c967 | 25684 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25685 | builtin and then its argument prototype would still apply. */ |
25686 | char remove (); | |
25687 | int | |
25688 | main () | |
25689 | { | |
25690 | remove (); | |
25691 | ; | |
25692 | return 0; | |
25693 | } | |
25694 | _ACEOF | |
25695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25697 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25698 | ac_status=$? |
32ddf007 VS |
25699 | grep -v '^ *+' conftest.er1 >conftest.err |
25700 | rm -f conftest.er1 | |
25701 | cat conftest.err >&5 | |
e6cc62c6 VS |
25702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25703 | (exit $ac_status); } && | |
e1293dcf | 25704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25706 | (eval $ac_try) 2>&5 | |
25707 | ac_status=$? | |
25708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25709 | (exit $ac_status); }; } && | |
25710 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25712 | (eval $ac_try) 2>&5 | |
25713 | ac_status=$? | |
25714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25715 | (exit $ac_status); }; }; then | |
25716 | ac_cv_lib_posix_remove=yes | |
25717 | else | |
25718 | echo "$as_me: failed program was:" >&5 | |
25719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25720 | ||
25721 | ac_cv_lib_posix_remove=no | |
25722 | fi | |
32ddf007 VS |
25723 | rm -f conftest.err conftest.$ac_objext \ |
25724 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25725 | LIBS=$ac_check_lib_save_LIBS |
25726 | fi | |
25727 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25728 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25729 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 25730 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 25731 | fi |
19bc6aad | 25732 | |
90dd450c | 25733 | fi |
19bc6aad | 25734 | |
21d1c967 | 25735 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
25736 | echo "$as_me:$LINENO: checking for shmat" >&5 |
25737 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25738 | if test "${ac_cv_func_shmat+set}" = set; then | |
25739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25740 | else | |
25741 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25742 | /* confdefs.h. */ |
25743 | _ACEOF | |
25744 | cat confdefs.h >>conftest.$ac_ext | |
25745 | cat >>conftest.$ac_ext <<_ACEOF | |
25746 | /* end confdefs.h. */ | |
32ddf007 VS |
25747 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25748 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25749 | #define shmat innocuous_shmat | |
25750 | ||
21d1c967 | 25751 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25752 | which can conflict with char shmat (); below. |
25753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25754 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25755 | |
e6cc62c6 VS |
25756 | #ifdef __STDC__ |
25757 | # include <limits.h> | |
25758 | #else | |
25759 | # include <assert.h> | |
25760 | #endif | |
32ddf007 VS |
25761 | |
25762 | #undef shmat | |
25763 | ||
21d1c967 | 25764 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25765 | #ifdef __cplusplus |
25766 | extern "C" | |
25767 | { | |
25768 | #endif | |
21d1c967 | 25769 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25770 | builtin and then its argument prototype would still apply. */ |
25771 | char shmat (); | |
21d1c967 GD |
25772 | /* The GNU C library defines this for functions which it implements |
25773 | to always fail with ENOSYS. Some functions are actually named | |
25774 | something starting with __ and the normal name is an alias. */ | |
25775 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25776 | choke me | |
25777 | #else | |
e6cc62c6 VS |
25778 | char (*f) () = shmat; |
25779 | #endif | |
25780 | #ifdef __cplusplus | |
25781 | } | |
21d1c967 | 25782 | #endif |
90dd450c | 25783 | |
e6cc62c6 VS |
25784 | int |
25785 | main () | |
25786 | { | |
25787 | return f != shmat; | |
25788 | ; | |
25789 | return 0; | |
25790 | } | |
25791 | _ACEOF | |
25792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25794 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25795 | ac_status=$? |
32ddf007 VS |
25796 | grep -v '^ *+' conftest.er1 >conftest.err |
25797 | rm -f conftest.er1 | |
25798 | cat conftest.err >&5 | |
e6cc62c6 VS |
25799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25800 | (exit $ac_status); } && | |
e1293dcf | 25801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25803 | (eval $ac_try) 2>&5 | |
25804 | ac_status=$? | |
25805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25806 | (exit $ac_status); }; } && | |
25807 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25809 | (eval $ac_try) 2>&5 | |
25810 | ac_status=$? | |
25811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25812 | (exit $ac_status); }; }; then | |
25813 | ac_cv_func_shmat=yes | |
25814 | else | |
25815 | echo "$as_me: failed program was:" >&5 | |
25816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25817 | ||
25818 | ac_cv_func_shmat=no | |
25819 | fi | |
32ddf007 VS |
25820 | rm -f conftest.err conftest.$ac_objext \ |
25821 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25822 | fi |
25823 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25824 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 25825 | |
21d1c967 | 25826 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
25827 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
25828 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25829 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 25831 | else |
e6cc62c6 | 25832 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 25833 | LIBS="-lipc $LIBS" |
e6cc62c6 | 25834 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25835 | /* confdefs.h. */ |
25836 | _ACEOF | |
25837 | cat confdefs.h >>conftest.$ac_ext | |
25838 | cat >>conftest.$ac_ext <<_ACEOF | |
25839 | /* end confdefs.h. */ | |
25840 | ||
5c6fa7d2 | 25841 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25842 | #ifdef __cplusplus |
25843 | extern "C" | |
25844 | #endif | |
5c6fa7d2 | 25845 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25846 | builtin and then its argument prototype would still apply. */ |
25847 | char shmat (); | |
25848 | int | |
25849 | main () | |
25850 | { | |
25851 | shmat (); | |
25852 | ; | |
25853 | return 0; | |
25854 | } | |
25855 | _ACEOF | |
25856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25858 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25859 | ac_status=$? |
32ddf007 VS |
25860 | grep -v '^ *+' conftest.er1 >conftest.err |
25861 | rm -f conftest.er1 | |
25862 | cat conftest.err >&5 | |
e6cc62c6 VS |
25863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25864 | (exit $ac_status); } && | |
e1293dcf | 25865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25867 | (eval $ac_try) 2>&5 | |
25868 | ac_status=$? | |
25869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25870 | (exit $ac_status); }; } && | |
25871 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25873 | (eval $ac_try) 2>&5 | |
25874 | ac_status=$? | |
25875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25876 | (exit $ac_status); }; }; then | |
25877 | ac_cv_lib_ipc_shmat=yes | |
25878 | else | |
25879 | echo "$as_me: failed program was:" >&5 | |
25880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25881 | ||
25882 | ac_cv_lib_ipc_shmat=no | |
25883 | fi | |
32ddf007 VS |
25884 | rm -f conftest.err conftest.$ac_objext \ |
25885 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25886 | LIBS=$ac_check_lib_save_LIBS |
25887 | fi | |
25888 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25889 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25890 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 25891 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 25892 | fi |
90dd450c | 25893 | |
90dd450c | 25894 | fi |
21d1c967 | 25895 | fi |
10f2d63a | 25896 | |
21d1c967 | 25897 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 25898 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
25899 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
25900 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25901 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25902 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25903 | # These have to be linked with before -lX11, unlike the other | |
25904 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
25905 | # John Interrante, Karl Berry |
25906 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25907 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25908 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25910 | else | |
25911 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 25912 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25913 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25914 | /* confdefs.h. */ |
25915 | _ACEOF | |
25916 | cat confdefs.h >>conftest.$ac_ext | |
25917 | cat >>conftest.$ac_ext <<_ACEOF | |
25918 | /* end confdefs.h. */ | |
25919 | ||
21d1c967 | 25920 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25921 | #ifdef __cplusplus |
25922 | extern "C" | |
25923 | #endif | |
21d1c967 | 25924 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25925 | builtin and then its argument prototype would still apply. */ |
25926 | char IceConnectionNumber (); | |
25927 | int | |
25928 | main () | |
25929 | { | |
25930 | IceConnectionNumber (); | |
25931 | ; | |
25932 | return 0; | |
25933 | } | |
25934 | _ACEOF | |
25935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25937 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25938 | ac_status=$? |
32ddf007 VS |
25939 | grep -v '^ *+' conftest.er1 >conftest.err |
25940 | rm -f conftest.er1 | |
25941 | cat conftest.err >&5 | |
e6cc62c6 VS |
25942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25943 | (exit $ac_status); } && | |
e1293dcf | 25944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25946 | (eval $ac_try) 2>&5 | |
25947 | ac_status=$? | |
25948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25949 | (exit $ac_status); }; } && | |
25950 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25952 | (eval $ac_try) 2>&5 | |
25953 | ac_status=$? | |
25954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25955 | (exit $ac_status); }; }; then | |
25956 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25957 | else | |
25958 | echo "$as_me: failed program was:" >&5 | |
25959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25960 | ||
25961 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25962 | fi | |
32ddf007 VS |
25963 | rm -f conftest.err conftest.$ac_objext \ |
25964 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25965 | LIBS=$ac_check_lib_save_LIBS |
25966 | fi | |
25967 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25968 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25969 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 25970 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 25971 | fi |
21d1c967 | 25972 | |
e6cc62c6 | 25973 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 25974 | |
10f2d63a VZ |
25975 | fi |
25976 | ||
8284b0c5 | 25977 | |
21d1c967 | 25978 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
25979 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
25980 | echo "$as_me: error: X11 not found" >&2;} | |
25981 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
25982 | fi |
25983 | ||
2b5f62a0 VZ |
25984 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
25985 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
25986 | AFMINSTALL=afminstall |
25987 | COMPILED_X_PROGRAM=0 | |
25988 | ||
e6cc62c6 VS |
25989 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25990 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
25991 | ||
21d1c967 | 25992 | ac_find_includes= |
2b5f62a0 | 25993 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
25994 | do |
25995 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25996 | ac_find_includes=$ac_dir | |
25997 | break | |
25998 | fi | |
25999 | done | |
26000 | ||
26001 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
26002 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
26003 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26004 | ||
2b5f62a0 | 26005 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
26006 | ac_path_to_include="" |
26007 | else | |
2b5f62a0 VZ |
26008 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
26009 | result=$? | |
26010 | if test $result = 0; then | |
26011 | ac_path_to_include="" | |
26012 | else | |
26013 | ac_path_to_include=" -I$ac_find_includes" | |
26014 | fi | |
dd0e4a90 VZ |
26015 | fi |
26016 | ||
26017 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 26018 | else |
e6cc62c6 | 26019 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26020 | /* confdefs.h. */ |
26021 | _ACEOF | |
26022 | cat confdefs.h >>conftest.$ac_ext | |
26023 | cat >>conftest.$ac_ext <<_ACEOF | |
26024 | /* end confdefs.h. */ | |
21d1c967 GD |
26025 | |
26026 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26027 | |
26028 | int | |
26029 | main () | |
26030 | { | |
21d1c967 GD |
26031 | |
26032 | int version; | |
26033 | version = xmUseVersion; | |
e6cc62c6 VS |
26034 | |
26035 | ; | |
26036 | return 0; | |
26037 | } | |
26038 | _ACEOF | |
26039 | rm -f conftest.$ac_objext | |
26040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26041 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26042 | ac_status=$? |
32ddf007 VS |
26043 | grep -v '^ *+' conftest.er1 >conftest.err |
26044 | rm -f conftest.er1 | |
26045 | cat conftest.err >&5 | |
e6cc62c6 VS |
26046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26047 | (exit $ac_status); } && | |
e1293dcf | 26048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26050 | (eval $ac_try) 2>&5 | |
26051 | ac_status=$? | |
26052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26053 | (exit $ac_status); }; } && | |
26054 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26056 | (eval $ac_try) 2>&5 | |
26057 | ac_status=$? | |
26058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26059 | (exit $ac_status); }; }; then | |
26060 | ||
26061 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26062 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26063 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26064 | |
10f2d63a | 26065 | else |
e6cc62c6 VS |
26066 | echo "$as_me: failed program was:" >&5 |
26067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26068 | ||
26069 | ||
26070 | echo "$as_me:$LINENO: result: no" >&5 | |
26071 | echo "${ECHO_T}no" >&6 | |
26072 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26073 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26074 | { (exit 1); exit 1; }; } | |
26075 | ||
26076 | ||
10f2d63a | 26077 | fi |
32ddf007 | 26078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 26079 | fi |
10f2d63a | 26080 | |
21d1c967 | 26081 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
26082 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
26083 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26084 | ||
21d1c967 | 26085 | ac_find_libraries= |
2b5f62a0 | 26086 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26087 | do |
26088 | for ac_extension in a so sl dylib; do | |
26089 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26090 | ac_find_libraries=$ac_dir | |
26091 | break 2 | |
26092 | fi | |
26093 | done | |
26094 | done | |
26095 | ||
26096 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
26097 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
26098 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26099 | ||
21d1c967 | 26100 | |
21d1c967 GD |
26101 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26102 | result=$? | |
26103 | if test $result = 0; then | |
26104 | ac_path_to_link="" | |
26105 | else | |
26106 | ac_path_to_link=" -L$ac_find_libraries" | |
26107 | fi | |
26108 | ||
21d1c967 | 26109 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 26110 | else |
dd0e4a90 VZ |
26111 | save_CFLAGS=$CFLAGS |
26112 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26113 | ||
e6cc62c6 | 26114 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26115 | /* confdefs.h. */ |
26116 | _ACEOF | |
26117 | cat confdefs.h >>conftest.$ac_ext | |
26118 | cat >>conftest.$ac_ext <<_ACEOF | |
26119 | /* end confdefs.h. */ | |
21d1c967 GD |
26120 | |
26121 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26122 | |
26123 | int | |
26124 | main () | |
26125 | { | |
21d1c967 GD |
26126 | |
26127 | int version; | |
26128 | version = xmUseVersion; | |
e6cc62c6 VS |
26129 | |
26130 | ; | |
26131 | return 0; | |
26132 | } | |
26133 | _ACEOF | |
26134 | rm -f conftest.$ac_objext | |
26135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26136 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26137 | ac_status=$? |
32ddf007 VS |
26138 | grep -v '^ *+' conftest.er1 >conftest.err |
26139 | rm -f conftest.er1 | |
26140 | cat conftest.err >&5 | |
e6cc62c6 VS |
26141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26142 | (exit $ac_status); } && | |
e1293dcf | 26143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26145 | (eval $ac_try) 2>&5 | |
26146 | ac_status=$? | |
26147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26148 | (exit $ac_status); }; } && | |
26149 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26151 | (eval $ac_try) 2>&5 | |
26152 | ac_status=$? | |
26153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26154 | (exit $ac_status); }; }; then | |
26155 | ||
26156 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26157 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26158 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26159 | |
d836ee96 | 26160 | else |
e6cc62c6 VS |
26161 | echo "$as_me: failed program was:" >&5 |
26162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26163 | ||
26164 | ||
26165 | echo "$as_me:$LINENO: result: no" >&5 | |
26166 | echo "${ECHO_T}no" >&6 | |
26167 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26168 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26169 | { (exit 1); exit 1; }; } | |
26170 | ||
26171 | ||
d836ee96 | 26172 | fi |
32ddf007 | 26173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
26174 | |
26175 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
26176 | fi |
26177 | fi | |
26178 | ||
e6cc62c6 VS |
26179 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
26180 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
26181 | libp_link="" |
26182 | libsm_ice_link="" | |
26183 | libs_found=0 | |
26184 | for libp in "" " -lXp"; do | |
26185 | if test "$libs_found" = "0"; then | |
7015ef3a | 26186 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 26187 | if test "$libs_found" = "0"; then |
6a30f1c8 | 26188 | save_LIBS="$LIBS" |
93a543aa | 26189 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
26190 | save_CFLAGS=$CFLAGS |
26191 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26192 | ||
e6cc62c6 | 26193 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26194 | /* confdefs.h. */ |
26195 | _ACEOF | |
26196 | cat confdefs.h >>conftest.$ac_ext | |
26197 | cat >>conftest.$ac_ext <<_ACEOF | |
26198 | /* end confdefs.h. */ | |
17234b26 | 26199 | |
6a30f1c8 MB |
26200 | #include <Xm/Xm.h> |
26201 | #include <Xm/List.h> | |
e6cc62c6 VS |
26202 | |
26203 | int | |
26204 | main () | |
26205 | { | |
6a30f1c8 MB |
26206 | |
26207 | XmString string = NULL; | |
26208 | Widget w = NULL; | |
26209 | int position = 0; | |
26210 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
26211 | |
26212 | ; | |
26213 | return 0; | |
26214 | } | |
26215 | _ACEOF | |
26216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26218 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26219 | ac_status=$? |
32ddf007 VS |
26220 | grep -v '^ *+' conftest.er1 >conftest.err |
26221 | rm -f conftest.er1 | |
26222 | cat conftest.err >&5 | |
e6cc62c6 VS |
26223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26224 | (exit $ac_status); } && | |
e1293dcf | 26225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26227 | (eval $ac_try) 2>&5 | |
26228 | ac_status=$? | |
26229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26230 | (exit $ac_status); }; } && | |
26231 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26233 | (eval $ac_try) 2>&5 | |
26234 | ac_status=$? | |
26235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26236 | (exit $ac_status); }; }; then | |
26237 | ||
6a30f1c8 MB |
26238 | libp_link="$libp" |
26239 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
26240 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
26241 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 26242 | libs_found=1 |
e6cc62c6 | 26243 | |
6a30f1c8 | 26244 | else |
e6cc62c6 VS |
26245 | echo "$as_me: failed program was:" >&5 |
26246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26247 | ||
26248 | ||
26249 | ||
6a30f1c8 | 26250 | fi |
32ddf007 VS |
26251 | rm -f conftest.err conftest.$ac_objext \ |
26252 | conftest$ac_exeext conftest.$ac_ext | |
dd0e4a90 | 26253 | |
6a30f1c8 | 26254 | LIBS="$save_LIBS" |
dd0e4a90 | 26255 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
26256 | fi |
26257 | done | |
26258 | fi | |
26259 | done | |
26260 | ||
26261 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
26262 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
26263 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26264 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26265 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26266 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
26267 | fi |
26268 | ||
da494b40 MB |
26269 | save_CFLAGS=$CFLAGS |
26270 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
26271 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
26272 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26273 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26274 | /* confdefs.h. */ |
26275 | _ACEOF | |
26276 | cat confdefs.h >>conftest.$ac_ext | |
26277 | cat >>conftest.$ac_ext <<_ACEOF | |
26278 | /* end confdefs.h. */ | |
da494b40 MB |
26279 | |
26280 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26281 | |
26282 | int | |
26283 | main () | |
26284 | { | |
da494b40 MB |
26285 | |
26286 | #if XmVersion < 2000 | |
26287 | #error "Not Motif 2" | |
26288 | #endif | |
e6cc62c6 VS |
26289 | |
26290 | ; | |
26291 | return 0; | |
26292 | } | |
26293 | _ACEOF | |
26294 | rm -f conftest.$ac_objext | |
26295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26296 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26297 | ac_status=$? |
32ddf007 VS |
26298 | grep -v '^ *+' conftest.er1 >conftest.err |
26299 | rm -f conftest.er1 | |
26300 | cat conftest.err >&5 | |
e6cc62c6 VS |
26301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26302 | (exit $ac_status); } && | |
e1293dcf | 26303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26305 | (eval $ac_try) 2>&5 | |
26306 | ac_status=$? | |
26307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26308 | (exit $ac_status); }; } && | |
26309 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26311 | (eval $ac_try) 2>&5 | |
26312 | ac_status=$? | |
26313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26314 | (exit $ac_status); }; }; then | |
26315 | ||
26316 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26317 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
26318 | _ACEOF |
26319 | ||
26320 | echo "$as_me:$LINENO: result: found" >&5 | |
26321 | echo "${ECHO_T}found" >&6 | |
da494b40 | 26322 | |
da494b40 | 26323 | else |
e6cc62c6 VS |
26324 | echo "$as_me: failed program was:" >&5 |
26325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26326 | ||
26327 | ||
26328 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26329 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
26330 | _ACEOF |
26331 | ||
26332 | echo "$as_me:$LINENO: result: not found" >&5 | |
26333 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 26334 | |
da494b40 | 26335 | fi |
32ddf007 | 26336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
26337 | CFLAGS=$save_CFLAGS |
26338 | ||
93a543aa | 26339 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 26340 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
26341 | TOOLKIT=MOTIF |
26342 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
26343 | fi |
26344 | ||
89fe663f VZ |
26345 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
26346 | if test "$wxUSE_LIBXPM" = "sys"; then | |
26347 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26348 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26349 | ||
26350 | ac_find_libraries= | |
26351 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26352 | do | |
26353 | for ac_extension in a so sl dylib; do | |
26354 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26355 | ac_find_libraries=$ac_dir | |
26356 | break 2 | |
26357 | fi | |
26358 | done | |
26359 | done | |
26360 | ||
26361 | if test "$ac_find_libraries" != "" ; then | |
26362 | ||
26363 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26364 | result=$? | |
26365 | if test $result = 0; then | |
26366 | ac_path_to_link="" | |
26367 | else | |
26368 | ac_path_to_link=" -L$ac_find_libraries" | |
26369 | fi | |
26370 | ||
26371 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26372 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26373 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26374 | ||
26375 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26376 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26377 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26379 | else | |
26380 | ||
26381 | save_CFLAGS=$CFLAGS | |
26382 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26383 | ||
26384 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26385 | /* confdefs.h. */ |
26386 | _ACEOF | |
26387 | cat confdefs.h >>conftest.$ac_ext | |
26388 | cat >>conftest.$ac_ext <<_ACEOF | |
26389 | /* end confdefs.h. */ | |
26390 | ||
26391 | #include <X11/xpm.h> | |
26392 | ||
26393 | int | |
26394 | main () | |
26395 | { | |
26396 | ||
26397 | int version; | |
26398 | version = XpmLibraryVersion(); | |
26399 | ||
26400 | ; | |
26401 | return 0; | |
26402 | } | |
26403 | _ACEOF | |
26404 | rm -f conftest.$ac_objext | |
26405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26406 | (eval $ac_compile) 2>conftest.er1 |
89fe663f | 26407 | ac_status=$? |
32ddf007 VS |
26408 | grep -v '^ *+' conftest.er1 >conftest.err |
26409 | rm -f conftest.er1 | |
26410 | cat conftest.err >&5 | |
89fe663f VZ |
26411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26412 | (exit $ac_status); } && | |
e1293dcf | 26413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26415 | (eval $ac_try) 2>&5 | |
26416 | ac_status=$? | |
26417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26418 | (exit $ac_status); }; } && | |
26419 | { ac_try='test -s conftest.$ac_objext' | |
89fe663f VZ |
26420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26421 | (eval $ac_try) 2>&5 | |
26422 | ac_status=$? | |
26423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26424 | (exit $ac_status); }; }; then | |
26425 | wx_cv_x11_xpm_h=yes | |
26426 | else | |
26427 | echo "$as_me: failed program was:" >&5 | |
26428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26429 | ||
26430 | wx_cv_x11_xpm_h=no | |
26431 | ||
26432 | fi | |
32ddf007 | 26433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26434 | |
26435 | CFLAGS=$save_CFLAGS | |
26436 | ||
26437 | ||
26438 | fi | |
26439 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26440 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26441 | ||
26442 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 26443 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
26444 | cat >>confdefs.h <<\_ACEOF |
26445 | #define wxHAVE_LIB_XPM 1 | |
26446 | _ACEOF | |
26447 | ||
26448 | else | |
26449 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26450 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26451 | fi | |
26452 | fi | |
26453 | ||
26454 | fi | |
f7f78039 | 26455 | |
89fe663f VZ |
26456 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
26457 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26458 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26460 | else | |
26461 | ac_check_lib_save_LIBS=$LIBS | |
26462 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26463 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26464 | /* confdefs.h. */ |
26465 | _ACEOF | |
26466 | cat confdefs.h >>conftest.$ac_ext | |
26467 | cat >>conftest.$ac_ext <<_ACEOF | |
26468 | /* end confdefs.h. */ | |
26469 | ||
26470 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26471 | #ifdef __cplusplus | |
26472 | extern "C" | |
26473 | #endif | |
26474 | /* We use char because int might match the return type of a gcc2 | |
26475 | builtin and then its argument prototype would still apply. */ | |
26476 | char XShapeQueryExtension (); | |
26477 | int | |
26478 | main () | |
26479 | { | |
26480 | XShapeQueryExtension (); | |
26481 | ; | |
26482 | return 0; | |
26483 | } | |
26484 | _ACEOF | |
26485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26487 | (eval $ac_link) 2>conftest.er1 |
89fe663f | 26488 | ac_status=$? |
32ddf007 VS |
26489 | grep -v '^ *+' conftest.er1 >conftest.err |
26490 | rm -f conftest.er1 | |
26491 | cat conftest.err >&5 | |
89fe663f VZ |
26492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26493 | (exit $ac_status); } && | |
e1293dcf | 26494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26496 | (eval $ac_try) 2>&5 | |
26497 | ac_status=$? | |
26498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26499 | (exit $ac_status); }; } && | |
26500 | { ac_try='test -s conftest$ac_exeext' | |
89fe663f VZ |
26501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26502 | (eval $ac_try) 2>&5 | |
26503 | ac_status=$? | |
26504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26505 | (exit $ac_status); }; }; then | |
26506 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26507 | else | |
26508 | echo "$as_me: failed program was:" >&5 | |
26509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26510 | ||
26511 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26512 | fi | |
32ddf007 VS |
26513 | rm -f conftest.err conftest.$ac_objext \ |
26514 | conftest$ac_exeext conftest.$ac_ext | |
89fe663f VZ |
26515 | LIBS=$ac_check_lib_save_LIBS |
26516 | fi | |
26517 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26518 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26519 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26520 | ||
26521 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26522 | wxHAVE_XEXT_LIB=1 | |
26523 | ||
26524 | fi | |
26525 | ||
26526 | ||
26527 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26528 | save_CFLAGS="$CFLAGS" | |
26529 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26530 | ||
26531 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 26532 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 26533 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26534 | /* confdefs.h. */ |
26535 | _ACEOF | |
26536 | cat confdefs.h >>conftest.$ac_ext | |
26537 | cat >>conftest.$ac_ext <<_ACEOF | |
26538 | /* end confdefs.h. */ | |
26539 | ||
89fe663f VZ |
26540 | #include <X11/Xlib.h> |
26541 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
26542 | |
26543 | int | |
26544 | main () | |
26545 | { | |
f7f78039 | 26546 | |
89fe663f VZ |
26547 | int dummy1, dummy2; |
26548 | XShapeQueryExtension((Display*)NULL, | |
26549 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
26550 | |
26551 | ; | |
26552 | return 0; | |
26553 | } | |
26554 | _ACEOF | |
26555 | rm -f conftest.$ac_objext | |
26556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26557 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26558 | ac_status=$? |
32ddf007 VS |
26559 | grep -v '^ *+' conftest.er1 >conftest.err |
26560 | rm -f conftest.er1 | |
26561 | cat conftest.err >&5 | |
e6cc62c6 VS |
26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26563 | (exit $ac_status); } && | |
e1293dcf | 26564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
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); }; } && | |
26570 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26572 | (eval $ac_try) 2>&5 | |
26573 | ac_status=$? | |
26574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26575 | (exit $ac_status); }; }; then | |
26576 | ||
89fe663f | 26577 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 26578 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
26579 | _ACEOF |
26580 | ||
89fe663f | 26581 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 26582 | echo "${ECHO_T}found" >&6 |
f7f78039 | 26583 | |
f7f78039 | 26584 | else |
e6cc62c6 VS |
26585 | echo "$as_me: failed program was:" >&5 |
26586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26587 | ||
26588 | ||
89fe663f | 26589 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
26590 | echo "${ECHO_T}not found" >&6 |
26591 | ||
f7f78039 | 26592 | fi |
32ddf007 | 26593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26594 | CFLAGS="$save_CFLAGS" |
26595 | ||
26596 | fi | |
21d1c967 GD |
26597 | fi |
26598 | ||
26599 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
26600 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
26601 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26602 | if test "$GCC" = yes; then | |
26603 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26604 | echo "${ECHO_T}gcc" >&6 | |
26605 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26606 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26607 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26608 | echo "${ECHO_T}xlc" >&6 | |
26609 | CPPFLAGS_PASCAL="-qmacpstr" | |
26610 | else | |
26611 | echo "$as_me:$LINENO: result: none" >&5 | |
26612 | echo "${ECHO_T}none" >&6 | |
26613 | fi | |
26614 | ||
26615 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 26616 | |
0c98a14e | 26617 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
26618 | TOOLKIT=MAC |
26619 | GUIDIST=MACX_DIST | |
cf615ebb | 26620 | WXBASEPORT="_carbon" |
21d1c967 GD |
26621 | fi |
26622 | ||
ac0c4cc3 DE |
26623 | if test "$wxUSE_COCOA" = 1; then |
26624 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26625 | TOOLKIT=COCOA | |
26626 | GUIDIST=COCOA_DIST | |
26627 | fi | |
26628 | ||
21d1c967 GD |
26629 | if test "$wxUSE_PM" = 1; then |
26630 | TOOLKIT=PM | |
26631 | GUIDIST=GTK_DIST | |
26632 | fi | |
26633 | ||
26634 | if test "$TOOLKIT" = "PM" ; then | |
26635 | TOOLKIT_DIR="os2" | |
26636 | else | |
26637 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26638 | fi | |
26639 | ||
26640 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26641 | ||
26642 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26643 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26644 | ||
26645 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26646 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26647 | ||
26648 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26649 | if test "$wxUSE_X11" = 1; then | |
26650 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26651 | else | |
26652 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26653 | fi | |
26654 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26655 | WIDGET_SET=univ | |
26656 | else | |
26657 | ALL_OBJECTS="\$(GUIOBJS)" | |
26658 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26659 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26660 | fi | |
26661 | ||
26662 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26663 | ||
26664 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26665 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26666 | fi | |
26667 | ||
26668 | if test "$wxUSE_HTML" = "yes"; then | |
26669 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26670 | fi | |
26671 | ||
26672 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26673 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26674 | fi | |
26675 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26676 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26677 | fi | |
26678 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26679 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26680 | fi | |
26681 | ||
26682 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26683 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 26684 | else |
21d1c967 GD |
26685 | USE_GUI=0 |
26686 | ||
26687 | TOOLKIT_DIR="base" | |
26688 | ||
26689 | if test "$USE_WIN32" = 1 ; then | |
26690 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26691 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26692 | ||
26693 | TOOLKIT="MSW" | |
26694 | else | |
26695 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26696 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26697 | fi | |
26698 | ||
26699 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26700 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26701 | ||
26702 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26703 | ||
26704 | GUIDIST="BASE_DIST" | |
26705 | DISTDIR="wxBase" | |
d836ee96 VZ |
26706 | fi |
26707 | ||
8284b0c5 | 26708 | |
8647bec6 RG |
26709 | |
26710 | ||
26711 | IODBC_C_SRC="" | |
26712 | ||
26713 | ||
26714 | if test "$TOOLKIT" != "MSW" ; then | |
26715 | ||
bb41dcbe | 26716 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 26717 | |
bb41dcbe | 26718 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
26719 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
26720 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26721 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26723 | fi | |
26724 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26725 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26726 | else | |
26727 | # Is the header compilable? | |
26728 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26729 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26730 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26731 | /* confdefs.h. */ |
26732 | _ACEOF | |
26733 | cat confdefs.h >>conftest.$ac_ext | |
26734 | cat >>conftest.$ac_ext <<_ACEOF | |
26735 | /* end confdefs.h. */ | |
26736 | $ac_includes_default | |
8647bec6 | 26737 | #include <sql.h> |
e6cc62c6 VS |
26738 | _ACEOF |
26739 | rm -f conftest.$ac_objext | |
26740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26741 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26742 | ac_status=$? |
32ddf007 VS |
26743 | grep -v '^ *+' conftest.er1 >conftest.err |
26744 | rm -f conftest.er1 | |
26745 | cat conftest.err >&5 | |
e6cc62c6 VS |
26746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26747 | (exit $ac_status); } && | |
e1293dcf | 26748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26750 | (eval $ac_try) 2>&5 | |
26751 | ac_status=$? | |
26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26753 | (exit $ac_status); }; } && | |
26754 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26756 | (eval $ac_try) 2>&5 | |
26757 | ac_status=$? | |
26758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26759 | (exit $ac_status); }; }; then | |
26760 | ac_header_compiler=yes | |
26761 | else | |
26762 | echo "$as_me: failed program was:" >&5 | |
26763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26764 | ||
26765 | ac_header_compiler=no | |
26766 | fi | |
32ddf007 | 26767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26768 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26769 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26770 | ||
26771 | # Is the header present? | |
26772 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26773 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26774 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26775 | /* confdefs.h. */ |
26776 | _ACEOF | |
26777 | cat confdefs.h >>conftest.$ac_ext | |
26778 | cat >>conftest.$ac_ext <<_ACEOF | |
26779 | /* end confdefs.h. */ | |
26780 | #include <sql.h> | |
26781 | _ACEOF | |
26782 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26783 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26784 | ac_status=$? | |
26785 | grep -v '^ *+' conftest.er1 >conftest.err | |
26786 | rm -f conftest.er1 | |
26787 | cat conftest.err >&5 | |
26788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26789 | (exit $ac_status); } >/dev/null; then | |
26790 | if test -s conftest.err; then | |
26791 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 26792 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26793 | else |
26794 | ac_cpp_err= | |
26795 | fi | |
26796 | else | |
26797 | ac_cpp_err=yes | |
26798 | fi | |
26799 | if test -z "$ac_cpp_err"; then | |
26800 | ac_header_preproc=yes | |
26801 | else | |
26802 | echo "$as_me: failed program was:" >&5 | |
26803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26804 | ||
26805 | ac_header_preproc=no | |
26806 | fi | |
26807 | rm -f conftest.err conftest.$ac_ext | |
26808 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26809 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26810 | ||
26811 | # So? What about this header? | |
32ddf007 VS |
26812 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26813 | yes:no: ) | |
e6cc62c6 VS |
26814 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26815 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
26816 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26817 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26818 | ac_header_preproc=yes | |
e6cc62c6 | 26819 | ;; |
32ddf007 | 26820 | no:yes:* ) |
e6cc62c6 VS |
26821 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26822 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
26823 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26824 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26825 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26826 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26827 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26828 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26829 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26830 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
26831 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26832 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26833 | ( |
26834 | cat <<\_ASBOX | |
32ddf007 VS |
26835 | ## ----------------------------------------- ## |
26836 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26837 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26838 | _ASBOX |
26839 | ) | | |
26840 | sed "s/^/$as_me: WARNING: /" >&2 | |
26841 | ;; | |
26842 | esac | |
26843 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26844 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26845 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 26847 | else |
e6cc62c6 VS |
26848 | ac_cv_header_sql_h=$ac_header_preproc |
26849 | fi | |
26850 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26851 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26852 | ||
bb41dcbe VS |
26853 | fi |
26854 | if test $ac_cv_header_sql_h = yes; then | |
26855 | found_sql_h=1 | |
8647bec6 RG |
26856 | fi |
26857 | ||
e6cc62c6 | 26858 | |
bb41dcbe | 26859 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
26860 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
26861 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26862 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 26863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 26864 | else |
bb41dcbe | 26865 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 26866 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 26867 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26868 | /* confdefs.h. */ |
26869 | _ACEOF | |
26870 | cat confdefs.h >>conftest.$ac_ext | |
26871 | cat >>conftest.$ac_ext <<_ACEOF | |
26872 | /* end confdefs.h. */ | |
26873 | ||
8647bec6 | 26874 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26875 | #ifdef __cplusplus |
26876 | extern "C" | |
26877 | #endif | |
8647bec6 | 26878 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26879 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26880 | char SQLAllocEnv (); |
e6cc62c6 VS |
26881 | int |
26882 | main () | |
26883 | { | |
e46d2a18 | 26884 | SQLAllocEnv (); |
e6cc62c6 VS |
26885 | ; |
26886 | return 0; | |
26887 | } | |
26888 | _ACEOF | |
26889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26891 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26892 | ac_status=$? |
32ddf007 VS |
26893 | grep -v '^ *+' conftest.er1 >conftest.err |
26894 | rm -f conftest.er1 | |
26895 | cat conftest.err >&5 | |
e6cc62c6 VS |
26896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26897 | (exit $ac_status); } && | |
e1293dcf | 26898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26900 | (eval $ac_try) 2>&5 | |
26901 | ac_status=$? | |
26902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26903 | (exit $ac_status); }; } && | |
26904 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26906 | (eval $ac_try) 2>&5 | |
26907 | ac_status=$? | |
26908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26909 | (exit $ac_status); }; }; then | |
e46d2a18 | 26910 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 26911 | else |
e6cc62c6 VS |
26912 | echo "$as_me: failed program was:" >&5 |
26913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26914 | ||
e46d2a18 | 26915 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 26916 | fi |
32ddf007 VS |
26917 | rm -f conftest.err conftest.$ac_objext \ |
26918 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26919 | LIBS=$ac_check_lib_save_LIBS |
26920 | fi | |
e46d2a18 VS |
26921 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
26922 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26923 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26924 | ODBC_LINK=" -liodbc" |
26925 | else | |
26926 | ||
e46d2a18 VS |
26927 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
26928 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26929 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26931 | else | |
26932 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26933 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 26934 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26935 | /* confdefs.h. */ |
26936 | _ACEOF | |
26937 | cat confdefs.h >>conftest.$ac_ext | |
26938 | cat >>conftest.$ac_ext <<_ACEOF | |
26939 | /* end confdefs.h. */ | |
26940 | ||
8647bec6 | 26941 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26942 | #ifdef __cplusplus |
26943 | extern "C" | |
26944 | #endif | |
8647bec6 | 26945 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26946 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26947 | char SQLAllocEnv (); |
e6cc62c6 VS |
26948 | int |
26949 | main () | |
26950 | { | |
e46d2a18 | 26951 | SQLAllocEnv (); |
e6cc62c6 VS |
26952 | ; |
26953 | return 0; | |
26954 | } | |
26955 | _ACEOF | |
26956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26958 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26959 | ac_status=$? |
32ddf007 VS |
26960 | grep -v '^ *+' conftest.er1 >conftest.err |
26961 | rm -f conftest.er1 | |
26962 | cat conftest.err >&5 | |
e6cc62c6 VS |
26963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26964 | (exit $ac_status); } && | |
e1293dcf | 26965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26967 | (eval $ac_try) 2>&5 | |
26968 | ac_status=$? | |
26969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26970 | (exit $ac_status); }; } && | |
26971 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26973 | (eval $ac_try) 2>&5 | |
26974 | ac_status=$? | |
26975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26976 | (exit $ac_status); }; }; then | |
e46d2a18 | 26977 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 26978 | else |
e6cc62c6 VS |
26979 | echo "$as_me: failed program was:" >&5 |
26980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26981 | ||
e46d2a18 | 26982 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 26983 | fi |
32ddf007 VS |
26984 | rm -f conftest.err conftest.$ac_objext \ |
26985 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe | 26986 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 26987 | fi |
e46d2a18 VS |
26988 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
26989 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26990 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26991 | ODBC_LINK=" -lunixodbc" |
26992 | else | |
26993 | ||
e46d2a18 VS |
26994 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
26995 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26996 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26998 | else | |
26999 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 27000 | LIBS="-lodbc $LIBS" |
bb41dcbe | 27001 | cat >conftest.$ac_ext <<_ACEOF |
bb41dcbe VS |
27002 | /* confdefs.h. */ |
27003 | _ACEOF | |
27004 | cat confdefs.h >>conftest.$ac_ext | |
27005 | cat >>conftest.$ac_ext <<_ACEOF | |
27006 | /* end confdefs.h. */ | |
e6cc62c6 | 27007 | |
bb41dcbe VS |
27008 | /* Override any gcc2 internal prototype to avoid an error. */ |
27009 | #ifdef __cplusplus | |
27010 | extern "C" | |
27011 | #endif | |
27012 | /* We use char because int might match the return type of a gcc2 | |
27013 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 27014 | char SQLAllocEnv (); |
bb41dcbe VS |
27015 | int |
27016 | main () | |
27017 | { | |
e46d2a18 | 27018 | SQLAllocEnv (); |
bb41dcbe VS |
27019 | ; |
27020 | return 0; | |
27021 | } | |
27022 | _ACEOF | |
27023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27025 | (eval $ac_link) 2>conftest.er1 |
bb41dcbe | 27026 | ac_status=$? |
32ddf007 VS |
27027 | grep -v '^ *+' conftest.er1 >conftest.err |
27028 | rm -f conftest.er1 | |
27029 | cat conftest.err >&5 | |
bb41dcbe VS |
27030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27031 | (exit $ac_status); } && | |
e1293dcf | 27032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27034 | (eval $ac_try) 2>&5 | |
27035 | ac_status=$? | |
27036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27037 | (exit $ac_status); }; } && | |
27038 | { ac_try='test -s conftest$ac_exeext' | |
bb41dcbe VS |
27039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27040 | (eval $ac_try) 2>&5 | |
27041 | ac_status=$? | |
27042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27043 | (exit $ac_status); }; }; then | |
e46d2a18 | 27044 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 27045 | else |
bb41dcbe VS |
27046 | echo "$as_me: failed program was:" >&5 |
27047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27048 | ||
e46d2a18 | 27049 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 27050 | fi |
32ddf007 VS |
27051 | rm -f conftest.err conftest.$ac_objext \ |
27052 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
27053 | LIBS=$ac_check_lib_save_LIBS |
27054 | fi | |
e46d2a18 VS |
27055 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
27056 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27057 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
27058 | ODBC_LINK=" -lodbc" |
27059 | fi | |
27060 | ||
27061 | ||
27062 | fi | |
e6cc62c6 | 27063 | |
e6cc62c6 | 27064 | |
8647bec6 | 27065 | fi |
e6cc62c6 | 27066 | |
fd3d7534 | 27067 | fi |
bb41dcbe VS |
27068 | if test "x$ODBC_LINK" = "x" ; then |
27069 | if test "$wxUSE_ODBC" = "sys" ; then | |
27070 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27071 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27072 | { (exit 1); exit 1; }; } | |
27073 | else | |
27074 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27075 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27076 | wxUSE_ODBC=builtin | |
27077 | fi | |
27078 | else | |
27079 | wxUSE_ODBC=sys | |
8647bec6 | 27080 | fi |
8647bec6 | 27081 | fi |
bb41dcbe VS |
27082 | if test "$wxUSE_ODBC" != "no" ; then |
27083 | cat >>confdefs.h <<\_ACEOF | |
27084 | #define wxUSE_ODBC 1 | |
27085 | _ACEOF | |
e6cc62c6 | 27086 | |
0bdb08e7 VS |
27087 | if test "$wxUSE_ODBC" = "builtin" ; then |
27088 | cat >>confdefs.h <<\_ACEOF | |
27089 | #define wxUSE_BUILTIN_IODBC 1 | |
27090 | _ACEOF | |
27091 | ||
27092 | fi | |
bb41dcbe VS |
27093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
27094 | ||
27095 | WXODBCFLAG="-D_IODBC_" | |
27096 | fi | |
6232543b | 27097 | fi |
21d1c967 GD |
27098 | |
27099 | if test "$wxUSE_REGEX" = "builtin" ; then | |
27100 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 27101 | fi |
21d1c967 GD |
27102 | if test "$wxUSE_ZLIB" = "builtin" ; then |
27103 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
27104 | fi |
27105 | ||
74500461 VS |
27106 | if test "$wxUSE_DISPLAY" = "yes"; then |
27107 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
27108 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
27109 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27110 | ||
27111 | ac_find_libraries= | |
27112 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27113 | do | |
27114 | for ac_extension in a so sl dylib; do | |
27115 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27116 | ac_find_libraries=$ac_dir | |
27117 | break 2 | |
27118 | fi | |
27119 | done | |
27120 | done | |
27121 | ||
27122 | if test "$ac_find_libraries" != "" ; then | |
27123 | ||
27124 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27125 | result=$? | |
27126 | if test $result = 0; then | |
27127 | ac_path_to_link="" | |
27128 | else | |
27129 | ac_path_to_link=" -L$ac_find_libraries" | |
27130 | fi | |
27131 | ||
27132 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27133 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27134 | fi | |
27135 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27136 | echo "$as_me:$LINENO: result: yes" >&5 | |
27137 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
27138 | |
27139 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27140 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27141 | ||
27142 | ac_find_libraries= | |
27143 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27144 | do | |
27145 | for ac_extension in a so sl dylib; do | |
27146 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27147 | ac_find_libraries=$ac_dir | |
27148 | break 2 | |
27149 | fi | |
27150 | done | |
27151 | done | |
27152 | ||
27153 | if test "$ac_find_libraries" != "" ; then | |
27154 | echo "$as_me:$LINENO: result: yes" >&5 | |
27155 | echo "${ECHO_T}yes" >&6 | |
27156 | ||
27157 | for ac_header in X11/extensions/xf86vmode.h | |
27158 | do | |
27159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27164 | else | |
27165 | cat >conftest.$ac_ext <<_ACEOF | |
27166 | /* confdefs.h. */ | |
27167 | _ACEOF | |
27168 | cat confdefs.h >>conftest.$ac_ext | |
27169 | cat >>conftest.$ac_ext <<_ACEOF | |
27170 | /* end confdefs.h. */ | |
27171 | ||
27172 | #if HAVE_X11_XLIB_H | |
27173 | #include <X11/Xlib.h> | |
27174 | #endif | |
27175 | ||
27176 | ||
27177 | #include <$ac_header> | |
27178 | _ACEOF | |
27179 | rm -f conftest.$ac_objext | |
27180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27181 | (eval $ac_compile) 2>conftest.er1 |
505c8ccd | 27182 | ac_status=$? |
32ddf007 VS |
27183 | grep -v '^ *+' conftest.er1 >conftest.err |
27184 | rm -f conftest.er1 | |
27185 | cat conftest.err >&5 | |
505c8ccd VS |
27186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27187 | (exit $ac_status); } && | |
e1293dcf | 27188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27190 | (eval $ac_try) 2>&5 | |
27191 | ac_status=$? | |
27192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27193 | (exit $ac_status); }; } && | |
27194 | { ac_try='test -s conftest.$ac_objext' | |
505c8ccd VS |
27195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27196 | (eval $ac_try) 2>&5 | |
27197 | ac_status=$? | |
27198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27199 | (exit $ac_status); }; }; then | |
27200 | eval "$as_ac_Header=yes" | |
27201 | else | |
27202 | echo "$as_me: failed program was:" >&5 | |
27203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27204 | ||
27205 | eval "$as_ac_Header=no" | |
27206 | fi | |
32ddf007 | 27207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
27208 | fi |
27209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27212 | cat >>confdefs.h <<_ACEOF | |
27213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27214 | _ACEOF | |
27215 | ||
27216 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27217 | ||
27218 | fi | |
27219 | ||
27220 | done | |
27221 | ||
27222 | else | |
27223 | echo "$as_me:$LINENO: result: no" >&5 | |
27224 | echo "${ECHO_T}no" >&6 | |
27225 | fi | |
27226 | ||
74500461 VS |
27227 | else |
27228 | echo "$as_me:$LINENO: result: no" >&5 | |
27229 | echo "${ECHO_T}no" >&6 | |
27230 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
27231 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
27232 | wxUSE_DISPLAY="no" | |
27233 | fi | |
27234 | fi | |
27235 | fi | |
27236 | ||
8284b0c5 | 27237 | |
4d264332 | 27238 | USE_OPENGL=0 |
21d1c967 | 27239 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 27240 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
27241 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
27242 | elif test "$wxUSE_MSW" = 1; then | |
27243 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27244 | else | |
01aa5863 VS |
27245 | |
27246 | ||
27247 | ac_find_includes= | |
27248 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27249 | do | |
27250 | if test -f "$ac_dir/GL/gl.h"; then | |
27251 | ac_find_includes=$ac_dir | |
27252 | break | |
27253 | fi | |
27254 | done | |
27255 | ||
27256 | if test "$ac_find_includes" != "" ; then | |
27257 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27258 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
27259 | |
27260 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27261 | ac_path_to_include="" | |
27262 | else | |
27263 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27264 | result=$? | |
27265 | if test $result = 0; then | |
27266 | ac_path_to_include="" | |
27267 | else | |
27268 | ac_path_to_include=" -I$ac_find_includes" | |
27269 | fi | |
27270 | fi | |
27271 | ||
27272 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
27273 | fi |
27274 | ||
e6cc62c6 VS |
27275 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
27276 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27277 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27278 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27280 | fi | |
27281 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27282 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27283 | else | |
27284 | # Is the header compilable? | |
27285 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27286 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27287 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27288 | /* confdefs.h. */ |
27289 | _ACEOF | |
27290 | cat confdefs.h >>conftest.$ac_ext | |
27291 | cat >>conftest.$ac_ext <<_ACEOF | |
27292 | /* end confdefs.h. */ | |
27293 | $ac_includes_default | |
21d1c967 | 27294 | #include <GL/gl.h> |
e6cc62c6 VS |
27295 | _ACEOF |
27296 | rm -f conftest.$ac_objext | |
27297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27298 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27299 | ac_status=$? |
32ddf007 VS |
27300 | grep -v '^ *+' conftest.er1 >conftest.err |
27301 | rm -f conftest.er1 | |
27302 | cat conftest.err >&5 | |
e6cc62c6 VS |
27303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27304 | (exit $ac_status); } && | |
e1293dcf | 27305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27307 | (eval $ac_try) 2>&5 | |
27308 | ac_status=$? | |
27309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27310 | (exit $ac_status); }; } && | |
27311 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27313 | (eval $ac_try) 2>&5 | |
27314 | ac_status=$? | |
27315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27316 | (exit $ac_status); }; }; then | |
27317 | ac_header_compiler=yes | |
27318 | else | |
27319 | echo "$as_me: failed program was:" >&5 | |
27320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27321 | ||
27322 | ac_header_compiler=no | |
27323 | fi | |
32ddf007 | 27324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27326 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27327 | ||
27328 | # Is the header present? | |
27329 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27330 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27331 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27332 | /* confdefs.h. */ |
27333 | _ACEOF | |
27334 | cat confdefs.h >>conftest.$ac_ext | |
27335 | cat >>conftest.$ac_ext <<_ACEOF | |
27336 | /* end confdefs.h. */ | |
27337 | #include <GL/gl.h> | |
27338 | _ACEOF | |
27339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27341 | ac_status=$? | |
27342 | grep -v '^ *+' conftest.er1 >conftest.err | |
27343 | rm -f conftest.er1 | |
27344 | cat conftest.err >&5 | |
27345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27346 | (exit $ac_status); } >/dev/null; then | |
27347 | if test -s conftest.err; then | |
27348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 27349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
27350 | else |
27351 | ac_cpp_err= | |
27352 | fi | |
27353 | else | |
27354 | ac_cpp_err=yes | |
27355 | fi | |
27356 | if test -z "$ac_cpp_err"; then | |
27357 | ac_header_preproc=yes | |
27358 | else | |
27359 | echo "$as_me: failed program was:" >&5 | |
27360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27361 | ||
27362 | ac_header_preproc=no | |
27363 | fi | |
27364 | rm -f conftest.err conftest.$ac_ext | |
27365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27366 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27367 | ||
27368 | # So? What about this header? | |
32ddf007 VS |
27369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27370 | yes:no: ) | |
e6cc62c6 VS |
27371 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27372 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
27373 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27374 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27375 | ac_header_preproc=yes | |
e6cc62c6 | 27376 | ;; |
32ddf007 | 27377 | no:yes:* ) |
e6cc62c6 VS |
27378 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27379 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
27380 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27381 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27382 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27383 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27384 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27385 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
27386 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27387 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
27388 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27389 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
27390 | ( |
27391 | cat <<\_ASBOX | |
32ddf007 VS |
27392 | ## ----------------------------------------- ## |
27393 | ## Report this to wx-dev@lists.wxwindows.org ## | |
27394 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
27395 | _ASBOX |
27396 | ) | | |
27397 | sed "s/^/$as_me: WARNING: /" >&2 | |
27398 | ;; | |
27399 | esac | |
27400 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27401 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27402 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27404 | else | |
27405 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 27406 | fi |
e6cc62c6 VS |
27407 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
27408 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27409 | ||
698dcdb6 | 27410 | fi |
e6cc62c6 VS |
27411 | if test $ac_cv_header_GL_gl_h = yes; then |
27412 | ||
89e3b3e4 VZ |
27413 | found_gl=0 |
27414 | ||
e6cc62c6 VS |
27415 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
27416 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27417 | ||
21d1c967 | 27418 | ac_find_libraries= |
2b5f62a0 | 27419 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27420 | do |
27421 | for ac_extension in a so sl dylib; do | |
27422 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27423 | ac_find_libraries=$ac_dir | |
27424 | break 2 | |
27425 | fi | |
27426 | done | |
27427 | done | |
27428 | ||
27429 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27430 | |
21d1c967 GD |
27431 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27432 | result=$? | |
27433 | if test $result = 0; then | |
27434 | ac_path_to_link="" | |
27435 | else | |
27436 | ac_path_to_link=" -L$ac_find_libraries" | |
27437 | fi | |
27438 | ||
89e3b3e4 VZ |
27439 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
27440 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 27441 | fi |
89e3b3e4 | 27442 | |
e6cc62c6 | 27443 | |
89e3b3e4 VZ |
27444 | ac_find_libraries= |
27445 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27446 | do | |
27447 | for ac_extension in a so sl dylib; do | |
27448 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27449 | ac_find_libraries=$ac_dir | |
27450 | break 2 | |
27451 | fi | |
27452 | done | |
27453 | done | |
27454 | ||
27455 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27456 | |
89e3b3e4 VZ |
27457 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27458 | result=$? | |
27459 | if test $result = 0; then | |
27460 | ac_path_to_link="" | |
27461 | else | |
27462 | ac_path_to_link=" -L$ac_find_libraries" | |
27463 | fi | |
27464 | ||
27465 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27466 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27467 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27468 | fi | |
27469 | ||
27470 | found_gl=1 | |
27471 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
27472 | echo "$as_me:$LINENO: result: yes" >&5 |
27473 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
27474 | fi |
27475 | fi | |
27476 | ||
bb41dcbe | 27477 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
27478 | echo "$as_me:$LINENO: result: no" >&5 |
27479 | echo "${ECHO_T}no" >&6 | |
27480 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27481 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27482 | ||
21d1c967 | 27483 | ac_find_libraries= |
2b5f62a0 | 27484 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27485 | do |
27486 | for ac_extension in a so sl dylib; do | |
27487 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27488 | ac_find_libraries=$ac_dir | |
27489 | break 2 | |
27490 | fi | |
27491 | done | |
27492 | done | |
27493 | ||
27494 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27495 | |
21d1c967 GD |
27496 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27497 | result=$? | |
27498 | if test $result = 0; then | |
27499 | ac_path_to_link="" | |
27500 | else | |
27501 | ac_path_to_link=" -L$ac_find_libraries" | |
27502 | fi | |
27503 | ||
27504 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27505 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
27506 | echo "$as_me:$LINENO: result: yes" >&5 |
27507 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 27508 | else |
e6cc62c6 VS |
27509 | echo "$as_me:$LINENO: result: no" >&5 |
27510 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
27511 | fi |
27512 | fi | |
e6cc62c6 | 27513 | |
5c6fa7d2 | 27514 | fi |
52127426 | 27515 | |
8284b0c5 | 27516 | |
e6cc62c6 | 27517 | |
21d1c967 | 27518 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
27519 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
27520 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27521 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
27522 | fi |
27523 | fi | |
90dd450c | 27524 | |
21d1c967 | 27525 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 27526 | USE_OPENGL=1 |
e6cc62c6 | 27527 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27528 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 27529 | _ACEOF |
21d1c967 | 27530 | |
e6cc62c6 | 27531 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27532 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 27533 | _ACEOF |
21d1c967 | 27534 | |
520755bb | 27535 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 27536 | fi |
10f2d63a | 27537 | fi |
21d1c967 GD |
27538 | |
27539 | if test -z "$TOOLKIT_VPATH" ; then | |
27540 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 27541 | fi |
21d1c967 GD |
27542 | |
27543 | if test -n "$TOOLKIT" ; then | |
27544 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27545 | fi | |
27546 | ||
fe0895cf | 27547 | UNICODE=0 |
21d1c967 GD |
27548 | lib_unicode_suffix= |
27549 | if test "$wxUSE_UNICODE" = "yes"; then | |
27550 | lib_unicode_suffix=u | |
fe0895cf | 27551 | UNICODE=1 |
90dd450c | 27552 | fi |
698dcdb6 | 27553 | |
21d1c967 | 27554 | lib_debug_suffix= |
6c67131a | 27555 | DEBUG_FLAG=0 |
21d1c967 GD |
27556 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
27557 | lib_debug_suffix=d | |
6c67131a VS |
27558 | DEBUG_FLAG=1 |
27559 | fi | |
27560 | ||
27561 | DEBUG_INFO=0 | |
27562 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27563 | DEBUG_INFO=1 | |
21d1c967 | 27564 | fi |
698dcdb6 | 27565 | |
1cbb95a2 | 27566 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
27567 | |
27568 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27569 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
27570 | |
27571 | if test "$cross_compiling" = "yes"; then | |
27572 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27573 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 27574 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
27575 | fi |
27576 | ||
27577 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27578 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
27579 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
27580 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
27581 | |
27582 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27583 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27584 | ||
27585 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27586 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27587 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27588 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27589 | ||
27590 | case "${host}" in | |
27591 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
27592 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
27593 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
27594 | ;; |
27595 | ||
27596 | *-*-darwin* ) | |
e6cc62c6 | 27597 | |
05159a27 GD |
27598 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
27599 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27600 | ||
27601 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27602 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27603 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27604 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27605 | ||
09d3439c VZ |
27606 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
27607 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 27608 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
27609 | fi |
27610 | ;; | |
27611 | esac | |
27612 | ||
27613 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27614 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27615 | ||
27616 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27617 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27618 | ||
27619 | if test "$wxUSE_OPENGL" = "yes"; then | |
27620 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27621 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27622 | fi | |
27623 | ||
8284b0c5 MB |
27624 | |
27625 | ||
21d1c967 GD |
27626 | if test "$wxUSE_SHARED" = "yes"; then |
27627 | case "${host}" in | |
27628 | *-pc-os2_emx | *-pc-os2-emx | \ | |
27629 | *-pc-msdosdjgpp ) | |
27630 | wxUSE_SHARED=no | |
e6cc62c6 VS |
27631 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
27632 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
27633 | ;; |
27634 | esac | |
27635 | fi | |
27636 | ||
fe0895cf | 27637 | SHARED=0 |
2b5f62a0 | 27638 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 27639 | SHARED=1 |
2b5f62a0 | 27640 | |
e6cc62c6 | 27641 | |
2b5f62a0 VZ |
27642 | found_versioning=no |
27643 | ||
e6cc62c6 | 27644 | |
2b5f62a0 | 27645 | if test $found_versioning = no ; then |
e6cc62c6 VS |
27646 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
27647 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27648 | if test "${wx_cv_version_script+set}" = set; then | |
27649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 27650 | else |
e6cc62c6 | 27651 | |
2b5f62a0 VZ |
27652 | echo "VER_1 { *; };" >conftest.sym |
27653 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 27654 | |
2b5f62a0 VZ |
27655 | if { ac_try=' |
27656 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
27657 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
27658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27659 | (eval $ac_try) 2>&5 | |
27660 | ac_status=$? | |
27661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27662 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
27663 | if test -s conftest.stderr ; then |
27664 | wx_cv_version_script=no | |
27665 | else | |
27666 | wx_cv_version_script=yes | |
27667 | fi | |
27668 | else | |
27669 | wx_cv_version_script=no | |
27670 | fi | |
27671 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 27672 | |
e6cc62c6 VS |
27673 | fi |
27674 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27675 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 27676 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 27677 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
27678 | fi |
27679 | fi | |
21d1c967 | 27680 | |
21d1c967 | 27681 | |
21d1c967 | 27682 | case "${host}" in |
fe0895cf | 27683 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 27684 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 27685 | ;; |
21d1c967 GD |
27686 | |
27687 | *-*-solaris2* ) | |
27688 | if test "$GCC" = yes ; then | |
27689 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
27690 | |
27691 | saveLdflags="$LDFLAGS" | |
27692 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
27693 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
27694 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27695 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27696 | /* confdefs.h. */ |
27697 | _ACEOF | |
27698 | cat confdefs.h >>conftest.$ac_ext | |
27699 | cat >>conftest.$ac_ext <<_ACEOF | |
27700 | /* end confdefs.h. */ | |
27701 | ||
27702 | int | |
27703 | main () | |
27704 | { | |
fe0895cf | 27705 | |
e6cc62c6 VS |
27706 | ; |
27707 | return 0; | |
27708 | } | |
27709 | _ACEOF | |
27710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27712 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27713 | ac_status=$? |
32ddf007 VS |
27714 | grep -v '^ *+' conftest.er1 >conftest.err |
27715 | rm -f conftest.er1 | |
27716 | cat conftest.err >&5 | |
e6cc62c6 VS |
27717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27718 | (exit $ac_status); } && | |
e1293dcf | 27719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27721 | (eval $ac_try) 2>&5 | |
27722 | ac_status=$? | |
27723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27724 | (exit $ac_status); }; } && | |
27725 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27727 | (eval $ac_try) 2>&5 | |
27728 | ac_status=$? | |
27729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27730 | (exit $ac_status); }; }; then | |
27731 | ||
27732 | echo "$as_me:$LINENO: result: yes" >&5 | |
27733 | echo "${ECHO_T}yes" >&6 | |
27734 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27735 | ||
27736 | else | |
27737 | echo "$as_me: failed program was:" >&5 | |
27738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27739 | ||
27740 | ||
27741 | echo "$as_me:$LINENO: result: no" >&5 | |
27742 | echo "${ECHO_T}no" >&6 | |
27743 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27744 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 27745 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 27746 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27747 | /* confdefs.h. */ |
27748 | _ACEOF | |
27749 | cat confdefs.h >>conftest.$ac_ext | |
27750 | cat >>conftest.$ac_ext <<_ACEOF | |
27751 | /* end confdefs.h. */ | |
27752 | ||
27753 | int | |
27754 | main () | |
27755 | { | |
27756 | ||
27757 | ; | |
27758 | return 0; | |
27759 | } | |
27760 | _ACEOF | |
27761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27763 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27764 | ac_status=$? |
32ddf007 VS |
27765 | grep -v '^ *+' conftest.er1 >conftest.err |
27766 | rm -f conftest.er1 | |
27767 | cat conftest.err >&5 | |
e6cc62c6 VS |
27768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27769 | (exit $ac_status); } && | |
e1293dcf | 27770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27772 | (eval $ac_try) 2>&5 | |
27773 | ac_status=$? | |
27774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27775 | (exit $ac_status); }; } && | |
27776 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27778 | (eval $ac_try) 2>&5 | |
27779 | ac_status=$? | |
27780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27781 | (exit $ac_status); }; }; then | |
27782 | ||
27783 | echo "$as_me:$LINENO: result: yes" >&5 | |
27784 | echo "${ECHO_T}yes" >&6 | |
27785 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27786 | else | |
27787 | echo "$as_me: failed program was:" >&5 | |
27788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 27789 | |
fe0895cf | 27790 | |
e6cc62c6 VS |
27791 | echo "$as_me:$LINENO: result: no" >&5 |
27792 | echo "${ECHO_T}no" >&6 | |
27793 | ||
fe0895cf | 27794 | fi |
32ddf007 VS |
27795 | rm -f conftest.err conftest.$ac_objext \ |
27796 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
27797 | |
27798 | fi | |
32ddf007 VS |
27799 | rm -f conftest.err conftest.$ac_objext \ |
27800 | conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 27801 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
27802 | else |
27803 | SHARED_LD="${CXX} -G -o" | |
27804 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 27805 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
27806 | fi |
27807 | ;; | |
0f1bc9c2 VS |
27808 | |
27809 | powerpc-*-darwin* ) | |
ef0add05 VS |
27810 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
27811 | cat <<EOF >change-install-names | |
27812 | #!/bin/sh | |
27813 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27814 | inst_cmd="install_name_tool " | |
27815 | for i in \${libnames} ; do | |
27816 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27817 | done | |
27818 | \${inst_cmd} \${3} | |
27819 | EOF | |
27820 | chmod +x change-install-names | |
0f1bc9c2 VS |
27821 | ;; |
27822 | ||
21d1c967 GD |
27823 | esac |
27824 | ||
27825 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27826 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27827 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27828 | fi | |
27829 | ||
27830 | WX_TARGET_LIBRARY_TYPE="so" | |
27831 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 27832 | fi |
10f2d63a | 27833 | |
21d1c967 GD |
27834 | if test "$wxUSE_SHARED" = "no"; then |
27835 | ||
27836 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27837 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27838 | fi | |
27839 | ||
ac0c4cc3 | 27840 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
27841 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
27842 | fi | |
27843 | ||
27844 | if test "$wxUSE_OPENGL" = "yes"; then | |
27845 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27846 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27847 | else | |
27848 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27849 | fi | |
27850 | ||
27851 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27852 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27853 | ||
27854 | WX_TARGET_LIBRARY_TYPE="a" | |
27855 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
27856 | |
27857 | STATIC_FLAG="yes" | |
27858 | else | |
27859 | STATIC_FLAG="no" | |
90dd450c | 27860 | fi |
1e487827 | 27861 | |
09d3439c | 27862 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 27863 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
27864 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
27865 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 27866 | |
21d1c967 GD |
27867 | # Extract the first word of "Rez", so it can be a program name with args. |
27868 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
27869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27871 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 27873 | else |
21d1c967 GD |
27874 | if test -n "$RESCOMP"; then |
27875 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 27876 | else |
e6cc62c6 VS |
27877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27878 | for as_dir in $PATH | |
27879 | do | |
27880 | IFS=$as_save_IFS | |
27881 | test -z "$as_dir" && as_dir=. | |
27882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27884 | ac_cv_prog_RESCOMP="Rez" | |
27885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27886 | break 2 | |
27887 | fi | |
27888 | done | |
27889 | done | |
27890 | ||
21d1c967 | 27891 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 27892 | fi |
b93d0d08 | 27893 | fi |
e6cc62c6 | 27894 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 27895 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
27896 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
27897 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 27898 | else |
e6cc62c6 VS |
27899 | echo "$as_me:$LINENO: result: no" >&5 |
27900 | echo "${ECHO_T}no" >&6 | |
90dd450c | 27901 | fi |
b93d0d08 | 27902 | |
21d1c967 GD |
27903 | # Extract the first word of "DeRez", so it can be a program name with args. |
27904 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
27905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27907 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 27909 | else |
21d1c967 GD |
27910 | if test -n "$DEREZ"; then |
27911 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 27912 | else |
e6cc62c6 VS |
27913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27914 | for as_dir in $PATH | |
27915 | do | |
27916 | IFS=$as_save_IFS | |
27917 | test -z "$as_dir" && as_dir=. | |
27918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27920 | ac_cv_prog_DEREZ="DeRez" | |
27921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27922 | break 2 | |
27923 | fi | |
27924 | done | |
27925 | done | |
27926 | ||
21d1c967 | 27927 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 27928 | fi |
90dd450c | 27929 | fi |
e6cc62c6 | 27930 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 27931 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
27932 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
27933 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 27934 | else |
e6cc62c6 VS |
27935 | echo "$as_me:$LINENO: result: no" >&5 |
27936 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 27937 | fi |
698dcdb6 | 27938 | |
36825681 GD |
27939 | # Extract the first word of "SetFile", so it can be a program name with args. |
27940 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
27941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27943 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
27945 | else |
27946 | if test -n "$SETFILE"; then | |
27947 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27948 | else | |
e6cc62c6 VS |
27949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27950 | for as_dir in $PATH | |
27951 | do | |
27952 | IFS=$as_save_IFS | |
27953 | test -z "$as_dir" && as_dir=. | |
27954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27956 | ac_cv_prog_SETFILE="SetFile" | |
27957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27958 | break 2 | |
27959 | fi | |
27960 | done | |
27961 | done | |
27962 | ||
36825681 GD |
27963 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
27964 | fi | |
27965 | fi | |
e6cc62c6 | 27966 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 27967 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
27968 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
27969 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 27970 | else |
e6cc62c6 VS |
27971 | echo "$as_me:$LINENO: result: no" >&5 |
27972 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
27973 | fi |
27974 | ||
e6cc62c6 | 27975 | |
09d3439c | 27976 | MACSETFILE="\$(SETFILE)" |
64440d77 | 27977 | |
09d3439c VZ |
27978 | if test "$wxUSE_MAC" = 1; then |
27979 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 27980 | |
09d3439c VZ |
27981 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
27982 | else | |
27983 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27984 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27985 | fi | |
64440d77 | 27986 | else |
09d3439c VZ |
27987 | MACSETFILE="@#" |
27988 | MACRESWXCONFIG="#" | |
64440d77 | 27989 | |
09d3439c | 27990 | if test "$wxUSE_PM" = 1; then |
36825681 | 27991 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
27992 | else |
27993 | MACRESCOMP="@#" | |
90dd450c | 27994 | fi |
4f14bcd8 | 27995 | fi |
10f2d63a | 27996 | |
8284b0c5 | 27997 | |
f93ca9fd | 27998 | |
e6cc62c6 VS |
27999 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
28000 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28001 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 28003 | else |
e6cc62c6 | 28004 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28005 | /* confdefs.h. */ |
28006 | _ACEOF | |
28007 | cat confdefs.h >>conftest.$ac_ext | |
28008 | cat >>conftest.$ac_ext <<_ACEOF | |
28009 | /* end confdefs.h. */ | |
28010 | $ac_includes_default | |
28011 | int | |
28012 | main () | |
28013 | { | |
28014 | if ((mode_t *) 0) | |
28015 | return 0; | |
28016 | if (sizeof (mode_t)) | |
28017 | return 0; | |
28018 | ; | |
28019 | return 0; | |
28020 | } | |
28021 | _ACEOF | |
28022 | rm -f conftest.$ac_objext | |
28023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28024 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28025 | ac_status=$? |
32ddf007 VS |
28026 | grep -v '^ *+' conftest.er1 >conftest.err |
28027 | rm -f conftest.er1 | |
28028 | cat conftest.err >&5 | |
e6cc62c6 VS |
28029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28030 | (exit $ac_status); } && | |
e1293dcf | 28031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28033 | (eval $ac_try) 2>&5 | |
28034 | ac_status=$? | |
28035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28036 | (exit $ac_status); }; } && | |
28037 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28039 | (eval $ac_try) 2>&5 | |
28040 | ac_status=$? | |
28041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28042 | (exit $ac_status); }; }; then | |
28043 | ac_cv_type_mode_t=yes | |
a0b9e27f | 28044 | else |
e6cc62c6 VS |
28045 | echo "$as_me: failed program was:" >&5 |
28046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28047 | |
e6cc62c6 | 28048 | ac_cv_type_mode_t=no |
a0b9e27f | 28049 | fi |
32ddf007 | 28050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
52127426 | 28051 | fi |
e6cc62c6 VS |
28052 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
28053 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28054 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
28055 | : |
28056 | else | |
a0b9e27f | 28057 | |
e6cc62c6 VS |
28058 | cat >>confdefs.h <<_ACEOF |
28059 | #define mode_t int | |
28060 | _ACEOF | |
8284b0c5 MB |
28061 | |
28062 | fi | |
28063 | ||
e6cc62c6 VS |
28064 | echo "$as_me:$LINENO: checking for off_t" >&5 |
28065 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28066 | if test "${ac_cv_type_off_t+set}" = set; then | |
28067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28068 | else |
e6cc62c6 | 28069 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28070 | /* confdefs.h. */ |
28071 | _ACEOF | |
28072 | cat confdefs.h >>conftest.$ac_ext | |
28073 | cat >>conftest.$ac_ext <<_ACEOF | |
28074 | /* end confdefs.h. */ | |
28075 | $ac_includes_default | |
28076 | int | |
28077 | main () | |
28078 | { | |
28079 | if ((off_t *) 0) | |
28080 | return 0; | |
28081 | if (sizeof (off_t)) | |
28082 | return 0; | |
28083 | ; | |
28084 | return 0; | |
28085 | } | |
28086 | _ACEOF | |
28087 | rm -f conftest.$ac_objext | |
28088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28089 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28090 | ac_status=$? |
32ddf007 VS |
28091 | grep -v '^ *+' conftest.er1 >conftest.err |
28092 | rm -f conftest.er1 | |
28093 | cat conftest.err >&5 | |
e6cc62c6 VS |
28094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28095 | (exit $ac_status); } && | |
e1293dcf | 28096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28098 | (eval $ac_try) 2>&5 | |
28099 | ac_status=$? | |
28100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28101 | (exit $ac_status); }; } && | |
28102 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28104 | (eval $ac_try) 2>&5 | |
28105 | ac_status=$? | |
28106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28107 | (exit $ac_status); }; }; then | |
28108 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 28109 | else |
e6cc62c6 VS |
28110 | echo "$as_me: failed program was:" >&5 |
28111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28112 | |
e6cc62c6 | 28113 | ac_cv_type_off_t=no |
8284b0c5 | 28114 | fi |
32ddf007 | 28115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 28116 | fi |
e6cc62c6 VS |
28117 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
28118 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28119 | if test $ac_cv_type_off_t = yes; then | |
28120 | : | |
247f5006 VZ |
28121 | else |
28122 | ||
e6cc62c6 | 28123 | cat >>confdefs.h <<_ACEOF |
90dd450c | 28124 | #define off_t long |
e6cc62c6 | 28125 | _ACEOF |
10f2d63a | 28126 | |
90dd450c | 28127 | fi |
10f2d63a | 28128 | |
e6cc62c6 VS |
28129 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
28130 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28131 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 28133 | else |
e6cc62c6 | 28134 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28135 | /* confdefs.h. */ |
28136 | _ACEOF | |
28137 | cat confdefs.h >>conftest.$ac_ext | |
28138 | cat >>conftest.$ac_ext <<_ACEOF | |
28139 | /* end confdefs.h. */ | |
28140 | $ac_includes_default | |
28141 | int | |
28142 | main () | |
28143 | { | |
28144 | if ((pid_t *) 0) | |
28145 | return 0; | |
28146 | if (sizeof (pid_t)) | |
28147 | return 0; | |
28148 | ; | |
28149 | return 0; | |
28150 | } | |
28151 | _ACEOF | |
28152 | rm -f conftest.$ac_objext | |
28153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28154 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28155 | ac_status=$? |
32ddf007 VS |
28156 | grep -v '^ *+' conftest.er1 >conftest.err |
28157 | rm -f conftest.er1 | |
28158 | cat conftest.err >&5 | |
e6cc62c6 VS |
28159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28160 | (exit $ac_status); } && | |
e1293dcf | 28161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28163 | (eval $ac_try) 2>&5 | |
28164 | ac_status=$? | |
28165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28166 | (exit $ac_status); }; } && | |
28167 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28169 | (eval $ac_try) 2>&5 | |
28170 | ac_status=$? | |
28171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28172 | (exit $ac_status); }; }; then | |
90dd450c | 28173 | ac_cv_type_pid_t=yes |
698dcdb6 | 28174 | else |
e6cc62c6 VS |
28175 | echo "$as_me: failed program was:" >&5 |
28176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28177 | |
e6cc62c6 VS |
28178 | ac_cv_type_pid_t=no |
28179 | fi | |
32ddf007 | 28180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28181 | fi |
e6cc62c6 VS |
28182 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
28183 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28184 | if test $ac_cv_type_pid_t = yes; then | |
28185 | : | |
28186 | else | |
28187 | ||
28188 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28189 | #define pid_t int |
e6cc62c6 | 28190 | _ACEOF |
10f2d63a | 28191 | |
7b4a847f RR |
28192 | fi |
28193 | ||
e6cc62c6 VS |
28194 | echo "$as_me:$LINENO: checking for size_t" >&5 |
28195 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28196 | if test "${ac_cv_type_size_t+set}" = set; then | |
28197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 28198 | else |
e6cc62c6 | 28199 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28200 | /* confdefs.h. */ |
28201 | _ACEOF | |
28202 | cat confdefs.h >>conftest.$ac_ext | |
28203 | cat >>conftest.$ac_ext <<_ACEOF | |
28204 | /* end confdefs.h. */ | |
28205 | $ac_includes_default | |
28206 | int | |
28207 | main () | |
28208 | { | |
28209 | if ((size_t *) 0) | |
28210 | return 0; | |
28211 | if (sizeof (size_t)) | |
28212 | return 0; | |
28213 | ; | |
28214 | return 0; | |
28215 | } | |
28216 | _ACEOF | |
28217 | rm -f conftest.$ac_objext | |
28218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28219 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28220 | ac_status=$? |
32ddf007 VS |
28221 | grep -v '^ *+' conftest.er1 >conftest.err |
28222 | rm -f conftest.er1 | |
28223 | cat conftest.err >&5 | |
e6cc62c6 VS |
28224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28225 | (exit $ac_status); } && | |
e1293dcf | 28226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28228 | (eval $ac_try) 2>&5 | |
28229 | ac_status=$? | |
28230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28231 | (exit $ac_status); }; } && | |
28232 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28234 | (eval $ac_try) 2>&5 | |
28235 | ac_status=$? | |
28236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28237 | (exit $ac_status); }; }; then | |
90dd450c | 28238 | ac_cv_type_size_t=yes |
18dbb1f6 | 28239 | else |
e6cc62c6 VS |
28240 | echo "$as_me: failed program was:" >&5 |
28241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28242 | |
e6cc62c6 | 28243 | ac_cv_type_size_t=no |
a0b9e27f | 28244 | fi |
32ddf007 | 28245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
28246 | fi |
28247 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28248 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28249 | if test $ac_cv_type_size_t = yes; then | |
28250 | : | |
28251 | else | |
28252 | ||
28253 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28254 | #define size_t unsigned |
e6cc62c6 | 28255 | _ACEOF |
90dd450c VZ |
28256 | |
28257 | fi | |
28258 | ||
e6cc62c6 VS |
28259 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
28260 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28261 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 28263 | else |
e6cc62c6 | 28264 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28265 | /* confdefs.h. */ |
28266 | _ACEOF | |
28267 | cat confdefs.h >>conftest.$ac_ext | |
28268 | cat >>conftest.$ac_ext <<_ACEOF | |
28269 | /* end confdefs.h. */ | |
90dd450c | 28270 | #include <sys/types.h> |
e6cc62c6 VS |
28271 | |
28272 | _ACEOF | |
90dd450c | 28273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 28274 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 28275 | ac_cv_type_uid_t=yes |
b3e8d00a | 28276 | else |
90dd450c | 28277 | ac_cv_type_uid_t=no |
b3e8d00a | 28278 | fi |
90dd450c | 28279 | rm -f conftest* |
b3e8d00a | 28280 | |
4f14bcd8 | 28281 | fi |
e6cc62c6 VS |
28282 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
28283 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 28284 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
28285 | |
28286 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28287 | #define uid_t int |
e6cc62c6 | 28288 | _ACEOF |
247f5006 | 28289 | |
e6cc62c6 VS |
28290 | |
28291 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28292 | #define gid_t int |
e6cc62c6 | 28293 | _ACEOF |
4f14bcd8 | 28294 | |
b3e8d00a | 28295 | fi |
b3e8d00a | 28296 | |
8284b0c5 MB |
28297 | |
28298 | ||
e6cc62c6 VS |
28299 | |
28300 | ac_ext=cc | |
4f14bcd8 | 28301 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28305 | ||
28306 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28307 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28308 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28310 | else | |
28311 | ||
28312 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28313 | /* confdefs.h. */ |
28314 | _ACEOF | |
28315 | cat confdefs.h >>conftest.$ac_ext | |
28316 | cat >>conftest.$ac_ext <<_ACEOF | |
28317 | /* end confdefs.h. */ | |
90dd450c | 28318 | #include <stddef.h> |
e6cc62c6 VS |
28319 | int |
28320 | main () | |
28321 | { | |
90dd450c VZ |
28322 | |
28323 | return 0; } | |
28324 | ||
28325 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28326 | ||
28327 | int bar() { | |
e6cc62c6 VS |
28328 | |
28329 | ; | |
28330 | return 0; | |
28331 | } | |
28332 | _ACEOF | |
28333 | rm -f conftest.$ac_objext | |
28334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28335 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28336 | ac_status=$? |
32ddf007 VS |
28337 | grep -v '^ *+' conftest.er1 >conftest.err |
28338 | rm -f conftest.er1 | |
28339 | cat conftest.err >&5 | |
e6cc62c6 VS |
28340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28341 | (exit $ac_status); } && | |
e1293dcf | 28342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28344 | (eval $ac_try) 2>&5 | |
28345 | ac_status=$? | |
28346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28347 | (exit $ac_status); }; } && | |
28348 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28350 | (eval $ac_try) 2>&5 | |
28351 | ac_status=$? | |
28352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28353 | (exit $ac_status); }; }; then | |
90dd450c | 28354 | wx_cv_size_t_is_uint=no |
698dcdb6 | 28355 | else |
e6cc62c6 VS |
28356 | echo "$as_me: failed program was:" >&5 |
28357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28358 | ||
28359 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 28360 | |
247f5006 | 28361 | fi |
32ddf007 | 28362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 28363 | |
a0b9e27f | 28364 | |
e6cc62c6 VS |
28365 | fi |
28366 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28367 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 28368 | |
90dd450c | 28369 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 28370 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28371 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 28372 | _ACEOF |
698dcdb6 | 28373 | |
90dd450c | 28374 | else |
e6cc62c6 VS |
28375 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
28376 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28377 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28379 | else |
e6cc62c6 | 28380 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28381 | /* confdefs.h. */ |
28382 | _ACEOF | |
28383 | cat confdefs.h >>conftest.$ac_ext | |
28384 | cat >>conftest.$ac_ext <<_ACEOF | |
28385 | /* end confdefs.h. */ | |
90dd450c | 28386 | #include <stddef.h> |
e6cc62c6 VS |
28387 | int |
28388 | main () | |
28389 | { | |
90dd450c VZ |
28390 | |
28391 | return 0; } | |
28392 | ||
28393 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28394 | ||
28395 | int bar() { | |
e6cc62c6 VS |
28396 | |
28397 | ; | |
28398 | return 0; | |
28399 | } | |
28400 | _ACEOF | |
28401 | rm -f conftest.$ac_objext | |
28402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28403 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28404 | ac_status=$? |
32ddf007 VS |
28405 | grep -v '^ *+' conftest.er1 >conftest.err |
28406 | rm -f conftest.er1 | |
28407 | cat conftest.err >&5 | |
e6cc62c6 VS |
28408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28409 | (exit $ac_status); } && | |
e1293dcf | 28410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28412 | (eval $ac_try) 2>&5 | |
28413 | ac_status=$? | |
28414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28415 | (exit $ac_status); }; } && | |
28416 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28418 | (eval $ac_try) 2>&5 | |
28419 | ac_status=$? | |
28420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28421 | (exit $ac_status); }; }; then | |
90dd450c | 28422 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 28423 | else |
e6cc62c6 VS |
28424 | echo "$as_me: failed program was:" >&5 |
28425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28426 | ||
28427 | wx_cv_size_t_is_ulong=yes | |
28428 | ||
247f5006 | 28429 | fi |
32ddf007 | 28430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28431 | |
e6cc62c6 VS |
28432 | fi |
28433 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28434 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 28435 | |
90dd450c | 28436 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 28437 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28438 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 28439 | _ACEOF |
4f14bcd8 GD |
28440 | |
28441 | fi | |
90dd450c | 28442 | fi |
1e487827 | 28443 | |
90dd450c | 28444 | ac_ext=c |
4f14bcd8 | 28445 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 28449 | |
5c6fa7d2 | 28450 | |
8284b0c5 | 28451 | |
e6cc62c6 VS |
28452 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
28453 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28454 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28456 | else |
e6cc62c6 VS |
28457 | |
28458 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28459 | /* confdefs.h. */ |
28460 | _ACEOF | |
28461 | cat confdefs.h >>conftest.$ac_ext | |
28462 | cat >>conftest.$ac_ext <<_ACEOF | |
28463 | /* end confdefs.h. */ | |
90dd450c | 28464 | #include <pwd.h> |
e6cc62c6 VS |
28465 | int |
28466 | main () | |
28467 | { | |
f6bcfd97 | 28468 | |
90dd450c VZ |
28469 | char *p; |
28470 | struct passwd *pw; | |
28471 | p = pw->pw_gecos; | |
e6cc62c6 VS |
28472 | |
28473 | ; | |
28474 | return 0; | |
28475 | } | |
28476 | _ACEOF | |
28477 | rm -f conftest.$ac_objext | |
28478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28479 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28480 | ac_status=$? |
32ddf007 VS |
28481 | grep -v '^ *+' conftest.er1 >conftest.err |
28482 | rm -f conftest.er1 | |
28483 | cat conftest.err >&5 | |
e6cc62c6 VS |
28484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28485 | (exit $ac_status); } && | |
e1293dcf | 28486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28488 | (eval $ac_try) 2>&5 | |
28489 | ac_status=$? | |
28490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28491 | (exit $ac_status); }; } && | |
28492 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28494 | (eval $ac_try) 2>&5 | |
28495 | ac_status=$? | |
28496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28497 | (exit $ac_status); }; }; then | |
28498 | ||
90dd450c | 28499 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 28500 | |
10f2d63a | 28501 | else |
e6cc62c6 VS |
28502 | echo "$as_me: failed program was:" >&5 |
28503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28504 | ||
28505 | ||
90dd450c | 28506 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 28507 | |
247f5006 VZ |
28508 | |
28509 | fi | |
32ddf007 | 28510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28511 | |
e6cc62c6 VS |
28512 | |
28513 | fi | |
28514 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28515 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 28516 | |
90dd450c | 28517 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 28518 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28519 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 28520 | _ACEOF |
c521c494 | 28521 | |
90dd450c | 28522 | fi |
4f14bcd8 | 28523 | |
8284b0c5 | 28524 | |
d29b553b | 28525 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 28526 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28527 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 28528 | _ACEOF |
d74f4b5a | 28529 | |
8284b0c5 | 28530 | |
d74f4b5a VZ |
28531 | WCSLEN_FOUND=0 |
28532 | WCHAR_LINK= | |
e6cc62c6 VS |
28533 | |
28534 | for ac_func in wcslen | |
7a30264c | 28535 | do |
e6cc62c6 VS |
28536 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28537 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28538 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28539 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28541 | else | |
28542 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28543 | /* confdefs.h. */ |
28544 | _ACEOF | |
28545 | cat confdefs.h >>conftest.$ac_ext | |
28546 | cat >>conftest.$ac_ext <<_ACEOF | |
28547 | /* end confdefs.h. */ | |
32ddf007 VS |
28548 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28550 | #define $ac_func innocuous_$ac_func | |
28551 | ||
7a30264c | 28552 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28553 | which can conflict with char $ac_func (); below. |
28554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28555 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28556 | |
e6cc62c6 VS |
28557 | #ifdef __STDC__ |
28558 | # include <limits.h> | |
28559 | #else | |
28560 | # include <assert.h> | |
28561 | #endif | |
32ddf007 VS |
28562 | |
28563 | #undef $ac_func | |
28564 | ||
4f14bcd8 | 28565 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28566 | #ifdef __cplusplus |
28567 | extern "C" | |
28568 | { | |
28569 | #endif | |
4f14bcd8 | 28570 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28571 | builtin and then its argument prototype would still apply. */ |
28572 | char $ac_func (); | |
7a30264c VZ |
28573 | /* The GNU C library defines this for functions which it implements |
28574 | to always fail with ENOSYS. Some functions are actually named | |
28575 | something starting with __ and the normal name is an alias. */ | |
28576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28577 | choke me | |
28578 | #else | |
e6cc62c6 VS |
28579 | char (*f) () = $ac_func; |
28580 | #endif | |
28581 | #ifdef __cplusplus | |
28582 | } | |
7a30264c VZ |
28583 | #endif |
28584 | ||
e6cc62c6 VS |
28585 | int |
28586 | main () | |
28587 | { | |
28588 | return f != $ac_func; | |
28589 | ; | |
28590 | return 0; | |
28591 | } | |
28592 | _ACEOF | |
28593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28595 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28596 | ac_status=$? |
32ddf007 VS |
28597 | grep -v '^ *+' conftest.er1 >conftest.err |
28598 | rm -f conftest.er1 | |
28599 | cat conftest.err >&5 | |
e6cc62c6 VS |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28601 | (exit $ac_status); } && | |
e1293dcf | 28602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28604 | (eval $ac_try) 2>&5 | |
28605 | ac_status=$? | |
28606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28607 | (exit $ac_status); }; } && | |
28608 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28610 | (eval $ac_try) 2>&5 | |
28611 | ac_status=$? | |
28612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28613 | (exit $ac_status); }; }; then | |
28614 | eval "$as_ac_var=yes" | |
28615 | else | |
28616 | echo "$as_me: failed program was:" >&5 | |
28617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28618 | ||
28619 | eval "$as_ac_var=no" | |
28620 | fi | |
32ddf007 VS |
28621 | rm -f conftest.err conftest.$ac_objext \ |
28622 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28623 | fi |
28624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28625 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28626 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28627 | cat >>confdefs.h <<_ACEOF | |
28628 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28629 | _ACEOF | |
d74f4b5a | 28630 | WCSLEN_FOUND=1 |
7a30264c VZ |
28631 | fi |
28632 | done | |
9d8deca0 | 28633 | |
8284b0c5 | 28634 | |
d74f4b5a | 28635 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 28636 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
28637 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
28638 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28639 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28641 | else |
e6cc62c6 | 28642 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28643 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 28644 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28645 | /* confdefs.h. */ |
28646 | _ACEOF | |
28647 | cat confdefs.h >>conftest.$ac_ext | |
28648 | cat >>conftest.$ac_ext <<_ACEOF | |
28649 | /* end confdefs.h. */ | |
28650 | ||
4f14bcd8 | 28651 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28652 | #ifdef __cplusplus |
28653 | extern "C" | |
28654 | #endif | |
4f14bcd8 | 28655 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28656 | builtin and then its argument prototype would still apply. */ |
28657 | char wcslen (); | |
28658 | int | |
28659 | main () | |
28660 | { | |
28661 | wcslen (); | |
28662 | ; | |
28663 | return 0; | |
28664 | } | |
28665 | _ACEOF | |
28666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28668 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28669 | ac_status=$? |
32ddf007 VS |
28670 | grep -v '^ *+' conftest.er1 >conftest.err |
28671 | rm -f conftest.er1 | |
28672 | cat conftest.err >&5 | |
e6cc62c6 VS |
28673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28674 | (exit $ac_status); } && | |
e1293dcf | 28675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28677 | (eval $ac_try) 2>&5 | |
28678 | ac_status=$? | |
28679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28680 | (exit $ac_status); }; } && | |
28681 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28683 | (eval $ac_try) 2>&5 | |
28684 | ac_status=$? | |
28685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28686 | (exit $ac_status); }; }; then | |
28687 | ac_cv_lib_msvcrt_wcslen=yes | |
28688 | else | |
28689 | echo "$as_me: failed program was:" >&5 | |
28690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28691 | ||
28692 | ac_cv_lib_msvcrt_wcslen=no | |
28693 | fi | |
32ddf007 VS |
28694 | rm -f conftest.err conftest.$ac_objext \ |
28695 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28696 | LIBS=$ac_check_lib_save_LIBS |
28697 | fi | |
28698 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28699 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28700 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 28701 | WCHAR_OK=1 |
d29b553b | 28702 | fi |
698dcdb6 | 28703 | |
7a30264c | 28704 | else |
e6cc62c6 VS |
28705 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
28706 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28707 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28709 | else |
e6cc62c6 | 28710 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28711 | LIBS="-lw $LIBS" |
e6cc62c6 | 28712 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28713 | /* confdefs.h. */ |
28714 | _ACEOF | |
28715 | cat confdefs.h >>conftest.$ac_ext | |
28716 | cat >>conftest.$ac_ext <<_ACEOF | |
28717 | /* end confdefs.h. */ | |
28718 | ||
4f14bcd8 | 28719 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28720 | #ifdef __cplusplus |
28721 | extern "C" | |
28722 | #endif | |
4f14bcd8 | 28723 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28724 | builtin and then its argument prototype would still apply. */ |
28725 | char wcslen (); | |
28726 | int | |
28727 | main () | |
28728 | { | |
28729 | wcslen (); | |
28730 | ; | |
28731 | return 0; | |
28732 | } | |
28733 | _ACEOF | |
28734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28736 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28737 | ac_status=$? |
32ddf007 VS |
28738 | grep -v '^ *+' conftest.er1 >conftest.err |
28739 | rm -f conftest.er1 | |
28740 | cat conftest.err >&5 | |
e6cc62c6 VS |
28741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28742 | (exit $ac_status); } && | |
e1293dcf | 28743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28745 | (eval $ac_try) 2>&5 | |
28746 | ac_status=$? | |
28747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28748 | (exit $ac_status); }; } && | |
28749 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28751 | (eval $ac_try) 2>&5 | |
28752 | ac_status=$? | |
28753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28754 | (exit $ac_status); }; }; then | |
28755 | ac_cv_lib_w_wcslen=yes | |
28756 | else | |
28757 | echo "$as_me: failed program was:" >&5 | |
28758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28759 | ||
28760 | ac_cv_lib_w_wcslen=no | |
28761 | fi | |
32ddf007 VS |
28762 | rm -f conftest.err conftest.$ac_objext \ |
28763 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28764 | LIBS=$ac_check_lib_save_LIBS |
28765 | fi | |
28766 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28767 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28768 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 28769 | |
7a30264c | 28770 | WCHAR_LINK=" -lw" |
d74f4b5a | 28771 | WCSLEN_FOUND=1 |
e6cc62c6 | 28772 | |
4f14bcd8 | 28773 | fi |
10f2d63a | 28774 | |
7a30264c | 28775 | fi |
d29b553b | 28776 | fi |
95c8801c | 28777 | |
d74f4b5a | 28778 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 28779 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28780 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 28781 | _ACEOF |
10f2d63a | 28782 | |
d74f4b5a | 28783 | fi |
52127426 | 28784 | |
e6cc62c6 VS |
28785 | |
28786 | for ac_func in wcsrtombs | |
eb4efbdc | 28787 | do |
e6cc62c6 VS |
28788 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28789 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28790 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28791 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28793 | else | |
28794 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28795 | /* confdefs.h. */ |
28796 | _ACEOF | |
28797 | cat confdefs.h >>conftest.$ac_ext | |
28798 | cat >>conftest.$ac_ext <<_ACEOF | |
28799 | /* end confdefs.h. */ | |
32ddf007 VS |
28800 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28802 | #define $ac_func innocuous_$ac_func | |
28803 | ||
eb4efbdc | 28804 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28805 | which can conflict with char $ac_func (); below. |
28806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28807 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28808 | |
e6cc62c6 VS |
28809 | #ifdef __STDC__ |
28810 | # include <limits.h> | |
28811 | #else | |
28812 | # include <assert.h> | |
28813 | #endif | |
32ddf007 VS |
28814 | |
28815 | #undef $ac_func | |
28816 | ||
eb4efbdc | 28817 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28818 | #ifdef __cplusplus |
28819 | extern "C" | |
28820 | { | |
28821 | #endif | |
4f14bcd8 | 28822 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28823 | builtin and then its argument prototype would still apply. */ |
28824 | char $ac_func (); | |
10f2d63a VZ |
28825 | /* The GNU C library defines this for functions which it implements |
28826 | to always fail with ENOSYS. Some functions are actually named | |
28827 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 28828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
28829 | choke me |
28830 | #else | |
e6cc62c6 VS |
28831 | char (*f) () = $ac_func; |
28832 | #endif | |
28833 | #ifdef __cplusplus | |
28834 | } | |
10f2d63a VZ |
28835 | #endif |
28836 | ||
e6cc62c6 VS |
28837 | int |
28838 | main () | |
28839 | { | |
28840 | return f != $ac_func; | |
28841 | ; | |
28842 | return 0; | |
28843 | } | |
28844 | _ACEOF | |
28845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28847 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28848 | ac_status=$? |
32ddf007 VS |
28849 | grep -v '^ *+' conftest.er1 >conftest.err |
28850 | rm -f conftest.er1 | |
28851 | cat conftest.err >&5 | |
e6cc62c6 VS |
28852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28853 | (exit $ac_status); } && | |
e1293dcf | 28854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28856 | (eval $ac_try) 2>&5 | |
28857 | ac_status=$? | |
28858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28859 | (exit $ac_status); }; } && | |
28860 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28862 | (eval $ac_try) 2>&5 | |
28863 | ac_status=$? | |
28864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28865 | (exit $ac_status); }; }; then | |
28866 | eval "$as_ac_var=yes" | |
28867 | else | |
28868 | echo "$as_me: failed program was:" >&5 | |
28869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28870 | ||
28871 | eval "$as_ac_var=no" | |
28872 | fi | |
32ddf007 VS |
28873 | rm -f conftest.err conftest.$ac_objext \ |
28874 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28875 | fi |
28876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28877 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28878 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28879 | cat >>confdefs.h <<_ACEOF | |
28880 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28881 | _ACEOF | |
270a909e | 28882 | |
4f14bcd8 | 28883 | fi |
247f5006 | 28884 | done |
1e487827 | 28885 | |
af15babd | 28886 | else |
e6cc62c6 VS |
28887 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
28888 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 28889 | fi |
52127426 | 28890 | |
8284b0c5 | 28891 | |
e6cc62c6 VS |
28892 | |
28893 | ac_ext=cc | |
247f5006 | 28894 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28895 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28896 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28897 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28898 | ||
af15babd | 28899 | |
247f5006 VZ |
28900 | |
28901 | for ac_func in vsnprintf | |
28902 | do | |
e6cc62c6 VS |
28903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28904 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28906 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28908 | else | |
28909 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28910 | /* confdefs.h. */ |
28911 | _ACEOF | |
28912 | cat confdefs.h >>conftest.$ac_ext | |
28913 | cat >>conftest.$ac_ext <<_ACEOF | |
28914 | /* end confdefs.h. */ | |
32ddf007 VS |
28915 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28916 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28917 | #define $ac_func innocuous_$ac_func | |
28918 | ||
247f5006 | 28919 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28920 | which can conflict with char $ac_func (); below. |
28921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28922 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28923 | |
e6cc62c6 VS |
28924 | #ifdef __STDC__ |
28925 | # include <limits.h> | |
28926 | #else | |
28927 | # include <assert.h> | |
28928 | #endif | |
32ddf007 VS |
28929 | |
28930 | #undef $ac_func | |
28931 | ||
247f5006 VZ |
28932 | /* Override any gcc2 internal prototype to avoid an error. */ |
28933 | #ifdef __cplusplus | |
28934 | extern "C" | |
e6cc62c6 | 28935 | { |
247f5006 VZ |
28936 | #endif |
28937 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28938 | builtin and then its argument prototype would still apply. */ |
28939 | char $ac_func (); | |
247f5006 VZ |
28940 | /* The GNU C library defines this for functions which it implements |
28941 | to always fail with ENOSYS. Some functions are actually named | |
28942 | something starting with __ and the normal name is an alias. */ | |
28943 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28944 | choke me | |
28945 | #else | |
e6cc62c6 VS |
28946 | char (*f) () = $ac_func; |
28947 | #endif | |
28948 | #ifdef __cplusplus | |
28949 | } | |
247f5006 | 28950 | #endif |
af15babd | 28951 | |
e6cc62c6 VS |
28952 | int |
28953 | main () | |
28954 | { | |
28955 | return f != $ac_func; | |
28956 | ; | |
28957 | return 0; | |
28958 | } | |
28959 | _ACEOF | |
28960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28962 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28963 | ac_status=$? |
32ddf007 VS |
28964 | grep -v '^ *+' conftest.er1 >conftest.err |
28965 | rm -f conftest.er1 | |
28966 | cat conftest.err >&5 | |
e6cc62c6 VS |
28967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28968 | (exit $ac_status); } && | |
e1293dcf | 28969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28971 | (eval $ac_try) 2>&5 | |
28972 | ac_status=$? | |
28973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28974 | (exit $ac_status); }; } && | |
28975 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 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); }; }; then | |
28981 | eval "$as_ac_var=yes" | |
28982 | else | |
28983 | echo "$as_me: failed program was:" >&5 | |
28984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28985 | ||
28986 | eval "$as_ac_var=no" | |
28987 | fi | |
32ddf007 VS |
28988 | rm -f conftest.err conftest.$ac_objext \ |
28989 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28990 | fi |
28991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28992 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28993 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28994 | cat >>confdefs.h <<_ACEOF | |
28995 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28996 | _ACEOF | |
52127426 | 28997 | |
5c6fa7d2 | 28998 | fi |
247f5006 | 28999 | done |
8284b0c5 | 29000 | |
4f14bcd8 | 29001 | |
8d90d2f2 | 29002 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
29003 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
29004 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29005 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 29007 | else |
e6cc62c6 VS |
29008 | |
29009 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29010 | /* confdefs.h. */ |
29011 | _ACEOF | |
29012 | cat confdefs.h >>conftest.$ac_ext | |
29013 | cat >>conftest.$ac_ext <<_ACEOF | |
29014 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
29015 | |
29016 | #include <stdio.h> | |
29017 | #include <stdarg.h> | |
e6cc62c6 VS |
29018 | |
29019 | int | |
29020 | main () | |
29021 | { | |
8d90d2f2 VZ |
29022 | |
29023 | char *buf; | |
29024 | va_list ap; | |
29025 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
29026 | |
29027 | ; | |
29028 | return 0; | |
29029 | } | |
29030 | _ACEOF | |
29031 | rm -f conftest.$ac_objext | |
29032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29033 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29034 | ac_status=$? |
32ddf007 VS |
29035 | grep -v '^ *+' conftest.er1 >conftest.err |
29036 | rm -f conftest.er1 | |
29037 | cat conftest.err >&5 | |
e6cc62c6 VS |
29038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29039 | (exit $ac_status); } && | |
e1293dcf | 29040 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29042 | (eval $ac_try) 2>&5 | |
29043 | ac_status=$? | |
29044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29045 | (exit $ac_status); }; } && | |
29046 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29048 | (eval $ac_try) 2>&5 | |
29049 | ac_status=$? | |
29050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29051 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
29052 | wx_cv_func_vsnprintf_decl=yes |
29053 | else | |
e6cc62c6 VS |
29054 | echo "$as_me: failed program was:" >&5 |
29055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29056 | ||
29057 | wx_cv_func_vsnprintf_decl=no | |
29058 | ||
8d90d2f2 | 29059 | fi |
32ddf007 | 29060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 29061 | |
8d90d2f2 | 29062 | |
e6cc62c6 VS |
29063 | fi |
29064 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29065 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
29066 | |
29067 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 29068 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 29069 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 29070 | _ACEOF |
8d90d2f2 VZ |
29071 | |
29072 | fi | |
29073 | fi | |
29074 | ||
247f5006 | 29075 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
29076 | |
29077 | ||
29078 | ||
29079 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 29080 | do |
e6cc62c6 VS |
29081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29082 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29084 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29086 | else | |
29087 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29088 | /* confdefs.h. */ |
29089 | _ACEOF | |
29090 | cat confdefs.h >>conftest.$ac_ext | |
29091 | cat >>conftest.$ac_ext <<_ACEOF | |
29092 | /* end confdefs.h. */ | |
32ddf007 VS |
29093 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29095 | #define $ac_func innocuous_$ac_func | |
29096 | ||
d74f4b5a | 29097 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29098 | which can conflict with char $ac_func (); below. |
29099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29100 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29101 | |
e6cc62c6 VS |
29102 | #ifdef __STDC__ |
29103 | # include <limits.h> | |
29104 | #else | |
29105 | # include <assert.h> | |
29106 | #endif | |
32ddf007 VS |
29107 | |
29108 | #undef $ac_func | |
29109 | ||
d74f4b5a | 29110 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
29111 | #ifdef __cplusplus |
29112 | extern "C" | |
e6cc62c6 | 29113 | { |
247f5006 | 29114 | #endif |
d74f4b5a | 29115 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29116 | builtin and then its argument prototype would still apply. */ |
29117 | char $ac_func (); | |
d74f4b5a VZ |
29118 | /* The GNU C library defines this for functions which it implements |
29119 | to always fail with ENOSYS. Some functions are actually named | |
29120 | something starting with __ and the normal name is an alias. */ | |
29121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29122 | choke me | |
29123 | #else | |
e6cc62c6 VS |
29124 | char (*f) () = $ac_func; |
29125 | #endif | |
29126 | #ifdef __cplusplus | |
29127 | } | |
d74f4b5a VZ |
29128 | #endif |
29129 | ||
e6cc62c6 VS |
29130 | int |
29131 | main () | |
29132 | { | |
29133 | return f != $ac_func; | |
29134 | ; | |
29135 | return 0; | |
29136 | } | |
29137 | _ACEOF | |
29138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29140 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29141 | ac_status=$? |
32ddf007 VS |
29142 | grep -v '^ *+' conftest.er1 >conftest.err |
29143 | rm -f conftest.er1 | |
29144 | cat conftest.err >&5 | |
e6cc62c6 VS |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29146 | (exit $ac_status); } && | |
e1293dcf | 29147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29149 | (eval $ac_try) 2>&5 | |
29150 | ac_status=$? | |
29151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29152 | (exit $ac_status); }; } && | |
29153 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29155 | (eval $ac_try) 2>&5 | |
29156 | ac_status=$? | |
29157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29158 | (exit $ac_status); }; }; then | |
29159 | eval "$as_ac_var=yes" | |
29160 | else | |
29161 | echo "$as_me: failed program was:" >&5 | |
29162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29163 | ||
29164 | eval "$as_ac_var=no" | |
29165 | fi | |
32ddf007 VS |
29166 | rm -f conftest.err conftest.$ac_objext \ |
29167 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29168 | fi |
29169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29170 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29171 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29172 | cat >>confdefs.h <<_ACEOF | |
29173 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29174 | _ACEOF | |
d74f4b5a | 29175 | |
d74f4b5a VZ |
29176 | fi |
29177 | done | |
29178 | ||
8d90d2f2 | 29179 | |
e6cc62c6 VS |
29180 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
29181 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29182 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29183 | /* confdefs.h. */ |
29184 | _ACEOF | |
29185 | cat confdefs.h >>conftest.$ac_ext | |
29186 | cat >>conftest.$ac_ext <<_ACEOF | |
29187 | /* end confdefs.h. */ | |
79668cae | 29188 | #include <wchar.h> |
e6cc62c6 VS |
29189 | int |
29190 | main () | |
29191 | { | |
79668cae | 29192 | &_vsnwprintf; |
e6cc62c6 VS |
29193 | ; |
29194 | return 0; | |
29195 | } | |
29196 | _ACEOF | |
29197 | rm -f conftest.$ac_objext | |
29198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29199 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29200 | ac_status=$? |
32ddf007 VS |
29201 | grep -v '^ *+' conftest.er1 >conftest.err |
29202 | rm -f conftest.er1 | |
29203 | cat conftest.err >&5 | |
e6cc62c6 VS |
29204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29205 | (exit $ac_status); } && | |
e1293dcf | 29206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29208 | (eval $ac_try) 2>&5 | |
29209 | ac_status=$? | |
29210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29211 | (exit $ac_status); }; } && | |
29212 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29214 | (eval $ac_try) 2>&5 | |
29215 | ac_status=$? | |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29217 | (exit $ac_status); }; }; then | |
29218 | echo "$as_me:$LINENO: result: yes" >&5 | |
29219 | echo "${ECHO_T}yes" >&6 | |
29220 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 29221 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 29222 | _ACEOF |
79668cae MB |
29223 | |
29224 | else | |
e6cc62c6 VS |
29225 | echo "$as_me: failed program was:" >&5 |
29226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29227 | ||
29228 | echo "$as_me:$LINENO: result: no" >&5 | |
29229 | echo "${ECHO_T}no" >&6 | |
79668cae | 29230 | fi |
32ddf007 | 29231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
29232 | fi |
29233 | ||
247f5006 VZ |
29234 | ac_ext=c |
29235 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
29236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
29239 | |
29240 | ||
29241 | ||
29242 | ||
4f14bcd8 | 29243 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 29244 | |
8284b0c5 MB |
29245 | |
29246 | ||
e6cc62c6 VS |
29247 | |
29248 | ac_ext=cc | |
4f14bcd8 | 29249 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29250 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29251 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29252 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 29253 | |
52127426 | 29254 | |
e6cc62c6 VS |
29255 | |
29256 | ||
29257 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
29258 | if test "${with_libiconv_prefix+set}" = set; then |
29259 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 29260 | |
b040e242 VS |
29261 | for dir in `echo "$withval" | tr : ' '`; do |
29262 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29263 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29264 | done | |
b040e242 | 29265 | |
e6cc62c6 | 29266 | fi; |
b040e242 | 29267 | |
e6cc62c6 VS |
29268 | echo "$as_me:$LINENO: checking for iconv" >&5 |
29269 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29270 | if test "${am_cv_func_iconv+set}" = set; then | |
29271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29272 | else |
e6cc62c6 | 29273 | |
b040e242 VS |
29274 | am_cv_func_iconv="no, consider installing GNU libiconv" |
29275 | am_cv_lib_iconv=no | |
e6cc62c6 | 29276 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29277 | /* confdefs.h. */ |
29278 | _ACEOF | |
29279 | cat confdefs.h >>conftest.$ac_ext | |
29280 | cat >>conftest.$ac_ext <<_ACEOF | |
29281 | /* end confdefs.h. */ | |
b040e242 | 29282 | #include <stdlib.h> |
4f14bcd8 | 29283 | #include <iconv.h> |
e6cc62c6 VS |
29284 | int |
29285 | main () | |
29286 | { | |
b040e242 VS |
29287 | iconv_t cd = iconv_open("",""); |
29288 | iconv(cd,NULL,NULL,NULL,NULL); | |
29289 | iconv_close(cd); | |
e6cc62c6 VS |
29290 | ; |
29291 | return 0; | |
29292 | } | |
29293 | _ACEOF | |
29294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29296 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29297 | ac_status=$? |
32ddf007 VS |
29298 | grep -v '^ *+' conftest.er1 >conftest.err |
29299 | rm -f conftest.er1 | |
29300 | cat conftest.err >&5 | |
e6cc62c6 VS |
29301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29302 | (exit $ac_status); } && | |
e1293dcf | 29303 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29305 | (eval $ac_try) 2>&5 | |
29306 | ac_status=$? | |
29307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29308 | (exit $ac_status); }; } && | |
29309 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29311 | (eval $ac_try) 2>&5 | |
29312 | ac_status=$? | |
29313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29314 | (exit $ac_status); }; }; then | |
b040e242 | 29315 | am_cv_func_iconv=yes |
af15babd | 29316 | else |
e6cc62c6 VS |
29317 | echo "$as_me: failed program was:" >&5 |
29318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29319 | ||
b040e242 | 29320 | fi |
32ddf007 VS |
29321 | rm -f conftest.err conftest.$ac_objext \ |
29322 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29323 | if test "$am_cv_func_iconv" != yes; then |
29324 | am_save_LIBS="$LIBS" | |
29325 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 29326 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29327 | /* confdefs.h. */ |
29328 | _ACEOF | |
29329 | cat confdefs.h >>conftest.$ac_ext | |
29330 | cat >>conftest.$ac_ext <<_ACEOF | |
29331 | /* end confdefs.h. */ | |
b040e242 VS |
29332 | #include <stdlib.h> |
29333 | #include <iconv.h> | |
e6cc62c6 VS |
29334 | int |
29335 | main () | |
29336 | { | |
b040e242 VS |
29337 | iconv_t cd = iconv_open("",""); |
29338 | iconv(cd,NULL,NULL,NULL,NULL); | |
29339 | iconv_close(cd); | |
e6cc62c6 VS |
29340 | ; |
29341 | return 0; | |
29342 | } | |
29343 | _ACEOF | |
29344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29346 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29347 | ac_status=$? |
32ddf007 VS |
29348 | grep -v '^ *+' conftest.er1 >conftest.err |
29349 | rm -f conftest.er1 | |
29350 | cat conftest.err >&5 | |
e6cc62c6 VS |
29351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29352 | (exit $ac_status); } && | |
e1293dcf | 29353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29355 | (eval $ac_try) 2>&5 | |
29356 | ac_status=$? | |
29357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29358 | (exit $ac_status); }; } && | |
29359 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29361 | (eval $ac_try) 2>&5 | |
29362 | ac_status=$? | |
29363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29364 | (exit $ac_status); }; }; then | |
b040e242 VS |
29365 | am_cv_lib_iconv=yes |
29366 | am_cv_func_iconv=yes | |
29367 | else | |
e6cc62c6 VS |
29368 | echo "$as_me: failed program was:" >&5 |
29369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29370 | ||
af15babd | 29371 | fi |
32ddf007 VS |
29372 | rm -f conftest.err conftest.$ac_objext \ |
29373 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29374 | LIBS="$am_save_LIBS" |
29375 | fi | |
247f5006 | 29376 | |
e6cc62c6 VS |
29377 | fi |
29378 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29379 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 29380 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
29381 | |
29382 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 29383 | #define HAVE_ICONV 1 |
e6cc62c6 | 29384 | _ACEOF |
b040e242 | 29385 | |
e6cc62c6 VS |
29386 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
29387 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29388 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 29390 | else |
e6cc62c6 | 29391 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29392 | /* confdefs.h. */ |
29393 | _ACEOF | |
29394 | cat confdefs.h >>conftest.$ac_ext | |
29395 | cat >>conftest.$ac_ext <<_ACEOF | |
29396 | /* end confdefs.h. */ | |
b040e242 VS |
29397 | |
29398 | #include <stdlib.h> | |
29399 | #include <iconv.h> | |
29400 | extern | |
29401 | #ifdef __cplusplus | |
29402 | "C" | |
29403 | #endif | |
29404 | #if defined(__STDC__) || defined(__cplusplus) | |
29405 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29406 | #else | |
29407 | size_t iconv(); | |
29408 | #endif | |
af15babd | 29409 | |
e6cc62c6 VS |
29410 | int |
29411 | main () | |
29412 | { | |
29413 | ||
29414 | ; | |
29415 | return 0; | |
29416 | } | |
29417 | _ACEOF | |
29418 | rm -f conftest.$ac_objext | |
29419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29420 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29421 | ac_status=$? |
32ddf007 VS |
29422 | grep -v '^ *+' conftest.er1 >conftest.err |
29423 | rm -f conftest.er1 | |
29424 | cat conftest.err >&5 | |
e6cc62c6 VS |
29425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29426 | (exit $ac_status); } && | |
e1293dcf | 29427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29429 | (eval $ac_try) 2>&5 | |
29430 | ac_status=$? | |
29431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29432 | (exit $ac_status); }; } && | |
29433 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29435 | (eval $ac_try) 2>&5 | |
29436 | ac_status=$? | |
29437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29438 | (exit $ac_status); }; }; then | |
b7043674 | 29439 | wx_cv_func_iconv_const="no" |
b040e242 | 29440 | else |
e6cc62c6 VS |
29441 | echo "$as_me: failed program was:" >&5 |
29442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29443 | ||
29444 | wx_cv_func_iconv_const="yes" | |
29445 | ||
247f5006 | 29446 | fi |
32ddf007 | 29447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29448 | |
e6cc62c6 VS |
29449 | fi |
29450 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29451 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
29452 | |
29453 | iconv_const= | |
1c405bb5 | 29454 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
29455 | iconv_const="const" |
29456 | fi | |
29457 | ||
e6cc62c6 VS |
29458 | |
29459 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 29460 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 29461 | _ACEOF |
b040e242 VS |
29462 | |
29463 | fi | |
29464 | LIBICONV= | |
29465 | if test "$am_cv_lib_iconv" = yes; then | |
29466 | LIBICONV="-liconv" | |
29467 | fi | |
e6cc62c6 | 29468 | |
b040e242 VS |
29469 | |
29470 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 29471 | ac_ext=c |
4f14bcd8 | 29472 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 29476 | |
5c6fa7d2 | 29477 | |
8284b0c5 | 29478 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
29479 | |
29480 | for ac_func in sigaction | |
af15babd | 29481 | do |
e6cc62c6 VS |
29482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29485 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29487 | else | |
29488 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29489 | /* confdefs.h. */ |
29490 | _ACEOF | |
29491 | cat confdefs.h >>conftest.$ac_ext | |
29492 | cat >>conftest.$ac_ext <<_ACEOF | |
29493 | /* end confdefs.h. */ | |
32ddf007 VS |
29494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29496 | #define $ac_func innocuous_$ac_func | |
29497 | ||
af15babd | 29498 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29499 | which can conflict with char $ac_func (); below. |
29500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29501 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29502 | |
e6cc62c6 VS |
29503 | #ifdef __STDC__ |
29504 | # include <limits.h> | |
29505 | #else | |
29506 | # include <assert.h> | |
29507 | #endif | |
32ddf007 VS |
29508 | |
29509 | #undef $ac_func | |
29510 | ||
af15babd | 29511 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29512 | #ifdef __cplusplus |
29513 | extern "C" | |
29514 | { | |
29515 | #endif | |
af15babd | 29516 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29517 | builtin and then its argument prototype would still apply. */ |
29518 | char $ac_func (); | |
af15babd VZ |
29519 | /* The GNU C library defines this for functions which it implements |
29520 | to always fail with ENOSYS. Some functions are actually named | |
29521 | something starting with __ and the normal name is an alias. */ | |
29522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29523 | choke me | |
29524 | #else | |
e6cc62c6 VS |
29525 | char (*f) () = $ac_func; |
29526 | #endif | |
29527 | #ifdef __cplusplus | |
29528 | } | |
af15babd VZ |
29529 | #endif |
29530 | ||
e6cc62c6 VS |
29531 | int |
29532 | main () | |
29533 | { | |
29534 | return f != $ac_func; | |
29535 | ; | |
29536 | return 0; | |
29537 | } | |
29538 | _ACEOF | |
29539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29541 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29542 | ac_status=$? |
32ddf007 VS |
29543 | grep -v '^ *+' conftest.er1 >conftest.err |
29544 | rm -f conftest.er1 | |
29545 | cat conftest.err >&5 | |
e6cc62c6 VS |
29546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29547 | (exit $ac_status); } && | |
e1293dcf | 29548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29550 | (eval $ac_try) 2>&5 | |
29551 | ac_status=$? | |
29552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29553 | (exit $ac_status); }; } && | |
29554 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29556 | (eval $ac_try) 2>&5 | |
29557 | ac_status=$? | |
29558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29559 | (exit $ac_status); }; }; then | |
29560 | eval "$as_ac_var=yes" | |
29561 | else | |
29562 | echo "$as_me: failed program was:" >&5 | |
29563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29564 | ||
29565 | eval "$as_ac_var=no" | |
29566 | fi | |
32ddf007 VS |
29567 | rm -f conftest.err conftest.$ac_objext \ |
29568 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29569 | fi |
29570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29573 | cat >>confdefs.h <<_ACEOF | |
29574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29575 | _ACEOF | |
7b4a847f | 29576 | |
4f14bcd8 GD |
29577 | fi |
29578 | done | |
29579 | ||
8284b0c5 | 29580 | |
4f14bcd8 | 29581 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
29582 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
29583 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
29584 | wxUSE_ON_FATAL_EXCEPTION=no |
29585 | fi | |
29586 | ||
29587 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
29588 | |
29589 | ||
29590 | ac_ext=cc | |
5c6fa7d2 | 29591 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 29595 | |
5c6fa7d2 | 29596 | |
e6cc62c6 VS |
29597 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
29598 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29599 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29601 | else |
e6cc62c6 VS |
29602 | |
29603 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29604 | /* confdefs.h. */ |
29605 | _ACEOF | |
29606 | cat confdefs.h >>conftest.$ac_ext | |
29607 | cat >>conftest.$ac_ext <<_ACEOF | |
29608 | /* end confdefs.h. */ | |
4f14bcd8 | 29609 | #include <signal.h> |
e6cc62c6 VS |
29610 | int |
29611 | main () | |
29612 | { | |
4f14bcd8 GD |
29613 | |
29614 | extern void testSigHandler(int); | |
29615 | ||
29616 | struct sigaction sa; | |
29617 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
29618 | |
29619 | ; | |
29620 | return 0; | |
29621 | } | |
29622 | _ACEOF | |
29623 | rm -f conftest.$ac_objext | |
29624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29625 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29626 | ac_status=$? |
32ddf007 VS |
29627 | grep -v '^ *+' conftest.er1 >conftest.err |
29628 | rm -f conftest.er1 | |
29629 | cat conftest.err >&5 | |
e6cc62c6 VS |
29630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29631 | (exit $ac_status); } && | |
e1293dcf | 29632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29634 | (eval $ac_try) 2>&5 | |
29635 | ac_status=$? | |
29636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29637 | (exit $ac_status); }; } && | |
29638 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29640 | (eval $ac_try) 2>&5 | |
29641 | ac_status=$? | |
29642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29643 | (exit $ac_status); }; }; then | |
29644 | ||
4f14bcd8 | 29645 | wx_cv_type_sa_handler=int |
e6cc62c6 | 29646 | |
af15babd | 29647 | else |
e6cc62c6 VS |
29648 | echo "$as_me: failed program was:" >&5 |
29649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29650 | ||
29651 | ||
4f14bcd8 | 29652 | wx_cv_type_sa_handler=void |
e6cc62c6 | 29653 | |
247f5006 | 29654 | fi |
32ddf007 | 29655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29656 | |
e6cc62c6 VS |
29657 | fi |
29658 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29659 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
29660 | |
29661 | ac_ext=c | |
4f14bcd8 | 29662 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 29666 | |
8284b0c5 | 29667 | |
e6cc62c6 | 29668 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29669 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 29670 | _ACEOF |
af15babd | 29671 | |
4f14bcd8 GD |
29672 | fi |
29673 | fi | |
af15babd | 29674 | |
e6cc62c6 VS |
29675 | |
29676 | ||
a1d22ad7 | 29677 | for ac_func in mkstemp mktemp |
af15babd | 29678 | do |
e6cc62c6 VS |
29679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29680 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29682 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29684 | else | |
29685 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29686 | /* confdefs.h. */ |
29687 | _ACEOF | |
29688 | cat confdefs.h >>conftest.$ac_ext | |
29689 | cat >>conftest.$ac_ext <<_ACEOF | |
29690 | /* end confdefs.h. */ | |
32ddf007 VS |
29691 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29693 | #define $ac_func innocuous_$ac_func | |
29694 | ||
af15babd | 29695 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29696 | which can conflict with char $ac_func (); below. |
29697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29698 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29699 | |
e6cc62c6 VS |
29700 | #ifdef __STDC__ |
29701 | # include <limits.h> | |
29702 | #else | |
29703 | # include <assert.h> | |
29704 | #endif | |
32ddf007 VS |
29705 | |
29706 | #undef $ac_func | |
29707 | ||
af15babd | 29708 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29709 | #ifdef __cplusplus |
29710 | extern "C" | |
29711 | { | |
29712 | #endif | |
af15babd | 29713 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29714 | builtin and then its argument prototype would still apply. */ |
29715 | char $ac_func (); | |
af15babd VZ |
29716 | /* The GNU C library defines this for functions which it implements |
29717 | to always fail with ENOSYS. Some functions are actually named | |
29718 | something starting with __ and the normal name is an alias. */ | |
29719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29720 | choke me | |
29721 | #else | |
e6cc62c6 VS |
29722 | char (*f) () = $ac_func; |
29723 | #endif | |
29724 | #ifdef __cplusplus | |
29725 | } | |
af15babd VZ |
29726 | #endif |
29727 | ||
e6cc62c6 VS |
29728 | int |
29729 | main () | |
29730 | { | |
29731 | return f != $ac_func; | |
29732 | ; | |
29733 | return 0; | |
29734 | } | |
29735 | _ACEOF | |
29736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29738 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29739 | ac_status=$? |
32ddf007 VS |
29740 | grep -v '^ *+' conftest.er1 >conftest.err |
29741 | rm -f conftest.er1 | |
29742 | cat conftest.err >&5 | |
e6cc62c6 VS |
29743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29744 | (exit $ac_status); } && | |
e1293dcf | 29745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29747 | (eval $ac_try) 2>&5 | |
29748 | ac_status=$? | |
29749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29750 | (exit $ac_status); }; } && | |
29751 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29753 | (eval $ac_try) 2>&5 | |
29754 | ac_status=$? | |
29755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29756 | (exit $ac_status); }; }; then | |
29757 | eval "$as_ac_var=yes" | |
29758 | else | |
29759 | echo "$as_me: failed program was:" >&5 | |
29760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29761 | ||
29762 | eval "$as_ac_var=no" | |
29763 | fi | |
32ddf007 VS |
29764 | rm -f conftest.err conftest.$ac_objext \ |
29765 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29766 | fi |
29767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29768 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29769 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29770 | cat >>confdefs.h <<_ACEOF | |
29771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29772 | _ACEOF | |
ade35f11 | 29773 | break |
ade35f11 VZ |
29774 | fi |
29775 | done | |
29776 | ||
8284b0c5 | 29777 | |
e6cc62c6 VS |
29778 | echo "$as_me:$LINENO: checking for statfs" >&5 |
29779 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29780 | if test "${wx_cv_func_statfs+set}" = set; then | |
29781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29782 | else |
e6cc62c6 | 29783 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29784 | /* confdefs.h. */ |
29785 | _ACEOF | |
29786 | cat confdefs.h >>conftest.$ac_ext | |
29787 | cat >>conftest.$ac_ext <<_ACEOF | |
29788 | /* end confdefs.h. */ | |
4f14bcd8 GD |
29789 | |
29790 | #if defined(__BSD__) | |
29791 | #include <sys/param.h> | |
29792 | #include <sys/mount.h> | |
29793 | #else | |
29794 | #include <sys/vfs.h> | |
29795 | #endif | |
e6cc62c6 VS |
29796 | |
29797 | int | |
29798 | main () | |
29799 | { | |
4f14bcd8 GD |
29800 | |
29801 | long l; | |
29802 | struct statfs fs; | |
29803 | statfs("/", &fs); | |
29804 | l = fs.f_bsize; | |
29805 | l += fs.f_blocks; | |
29806 | l += fs.f_bavail; | |
e6cc62c6 VS |
29807 | |
29808 | ; | |
29809 | return 0; | |
29810 | } | |
29811 | _ACEOF | |
29812 | rm -f conftest.$ac_objext | |
29813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29814 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29815 | ac_status=$? |
32ddf007 VS |
29816 | grep -v '^ *+' conftest.er1 >conftest.err |
29817 | rm -f conftest.er1 | |
29818 | cat conftest.err >&5 | |
e6cc62c6 VS |
29819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29820 | (exit $ac_status); } && | |
e1293dcf | 29821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29823 | (eval $ac_try) 2>&5 | |
29824 | ac_status=$? | |
29825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29826 | (exit $ac_status); }; } && | |
29827 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29829 | (eval $ac_try) 2>&5 | |
29830 | ac_status=$? | |
29831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29832 | (exit $ac_status); }; }; then | |
29833 | ||
4f14bcd8 | 29834 | wx_cv_func_statfs=yes |
e6cc62c6 | 29835 | |
4f14bcd8 | 29836 | else |
e6cc62c6 VS |
29837 | echo "$as_me: failed program was:" >&5 |
29838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29839 | ||
29840 | ||
4f14bcd8 | 29841 | wx_cv_func_statfs=no |
e6cc62c6 | 29842 | |
8284b0c5 | 29843 | |
247f5006 | 29844 | fi |
32ddf007 | 29845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29846 | |
e6cc62c6 VS |
29847 | fi |
29848 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29849 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
29850 | |
29851 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 29852 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 29853 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29854 | #define HAVE_STATFS 1 |
e6cc62c6 | 29855 | _ACEOF |
4f14bcd8 GD |
29856 | |
29857 | else | |
e6cc62c6 VS |
29858 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
29859 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29860 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29862 | else |
e6cc62c6 | 29863 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29864 | /* confdefs.h. */ |
29865 | _ACEOF | |
29866 | cat confdefs.h >>conftest.$ac_ext | |
29867 | cat >>conftest.$ac_ext <<_ACEOF | |
29868 | /* end confdefs.h. */ | |
af15babd | 29869 | |
54ab82b3 VZ |
29870 | #include <stddef.h> |
29871 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29872 | |
29873 | int | |
29874 | main () | |
29875 | { | |
af15babd | 29876 | |
54ab82b3 | 29877 | statvfs("/", NULL); |
e6cc62c6 VS |
29878 | |
29879 | ; | |
29880 | return 0; | |
29881 | } | |
29882 | _ACEOF | |
29883 | rm -f conftest.$ac_objext | |
29884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29885 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29886 | ac_status=$? |
32ddf007 VS |
29887 | grep -v '^ *+' conftest.er1 >conftest.err |
29888 | rm -f conftest.er1 | |
29889 | cat conftest.err >&5 | |
e6cc62c6 VS |
29890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29891 | (exit $ac_status); } && | |
e1293dcf | 29892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29894 | (eval $ac_try) 2>&5 | |
29895 | ac_status=$? | |
29896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29897 | (exit $ac_status); }; } && | |
29898 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29900 | (eval $ac_try) 2>&5 | |
29901 | ac_status=$? | |
29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29903 | (exit $ac_status); }; }; then | |
54ab82b3 | 29904 | wx_cv_func_statvfs=yes |
af15babd | 29905 | else |
e6cc62c6 VS |
29906 | echo "$as_me: failed program was:" >&5 |
29907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29908 | ||
29909 | wx_cv_func_statvfs=no | |
29910 | ||
247f5006 | 29911 | fi |
32ddf007 | 29912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29913 | |
e6cc62c6 VS |
29914 | fi |
29915 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29916 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 29917 | |
4f14bcd8 | 29918 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
29919 | |
29920 | ||
29921 | ac_ext=cc | |
54ab82b3 | 29922 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
29926 | |
29927 | ||
e6cc62c6 VS |
29928 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
29929 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29930 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 29932 | else |
e6cc62c6 | 29933 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29934 | /* confdefs.h. */ |
29935 | _ACEOF | |
29936 | cat confdefs.h >>conftest.$ac_ext | |
29937 | cat >>conftest.$ac_ext <<_ACEOF | |
29938 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29939 | |
29940 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29941 | |
29942 | int | |
29943 | main () | |
29944 | { | |
54ab82b3 VZ |
29945 | |
29946 | long l; | |
29947 | statvfs_t fs; | |
29948 | statvfs("/", &fs); | |
29949 | l = fs.f_bsize; | |
29950 | l += fs.f_blocks; | |
29951 | l += fs.f_bavail; | |
e6cc62c6 VS |
29952 | |
29953 | ; | |
29954 | return 0; | |
29955 | } | |
29956 | _ACEOF | |
29957 | rm -f conftest.$ac_objext | |
29958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29959 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29960 | ac_status=$? |
32ddf007 VS |
29961 | grep -v '^ *+' conftest.er1 >conftest.err |
29962 | rm -f conftest.er1 | |
29963 | cat conftest.err >&5 | |
e6cc62c6 VS |
29964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29965 | (exit $ac_status); } && | |
e1293dcf | 29966 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29968 | (eval $ac_try) 2>&5 | |
29969 | ac_status=$? | |
29970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29971 | (exit $ac_status); }; } && | |
29972 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29974 | (eval $ac_try) 2>&5 | |
29975 | ac_status=$? | |
29976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29977 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29978 | wx_cv_type_statvfs_t=statvfs_t |
29979 | else | |
e6cc62c6 VS |
29980 | echo "$as_me: failed program was:" >&5 |
29981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29982 | ||
29983 | ||
29984 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29985 | /* confdefs.h. */ |
29986 | _ACEOF | |
29987 | cat confdefs.h >>conftest.$ac_ext | |
29988 | cat >>conftest.$ac_ext <<_ACEOF | |
29989 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29990 | |
29991 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29992 | |
29993 | int | |
29994 | main () | |
29995 | { | |
54ab82b3 VZ |
29996 | |
29997 | long l; | |
65d8ef1e | 29998 | struct statvfs fs; |
54ab82b3 VZ |
29999 | statvfs("/", &fs); |
30000 | l = fs.f_bsize; | |
30001 | l += fs.f_blocks; | |
30002 | l += fs.f_bavail; | |
e6cc62c6 VS |
30003 | |
30004 | ; | |
30005 | return 0; | |
30006 | } | |
30007 | _ACEOF | |
30008 | rm -f conftest.$ac_objext | |
30009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30010 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30011 | ac_status=$? |
32ddf007 VS |
30012 | grep -v '^ *+' conftest.er1 >conftest.err |
30013 | rm -f conftest.er1 | |
30014 | cat conftest.err >&5 | |
e6cc62c6 VS |
30015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30016 | (exit $ac_status); } && | |
e1293dcf | 30017 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30019 | (eval $ac_try) 2>&5 | |
30020 | ac_status=$? | |
30021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30022 | (exit $ac_status); }; } && | |
30023 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30025 | (eval $ac_try) 2>&5 | |
30026 | ac_status=$? | |
30027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30028 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
30029 | wx_cv_type_statvfs_t="struct statvfs" |
30030 | else | |
e6cc62c6 VS |
30031 | echo "$as_me: failed program was:" >&5 |
30032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30033 | ||
30034 | wx_cv_type_statvfs_t="unknown" | |
30035 | ||
54ab82b3 | 30036 | fi |
32ddf007 | 30037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30038 | |
30039 | ||
54ab82b3 | 30040 | fi |
32ddf007 | 30041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 30042 | |
e6cc62c6 VS |
30043 | fi |
30044 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30045 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
30046 | |
30047 | ac_ext=c | |
54ab82b3 | 30048 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
30052 | |
30053 | ||
30054 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 30055 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30056 | #define HAVE_STATVFS 1 |
e6cc62c6 | 30057 | _ACEOF |
af15babd | 30058 | |
54ab82b3 | 30059 | fi |
4f14bcd8 | 30060 | else |
54ab82b3 | 30061 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
30062 | fi |
30063 | fi | |
af15babd | 30064 | |
54ab82b3 | 30065 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 30066 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 30067 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 30068 | _ACEOF |
54ab82b3 VZ |
30069 | |
30070 | else | |
e6cc62c6 VS |
30071 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
30072 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
30073 | fi |
30074 | ||
4f14bcd8 | 30075 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
30076 | |
30077 | ||
30078 | for ac_func in fcntl flock | |
af15babd | 30079 | do |
e6cc62c6 VS |
30080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30081 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30083 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30085 | else | |
30086 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30087 | /* confdefs.h. */ |
30088 | _ACEOF | |
30089 | cat confdefs.h >>conftest.$ac_ext | |
30090 | cat >>conftest.$ac_ext <<_ACEOF | |
30091 | /* end confdefs.h. */ | |
32ddf007 VS |
30092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30094 | #define $ac_func innocuous_$ac_func | |
30095 | ||
af15babd | 30096 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30097 | which can conflict with char $ac_func (); below. |
30098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30099 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30100 | |
e6cc62c6 VS |
30101 | #ifdef __STDC__ |
30102 | # include <limits.h> | |
30103 | #else | |
30104 | # include <assert.h> | |
30105 | #endif | |
32ddf007 VS |
30106 | |
30107 | #undef $ac_func | |
30108 | ||
af15babd | 30109 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30110 | #ifdef __cplusplus |
30111 | extern "C" | |
30112 | { | |
30113 | #endif | |
af15babd | 30114 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30115 | builtin and then its argument prototype would still apply. */ |
30116 | char $ac_func (); | |
af15babd VZ |
30117 | /* The GNU C library defines this for functions which it implements |
30118 | to always fail with ENOSYS. Some functions are actually named | |
30119 | something starting with __ and the normal name is an alias. */ | |
30120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30121 | choke me | |
30122 | #else | |
e6cc62c6 VS |
30123 | char (*f) () = $ac_func; |
30124 | #endif | |
30125 | #ifdef __cplusplus | |
30126 | } | |
af15babd VZ |
30127 | #endif |
30128 | ||
e6cc62c6 VS |
30129 | int |
30130 | main () | |
30131 | { | |
30132 | return f != $ac_func; | |
30133 | ; | |
30134 | return 0; | |
30135 | } | |
30136 | _ACEOF | |
30137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30139 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30140 | ac_status=$? |
32ddf007 VS |
30141 | grep -v '^ *+' conftest.er1 >conftest.err |
30142 | rm -f conftest.er1 | |
30143 | cat conftest.err >&5 | |
e6cc62c6 VS |
30144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30145 | (exit $ac_status); } && | |
e1293dcf | 30146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30148 | (eval $ac_try) 2>&5 | |
30149 | ac_status=$? | |
30150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30151 | (exit $ac_status); }; } && | |
30152 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30154 | (eval $ac_try) 2>&5 | |
30155 | ac_status=$? | |
30156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30157 | (exit $ac_status); }; }; then | |
30158 | eval "$as_ac_var=yes" | |
30159 | else | |
30160 | echo "$as_me: failed program was:" >&5 | |
30161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30162 | ||
30163 | eval "$as_ac_var=no" | |
30164 | fi | |
32ddf007 VS |
30165 | rm -f conftest.err conftest.$ac_objext \ |
30166 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30167 | fi |
30168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30170 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30171 | cat >>confdefs.h <<_ACEOF | |
30172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30173 | _ACEOF | |
4f14bcd8 | 30174 | break |
af15babd VZ |
30175 | fi |
30176 | done | |
30177 | ||
8284b0c5 | 30178 | |
4f14bcd8 | 30179 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
30180 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
30181 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
30182 | wxUSE_SNGLINST_CHECKER=no |
30183 | fi | |
30184 | fi | |
af15babd | 30185 | |
e6cc62c6 | 30186 | |
4f14bcd8 | 30187 | for ac_func in timegm |
af15babd | 30188 | do |
e6cc62c6 VS |
30189 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30190 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30191 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30192 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30194 | else | |
30195 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30196 | /* confdefs.h. */ |
30197 | _ACEOF | |
30198 | cat confdefs.h >>conftest.$ac_ext | |
30199 | cat >>conftest.$ac_ext <<_ACEOF | |
30200 | /* end confdefs.h. */ | |
32ddf007 VS |
30201 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30203 | #define $ac_func innocuous_$ac_func | |
30204 | ||
af15babd | 30205 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30206 | which can conflict with char $ac_func (); below. |
30207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30208 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30209 | |
e6cc62c6 VS |
30210 | #ifdef __STDC__ |
30211 | # include <limits.h> | |
30212 | #else | |
30213 | # include <assert.h> | |
30214 | #endif | |
32ddf007 VS |
30215 | |
30216 | #undef $ac_func | |
30217 | ||
af15babd | 30218 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30219 | #ifdef __cplusplus |
30220 | extern "C" | |
30221 | { | |
30222 | #endif | |
af15babd | 30223 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30224 | builtin and then its argument prototype would still apply. */ |
30225 | char $ac_func (); | |
af15babd VZ |
30226 | /* The GNU C library defines this for functions which it implements |
30227 | to always fail with ENOSYS. Some functions are actually named | |
30228 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
30229 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
30230 | choke me | |
30231 | #else | |
e6cc62c6 VS |
30232 | char (*f) () = $ac_func; |
30233 | #endif | |
30234 | #ifdef __cplusplus | |
30235 | } | |
247f5006 VZ |
30236 | #endif |
30237 | ||
e6cc62c6 VS |
30238 | int |
30239 | main () | |
30240 | { | |
30241 | return f != $ac_func; | |
30242 | ; | |
30243 | return 0; | |
30244 | } | |
30245 | _ACEOF | |
30246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30248 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30249 | ac_status=$? |
32ddf007 VS |
30250 | grep -v '^ *+' conftest.er1 >conftest.err |
30251 | rm -f conftest.er1 | |
30252 | cat conftest.err >&5 | |
e6cc62c6 VS |
30253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30254 | (exit $ac_status); } && | |
e1293dcf | 30255 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30257 | (eval $ac_try) 2>&5 | |
30258 | ac_status=$? | |
30259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30260 | (exit $ac_status); }; } && | |
30261 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30263 | (eval $ac_try) 2>&5 | |
30264 | ac_status=$? | |
30265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30266 | (exit $ac_status); }; }; then | |
30267 | eval "$as_ac_var=yes" | |
30268 | else | |
30269 | echo "$as_me: failed program was:" >&5 | |
30270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30271 | ||
30272 | eval "$as_ac_var=no" | |
30273 | fi | |
32ddf007 VS |
30274 | rm -f conftest.err conftest.$ac_objext \ |
30275 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30276 | fi |
30277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30279 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30280 | cat >>confdefs.h <<_ACEOF | |
30281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30282 | _ACEOF | |
703e0a69 | 30283 | |
af15babd VZ |
30284 | fi |
30285 | done | |
30286 | ||
8284b0c5 | 30287 | |
e6cc62c6 VS |
30288 | |
30289 | ||
4f14bcd8 | 30290 | for ac_func in putenv setenv |
10f2d63a | 30291 | do |
e6cc62c6 VS |
30292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30293 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30295 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30297 | else | |
30298 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30299 | /* confdefs.h. */ |
30300 | _ACEOF | |
30301 | cat confdefs.h >>conftest.$ac_ext | |
30302 | cat >>conftest.$ac_ext <<_ACEOF | |
30303 | /* end confdefs.h. */ | |
32ddf007 VS |
30304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30306 | #define $ac_func innocuous_$ac_func | |
30307 | ||
af15babd | 30308 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30309 | which can conflict with char $ac_func (); below. |
30310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30311 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30312 | |
e6cc62c6 VS |
30313 | #ifdef __STDC__ |
30314 | # include <limits.h> | |
30315 | #else | |
30316 | # include <assert.h> | |
30317 | #endif | |
32ddf007 VS |
30318 | |
30319 | #undef $ac_func | |
30320 | ||
af15babd | 30321 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30322 | #ifdef __cplusplus |
30323 | extern "C" | |
30324 | { | |
30325 | #endif | |
af15babd | 30326 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30327 | builtin and then its argument prototype would still apply. */ |
30328 | char $ac_func (); | |
af15babd VZ |
30329 | /* The GNU C library defines this for functions which it implements |
30330 | to always fail with ENOSYS. Some functions are actually named | |
30331 | something starting with __ and the normal name is an alias. */ | |
30332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30333 | choke me | |
30334 | #else | |
e6cc62c6 VS |
30335 | char (*f) () = $ac_func; |
30336 | #endif | |
30337 | #ifdef __cplusplus | |
30338 | } | |
af15babd VZ |
30339 | #endif |
30340 | ||
e6cc62c6 VS |
30341 | int |
30342 | main () | |
30343 | { | |
30344 | return f != $ac_func; | |
30345 | ; | |
30346 | return 0; | |
30347 | } | |
30348 | _ACEOF | |
30349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30351 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30352 | ac_status=$? |
32ddf007 VS |
30353 | grep -v '^ *+' conftest.er1 >conftest.err |
30354 | rm -f conftest.er1 | |
30355 | cat conftest.err >&5 | |
e6cc62c6 VS |
30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30357 | (exit $ac_status); } && | |
e1293dcf | 30358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30360 | (eval $ac_try) 2>&5 | |
30361 | ac_status=$? | |
30362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30363 | (exit $ac_status); }; } && | |
30364 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30366 | (eval $ac_try) 2>&5 | |
30367 | ac_status=$? | |
30368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30369 | (exit $ac_status); }; }; then | |
30370 | eval "$as_ac_var=yes" | |
30371 | else | |
30372 | echo "$as_me: failed program was:" >&5 | |
30373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30374 | ||
30375 | eval "$as_ac_var=no" | |
30376 | fi | |
32ddf007 VS |
30377 | rm -f conftest.err conftest.$ac_objext \ |
30378 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30379 | fi |
30380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30383 | cat >>confdefs.h <<_ACEOF | |
30384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30385 | _ACEOF | |
4f14bcd8 | 30386 | break |
af15babd | 30387 | fi |
af15babd VZ |
30388 | done |
30389 | ||
8284b0c5 | 30390 | |
4f14bcd8 GD |
30391 | HAVE_SOME_SLEEP_FUNC=0 |
30392 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 30393 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30394 | #define HAVE_SLEEP 1 |
e6cc62c6 | 30395 | _ACEOF |
af15babd | 30396 | |
4f14bcd8 | 30397 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30398 | fi |
30399 | ||
4f14bcd8 | 30400 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 30401 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30402 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30403 | _ACEOF |
10f2d63a | 30404 | |
4f14bcd8 | 30405 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30406 | fi |
30407 | ||
4f14bcd8 GD |
30408 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
30409 | POSIX4_LINK= | |
e6cc62c6 VS |
30410 | |
30411 | for ac_func in nanosleep | |
4f14bcd8 | 30412 | do |
e6cc62c6 VS |
30413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30418 | else | |
30419 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30420 | /* confdefs.h. */ |
30421 | _ACEOF | |
30422 | cat confdefs.h >>conftest.$ac_ext | |
30423 | cat >>conftest.$ac_ext <<_ACEOF | |
30424 | /* end confdefs.h. */ | |
32ddf007 VS |
30425 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30427 | #define $ac_func innocuous_$ac_func | |
30428 | ||
4f14bcd8 | 30429 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30430 | which can conflict with char $ac_func (); below. |
30431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30432 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30433 | |
e6cc62c6 VS |
30434 | #ifdef __STDC__ |
30435 | # include <limits.h> | |
30436 | #else | |
30437 | # include <assert.h> | |
30438 | #endif | |
32ddf007 VS |
30439 | |
30440 | #undef $ac_func | |
30441 | ||
10f2d63a | 30442 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30443 | #ifdef __cplusplus |
30444 | extern "C" | |
30445 | { | |
30446 | #endif | |
10f2d63a | 30447 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30448 | builtin and then its argument prototype would still apply. */ |
30449 | char $ac_func (); | |
4f14bcd8 GD |
30450 | /* The GNU C library defines this for functions which it implements |
30451 | to always fail with ENOSYS. Some functions are actually named | |
30452 | something starting with __ and the normal name is an alias. */ | |
30453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30454 | choke me | |
30455 | #else | |
e6cc62c6 VS |
30456 | char (*f) () = $ac_func; |
30457 | #endif | |
30458 | #ifdef __cplusplus | |
30459 | } | |
4f14bcd8 GD |
30460 | #endif |
30461 | ||
e6cc62c6 VS |
30462 | int |
30463 | main () | |
30464 | { | |
30465 | return f != $ac_func; | |
30466 | ; | |
30467 | return 0; | |
30468 | } | |
30469 | _ACEOF | |
30470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30472 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30473 | ac_status=$? |
32ddf007 VS |
30474 | grep -v '^ *+' conftest.er1 >conftest.err |
30475 | rm -f conftest.er1 | |
30476 | cat conftest.err >&5 | |
e6cc62c6 VS |
30477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30478 | (exit $ac_status); } && | |
e1293dcf | 30479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30481 | (eval $ac_try) 2>&5 | |
30482 | ac_status=$? | |
30483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30484 | (exit $ac_status); }; } && | |
30485 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30487 | (eval $ac_try) 2>&5 | |
30488 | ac_status=$? | |
30489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30490 | (exit $ac_status); }; }; then | |
30491 | eval "$as_ac_var=yes" | |
30492 | else | |
30493 | echo "$as_me: failed program was:" >&5 | |
30494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30495 | ||
30496 | eval "$as_ac_var=no" | |
30497 | fi | |
32ddf007 VS |
30498 | rm -f conftest.err conftest.$ac_objext \ |
30499 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30500 | fi |
30501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30504 | cat >>confdefs.h <<_ACEOF | |
30505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30506 | _ACEOF | |
30507 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30508 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30509 | _ACEOF |
4f14bcd8 | 30510 | |
10f2d63a | 30511 | else |
e6cc62c6 VS |
30512 | |
30513 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30514 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30515 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30517 | else |
e6cc62c6 | 30518 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30519 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30520 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30521 | /* confdefs.h. */ |
30522 | _ACEOF | |
30523 | cat confdefs.h >>conftest.$ac_ext | |
30524 | cat >>conftest.$ac_ext <<_ACEOF | |
30525 | /* end confdefs.h. */ | |
30526 | ||
10f2d63a | 30527 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30528 | #ifdef __cplusplus |
30529 | extern "C" | |
30530 | #endif | |
10f2d63a | 30531 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30532 | builtin and then its argument prototype would still apply. */ |
30533 | char nanosleep (); | |
30534 | int | |
30535 | main () | |
30536 | { | |
30537 | nanosleep (); | |
30538 | ; | |
30539 | return 0; | |
30540 | } | |
30541 | _ACEOF | |
30542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30544 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30545 | ac_status=$? |
32ddf007 VS |
30546 | grep -v '^ *+' conftest.er1 >conftest.err |
30547 | rm -f conftest.er1 | |
30548 | cat conftest.err >&5 | |
e6cc62c6 VS |
30549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30550 | (exit $ac_status); } && | |
e1293dcf | 30551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30553 | (eval $ac_try) 2>&5 | |
30554 | ac_status=$? | |
30555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30556 | (exit $ac_status); }; } && | |
30557 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30559 | (eval $ac_try) 2>&5 | |
30560 | ac_status=$? | |
30561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30562 | (exit $ac_status); }; }; then | |
30563 | ac_cv_lib_posix4_nanosleep=yes | |
30564 | else | |
30565 | echo "$as_me: failed program was:" >&5 | |
30566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30567 | ||
30568 | ac_cv_lib_posix4_nanosleep=no | |
30569 | fi | |
32ddf007 VS |
30570 | rm -f conftest.err conftest.$ac_objext \ |
30571 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30572 | LIBS=$ac_check_lib_save_LIBS |
30573 | fi | |
30574 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30575 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30576 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30577 | ||
30578 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30579 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30580 | _ACEOF |
4f14bcd8 | 30581 | |
3d63bc3a | 30582 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 30583 | |
10f2d63a | 30584 | else |
10f2d63a | 30585 | |
e6cc62c6 VS |
30586 | |
30587 | for ac_func in usleep | |
4f14bcd8 | 30588 | do |
e6cc62c6 VS |
30589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30590 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30592 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30594 | else | |
30595 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30596 | /* confdefs.h. */ |
30597 | _ACEOF | |
30598 | cat confdefs.h >>conftest.$ac_ext | |
30599 | cat >>conftest.$ac_ext <<_ACEOF | |
30600 | /* end confdefs.h. */ | |
32ddf007 VS |
30601 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30603 | #define $ac_func innocuous_$ac_func | |
30604 | ||
4f14bcd8 | 30605 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30606 | which can conflict with char $ac_func (); below. |
30607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30608 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30609 | |
e6cc62c6 VS |
30610 | #ifdef __STDC__ |
30611 | # include <limits.h> | |
30612 | #else | |
30613 | # include <assert.h> | |
30614 | #endif | |
32ddf007 VS |
30615 | |
30616 | #undef $ac_func | |
30617 | ||
4f14bcd8 | 30618 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30619 | #ifdef __cplusplus |
30620 | extern "C" | |
30621 | { | |
30622 | #endif | |
4f14bcd8 | 30623 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30624 | builtin and then its argument prototype would still apply. */ |
30625 | char $ac_func (); | |
4f14bcd8 GD |
30626 | /* The GNU C library defines this for functions which it implements |
30627 | to always fail with ENOSYS. Some functions are actually named | |
30628 | something starting with __ and the normal name is an alias. */ | |
30629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30630 | choke me | |
30631 | #else | |
e6cc62c6 VS |
30632 | char (*f) () = $ac_func; |
30633 | #endif | |
30634 | #ifdef __cplusplus | |
30635 | } | |
4f14bcd8 GD |
30636 | #endif |
30637 | ||
e6cc62c6 VS |
30638 | int |
30639 | main () | |
30640 | { | |
30641 | return f != $ac_func; | |
30642 | ; | |
30643 | return 0; | |
30644 | } | |
30645 | _ACEOF | |
30646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30648 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30649 | ac_status=$? |
32ddf007 VS |
30650 | grep -v '^ *+' conftest.er1 >conftest.err |
30651 | rm -f conftest.er1 | |
30652 | cat conftest.err >&5 | |
e6cc62c6 VS |
30653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30654 | (exit $ac_status); } && | |
e1293dcf | 30655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30657 | (eval $ac_try) 2>&5 | |
30658 | ac_status=$? | |
30659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30660 | (exit $ac_status); }; } && | |
30661 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30663 | (eval $ac_try) 2>&5 | |
30664 | ac_status=$? | |
30665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30666 | (exit $ac_status); }; }; then | |
30667 | eval "$as_ac_var=yes" | |
30668 | else | |
30669 | echo "$as_me: failed program was:" >&5 | |
30670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30671 | ||
30672 | eval "$as_ac_var=no" | |
30673 | fi | |
32ddf007 VS |
30674 | rm -f conftest.err conftest.$ac_objext \ |
30675 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30676 | fi |
30677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30679 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30680 | cat >>confdefs.h <<_ACEOF | |
30681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30682 | _ACEOF | |
30683 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30684 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30685 | _ACEOF |
4f14bcd8 | 30686 | |
698dcdb6 | 30687 | else |
e6cc62c6 VS |
30688 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
30689 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30690 | ||
10f2d63a | 30691 | fi |
4f14bcd8 | 30692 | done |
10f2d63a | 30693 | |
e6cc62c6 VS |
30694 | |
30695 | ||
6232543b | 30696 | fi |
10f2d63a | 30697 | |
e6cc62c6 VS |
30698 | |
30699 | ||
1e487827 | 30700 | fi |
4f14bcd8 | 30701 | done |
703e0a69 | 30702 | |
10f2d63a VZ |
30703 | fi |
30704 | ||
e6cc62c6 VS |
30705 | |
30706 | ||
4f14bcd8 | 30707 | for ac_func in uname gethostname |
70846f0a | 30708 | do |
e6cc62c6 VS |
30709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30710 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30712 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30714 | else | |
30715 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30716 | /* confdefs.h. */ |
30717 | _ACEOF | |
30718 | cat confdefs.h >>conftest.$ac_ext | |
30719 | cat >>conftest.$ac_ext <<_ACEOF | |
30720 | /* end confdefs.h. */ | |
32ddf007 VS |
30721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30723 | #define $ac_func innocuous_$ac_func | |
30724 | ||
70846f0a | 30725 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30726 | which can conflict with char $ac_func (); below. |
30727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30728 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30729 | |
e6cc62c6 VS |
30730 | #ifdef __STDC__ |
30731 | # include <limits.h> | |
30732 | #else | |
30733 | # include <assert.h> | |
30734 | #endif | |
32ddf007 VS |
30735 | |
30736 | #undef $ac_func | |
30737 | ||
70846f0a | 30738 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30739 | #ifdef __cplusplus |
30740 | extern "C" | |
30741 | { | |
30742 | #endif | |
70846f0a | 30743 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30744 | builtin and then its argument prototype would still apply. */ |
30745 | char $ac_func (); | |
70846f0a VZ |
30746 | /* The GNU C library defines this for functions which it implements |
30747 | to always fail with ENOSYS. Some functions are actually named | |
30748 | something starting with __ and the normal name is an alias. */ | |
30749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30750 | choke me | |
30751 | #else | |
e6cc62c6 VS |
30752 | char (*f) () = $ac_func; |
30753 | #endif | |
30754 | #ifdef __cplusplus | |
30755 | } | |
70846f0a VZ |
30756 | #endif |
30757 | ||
e6cc62c6 VS |
30758 | int |
30759 | main () | |
30760 | { | |
30761 | return f != $ac_func; | |
30762 | ; | |
30763 | return 0; | |
30764 | } | |
30765 | _ACEOF | |
30766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30768 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30769 | ac_status=$? |
32ddf007 VS |
30770 | grep -v '^ *+' conftest.er1 >conftest.err |
30771 | rm -f conftest.er1 | |
30772 | cat conftest.err >&5 | |
e6cc62c6 VS |
30773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30774 | (exit $ac_status); } && | |
e1293dcf | 30775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30777 | (eval $ac_try) 2>&5 | |
30778 | ac_status=$? | |
30779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30780 | (exit $ac_status); }; } && | |
30781 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30783 | (eval $ac_try) 2>&5 | |
30784 | ac_status=$? | |
30785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30786 | (exit $ac_status); }; }; then | |
30787 | eval "$as_ac_var=yes" | |
30788 | else | |
30789 | echo "$as_me: failed program was:" >&5 | |
30790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30791 | ||
30792 | eval "$as_ac_var=no" | |
30793 | fi | |
32ddf007 VS |
30794 | rm -f conftest.err conftest.$ac_objext \ |
30795 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30796 | fi |
30797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30800 | cat >>confdefs.h <<_ACEOF | |
30801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30802 | _ACEOF | |
4f14bcd8 | 30803 | break |
70846f0a VZ |
30804 | fi |
30805 | done | |
30806 | ||
8284b0c5 MB |
30807 | |
30808 | ||
e6cc62c6 VS |
30809 | |
30810 | ac_ext=cc | |
4f14bcd8 | 30811 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30812 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30813 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30814 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30815 | ||
8284b0c5 | 30816 | |
4f14bcd8 GD |
30817 | |
30818 | for ac_func in strtok_r | |
10f2d63a | 30819 | do |
e6cc62c6 VS |
30820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30825 | else | |
30826 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30827 | /* confdefs.h. */ |
30828 | _ACEOF | |
30829 | cat confdefs.h >>conftest.$ac_ext | |
30830 | cat >>conftest.$ac_ext <<_ACEOF | |
30831 | /* end confdefs.h. */ | |
32ddf007 VS |
30832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30834 | #define $ac_func innocuous_$ac_func | |
30835 | ||
4f14bcd8 | 30836 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30837 | which can conflict with char $ac_func (); below. |
30838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30839 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30840 | |
e6cc62c6 VS |
30841 | #ifdef __STDC__ |
30842 | # include <limits.h> | |
30843 | #else | |
30844 | # include <assert.h> | |
30845 | #endif | |
32ddf007 VS |
30846 | |
30847 | #undef $ac_func | |
30848 | ||
4f14bcd8 GD |
30849 | /* Override any gcc2 internal prototype to avoid an error. */ |
30850 | #ifdef __cplusplus | |
30851 | extern "C" | |
e6cc62c6 | 30852 | { |
4f14bcd8 GD |
30853 | #endif |
30854 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
30855 | builtin and then its argument prototype would still apply. */ |
30856 | char $ac_func (); | |
4f14bcd8 GD |
30857 | /* The GNU C library defines this for functions which it implements |
30858 | to always fail with ENOSYS. Some functions are actually named | |
30859 | something starting with __ and the normal name is an alias. */ | |
30860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30861 | choke me | |
30862 | #else | |
e6cc62c6 VS |
30863 | char (*f) () = $ac_func; |
30864 | #endif | |
30865 | #ifdef __cplusplus | |
30866 | } | |
4f14bcd8 GD |
30867 | #endif |
30868 | ||
e6cc62c6 VS |
30869 | int |
30870 | main () | |
30871 | { | |
30872 | return f != $ac_func; | |
30873 | ; | |
30874 | return 0; | |
30875 | } | |
30876 | _ACEOF | |
30877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30879 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30880 | ac_status=$? |
32ddf007 VS |
30881 | grep -v '^ *+' conftest.er1 >conftest.err |
30882 | rm -f conftest.er1 | |
30883 | cat conftest.err >&5 | |
e6cc62c6 VS |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30885 | (exit $ac_status); } && | |
e1293dcf | 30886 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30888 | (eval $ac_try) 2>&5 | |
30889 | ac_status=$? | |
30890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30891 | (exit $ac_status); }; } && | |
30892 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30894 | (eval $ac_try) 2>&5 | |
30895 | ac_status=$? | |
30896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30897 | (exit $ac_status); }; }; then | |
30898 | eval "$as_ac_var=yes" | |
30899 | else | |
30900 | echo "$as_me: failed program was:" >&5 | |
30901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30902 | ||
30903 | eval "$as_ac_var=no" | |
30904 | fi | |
32ddf007 VS |
30905 | rm -f conftest.err conftest.$ac_objext \ |
30906 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30907 | fi |
30908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30911 | cat >>confdefs.h <<_ACEOF | |
30912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30913 | _ACEOF | |
4f14bcd8 | 30914 | |
10f2d63a VZ |
30915 | fi |
30916 | done | |
30917 | ||
8284b0c5 | 30918 | |
4f14bcd8 | 30919 | ac_ext=c |
4f14bcd8 | 30920 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
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 | |
7b4a847f | 30924 | |
5c6fa7d2 | 30925 | |
8284b0c5 | 30926 | INET_LINK= |
e6cc62c6 | 30927 | |
4f14bcd8 GD |
30928 | for ac_func in inet_addr |
30929 | do | |
e6cc62c6 VS |
30930 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30931 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30932 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30933 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30935 | else | |
30936 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30937 | /* confdefs.h. */ |
30938 | _ACEOF | |
30939 | cat confdefs.h >>conftest.$ac_ext | |
30940 | cat >>conftest.$ac_ext <<_ACEOF | |
30941 | /* end confdefs.h. */ | |
32ddf007 VS |
30942 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30944 | #define $ac_func innocuous_$ac_func | |
30945 | ||
4f14bcd8 | 30946 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30947 | which can conflict with char $ac_func (); below. |
30948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30949 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30950 | |
e6cc62c6 VS |
30951 | #ifdef __STDC__ |
30952 | # include <limits.h> | |
30953 | #else | |
30954 | # include <assert.h> | |
30955 | #endif | |
32ddf007 VS |
30956 | |
30957 | #undef $ac_func | |
30958 | ||
10f2d63a | 30959 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30960 | #ifdef __cplusplus |
30961 | extern "C" | |
30962 | { | |
30963 | #endif | |
10f2d63a | 30964 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30965 | builtin and then its argument prototype would still apply. */ |
30966 | char $ac_func (); | |
4f14bcd8 GD |
30967 | /* The GNU C library defines this for functions which it implements |
30968 | to always fail with ENOSYS. Some functions are actually named | |
30969 | something starting with __ and the normal name is an alias. */ | |
30970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30971 | choke me | |
30972 | #else | |
e6cc62c6 VS |
30973 | char (*f) () = $ac_func; |
30974 | #endif | |
30975 | #ifdef __cplusplus | |
30976 | } | |
4f14bcd8 GD |
30977 | #endif |
30978 | ||
e6cc62c6 VS |
30979 | int |
30980 | main () | |
30981 | { | |
30982 | return f != $ac_func; | |
30983 | ; | |
30984 | return 0; | |
30985 | } | |
30986 | _ACEOF | |
30987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30989 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30990 | ac_status=$? |
32ddf007 VS |
30991 | grep -v '^ *+' conftest.er1 >conftest.err |
30992 | rm -f conftest.er1 | |
30993 | cat conftest.err >&5 | |
e6cc62c6 VS |
30994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30995 | (exit $ac_status); } && | |
e1293dcf | 30996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30998 | (eval $ac_try) 2>&5 | |
30999 | ac_status=$? | |
31000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31001 | (exit $ac_status); }; } && | |
31002 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31004 | (eval $ac_try) 2>&5 | |
31005 | ac_status=$? | |
31006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31007 | (exit $ac_status); }; }; then | |
31008 | eval "$as_ac_var=yes" | |
31009 | else | |
31010 | echo "$as_me: failed program was:" >&5 | |
31011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31012 | ||
31013 | eval "$as_ac_var=no" | |
31014 | fi | |
32ddf007 VS |
31015 | rm -f conftest.err conftest.$ac_objext \ |
31016 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31017 | fi |
31018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31019 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31020 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31021 | cat >>confdefs.h <<_ACEOF | |
31022 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31023 | _ACEOF | |
31024 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31025 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 31026 | _ACEOF |
10f2d63a VZ |
31027 | |
31028 | else | |
e6cc62c6 VS |
31029 | |
31030 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31031 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31032 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31034 | else |
e6cc62c6 | 31035 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31036 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 31037 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31038 | /* confdefs.h. */ |
31039 | _ACEOF | |
31040 | cat confdefs.h >>conftest.$ac_ext | |
31041 | cat >>conftest.$ac_ext <<_ACEOF | |
31042 | /* end confdefs.h. */ | |
31043 | ||
10f2d63a | 31044 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31045 | #ifdef __cplusplus |
31046 | extern "C" | |
31047 | #endif | |
10f2d63a | 31048 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31049 | builtin and then its argument prototype would still apply. */ |
31050 | char inet_addr (); | |
31051 | int | |
31052 | main () | |
31053 | { | |
31054 | inet_addr (); | |
31055 | ; | |
31056 | return 0; | |
31057 | } | |
31058 | _ACEOF | |
31059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31061 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31062 | ac_status=$? |
32ddf007 VS |
31063 | grep -v '^ *+' conftest.er1 >conftest.err |
31064 | rm -f conftest.er1 | |
31065 | cat conftest.err >&5 | |
e6cc62c6 VS |
31066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31067 | (exit $ac_status); } && | |
e1293dcf | 31068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31070 | (eval $ac_try) 2>&5 | |
31071 | ac_status=$? | |
31072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31073 | (exit $ac_status); }; } && | |
31074 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31076 | (eval $ac_try) 2>&5 | |
31077 | ac_status=$? | |
31078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31079 | (exit $ac_status); }; }; then | |
31080 | ac_cv_lib_nsl_inet_addr=yes | |
31081 | else | |
31082 | echo "$as_me: failed program was:" >&5 | |
31083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31084 | ||
31085 | ac_cv_lib_nsl_inet_addr=no | |
31086 | fi | |
32ddf007 VS |
31087 | rm -f conftest.err conftest.$ac_objext \ |
31088 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31089 | LIBS=$ac_check_lib_save_LIBS |
31090 | fi | |
31091 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31092 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31093 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 31094 | INET_LINK="nsl" |
10f2d63a | 31095 | else |
0e012a93 VZ |
31096 | |
31097 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
31098 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
31099 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31101 | else |
e6cc62c6 | 31102 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31103 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 31104 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31105 | /* confdefs.h. */ |
31106 | _ACEOF | |
31107 | cat confdefs.h >>conftest.$ac_ext | |
31108 | cat >>conftest.$ac_ext <<_ACEOF | |
31109 | /* end confdefs.h. */ | |
31110 | ||
5c6fa7d2 | 31111 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31112 | #ifdef __cplusplus |
31113 | extern "C" | |
31114 | #endif | |
5c6fa7d2 | 31115 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31116 | builtin and then its argument prototype would still apply. */ |
31117 | char inet_addr (); | |
31118 | int | |
31119 | main () | |
31120 | { | |
31121 | inet_addr (); | |
31122 | ; | |
31123 | return 0; | |
31124 | } | |
31125 | _ACEOF | |
31126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31128 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31129 | ac_status=$? |
32ddf007 VS |
31130 | grep -v '^ *+' conftest.er1 >conftest.err |
31131 | rm -f conftest.er1 | |
31132 | cat conftest.err >&5 | |
e6cc62c6 VS |
31133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31134 | (exit $ac_status); } && | |
e1293dcf | 31135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
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); }; } && | |
31141 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31143 | (eval $ac_try) 2>&5 | |
31144 | ac_status=$? | |
31145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31146 | (exit $ac_status); }; }; then | |
31147 | ac_cv_lib_resolv_inet_addr=yes | |
31148 | else | |
31149 | echo "$as_me: failed program was:" >&5 | |
31150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31151 | ||
31152 | ac_cv_lib_resolv_inet_addr=no | |
31153 | fi | |
32ddf007 VS |
31154 | rm -f conftest.err conftest.$ac_objext \ |
31155 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31156 | LIBS=$ac_check_lib_save_LIBS |
31157 | fi | |
31158 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31159 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31160 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 31161 | INET_LINK="resolv" |
698dcdb6 | 31162 | else |
0e012a93 VZ |
31163 | |
31164 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
31165 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
31166 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 31168 | else |
e6cc62c6 | 31169 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 31170 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 31171 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31172 | /* confdefs.h. */ |
31173 | _ACEOF | |
31174 | cat confdefs.h >>conftest.$ac_ext | |
31175 | cat >>conftest.$ac_ext <<_ACEOF | |
31176 | /* end confdefs.h. */ | |
31177 | ||
3c011993 | 31178 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31179 | #ifdef __cplusplus |
31180 | extern "C" | |
31181 | #endif | |
3c011993 | 31182 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31183 | builtin and then its argument prototype would still apply. */ |
31184 | char inet_addr (); | |
31185 | int | |
31186 | main () | |
31187 | { | |
31188 | inet_addr (); | |
31189 | ; | |
31190 | return 0; | |
31191 | } | |
31192 | _ACEOF | |
31193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31195 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31196 | ac_status=$? |
32ddf007 VS |
31197 | grep -v '^ *+' conftest.er1 >conftest.err |
31198 | rm -f conftest.er1 | |
31199 | cat conftest.err >&5 | |
e6cc62c6 VS |
31200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31201 | (exit $ac_status); } && | |
e1293dcf | 31202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31204 | (eval $ac_try) 2>&5 | |
31205 | ac_status=$? | |
31206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31207 | (exit $ac_status); }; } && | |
31208 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31210 | (eval $ac_try) 2>&5 | |
31211 | ac_status=$? | |
31212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31213 | (exit $ac_status); }; }; then | |
31214 | ac_cv_lib_socket_inet_addr=yes | |
31215 | else | |
31216 | echo "$as_me: failed program was:" >&5 | |
31217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31218 | ||
31219 | ac_cv_lib_socket_inet_addr=no | |
31220 | fi | |
32ddf007 VS |
31221 | rm -f conftest.err conftest.$ac_objext \ |
31222 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31223 | LIBS=$ac_check_lib_save_LIBS |
31224 | fi | |
31225 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31226 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31227 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31228 | INET_LINK="socket" | |
4f14bcd8 | 31229 | |
8284b0c5 | 31230 | fi |
e6cc62c6 | 31231 | |
698dcdb6 | 31232 | |
0e012a93 | 31233 | |
7b4a847f | 31234 | fi |
e6cc62c6 VS |
31235 | |
31236 | ||
0e012a93 | 31237 | |
a0b9e27f | 31238 | fi |
579d8138 | 31239 | |
e6cc62c6 VS |
31240 | |
31241 | ||
5c6fa7d2 | 31242 | fi |
e6cc62c6 VS |
31243 | done |
31244 | ||
31245 | ||
31246 | ||
31247 | for ac_func in inet_aton | |
31248 | do | |
31249 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31250 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31251 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31252 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31254 | else | |
31255 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31256 | /* confdefs.h. */ |
31257 | _ACEOF | |
31258 | cat confdefs.h >>conftest.$ac_ext | |
31259 | cat >>conftest.$ac_ext <<_ACEOF | |
31260 | /* end confdefs.h. */ | |
32ddf007 VS |
31261 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31263 | #define $ac_func innocuous_$ac_func | |
31264 | ||
e6cc62c6 VS |
31265 | /* System header to define __stub macros and hopefully few prototypes, |
31266 | which can conflict with char $ac_func (); below. | |
31267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31268 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31269 | |
e6cc62c6 VS |
31270 | #ifdef __STDC__ |
31271 | # include <limits.h> | |
31272 | #else | |
31273 | # include <assert.h> | |
31274 | #endif | |
32ddf007 VS |
31275 | |
31276 | #undef $ac_func | |
31277 | ||
e6cc62c6 VS |
31278 | /* Override any gcc2 internal prototype to avoid an error. */ |
31279 | #ifdef __cplusplus | |
31280 | extern "C" | |
31281 | { | |
31282 | #endif | |
31283 | /* We use char because int might match the return type of a gcc2 | |
31284 | builtin and then its argument prototype would still apply. */ | |
31285 | char $ac_func (); | |
31286 | /* The GNU C library defines this for functions which it implements | |
31287 | to always fail with ENOSYS. Some functions are actually named | |
31288 | something starting with __ and the normal name is an alias. */ | |
31289 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31290 | choke me | |
31291 | #else | |
31292 | char (*f) () = $ac_func; | |
31293 | #endif | |
31294 | #ifdef __cplusplus | |
31295 | } | |
31296 | #endif | |
31297 | ||
31298 | int | |
31299 | main () | |
31300 | { | |
31301 | return f != $ac_func; | |
31302 | ; | |
31303 | return 0; | |
31304 | } | |
31305 | _ACEOF | |
31306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31308 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31309 | ac_status=$? |
32ddf007 VS |
31310 | grep -v '^ *+' conftest.er1 >conftest.err |
31311 | rm -f conftest.er1 | |
31312 | cat conftest.err >&5 | |
e6cc62c6 VS |
31313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31314 | (exit $ac_status); } && | |
e1293dcf | 31315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31317 | (eval $ac_try) 2>&5 | |
31318 | ac_status=$? | |
31319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31320 | (exit $ac_status); }; } && | |
31321 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31323 | (eval $ac_try) 2>&5 | |
31324 | ac_status=$? | |
31325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31326 | (exit $ac_status); }; }; then | |
31327 | eval "$as_ac_var=yes" | |
31328 | else | |
31329 | echo "$as_me: failed program was:" >&5 | |
31330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31331 | ||
31332 | eval "$as_ac_var=no" | |
31333 | fi | |
32ddf007 VS |
31334 | rm -f conftest.err conftest.$ac_objext \ |
31335 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31336 | fi |
31337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31338 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31339 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31340 | cat >>confdefs.h <<_ACEOF | |
31341 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31342 | _ACEOF | |
31343 | cat >>confdefs.h <<\_ACEOF | |
31344 | #define HAVE_INET_ATON 1 | |
31345 | _ACEOF | |
31346 | ||
31347 | else | |
31348 | ||
31349 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31350 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31351 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31352 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31354 | else | |
31355 | ac_check_lib_save_LIBS=$LIBS | |
31356 | LIBS="-l$INET_LINK $LIBS" | |
31357 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31358 | /* confdefs.h. */ |
31359 | _ACEOF | |
31360 | cat confdefs.h >>conftest.$ac_ext | |
31361 | cat >>conftest.$ac_ext <<_ACEOF | |
31362 | /* end confdefs.h. */ | |
31363 | ||
31364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31365 | #ifdef __cplusplus | |
31366 | extern "C" | |
31367 | #endif | |
31368 | /* We use char because int might match the return type of a gcc2 | |
31369 | builtin and then its argument prototype would still apply. */ | |
31370 | char inet_aton (); | |
31371 | int | |
31372 | main () | |
31373 | { | |
31374 | inet_aton (); | |
31375 | ; | |
31376 | return 0; | |
31377 | } | |
31378 | _ACEOF | |
31379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31381 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31382 | ac_status=$? |
32ddf007 VS |
31383 | grep -v '^ *+' conftest.er1 >conftest.err |
31384 | rm -f conftest.er1 | |
31385 | cat conftest.err >&5 | |
e6cc62c6 VS |
31386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31387 | (exit $ac_status); } && | |
e1293dcf | 31388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31390 | (eval $ac_try) 2>&5 | |
31391 | ac_status=$? | |
31392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31393 | (exit $ac_status); }; } && | |
31394 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31396 | (eval $ac_try) 2>&5 | |
31397 | ac_status=$? | |
31398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31399 | (exit $ac_status); }; }; then | |
31400 | eval "$as_ac_Lib=yes" | |
31401 | else | |
31402 | echo "$as_me: failed program was:" >&5 | |
31403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31404 | ||
31405 | eval "$as_ac_Lib=no" | |
31406 | fi | |
32ddf007 VS |
31407 | rm -f conftest.err conftest.$ac_objext \ |
31408 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31409 | LIBS=$ac_check_lib_save_LIBS |
31410 | fi | |
31411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31412 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31413 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31414 | cat >>confdefs.h <<\_ACEOF | |
31415 | #define HAVE_INET_ATON 1 | |
31416 | _ACEOF | |
52127426 | 31417 | |
a0b9e27f | 31418 | fi |
247f5006 | 31419 | |
8284b0c5 | 31420 | |
698dcdb6 | 31421 | fi |
4f14bcd8 GD |
31422 | done |
31423 | ||
8284b0c5 | 31424 | |
e6cc62c6 VS |
31425 | if test "x$INET_LINK" != "x"; then |
31426 | cat >>confdefs.h <<\_ACEOF | |
31427 | #define HAVE_INET_ADDR 1 | |
31428 | _ACEOF | |
31429 | ||
31430 | INET_LINK=" -l$INET_LINK" | |
31431 | fi | |
31432 | ||
31433 | fi | |
a0b9e27f | 31434 | |
a0b9e27f | 31435 | |
4f14bcd8 | 31436 | |
edd891e2 VS |
31437 | EXTRALIBS_ESD= |
31438 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31439 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31440 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31442 | else | |
31443 | ac_check_lib_save_LIBS=$LIBS | |
31444 | LIBS="-lesd $LIBS" | |
31445 | cat >conftest.$ac_ext <<_ACEOF | |
edd891e2 VS |
31446 | /* confdefs.h. */ |
31447 | _ACEOF | |
31448 | cat confdefs.h >>conftest.$ac_ext | |
31449 | cat >>conftest.$ac_ext <<_ACEOF | |
31450 | /* end confdefs.h. */ | |
31451 | ||
31452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31453 | #ifdef __cplusplus | |
31454 | extern "C" | |
31455 | #endif | |
31456 | /* We use char because int might match the return type of a gcc2 | |
31457 | builtin and then its argument prototype would still apply. */ | |
31458 | char esd_close (); | |
31459 | int | |
31460 | main () | |
31461 | { | |
31462 | esd_close (); | |
31463 | ; | |
31464 | return 0; | |
31465 | } | |
31466 | _ACEOF | |
31467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31469 | (eval $ac_link) 2>conftest.er1 |
edd891e2 | 31470 | ac_status=$? |
32ddf007 VS |
31471 | grep -v '^ *+' conftest.er1 >conftest.err |
31472 | rm -f conftest.er1 | |
31473 | cat conftest.err >&5 | |
edd891e2 VS |
31474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31475 | (exit $ac_status); } && | |
e1293dcf | 31476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31478 | (eval $ac_try) 2>&5 | |
31479 | ac_status=$? | |
31480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31481 | (exit $ac_status); }; } && | |
31482 | { ac_try='test -s conftest$ac_exeext' | |
edd891e2 VS |
31483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31484 | (eval $ac_try) 2>&5 | |
31485 | ac_status=$? | |
31486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31487 | (exit $ac_status); }; }; then | |
31488 | ac_cv_lib_esd_esd_close=yes | |
31489 | else | |
31490 | echo "$as_me: failed program was:" >&5 | |
31491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31492 | ||
31493 | ac_cv_lib_esd_esd_close=no | |
31494 | fi | |
32ddf007 VS |
31495 | rm -f conftest.err conftest.$ac_objext \ |
31496 | conftest$ac_exeext conftest.$ac_ext | |
edd891e2 VS |
31497 | LIBS=$ac_check_lib_save_LIBS |
31498 | fi | |
31499 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31500 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31501 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31502 | ||
31503 | ||
31504 | for ac_header in esd.h | |
31505 | do | |
31506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31512 | fi | |
edd891e2 VS |
31513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
31515 | else |
31516 | # Is the header compilable? | |
edd891e2 VS |
31517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
31518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 31519 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31520 | /* confdefs.h. */ |
31521 | _ACEOF | |
31522 | cat confdefs.h >>conftest.$ac_ext | |
31523 | cat >>conftest.$ac_ext <<_ACEOF | |
31524 | /* end confdefs.h. */ | |
31525 | $ac_includes_default | |
edd891e2 | 31526 | #include <$ac_header> |
e6cc62c6 VS |
31527 | _ACEOF |
31528 | rm -f conftest.$ac_objext | |
31529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31530 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31531 | ac_status=$? |
32ddf007 VS |
31532 | grep -v '^ *+' conftest.er1 >conftest.err |
31533 | rm -f conftest.er1 | |
31534 | cat conftest.err >&5 | |
e6cc62c6 VS |
31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31536 | (exit $ac_status); } && | |
e1293dcf | 31537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31539 | (eval $ac_try) 2>&5 | |
31540 | ac_status=$? | |
31541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31542 | (exit $ac_status); }; } && | |
31543 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31545 | (eval $ac_try) 2>&5 | |
31546 | ac_status=$? | |
31547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31548 | (exit $ac_status); }; }; then | |
31549 | ac_header_compiler=yes | |
31550 | else | |
31551 | echo "$as_me: failed program was:" >&5 | |
31552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31553 | ||
31554 | ac_header_compiler=no | |
31555 | fi | |
32ddf007 | 31556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31557 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31558 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31559 | ||
31560 | # Is the header present? | |
edd891e2 VS |
31561 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
31562 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 31563 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31564 | /* confdefs.h. */ |
31565 | _ACEOF | |
31566 | cat confdefs.h >>conftest.$ac_ext | |
31567 | cat >>conftest.$ac_ext <<_ACEOF | |
31568 | /* end confdefs.h. */ | |
edd891e2 | 31569 | #include <$ac_header> |
e6cc62c6 VS |
31570 | _ACEOF |
31571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31573 | ac_status=$? | |
31574 | grep -v '^ *+' conftest.er1 >conftest.err | |
31575 | rm -f conftest.er1 | |
31576 | cat conftest.err >&5 | |
31577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31578 | (exit $ac_status); } >/dev/null; then | |
31579 | if test -s conftest.err; then | |
31580 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 31581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31582 | else |
31583 | ac_cpp_err= | |
31584 | fi | |
a0b9e27f | 31585 | else |
e6cc62c6 VS |
31586 | ac_cpp_err=yes |
31587 | fi | |
31588 | if test -z "$ac_cpp_err"; then | |
31589 | ac_header_preproc=yes | |
31590 | else | |
31591 | echo "$as_me: failed program was:" >&5 | |
31592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31593 | ||
31594 | ac_header_preproc=no | |
31595 | fi | |
31596 | rm -f conftest.err conftest.$ac_ext | |
31597 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31598 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31599 | ||
31600 | # So? What about this header? | |
32ddf007 VS |
31601 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31602 | yes:no: ) | |
edd891e2 VS |
31603 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31604 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
31605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31606 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31607 | ac_header_preproc=yes | |
e6cc62c6 | 31608 | ;; |
32ddf007 | 31609 | no:yes:* ) |
edd891e2 VS |
31610 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31611 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
31612 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31613 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31614 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31615 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31616 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31617 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
edd891e2 VS |
31618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31619 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
31620 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31621 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31622 | ( |
31623 | cat <<\_ASBOX | |
32ddf007 VS |
31624 | ## ----------------------------------------- ## |
31625 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31626 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31627 | _ASBOX |
31628 | ) | | |
31629 | sed "s/^/$as_me: WARNING: /" >&2 | |
31630 | ;; | |
31631 | esac | |
edd891e2 VS |
31632 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
31633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31636 | else | |
32ddf007 | 31637 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 31638 | fi |
edd891e2 VS |
31639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 31641 | |
e6cc62c6 | 31642 | fi |
edd891e2 VS |
31643 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31644 | cat >>confdefs.h <<_ACEOF | |
31645 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 31646 | _ACEOF |
e6cc62c6 | 31647 | |
edd891e2 | 31648 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 31649 | |
a0b9e27f | 31650 | fi |
247f5006 | 31651 | |
edd891e2 | 31652 | done |
8284b0c5 | 31653 | |
4f14bcd8 | 31654 | |
6232543b | 31655 | fi |
10f2d63a | 31656 | |
703e0a69 | 31657 | |
8284b0c5 | 31658 | |
d19d1899 MB |
31659 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
31660 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31661 | cat >conftest.$ac_ext <<_ACEOF | |
d19d1899 MB |
31662 | /* confdefs.h. */ |
31663 | _ACEOF | |
31664 | cat confdefs.h >>conftest.$ac_ext | |
31665 | cat >>conftest.$ac_ext <<_ACEOF | |
31666 | /* end confdefs.h. */ | |
31667 | #ifdef __linux__ | |
31668 | #include <linux/cdrom.h> | |
31669 | #else | |
31670 | /* For Solaris */ | |
31671 | #include <sys/cdio.h> | |
31672 | #endif | |
31673 | ||
31674 | int | |
31675 | main () | |
31676 | { | |
31677 | struct cdrom_tocentry entry, old_entry; | |
31678 | ; | |
31679 | return 0; | |
31680 | } | |
31681 | _ACEOF | |
31682 | rm -f conftest.$ac_objext | |
31683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31684 | (eval $ac_compile) 2>conftest.er1 |
d19d1899 | 31685 | ac_status=$? |
32ddf007 VS |
31686 | grep -v '^ *+' conftest.er1 >conftest.err |
31687 | rm -f conftest.er1 | |
31688 | cat conftest.err >&5 | |
d19d1899 MB |
31689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31690 | (exit $ac_status); } && | |
e1293dcf | 31691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31693 | (eval $ac_try) 2>&5 | |
31694 | ac_status=$? | |
31695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31696 | (exit $ac_status); }; } && | |
31697 | { ac_try='test -s conftest.$ac_objext' | |
d19d1899 MB |
31698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31699 | (eval $ac_try) 2>&5 | |
31700 | ac_status=$? | |
31701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31702 | (exit $ac_status); }; }; then | |
31703 | echo "$as_me:$LINENO: result: yes" >&5 | |
31704 | echo "${ECHO_T}yes" >&6 | |
31705 | cat >>confdefs.h <<\_ACEOF | |
31706 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31707 | _ACEOF | |
31708 | ||
31709 | else | |
31710 | echo "$as_me: failed program was:" >&5 | |
31711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31712 | ||
31713 | echo "$as_me:$LINENO: result: no" >&5 | |
31714 | echo "${ECHO_T}no" >&6 | |
31715 | fi | |
32ddf007 | 31716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31717 | |
31718 | ||
31719 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
31720 | # This file is a shell script that caches the results of configure |
31721 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
31722 | # scripts and configure runs, see configure's option --config-cache. |
31723 | # It is not useful on other systems. If it contains results you don't | |
31724 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 31725 | # |
e6cc62c6 VS |
31726 | # config.status only pays attention to the cache file if you give it |
31727 | # the --recheck option to rerun configure. | |
4f14bcd8 | 31728 | # |
e6cc62c6 VS |
31729 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
31730 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31731 | # following values. | |
31732 | ||
31733 | _ACEOF | |
31734 | ||
4f14bcd8 GD |
31735 | # The following way of writing the cache mishandles newlines in values, |
31736 | # but we know of no workaround that is simple, portable, and efficient. | |
31737 | # So, don't put newlines in cache variables' values. | |
31738 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31739 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
31740 | { |
31741 | (set) 2>&1 | | |
31742 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31743 | *ac_space=\ *) | |
31744 | # `set' does not quote correctly, so add quotes (double-quote | |
31745 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31746 | sed -n \ | |
32ddf007 VS |
31747 | "s/'/'\\\\''/g; |
31748 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
31749 | ;; |
31750 | *) | |
31751 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31752 | sed -n \ | |
32ddf007 | 31753 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
31754 | ;; |
31755 | esac; | |
31756 | } | | |
31757 | sed ' | |
31758 | t clear | |
31759 | : clear | |
31760 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31761 | t end | |
31762 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31763 | : end' >>confcache | |
31764 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 31765 | if test -w $cache_file; then |
e6cc62c6 VS |
31766 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
31767 | cat confcache >$cache_file | |
f6bcfd97 | 31768 | else |
4f14bcd8 | 31769 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 31770 | fi |
4f14bcd8 GD |
31771 | fi |
31772 | rm -f confcache | |
f6bcfd97 | 31773 | |
8284b0c5 | 31774 | |
009fead0 | 31775 | CPP_MT_FLAG= |
73d617c9 | 31776 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 31777 | |
e6cc62c6 | 31778 | |
7274f1c7 | 31779 | THREADS_LINK= |
009fead0 | 31780 | THREADS_CFLAGS= |
7274f1c7 RL |
31781 | |
31782 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 31783 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
31784 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
31785 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
31786 | wxUSE_THREADS="no" |
31787 | fi | |
4f14bcd8 | 31788 | fi |
4f14bcd8 | 31789 | |
7274f1c7 | 31790 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31791 | |
31792 | ||
009fead0 VZ |
31793 | THREAD_OPTS="-pthread" |
31794 | case "${host}" in | |
31795 | *-*-solaris2* | *-*-sunos4* ) | |
31796 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 31797 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
31798 | else |
31799 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31800 | fi | |
31801 | ;; | |
31802 | *-*-freebsd*) | |
31803 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31804 | ;; | |
17234b26 MB |
31805 | *-*-darwin* | *-*-cygwin* ) |
31806 | THREAD_OPTS="" | |
4101db81 | 31807 | ;; |
8f4a9a10 | 31808 | *-*-aix*) |
009fead0 VZ |
31809 | THREAD_OPTS="pthreads" |
31810 | ;; | |
4f5a7f74 VZ |
31811 | *-hp-hpux* ) |
31812 | if test "x$GCC" != "xyes"; then | |
31813 | THREAD_OPTS="" | |
31814 | fi | |
89e3b3e4 VZ |
31815 | ;; |
31816 | ||
31817 | *-*-irix* ) | |
31818 | if test "x$GCC" = "xyes"; then | |
31819 | THREAD_OPTS="" | |
31820 | fi | |
31821 | ;; | |
31822 | ||
31823 | *-*-*UnixWare*) | |
31824 | if test "x$GCC" != "xyes"; then | |
31825 | THREAD_OPTS="-Ethread" | |
31826 | fi | |
31827 | ;; | |
009fead0 | 31828 | esac |
4f14bcd8 | 31829 | |
02a1dfba | 31830 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 31831 | |
009fead0 VZ |
31832 | THREADS_OK=no |
31833 | for flag in $THREAD_OPTS; do | |
31834 | case $flag in | |
31835 | none) | |
e6cc62c6 VS |
31836 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
31837 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 31838 | ;; |
698dcdb6 | 31839 | |
009fead0 | 31840 | -*) |
e6cc62c6 VS |
31841 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
31842 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
31843 | THREADS_CFLAGS="$flag" |
31844 | ;; | |
698dcdb6 | 31845 | |
009fead0 | 31846 | *) |
e6cc62c6 VS |
31847 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
31848 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
31849 | THREADS_LINK="-l$flag" |
31850 | ;; | |
31851 | esac | |
10f2d63a | 31852 | |
009fead0 VZ |
31853 | save_LIBS="$LIBS" |
31854 | save_CFLAGS="$CFLAGS" | |
31855 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 31856 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 31857 | |
e6cc62c6 | 31858 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31859 | /* confdefs.h. */ |
31860 | _ACEOF | |
31861 | cat confdefs.h >>conftest.$ac_ext | |
31862 | cat >>conftest.$ac_ext <<_ACEOF | |
31863 | /* end confdefs.h. */ | |
009fead0 | 31864 | #include <pthread.h> |
e6cc62c6 VS |
31865 | int |
31866 | main () | |
31867 | { | |
009fead0 | 31868 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
31869 | ; |
31870 | return 0; | |
31871 | } | |
31872 | _ACEOF | |
31873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31875 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31876 | ac_status=$? |
32ddf007 VS |
31877 | grep -v '^ *+' conftest.er1 >conftest.err |
31878 | rm -f conftest.er1 | |
31879 | cat conftest.err >&5 | |
e6cc62c6 VS |
31880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31881 | (exit $ac_status); } && | |
e1293dcf | 31882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31884 | (eval $ac_try) 2>&5 | |
31885 | ac_status=$? | |
31886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31887 | (exit $ac_status); }; } && | |
31888 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31890 | (eval $ac_try) 2>&5 | |
31891 | ac_status=$? | |
31892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31893 | (exit $ac_status); }; }; then | |
009fead0 | 31894 | THREADS_OK=yes |
10f2d63a | 31895 | else |
e6cc62c6 VS |
31896 | echo "$as_me: failed program was:" >&5 |
31897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31898 | ||
6232543b | 31899 | fi |
32ddf007 VS |
31900 | rm -f conftest.err conftest.$ac_objext \ |
31901 | conftest$ac_exeext conftest.$ac_ext | |
698dcdb6 | 31902 | |
009fead0 VZ |
31903 | LIBS="$save_LIBS" |
31904 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 31905 | |
e6cc62c6 VS |
31906 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
31907 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
31908 | if test "x$THREADS_OK" = "xyes"; then |
31909 | break; | |
31910 | fi | |
d9b9876f | 31911 | |
009fead0 VZ |
31912 | THREADS_LINK="" |
31913 | THREADS_CFLAGS="" | |
31914 | done | |
4f14bcd8 | 31915 | |
009fead0 VZ |
31916 | if test "x$THREADS_OK" != "xyes"; then |
31917 | wxUSE_THREADS=no | |
e6cc62c6 VS |
31918 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
31919 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 31920 | else |
db82f09e VZ |
31921 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
31922 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 31923 | |
e6cc62c6 VS |
31924 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
31925 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
31926 | flag=no |
31927 | case "${host}" in | |
2b5f62a0 VZ |
31928 | *-aix*) |
31929 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31930 | flag="-D_THREAD_SAFE" | |
31931 | ;; | |
31932 | *-freebsd*) | |
009fead0 VZ |
31933 | flag="-D_THREAD_SAFE" |
31934 | ;; | |
06313569 GD |
31935 | *-hp-hpux* ) |
31936 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
31937 | if test "x$GCC" != "xyes"; then |
31938 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
31939 | fi | |
06313569 | 31940 | ;; |
009fead0 VZ |
31941 | *solaris* | alpha*-osf*) |
31942 | flag="-D_REENTRANT" | |
31943 | ;; | |
31944 | esac | |
e6cc62c6 VS |
31945 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
31946 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 31947 | if test "x$flag" != xno; then |
04727afd | 31948 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
31949 | fi |
31950 | ||
009fead0 | 31951 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 31952 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
31953 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
31954 | fi | |
31955 | fi | |
4f14bcd8 | 31956 | fi |
4f14bcd8 | 31957 | |
7274f1c7 | 31958 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31959 | |
31960 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 31961 | do |
e6cc62c6 VS |
31962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31963 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31965 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31967 | else | |
31968 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31969 | /* confdefs.h. */ |
31970 | _ACEOF | |
31971 | cat confdefs.h >>conftest.$ac_ext | |
31972 | cat >>conftest.$ac_ext <<_ACEOF | |
31973 | /* end confdefs.h. */ | |
32ddf007 VS |
31974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31976 | #define $ac_func innocuous_$ac_func | |
31977 | ||
4f14bcd8 | 31978 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31979 | which can conflict with char $ac_func (); below. |
31980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31981 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31982 | |
e6cc62c6 VS |
31983 | #ifdef __STDC__ |
31984 | # include <limits.h> | |
31985 | #else | |
31986 | # include <assert.h> | |
31987 | #endif | |
32ddf007 VS |
31988 | |
31989 | #undef $ac_func | |
31990 | ||
4f14bcd8 | 31991 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31992 | #ifdef __cplusplus |
31993 | extern "C" | |
31994 | { | |
31995 | #endif | |
4f14bcd8 | 31996 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31997 | builtin and then its argument prototype would still apply. */ |
31998 | char $ac_func (); | |
4f14bcd8 GD |
31999 | /* The GNU C library defines this for functions which it implements |
32000 | to always fail with ENOSYS. Some functions are actually named | |
32001 | something starting with __ and the normal name is an alias. */ | |
32002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32003 | choke me | |
32004 | #else | |
e6cc62c6 VS |
32005 | char (*f) () = $ac_func; |
32006 | #endif | |
32007 | #ifdef __cplusplus | |
32008 | } | |
4f14bcd8 GD |
32009 | #endif |
32010 | ||
e6cc62c6 VS |
32011 | int |
32012 | main () | |
32013 | { | |
32014 | return f != $ac_func; | |
32015 | ; | |
32016 | return 0; | |
32017 | } | |
32018 | _ACEOF | |
32019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32021 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32022 | ac_status=$? |
32ddf007 VS |
32023 | grep -v '^ *+' conftest.er1 >conftest.err |
32024 | rm -f conftest.er1 | |
32025 | cat conftest.err >&5 | |
e6cc62c6 VS |
32026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32027 | (exit $ac_status); } && | |
e1293dcf | 32028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32030 | (eval $ac_try) 2>&5 | |
32031 | ac_status=$? | |
32032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32033 | (exit $ac_status); }; } && | |
32034 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32036 | (eval $ac_try) 2>&5 | |
32037 | ac_status=$? | |
32038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32039 | (exit $ac_status); }; }; then | |
32040 | eval "$as_ac_var=yes" | |
32041 | else | |
32042 | echo "$as_me: failed program was:" >&5 | |
32043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32044 | ||
32045 | eval "$as_ac_var=no" | |
32046 | fi | |
32ddf007 VS |
32047 | rm -f conftest.err conftest.$ac_objext \ |
32048 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32049 | fi |
32050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32052 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32053 | cat >>confdefs.h <<_ACEOF | |
32054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32055 | _ACEOF | |
698dcdb6 | 32056 | |
10f2d63a | 32057 | fi |
4f14bcd8 | 32058 | done |
10f2d63a | 32059 | |
8284b0c5 | 32060 | |
e6cc62c6 VS |
32061 | |
32062 | for ac_header in sched.h | |
4f14bcd8 | 32063 | do |
e6cc62c6 VS |
32064 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
32065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32070 | fi | |
32071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32073 | else | |
32074 | # Is the header compilable? | |
32075 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32076 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32077 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32078 | /* confdefs.h. */ |
32079 | _ACEOF | |
32080 | cat confdefs.h >>conftest.$ac_ext | |
32081 | cat >>conftest.$ac_ext <<_ACEOF | |
32082 | /* end confdefs.h. */ | |
32083 | $ac_includes_default | |
32084 | #include <$ac_header> | |
32085 | _ACEOF | |
32086 | rm -f conftest.$ac_objext | |
32087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32088 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32089 | ac_status=$? |
32ddf007 VS |
32090 | grep -v '^ *+' conftest.er1 >conftest.err |
32091 | rm -f conftest.er1 | |
32092 | cat conftest.err >&5 | |
e6cc62c6 VS |
32093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32094 | (exit $ac_status); } && | |
e1293dcf | 32095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32097 | (eval $ac_try) 2>&5 | |
32098 | ac_status=$? | |
32099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32100 | (exit $ac_status); }; } && | |
32101 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32103 | (eval $ac_try) 2>&5 | |
32104 | ac_status=$? | |
32105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32106 | (exit $ac_status); }; }; then | |
32107 | ac_header_compiler=yes | |
32108 | else | |
32109 | echo "$as_me: failed program was:" >&5 | |
32110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32111 | ||
32112 | ac_header_compiler=no | |
32113 | fi | |
32ddf007 | 32114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
32115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32116 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32117 | ||
32118 | # Is the header present? | |
32119 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32121 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32122 | /* confdefs.h. */ |
32123 | _ACEOF | |
32124 | cat confdefs.h >>conftest.$ac_ext | |
32125 | cat >>conftest.$ac_ext <<_ACEOF | |
32126 | /* end confdefs.h. */ | |
32127 | #include <$ac_header> | |
32128 | _ACEOF | |
32129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32131 | ac_status=$? | |
32132 | grep -v '^ *+' conftest.er1 >conftest.err | |
32133 | rm -f conftest.er1 | |
32134 | cat conftest.err >&5 | |
32135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32136 | (exit $ac_status); } >/dev/null; then | |
32137 | if test -s conftest.err; then | |
32138 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 32139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
32140 | else |
32141 | ac_cpp_err= | |
32142 | fi | |
32143 | else | |
32144 | ac_cpp_err=yes | |
32145 | fi | |
32146 | if test -z "$ac_cpp_err"; then | |
32147 | ac_header_preproc=yes | |
32148 | else | |
32149 | echo "$as_me: failed program was:" >&5 | |
32150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32151 | ||
32152 | ac_header_preproc=no | |
32153 | fi | |
32154 | rm -f conftest.err conftest.$ac_ext | |
32155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32156 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32157 | ||
32158 | # So? What about this header? | |
32ddf007 VS |
32159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32160 | yes:no: ) | |
e6cc62c6 VS |
32161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
32163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32165 | ac_header_preproc=yes | |
e6cc62c6 | 32166 | ;; |
32ddf007 | 32167 | no:yes:* ) |
e6cc62c6 VS |
32168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
32170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
32176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
32178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
32180 | ( |
32181 | cat <<\_ASBOX | |
32ddf007 VS |
32182 | ## ----------------------------------------- ## |
32183 | ## Report this to wx-dev@lists.wxwindows.org ## | |
32184 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
32185 | _ASBOX |
32186 | ) | | |
32187 | sed "s/^/$as_me: WARNING: /" >&2 | |
32188 | ;; | |
32189 | esac | |
32190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32194 | else | |
32ddf007 | 32195 | eval "$as_ac_Header=\$ac_header_preproc" |
13111b2a | 32196 | fi |
e6cc62c6 VS |
32197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
32198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32199 | ||
10f2d63a | 32200 | fi |
e6cc62c6 VS |
32201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32202 | cat >>confdefs.h <<_ACEOF | |
32203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32204 | _ACEOF | |
32205 | ||
f6bcfd97 | 32206 | fi |
e6cc62c6 | 32207 | |
4f14bcd8 | 32208 | done |
f6bcfd97 | 32209 | |
009fead0 | 32210 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
32211 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
32212 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32213 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32215 | else | |
32216 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32217 | /* confdefs.h. */ |
32218 | _ACEOF | |
32219 | cat confdefs.h >>conftest.$ac_ext | |
32220 | cat >>conftest.$ac_ext <<_ACEOF | |
32221 | /* end confdefs.h. */ | |
32ddf007 VS |
32222 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32224 | #define sched_yield innocuous_sched_yield | |
32225 | ||
009fead0 | 32226 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32227 | which can conflict with char sched_yield (); below. |
32228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32229 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32230 | |
e6cc62c6 VS |
32231 | #ifdef __STDC__ |
32232 | # include <limits.h> | |
32233 | #else | |
32234 | # include <assert.h> | |
32235 | #endif | |
32ddf007 VS |
32236 | |
32237 | #undef sched_yield | |
32238 | ||
4f14bcd8 | 32239 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32240 | #ifdef __cplusplus |
32241 | extern "C" | |
32242 | { | |
32243 | #endif | |
4f14bcd8 | 32244 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32245 | builtin and then its argument prototype would still apply. */ |
32246 | char sched_yield (); | |
009fead0 VZ |
32247 | /* The GNU C library defines this for functions which it implements |
32248 | to always fail with ENOSYS. Some functions are actually named | |
32249 | something starting with __ and the normal name is an alias. */ | |
32250 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32251 | choke me | |
32252 | #else | |
e6cc62c6 VS |
32253 | char (*f) () = sched_yield; |
32254 | #endif | |
32255 | #ifdef __cplusplus | |
32256 | } | |
009fead0 VZ |
32257 | #endif |
32258 | ||
e6cc62c6 VS |
32259 | int |
32260 | main () | |
32261 | { | |
32262 | return f != sched_yield; | |
32263 | ; | |
32264 | return 0; | |
32265 | } | |
32266 | _ACEOF | |
32267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32269 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32270 | ac_status=$? |
32ddf007 VS |
32271 | grep -v '^ *+' conftest.er1 >conftest.err |
32272 | rm -f conftest.er1 | |
32273 | cat conftest.err >&5 | |
e6cc62c6 VS |
32274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32275 | (exit $ac_status); } && | |
e1293dcf | 32276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32278 | (eval $ac_try) 2>&5 | |
32279 | ac_status=$? | |
32280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32281 | (exit $ac_status); }; } && | |
32282 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32284 | (eval $ac_try) 2>&5 | |
32285 | ac_status=$? | |
32286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32287 | (exit $ac_status); }; }; then | |
32288 | ac_cv_func_sched_yield=yes | |
32289 | else | |
32290 | echo "$as_me: failed program was:" >&5 | |
32291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32292 | ||
32293 | ac_cv_func_sched_yield=no | |
32294 | fi | |
32ddf007 VS |
32295 | rm -f conftest.err conftest.$ac_objext \ |
32296 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32297 | fi |
32298 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32299 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32300 | if test $ac_cv_func_sched_yield = yes; then | |
32301 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32302 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32303 | _ACEOF |
10f2d63a | 32304 | |
4f14bcd8 | 32305 | else |
009fead0 | 32306 | |
e6cc62c6 VS |
32307 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
32308 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32309 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 32311 | else |
e6cc62c6 | 32312 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32313 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32314 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32315 | /* confdefs.h. */ |
32316 | _ACEOF | |
32317 | cat confdefs.h >>conftest.$ac_ext | |
32318 | cat >>conftest.$ac_ext <<_ACEOF | |
32319 | /* end confdefs.h. */ | |
32320 | ||
4f14bcd8 | 32321 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32322 | #ifdef __cplusplus |
32323 | extern "C" | |
32324 | #endif | |
4f14bcd8 | 32325 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32326 | builtin and then its argument prototype would still apply. */ |
32327 | char sched_yield (); | |
32328 | int | |
32329 | main () | |
32330 | { | |
32331 | sched_yield (); | |
32332 | ; | |
32333 | return 0; | |
32334 | } | |
32335 | _ACEOF | |
32336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32338 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32339 | ac_status=$? |
32ddf007 VS |
32340 | grep -v '^ *+' conftest.er1 >conftest.err |
32341 | rm -f conftest.er1 | |
32342 | cat conftest.err >&5 | |
e6cc62c6 VS |
32343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32344 | (exit $ac_status); } && | |
e1293dcf | 32345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32347 | (eval $ac_try) 2>&5 | |
32348 | ac_status=$? | |
32349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32350 | (exit $ac_status); }; } && | |
32351 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32353 | (eval $ac_try) 2>&5 | |
32354 | ac_status=$? | |
32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32356 | (exit $ac_status); }; }; then | |
32357 | ac_cv_lib_posix4_sched_yield=yes | |
32358 | else | |
32359 | echo "$as_me: failed program was:" >&5 | |
32360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32361 | ||
32362 | ac_cv_lib_posix4_sched_yield=no | |
32363 | fi | |
32ddf007 VS |
32364 | rm -f conftest.err conftest.$ac_objext \ |
32365 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32366 | LIBS=$ac_check_lib_save_LIBS |
32367 | fi | |
32368 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32369 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32370 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32371 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32372 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32373 | _ACEOF |
3d63bc3a | 32374 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 32375 | else |
e6cc62c6 VS |
32376 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
32377 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32378 | ||
54276ccf VZ |
32379 | fi |
32380 | ||
e6cc62c6 VS |
32381 | |
32382 | ||
4f14bcd8 | 32383 | fi |
698dcdb6 | 32384 | |
009fead0 | 32385 | fi |
10f2d63a | 32386 | |
7274f1c7 | 32387 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
32388 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
32389 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32390 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32392 | else | |
32393 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32394 | /* confdefs.h. */ |
32395 | _ACEOF | |
32396 | cat confdefs.h >>conftest.$ac_ext | |
32397 | cat >>conftest.$ac_ext <<_ACEOF | |
32398 | /* end confdefs.h. */ | |
32ddf007 VS |
32399 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32401 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32402 | ||
009fead0 | 32403 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32404 | which can conflict with char pthread_attr_getschedpolicy (); below. |
32405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32406 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32407 | |
e6cc62c6 VS |
32408 | #ifdef __STDC__ |
32409 | # include <limits.h> | |
32410 | #else | |
32411 | # include <assert.h> | |
32412 | #endif | |
32ddf007 VS |
32413 | |
32414 | #undef pthread_attr_getschedpolicy | |
32415 | ||
4f14bcd8 | 32416 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32417 | #ifdef __cplusplus |
32418 | extern "C" | |
32419 | { | |
32420 | #endif | |
4f14bcd8 | 32421 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32422 | builtin and then its argument prototype would still apply. */ |
32423 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
32424 | /* The GNU C library defines this for functions which it implements |
32425 | to always fail with ENOSYS. Some functions are actually named | |
32426 | something starting with __ and the normal name is an alias. */ | |
32427 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32428 | choke me | |
32429 | #else | |
e6cc62c6 VS |
32430 | char (*f) () = pthread_attr_getschedpolicy; |
32431 | #endif | |
32432 | #ifdef __cplusplus | |
32433 | } | |
009fead0 VZ |
32434 | #endif |
32435 | ||
e6cc62c6 VS |
32436 | int |
32437 | main () | |
32438 | { | |
32439 | return f != pthread_attr_getschedpolicy; | |
32440 | ; | |
32441 | return 0; | |
32442 | } | |
32443 | _ACEOF | |
32444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32446 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32447 | ac_status=$? |
32ddf007 VS |
32448 | grep -v '^ *+' conftest.er1 >conftest.err |
32449 | rm -f conftest.er1 | |
32450 | cat conftest.err >&5 | |
e6cc62c6 VS |
32451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32452 | (exit $ac_status); } && | |
e1293dcf | 32453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32455 | (eval $ac_try) 2>&5 | |
32456 | ac_status=$? | |
32457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32458 | (exit $ac_status); }; } && | |
32459 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32461 | (eval $ac_try) 2>&5 | |
32462 | ac_status=$? | |
32463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32464 | (exit $ac_status); }; }; then | |
32465 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32466 | else | |
32467 | echo "$as_me: failed program was:" >&5 | |
32468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32469 | ||
32470 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32471 | fi | |
32ddf007 VS |
32472 | rm -f conftest.err conftest.$ac_objext \ |
32473 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32474 | fi |
32475 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32476 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32477 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32478 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32479 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32480 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32482 | else | |
32483 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32484 | /* confdefs.h. */ |
32485 | _ACEOF | |
32486 | cat confdefs.h >>conftest.$ac_ext | |
32487 | cat >>conftest.$ac_ext <<_ACEOF | |
32488 | /* end confdefs.h. */ | |
32ddf007 VS |
32489 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32491 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32492 | ||
a0b9e27f | 32493 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32494 | which can conflict with char pthread_attr_setschedparam (); below. |
32495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32496 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32497 | |
e6cc62c6 VS |
32498 | #ifdef __STDC__ |
32499 | # include <limits.h> | |
32500 | #else | |
32501 | # include <assert.h> | |
32502 | #endif | |
32ddf007 VS |
32503 | |
32504 | #undef pthread_attr_setschedparam | |
32505 | ||
422107f9 | 32506 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32507 | #ifdef __cplusplus |
32508 | extern "C" | |
32509 | { | |
32510 | #endif | |
422107f9 | 32511 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32512 | builtin and then its argument prototype would still apply. */ |
32513 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
32514 | /* The GNU C library defines this for functions which it implements |
32515 | to always fail with ENOSYS. Some functions are actually named | |
32516 | something starting with __ and the normal name is an alias. */ | |
32517 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32518 | choke me | |
32519 | #else | |
e6cc62c6 VS |
32520 | char (*f) () = pthread_attr_setschedparam; |
32521 | #endif | |
32522 | #ifdef __cplusplus | |
32523 | } | |
009fead0 VZ |
32524 | #endif |
32525 | ||
e6cc62c6 VS |
32526 | int |
32527 | main () | |
32528 | { | |
32529 | return f != pthread_attr_setschedparam; | |
32530 | ; | |
32531 | return 0; | |
32532 | } | |
32533 | _ACEOF | |
32534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32536 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32537 | ac_status=$? |
32ddf007 VS |
32538 | grep -v '^ *+' conftest.er1 >conftest.err |
32539 | rm -f conftest.er1 | |
32540 | cat conftest.err >&5 | |
e6cc62c6 VS |
32541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32542 | (exit $ac_status); } && | |
e1293dcf | 32543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32545 | (eval $ac_try) 2>&5 | |
32546 | ac_status=$? | |
32547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32548 | (exit $ac_status); }; } && | |
32549 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32551 | (eval $ac_try) 2>&5 | |
32552 | ac_status=$? | |
32553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32554 | (exit $ac_status); }; }; then | |
32555 | ac_cv_func_pthread_attr_setschedparam=yes | |
32556 | else | |
32557 | echo "$as_me: failed program was:" >&5 | |
32558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32559 | ||
32560 | ac_cv_func_pthread_attr_setschedparam=no | |
32561 | fi | |
32ddf007 VS |
32562 | rm -f conftest.err conftest.$ac_objext \ |
32563 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32564 | fi |
32565 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32566 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32567 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32568 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32569 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32570 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32572 | else | |
32573 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32574 | /* confdefs.h. */ |
32575 | _ACEOF | |
32576 | cat confdefs.h >>conftest.$ac_ext | |
32577 | cat >>conftest.$ac_ext <<_ACEOF | |
32578 | /* end confdefs.h. */ | |
32ddf007 VS |
32579 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32581 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32582 | ||
ef33c576 | 32583 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32584 | which can conflict with char sched_get_priority_max (); below. |
32585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32586 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32587 | |
e6cc62c6 VS |
32588 | #ifdef __STDC__ |
32589 | # include <limits.h> | |
32590 | #else | |
32591 | # include <assert.h> | |
32592 | #endif | |
32ddf007 VS |
32593 | |
32594 | #undef sched_get_priority_max | |
32595 | ||
4f14bcd8 | 32596 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32597 | #ifdef __cplusplus |
32598 | extern "C" | |
32599 | { | |
32600 | #endif | |
4f14bcd8 | 32601 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32602 | builtin and then its argument prototype would still apply. */ |
32603 | char sched_get_priority_max (); | |
009fead0 VZ |
32604 | /* The GNU C library defines this for functions which it implements |
32605 | to always fail with ENOSYS. Some functions are actually named | |
32606 | something starting with __ and the normal name is an alias. */ | |
32607 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32608 | choke me | |
32609 | #else | |
e6cc62c6 VS |
32610 | char (*f) () = sched_get_priority_max; |
32611 | #endif | |
32612 | #ifdef __cplusplus | |
32613 | } | |
009fead0 VZ |
32614 | #endif |
32615 | ||
e6cc62c6 VS |
32616 | int |
32617 | main () | |
32618 | { | |
32619 | return f != sched_get_priority_max; | |
32620 | ; | |
32621 | return 0; | |
32622 | } | |
32623 | _ACEOF | |
32624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32626 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32627 | ac_status=$? |
32ddf007 VS |
32628 | grep -v '^ *+' conftest.er1 >conftest.err |
32629 | rm -f conftest.er1 | |
32630 | cat conftest.err >&5 | |
e6cc62c6 VS |
32631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32632 | (exit $ac_status); } && | |
e1293dcf | 32633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32635 | (eval $ac_try) 2>&5 | |
32636 | ac_status=$? | |
32637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32638 | (exit $ac_status); }; } && | |
32639 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32641 | (eval $ac_try) 2>&5 | |
32642 | ac_status=$? | |
32643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32644 | (exit $ac_status); }; }; then | |
32645 | ac_cv_func_sched_get_priority_max=yes | |
32646 | else | |
32647 | echo "$as_me: failed program was:" >&5 | |
32648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32649 | ||
32650 | ac_cv_func_sched_get_priority_max=no | |
32651 | fi | |
32ddf007 VS |
32652 | rm -f conftest.err conftest.$ac_objext \ |
32653 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32654 | fi |
32655 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32656 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32657 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
32658 | HAVE_PRIOR_FUNCS=1 |
32659 | else | |
e6cc62c6 VS |
32660 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
32661 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32662 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 32664 | else |
e6cc62c6 | 32665 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32666 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32667 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32668 | /* confdefs.h. */ |
32669 | _ACEOF | |
32670 | cat confdefs.h >>conftest.$ac_ext | |
32671 | cat >>conftest.$ac_ext <<_ACEOF | |
32672 | /* end confdefs.h. */ | |
32673 | ||
422107f9 | 32674 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32675 | #ifdef __cplusplus |
32676 | extern "C" | |
32677 | #endif | |
422107f9 | 32678 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32679 | builtin and then its argument prototype would still apply. */ |
32680 | char sched_get_priority_max (); | |
32681 | int | |
32682 | main () | |
32683 | { | |
32684 | sched_get_priority_max (); | |
32685 | ; | |
32686 | return 0; | |
32687 | } | |
32688 | _ACEOF | |
32689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32691 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32692 | ac_status=$? |
32ddf007 VS |
32693 | grep -v '^ *+' conftest.er1 >conftest.err |
32694 | rm -f conftest.er1 | |
32695 | cat conftest.err >&5 | |
e6cc62c6 VS |
32696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32697 | (exit $ac_status); } && | |
e1293dcf | 32698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32700 | (eval $ac_try) 2>&5 | |
32701 | ac_status=$? | |
32702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32703 | (exit $ac_status); }; } && | |
32704 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32706 | (eval $ac_try) 2>&5 | |
32707 | ac_status=$? | |
32708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32709 | (exit $ac_status); }; }; then | |
32710 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32711 | else | |
32712 | echo "$as_me: failed program was:" >&5 | |
32713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32714 | ||
32715 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32716 | fi | |
32ddf007 VS |
32717 | rm -f conftest.err conftest.$ac_objext \ |
32718 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32719 | LIBS=$ac_check_lib_save_LIBS |
32720 | fi | |
32721 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32722 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32723 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 32724 | |
7274f1c7 RL |
32725 | HAVE_PRIOR_FUNCS=1 |
32726 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 32727 | |
4f14bcd8 | 32728 | fi |
463abc64 | 32729 | |
e6cc62c6 | 32730 | |
328a083c | 32731 | fi |
463abc64 | 32732 | |
e6cc62c6 | 32733 | |
7b4a847f | 32734 | fi |
579d8138 | 32735 | |
e6cc62c6 | 32736 | |
5c6fa7d2 | 32737 | fi |
52127426 | 32738 | |
8284b0c5 | 32739 | |
7274f1c7 | 32740 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 32741 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32742 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 32743 | _ACEOF |
463abc64 | 32744 | |
7274f1c7 | 32745 | else |
e6cc62c6 VS |
32746 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
32747 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 32748 | fi |
463abc64 | 32749 | |
e6cc62c6 VS |
32750 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
32751 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32752 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32754 | else | |
32755 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32756 | /* confdefs.h. */ |
32757 | _ACEOF | |
32758 | cat confdefs.h >>conftest.$ac_ext | |
32759 | cat >>conftest.$ac_ext <<_ACEOF | |
32760 | /* end confdefs.h. */ | |
32ddf007 VS |
32761 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32762 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32763 | #define pthread_cancel innocuous_pthread_cancel | |
32764 | ||
009fead0 | 32765 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32766 | which can conflict with char pthread_cancel (); below. |
32767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32768 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32769 | |
e6cc62c6 VS |
32770 | #ifdef __STDC__ |
32771 | # include <limits.h> | |
32772 | #else | |
32773 | # include <assert.h> | |
32774 | #endif | |
32ddf007 VS |
32775 | |
32776 | #undef pthread_cancel | |
32777 | ||
422107f9 | 32778 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32779 | #ifdef __cplusplus |
32780 | extern "C" | |
32781 | { | |
32782 | #endif | |
422107f9 | 32783 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32784 | builtin and then its argument prototype would still apply. */ |
32785 | char pthread_cancel (); | |
009fead0 VZ |
32786 | /* The GNU C library defines this for functions which it implements |
32787 | to always fail with ENOSYS. Some functions are actually named | |
32788 | something starting with __ and the normal name is an alias. */ | |
32789 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32790 | choke me | |
32791 | #else | |
e6cc62c6 VS |
32792 | char (*f) () = pthread_cancel; |
32793 | #endif | |
32794 | #ifdef __cplusplus | |
32795 | } | |
009fead0 VZ |
32796 | #endif |
32797 | ||
e6cc62c6 VS |
32798 | int |
32799 | main () | |
32800 | { | |
32801 | return f != pthread_cancel; | |
32802 | ; | |
32803 | return 0; | |
32804 | } | |
32805 | _ACEOF | |
32806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32808 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32809 | ac_status=$? |
32ddf007 VS |
32810 | grep -v '^ *+' conftest.er1 >conftest.err |
32811 | rm -f conftest.er1 | |
32812 | cat conftest.err >&5 | |
e6cc62c6 VS |
32813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32814 | (exit $ac_status); } && | |
e1293dcf | 32815 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32817 | (eval $ac_try) 2>&5 | |
32818 | ac_status=$? | |
32819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32820 | (exit $ac_status); }; } && | |
32821 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32823 | (eval $ac_try) 2>&5 | |
32824 | ac_status=$? | |
32825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32826 | (exit $ac_status); }; }; then | |
32827 | ac_cv_func_pthread_cancel=yes | |
32828 | else | |
32829 | echo "$as_me: failed program was:" >&5 | |
32830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32831 | ||
32832 | ac_cv_func_pthread_cancel=no | |
32833 | fi | |
32ddf007 VS |
32834 | rm -f conftest.err conftest.$ac_objext \ |
32835 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32836 | fi |
32837 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32838 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32839 | if test $ac_cv_func_pthread_cancel = yes; then | |
32840 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32841 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 32842 | _ACEOF |
4f14bcd8 | 32843 | |
698dcdb6 | 32844 | else |
e6cc62c6 VS |
32845 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
32846 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
32847 | fi |
32848 | ||
5c6fa7d2 | 32849 | |
4f14bcd8 | 32850 | |
e6cc62c6 VS |
32851 | |
32852 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32853 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32854 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 32856 | else |
e6cc62c6 VS |
32857 | |
32858 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32859 | /* confdefs.h. */ |
32860 | _ACEOF | |
32861 | cat confdefs.h >>conftest.$ac_ext | |
32862 | cat >>conftest.$ac_ext <<_ACEOF | |
32863 | /* end confdefs.h. */ | |
4f14bcd8 | 32864 | #include <pthread.h> |
e6cc62c6 VS |
32865 | int |
32866 | main () | |
32867 | { | |
4f14bcd8 | 32868 | |
7274f1c7 RL |
32869 | pthread_mutexattr_t attr; |
32870 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
32871 | |
32872 | ; | |
32873 | return 0; | |
32874 | } | |
32875 | _ACEOF | |
32876 | rm -f conftest.$ac_objext | |
32877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32878 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32879 | ac_status=$? |
32ddf007 VS |
32880 | grep -v '^ *+' conftest.er1 >conftest.err |
32881 | rm -f conftest.er1 | |
32882 | cat conftest.err >&5 | |
e6cc62c6 VS |
32883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32884 | (exit $ac_status); } && | |
e1293dcf | 32885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32887 | (eval $ac_try) 2>&5 | |
32888 | ac_status=$? | |
32889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32890 | (exit $ac_status); }; } && | |
32891 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32893 | (eval $ac_try) 2>&5 | |
32894 | ac_status=$? | |
32895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32896 | (exit $ac_status); }; }; then | |
32897 | ||
7274f1c7 | 32898 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 32899 | |
3fed1840 | 32900 | else |
e6cc62c6 VS |
32901 | echo "$as_me: failed program was:" >&5 |
32902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32903 | ||
32904 | ||
7274f1c7 | 32905 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
32906 | |
32907 | ||
247f5006 | 32908 | fi |
32ddf007 | 32909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32910 | |
e6cc62c6 VS |
32911 | fi |
32912 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32913 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 32914 | |
7274f1c7 | 32915 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 32916 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32917 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 32918 | _ACEOF |
4f14bcd8 | 32919 | |
7274f1c7 | 32920 | else |
e6cc62c6 VS |
32921 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
32922 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32923 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32925 | else | |
32926 | ||
32927 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32928 | /* confdefs.h. */ |
32929 | _ACEOF | |
32930 | cat confdefs.h >>conftest.$ac_ext | |
32931 | cat >>conftest.$ac_ext <<_ACEOF | |
32932 | /* end confdefs.h. */ | |
4f14bcd8 | 32933 | #include <pthread.h> |
e6cc62c6 VS |
32934 | int |
32935 | main () | |
32936 | { | |
4f14bcd8 | 32937 | |
7274f1c7 | 32938 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
32939 | |
32940 | ; | |
32941 | return 0; | |
32942 | } | |
32943 | _ACEOF | |
32944 | rm -f conftest.$ac_objext | |
32945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32946 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32947 | ac_status=$? |
32ddf007 VS |
32948 | grep -v '^ *+' conftest.er1 >conftest.err |
32949 | rm -f conftest.er1 | |
32950 | cat conftest.err >&5 | |
e6cc62c6 VS |
32951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32952 | (exit $ac_status); } && | |
e1293dcf | 32953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32955 | (eval $ac_try) 2>&5 | |
32956 | ac_status=$? | |
32957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32958 | (exit $ac_status); }; } && | |
32959 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32961 | (eval $ac_try) 2>&5 | |
32962 | ac_status=$? | |
32963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32964 | (exit $ac_status); }; }; then | |
32965 | ||
7274f1c7 | 32966 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 32967 | |
698dcdb6 | 32968 | else |
e6cc62c6 VS |
32969 | echo "$as_me: failed program was:" >&5 |
32970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32971 | ||
32972 | ||
7274f1c7 | 32973 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
32974 | |
32975 | ||
247f5006 | 32976 | fi |
32ddf007 | 32977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32978 | |
e6cc62c6 VS |
32979 | fi |
32980 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32981 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 32982 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 32983 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32984 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 32985 | _ACEOF |
3fed1840 | 32986 | |
7274f1c7 | 32987 | else |
e6cc62c6 VS |
32988 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
32989 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
32990 | fi |
32991 | fi | |
7274f1c7 | 32992 | fi |
3fed1840 | 32993 | |
a0b9e27f MB |
32994 | else |
32995 | if test "$wxUSE_THREADS" = "yes" ; then | |
32996 | case "${host}" in | |
32997 | *-*-mingw32* ) | |
e6cc62c6 VS |
32998 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
32999 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33000 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 33002 | else |
e6cc62c6 | 33003 | |
ca8e52b3 VZ |
33004 | CFLAGS_OLD="$CFLAGS" |
33005 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 33006 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33007 | /* confdefs.h. */ |
33008 | _ACEOF | |
33009 | cat confdefs.h >>conftest.$ac_ext | |
33010 | cat >>conftest.$ac_ext <<_ACEOF | |
33011 | /* end confdefs.h. */ | |
33012 | ||
33013 | int | |
33014 | main () | |
33015 | { | |
ca8e52b3 | 33016 | |
e6cc62c6 VS |
33017 | ; |
33018 | return 0; | |
33019 | } | |
33020 | _ACEOF | |
33021 | rm -f conftest.$ac_objext | |
33022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33023 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33024 | ac_status=$? |
32ddf007 VS |
33025 | grep -v '^ *+' conftest.er1 >conftest.err |
33026 | rm -f conftest.er1 | |
33027 | cat conftest.err >&5 | |
e6cc62c6 VS |
33028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33029 | (exit $ac_status); } && | |
e1293dcf | 33030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33032 | (eval $ac_try) 2>&5 | |
33033 | ac_status=$? | |
33034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33035 | (exit $ac_status); }; } && | |
33036 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33038 | (eval $ac_try) 2>&5 | |
33039 | ac_status=$? | |
33040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33041 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
33042 | wx_cv_cflags_mthread=yes |
33043 | else | |
e6cc62c6 VS |
33044 | echo "$as_me: failed program was:" >&5 |
33045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33046 | ||
33047 | wx_cv_cflags_mthread=no | |
33048 | ||
ca8e52b3 | 33049 | fi |
32ddf007 | 33050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 33051 | |
ca8e52b3 | 33052 | |
e6cc62c6 VS |
33053 | fi |
33054 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33055 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
33056 | |
33057 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33058 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33059 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33060 | LDFLAGS="$LDFLAGS -mthreads" | |
33061 | else | |
33062 | CFLAGS="$CFLAGS_OLD" | |
33063 | fi | |
a0b9e27f | 33064 | ;; |
73d617c9 MB |
33065 | *-pc-os2*emx ) |
33066 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33067 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33068 | LDFLAGS="$LDFLAGS -Zmt" | |
33069 | ;; | |
a0b9e27f MB |
33070 | esac |
33071 | fi | |
4f14bcd8 GD |
33072 | fi |
33073 | ||
33074 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 33075 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33076 | #define wxUSE_THREADS 1 |
e6cc62c6 | 33077 | _ACEOF |
7b6058cd | 33078 | |
8284b0c5 | 33079 | |
4f14bcd8 | 33080 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 33081 | else |
4f14bcd8 | 33082 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
33083 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
33084 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
33085 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
33086 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
33087 | echo "$as_me:$LINENO: result: yes" >&5 |
33088 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 33089 | else |
e6cc62c6 VS |
33090 | echo "$as_me:$LINENO: result: no" >&5 |
33091 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
33092 | fi |
33093 | fi | |
33094 | fi | |
33095 | ||
33096 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 33097 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33098 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 33099 | _ACEOF |
4f14bcd8 GD |
33100 | |
33101 | WXGTK12=1 | |
10f2d63a | 33102 | fi |
4f14bcd8 GD |
33103 | |
33104 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 33105 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33106 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 33107 | _ACEOF |
4f14bcd8 | 33108 | |
10f2d63a | 33109 | fi |
698dcdb6 | 33110 | |
4f14bcd8 | 33111 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 33112 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33113 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 33114 | _ACEOF |
4f14bcd8 | 33115 | |
698dcdb6 | 33116 | fi |
10f2d63a | 33117 | |
0f87e84c RR |
33118 | if test "$WXGPE" = 1 ; then |
33119 | cat >>confdefs.h <<_ACEOF | |
33120 | #define __WXGPE__ $WXGPE | |
33121 | _ACEOF | |
33122 | ||
33123 | fi | |
33124 | ||
4f14bcd8 GD |
33125 | WXDEBUG= |
33126 | ||
33127 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33128 | WXDEBUG="-g" | |
33129 | wxUSE_OPTIMISE=no | |
698dcdb6 | 33130 | fi |
4f14bcd8 GD |
33131 | |
33132 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33133 | wxUSE_DEBUG_INFO=yes | |
33134 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
33135 | fi |
33136 | ||
4f14bcd8 | 33137 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 33138 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33139 | #define WXDEBUG 1 |
e6cc62c6 | 33140 | _ACEOF |
4f14bcd8 GD |
33141 | |
33142 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 33143 | else |
4f14bcd8 GD |
33144 | if test "$wxUSE_GTK" = 1 ; then |
33145 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33146 | fi | |
33147 | fi | |
33148 | ||
33149 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 33150 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33151 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 33152 | _ACEOF |
4f14bcd8 | 33153 | |
e6cc62c6 | 33154 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33155 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 33156 | _ACEOF |
4f14bcd8 | 33157 | |
e6cc62c6 | 33158 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33159 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 33160 | _ACEOF |
4f14bcd8 GD |
33161 | |
33162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33163 | fi | |
33164 | ||
33165 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 33166 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
33167 | fi |
33168 | ||
33169 | PROFILE= | |
33170 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 33171 | PROFILE=" -pg" |
10f2d63a VZ |
33172 | fi |
33173 | ||
009fead0 VZ |
33174 | CODE_GEN_FLAGS= |
33175 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 33176 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
33177 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
33178 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 33179 | fi |
4f14bcd8 GD |
33180 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
33181 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33182 | fi | |
33183 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33184 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33185 | fi | |
1d1b75ac | 33186 | |
2b5f62a0 | 33187 | case "${host}" in |
1d1b75ac VZ |
33188 | powerpc*-*-aix* ) |
33189 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33190 | ;; | |
2b5f62a0 VZ |
33191 | *-hppa* ) |
33192 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33193 | ;; | |
1d1b75ac | 33194 | esac |
4f14bcd8 GD |
33195 | fi |
33196 | ||
af7b5345 | 33197 | OPTIMISE= |
4f14bcd8 | 33198 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
33199 | if test "$GCC" = yes ; then |
33200 | OPTIMISE="-O0" | |
33201 | fi | |
4f14bcd8 GD |
33202 | else |
33203 | if test "$GCC" = yes ; then | |
33204 | OPTIMISE="-O2" | |
af7b5345 VZ |
33205 | |
33206 | case "${host}" in | |
4f14bcd8 GD |
33207 | i586-*-*|i686-*-* ) |
33208 | OPTIMISE="${OPTIMISE} " | |
33209 | ;; | |
33210 | esac | |
33211 | else | |
33212 | OPTIMISE="-O" | |
33213 | fi | |
33214 | fi | |
33215 | ||
8d90d2f2 | 33216 | |
65d8ef1e | 33217 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 33218 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33219 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 33220 | _ACEOF |
4f14bcd8 | 33221 | |
8d90d2f2 VZ |
33222 | |
33223 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
33224 | fi |
33225 | ||
65d8ef1e | 33226 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 33227 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 33228 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 33229 | _ACEOF |
65d8ef1e VS |
33230 | |
33231 | fi | |
33232 | ||
8284b0c5 | 33233 | |
10f2d63a | 33234 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 33235 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33236 | #define wxUSE_GUI 1 |
e6cc62c6 | 33237 | _ACEOF |
10f2d63a | 33238 | |
8284b0c5 | 33239 | |
10f2d63a | 33240 | else |
e6cc62c6 | 33241 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33242 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 33243 | _ACEOF |
10f2d63a VZ |
33244 | |
33245 | fi | |
33246 | ||
8284b0c5 | 33247 | |
10f2d63a | 33248 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 33249 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33250 | #define wxUSE_UNIX 1 |
e6cc62c6 | 33251 | _ACEOF |
10f2d63a VZ |
33252 | |
33253 | fi | |
33254 | ||
8284b0c5 | 33255 | |
f93ca9fd | 33256 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
5c6fa7d2 | 33257 | |
f93ca9fd VS |
33258 | HAVE_DL_FUNCS=0 |
33259 | HAVE_SHL_FUNCS=0 | |
33260 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33261 | if test "$USE_DARWIN" = 1; then | |
33262 | HAVE_DL_FUNCS=1 | |
33263 | else | |
e6cc62c6 | 33264 | |
f93ca9fd | 33265 | for ac_func in dlopen |
83307f33 | 33266 | do |
e6cc62c6 VS |
33267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33270 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33272 | else | |
33273 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33274 | /* confdefs.h. */ |
33275 | _ACEOF | |
33276 | cat confdefs.h >>conftest.$ac_ext | |
33277 | cat >>conftest.$ac_ext <<_ACEOF | |
33278 | /* end confdefs.h. */ | |
32ddf007 VS |
33279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33281 | #define $ac_func innocuous_$ac_func | |
33282 | ||
83307f33 | 33283 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33284 | which can conflict with char $ac_func (); below. |
33285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33286 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33287 | |
e6cc62c6 VS |
33288 | #ifdef __STDC__ |
33289 | # include <limits.h> | |
33290 | #else | |
33291 | # include <assert.h> | |
33292 | #endif | |
32ddf007 VS |
33293 | |
33294 | #undef $ac_func | |
33295 | ||
83307f33 | 33296 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33297 | #ifdef __cplusplus |
33298 | extern "C" | |
33299 | { | |
33300 | #endif | |
83307f33 | 33301 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33302 | builtin and then its argument prototype would still apply. */ |
33303 | char $ac_func (); | |
83307f33 VZ |
33304 | /* The GNU C library defines this for functions which it implements |
33305 | to always fail with ENOSYS. Some functions are actually named | |
33306 | something starting with __ and the normal name is an alias. */ | |
33307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33308 | choke me | |
33309 | #else | |
e6cc62c6 VS |
33310 | char (*f) () = $ac_func; |
33311 | #endif | |
33312 | #ifdef __cplusplus | |
33313 | } | |
83307f33 VZ |
33314 | #endif |
33315 | ||
e6cc62c6 VS |
33316 | int |
33317 | main () | |
33318 | { | |
33319 | return f != $ac_func; | |
33320 | ; | |
33321 | return 0; | |
33322 | } | |
33323 | _ACEOF | |
33324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33326 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33327 | ac_status=$? |
32ddf007 VS |
33328 | grep -v '^ *+' conftest.er1 >conftest.err |
33329 | rm -f conftest.er1 | |
33330 | cat conftest.err >&5 | |
e6cc62c6 VS |
33331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33332 | (exit $ac_status); } && | |
e1293dcf | 33333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33335 | (eval $ac_try) 2>&5 | |
33336 | ac_status=$? | |
33337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33338 | (exit $ac_status); }; } && | |
33339 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33341 | (eval $ac_try) 2>&5 | |
33342 | ac_status=$? | |
33343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33344 | (exit $ac_status); }; }; then | |
33345 | eval "$as_ac_var=yes" | |
33346 | else | |
33347 | echo "$as_me: failed program was:" >&5 | |
33348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33349 | ||
33350 | eval "$as_ac_var=no" | |
33351 | fi | |
32ddf007 VS |
33352 | rm -f conftest.err conftest.$ac_objext \ |
33353 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33354 | fi |
33355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33356 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33357 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33358 | cat >>confdefs.h <<_ACEOF | |
33359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33360 | _ACEOF | |
83307f33 | 33361 | |
f93ca9fd VS |
33362 | cat >>confdefs.h <<\_ACEOF |
33363 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33364 | _ACEOF |
e6cc62c6 | 33365 | |
f93ca9fd | 33366 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 33367 | |
360d6699 | 33368 | else |
e6cc62c6 | 33369 | |
f93ca9fd VS |
33370 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
33371 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33372 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357c8e8 | 33374 | else |
f93ca9fd VS |
33375 | ac_check_lib_save_LIBS=$LIBS |
33376 | LIBS="-ldl $LIBS" | |
33377 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33378 | /* confdefs.h. */ |
33379 | _ACEOF | |
33380 | cat confdefs.h >>conftest.$ac_ext | |
33381 | cat >>conftest.$ac_ext <<_ACEOF | |
33382 | /* end confdefs.h. */ | |
5357c8e8 | 33383 | |
f93ca9fd VS |
33384 | /* Override any gcc2 internal prototype to avoid an error. */ |
33385 | #ifdef __cplusplus | |
33386 | extern "C" | |
33387 | #endif | |
33388 | /* We use char because int might match the return type of a gcc2 | |
33389 | builtin and then its argument prototype would still apply. */ | |
33390 | char dlopen (); | |
e6cc62c6 VS |
33391 | int |
33392 | main () | |
33393 | { | |
f93ca9fd | 33394 | dlopen (); |
e6cc62c6 VS |
33395 | ; |
33396 | return 0; | |
33397 | } | |
33398 | _ACEOF | |
f93ca9fd VS |
33399 | rm -f conftest.$ac_objext conftest$ac_exeext |
33400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33401 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33402 | ac_status=$? |
32ddf007 VS |
33403 | grep -v '^ *+' conftest.er1 >conftest.err |
33404 | rm -f conftest.er1 | |
33405 | cat conftest.err >&5 | |
e6cc62c6 VS |
33406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33407 | (exit $ac_status); } && | |
e1293dcf | 33408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33410 | (eval $ac_try) 2>&5 | |
33411 | ac_status=$? | |
33412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33413 | (exit $ac_status); }; } && | |
33414 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33416 | (eval $ac_try) 2>&5 | |
33417 | ac_status=$? | |
33418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33419 | (exit $ac_status); }; }; then | |
f93ca9fd | 33420 | ac_cv_lib_dl_dlopen=yes |
360d6699 | 33421 | else |
e6cc62c6 VS |
33422 | echo "$as_me: failed program was:" >&5 |
33423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33424 | ||
f93ca9fd | 33425 | ac_cv_lib_dl_dlopen=no |
247f5006 | 33426 | fi |
32ddf007 VS |
33427 | rm -f conftest.err conftest.$ac_objext \ |
33428 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 33429 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 33430 | fi |
f93ca9fd VS |
33431 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
33432 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33433 | if test $ac_cv_lib_dl_dlopen = yes; then | |
698dcdb6 | 33434 | |
f93ca9fd VS |
33435 | cat >>confdefs.h <<\_ACEOF |
33436 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33437 | _ACEOF |
360d6699 | 33438 | |
f93ca9fd VS |
33439 | HAVE_DL_FUNCS=1 |
33440 | DL_LINK=" -ldl$DL_LINK" | |
698dcdb6 | 33441 | |
f93ca9fd | 33442 | else |
e6cc62c6 | 33443 | |
f93ca9fd VS |
33444 | |
33445 | for ac_func in shl_load | |
afc31813 | 33446 | do |
e6cc62c6 VS |
33447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33452 | else | |
33453 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33454 | /* confdefs.h. */ |
33455 | _ACEOF | |
33456 | cat confdefs.h >>conftest.$ac_ext | |
33457 | cat >>conftest.$ac_ext <<_ACEOF | |
33458 | /* end confdefs.h. */ | |
32ddf007 VS |
33459 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33460 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33461 | #define $ac_func innocuous_$ac_func | |
33462 | ||
afc31813 | 33463 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33464 | which can conflict with char $ac_func (); below. |
33465 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33466 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33467 | |
e6cc62c6 VS |
33468 | #ifdef __STDC__ |
33469 | # include <limits.h> | |
33470 | #else | |
33471 | # include <assert.h> | |
33472 | #endif | |
32ddf007 VS |
33473 | |
33474 | #undef $ac_func | |
33475 | ||
afc31813 | 33476 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33477 | #ifdef __cplusplus |
33478 | extern "C" | |
33479 | { | |
33480 | #endif | |
afc31813 | 33481 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33482 | builtin and then its argument prototype would still apply. */ |
33483 | char $ac_func (); | |
afc31813 VZ |
33484 | /* The GNU C library defines this for functions which it implements |
33485 | to always fail with ENOSYS. Some functions are actually named | |
33486 | something starting with __ and the normal name is an alias. */ | |
33487 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33488 | choke me | |
33489 | #else | |
e6cc62c6 VS |
33490 | char (*f) () = $ac_func; |
33491 | #endif | |
33492 | #ifdef __cplusplus | |
33493 | } | |
afc31813 VZ |
33494 | #endif |
33495 | ||
e6cc62c6 VS |
33496 | int |
33497 | main () | |
33498 | { | |
33499 | return f != $ac_func; | |
33500 | ; | |
33501 | return 0; | |
33502 | } | |
33503 | _ACEOF | |
33504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33506 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33507 | ac_status=$? |
32ddf007 VS |
33508 | grep -v '^ *+' conftest.er1 >conftest.err |
33509 | rm -f conftest.er1 | |
33510 | cat conftest.err >&5 | |
e6cc62c6 VS |
33511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33512 | (exit $ac_status); } && | |
e1293dcf | 33513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33515 | (eval $ac_try) 2>&5 | |
33516 | ac_status=$? | |
33517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33518 | (exit $ac_status); }; } && | |
33519 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33521 | (eval $ac_try) 2>&5 | |
33522 | ac_status=$? | |
33523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33524 | (exit $ac_status); }; }; then | |
33525 | eval "$as_ac_var=yes" | |
33526 | else | |
33527 | echo "$as_me: failed program was:" >&5 | |
33528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33529 | ||
33530 | eval "$as_ac_var=no" | |
33531 | fi | |
32ddf007 VS |
33532 | rm -f conftest.err conftest.$ac_objext \ |
33533 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33534 | fi |
33535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33536 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33537 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33538 | cat >>confdefs.h <<_ACEOF | |
33539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33540 | _ACEOF | |
afc31813 | 33541 | |
f93ca9fd VS |
33542 | cat >>confdefs.h <<\_ACEOF |
33543 | #define HAVE_SHL_LOAD 1 | |
33544 | _ACEOF | |
afc31813 | 33545 | |
f93ca9fd | 33546 | HAVE_SHL_FUNCS=1 |
5c6fa7d2 | 33547 | |
a0b9e27f | 33548 | else |
e6cc62c6 | 33549 | |
f93ca9fd VS |
33550 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 |
33551 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33552 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33554 | else | |
33555 | ac_check_lib_save_LIBS=$LIBS | |
33556 | LIBS="-lshl_load $LIBS" | |
33557 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33558 | /* confdefs.h. */ |
33559 | _ACEOF | |
33560 | cat confdefs.h >>conftest.$ac_ext | |
33561 | cat >>conftest.$ac_ext <<_ACEOF | |
33562 | /* end confdefs.h. */ | |
0470b1e6 | 33563 | |
f93ca9fd VS |
33564 | /* Override any gcc2 internal prototype to avoid an error. */ |
33565 | #ifdef __cplusplus | |
33566 | extern "C" | |
33567 | #endif | |
33568 | /* We use char because int might match the return type of a gcc2 | |
33569 | builtin and then its argument prototype would still apply. */ | |
33570 | char dld (); | |
e6cc62c6 VS |
33571 | int |
33572 | main () | |
33573 | { | |
f93ca9fd | 33574 | dld (); |
e6cc62c6 VS |
33575 | ; |
33576 | return 0; | |
33577 | } | |
33578 | _ACEOF | |
f93ca9fd VS |
33579 | rm -f conftest.$ac_objext conftest$ac_exeext |
33580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33581 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33582 | ac_status=$? |
32ddf007 VS |
33583 | grep -v '^ *+' conftest.er1 >conftest.err |
33584 | rm -f conftest.er1 | |
33585 | cat conftest.err >&5 | |
e6cc62c6 VS |
33586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33587 | (exit $ac_status); } && | |
e1293dcf | 33588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33590 | (eval $ac_try) 2>&5 | |
33591 | ac_status=$? | |
33592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33593 | (exit $ac_status); }; } && | |
33594 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33596 | (eval $ac_try) 2>&5 | |
33597 | ac_status=$? | |
33598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33599 | (exit $ac_status); }; }; then | |
f93ca9fd | 33600 | ac_cv_lib_shl_load_dld=yes |
0470b1e6 | 33601 | else |
e6cc62c6 VS |
33602 | echo "$as_me: failed program was:" >&5 |
33603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33604 | ||
f93ca9fd VS |
33605 | ac_cv_lib_shl_load_dld=no |
33606 | fi | |
32ddf007 VS |
33607 | rm -f conftest.err conftest.$ac_objext \ |
33608 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
33609 | LIBS=$ac_check_lib_save_LIBS |
33610 | fi | |
33611 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33612 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33613 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33614 | ||
33615 | HAVE_SHL_FUNCS=1 | |
33616 | DL_LINK=" -ldld$DL_LINK" | |
e6cc62c6 | 33617 | |
247f5006 | 33618 | fi |
f93ca9fd | 33619 | |
a0b9e27f | 33620 | |
e6cc62c6 | 33621 | fi |
f93ca9fd | 33622 | done |
6232543b | 33623 | |
0470b1e6 | 33624 | |
f93ca9fd VS |
33625 | fi |
33626 | ||
3fcdd07b | 33627 | |
f93ca9fd VS |
33628 | fi |
33629 | done | |
e6cc62c6 VS |
33630 | |
33631 | ||
f93ca9fd VS |
33632 | if test "$HAVE_DL_FUNCS" = 1; then |
33633 | ||
33634 | for ac_func in dlerror | |
3fcdd07b | 33635 | do |
e6cc62c6 VS |
33636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33641 | else | |
33642 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33643 | /* confdefs.h. */ |
33644 | _ACEOF | |
33645 | cat confdefs.h >>conftest.$ac_ext | |
33646 | cat >>conftest.$ac_ext <<_ACEOF | |
33647 | /* end confdefs.h. */ | |
32ddf007 VS |
33648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33650 | #define $ac_func innocuous_$ac_func | |
33651 | ||
3fcdd07b | 33652 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33653 | which can conflict with char $ac_func (); below. |
33654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33655 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33656 | |
e6cc62c6 VS |
33657 | #ifdef __STDC__ |
33658 | # include <limits.h> | |
33659 | #else | |
33660 | # include <assert.h> | |
33661 | #endif | |
32ddf007 VS |
33662 | |
33663 | #undef $ac_func | |
33664 | ||
3fcdd07b | 33665 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33666 | #ifdef __cplusplus |
33667 | extern "C" | |
33668 | { | |
33669 | #endif | |
3fcdd07b | 33670 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33671 | builtin and then its argument prototype would still apply. */ |
33672 | char $ac_func (); | |
3fcdd07b VZ |
33673 | /* The GNU C library defines this for functions which it implements |
33674 | to always fail with ENOSYS. Some functions are actually named | |
33675 | something starting with __ and the normal name is an alias. */ | |
33676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33677 | choke me | |
33678 | #else | |
e6cc62c6 VS |
33679 | char (*f) () = $ac_func; |
33680 | #endif | |
33681 | #ifdef __cplusplus | |
33682 | } | |
3fcdd07b VZ |
33683 | #endif |
33684 | ||
e6cc62c6 VS |
33685 | int |
33686 | main () | |
33687 | { | |
33688 | return f != $ac_func; | |
33689 | ; | |
33690 | return 0; | |
33691 | } | |
33692 | _ACEOF | |
33693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33695 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33696 | ac_status=$? |
32ddf007 VS |
33697 | grep -v '^ *+' conftest.er1 >conftest.err |
33698 | rm -f conftest.er1 | |
33699 | cat conftest.err >&5 | |
e6cc62c6 VS |
33700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33701 | (exit $ac_status); } && | |
e1293dcf | 33702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33704 | (eval $ac_try) 2>&5 | |
33705 | ac_status=$? | |
33706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33707 | (exit $ac_status); }; } && | |
33708 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33710 | (eval $ac_try) 2>&5 | |
33711 | ac_status=$? | |
33712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33713 | (exit $ac_status); }; }; then | |
33714 | eval "$as_ac_var=yes" | |
33715 | else | |
33716 | echo "$as_me: failed program was:" >&5 | |
33717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33718 | ||
33719 | eval "$as_ac_var=no" | |
33720 | fi | |
32ddf007 VS |
33721 | rm -f conftest.err conftest.$ac_objext \ |
33722 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33723 | fi |
33724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33725 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33726 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33727 | cat >>confdefs.h <<_ACEOF | |
33728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33729 | _ACEOF | |
f93ca9fd VS |
33730 | cat >>confdefs.h <<\_ACEOF |
33731 | #define HAVE_DLERROR 1 | |
33732 | _ACEOF | |
3fcdd07b | 33733 | |
f93ca9fd | 33734 | else |
698dcdb6 | 33735 | |
f93ca9fd VS |
33736 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
33737 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33738 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
e6cc62c6 VS |
33739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33740 | else | |
f93ca9fd VS |
33741 | ac_check_lib_save_LIBS=$LIBS |
33742 | LIBS="-ldl $LIBS" | |
33743 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33744 | /* confdefs.h. */ |
33745 | _ACEOF | |
33746 | cat confdefs.h >>conftest.$ac_ext | |
33747 | cat >>conftest.$ac_ext <<_ACEOF | |
33748 | /* end confdefs.h. */ | |
afc31813 | 33749 | |
f93ca9fd VS |
33750 | /* Override any gcc2 internal prototype to avoid an error. */ |
33751 | #ifdef __cplusplus | |
33752 | extern "C" | |
33753 | #endif | |
33754 | /* We use char because int might match the return type of a gcc2 | |
33755 | builtin and then its argument prototype would still apply. */ | |
33756 | char dlerror (); | |
e6cc62c6 VS |
33757 | int |
33758 | main () | |
33759 | { | |
f93ca9fd | 33760 | dlerror (); |
e6cc62c6 VS |
33761 | ; |
33762 | return 0; | |
33763 | } | |
33764 | _ACEOF | |
f93ca9fd VS |
33765 | rm -f conftest.$ac_objext conftest$ac_exeext |
33766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33767 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33768 | ac_status=$? |
32ddf007 VS |
33769 | grep -v '^ *+' conftest.er1 >conftest.err |
33770 | rm -f conftest.er1 | |
33771 | cat conftest.err >&5 | |
e6cc62c6 VS |
33772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33773 | (exit $ac_status); } && | |
e1293dcf | 33774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33776 | (eval $ac_try) 2>&5 | |
33777 | ac_status=$? | |
33778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33779 | (exit $ac_status); }; } && | |
33780 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33782 | (eval $ac_try) 2>&5 | |
33783 | ac_status=$? | |
33784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33785 | (exit $ac_status); }; }; then | |
f93ca9fd | 33786 | ac_cv_lib_dl_dlerror=yes |
10f2d63a | 33787 | else |
e6cc62c6 VS |
33788 | echo "$as_me: failed program was:" >&5 |
33789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33790 | ||
f93ca9fd VS |
33791 | ac_cv_lib_dl_dlerror=no |
33792 | fi | |
32ddf007 VS |
33793 | rm -f conftest.err conftest.$ac_objext \ |
33794 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
33795 | LIBS=$ac_check_lib_save_LIBS |
33796 | fi | |
33797 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33798 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33799 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33800 | cat >>confdefs.h <<\_ACEOF | |
33801 | #define HAVE_DLERROR 1 | |
33802 | _ACEOF | |
33803 | ||
33804 | fi | |
33805 | ||
33806 | ||
33807 | ||
33808 | fi | |
33809 | done | |
33810 | ||
33811 | fi | |
33812 | fi | |
33813 | ||
33814 | if test "$HAVE_DL_FUNCS" = 0; then | |
33815 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33816 | if test "$USE_UNIX" = 1; then | |
33817 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33818 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33819 | wxUSE_DYNAMIC_LOADER=no | |
33820 | wxUSE_DYNLIB_CLASS=no | |
33821 | else | |
33822 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33823 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33824 | fi | |
33825 | fi | |
33826 | fi | |
33827 | fi | |
33828 | fi | |
33829 | ||
33830 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33831 | cat >>confdefs.h <<\_ACEOF | |
33832 | #define wxUSE_DYNAMIC_LOADER 1 | |
33833 | _ACEOF | |
33834 | ||
33835 | fi | |
33836 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33837 | cat >>confdefs.h <<\_ACEOF | |
33838 | #define wxUSE_DYNLIB_CLASS 1 | |
33839 | _ACEOF | |
33840 | ||
33841 | fi | |
33842 | ||
33843 | ||
33844 | ||
33845 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33846 | if test "$wxUSE_SHARED" = "no" ; then | |
33847 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33848 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33849 | wxUSE_PLUGINS=no | |
33850 | fi | |
33851 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33852 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33853 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33854 | wxUSE_PLUGINS=no | |
33855 | fi | |
33856 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33857 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33858 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33859 | wxUSE_PLUGINS=no | |
33860 | fi | |
33861 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33862 | cat >>confdefs.h <<\_ACEOF | |
33863 | #define wxUSE_PLUGINS 1 | |
33864 | _ACEOF | |
33865 | ||
33866 | fi | |
33867 | fi | |
33868 | ||
33869 | ||
33870 | if test "$wxUSE_STL" = "yes"; then | |
33871 | cat >>confdefs.h <<\_ACEOF | |
33872 | #define wxUSE_STL 1 | |
33873 | _ACEOF | |
33874 | ||
33875 | fi | |
33876 | ||
33877 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33878 | cat >>confdefs.h <<\_ACEOF | |
33879 | #define wxUSE_APPLE_IEEE 1 | |
33880 | _ACEOF | |
33881 | ||
33882 | fi | |
33883 | ||
33884 | if test "$wxUSE_TIMER" = "yes"; then | |
33885 | cat >>confdefs.h <<\_ACEOF | |
33886 | #define wxUSE_TIMER 1 | |
33887 | _ACEOF | |
33888 | ||
33889 | fi | |
33890 | ||
33891 | WITH_PLUGIN_SDL=0 | |
002ed9af | 33892 | if test "$wxUSE_SOUND" = "yes"; then |
f93ca9fd VS |
33893 | if test "$USE_UNIX" = "1" ; then |
33894 | ||
33895 | for ac_header in sys/soundcard.h | |
33896 | do | |
33897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33903 | fi | |
33904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33906 | else | |
33907 | # Is the header compilable? | |
33908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 33910 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33911 | /* confdefs.h. */ |
33912 | _ACEOF | |
33913 | cat confdefs.h >>conftest.$ac_ext | |
33914 | cat >>conftest.$ac_ext <<_ACEOF | |
33915 | /* end confdefs.h. */ | |
f93ca9fd VS |
33916 | $ac_includes_default |
33917 | #include <$ac_header> | |
e6cc62c6 VS |
33918 | _ACEOF |
33919 | rm -f conftest.$ac_objext | |
33920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33921 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33922 | ac_status=$? |
32ddf007 VS |
33923 | grep -v '^ *+' conftest.er1 >conftest.err |
33924 | rm -f conftest.er1 | |
33925 | cat conftest.err >&5 | |
e6cc62c6 VS |
33926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33927 | (exit $ac_status); } && | |
e1293dcf | 33928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33930 | (eval $ac_try) 2>&5 | |
33931 | ac_status=$? | |
33932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33933 | (exit $ac_status); }; } && | |
33934 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33936 | (eval $ac_try) 2>&5 | |
33937 | ac_status=$? | |
33938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33939 | (exit $ac_status); }; }; then | |
f93ca9fd | 33940 | ac_header_compiler=yes |
10f2d63a | 33941 | else |
e6cc62c6 VS |
33942 | echo "$as_me: failed program was:" >&5 |
33943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33944 | ||
f93ca9fd | 33945 | ac_header_compiler=no |
10f2d63a | 33946 | fi |
32ddf007 | 33947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
33948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
b089607b | 33950 | |
f93ca9fd VS |
33951 | # Is the header present? |
33952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33954 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33955 | /* confdefs.h. */ |
33956 | _ACEOF | |
33957 | cat confdefs.h >>conftest.$ac_ext | |
33958 | cat >>conftest.$ac_ext <<_ACEOF | |
33959 | /* end confdefs.h. */ | |
f93ca9fd | 33960 | #include <$ac_header> |
e6cc62c6 | 33961 | _ACEOF |
f93ca9fd VS |
33962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
33963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
e6cc62c6 | 33964 | ac_status=$? |
f95e4495 VS |
33965 | grep -v '^ *+' conftest.er1 >conftest.err |
33966 | rm -f conftest.er1 | |
33967 | cat conftest.err >&5 | |
e6cc62c6 | 33968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd VS |
33969 | (exit $ac_status); } >/dev/null; then |
33970 | if test -s conftest.err; then | |
33971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 33972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
33973 | else |
33974 | ac_cpp_err= | |
33975 | fi | |
33976 | else | |
33977 | ac_cpp_err=yes | |
33978 | fi | |
33979 | if test -z "$ac_cpp_err"; then | |
33980 | ac_header_preproc=yes | |
33981 | else | |
33982 | echo "$as_me: failed program was:" >&5 | |
33983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33984 | ||
33985 | ac_header_preproc=no | |
33986 | fi | |
33987 | rm -f conftest.err conftest.$ac_ext | |
33988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33990 | ||
33991 | # So? What about this header? | |
32ddf007 VS |
33992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33993 | yes:no: ) | |
f93ca9fd VS |
33994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
33996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33998 | ac_header_preproc=yes | |
f93ca9fd | 33999 | ;; |
32ddf007 | 34000 | no:yes:* ) |
f93ca9fd VS |
34001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
34003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
34009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
34011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
34013 | ( |
34014 | cat <<\_ASBOX | |
32ddf007 VS |
34015 | ## ----------------------------------------- ## |
34016 | ## Report this to wx-dev@lists.wxwindows.org ## | |
34017 | ## ----------------------------------------- ## | |
f93ca9fd VS |
34018 | _ASBOX |
34019 | ) | | |
34020 | sed "s/^/$as_me: WARNING: /" >&2 | |
34021 | ;; | |
34022 | esac | |
34023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34027 | else | |
32ddf007 | 34028 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
34029 | fi |
34030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34032 | ||
34033 | fi | |
34034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34035 | cat >>confdefs.h <<_ACEOF | |
34036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34037 | _ACEOF | |
34038 | ||
34039 | fi | |
34040 | ||
34041 | done | |
34042 | ||
34043 | ||
34044 | if test "$wxUSE_LIBSDL" != "no"; then | |
34045 | ||
34046 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34047 | if test "${with_sdl_prefix+set}" = set; then | |
34048 | withval="$with_sdl_prefix" | |
34049 | sdl_prefix="$withval" | |
34050 | else | |
34051 | sdl_prefix="" | |
34052 | fi; | |
34053 | ||
34054 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34055 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34056 | withval="$with_sdl_exec_prefix" | |
34057 | sdl_exec_prefix="$withval" | |
34058 | else | |
34059 | sdl_exec_prefix="" | |
34060 | fi; | |
34061 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34062 | if test "${enable_sdltest+set}" = set; then | |
34063 | enableval="$enable_sdltest" | |
34064 | ||
34065 | else | |
34066 | enable_sdltest=yes | |
34067 | fi; | |
34068 | ||
34069 | if test x$sdl_exec_prefix != x ; then | |
34070 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34071 | if test x${SDL_CONFIG+set} != xset ; then | |
34072 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34073 | fi | |
34074 | fi | |
34075 | if test x$sdl_prefix != x ; then | |
34076 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34077 | if test x${SDL_CONFIG+set} != xset ; then | |
34078 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34079 | fi | |
34080 | fi | |
34081 | ||
34082 | ||
34083 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34084 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34085 | set dummy sdl-config; ac_word=$2 | |
34086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34088 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34090 | else | |
34091 | case $SDL_CONFIG in | |
34092 | [\\/]* | ?:[\\/]*) | |
34093 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34094 | ;; | |
34095 | *) | |
34096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34097 | for as_dir in $PATH | |
34098 | do | |
34099 | IFS=$as_save_IFS | |
34100 | test -z "$as_dir" && as_dir=. | |
34101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34103 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34105 | break 2 | |
34106 | fi | |
34107 | done | |
34108 | done | |
34109 | ||
34110 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34111 | ;; | |
34112 | esac | |
34113 | fi | |
34114 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34115 | ||
34116 | if test -n "$SDL_CONFIG"; then | |
34117 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34118 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34119 | else | |
34120 | echo "$as_me:$LINENO: result: no" >&5 | |
34121 | echo "${ECHO_T}no" >&6 | |
34122 | fi | |
34123 | ||
34124 | min_sdl_version=1.2.0 | |
34125 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34126 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34127 | no_sdl="" | |
34128 | if test "$SDL_CONFIG" = "no" ; then | |
34129 | no_sdl=yes | |
34130 | else | |
34131 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34132 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34133 | ||
34134 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34135 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34136 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34137 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34138 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34139 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34140 | if test "x$enable_sdltest" = "xyes" ; then | |
34141 | ac_save_CFLAGS="$CFLAGS" | |
34142 | ac_save_LIBS="$LIBS" | |
34143 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34144 | LIBS="$LIBS $SDL_LIBS" | |
34145 | rm -f conf.sdltest | |
34146 | if test "$cross_compiling" = yes; then | |
34147 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34148 | else | |
34149 | cat >conftest.$ac_ext <<_ACEOF | |
34150 | /* confdefs.h. */ | |
34151 | _ACEOF | |
34152 | cat confdefs.h >>conftest.$ac_ext | |
34153 | cat >>conftest.$ac_ext <<_ACEOF | |
34154 | /* end confdefs.h. */ | |
34155 | ||
34156 | #include <stdio.h> | |
34157 | #include <stdlib.h> | |
34158 | #include <string.h> | |
34159 | #include "SDL.h" | |
34160 | ||
34161 | char* | |
34162 | my_strdup (char *str) | |
34163 | { | |
34164 | char *new_str; | |
34165 | ||
34166 | if (str) | |
34167 | { | |
34168 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34169 | strcpy (new_str, str); | |
34170 | } | |
34171 | else | |
34172 | new_str = NULL; | |
34173 | ||
34174 | return new_str; | |
34175 | } | |
34176 | ||
34177 | int main (int argc, char *argv[]) | |
34178 | { | |
34179 | int major, minor, micro; | |
34180 | char *tmp_version; | |
34181 | ||
34182 | /* This hangs on some systems (?) | |
34183 | system ("touch conf.sdltest"); | |
34184 | */ | |
34185 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34186 | ||
34187 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34188 | tmp_version = my_strdup("$min_sdl_version"); | |
34189 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34190 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34191 | exit(1); | |
34192 | } | |
34193 | ||
34194 | if (($sdl_major_version > major) || | |
34195 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34196 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34197 | { | |
34198 | return 0; | |
34199 | } | |
34200 | else | |
34201 | { | |
34202 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34203 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34204 | printf("*** best to upgrade to the required version.\n"); | |
34205 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34206 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34207 | printf("*** config.cache before re-running configure\n"); | |
34208 | return 1; | |
34209 | } | |
34210 | } | |
34211 | ||
34212 | ||
34213 | _ACEOF | |
34214 | rm -f conftest$ac_exeext | |
34215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34216 | (eval $ac_link) 2>&5 | |
f95e4495 VS |
34217 | ac_status=$? |
34218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f93ca9fd | 34219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e6cc62c6 VS |
34220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34221 | (eval $ac_try) 2>&5 | |
34222 | ac_status=$? | |
34223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34224 | (exit $ac_status); }; }; then | |
f93ca9fd | 34225 | : |
e6cc62c6 | 34226 | else |
f93ca9fd VS |
34227 | echo "$as_me: program exited with status $ac_status" >&5 |
34228 | echo "$as_me: failed program was:" >&5 | |
e6cc62c6 VS |
34229 | sed 's/^/| /' conftest.$ac_ext >&5 |
34230 | ||
f93ca9fd VS |
34231 | ( exit $ac_status ) |
34232 | no_sdl=yes | |
e6cc62c6 | 34233 | fi |
32ddf007 | 34234 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34235 | fi |
f93ca9fd VS |
34236 | CFLAGS="$ac_save_CFLAGS" |
34237 | LIBS="$ac_save_LIBS" | |
34238 | fi | |
34239 | fi | |
34240 | if test "x$no_sdl" = x ; then | |
34241 | echo "$as_me:$LINENO: result: yes" >&5 | |
34242 | echo "${ECHO_T}yes" >&6 | |
0e012a93 | 34243 | |
f93ca9fd VS |
34244 | EXTRALIBS_SDL="$SDL_LIBS" |
34245 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34246 | cat >>confdefs.h <<\_ACEOF | |
34247 | #define wxUSE_LIBSDL 1 | |
34248 | _ACEOF | |
34249 | ||
34250 | ||
34251 | else | |
34252 | echo "$as_me:$LINENO: result: no" >&5 | |
34253 | echo "${ECHO_T}no" >&6 | |
34254 | if test "$SDL_CONFIG" = "no" ; then | |
34255 | echo "*** The sdl-config script installed by SDL could not be found" | |
34256 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34257 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34258 | echo "*** full path to sdl-config." | |
34259 | else | |
34260 | if test -f conf.sdltest ; then | |
34261 | : | |
34262 | else | |
34263 | echo "*** Could not run SDL test program, checking why..." | |
34264 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34265 | LIBS="$LIBS $SDL_LIBS" | |
34266 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34267 | /* confdefs.h. */ |
34268 | _ACEOF | |
34269 | cat confdefs.h >>conftest.$ac_ext | |
34270 | cat >>conftest.$ac_ext <<_ACEOF | |
34271 | /* end confdefs.h. */ | |
34272 | ||
f93ca9fd VS |
34273 | #include <stdio.h> |
34274 | #include "SDL.h" | |
34275 | ||
34276 | int main(int argc, char *argv[]) | |
34277 | { return 0; } | |
34278 | #undef main | |
34279 | #define main K_and_R_C_main | |
34280 | ||
e6cc62c6 VS |
34281 | int |
34282 | main () | |
34283 | { | |
f93ca9fd | 34284 | return 0; |
e6cc62c6 VS |
34285 | ; |
34286 | return 0; | |
34287 | } | |
34288 | _ACEOF | |
34289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34291 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34292 | ac_status=$? |
32ddf007 VS |
34293 | grep -v '^ *+' conftest.er1 >conftest.err |
34294 | rm -f conftest.er1 | |
34295 | cat conftest.err >&5 | |
e6cc62c6 VS |
34296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34297 | (exit $ac_status); } && | |
e1293dcf | 34298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34300 | (eval $ac_try) 2>&5 | |
34301 | ac_status=$? | |
34302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34303 | (exit $ac_status); }; } && | |
34304 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34306 | (eval $ac_try) 2>&5 | |
34307 | ac_status=$? | |
34308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34309 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34310 | echo "*** The test program compiled, but did not run. This usually means" |
34311 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34312 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34313 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34314 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34315 | echo "*** is required on your system" | |
34316 | echo "***" | |
34317 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34318 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
e6cc62c6 VS |
34319 | else |
34320 | echo "$as_me: failed program was:" >&5 | |
34321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34322 | ||
f93ca9fd VS |
34323 | echo "*** The test program failed to compile or link. See the file config.log for the" |
34324 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34325 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34326 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
e6cc62c6 | 34327 | fi |
32ddf007 VS |
34328 | rm -f conftest.err conftest.$ac_objext \ |
34329 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34330 | CFLAGS="$ac_save_CFLAGS" |
34331 | LIBS="$ac_save_LIBS" | |
34332 | fi | |
34333 | fi | |
34334 | SDL_CFLAGS="" | |
34335 | SDL_LIBS="" | |
34336 | wxUSE_LIBSDL="no" | |
34337 | fi | |
34338 | ||
34339 | ||
34340 | rm -f conf.sdltest | |
34341 | ||
34342 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34343 | WITH_PLUGIN_SDL=1 | |
34344 | fi | |
34345 | fi | |
34346 | fi | |
34347 | ||
34348 | cat >>confdefs.h <<\_ACEOF | |
002ed9af | 34349 | #define wxUSE_SOUND 1 |
f93ca9fd VS |
34350 | _ACEOF |
34351 | ||
34352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
e6cc62c6 | 34353 | fi |
afc31813 | 34354 | |
f93ca9fd VS |
34355 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34356 | cat >>confdefs.h <<\_ACEOF | |
34357 | #define wxUSE_CMDLINE_PARSER 1 | |
34358 | _ACEOF | |
34359 | ||
34360 | fi | |
e6cc62c6 | 34361 | |
f93ca9fd VS |
34362 | if test "$wxUSE_STOPWATCH" = "yes"; then |
34363 | cat >>confdefs.h <<\_ACEOF | |
34364 | #define wxUSE_STOPWATCH 1 | |
34365 | _ACEOF | |
e6cc62c6 | 34366 | |
6232543b | 34367 | fi |
b089607b | 34368 | |
f93ca9fd VS |
34369 | if test "$wxUSE_DATETIME" = "yes"; then |
34370 | cat >>confdefs.h <<\_ACEOF | |
34371 | #define wxUSE_DATETIME 1 | |
34372 | _ACEOF | |
e6cc62c6 | 34373 | |
f93ca9fd VS |
34374 | fi |
34375 | ||
34376 | if test "$wxUSE_FILE" = "yes"; then | |
34377 | cat >>confdefs.h <<\_ACEOF | |
34378 | #define wxUSE_FILE 1 | |
34379 | _ACEOF | |
0e012a93 | 34380 | |
1e487827 | 34381 | fi |
afc31813 | 34382 | |
f93ca9fd VS |
34383 | if test "$wxUSE_FFILE" = "yes"; then |
34384 | cat >>confdefs.h <<\_ACEOF | |
34385 | #define wxUSE_FFILE 1 | |
34386 | _ACEOF | |
34387 | ||
34388 | fi | |
34389 | ||
34390 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34391 | cat >>confdefs.h <<\_ACEOF | |
34392 | #define wxUSE_FILESYSTEM 1 | |
34393 | _ACEOF | |
34394 | ||
34395 | fi | |
34396 | ||
34397 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34398 | cat >>confdefs.h <<\_ACEOF | |
34399 | #define wxUSE_FS_ZIP 1 | |
34400 | _ACEOF | |
34401 | ||
34402 | fi | |
34403 | ||
34404 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34405 | cat >>confdefs.h <<\_ACEOF | |
34406 | #define wxUSE_ZIPSTREAM 1 | |
34407 | _ACEOF | |
34408 | ||
34409 | fi | |
34410 | ||
34411 | if test "$wxUSE_GZSTREAM" = "yes"; then | |
34412 | cat >>confdefs.h <<\_ACEOF | |
34413 | #define wxUSE_GZSTREAM 1 | |
34414 | _ACEOF | |
34415 | ||
34416 | fi | |
34417 | ||
34418 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34419 | cat >>confdefs.h <<\_ACEOF | |
34420 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34421 | _ACEOF | |
34422 | ||
34423 | fi | |
34424 | ||
34425 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34426 | cat >>confdefs.h <<\_ACEOF | |
34427 | #define wxUSE_SNGLINST_CHECKER 1 | |
34428 | _ACEOF | |
34429 | ||
34430 | fi | |
34431 | ||
34432 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34433 | cat >>confdefs.h <<\_ACEOF | |
34434 | #define wxUSE_BUSYINFO 1 | |
34435 | _ACEOF | |
34436 | ||
34437 | fi | |
34438 | ||
34439 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34440 | cat >>confdefs.h <<\_ACEOF | |
34441 | #define wxUSE_STD_IOSTREAM 1 | |
34442 | _ACEOF | |
34443 | ||
34444 | fi | |
34445 | ||
34446 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34447 | cat >>confdefs.h <<\_ACEOF | |
34448 | #define wxUSE_TEXTBUFFER 1 | |
34449 | _ACEOF | |
34450 | ||
34451 | fi | |
34452 | ||
34453 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34454 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34455 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34456 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34457 | else | |
34458 | cat >>confdefs.h <<\_ACEOF | |
34459 | #define wxUSE_TEXTFILE 1 | |
34460 | _ACEOF | |
34461 | ||
34462 | fi | |
34463 | fi | |
34464 | ||
34465 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34466 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34467 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34468 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34469 | else | |
34470 | cat >>confdefs.h <<\_ACEOF | |
34471 | #define wxUSE_CONFIG 1 | |
34472 | _ACEOF | |
34473 | ||
34474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34475 | fi | |
34476 | fi | |
34477 | ||
34478 | if test "$wxUSE_INTL" = "yes" ; then | |
34479 | if test "$wxUSE_FILE" != "yes"; then | |
34480 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34481 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34482 | else | |
34483 | cat >>confdefs.h <<\_ACEOF | |
34484 | #define wxUSE_INTL 1 | |
34485 | _ACEOF | |
34486 | ||
34487 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34488 | GUIDIST="$GUIDIST INTL_DIST" | |
34489 | fi | |
34490 | fi | |
34491 | ||
34492 | if test "$wxUSE_LOG" = "yes"; then | |
34493 | cat >>confdefs.h <<\_ACEOF | |
34494 | #define wxUSE_LOG 1 | |
34495 | _ACEOF | |
34496 | ||
34497 | ||
34498 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34499 | cat >>confdefs.h <<\_ACEOF | |
34500 | #define wxUSE_LOGGUI 1 | |
34501 | _ACEOF | |
34502 | ||
34503 | fi | |
34504 | ||
34505 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34506 | cat >>confdefs.h <<\_ACEOF | |
34507 | #define wxUSE_LOGWINDOW 1 | |
34508 | _ACEOF | |
34509 | ||
34510 | fi | |
34511 | ||
34512 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34513 | cat >>confdefs.h <<\_ACEOF | |
34514 | #define wxUSE_LOG_DIALOG 1 | |
34515 | _ACEOF | |
34516 | ||
3a922bb4 | 34517 | fi |
0feee163 | 34518 | fi |
51a9faba | 34519 | |
f93ca9fd VS |
34520 | if test "$wxUSE_LONGLONG" = "yes"; then |
34521 | cat >>confdefs.h <<\_ACEOF | |
34522 | #define wxUSE_LONGLONG 1 | |
34523 | _ACEOF | |
e6cc62c6 | 34524 | |
f93ca9fd VS |
34525 | fi |
34526 | ||
34527 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34528 | cat >>confdefs.h <<\_ACEOF | |
34529 | #define wxUSE_GEOMETRY 1 | |
e6cc62c6 | 34530 | _ACEOF |
51a9faba | 34531 | |
f93ca9fd | 34532 | fi |
e6cc62c6 | 34533 | |
f93ca9fd VS |
34534 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
34535 | cat >>confdefs.h <<\_ACEOF | |
34536 | #define wxUSE_DIALUP_MANAGER 1 | |
34537 | _ACEOF | |
51a9faba | 34538 | |
f93ca9fd VS |
34539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
34540 | fi | |
e6cc62c6 | 34541 | |
f93ca9fd VS |
34542 | if test "$wxUSE_STREAMS" = "yes" ; then |
34543 | cat >>confdefs.h <<\_ACEOF | |
34544 | #define wxUSE_STREAMS 1 | |
e6cc62c6 | 34545 | _ACEOF |
e6cc62c6 | 34546 | |
f93ca9fd | 34547 | fi |
e6cc62c6 | 34548 | |
9711d31e | 34549 | |
f93ca9fd VS |
34550 | if test "$wxUSE_DATETIME" = "yes"; then |
34551 | ||
34552 | for ac_func in strptime | |
34553 | do | |
34554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34557 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34559 | else | |
34560 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34561 | /* confdefs.h. */ |
34562 | _ACEOF | |
34563 | cat confdefs.h >>conftest.$ac_ext | |
34564 | cat >>conftest.$ac_ext <<_ACEOF | |
34565 | /* end confdefs.h. */ | |
32ddf007 VS |
34566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34568 | #define $ac_func innocuous_$ac_func | |
34569 | ||
f93ca9fd VS |
34570 | /* System header to define __stub macros and hopefully few prototypes, |
34571 | which can conflict with char $ac_func (); below. | |
34572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34573 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 34574 | |
f93ca9fd VS |
34575 | #ifdef __STDC__ |
34576 | # include <limits.h> | |
34577 | #else | |
34578 | # include <assert.h> | |
34579 | #endif | |
32ddf007 VS |
34580 | |
34581 | #undef $ac_func | |
34582 | ||
f93ca9fd VS |
34583 | /* Override any gcc2 internal prototype to avoid an error. */ |
34584 | #ifdef __cplusplus | |
34585 | extern "C" | |
34586 | { | |
34587 | #endif | |
34588 | /* We use char because int might match the return type of a gcc2 | |
34589 | builtin and then its argument prototype would still apply. */ | |
34590 | char $ac_func (); | |
34591 | /* The GNU C library defines this for functions which it implements | |
34592 | to always fail with ENOSYS. Some functions are actually named | |
34593 | something starting with __ and the normal name is an alias. */ | |
34594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34595 | choke me | |
34596 | #else | |
34597 | char (*f) () = $ac_func; | |
34598 | #endif | |
34599 | #ifdef __cplusplus | |
34600 | } | |
34601 | #endif | |
e6cc62c6 VS |
34602 | |
34603 | int | |
34604 | main () | |
34605 | { | |
f93ca9fd | 34606 | return f != $ac_func; |
e6cc62c6 VS |
34607 | ; |
34608 | return 0; | |
34609 | } | |
34610 | _ACEOF | |
f93ca9fd VS |
34611 | rm -f conftest.$ac_objext conftest$ac_exeext |
34612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34613 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34614 | ac_status=$? |
32ddf007 VS |
34615 | grep -v '^ *+' conftest.er1 >conftest.err |
34616 | rm -f conftest.er1 | |
34617 | cat conftest.err >&5 | |
e6cc62c6 VS |
34618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34619 | (exit $ac_status); } && | |
e1293dcf | 34620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34622 | (eval $ac_try) 2>&5 | |
34623 | ac_status=$? | |
34624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34625 | (exit $ac_status); }; } && | |
34626 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34628 | (eval $ac_try) 2>&5 | |
34629 | ac_status=$? | |
34630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34631 | (exit $ac_status); }; }; then | |
f93ca9fd | 34632 | eval "$as_ac_var=yes" |
afc31813 | 34633 | else |
e6cc62c6 VS |
34634 | echo "$as_me: failed program was:" >&5 |
34635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34636 | ||
f93ca9fd VS |
34637 | eval "$as_ac_var=no" |
34638 | fi | |
32ddf007 VS |
34639 | rm -f conftest.err conftest.$ac_objext \ |
34640 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34641 | fi |
34642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34644 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34645 | cat >>confdefs.h <<_ACEOF | |
34646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34647 | _ACEOF | |
34648 | ||
34649 | fi | |
34650 | done | |
34651 | ||
34652 | ||
34653 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34654 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34655 | if test "${wx_cv_var_timezone+set}" = set; then | |
34656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34657 | else | |
34658 | ||
34659 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34660 | /* confdefs.h. */ |
34661 | _ACEOF | |
34662 | cat confdefs.h >>conftest.$ac_ext | |
34663 | cat >>conftest.$ac_ext <<_ACEOF | |
34664 | /* end confdefs.h. */ | |
51a9faba | 34665 | |
f93ca9fd | 34666 | #include <time.h> |
e6cc62c6 VS |
34667 | |
34668 | int | |
34669 | main () | |
34670 | { | |
51a9faba | 34671 | |
f93ca9fd VS |
34672 | int tz; |
34673 | tz = timezone; | |
e6cc62c6 VS |
34674 | |
34675 | ; | |
34676 | return 0; | |
34677 | } | |
34678 | _ACEOF | |
34679 | rm -f conftest.$ac_objext | |
34680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34681 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34682 | ac_status=$? |
32ddf007 VS |
34683 | grep -v '^ *+' conftest.er1 >conftest.err |
34684 | rm -f conftest.er1 | |
34685 | cat conftest.err >&5 | |
e6cc62c6 VS |
34686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34687 | (exit $ac_status); } && | |
e1293dcf | 34688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34690 | (eval $ac_try) 2>&5 | |
34691 | ac_status=$? | |
34692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34693 | (exit $ac_status); }; } && | |
34694 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
34695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34696 | (eval $ac_try) 2>&5 | |
34697 | ac_status=$? | |
34698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34699 | (exit $ac_status); }; }; then | |
8284b0c5 | 34700 | |
f93ca9fd | 34701 | wx_cv_var_timezone=timezone |
dc3d889d | 34702 | |
f93ca9fd VS |
34703 | else |
34704 | echo "$as_me: failed program was:" >&5 | |
34705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
156b2523 | 34706 | |
e6cc62c6 | 34707 | |
f93ca9fd | 34708 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34709 | /* confdefs.h. */ |
34710 | _ACEOF | |
34711 | cat confdefs.h >>conftest.$ac_ext | |
34712 | cat >>conftest.$ac_ext <<_ACEOF | |
34713 | /* end confdefs.h. */ | |
f93ca9fd VS |
34714 | |
34715 | #include <time.h> | |
34716 | ||
34717 | int | |
34718 | main () | |
34719 | { | |
34720 | ||
34721 | int tz; | |
34722 | tz = _timezone; | |
34723 | ||
34724 | ; | |
34725 | return 0; | |
34726 | } | |
e6cc62c6 VS |
34727 | _ACEOF |
34728 | rm -f conftest.$ac_objext | |
34729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34730 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34731 | ac_status=$? |
32ddf007 VS |
34732 | grep -v '^ *+' conftest.er1 >conftest.err |
34733 | rm -f conftest.er1 | |
34734 | cat conftest.err >&5 | |
e6cc62c6 VS |
34735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34736 | (exit $ac_status); } && | |
e1293dcf | 34737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34739 | (eval $ac_try) 2>&5 | |
34740 | ac_status=$? | |
34741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34742 | (exit $ac_status); }; } && | |
34743 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34745 | (eval $ac_try) 2>&5 | |
34746 | ac_status=$? | |
34747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34748 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34749 | |
34750 | wx_cv_var_timezone=_timezone | |
34751 | ||
e6cc62c6 VS |
34752 | else |
34753 | echo "$as_me: failed program was:" >&5 | |
34754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34755 | ||
e6cc62c6 | 34756 | |
f93ca9fd | 34757 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34758 | /* confdefs.h. */ |
34759 | _ACEOF | |
34760 | cat confdefs.h >>conftest.$ac_ext | |
34761 | cat >>conftest.$ac_ext <<_ACEOF | |
34762 | /* end confdefs.h. */ | |
f93ca9fd VS |
34763 | |
34764 | #include <time.h> | |
34765 | ||
34766 | int | |
34767 | main () | |
34768 | { | |
34769 | ||
34770 | int tz; | |
34771 | tz = __timezone; | |
34772 | ||
34773 | ; | |
34774 | return 0; | |
34775 | } | |
e6cc62c6 | 34776 | _ACEOF |
f93ca9fd VS |
34777 | rm -f conftest.$ac_objext |
34778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34779 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34780 | ac_status=$? |
32ddf007 VS |
34781 | grep -v '^ *+' conftest.er1 >conftest.err |
34782 | rm -f conftest.er1 | |
34783 | cat conftest.err >&5 | |
e6cc62c6 | 34784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd | 34785 | (exit $ac_status); } && |
e1293dcf | 34786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34788 | (eval $ac_try) 2>&5 | |
34789 | ac_status=$? | |
34790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34791 | (exit $ac_status); }; } && | |
34792 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
34793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34794 | (eval $ac_try) 2>&5 | |
34795 | ac_status=$? | |
34796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34797 | (exit $ac_status); }; }; then | |
34798 | ||
34799 | wx_cv_var_timezone=__timezone | |
34800 | ||
e6cc62c6 VS |
34801 | else |
34802 | echo "$as_me: failed program was:" >&5 | |
34803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34804 | ||
e6cc62c6 | 34805 | |
f93ca9fd VS |
34806 | if test "$USE_DOS" = 0 ; then |
34807 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34808 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34809 | fi | |
34810 | ||
e6cc62c6 | 34811 | |
10f2d63a | 34812 | fi |
32ddf007 | 34813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 34814 | |
e6cc62c6 | 34815 | |
247f5006 | 34816 | fi |
32ddf007 | 34817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34818 | |
10f2d63a | 34819 | |
f93ca9fd | 34820 | fi |
32ddf007 | 34821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b089607b | 34822 | |
10f2d63a | 34823 | |
dc3d889d | 34824 | fi |
f93ca9fd VS |
34825 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 |
34826 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
dc3d889d | 34827 | |
f93ca9fd VS |
34828 | if test "x$wx_cv_var_timezone" != x ; then |
34829 | cat >>confdefs.h <<_ACEOF | |
34830 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34831 | _ACEOF | |
8284b0c5 | 34832 | |
f93ca9fd | 34833 | fi |
b089607b | 34834 | |
e6cc62c6 | 34835 | |
f93ca9fd | 34836 | for ac_func in localtime |
10f2d63a | 34837 | do |
e6cc62c6 VS |
34838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34841 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34843 | else | |
34844 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34845 | /* confdefs.h. */ |
34846 | _ACEOF | |
34847 | cat confdefs.h >>conftest.$ac_ext | |
34848 | cat >>conftest.$ac_ext <<_ACEOF | |
34849 | /* end confdefs.h. */ | |
32ddf007 VS |
34850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34852 | #define $ac_func innocuous_$ac_func | |
34853 | ||
10f2d63a | 34854 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34855 | which can conflict with char $ac_func (); below. |
34856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34857 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 34858 | |
e6cc62c6 VS |
34859 | #ifdef __STDC__ |
34860 | # include <limits.h> | |
34861 | #else | |
34862 | # include <assert.h> | |
34863 | #endif | |
32ddf007 VS |
34864 | |
34865 | #undef $ac_func | |
34866 | ||
10f2d63a | 34867 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34868 | #ifdef __cplusplus |
34869 | extern "C" | |
34870 | { | |
34871 | #endif | |
10f2d63a | 34872 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34873 | builtin and then its argument prototype would still apply. */ |
34874 | char $ac_func (); | |
10f2d63a VZ |
34875 | /* The GNU C library defines this for functions which it implements |
34876 | to always fail with ENOSYS. Some functions are actually named | |
34877 | something starting with __ and the normal name is an alias. */ | |
34878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34879 | choke me | |
34880 | #else | |
e6cc62c6 VS |
34881 | char (*f) () = $ac_func; |
34882 | #endif | |
34883 | #ifdef __cplusplus | |
34884 | } | |
10f2d63a VZ |
34885 | #endif |
34886 | ||
e6cc62c6 VS |
34887 | int |
34888 | main () | |
34889 | { | |
34890 | return f != $ac_func; | |
34891 | ; | |
34892 | return 0; | |
34893 | } | |
34894 | _ACEOF | |
34895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34897 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34898 | ac_status=$? |
32ddf007 VS |
34899 | grep -v '^ *+' conftest.er1 >conftest.err |
34900 | rm -f conftest.er1 | |
34901 | cat conftest.err >&5 | |
e6cc62c6 VS |
34902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34903 | (exit $ac_status); } && | |
e1293dcf | 34904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34906 | (eval $ac_try) 2>&5 | |
34907 | ac_status=$? | |
34908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34909 | (exit $ac_status); }; } && | |
34910 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34912 | (eval $ac_try) 2>&5 | |
34913 | ac_status=$? | |
34914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34915 | (exit $ac_status); }; }; then | |
34916 | eval "$as_ac_var=yes" | |
34917 | else | |
34918 | echo "$as_me: failed program was:" >&5 | |
34919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34920 | ||
34921 | eval "$as_ac_var=no" | |
34922 | fi | |
32ddf007 VS |
34923 | rm -f conftest.err conftest.$ac_objext \ |
34924 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34925 | fi |
34926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34927 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34928 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34929 | cat >>confdefs.h <<_ACEOF | |
34930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34931 | _ACEOF | |
34932 | ||
f93ca9fd VS |
34933 | fi |
34934 | done | |
e6cc62c6 | 34935 | |
e6cc62c6 | 34936 | |
f93ca9fd VS |
34937 | if test "$ac_cv_func_localtime" = "yes"; then |
34938 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34939 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34940 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
e6cc62c6 | 34941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10f2d63a | 34942 | else |
f93ca9fd VS |
34943 | |
34944 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34945 | /* confdefs.h. */ |
34946 | _ACEOF | |
34947 | cat confdefs.h >>conftest.$ac_ext | |
34948 | cat >>conftest.$ac_ext <<_ACEOF | |
34949 | /* end confdefs.h. */ | |
34950 | ||
f93ca9fd VS |
34951 | #include <time.h> |
34952 | ||
e6cc62c6 VS |
34953 | int |
34954 | main () | |
34955 | { | |
f93ca9fd VS |
34956 | |
34957 | struct tm tm; | |
34958 | tm.tm_gmtoff++; | |
34959 | ||
e6cc62c6 VS |
34960 | ; |
34961 | return 0; | |
34962 | } | |
34963 | _ACEOF | |
f93ca9fd VS |
34964 | rm -f conftest.$ac_objext |
34965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34966 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34967 | ac_status=$? |
32ddf007 VS |
34968 | grep -v '^ *+' conftest.er1 >conftest.err |
34969 | rm -f conftest.er1 | |
34970 | cat conftest.err >&5 | |
e6cc62c6 VS |
34971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34972 | (exit $ac_status); } && | |
e1293dcf | 34973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34975 | (eval $ac_try) 2>&5 | |
34976 | ac_status=$? | |
34977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34978 | (exit $ac_status); }; } && | |
34979 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34981 | (eval $ac_try) 2>&5 | |
34982 | ac_status=$? | |
34983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34984 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34985 | |
34986 | wx_cv_struct_tm_has_gmtoff=yes | |
34987 | ||
e6cc62c6 VS |
34988 | else |
34989 | echo "$as_me: failed program was:" >&5 | |
34990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34991 | ||
f93ca9fd VS |
34992 | wx_cv_struct_tm_has_gmtoff=no |
34993 | ||
e6cc62c6 | 34994 | fi |
32ddf007 | 34995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 34996 | |
e6cc62c6 | 34997 | fi |
f93ca9fd VS |
34998 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
34999 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35000 | fi | |
e6cc62c6 | 35001 | |
f93ca9fd VS |
35002 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then |
35003 | cat >>confdefs.h <<\_ACEOF | |
35004 | #define WX_GMTOFF_IN_TM 1 | |
e6cc62c6 | 35005 | _ACEOF |
10f2d63a | 35006 | |
f93ca9fd | 35007 | fi |
e6cc62c6 | 35008 | |
10f2d63a | 35009 | |
e6cc62c6 | 35010 | |
f93ca9fd | 35011 | for ac_func in gettimeofday ftime |
10f2d63a | 35012 | do |
e6cc62c6 VS |
35013 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35014 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35015 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35016 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35018 | else | |
35019 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35020 | /* confdefs.h. */ |
35021 | _ACEOF | |
35022 | cat confdefs.h >>conftest.$ac_ext | |
35023 | cat >>conftest.$ac_ext <<_ACEOF | |
35024 | /* end confdefs.h. */ | |
32ddf007 VS |
35025 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35027 | #define $ac_func innocuous_$ac_func | |
35028 | ||
10f2d63a | 35029 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
35030 | which can conflict with char $ac_func (); below. |
35031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35032 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35033 | |
e6cc62c6 VS |
35034 | #ifdef __STDC__ |
35035 | # include <limits.h> | |
35036 | #else | |
35037 | # include <assert.h> | |
35038 | #endif | |
32ddf007 VS |
35039 | |
35040 | #undef $ac_func | |
35041 | ||
10f2d63a | 35042 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35043 | #ifdef __cplusplus |
35044 | extern "C" | |
35045 | { | |
35046 | #endif | |
10f2d63a | 35047 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
35048 | builtin and then its argument prototype would still apply. */ |
35049 | char $ac_func (); | |
10f2d63a VZ |
35050 | /* The GNU C library defines this for functions which it implements |
35051 | to always fail with ENOSYS. Some functions are actually named | |
35052 | something starting with __ and the normal name is an alias. */ | |
35053 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35054 | choke me | |
35055 | #else | |
e6cc62c6 VS |
35056 | char (*f) () = $ac_func; |
35057 | #endif | |
35058 | #ifdef __cplusplus | |
35059 | } | |
10f2d63a VZ |
35060 | #endif |
35061 | ||
e6cc62c6 VS |
35062 | int |
35063 | main () | |
35064 | { | |
35065 | return f != $ac_func; | |
35066 | ; | |
35067 | return 0; | |
35068 | } | |
35069 | _ACEOF | |
35070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35072 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35073 | ac_status=$? |
32ddf007 VS |
35074 | grep -v '^ *+' conftest.er1 >conftest.err |
35075 | rm -f conftest.er1 | |
35076 | cat conftest.err >&5 | |
e6cc62c6 VS |
35077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35078 | (exit $ac_status); } && | |
e1293dcf | 35079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35081 | (eval $ac_try) 2>&5 | |
35082 | ac_status=$? | |
35083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35084 | (exit $ac_status); }; } && | |
35085 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35087 | (eval $ac_try) 2>&5 | |
35088 | ac_status=$? | |
35089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35090 | (exit $ac_status); }; }; then | |
35091 | eval "$as_ac_var=yes" | |
35092 | else | |
35093 | echo "$as_me: failed program was:" >&5 | |
35094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35095 | ||
35096 | eval "$as_ac_var=no" | |
35097 | fi | |
32ddf007 VS |
35098 | rm -f conftest.err conftest.$ac_objext \ |
35099 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35100 | fi |
35101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35102 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35103 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35104 | cat >>confdefs.h <<_ACEOF | |
35105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35106 | _ACEOF | |
f93ca9fd VS |
35107 | break |
35108 | fi | |
35109 | done | |
e6cc62c6 | 35110 | |
f93ca9fd VS |
35111 | |
35112 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35113 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35114 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35115 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35117 | else | |
35118 | ||
35119 | ||
35120 | ||
35121 | ac_ext=cc | |
35122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35126 | ||
35127 | ||
35128 | cat >conftest.$ac_ext <<_ACEOF | |
35129 | /* confdefs.h. */ | |
e6cc62c6 | 35130 | _ACEOF |
f93ca9fd VS |
35131 | cat confdefs.h >>conftest.$ac_ext |
35132 | cat >>conftest.$ac_ext <<_ACEOF | |
35133 | /* end confdefs.h. */ | |
10f2d63a | 35134 | |
f93ca9fd VS |
35135 | #include <sys/time.h> |
35136 | #include <unistd.h> | |
e6cc62c6 | 35137 | |
f93ca9fd VS |
35138 | int |
35139 | main () | |
35140 | { | |
e6cc62c6 | 35141 | |
f93ca9fd VS |
35142 | struct timeval tv; |
35143 | gettimeofday(&tv, NULL); | |
35144 | ||
35145 | ; | |
35146 | return 0; | |
35147 | } | |
35148 | _ACEOF | |
35149 | rm -f conftest.$ac_objext | |
35150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35151 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35152 | ac_status=$? |
32ddf007 VS |
35153 | grep -v '^ *+' conftest.er1 >conftest.err |
35154 | rm -f conftest.er1 | |
35155 | cat conftest.err >&5 | |
f93ca9fd VS |
35156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35157 | (exit $ac_status); } && | |
e1293dcf | 35158 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35160 | (eval $ac_try) 2>&5 | |
35161 | ac_status=$? | |
35162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35163 | (exit $ac_status); }; } && | |
35164 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35166 | (eval $ac_try) 2>&5 | |
35167 | ac_status=$? | |
35168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35169 | (exit $ac_status); }; }; then | |
35170 | wx_cv_func_gettimeofday_has_2_args=yes | |
f6bcfd97 | 35171 | else |
f93ca9fd VS |
35172 | echo "$as_me: failed program was:" >&5 |
35173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35174 | ||
e6cc62c6 | 35175 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35176 | /* confdefs.h. */ |
35177 | _ACEOF | |
35178 | cat confdefs.h >>conftest.$ac_ext | |
35179 | cat >>conftest.$ac_ext <<_ACEOF | |
35180 | /* end confdefs.h. */ | |
35181 | ||
f93ca9fd VS |
35182 | #include <sys/time.h> |
35183 | #include <unistd.h> | |
35184 | ||
e6cc62c6 VS |
35185 | int |
35186 | main () | |
35187 | { | |
f93ca9fd VS |
35188 | |
35189 | struct timeval tv; | |
35190 | gettimeofday(&tv); | |
35191 | ||
e6cc62c6 VS |
35192 | ; |
35193 | return 0; | |
35194 | } | |
35195 | _ACEOF | |
f93ca9fd VS |
35196 | rm -f conftest.$ac_objext |
35197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35198 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35199 | ac_status=$? |
32ddf007 VS |
35200 | grep -v '^ *+' conftest.er1 >conftest.err |
35201 | rm -f conftest.er1 | |
35202 | cat conftest.err >&5 | |
e6cc62c6 VS |
35203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35204 | (exit $ac_status); } && | |
e1293dcf | 35205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35207 | (eval $ac_try) 2>&5 | |
35208 | ac_status=$? | |
35209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35210 | (exit $ac_status); }; } && | |
35211 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35213 | (eval $ac_try) 2>&5 | |
35214 | ac_status=$? | |
35215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35216 | (exit $ac_status); }; }; then | |
f93ca9fd | 35217 | wx_cv_func_gettimeofday_has_2_args=no |
e6cc62c6 VS |
35218 | else |
35219 | echo "$as_me: failed program was:" >&5 | |
35220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35221 | ||
f6bcfd97 | 35222 | |
f93ca9fd VS |
35223 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
35224 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35225 | wx_cv_func_gettimeofday_has_2_args=unknown | |
e6cc62c6 | 35226 | |
f6bcfd97 | 35227 | |
f93ca9fd | 35228 | fi |
32ddf007 | 35229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 35230 | |
10f2d63a | 35231 | fi |
32ddf007 | 35232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
35233 | ac_ext=c |
35234 | ac_cpp='$CPP $CPPFLAGS' | |
35235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 35238 | |
e6cc62c6 | 35239 | |
10f2d63a | 35240 | fi |
f93ca9fd VS |
35241 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
35242 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35243 | ||
35244 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35245 | cat >>confdefs.h <<\_ACEOF | |
35246 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35247 | _ACEOF | |
10f2d63a | 35248 | |
f93ca9fd VS |
35249 | fi |
35250 | fi | |
e6cc62c6 | 35251 | |
f93ca9fd | 35252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
10f2d63a | 35253 | fi |
10f2d63a | 35254 | |
5c6fa7d2 | 35255 | |
f93ca9fd VS |
35256 | if test "$wxUSE_SOCKETS" = "yes"; then |
35257 | if test "$wxUSE_MGL" = "1"; then | |
35258 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35259 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35260 | wxUSE_SOCKETS="no" | |
35261 | fi | |
35262 | fi | |
e6cc62c6 | 35263 | |
f93ca9fd VS |
35264 | if test "$wxUSE_SOCKETS" = "yes"; then |
35265 | if test "$TOOLKIT" != "MSW"; then | |
35266 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35267 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35268 | if test "${ac_cv_func_socket+set}" = set; then | |
e6cc62c6 VS |
35269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
35270 | else | |
35271 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35272 | /* confdefs.h. */ |
35273 | _ACEOF | |
35274 | cat confdefs.h >>conftest.$ac_ext | |
35275 | cat >>conftest.$ac_ext <<_ACEOF | |
35276 | /* end confdefs.h. */ | |
32ddf007 VS |
35277 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35279 | #define socket innocuous_socket | |
35280 | ||
f6bcfd97 | 35281 | /* System header to define __stub macros and hopefully few prototypes, |
f93ca9fd | 35282 | which can conflict with char socket (); below. |
e6cc62c6 VS |
35283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
35284 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35285 | |
e6cc62c6 VS |
35286 | #ifdef __STDC__ |
35287 | # include <limits.h> | |
35288 | #else | |
35289 | # include <assert.h> | |
35290 | #endif | |
32ddf007 VS |
35291 | |
35292 | #undef socket | |
35293 | ||
f6bcfd97 | 35294 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35295 | #ifdef __cplusplus |
35296 | extern "C" | |
35297 | { | |
35298 | #endif | |
f6bcfd97 | 35299 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 35300 | builtin and then its argument prototype would still apply. */ |
f93ca9fd | 35301 | char socket (); |
f6bcfd97 BP |
35302 | /* The GNU C library defines this for functions which it implements |
35303 | to always fail with ENOSYS. Some functions are actually named | |
35304 | something starting with __ and the normal name is an alias. */ | |
f93ca9fd | 35305 | #if defined (__stub_socket) || defined (__stub___socket) |
f6bcfd97 BP |
35306 | choke me |
35307 | #else | |
f93ca9fd | 35308 | char (*f) () = socket; |
e6cc62c6 VS |
35309 | #endif |
35310 | #ifdef __cplusplus | |
35311 | } | |
f6bcfd97 BP |
35312 | #endif |
35313 | ||
e6cc62c6 VS |
35314 | int |
35315 | main () | |
35316 | { | |
f93ca9fd VS |
35317 | return f != socket; |
35318 | ; | |
35319 | return 0; | |
35320 | } | |
35321 | _ACEOF | |
35322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35324 | (eval $ac_link) 2>conftest.er1 |
f93ca9fd | 35325 | ac_status=$? |
32ddf007 VS |
35326 | grep -v '^ *+' conftest.er1 >conftest.err |
35327 | rm -f conftest.er1 | |
35328 | cat conftest.err >&5 | |
f93ca9fd VS |
35329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35330 | (exit $ac_status); } && | |
e1293dcf | 35331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35333 | (eval $ac_try) 2>&5 | |
35334 | ac_status=$? | |
35335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35336 | (exit $ac_status); }; } && | |
35337 | { ac_try='test -s conftest$ac_exeext' | |
f93ca9fd VS |
35338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35339 | (eval $ac_try) 2>&5 | |
35340 | ac_status=$? | |
35341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35342 | (exit $ac_status); }; }; then | |
35343 | ac_cv_func_socket=yes | |
35344 | else | |
35345 | echo "$as_me: failed program was:" >&5 | |
35346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35347 | ||
35348 | ac_cv_func_socket=no | |
35349 | fi | |
32ddf007 VS |
35350 | rm -f conftest.err conftest.$ac_objext \ |
35351 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
35352 | fi |
35353 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35354 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35355 | if test $ac_cv_func_socket = yes; then | |
35356 | : | |
35357 | else | |
35358 | ||
35359 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35360 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35361 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35363 | else | |
35364 | ac_check_lib_save_LIBS=$LIBS | |
35365 | LIBS="-lsocket $LIBS" | |
35366 | cat >conftest.$ac_ext <<_ACEOF | |
35367 | /* confdefs.h. */ | |
35368 | _ACEOF | |
35369 | cat confdefs.h >>conftest.$ac_ext | |
35370 | cat >>conftest.$ac_ext <<_ACEOF | |
35371 | /* end confdefs.h. */ | |
35372 | ||
35373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35374 | #ifdef __cplusplus | |
35375 | extern "C" | |
35376 | #endif | |
35377 | /* We use char because int might match the return type of a gcc2 | |
35378 | builtin and then its argument prototype would still apply. */ | |
35379 | char socket (); | |
35380 | int | |
35381 | main () | |
35382 | { | |
35383 | socket (); | |
e6cc62c6 VS |
35384 | ; |
35385 | return 0; | |
35386 | } | |
35387 | _ACEOF | |
35388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35390 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35391 | ac_status=$? |
32ddf007 VS |
35392 | grep -v '^ *+' conftest.er1 >conftest.err |
35393 | rm -f conftest.er1 | |
35394 | cat conftest.err >&5 | |
e6cc62c6 VS |
35395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35396 | (exit $ac_status); } && | |
e1293dcf | 35397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35399 | (eval $ac_try) 2>&5 | |
35400 | ac_status=$? | |
35401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35402 | (exit $ac_status); }; } && | |
35403 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35405 | (eval $ac_try) 2>&5 | |
35406 | ac_status=$? | |
35407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35408 | (exit $ac_status); }; }; then | |
f93ca9fd | 35409 | ac_cv_lib_socket_socket=yes |
e6cc62c6 VS |
35410 | else |
35411 | echo "$as_me: failed program was:" >&5 | |
35412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35413 | ||
f93ca9fd | 35414 | ac_cv_lib_socket_socket=no |
e6cc62c6 | 35415 | fi |
32ddf007 VS |
35416 | rm -f conftest.err conftest.$ac_objext \ |
35417 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 35418 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 35419 | fi |
f93ca9fd VS |
35420 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
35421 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35422 | if test $ac_cv_lib_socket_socket = yes; then | |
35423 | if test "$INET_LINK" != " -lsocket"; then | |
35424 | INET_LINK="$INET_LINK -lsocket" | |
35425 | fi | |
35426 | else | |
35427 | ||
35428 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35429 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35430 | wxUSE_SOCKETS=no | |
35431 | ||
35432 | ||
35433 | fi | |
35434 | ||
35435 | ||
35436 | ||
35437 | fi | |
35438 | ||
35439 | fi | |
35440 | fi | |
35441 | ||
35442 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35443 | if test "$TOOLKIT" != "MSW"; then | |
35444 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
35445 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
35446 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35448 | else | |
35449 | ||
35450 | cat >conftest.$ac_ext <<_ACEOF | |
35451 | /* confdefs.h. */ | |
e6cc62c6 | 35452 | _ACEOF |
f93ca9fd VS |
35453 | cat confdefs.h >>conftest.$ac_ext |
35454 | cat >>conftest.$ac_ext <<_ACEOF | |
35455 | /* end confdefs.h. */ | |
35456 | ||
35457 | #include <sys/types.h> | |
35458 | #include <sys/socket.h> | |
f6bcfd97 | 35459 | |
f93ca9fd VS |
35460 | int |
35461 | main () | |
35462 | { | |
35463 | ||
35464 | socklen_t len; | |
35465 | getsockname(0, 0, &len); | |
35466 | ||
35467 | ; | |
35468 | return 0; | |
35469 | } | |
35470 | _ACEOF | |
35471 | rm -f conftest.$ac_objext | |
35472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35473 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35474 | ac_status=$? |
32ddf007 VS |
35475 | grep -v '^ *+' conftest.er1 >conftest.err |
35476 | rm -f conftest.er1 | |
35477 | cat conftest.err >&5 | |
f93ca9fd VS |
35478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35479 | (exit $ac_status); } && | |
e1293dcf | 35480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35482 | (eval $ac_try) 2>&5 | |
35483 | ac_status=$? | |
35484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35485 | (exit $ac_status); }; } && | |
35486 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35488 | (eval $ac_try) 2>&5 | |
35489 | ac_status=$? | |
35490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35491 | (exit $ac_status); }; }; then | |
35492 | wx_cv_type_getsockname3=socklen_t | |
f6bcfd97 | 35493 | else |
f93ca9fd VS |
35494 | echo "$as_me: failed program was:" >&5 |
35495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e012a93 | 35496 | |
f93ca9fd VS |
35497 | |
35498 | CFLAGS_OLD="$CFLAGS" | |
35499 | if test "$GCC" = yes ; then | |
35500 | CFLAGS="$CFLAGS -Werror" | |
35501 | fi | |
35502 | ||
35503 | cat >conftest.$ac_ext <<_ACEOF | |
35504 | /* confdefs.h. */ | |
35505 | _ACEOF | |
35506 | cat confdefs.h >>conftest.$ac_ext | |
35507 | cat >>conftest.$ac_ext <<_ACEOF | |
35508 | /* end confdefs.h. */ | |
35509 | ||
35510 | #include <sys/types.h> | |
35511 | #include <sys/socket.h> | |
35512 | ||
35513 | int | |
35514 | main () | |
35515 | { | |
35516 | ||
35517 | size_t len; | |
35518 | getsockname(0, 0, &len); | |
35519 | ||
35520 | ; | |
35521 | return 0; | |
35522 | } | |
35523 | _ACEOF | |
35524 | rm -f conftest.$ac_objext | |
35525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35526 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35527 | ac_status=$? |
32ddf007 VS |
35528 | grep -v '^ *+' conftest.er1 >conftest.err |
35529 | rm -f conftest.er1 | |
35530 | cat conftest.err >&5 | |
f93ca9fd VS |
35531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35532 | (exit $ac_status); } && | |
e1293dcf | 35533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35535 | (eval $ac_try) 2>&5 | |
35536 | ac_status=$? | |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35538 | (exit $ac_status); }; } && | |
35539 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35541 | (eval $ac_try) 2>&5 | |
35542 | ac_status=$? | |
35543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35544 | (exit $ac_status); }; }; then | |
35545 | wx_cv_type_getsockname3=size_t | |
f6bcfd97 | 35546 | else |
f93ca9fd VS |
35547 | echo "$as_me: failed program was:" >&5 |
35548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35549 | ||
e6cc62c6 | 35550 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35551 | /* confdefs.h. */ |
35552 | _ACEOF | |
35553 | cat confdefs.h >>conftest.$ac_ext | |
35554 | cat >>conftest.$ac_ext <<_ACEOF | |
35555 | /* end confdefs.h. */ | |
35556 | ||
f93ca9fd VS |
35557 | #include <sys/types.h> |
35558 | #include <sys/socket.h> | |
35559 | ||
e6cc62c6 VS |
35560 | int |
35561 | main () | |
35562 | { | |
f93ca9fd VS |
35563 | |
35564 | int len; | |
35565 | getsockname(0, 0, &len); | |
35566 | ||
e6cc62c6 VS |
35567 | ; |
35568 | return 0; | |
35569 | } | |
35570 | _ACEOF | |
f93ca9fd VS |
35571 | rm -f conftest.$ac_objext |
35572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35573 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35574 | ac_status=$? |
32ddf007 VS |
35575 | grep -v '^ *+' conftest.er1 >conftest.err |
35576 | rm -f conftest.er1 | |
35577 | cat conftest.err >&5 | |
e6cc62c6 VS |
35578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35579 | (exit $ac_status); } && | |
e1293dcf | 35580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35582 | (eval $ac_try) 2>&5 | |
35583 | ac_status=$? | |
35584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35585 | (exit $ac_status); }; } && | |
35586 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35588 | (eval $ac_try) 2>&5 | |
35589 | ac_status=$? | |
35590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35591 | (exit $ac_status); }; }; then | |
f93ca9fd | 35592 | wx_cv_type_getsockname3=int |
e6cc62c6 VS |
35593 | else |
35594 | echo "$as_me: failed program was:" >&5 | |
35595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35596 | ||
f93ca9fd VS |
35597 | wx_cv_type_getsockname3=unknown |
35598 | ||
e6cc62c6 | 35599 | fi |
32ddf007 | 35600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35601 | |
f6bcfd97 | 35602 | fi |
32ddf007 | 35603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35604 | |
f93ca9fd | 35605 | CFLAGS="$CFLAGS_OLD" |
0e012a93 VZ |
35606 | |
35607 | ||
f6bcfd97 | 35608 | fi |
32ddf007 | 35609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35610 | |
f93ca9fd VS |
35611 | fi |
35612 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35613 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35614 | ||
35615 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35616 | wxUSE_SOCKETS=no | |
35617 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35618 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35619 | else | |
35620 | cat >>confdefs.h <<_ACEOF | |
35621 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35622 | _ACEOF | |
f6bcfd97 | 35623 | |
10f2d63a VZ |
35624 | fi |
35625 | fi | |
35626 | fi | |
35627 | ||
f93ca9fd | 35628 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 35629 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35630 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 35631 | _ACEOF |
0b9ab0bd | 35632 | |
f93ca9fd | 35633 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
1948bb32 | 35634 | fi |
f93ca9fd VS |
35635 | |
35636 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35637 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35638 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35639 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35640 | wxUSE_PROTOCOL=no | |
35641 | fi | |
35642 | fi | |
35643 | ||
35644 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 35645 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35646 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 35647 | _ACEOF |
10f2d63a | 35648 | |
f93ca9fd VS |
35649 | |
35650 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35651 | cat >>confdefs.h <<\_ACEOF | |
35652 | #define wxUSE_PROTOCOL_HTTP 1 | |
35653 | _ACEOF | |
35654 | ||
35655 | fi | |
35656 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35657 | cat >>confdefs.h <<\_ACEOF | |
35658 | #define wxUSE_PROTOCOL_FTP 1 | |
35659 | _ACEOF | |
35660 | ||
35661 | fi | |
35662 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35663 | cat >>confdefs.h <<\_ACEOF | |
35664 | #define wxUSE_PROTOCOL_FILE 1 | |
35665 | _ACEOF | |
35666 | ||
35667 | fi | |
35668 | else | |
35669 | if test "$wxUSE_FS_INET" = "yes"; then | |
35670 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35671 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35672 | wxUSE_FS_INET="no" | |
35673 | fi | |
10f2d63a VZ |
35674 | fi |
35675 | ||
f93ca9fd VS |
35676 | if test "$wxUSE_URL" = "yes"; then |
35677 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35678 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35679 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35680 | wxUSE_URL=no | |
35681 | fi | |
35682 | if test "$wxUSE_URL" = "yes"; then | |
35683 | cat >>confdefs.h <<\_ACEOF | |
35684 | #define wxUSE_URL 1 | |
35685 | _ACEOF | |
35686 | ||
35687 | fi | |
35688 | fi | |
35689 | ||
35690 | if test "$wxUSE_FS_INET" = "yes"; then | |
35691 | cat >>confdefs.h <<\_ACEOF | |
35692 | #define wxUSE_FS_INET 1 | |
35693 | _ACEOF | |
35694 | ||
35695 | fi | |
35696 | ||
35697 | ||
35698 | if test "$wxUSE_GUI" = "yes"; then | |
35699 | ||
35700 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35701 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35702 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35703 | wxUSE_JOYSTICK=no | |
35704 | fi | |
35705 | ||
35706 | if test "$TOOLKIT" != "MSW"; then | |
35707 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35708 | ||
35709 | for ac_header in linux/joystick.h | |
35710 | do | |
35711 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35717 | fi | |
35718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35719 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35720 | else | |
35721 | # Is the header compilable? | |
35722 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35724 | cat >conftest.$ac_ext <<_ACEOF | |
35725 | /* confdefs.h. */ | |
35726 | _ACEOF | |
35727 | cat confdefs.h >>conftest.$ac_ext | |
35728 | cat >>conftest.$ac_ext <<_ACEOF | |
35729 | /* end confdefs.h. */ | |
35730 | $ac_includes_default | |
35731 | #include <$ac_header> | |
35732 | _ACEOF | |
35733 | rm -f conftest.$ac_objext | |
35734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35735 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35736 | ac_status=$? |
32ddf007 VS |
35737 | grep -v '^ *+' conftest.er1 >conftest.err |
35738 | rm -f conftest.er1 | |
35739 | cat conftest.err >&5 | |
f93ca9fd VS |
35740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35741 | (exit $ac_status); } && | |
e1293dcf | 35742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35744 | (eval $ac_try) 2>&5 | |
35745 | ac_status=$? | |
35746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35747 | (exit $ac_status); }; } && | |
35748 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35750 | (eval $ac_try) 2>&5 | |
35751 | ac_status=$? | |
35752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35753 | (exit $ac_status); }; }; then | |
35754 | ac_header_compiler=yes | |
35755 | else | |
35756 | echo "$as_me: failed program was:" >&5 | |
35757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35758 | ||
35759 | ac_header_compiler=no | |
35760 | fi | |
32ddf007 | 35761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
35762 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35763 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35764 | ||
35765 | # Is the header present? | |
35766 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35767 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35768 | cat >conftest.$ac_ext <<_ACEOF | |
35769 | /* confdefs.h. */ | |
35770 | _ACEOF | |
35771 | cat confdefs.h >>conftest.$ac_ext | |
35772 | cat >>conftest.$ac_ext <<_ACEOF | |
35773 | /* end confdefs.h. */ | |
35774 | #include <$ac_header> | |
35775 | _ACEOF | |
35776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35778 | ac_status=$? | |
35779 | grep -v '^ *+' conftest.er1 >conftest.err | |
35780 | rm -f conftest.er1 | |
35781 | cat conftest.err >&5 | |
35782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35783 | (exit $ac_status); } >/dev/null; then | |
35784 | if test -s conftest.err; then | |
35785 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 35786 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
35787 | else |
35788 | ac_cpp_err= | |
35789 | fi | |
35790 | else | |
35791 | ac_cpp_err=yes | |
35792 | fi | |
35793 | if test -z "$ac_cpp_err"; then | |
35794 | ac_header_preproc=yes | |
35795 | else | |
35796 | echo "$as_me: failed program was:" >&5 | |
35797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35798 | ||
35799 | ac_header_preproc=no | |
35800 | fi | |
35801 | rm -f conftest.err conftest.$ac_ext | |
35802 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35803 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35804 | ||
35805 | # So? What about this header? | |
32ddf007 VS |
35806 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35807 | yes:no: ) | |
f93ca9fd VS |
35808 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35809 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
35810 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35811 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35812 | ac_header_preproc=yes | |
f93ca9fd | 35813 | ;; |
32ddf007 | 35814 | no:yes:* ) |
f93ca9fd VS |
35815 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35816 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
35817 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35818 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35819 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35820 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35821 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35822 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
35823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35824 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
35825 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35826 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
35827 | ( |
35828 | cat <<\_ASBOX | |
32ddf007 VS |
35829 | ## ----------------------------------------- ## |
35830 | ## Report this to wx-dev@lists.wxwindows.org ## | |
35831 | ## ----------------------------------------- ## | |
f93ca9fd VS |
35832 | _ASBOX |
35833 | ) | | |
35834 | sed "s/^/$as_me: WARNING: /" >&2 | |
35835 | ;; | |
35836 | esac | |
35837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35841 | else | |
32ddf007 | 35842 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
35843 | fi |
35844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35845 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35846 | ||
35847 | fi | |
35848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35849 | cat >>confdefs.h <<_ACEOF | |
35850 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35851 | _ACEOF | |
35852 | ||
35853 | fi | |
35854 | ||
35855 | done | |
35856 | ||
35857 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35858 | wxUSE_JOYSTICK=no | |
35859 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35860 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35861 | fi | |
35862 | fi | |
35863 | fi | |
35864 | ||
35865 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35866 | cat >>confdefs.h <<\_ACEOF | |
35867 | #define wxUSE_JOYSTICK 1 | |
35868 | _ACEOF | |
35869 | ||
35870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35871 | fi | |
35872 | fi | |
35873 | ||
35874 | ||
35875 | ||
1e6feb95 | 35876 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 35877 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35878 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 35879 | _ACEOF |
1e6feb95 VZ |
35880 | |
35881 | fi | |
35882 | ||
10f2d63a | 35883 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 35884 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35885 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 35886 | _ACEOF |
10f2d63a | 35887 | |
8284b0c5 | 35888 | |
eb854003 | 35889 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
35890 | wxUSE_UNICODE_MSLU=no |
35891 | fi | |
a72a4bfa | 35892 | |
eb854003 | 35893 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
35894 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
35895 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35896 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 35898 | else |
e6cc62c6 | 35899 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 35900 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 35901 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35902 | /* confdefs.h. */ |
35903 | _ACEOF | |
35904 | cat confdefs.h >>conftest.$ac_ext | |
35905 | cat >>conftest.$ac_ext <<_ACEOF | |
35906 | /* end confdefs.h. */ | |
a72a4bfa | 35907 | |
8284b0c5 | 35908 | |
e6cc62c6 VS |
35909 | int |
35910 | main () | |
35911 | { | |
35912 | main (); | |
35913 | ; | |
35914 | return 0; | |
35915 | } | |
35916 | _ACEOF | |
35917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35919 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35920 | ac_status=$? |
32ddf007 VS |
35921 | grep -v '^ *+' conftest.er1 >conftest.err |
35922 | rm -f conftest.er1 | |
35923 | cat conftest.err >&5 | |
e6cc62c6 VS |
35924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35925 | (exit $ac_status); } && | |
e1293dcf | 35926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35928 | (eval $ac_try) 2>&5 | |
35929 | ac_status=$? | |
35930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35931 | (exit $ac_status); }; } && | |
35932 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35934 | (eval $ac_try) 2>&5 | |
35935 | ac_status=$? | |
35936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35937 | (exit $ac_status); }; }; then | |
35938 | ac_cv_lib_unicows_main=yes | |
35939 | else | |
35940 | echo "$as_me: failed program was:" >&5 | |
35941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35942 | ||
35943 | ac_cv_lib_unicows_main=no | |
35944 | fi | |
32ddf007 VS |
35945 | rm -f conftest.err conftest.$ac_objext \ |
35946 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35947 | LIBS=$ac_check_lib_save_LIBS |
35948 | fi | |
35949 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35950 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35951 | if test $ac_cv_lib_unicows_main = yes; then | |
35952 | ||
35953 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 35954 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
35955 | _ACEOF |
35956 | ||
a72a4bfa | 35957 | |
a72a4bfa | 35958 | else |
a72a4bfa | 35959 | |
e6cc62c6 VS |
35960 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
35961 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35962 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35963 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 35964 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 35965 | |
a72a4bfa VS |
35966 | fi |
35967 | ||
35968 | fi | |
10f2d63a VZ |
35969 | fi |
35970 | ||
10f2d63a | 35971 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 35972 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35973 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 35974 | _ACEOF |
10f2d63a VZ |
35975 | |
35976 | fi | |
35977 | ||
8284b0c5 | 35978 | |
10f2d63a | 35979 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 35980 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35981 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 35982 | _ACEOF |
10f2d63a VZ |
35983 | |
35984 | fi | |
35985 | ||
e6cc62c6 | 35986 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35987 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 35988 | _ACEOF |
10f2d63a | 35989 | |
8284b0c5 | 35990 | |
e6cc62c6 | 35991 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35992 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 35993 | _ACEOF |
10f2d63a | 35994 | |
8284b0c5 MB |
35995 | |
35996 | ||
10f2d63a | 35997 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 35998 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35999 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 36000 | _ACEOF |
10f2d63a VZ |
36001 | |
36002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36003 | fi | |
36004 | ||
3879ecda | 36005 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 36006 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36007 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 36008 | _ACEOF |
10f2d63a | 36009 | |
1772d20c | 36010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
36011 | fi |
36012 | ||
36013 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 36014 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36015 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 36016 | _ACEOF |
10f2d63a VZ |
36017 | |
36018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36019 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36020 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36021 | fi | |
36022 | fi | |
36023 | ||
36024 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 36025 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36026 | #define wxUSE_HELP 1 |
e6cc62c6 | 36027 | _ACEOF |
10f2d63a VZ |
36028 | |
36029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 36030 | |
77e13408 | 36031 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 36032 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 36033 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 36034 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 36035 | _ACEOF |
29fd3c0c | 36036 | |
3e44f09d | 36037 | fi |
3379ed37 | 36038 | fi |
031d8228 VS |
36039 | |
36040 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36041 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 36042 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 36043 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 36044 | _ACEOF |
031d8228 VS |
36045 | |
36046 | else | |
e6cc62c6 VS |
36047 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
36048 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
36049 | wxUSE_WXHTML_HELP=no |
36050 | fi | |
36051 | fi | |
10f2d63a VZ |
36052 | fi |
36053 | ||
36054 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36055 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36056 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
36057 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 36058 | else |
e6cc62c6 | 36059 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36060 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 36061 | _ACEOF |
10f2d63a VZ |
36062 | |
36063 | fi | |
36064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36065 | fi | |
36066 | ||
e6cc62c6 VS |
36067 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
36068 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36069 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36070 | { (exit 1); exit 1; }; } | |
36071 | fi | |
36072 | ||
36073 | ||
f95e4495 | 36074 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
e6cc62c6 VS |
36075 | -o "$wxUSE_CLIPBOARD" = "yes" \ |
36076 | -o "$wxUSE_OLE" = "yes" \ | |
36077 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36078 | ||
36079 | for ac_header in ole2.h | |
36080 | do | |
36081 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36087 | fi | |
36088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36089 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36090 | else | |
36091 | # Is the header compilable? | |
36092 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36093 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36094 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36095 | /* confdefs.h. */ |
36096 | _ACEOF | |
36097 | cat confdefs.h >>conftest.$ac_ext | |
36098 | cat >>conftest.$ac_ext <<_ACEOF | |
36099 | /* end confdefs.h. */ | |
36100 | $ac_includes_default | |
36101 | #include <$ac_header> | |
36102 | _ACEOF | |
36103 | rm -f conftest.$ac_objext | |
36104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36105 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36106 | ac_status=$? |
32ddf007 VS |
36107 | grep -v '^ *+' conftest.er1 >conftest.err |
36108 | rm -f conftest.er1 | |
36109 | cat conftest.err >&5 | |
e6cc62c6 VS |
36110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36111 | (exit $ac_status); } && | |
e1293dcf | 36112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
36113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36114 | (eval $ac_try) 2>&5 | |
36115 | ac_status=$? | |
36116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36117 | (exit $ac_status); }; } && | |
36118 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
36124 | ac_header_compiler=yes | |
36125 | else | |
36126 | echo "$as_me: failed program was:" >&5 | |
36127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36128 | ||
36129 | ac_header_compiler=no | |
36130 | fi | |
32ddf007 | 36131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
36132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36133 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36134 | ||
36135 | # Is the header present? | |
36136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36138 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36139 | /* confdefs.h. */ |
36140 | _ACEOF | |
36141 | cat confdefs.h >>conftest.$ac_ext | |
36142 | cat >>conftest.$ac_ext <<_ACEOF | |
36143 | /* end confdefs.h. */ | |
36144 | #include <$ac_header> | |
36145 | _ACEOF | |
36146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36148 | ac_status=$? | |
36149 | grep -v '^ *+' conftest.er1 >conftest.err | |
36150 | rm -f conftest.er1 | |
36151 | cat conftest.err >&5 | |
36152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36153 | (exit $ac_status); } >/dev/null; then | |
36154 | if test -s conftest.err; then | |
36155 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 36156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
36157 | else |
36158 | ac_cpp_err= | |
36159 | fi | |
36160 | else | |
36161 | ac_cpp_err=yes | |
36162 | fi | |
36163 | if test -z "$ac_cpp_err"; then | |
36164 | ac_header_preproc=yes | |
36165 | else | |
36166 | echo "$as_me: failed program was:" >&5 | |
36167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36168 | ||
36169 | ac_header_preproc=no | |
36170 | fi | |
36171 | rm -f conftest.err conftest.$ac_ext | |
36172 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36173 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36174 | ||
36175 | # So? What about this header? | |
32ddf007 VS |
36176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36177 | yes:no: ) | |
e6cc62c6 VS |
36178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
36180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36182 | ac_header_preproc=yes | |
e6cc62c6 | 36183 | ;; |
32ddf007 | 36184 | no:yes:* ) |
e6cc62c6 VS |
36185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
36187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
36193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
36195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
36197 | ( |
36198 | cat <<\_ASBOX | |
32ddf007 VS |
36199 | ## ----------------------------------------- ## |
36200 | ## Report this to wx-dev@lists.wxwindows.org ## | |
36201 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
36202 | _ASBOX |
36203 | ) | | |
36204 | sed "s/^/$as_me: WARNING: /" >&2 | |
36205 | ;; | |
36206 | esac | |
36207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36211 | else | |
32ddf007 | 36212 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
36213 | fi |
36214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36216 | ||
10f2d63a | 36217 | fi |
e6cc62c6 VS |
36218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
36219 | cat >>confdefs.h <<_ACEOF | |
36220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36221 | _ACEOF | |
10f2d63a | 36222 | |
10f2d63a | 36223 | fi |
e6cc62c6 | 36224 | |
10f2d63a VZ |
36225 | done |
36226 | ||
8284b0c5 | 36227 | |
2b9bdf71 VZ |
36228 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
36229 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
36230 | |
36231 | ||
e6cc62c6 VS |
36232 | ac_ext=cc |
36233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36234 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36235 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36236 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36237 | ||
36238 | ||
36239 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36240 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36241 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36242 | /* confdefs.h. */ |
36243 | _ACEOF | |
36244 | cat confdefs.h >>conftest.$ac_ext | |
36245 | cat >>conftest.$ac_ext <<_ACEOF | |
36246 | /* end confdefs.h. */ | |
8284b0c5 MB |
36247 | #include <windows.h> |
36248 | #include <ole2.h> | |
e6cc62c6 VS |
36249 | int |
36250 | main () | |
36251 | { | |
8284b0c5 | 36252 | |
e6cc62c6 VS |
36253 | ; |
36254 | return 0; | |
36255 | } | |
36256 | _ACEOF | |
36257 | rm -f conftest.$ac_objext | |
36258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36259 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36260 | ac_status=$? |
32ddf007 VS |
36261 | grep -v '^ *+' conftest.er1 >conftest.err |
36262 | rm -f conftest.er1 | |
36263 | cat conftest.err >&5 | |
e6cc62c6 VS |
36264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36265 | (exit $ac_status); } && | |
e1293dcf | 36266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
36267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36268 | (eval $ac_try) 2>&5 | |
36269 | ac_status=$? | |
36270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36271 | (exit $ac_status); }; } && | |
36272 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
36273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36274 | (eval $ac_try) 2>&5 | |
36275 | ac_status=$? | |
36276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36277 | (exit $ac_status); }; }; then | |
36278 | echo "$as_me:$LINENO: result: no" >&5 | |
36279 | echo "${ECHO_T}no" >&6 | |
36280 | else | |
36281 | echo "$as_me: failed program was:" >&5 | |
36282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36283 | ||
36284 | echo "$as_me:$LINENO: result: yes" >&5 | |
36285 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
36286 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
36287 | fi | |
32ddf007 | 36288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 36289 | ac_ext=c |
8284b0c5 | 36290 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
36291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
36292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 36294 | |
2b9bdf71 | 36295 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 36296 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
f95e4495 VS |
36297 | if test "$wxUSE_OLE" = "yes" ; then |
36298 | cat >>confdefs.h <<\_ACEOF | |
4f11a343 | 36299 | #define wxUSE_OLE 1 |
e6cc62c6 | 36300 | _ACEOF |
4f11a343 | 36301 | |
f95e4495 | 36302 | fi |
2b9bdf71 VZ |
36303 | fi |
36304 | ||
f95e4495 VS |
36305 | if test "$wxUSE_DATAOBJ" = "yes" ; then |
36306 | cat >>confdefs.h <<\_ACEOF | |
2b9bdf71 | 36307 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36308 | _ACEOF |
2b9bdf71 | 36309 | |
f95e4495 | 36310 | fi |
2b9bdf71 | 36311 | else |
e6cc62c6 VS |
36312 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
36313 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
36314 | |
36315 | wxUSE_CLIPBOARD=no | |
36316 | wxUSE_DRAG_AND_DROP=no | |
36317 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
36318 | wxUSE_OLE=no |
36319 | fi | |
36320 | ||
36321 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 36322 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36323 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 36324 | _ACEOF |
3bce6687 JS |
36325 | |
36326 | ||
e6cc62c6 | 36327 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36328 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 36329 | _ACEOF |
3bce6687 JS |
36330 | |
36331 | fi | |
36332 | fi | |
36333 | ||
2b9bdf71 VZ |
36334 | if test "$wxUSE_IPC" = "yes"; then |
36335 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
36336 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
36337 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
36338 | fi |
36339 | ||
e6cc62c6 | 36340 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36341 | #define wxUSE_IPC 1 |
e6cc62c6 | 36342 | _ACEOF |
2b9bdf71 VZ |
36343 | |
36344 | fi | |
36345 | ||
36346 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 36347 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36348 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
36349 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36350 | wxUSE_CLIPBOARD=no |
36351 | fi | |
36352 | ||
36353 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 36354 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36355 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 36356 | _ACEOF |
2b9bdf71 | 36357 | |
8284b0c5 | 36358 | |
e6cc62c6 | 36359 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 36360 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36361 | _ACEOF |
673f4220 | 36362 | |
6c657b52 | 36363 | fi |
2b9bdf71 VZ |
36364 | fi |
36365 | ||
36366 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36367 | if test "$wxUSE_GTK" = 1; then | |
36368 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
36369 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
36370 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
36371 | wxUSE_DRAG_AND_DROP=no |
36372 | fi | |
36373 | fi | |
36374 | ||
2b9bdf71 | 36375 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
36376 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
36377 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
36378 | wxUSE_DRAG_AND_DROP=no |
36379 | fi | |
36380 | ||
f79bd02d | 36381 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
36382 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
36383 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
36384 | wxUSE_DRAG_AND_DROP=no |
36385 | fi | |
36386 | ||
6c657b52 | 36387 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36388 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
36389 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36390 | wxUSE_DRAG_AND_DROP=no |
36391 | fi | |
36392 | ||
10f2d63a | 36393 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 36394 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36395 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 36396 | _ACEOF |
10f2d63a | 36397 | |
10f2d63a VZ |
36398 | fi |
36399 | ||
36400 | fi | |
36401 | ||
e1293dcf RL |
36402 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then |
36403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36404 | fi | |
36405 | ||
10f2d63a | 36406 | if test "$wxUSE_SPLINES" = "yes" ; then |
e6cc62c6 | 36407 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36408 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 36409 | _ACEOF |
10f2d63a VZ |
36410 | |
36411 | fi | |
36412 | ||
8284b0c5 | 36413 | |
1e6feb95 VZ |
36414 | USES_CONTROLS=0 |
36415 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36416 | USES_CONTROLS=1 | |
36417 | fi | |
36418 | ||
10f2d63a | 36419 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 36420 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36421 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 36422 | _ACEOF |
10f2d63a | 36423 | |
1e6feb95 VZ |
36424 | USES_CONTROLS=1 |
36425 | fi | |
36426 | ||
36427 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 36428 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36429 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 36430 | _ACEOF |
1e6feb95 VZ |
36431 | |
36432 | USES_CONTROLS=1 | |
36433 | fi | |
36434 | ||
36435 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 36436 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36437 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 36438 | _ACEOF |
1e6feb95 VZ |
36439 | |
36440 | USES_CONTROLS=1 | |
36441 | fi | |
36442 | ||
36443 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 36444 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36445 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 36446 | _ACEOF |
1e6feb95 VZ |
36447 | |
36448 | USES_CONTROLS=1 | |
36449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
36450 | fi |
36451 | ||
36452 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 36453 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36454 | #define wxUSE_CARET 1 |
e6cc62c6 | 36455 | _ACEOF |
10f2d63a | 36456 | |
1e6feb95 | 36457 | USES_CONTROLS=1 |
10f2d63a VZ |
36458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
36459 | fi | |
36460 | ||
36461 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 36462 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36463 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 36464 | _ACEOF |
10f2d63a | 36465 | |
1e6feb95 | 36466 | USES_CONTROLS=1 |
10f2d63a VZ |
36467 | fi |
36468 | ||
36469 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 36470 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36471 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 36472 | _ACEOF |
10f2d63a | 36473 | |
1e6feb95 | 36474 | USES_CONTROLS=1 |
10f2d63a VZ |
36475 | fi |
36476 | ||
36477 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 36478 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36479 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 36480 | _ACEOF |
10f2d63a | 36481 | |
1e6feb95 | 36482 | USES_CONTROLS=1 |
10f2d63a VZ |
36483 | fi |
36484 | ||
36485 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 36486 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36487 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 36488 | _ACEOF |
10f2d63a | 36489 | |
1e6feb95 | 36490 | USES_CONTROLS=1 |
10f2d63a VZ |
36491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
36492 | fi | |
36493 | ||
da494b40 | 36494 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 36495 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 36496 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 36497 | _ACEOF |
da494b40 MB |
36498 | |
36499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36500 | fi | |
36501 | ||
10f2d63a | 36502 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 36503 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36504 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 36505 | _ACEOF |
10f2d63a | 36506 | |
1e6feb95 | 36507 | USES_CONTROLS=1 |
10f2d63a VZ |
36508 | fi |
36509 | ||
d6a55c4b | 36510 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 36511 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 36512 | #define wxUSE_GRID 1 |
e6cc62c6 | 36513 | _ACEOF |
10f2d63a | 36514 | |
1e6feb95 | 36515 | USES_CONTROLS=1 |
d6a55c4b | 36516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
36517 | fi |
36518 | ||
36519 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36520 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36521 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 36522 | _ACEOF |
10f2d63a VZ |
36523 | |
36524 | fi | |
36525 | ||
0e012a93 VZ |
36526 | if test "$wxUSE_LISTBOOK" = "yes"; then |
36527 | cat >>confdefs.h <<\_ACEOF | |
36528 | #define wxUSE_LISTBOOK 1 | |
36529 | _ACEOF | |
36530 | ||
36531 | USES_CONTROLS=1 | |
36532 | fi | |
36533 | ||
10f2d63a | 36534 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 36535 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36536 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 36537 | _ACEOF |
10f2d63a | 36538 | |
1e6feb95 | 36539 | USES_CONTROLS=1 |
10f2d63a VZ |
36540 | fi |
36541 | ||
36542 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36543 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36544 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36545 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 36546 | _ACEOF |
10f2d63a | 36547 | |
1e6feb95 | 36548 | USES_CONTROLS=1 |
10f2d63a VZ |
36549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
36550 | else | |
e6cc62c6 VS |
36551 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
36552 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
36553 | fi |
36554 | fi | |
36555 | ||
36556 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 36557 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36558 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 36559 | _ACEOF |
10f2d63a | 36560 | |
1e6feb95 | 36561 | USES_CONTROLS=1 |
10f2d63a VZ |
36562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
36563 | fi | |
36564 | ||
24176f2c | 36565 | |
10f2d63a | 36566 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 36567 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36568 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 36569 | _ACEOF |
10f2d63a | 36570 | |
1e6feb95 | 36571 | USES_CONTROLS=1 |
10f2d63a VZ |
36572 | fi |
36573 | ||
36574 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 36575 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36576 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 36577 | _ACEOF |
10f2d63a | 36578 | |
1e6feb95 | 36579 | USES_CONTROLS=1 |
10f2d63a VZ |
36580 | fi |
36581 | ||
36582 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 36583 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36584 | #define wxUSE_SASH 1 |
e6cc62c6 | 36585 | _ACEOF |
10f2d63a VZ |
36586 | |
36587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36588 | fi | |
36589 | ||
36590 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 36591 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36592 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 36593 | _ACEOF |
10f2d63a | 36594 | |
1e6feb95 | 36595 | USES_CONTROLS=1 |
741a9306 | 36596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
36597 | fi |
36598 | ||
36599 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 36600 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36601 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 36602 | _ACEOF |
10f2d63a | 36603 | |
1e6feb95 | 36604 | USES_CONTROLS=1 |
10f2d63a VZ |
36605 | fi |
36606 | ||
36607 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 36608 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36609 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 36610 | _ACEOF |
10f2d63a | 36611 | |
1e6feb95 | 36612 | USES_CONTROLS=1 |
10f2d63a VZ |
36613 | fi |
36614 | ||
56cfaa52 | 36615 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 36616 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 36617 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 36618 | _ACEOF |
56cfaa52 | 36619 | |
1e6feb95 | 36620 | USES_CONTROLS=1 |
56cfaa52 RR |
36621 | fi |
36622 | ||
10f2d63a | 36623 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 36624 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36625 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 36626 | _ACEOF |
10f2d63a VZ |
36627 | |
36628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36629 | fi | |
36630 | ||
36631 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 36632 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36633 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 36634 | _ACEOF |
10f2d63a | 36635 | |
1e6feb95 | 36636 | USES_CONTROLS=1 |
10f2d63a VZ |
36637 | fi |
36638 | ||
36639 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 36640 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36641 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 36642 | _ACEOF |
10f2d63a | 36643 | |
1e6feb95 VZ |
36644 | USES_CONTROLS=1 |
36645 | fi | |
36646 | ||
36647 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 36648 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36649 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 36650 | _ACEOF |
1e6feb95 VZ |
36651 | |
36652 | USES_CONTROLS=1 | |
10f2d63a VZ |
36653 | fi |
36654 | ||
36655 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 36656 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36657 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 36658 | _ACEOF |
10f2d63a | 36659 | |
89e6bf6d | 36660 | USES_CONTROLS=1 |
10f2d63a VZ |
36661 | fi |
36662 | ||
36663 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 36664 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36665 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 36666 | _ACEOF |
10f2d63a | 36667 | |
1e6feb95 | 36668 | USES_CONTROLS=1 |
698dcdb6 | 36669 | |
2286341c | 36670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
36671 | fi |
36672 | ||
36673 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 36674 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36675 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 36676 | _ACEOF |
10f2d63a VZ |
36677 | |
36678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36679 | fi | |
36680 | ||
1e6feb95 | 36681 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 36682 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36683 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 36684 | _ACEOF |
1e6feb95 VZ |
36685 | |
36686 | USES_CONTROLS=1 | |
36687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36688 | fi | |
36689 | ||
1db8dc4a | 36690 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
0f87e84c | 36691 | if test "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
36692 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
36693 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
36694 | wxUSE_TOGGLEBTN=no |
36695 | fi | |
36696 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
36697 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
36698 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
36699 | wxUSE_TOGGLEBTN=no |
36700 | fi | |
36701 | ||
36702 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 36703 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 36704 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 36705 | _ACEOF |
1db8dc4a | 36706 | |
1e6feb95 | 36707 | USES_CONTROLS=1 |
a45d7ab7 | 36708 | fi |
1db8dc4a VZ |
36709 | fi |
36710 | ||
360d6699 | 36711 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 36712 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36713 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 36714 | _ACEOF |
360d6699 VZ |
36715 | |
36716 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 36717 | USES_CONTROLS=1 |
360d6699 VZ |
36718 | fi |
36719 | ||
10f2d63a | 36720 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 36721 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36722 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 36723 | _ACEOF |
10f2d63a | 36724 | |
1e6feb95 | 36725 | USES_CONTROLS=1 |
698dcdb6 | 36726 | |
360d6699 VZ |
36727 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
36728 | wxUSE_TOOLBAR_NATIVE="yes" | |
36729 | fi | |
36730 | ||
1e6feb95 | 36731 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 36732 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36733 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 36734 | _ACEOF |
360d6699 | 36735 | |
1e6feb95 VZ |
36736 | USES_CONTROLS=1 |
36737 | fi | |
36738 | ||
36739 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
36740 | fi |
36741 | ||
10f2d63a VZ |
36742 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
36743 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
36744 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
36745 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 36746 | else |
89e6bf6d | 36747 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
36748 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
36749 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 36750 | else |
e6cc62c6 | 36751 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36752 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 36753 | _ACEOF |
10f2d63a VZ |
36754 | |
36755 | fi | |
36756 | fi | |
36757 | fi | |
36758 | ||
36759 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36760 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36762 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 36763 | _ACEOF |
10f2d63a | 36764 | |
1e6feb95 | 36765 | USES_CONTROLS=1 |
10f2d63a VZ |
36766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
36767 | else | |
e6cc62c6 VS |
36768 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
36769 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
36770 | fi |
36771 | fi | |
36772 | ||
9f41d601 | 36773 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 36774 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
36775 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
36776 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 36777 | else |
833a51f6 MB |
36778 | if test "$wxUSE_PM" = 1; then |
36779 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 36780 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
36781 | else |
36782 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 36783 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 36784 | _ACEOF |
9f41d601 | 36785 | |
8284b0c5 | 36786 | |
833a51f6 | 36787 | USES_CONTROLS=1 |
485cf710 | 36788 | fi |
6abe4b65 | 36789 | fi |
9f41d601 RR |
36790 | fi |
36791 | ||
dd964dcc | 36792 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 36793 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
36794 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
36795 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 36796 | else |
e6cc62c6 | 36797 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 36798 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 36799 | _ACEOF |
dd964dcc | 36800 | |
3c011993 | 36801 | fi |
dd964dcc VZ |
36802 | fi |
36803 | ||
1e6feb95 | 36804 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 36805 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36806 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 36807 | _ACEOF |
10f2d63a | 36808 | |
10f2d63a VZ |
36809 | fi |
36810 | ||
8284b0c5 | 36811 | |
e46d2a18 VS |
36812 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
36813 | cat >>confdefs.h <<\_ACEOF | |
36814 | #define wxUSE_ACCESSIBILITY 1 | |
36815 | _ACEOF | |
36816 | ||
36817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36818 | fi | |
1e6feb95 | 36819 | |
24fd6d87 | 36820 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 36821 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 36822 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 36823 | _ACEOF |
24fd6d87 VZ |
36824 | |
36825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36826 | fi | |
36827 | ||
e46d2a18 | 36828 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 36829 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 36830 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 36831 | _ACEOF |
7bb2947d | 36832 | |
e46d2a18 VS |
36833 | fi |
36834 | ||
36835 | USE_HTML=0 | |
36836 | if test "$wxUSE_HTML" = "yes"; then | |
36837 | cat >>confdefs.h <<\_ACEOF | |
36838 | #define wxUSE_HTML 1 | |
36839 | _ACEOF | |
36840 | ||
36841 | USE_HTML=1 | |
36842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
36843 | fi |
36844 | ||
1e6feb95 | 36845 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 36846 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36847 | #define wxUSE_MENUS 1 |
e6cc62c6 | 36848 | _ACEOF |
10f2d63a | 36849 | |
1e6feb95 | 36850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
36851 | fi |
36852 | ||
1e6feb95 | 36853 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 36854 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36855 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 36856 | _ACEOF |
10f2d63a | 36857 | |
10f2d63a VZ |
36858 | fi |
36859 | ||
1e6feb95 | 36860 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 36861 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36862 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 36863 | _ACEOF |
10f2d63a | 36864 | |
10f2d63a VZ |
36865 | fi |
36866 | ||
36867 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 36868 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36869 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 36870 | _ACEOF |
10f2d63a VZ |
36871 | |
36872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36873 | fi | |
36874 | ||
e46d2a18 | 36875 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 36876 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 36877 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 36878 | _ACEOF |
10f2d63a | 36879 | |
e46d2a18 VS |
36880 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
36881 | "$TOOLKIT" = "MOTIF"; then | |
36882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36883 | fi | |
10f2d63a VZ |
36884 | fi |
36885 | ||
e46d2a18 | 36886 | |
10f2d63a | 36887 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 36888 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 36889 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 36890 | _ACEOF |
703e0a69 | 36891 | |
698dcdb6 VZ |
36892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
36893 | fi | |
36894 | ||
edae8572 | 36895 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 36896 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 36897 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 36898 | _ACEOF |
edae8572 VZ |
36899 | |
36900 | fi | |
36901 | ||
e46d2a18 VS |
36902 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
36903 | LIBS=" -lunicows $LIBS" | |
36904 | fi | |
36905 | ||
36906 | ||
698dcdb6 | 36907 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 36908 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 36909 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 36910 | _ACEOF |
698dcdb6 | 36911 | |
698dcdb6 | 36912 | |
e46d2a18 VS |
36913 | if test "$wxUSE_GIF" = "yes" ; then |
36914 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36915 | #define wxUSE_GIF 1 |
e6cc62c6 | 36916 | _ACEOF |
698dcdb6 | 36917 | |
e46d2a18 | 36918 | fi |
698dcdb6 | 36919 | |
e46d2a18 VS |
36920 | if test "$wxUSE_PCX" = "yes" ; then |
36921 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36922 | #define wxUSE_PCX 1 |
e6cc62c6 | 36923 | _ACEOF |
698dcdb6 | 36924 | |
e46d2a18 | 36925 | fi |
698dcdb6 | 36926 | |
e46d2a18 VS |
36927 | if test "$wxUSE_IFF" = "yes" ; then |
36928 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 36929 | #define wxUSE_IFF 1 |
e6cc62c6 | 36930 | _ACEOF |
4b6b4dfc | 36931 | |
e46d2a18 | 36932 | fi |
4b6b4dfc | 36933 | |
e46d2a18 VS |
36934 | if test "$wxUSE_PNM" = "yes" ; then |
36935 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36936 | #define wxUSE_PNM 1 |
e6cc62c6 | 36937 | _ACEOF |
698dcdb6 | 36938 | |
e46d2a18 | 36939 | fi |
698dcdb6 | 36940 | |
e46d2a18 VS |
36941 | if test "$wxUSE_XPM" = "yes" ; then |
36942 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36943 | #define wxUSE_XPM 1 |
e6cc62c6 | 36944 | _ACEOF |
698dcdb6 | 36945 | |
e46d2a18 | 36946 | fi |
698dcdb6 | 36947 | |
e46d2a18 VS |
36948 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
36949 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 36950 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 36951 | _ACEOF |
658974ae | 36952 | |
e46d2a18 | 36953 | fi |
a72a4bfa VS |
36954 | fi |
36955 | ||
8284b0c5 | 36956 | |
1e6feb95 | 36957 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 36958 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36959 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 36960 | _ACEOF |
1e6feb95 VZ |
36961 | |
36962 | fi | |
36963 | ||
36964 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 36965 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36966 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 36967 | _ACEOF |
1e6feb95 VZ |
36968 | |
36969 | fi | |
36970 | ||
36971 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 36972 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36973 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 36974 | _ACEOF |
1e6feb95 VZ |
36975 | |
36976 | fi | |
36977 | ||
8db37e06 | 36978 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 36979 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 36980 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 36981 | _ACEOF |
8db37e06 VZ |
36982 | |
36983 | fi | |
36984 | ||
1e6feb95 | 36985 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 36986 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36987 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 36988 | _ACEOF |
1e6feb95 VZ |
36989 | |
36990 | fi | |
36991 | ||
36992 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 36993 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
36994 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
36995 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 36996 | else |
e6cc62c6 | 36997 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36998 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 36999 | _ACEOF |
1e6feb95 | 37000 | |
1e6feb95 VZ |
37001 | fi |
37002 | fi | |
37003 | ||
37004 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 37005 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37006 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 37007 | _ACEOF |
1e6feb95 VZ |
37008 | |
37009 | fi | |
37010 | ||
37011 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 37012 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37013 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 37014 | _ACEOF |
1e6feb95 VZ |
37015 | |
37016 | fi | |
37017 | ||
37018 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37019 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37020 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
37021 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 37022 | else |
e6cc62c6 | 37023 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37024 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 37025 | _ACEOF |
1e6feb95 VZ |
37026 | |
37027 | fi | |
37028 | fi | |
37029 | ||
cbca9943 | 37030 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 37031 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 37032 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 37033 | _ACEOF |
cbca9943 VZ |
37034 | |
37035 | fi | |
37036 | ||
1e6feb95 VZ |
37037 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
37038 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37039 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
37040 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 37041 | else |
e6cc62c6 | 37042 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37043 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 37044 | _ACEOF |
1e6feb95 | 37045 | |
7b4a847f RR |
37046 | fi |
37047 | fi | |
579d8138 | 37048 | |
8284b0c5 | 37049 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 37050 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37051 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 37052 | _ACEOF |
8284b0c5 MB |
37053 | |
37054 | fi | |
37055 | ||
37056 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 37057 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37058 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 37059 | _ACEOF |
8284b0c5 MB |
37060 | |
37061 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37062 | fi | |
37063 | ||
37064 | ||
37065 | if test "$cross_compiling" = "yes"; then | |
37066 | OSINFO="\"$host\"" | |
37067 | else | |
37068 | OSINFO=`uname -s -r -m` | |
37069 | OSINFO="\"$OSINFO\"" | |
37070 | fi | |
37071 | ||
e6cc62c6 | 37072 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37073 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 37074 | _ACEOF |
8284b0c5 MB |
37075 | |
37076 | ||
37077 | ||
37078 | if test "x$prefix" != "xNONE"; then | |
37079 | wxPREFIX=$prefix | |
37080 | else | |
37081 | wxPREFIX=$ac_default_prefix | |
37082 | fi | |
37083 | ||
e6cc62c6 | 37084 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37085 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 37086 | _ACEOF |
8284b0c5 MB |
37087 | |
37088 | ||
e6cc62c6 | 37089 | top_builddir_wxconfig=`pwd` |
52c71b80 | 37090 | |
8284b0c5 MB |
37091 | |
37092 | ||
edd891e2 VS |
37093 | CORE_BASE_LIBS="net base" |
37094 | CORE_GUI_LIBS="adv core" | |
37095 | ||
37096 | if test "$wxUSE_XML" = "yes" ; then | |
37097 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37098 | fi | |
45293562 VS |
37099 | if test "$wxUSE_ODBC" != "no" ; then |
37100 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37101 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
37102 | fi |
37103 | if test "$wxUSE_HTML" = "yes" ; then | |
37104 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37105 | fi | |
37106 | ||
57e7d4ac VS |
37107 | if test "$wxUSE_GUI" != "yes"; then |
37108 | CORE_GUI_LIBS="" | |
37109 | fi | |
37110 | ||
edd891e2 VS |
37111 | |
37112 | ||
37113 | ||
37114 | ||
37115 | ||
37116 | ||
8284b0c5 MB |
37117 | |
37118 | if test "$wxUSE_MAC" = 1 ; then | |
37119 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
37120 | fi | |
ac0c4cc3 DE |
37121 | if test "$wxUSE_COCOA" = 1 ; then |
37122 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37123 | fi | |
8284b0c5 MB |
37124 | |
37125 | ||
2b5f62a0 VZ |
37126 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
37127 | ||
37128 | have_cos=0 | |
37129 | have_floor=0 | |
e6cc62c6 | 37130 | |
2b5f62a0 VZ |
37131 | for ac_func in cos |
37132 | do | |
e6cc62c6 VS |
37133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37138 | else | |
37139 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37140 | /* confdefs.h. */ |
37141 | _ACEOF | |
37142 | cat confdefs.h >>conftest.$ac_ext | |
37143 | cat >>conftest.$ac_ext <<_ACEOF | |
37144 | /* end confdefs.h. */ | |
32ddf007 VS |
37145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37147 | #define $ac_func innocuous_$ac_func | |
37148 | ||
2b5f62a0 | 37149 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37150 | which can conflict with char $ac_func (); below. |
37151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37152 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37153 | |
e6cc62c6 VS |
37154 | #ifdef __STDC__ |
37155 | # include <limits.h> | |
37156 | #else | |
37157 | # include <assert.h> | |
37158 | #endif | |
32ddf007 VS |
37159 | |
37160 | #undef $ac_func | |
37161 | ||
2b5f62a0 | 37162 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37163 | #ifdef __cplusplus |
37164 | extern "C" | |
37165 | { | |
37166 | #endif | |
2b5f62a0 | 37167 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37168 | builtin and then its argument prototype would still apply. */ |
37169 | char $ac_func (); | |
2b5f62a0 VZ |
37170 | /* The GNU C library defines this for functions which it implements |
37171 | to always fail with ENOSYS. Some functions are actually named | |
37172 | something starting with __ and the normal name is an alias. */ | |
37173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37174 | choke me | |
37175 | #else | |
e6cc62c6 VS |
37176 | char (*f) () = $ac_func; |
37177 | #endif | |
37178 | #ifdef __cplusplus | |
37179 | } | |
2b5f62a0 VZ |
37180 | #endif |
37181 | ||
e6cc62c6 VS |
37182 | int |
37183 | main () | |
37184 | { | |
37185 | return f != $ac_func; | |
37186 | ; | |
37187 | return 0; | |
37188 | } | |
37189 | _ACEOF | |
37190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37192 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37193 | ac_status=$? |
32ddf007 VS |
37194 | grep -v '^ *+' conftest.er1 >conftest.err |
37195 | rm -f conftest.er1 | |
37196 | cat conftest.err >&5 | |
e6cc62c6 VS |
37197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37198 | (exit $ac_status); } && | |
e1293dcf | 37199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37201 | (eval $ac_try) 2>&5 | |
37202 | ac_status=$? | |
37203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37204 | (exit $ac_status); }; } && | |
37205 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37207 | (eval $ac_try) 2>&5 | |
37208 | ac_status=$? | |
37209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37210 | (exit $ac_status); }; }; then | |
37211 | eval "$as_ac_var=yes" | |
37212 | else | |
37213 | echo "$as_me: failed program was:" >&5 | |
37214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37215 | ||
37216 | eval "$as_ac_var=no" | |
37217 | fi | |
32ddf007 VS |
37218 | rm -f conftest.err conftest.$ac_objext \ |
37219 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37220 | fi |
37221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37222 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37223 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37224 | cat >>confdefs.h <<_ACEOF | |
37225 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37226 | _ACEOF | |
2b5f62a0 | 37227 | have_cos=1 |
2b5f62a0 VZ |
37228 | fi |
37229 | done | |
37230 | ||
e6cc62c6 | 37231 | |
2b5f62a0 VZ |
37232 | for ac_func in floor |
37233 | do | |
e6cc62c6 VS |
37234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37239 | else | |
37240 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37241 | /* confdefs.h. */ |
37242 | _ACEOF | |
37243 | cat confdefs.h >>conftest.$ac_ext | |
37244 | cat >>conftest.$ac_ext <<_ACEOF | |
37245 | /* end confdefs.h. */ | |
32ddf007 VS |
37246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37248 | #define $ac_func innocuous_$ac_func | |
37249 | ||
2b5f62a0 | 37250 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37251 | which can conflict with char $ac_func (); below. |
37252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37253 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37254 | |
e6cc62c6 VS |
37255 | #ifdef __STDC__ |
37256 | # include <limits.h> | |
37257 | #else | |
37258 | # include <assert.h> | |
37259 | #endif | |
32ddf007 VS |
37260 | |
37261 | #undef $ac_func | |
37262 | ||
2b5f62a0 | 37263 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37264 | #ifdef __cplusplus |
37265 | extern "C" | |
37266 | { | |
37267 | #endif | |
2b5f62a0 | 37268 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37269 | builtin and then its argument prototype would still apply. */ |
37270 | char $ac_func (); | |
2b5f62a0 VZ |
37271 | /* The GNU C library defines this for functions which it implements |
37272 | to always fail with ENOSYS. Some functions are actually named | |
37273 | something starting with __ and the normal name is an alias. */ | |
37274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37275 | choke me | |
37276 | #else | |
e6cc62c6 VS |
37277 | char (*f) () = $ac_func; |
37278 | #endif | |
37279 | #ifdef __cplusplus | |
37280 | } | |
2b5f62a0 VZ |
37281 | #endif |
37282 | ||
e6cc62c6 VS |
37283 | int |
37284 | main () | |
37285 | { | |
37286 | return f != $ac_func; | |
37287 | ; | |
37288 | return 0; | |
37289 | } | |
37290 | _ACEOF | |
37291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37293 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37294 | ac_status=$? |
32ddf007 VS |
37295 | grep -v '^ *+' conftest.er1 >conftest.err |
37296 | rm -f conftest.er1 | |
37297 | cat conftest.err >&5 | |
e6cc62c6 VS |
37298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37299 | (exit $ac_status); } && | |
e1293dcf | 37300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37302 | (eval $ac_try) 2>&5 | |
37303 | ac_status=$? | |
37304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37305 | (exit $ac_status); }; } && | |
37306 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37308 | (eval $ac_try) 2>&5 | |
37309 | ac_status=$? | |
37310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37311 | (exit $ac_status); }; }; then | |
37312 | eval "$as_ac_var=yes" | |
37313 | else | |
37314 | echo "$as_me: failed program was:" >&5 | |
37315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37316 | ||
37317 | eval "$as_ac_var=no" | |
37318 | fi | |
32ddf007 VS |
37319 | rm -f conftest.err conftest.$ac_objext \ |
37320 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37321 | fi |
37322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37325 | cat >>confdefs.h <<_ACEOF | |
37326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37327 | _ACEOF | |
2b5f62a0 | 37328 | have_floor=1 |
2b5f62a0 VZ |
37329 | fi |
37330 | done | |
37331 | ||
e6cc62c6 VS |
37332 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
37333 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37334 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
37335 | echo "$as_me:$LINENO: result: yes" >&5 |
37336 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37337 | else |
e6cc62c6 VS |
37338 | echo "$as_me:$LINENO: result: no" >&5 |
37339 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37340 | LIBS="$LIBS -lm" |
37341 | # use different functions to avoid configure caching | |
37342 | have_sin=0 | |
37343 | have_ceil=0 | |
e6cc62c6 VS |
37344 | |
37345 | for ac_func in sin | |
2b5f62a0 | 37346 | do |
e6cc62c6 VS |
37347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37350 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37352 | else | |
37353 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37354 | /* confdefs.h. */ |
37355 | _ACEOF | |
37356 | cat confdefs.h >>conftest.$ac_ext | |
37357 | cat >>conftest.$ac_ext <<_ACEOF | |
37358 | /* end confdefs.h. */ | |
32ddf007 VS |
37359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37361 | #define $ac_func innocuous_$ac_func | |
37362 | ||
2b5f62a0 | 37363 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37364 | which can conflict with char $ac_func (); below. |
37365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37366 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37367 | |
e6cc62c6 VS |
37368 | #ifdef __STDC__ |
37369 | # include <limits.h> | |
37370 | #else | |
37371 | # include <assert.h> | |
37372 | #endif | |
32ddf007 VS |
37373 | |
37374 | #undef $ac_func | |
37375 | ||
2b5f62a0 | 37376 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37377 | #ifdef __cplusplus |
37378 | extern "C" | |
37379 | { | |
37380 | #endif | |
2b5f62a0 | 37381 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37382 | builtin and then its argument prototype would still apply. */ |
37383 | char $ac_func (); | |
2b5f62a0 VZ |
37384 | /* The GNU C library defines this for functions which it implements |
37385 | to always fail with ENOSYS. Some functions are actually named | |
37386 | something starting with __ and the normal name is an alias. */ | |
37387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37388 | choke me | |
37389 | #else | |
e6cc62c6 VS |
37390 | char (*f) () = $ac_func; |
37391 | #endif | |
37392 | #ifdef __cplusplus | |
37393 | } | |
2b5f62a0 VZ |
37394 | #endif |
37395 | ||
e6cc62c6 VS |
37396 | int |
37397 | main () | |
37398 | { | |
37399 | return f != $ac_func; | |
37400 | ; | |
37401 | return 0; | |
37402 | } | |
37403 | _ACEOF | |
37404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37406 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37407 | ac_status=$? |
32ddf007 VS |
37408 | grep -v '^ *+' conftest.er1 >conftest.err |
37409 | rm -f conftest.er1 | |
37410 | cat conftest.err >&5 | |
e6cc62c6 VS |
37411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37412 | (exit $ac_status); } && | |
e1293dcf | 37413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37415 | (eval $ac_try) 2>&5 | |
37416 | ac_status=$? | |
37417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37418 | (exit $ac_status); }; } && | |
37419 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37421 | (eval $ac_try) 2>&5 | |
37422 | ac_status=$? | |
37423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37424 | (exit $ac_status); }; }; then | |
37425 | eval "$as_ac_var=yes" | |
37426 | else | |
37427 | echo "$as_me: failed program was:" >&5 | |
37428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37429 | ||
37430 | eval "$as_ac_var=no" | |
37431 | fi | |
32ddf007 VS |
37432 | rm -f conftest.err conftest.$ac_objext \ |
37433 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37434 | fi |
37435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37436 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37437 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37438 | cat >>confdefs.h <<_ACEOF | |
37439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37440 | _ACEOF | |
2b5f62a0 | 37441 | have_sin=1 |
2b5f62a0 VZ |
37442 | fi |
37443 | done | |
37444 | ||
e6cc62c6 VS |
37445 | |
37446 | for ac_func in ceil | |
2b5f62a0 | 37447 | do |
e6cc62c6 VS |
37448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37449 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37451 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37453 | else | |
37454 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37455 | /* confdefs.h. */ |
37456 | _ACEOF | |
37457 | cat confdefs.h >>conftest.$ac_ext | |
37458 | cat >>conftest.$ac_ext <<_ACEOF | |
37459 | /* end confdefs.h. */ | |
32ddf007 VS |
37460 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37462 | #define $ac_func innocuous_$ac_func | |
37463 | ||
2b5f62a0 | 37464 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37465 | which can conflict with char $ac_func (); below. |
37466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37467 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37468 | |
e6cc62c6 VS |
37469 | #ifdef __STDC__ |
37470 | # include <limits.h> | |
37471 | #else | |
37472 | # include <assert.h> | |
37473 | #endif | |
32ddf007 VS |
37474 | |
37475 | #undef $ac_func | |
37476 | ||
2b5f62a0 | 37477 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37478 | #ifdef __cplusplus |
37479 | extern "C" | |
37480 | { | |
37481 | #endif | |
2b5f62a0 | 37482 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37483 | builtin and then its argument prototype would still apply. */ |
37484 | char $ac_func (); | |
2b5f62a0 VZ |
37485 | /* The GNU C library defines this for functions which it implements |
37486 | to always fail with ENOSYS. Some functions are actually named | |
37487 | something starting with __ and the normal name is an alias. */ | |
37488 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37489 | choke me | |
37490 | #else | |
e6cc62c6 VS |
37491 | char (*f) () = $ac_func; |
37492 | #endif | |
37493 | #ifdef __cplusplus | |
37494 | } | |
2b5f62a0 VZ |
37495 | #endif |
37496 | ||
e6cc62c6 VS |
37497 | int |
37498 | main () | |
37499 | { | |
37500 | return f != $ac_func; | |
37501 | ; | |
37502 | return 0; | |
37503 | } | |
37504 | _ACEOF | |
37505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37507 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37508 | ac_status=$? |
32ddf007 VS |
37509 | grep -v '^ *+' conftest.er1 >conftest.err |
37510 | rm -f conftest.er1 | |
37511 | cat conftest.err >&5 | |
e6cc62c6 VS |
37512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37513 | (exit $ac_status); } && | |
e1293dcf | 37514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37516 | (eval $ac_try) 2>&5 | |
37517 | ac_status=$? | |
37518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37519 | (exit $ac_status); }; } && | |
37520 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37522 | (eval $ac_try) 2>&5 | |
37523 | ac_status=$? | |
37524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37525 | (exit $ac_status); }; }; then | |
37526 | eval "$as_ac_var=yes" | |
37527 | else | |
37528 | echo "$as_me: failed program was:" >&5 | |
37529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37530 | ||
37531 | eval "$as_ac_var=no" | |
37532 | fi | |
32ddf007 VS |
37533 | rm -f conftest.err conftest.$ac_objext \ |
37534 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37535 | fi |
37536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37537 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37538 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37539 | cat >>confdefs.h <<_ACEOF | |
37540 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37541 | _ACEOF | |
2b5f62a0 | 37542 | have_ceil=1 |
2b5f62a0 VZ |
37543 | fi |
37544 | done | |
37545 | ||
e6cc62c6 VS |
37546 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
37547 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37548 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
37549 | echo "$as_me:$LINENO: result: yes" >&5 |
37550 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37551 | else |
e6cc62c6 VS |
37552 | echo "$as_me:$LINENO: result: no" >&5 |
37553 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37554 | # not sure we should warn the user, crash, etc. |
37555 | fi | |
37556 | fi | |
8284b0c5 MB |
37557 | |
37558 | if test "$wxUSE_GUI" = "yes"; then | |
37559 | ||
e6cc62c6 | 37560 | |
8284b0c5 MB |
37561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
37562 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 37563 | minimal propsize rotate shaped widgets render" |
b625909c VS |
37564 | |
37565 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37567 | fi | |
8284b0c5 MB |
37568 | else |
37569 | SAMPLES_SUBDIRS="console" | |
37570 | fi | |
37571 | ||
37572 | ||
e6cc62c6 | 37573 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 37574 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 37575 | |
fddeb06b VS |
37576 | if test "$GXX" = yes ; then |
37577 | CXXWARNINGS="-Wall" | |
37578 | fi | |
37579 | ||
37580 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37581 | ||
95318f7d | 37582 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
37583 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
37584 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
37585 | |
37586 | ||
fddeb06b | 37587 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 37588 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 37589 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 37590 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 37591 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
37592 | if test "$wxUSE_GUI" = "yes"; then |
37593 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
37594 | fi | |
34b08d2c VS |
37595 | if test "$wxUSE_OPENGL" = "yes"; then |
37596 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37597 | fi | |
fddeb06b VS |
37598 | |
37599 | LDFLAGS="$LDFLAGS $PROFILE" | |
37600 | ||
8284b0c5 MB |
37601 | if test "$wxUSE_GTK" = 1; then |
37602 | WXCONFIG_INCLUDE= | |
37603 | else | |
37604 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37605 | fi | |
37606 | ||
67c13b6c VS |
37607 | WXCONFIG_EXTRALIBS="$LIBS" |
37608 | ||
37609 | if test "$wxUSE_REGEX" = "builtin" ; then | |
4996f261 | 37610 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" |
67c13b6c VS |
37611 | fi |
37612 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37613 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37614 | fi | |
37615 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37616 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37617 | fi | |
37618 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37619 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37620 | fi | |
37621 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37622 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37623 | fi | |
37624 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37625 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37626 | fi | |
37627 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37628 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37629 | fi | |
bb41dcbe VS |
37630 | if test "$wxUSE_ODBC" = "builtin" ; then |
37631 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37632 | fi | |
67c13b6c VS |
37633 | |
37634 | for i in $wxconfig_3rdparty ; do | |
37635 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37636 | done | |
37637 | ||
37638 | ||
fe0895cf VS |
37639 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
37640 | WXUNIV=1 | |
37641 | else | |
37642 | WXUNIV=0 | |
8284b0c5 MB |
37643 | fi |
37644 | ||
8284b0c5 MB |
37645 | |
37646 | ||
37647 | ||
37648 | ||
37649 | ||
37650 | ||
37651 | ||
672abd7a | 37652 | |
9747f85d VS |
37653 | if test $wxUSE_MONOLITHIC = "yes" ; then |
37654 | MONOLITHIC=1 | |
37655 | else | |
37656 | MONOLITHIC=0 | |
37657 | fi | |
8284b0c5 | 37658 | |
f93ca9fd VS |
37659 | if test $wxUSE_PLUGINS = "yes" ; then |
37660 | USE_PLUGINS=1 | |
37661 | else | |
37662 | USE_PLUGINS=0 | |
37663 | fi | |
37664 | ||
bb41dcbe VS |
37665 | if test $wxUSE_ODBC != "no" ; then |
37666 | USE_ODBC=1 | |
37667 | else | |
37668 | USE_ODBC=0 | |
37669 | fi | |
37670 | ||
029b47ad VS |
37671 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
37672 | OFFICIAL_BUILD=1 | |
37673 | else | |
37674 | OFFICIAL_BUILD=0 | |
37675 | fi | |
37676 | ||
8ee2dd05 VS |
37677 | |
37678 | ||
37679 | ||
8284b0c5 MB |
37680 | |
37681 | ||
37682 | ||
37683 | ||
37684 | ||
37685 | ||
c74dc163 | 37686 | |
34b08d2c | 37687 | |
672abd7a | 37688 | |
cf615ebb | 37689 | |
6c67131a VS |
37690 | |
37691 | ||
bb41dcbe | 37692 | |
f93ca9fd VS |
37693 | |
37694 | ||
37695 | ||
3527f29c | 37696 | |
89fe663f | 37697 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
37698 | |
37699 | ||
37700 | ||
37701 | ||
37702 | ||
ea66c762 | 37703 | |
0f1bc9c2 | 37704 | |
f95e4495 VS |
37705 | if test "x$BAKEFILE_HOST" = "x"; then |
37706 | BAKEFILE_HOST="${host}" | |
37707 | fi | |
37708 | ||
fe0895cf | 37709 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
37710 | |
37711 | if test -n "$ac_tool_prefix"; then | |
37712 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37713 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37716 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 37718 | else |
fe0895cf VS |
37719 | if test -n "$RANLIB"; then |
37720 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 37721 | else |
e6cc62c6 VS |
37722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37723 | for as_dir in $PATH | |
37724 | do | |
37725 | IFS=$as_save_IFS | |
37726 | test -z "$as_dir" && as_dir=. | |
37727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37729 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37731 | break 2 | |
37732 | fi | |
37733 | done | |
37734 | done | |
37735 | ||
10f2d63a | 37736 | fi |
10f2d63a | 37737 | fi |
e6cc62c6 | 37738 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 37739 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
37740 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
37741 | echo "${ECHO_T}$RANLIB" >&6 | |
37742 | else | |
37743 | echo "$as_me:$LINENO: result: no" >&5 | |
37744 | echo "${ECHO_T}no" >&6 | |
37745 | fi | |
37746 | ||
37747 | fi | |
37748 | if test -z "$ac_cv_prog_RANLIB"; then | |
37749 | ac_ct_RANLIB=$RANLIB | |
37750 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37751 | set dummy ranlib; ac_word=$2 | |
37752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37754 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37756 | else | |
37757 | if test -n "$ac_ct_RANLIB"; then | |
37758 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37759 | else | |
37760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37761 | for as_dir in $PATH | |
37762 | do | |
37763 | IFS=$as_save_IFS | |
37764 | test -z "$as_dir" && as_dir=. | |
37765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37767 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37769 | break 2 | |
37770 | fi | |
37771 | done | |
37772 | done | |
37773 | ||
37774 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37775 | fi | |
37776 | fi | |
37777 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37778 | if test -n "$ac_ct_RANLIB"; then | |
37779 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37780 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 37781 | else |
e6cc62c6 VS |
37782 | echo "$as_me:$LINENO: result: no" >&5 |
37783 | echo "${ECHO_T}no" >&6 | |
37784 | fi | |
37785 | ||
37786 | RANLIB=$ac_ct_RANLIB | |
37787 | else | |
37788 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 37789 | fi |
665bbe97 | 37790 | |
fe0895cf VS |
37791 | # Find a good install program. We prefer a C program (faster), |
37792 | # so one script is as good as another. But avoid the broken or | |
37793 | # incompatible versions: | |
37794 | # SysV /etc/install, /usr/sbin/install | |
37795 | # SunOS /usr/etc/install | |
37796 | # IRIX /sbin/install | |
37797 | # AIX /bin/install | |
e6cc62c6 | 37798 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
37799 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
37800 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37801 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 37802 | # OS/2's system install, which has a completely different semantic |
fe0895cf | 37803 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
37804 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
37805 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 37806 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
37807 | if test "${ac_cv_path_install+set}" = set; then |
37808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37809 | else | |
37810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37811 | for as_dir in $PATH | |
37812 | do | |
37813 | IFS=$as_save_IFS | |
37814 | test -z "$as_dir" && as_dir=. | |
37815 | # Account for people who put trailing slashes in PATH elements. | |
37816 | case $as_dir/ in | |
37817 | ./ | .// | /cC/* | \ | |
37818 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 37819 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
37820 | /usr/ucb/* ) ;; |
37821 | *) | |
37822 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37823 | # Don't use installbsd from OSF since it installs stuff as root | |
37824 | # by default. | |
37825 | for ac_prog in ginstall scoinst install; do | |
37826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
37827 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37828 | if test $ac_prog = install && | |
37829 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37830 | # AIX install. It has an incompatible calling convention. | |
37831 | : | |
37832 | elif test $ac_prog = install && | |
37833 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37834 | # program-specific install script used by HP pwplus--don't use. | |
37835 | : | |
37836 | else | |
37837 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37838 | break 3 | |
37839 | fi | |
37840 | fi | |
fe0895cf | 37841 | done |
e6cc62c6 VS |
37842 | done |
37843 | ;; | |
37844 | esac | |
37845 | done | |
37846 | ||
fe0895cf VS |
37847 | |
37848 | fi | |
37849 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 37850 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
37851 | else |
37852 | # As a last resort, use the slow shell script. We don't cache a | |
37853 | # path for INSTALL within a source directory, because that will | |
37854 | # break other packages using the cache if that directory is | |
37855 | # removed, or if the path is relative. | |
e6cc62c6 | 37856 | INSTALL=$ac_install_sh |
fe0895cf VS |
37857 | fi |
37858 | fi | |
e6cc62c6 VS |
37859 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
37860 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
37861 | |
37862 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37863 | # It thinks the first close brace ends the variable substitution. | |
37864 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37865 | ||
e6cc62c6 | 37866 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
37867 | |
37868 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37869 | ||
e6cc62c6 VS |
37870 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
37871 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37872 | LN_S=$as_ln_s | |
37873 | if test "$LN_S" = "ln -s"; then | |
37874 | echo "$as_me:$LINENO: result: yes" >&5 | |
37875 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 37876 | else |
e6cc62c6 VS |
37877 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
37878 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
37879 | fi |
37880 | ||
37881 | ||
e6cc62c6 VS |
37882 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
37883 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 37884 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
37885 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 37887 | else |
e6cc62c6 | 37888 | cat >conftest.make <<\_ACEOF |
fe0895cf | 37889 | all: |
e6cc62c6 VS |
37890 | @echo 'ac_maketemp="$(MAKE)"' |
37891 | _ACEOF | |
fe0895cf | 37892 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 37893 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
37894 | if test -n "$ac_maketemp"; then |
37895 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37896 | else | |
37897 | eval ac_cv_prog_make_${ac_make}_set=no | |
37898 | fi | |
e6cc62c6 | 37899 | rm -f conftest.make |
fe0895cf VS |
37900 | fi |
37901 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
37902 | echo "$as_me:$LINENO: result: yes" >&5 |
37903 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
37904 | SET_MAKE= |
37905 | else | |
e6cc62c6 VS |
37906 | echo "$as_me:$LINENO: result: no" >&5 |
37907 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37908 | SET_MAKE="MAKE=${MAKE-make}" |
37909 | fi | |
37910 | ||
e6cc62c6 VS |
37911 | |
37912 | ||
874d12cf VS |
37913 | if test -n "$ac_tool_prefix"; then |
37914 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
37915 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
37916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37918 | if test "${ac_cv_prog_AR+set}" = set; then | |
37919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37920 | else |
37921 | if test -n "$AR"; then | |
37922 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
37923 | else | |
e6cc62c6 VS |
37924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37925 | for as_dir in $PATH | |
37926 | do | |
37927 | IFS=$as_save_IFS | |
37928 | test -z "$as_dir" && as_dir=. | |
37929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 37931 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
37932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
37933 | break 2 | |
37934 | fi | |
37935 | done | |
37936 | done | |
37937 | ||
fe0895cf VS |
37938 | fi |
37939 | fi | |
e6cc62c6 | 37940 | AR=$ac_cv_prog_AR |
fe0895cf | 37941 | if test -n "$AR"; then |
e6cc62c6 VS |
37942 | echo "$as_me:$LINENO: result: $AR" >&5 |
37943 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 37944 | else |
e6cc62c6 VS |
37945 | echo "$as_me:$LINENO: result: no" >&5 |
37946 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37947 | fi |
37948 | ||
874d12cf VS |
37949 | fi |
37950 | if test -z "$ac_cv_prog_AR"; then | |
37951 | ac_ct_AR=$AR | |
37952 | # Extract the first word of "ar", so it can be a program name with args. | |
37953 | set dummy ar; ac_word=$2 | |
37954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37956 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
37957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37958 | else | |
37959 | if test -n "$ac_ct_AR"; then | |
37960 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
37961 | else | |
37962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37963 | for as_dir in $PATH | |
37964 | do | |
37965 | IFS=$as_save_IFS | |
37966 | test -z "$as_dir" && as_dir=. | |
37967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37969 | ac_cv_prog_ac_ct_AR="ar" | |
37970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37971 | break 2 | |
37972 | fi | |
37973 | done | |
37974 | done | |
37975 | ||
37976 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
37977 | fi | |
37978 | fi | |
37979 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
37980 | if test -n "$ac_ct_AR"; then | |
37981 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
37982 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
37983 | else | |
37984 | echo "$as_me:$LINENO: result: no" >&5 | |
37985 | echo "${ECHO_T}no" >&6 | |
37986 | fi | |
37987 | ||
37988 | AR=$ac_ct_AR | |
37989 | else | |
37990 | AR="$ac_cv_prog_AR" | |
37991 | fi | |
37992 | ||
37993 | if test -n "$ac_tool_prefix"; then | |
37994 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
37995 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
37996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37998 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
37999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38000 | else |
38001 | if test -n "$STRIP"; then | |
38002 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38003 | else | |
e6cc62c6 VS |
38004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38005 | for as_dir in $PATH | |
38006 | do | |
38007 | IFS=$as_save_IFS | |
38008 | test -z "$as_dir" && as_dir=. | |
38009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 38011 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
38012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
38013 | break 2 | |
38014 | fi | |
38015 | done | |
38016 | done | |
38017 | ||
fe0895cf VS |
38018 | fi |
38019 | fi | |
e6cc62c6 | 38020 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 38021 | if test -n "$STRIP"; then |
e6cc62c6 VS |
38022 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
38023 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 38024 | else |
e6cc62c6 VS |
38025 | echo "$as_me:$LINENO: result: no" >&5 |
38026 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38027 | fi |
38028 | ||
874d12cf VS |
38029 | fi |
38030 | if test -z "$ac_cv_prog_STRIP"; then | |
38031 | ac_ct_STRIP=$STRIP | |
38032 | # Extract the first word of "strip", so it can be a program name with args. | |
38033 | set dummy strip; ac_word=$2 | |
38034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38036 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38038 | else | |
38039 | if test -n "$ac_ct_STRIP"; then | |
38040 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38041 | else | |
38042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38043 | for as_dir in $PATH | |
38044 | do | |
38045 | IFS=$as_save_IFS | |
38046 | test -z "$as_dir" && as_dir=. | |
38047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38049 | ac_cv_prog_ac_ct_STRIP="strip" | |
38050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38051 | break 2 | |
38052 | fi | |
38053 | done | |
38054 | done | |
38055 | ||
38056 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38057 | fi | |
38058 | fi | |
38059 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38060 | if test -n "$ac_ct_STRIP"; then | |
38061 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38062 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38063 | else | |
38064 | echo "$as_me:$LINENO: result: no" >&5 | |
38065 | echo "${ECHO_T}no" >&6 | |
38066 | fi | |
38067 | ||
38068 | STRIP=$ac_ct_STRIP | |
38069 | else | |
38070 | STRIP="$ac_cv_prog_STRIP" | |
38071 | fi | |
38072 | ||
38073 | if test -n "$ac_tool_prefix"; then | |
38074 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38075 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38078 | if test "${ac_cv_prog_NM+set}" = set; then | |
38079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38080 | else | |
38081 | if test -n "$NM"; then | |
38082 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38083 | else | |
38084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38085 | for as_dir in $PATH | |
38086 | do | |
38087 | IFS=$as_save_IFS | |
38088 | test -z "$as_dir" && as_dir=. | |
38089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38091 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38093 | break 2 | |
38094 | fi | |
38095 | done | |
38096 | done | |
38097 | ||
38098 | fi | |
38099 | fi | |
38100 | NM=$ac_cv_prog_NM | |
38101 | if test -n "$NM"; then | |
38102 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38103 | echo "${ECHO_T}$NM" >&6 | |
38104 | else | |
38105 | echo "$as_me:$LINENO: result: no" >&5 | |
38106 | echo "${ECHO_T}no" >&6 | |
38107 | fi | |
38108 | ||
38109 | fi | |
38110 | if test -z "$ac_cv_prog_NM"; then | |
38111 | ac_ct_NM=$NM | |
38112 | # Extract the first word of "nm", so it can be a program name with args. | |
38113 | set dummy nm; ac_word=$2 | |
38114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38116 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38118 | else | |
38119 | if test -n "$ac_ct_NM"; then | |
38120 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38121 | else | |
38122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38123 | for as_dir in $PATH | |
38124 | do | |
38125 | IFS=$as_save_IFS | |
38126 | test -z "$as_dir" && as_dir=. | |
38127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38129 | ac_cv_prog_ac_ct_NM="nm" | |
38130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38131 | break 2 | |
38132 | fi | |
38133 | done | |
38134 | done | |
38135 | ||
38136 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38137 | fi | |
38138 | fi | |
38139 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38140 | if test -n "$ac_ct_NM"; then | |
38141 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38142 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38143 | else | |
38144 | echo "$as_me:$LINENO: result: no" >&5 | |
38145 | echo "${ECHO_T}no" >&6 | |
38146 | fi | |
38147 | ||
38148 | NM=$ac_ct_NM | |
38149 | else | |
38150 | NM="$ac_cv_prog_NM" | |
38151 | fi | |
38152 | ||
fe0895cf | 38153 | |
f95e4495 | 38154 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
38155 | *-hp-hpux* ) |
38156 | INSTALL_DIR="mkdir" | |
38157 | ;; | |
38158 | *) INSTALL_DIR="$INSTALL -d" | |
38159 | ;; | |
38160 | esac | |
e6cc62c6 | 38161 | |
fe0895cf | 38162 | |
6b9d41a5 | 38163 | LDFLAGS_GUI= |
f95e4495 | 38164 | case ${BAKEFILE_HOST} in |
6b9d41a5 VS |
38165 | *-*-cygwin* | *-*-mingw32* ) |
38166 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
38167 | esac | |
38168 | ||
38169 | ||
fe0895cf | 38170 | fi |
e6cc62c6 VS |
38171 | |
38172 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38173 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 38174 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 38175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 38176 | else |
e6cc62c6 | 38177 | |
fe0895cf VS |
38178 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
38179 | egrep -s GNU > /dev/null); then | |
38180 | bakefile_cv_prog_makeisgnu="yes" | |
38181 | else | |
38182 | bakefile_cv_prog_makeisgnu="no" | |
38183 | fi | |
fe0895cf | 38184 | |
e6cc62c6 | 38185 | fi |
49b0a3aa VS |
38186 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
38187 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
38188 | |
38189 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38190 | IF_GNU_MAKE="" | |
38191 | else | |
38192 | IF_GNU_MAKE="#" | |
38193 | fi | |
fe0895cf | 38194 | |
e6cc62c6 VS |
38195 | |
38196 | ||
fe0895cf VS |
38197 | PLATFORM_UNIX=0 |
38198 | PLATFORM_WIN32=0 | |
38199 | PLATFORM_MSDOS=0 | |
38200 | PLATFORM_MAC=0 | |
38201 | PLATFORM_MACOSX=0 | |
96c1699d | 38202 | PLATFORM_OS2=0 |
e6cc62c6 | 38203 | |
f95e4495 VS |
38204 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then |
38205 | case "${BAKEFILE_HOST}" in | |
38206 | *-*-cygwin* | *-*-mingw32* ) | |
38207 | PLATFORM_WIN32=1 | |
38208 | ;; | |
38209 | *-pc-msdosdjgpp ) | |
38210 | PLATFORM_MSDOS=1 | |
38211 | ;; | |
38212 | *-pc-os2_emx | *-pc-os2-emx ) | |
38213 | PLATFORM_OS2=1 | |
38214 | ;; | |
38215 | powerpc-*-darwin* ) | |
38216 | PLATFORM_MAC=1 | |
38217 | PLATFORM_MACOSX=1 | |
38218 | ;; | |
38219 | * ) | |
38220 | PLATFORM_UNIX=1 | |
38221 | ;; | |
38222 | esac | |
38223 | else | |
38224 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38225 | win32 ) | |
38226 | PLATFORM_WIN32=1 | |
38227 | ;; | |
38228 | msdos ) | |
38229 | PLATFORM_MSDOS=1 | |
38230 | ;; | |
38231 | os2 ) | |
38232 | PLATFORM_OS2=1 | |
38233 | ;; | |
38234 | darwin ) | |
38235 | PLATFORM_MAC=1 | |
38236 | PLATFORM_MACOSX=1 | |
38237 | ;; | |
38238 | unix ) | |
38239 | PLATFORM_UNIX=1 | |
38240 | ;; | |
38241 | * ) | |
38242 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38243 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38244 | { (exit 1); exit 1; }; } | |
38245 | ;; | |
38246 | esac | |
38247 | fi | |
fe0895cf | 38248 | |
fe0895cf | 38249 | |
e6cc62c6 VS |
38250 | |
38251 | ||
38252 | ||
38253 | ||
38254 | ||
38255 | ||
96c1699d | 38256 | |
fe0895cf | 38257 | SO_SUFFIX="so" |
131f235d | 38258 | SO_SUFFIX_MODULE="so" |
fe0895cf | 38259 | EXEEXT="" |
4b1f6360 | 38260 | LIBPREFIX=lib |
fe0895cf | 38261 | DLLPREFIX=lib |
131f235d | 38262 | DLLPREFIX_MODULE= |
e6cc62c6 | 38263 | |
f95e4495 | 38264 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38265 | *-hp-hpux* ) |
38266 | SO_SUFFIX="sl" | |
131f235d | 38267 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
38268 | ;; |
38269 | *-*-aix* ) | |
38270 | SO_SUFFIX="a" | |
131f235d | 38271 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
38272 | ;; |
38273 | *-*-cygwin* | *-*-mingw32* ) | |
38274 | SO_SUFFIX="dll" | |
131f235d | 38275 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
38276 | EXEEXT=".exe" |
38277 | DLLPREFIX="" | |
38278 | ;; | |
4b1f6360 VS |
38279 | *-pc-msdosdjgpp ) |
38280 | EXEEXT=".exe" | |
38281 | DLLPREFIX="" | |
38282 | ;; | |
38283 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
38284 | EXEEXT=".exe" |
38285 | DLLPREFIX="" | |
4b1f6360 | 38286 | LIBPREFIX="" |
fe0895cf VS |
38287 | ;; |
38288 | powerpc-*-darwin* ) | |
38289 | SO_SUFFIX="dylib" | |
131f235d | 38290 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
38291 | ;; |
38292 | esac | |
38293 | ||
fe0895cf | 38294 | |
e6cc62c6 VS |
38295 | |
38296 | ||
38297 | ||
38298 | ||
131f235d VS |
38299 | |
38300 | ||
4b1f6360 | 38301 | |
fe0895cf VS |
38302 | SHARED_LD_CC="\$(CC) -shared -o" |
38303 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38304 | ||
38305 | if test "x$GCC" = "xyes"; then | |
38306 | PIC_FLAG="-fPIC" | |
38307 | fi | |
38308 | ||
f95e4495 | 38309 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38310 | *-hp-hpux* ) |
38311 | if test "x$GCC" = "xyes"; then | |
38312 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38313 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38314 | else | |
38315 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38316 | ||
38317 | SHARED_LD_CC="${CC} -b -o" | |
38318 | SHARED_LD_CXX="${CXX} -b -o" | |
38319 | PIC_FLAG="+Z" | |
38320 | fi | |
38321 | ;; | |
38322 | ||
38323 | *-*-linux* ) | |
38324 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
38325 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
38326 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38327 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 38329 | else |
fe0895cf | 38330 | |
e6cc62c6 | 38331 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
38332 | /* confdefs.h. */ |
38333 | _ACEOF | |
38334 | cat confdefs.h >>conftest.$ac_ext | |
38335 | cat >>conftest.$ac_ext <<_ACEOF | |
38336 | /* end confdefs.h. */ | |
38337 | ||
38338 | int | |
38339 | main () | |
38340 | { | |
fe0895cf VS |
38341 | |
38342 | #ifndef __INTEL_COMPILER | |
38343 | #error Not icc | |
38344 | #endif | |
e6cc62c6 VS |
38345 | |
38346 | ; | |
38347 | return 0; | |
38348 | } | |
38349 | _ACEOF | |
38350 | rm -f conftest.$ac_objext | |
38351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38352 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 38353 | ac_status=$? |
32ddf007 VS |
38354 | grep -v '^ *+' conftest.er1 >conftest.err |
38355 | rm -f conftest.er1 | |
38356 | cat conftest.err >&5 | |
e6cc62c6 VS |
38357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38358 | (exit $ac_status); } && | |
e1293dcf | 38359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38361 | (eval $ac_try) 2>&5 | |
38362 | ac_status=$? | |
38363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38364 | (exit $ac_status); }; } && | |
38365 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
38366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38367 | (eval $ac_try) 2>&5 | |
38368 | ac_status=$? | |
38369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38370 | (exit $ac_status); }; }; then | |
fe0895cf VS |
38371 | bakefile_cv_prog_icc=yes |
38372 | else | |
e6cc62c6 VS |
38373 | echo "$as_me: failed program was:" >&5 |
38374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38375 | ||
38376 | bakefile_cv_prog_icc=no | |
38377 | ||
fe0895cf | 38378 | fi |
32ddf007 | 38379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 38380 | |
e6cc62c6 VS |
38381 | fi |
38382 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38383 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
38384 | if test "$bakefile_cv_prog_icc" = "yes"; then |
38385 | PIC_FLAG="-KPIC" | |
38386 | fi | |
38387 | fi | |
38388 | ;; | |
38389 | ||
38390 | *-*-solaris2* ) | |
38391 | if test "x$GCC" != xyes ; then | |
38392 | SHARED_LD_CC="${CC} -G -o" | |
38393 | SHARED_LD_CXX="${CXX} -G -o" | |
38394 | PIC_FLAG="-KPIC" | |
38395 | fi | |
38396 | ;; | |
38397 | ||
38398 | *-*-darwin* ) | |
38399 | CFLAGS="$CFLAGS -fno-common" | |
38400 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
38401 | |
38402 | ||
2a879853 | 38403 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
38404 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
38405 | if test "${wx_cv_gcc31+set}" = set; then | |
38406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38407 | else | |
38408 | ||
2a879853 | 38409 | cat >conftest.$ac_ext <<_ACEOF |
43948499 RD |
38410 | /* confdefs.h. */ |
38411 | _ACEOF | |
38412 | cat confdefs.h >>conftest.$ac_ext | |
38413 | cat >>conftest.$ac_ext <<_ACEOF | |
38414 | /* end confdefs.h. */ | |
38415 | ||
38416 | int | |
38417 | main () | |
38418 | { | |
38419 | ||
2a879853 VS |
38420 | #if (__GNUC__ < 3) || \ |
38421 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38422 | #error old gcc | |
38423 | #endif | |
43948499 RD |
38424 | |
38425 | ; | |
38426 | return 0; | |
38427 | } | |
38428 | _ACEOF | |
38429 | rm -f conftest.$ac_objext | |
38430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38431 | (eval $ac_compile) 2>conftest.er1 |
43948499 | 38432 | ac_status=$? |
32ddf007 VS |
38433 | grep -v '^ *+' conftest.er1 >conftest.err |
38434 | rm -f conftest.er1 | |
38435 | cat conftest.err >&5 | |
43948499 RD |
38436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38437 | (exit $ac_status); } && | |
e1293dcf | 38438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38440 | (eval $ac_try) 2>&5 | |
38441 | ac_status=$? | |
38442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38443 | (exit $ac_status); }; } && | |
38444 | { ac_try='test -s conftest.$ac_objext' | |
43948499 RD |
38445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38446 | (eval $ac_try) 2>&5 | |
38447 | ac_status=$? | |
38448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38449 | (exit $ac_status); }; }; then | |
38450 | ||
2a879853 | 38451 | wx_cv_gcc31=yes |
43948499 RD |
38452 | |
38453 | else | |
38454 | echo "$as_me: failed program was:" >&5 | |
38455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38456 | ||
38457 | ||
2a879853 | 38458 | wx_cv_gcc31=no |
43948499 RD |
38459 | |
38460 | ||
38461 | fi | |
32ddf007 | 38462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
38463 | |
38464 | fi | |
38465 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38466 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 38467 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 38468 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
38469 | #!/bin/sh |
38470 | #----------------------------------------------------------------------------- | |
38471 | #-- Name: distrib/mac/shared-ld-sh | |
38472 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38473 | #-- Author: Gilles Depeyrot | |
38474 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38475 | #-- Licence: any use permitted | |
38476 | #----------------------------------------------------------------------------- | |
38477 | ||
38478 | verbose=0 | |
38479 | args="" | |
38480 | objects="" | |
131f235d | 38481 | linking_flag="-dynamiclib" |
fe0895cf VS |
38482 | |
38483 | while test \${#} -gt 0; do | |
38484 | case \${1} in | |
38485 | ||
38486 | -v) | |
38487 | verbose=1 | |
38488 | ;; | |
38489 | ||
38490 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38491 | # collect these options and values | |
38492 | args="\${args} \${1} \${2}" | |
38493 | shift | |
38494 | ;; | |
38495 | ||
74500461 | 38496 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
38497 | # collect these options |
38498 | args="\${args} \${1}" | |
38499 | ;; | |
38500 | ||
131f235d VS |
38501 | -dynamiclib|-bundle) |
38502 | linking_flag="\${1}" | |
fe0895cf VS |
38503 | ;; |
38504 | ||
38505 | -*) | |
38506 | echo "shared-ld: unhandled option '\${1}'" | |
38507 | exit 1 | |
38508 | ;; | |
38509 | ||
4d264332 | 38510 | *.o | *.a | *.dylib) |
fe0895cf VS |
38511 | # collect object files |
38512 | objects="\${objects} \${1}" | |
38513 | ;; | |
38514 | ||
38515 | *) | |
38516 | echo "shared-ld: unhandled argument '\${1}'" | |
38517 | exit 1 | |
38518 | ;; | |
38519 | ||
38520 | esac | |
38521 | shift | |
38522 | done | |
38523 | ||
38524 | # | |
38525 | # Link one module containing all the others | |
38526 | # | |
38527 | if test \${verbose} = 1; then | |
38528 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
38529 | fi | |
38530 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
38531 | status=\$? | |
38532 | if test \${status} != 0; then | |
38533 | exit \${status} | |
38534 | fi | |
38535 | ||
38536 | # | |
38537 | # Link the shared library from the single module created | |
38538 | # | |
38539 | if test \${verbose} = 1; then | |
2a879853 | 38540 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 38541 | fi |
131f235d | 38542 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
38543 | status=\$? |
38544 | if test \${status} != 0; then | |
38545 | exit \${status} | |
38546 | fi | |
38547 | ||
38548 | # | |
38549 | # Remove intermediate module | |
38550 | # | |
38551 | rm -f master.\$\$.o | |
38552 | ||
38553 | exit 0 | |
38554 | EOF | |
43948499 | 38555 | chmod +x shared-ld-sh |
fe0895cf | 38556 | |
7f523214 VS |
38557 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
38558 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
38559 | SHARED_LD_CXX="$SHARED_LD_CC" |
38560 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38561 | else | |
7f523214 VS |
38562 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
38563 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38564 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38565 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
38566 | fi |
38567 | ||
fe0895cf | 38568 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 38569 | ;; |
fe0895cf VS |
38570 | |
38571 | *-*-aix* ) | |
38572 | if test "x$GCC" != "xyes"; then | |
38573 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38574 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
38575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38577 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38579 | else |
38580 | if test -n "$AIX_CXX_LD"; then | |
38581 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38582 | else | |
e6cc62c6 VS |
38583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38584 | for as_dir in $PATH | |
38585 | do | |
38586 | IFS=$as_save_IFS | |
38587 | test -z "$as_dir" && as_dir=. | |
38588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38590 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38592 | break 2 | |
38593 | fi | |
38594 | done | |
38595 | done | |
38596 | ||
fe0895cf VS |
38597 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
38598 | fi | |
38599 | fi | |
e6cc62c6 | 38600 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 38601 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
38602 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
38603 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 38604 | else |
e6cc62c6 VS |
38605 | echo "$as_me:$LINENO: result: no" >&5 |
38606 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38607 | fi |
38608 | ||
38609 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38610 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38611 | fi | |
38612 | ;; | |
38613 | ||
38614 | *-*-beos* ) | |
38615 | SHARED_LD_CC="${LD} -shared -o" | |
38616 | SHARED_LD_CXX="${LD} -shared -o" | |
38617 | ;; | |
38618 | ||
38619 | *-*-irix* ) | |
38620 | if test "x$GCC" != "xyes"; then | |
38621 | PIC_FLAG="-KPIC" | |
38622 | fi | |
38623 | ;; | |
e6cc62c6 | 38624 | |
fe0895cf VS |
38625 | *-*-cygwin* | *-*-mingw32* ) |
38626 | PIC_FLAG="" | |
38627 | ;; | |
e6cc62c6 | 38628 | |
fe0895cf VS |
38629 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
38630 | *-*-sunos4* | \ | |
38631 | *-*-osf* | \ | |
38632 | *-*-dgux5* | \ | |
4b1f6360 | 38633 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
38634 | *-*-sysv5* ) |
38635 | ;; | |
38636 | ||
38637 | *) | |
f95e4495 VS |
38638 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
38639 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
e6cc62c6 | 38640 | { (exit 1); exit 1; }; } |
fe0895cf VS |
38641 | esac |
38642 | ||
131f235d VS |
38643 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
38644 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
38645 | fi | |
38646 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 38647 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
38648 | fi |
38649 | ||
38650 | ||
38651 | ||
fe0895cf | 38652 | |
e6cc62c6 VS |
38653 | |
38654 | ||
38655 | ||
38656 | ||
fe0895cf VS |
38657 | USE_SOVERSION=0 |
38658 | USE_SOVERLINUX=0 | |
38659 | USE_SOVERSOLARIS=0 | |
38660 | USE_SOSYMLINKS=0 | |
38661 | USE_MACVERSION=0 | |
38662 | SONAME_FLAG= | |
38663 | ||
f95e4495 | 38664 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38665 | *-*-linux* ) |
38666 | SONAME_FLAG="-Wl,-soname," | |
38667 | USE_SOVERSION=1 | |
38668 | USE_SOVERLINUX=1 | |
38669 | USE_SOSYMLINKS=1 | |
38670 | ;; | |
38671 | ||
38672 | *-*-solaris2* ) | |
38673 | SONAME_FLAG="-h " | |
38674 | USE_SOVERSION=1 | |
38675 | USE_SOVERSOLARIS=1 | |
38676 | USE_SOSYMLINKS=1 | |
38677 | ;; | |
38678 | ||
38679 | *-*-darwin* ) | |
38680 | USE_MACVERSION=1 | |
38681 | USE_SOVERSION=1 | |
38682 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 38683 | ;; |
fe0895cf VS |
38684 | esac |
38685 | ||
fe0895cf | 38686 | |
e6cc62c6 VS |
38687 | |
38688 | ||
38689 | ||
38690 | ||
38691 | ||
38692 | ||
38693 | ||
49b0a3aa VS |
38694 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
38695 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
38696 | DEPS_TRACKING=0 | |
38697 | ||
fe0895cf | 38698 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
38699 | DEPSMODE=gcc |
38700 | DEPS_TRACKING=1 | |
f95e4495 | 38701 | case "${BAKEFILE_HOST}" in |
3e5c3c83 VS |
38702 | powerpc-*-darwin* ) |
38703 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
38704 | ;; | |
38705 | * ) | |
38706 | DEPSFLAG_GCC="-MMD" | |
38707 | ;; | |
38708 | esac | |
49b0a3aa VS |
38709 | echo "$as_me:$LINENO: result: gcc" >&5 |
38710 | echo "${ECHO_T}gcc" >&6 | |
38711 | else | |
38712 | echo "$as_me:$LINENO: result: none" >&5 | |
38713 | echo "${ECHO_T}none" >&6 | |
38714 | fi | |
38715 | ||
38716 | if test $DEPS_TRACKING = 1 ; then | |
38717 | cat <<EOF >bk-deps | |
38718 | #!/bin/sh | |
38719 | ||
45842500 VS |
38720 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
38721 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
38722 | # |
38723 | # Permission is given to use this file in any way. | |
38724 | ||
38725 | DEPSMODE=$DEPSMODE | |
38726 | DEPSDIR=.deps | |
3e5c3c83 | 38727 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
38728 | |
38729 | mkdir -p \$DEPSDIR | |
38730 | ||
38731 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 38732 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
38733 | status=\${?} |
38734 | if test \${status} != 0 ; then | |
38735 | exit \${status} | |
38736 | fi | |
38737 | # move created file to the location we want it in: | |
38738 | while test \${#} -gt 0; do | |
38739 | case "\${1}" in | |
38740 | -o ) | |
38741 | shift | |
38742 | objfile=\${1} | |
38743 | ;; | |
38744 | -* ) | |
38745 | ;; | |
38746 | * ) | |
38747 | srcfile=\${1} | |
38748 | ;; | |
38749 | esac | |
38750 | shift | |
38751 | done | |
38752 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
38753 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
38754 | if test -f \$depfile ; then |
38755 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
38756 | rm -f \$depfile | |
38757 | else | |
38758 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
38759 | if test -f \$depfile ; then | |
9d0be83a | 38760 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
38761 | rm -f \$depfile |
38762 | fi | |
38763 | fi | |
49b0a3aa VS |
38764 | exit 0 |
38765 | else | |
38766 | \${*} | |
38767 | exit \${?} | |
38768 | fi | |
38769 | EOF | |
38770 | chmod +x bk-deps | |
fe0895cf | 38771 | fi |
fe0895cf | 38772 | |
e6cc62c6 VS |
38773 | |
38774 | ||
38775 | ||
fe0895cf VS |
38776 | RESCOMP= |
38777 | SETFILE= | |
38778 | ||
f95e4495 | 38779 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
38780 | *-*-cygwin* | *-*-mingw32* ) |
38781 | if test "$build" != "$host" ; then | |
38782 | RESCOMP=$host_alias-windres | |
38783 | else | |
38784 | # Extract the first word of "windres", so it can be a program name with args. | |
38785 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
38786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38788 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
38789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38790 | else |
38791 | if test -n "$RESCOMP"; then | |
38792 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
38793 | else | |
e6cc62c6 VS |
38794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38795 | for as_dir in $PATH | |
38796 | do | |
38797 | IFS=$as_save_IFS | |
38798 | test -z "$as_dir" && as_dir=. | |
38799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38801 | ac_cv_prog_RESCOMP="windres" | |
38802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38803 | break 2 | |
38804 | fi | |
38805 | done | |
38806 | done | |
38807 | ||
fe0895cf VS |
38808 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
38809 | fi | |
38810 | fi | |
e6cc62c6 | 38811 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 38812 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
38813 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
38814 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 38815 | else |
e6cc62c6 VS |
38816 | echo "$as_me:$LINENO: result: no" >&5 |
38817 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38818 | fi |
38819 | ||
38820 | fi | |
38821 | ;; | |
e6cc62c6 | 38822 | |
fe0895cf VS |
38823 | *-*-darwin* ) |
38824 | # Extract the first word of "Rez", so it can be a program name with args. | |
38825 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
38826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38828 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
38829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38830 | else |
38831 | if test -n "$RESCOMP"; then | |
38832 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
38833 | else | |
e6cc62c6 VS |
38834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38835 | for as_dir in $PATH | |
38836 | do | |
38837 | IFS=$as_save_IFS | |
38838 | test -z "$as_dir" && as_dir=. | |
38839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38841 | ac_cv_prog_RESCOMP="Rez" | |
38842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38843 | break 2 | |
38844 | fi | |
38845 | done | |
38846 | done | |
38847 | ||
fe0895cf VS |
38848 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
38849 | fi | |
38850 | fi | |
e6cc62c6 | 38851 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 38852 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
38853 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
38854 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 38855 | else |
e6cc62c6 VS |
38856 | echo "$as_me:$LINENO: result: no" >&5 |
38857 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38858 | fi |
38859 | ||
38860 | # Extract the first word of "SetFile", so it can be a program name with args. | |
38861 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
38862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38864 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
38865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38866 | else |
38867 | if test -n "$SETFILE"; then | |
38868 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
38869 | else | |
e6cc62c6 VS |
38870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38871 | for as_dir in $PATH | |
38872 | do | |
38873 | IFS=$as_save_IFS | |
38874 | test -z "$as_dir" && as_dir=. | |
38875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38877 | ac_cv_prog_SETFILE="SetFile" | |
38878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38879 | break 2 | |
38880 | fi | |
38881 | done | |
38882 | done | |
38883 | ||
fe0895cf VS |
38884 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
38885 | fi | |
38886 | fi | |
e6cc62c6 | 38887 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 38888 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
38889 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
38890 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 38891 | else |
e6cc62c6 VS |
38892 | echo "$as_me:$LINENO: result: no" >&5 |
38893 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38894 | fi |
38895 | ||
38896 | ;; | |
38897 | esac | |
38898 | ||
fe0895cf VS |
38899 | |
38900 | ||
e6cc62c6 VS |
38901 | |
38902 | ||
38903 | ||
38904 | ||
45842500 | 38905 | |
45842500 VS |
38906 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
38907 | if test "${enable_precomp_headers+set}" = set; then | |
38908 | enableval="$enable_precomp_headers" | |
38909 | bk_use_pch="$enableval" | |
38910 | fi; | |
38911 | ||
38912 | GCC_PCH=0 | |
38913 | ||
38914 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
38915 | if test "x$GCC" = "xyes"; then | |
38916 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
38917 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
38918 | cat >conftest.$ac_ext <<_ACEOF | |
45842500 VS |
38919 | /* confdefs.h. */ |
38920 | _ACEOF | |
38921 | cat confdefs.h >>conftest.$ac_ext | |
38922 | cat >>conftest.$ac_ext <<_ACEOF | |
38923 | /* end confdefs.h. */ | |
38924 | ||
38925 | int | |
38926 | main () | |
38927 | { | |
38928 | ||
8bcf2d20 VS |
38929 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
38930 | #error "no pch support" | |
38931 | #endif | |
38932 | #if (__GNUC__ < 3) | |
38933 | #error "no pch support" | |
38934 | #endif | |
38935 | #if (__GNUC__ == 3) && \ | |
38936 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
38937 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
38938 | #error "no pch support" | |
45842500 VS |
38939 | #endif |
38940 | ||
38941 | ; | |
38942 | return 0; | |
38943 | } | |
38944 | _ACEOF | |
38945 | rm -f conftest.$ac_objext | |
38946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38947 | (eval $ac_compile) 2>conftest.er1 |
45842500 | 38948 | ac_status=$? |
32ddf007 VS |
38949 | grep -v '^ *+' conftest.er1 >conftest.err |
38950 | rm -f conftest.er1 | |
38951 | cat conftest.err >&5 | |
45842500 VS |
38952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38953 | (exit $ac_status); } && | |
e1293dcf | 38954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38956 | (eval $ac_try) 2>&5 | |
38957 | ac_status=$? | |
38958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38959 | (exit $ac_status); }; } && | |
38960 | { ac_try='test -s conftest.$ac_objext' | |
45842500 VS |
38961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38962 | (eval $ac_try) 2>&5 | |
38963 | ac_status=$? | |
38964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38965 | (exit $ac_status); }; }; then | |
38966 | ||
38967 | echo "$as_me:$LINENO: result: yes" >&5 | |
38968 | echo "${ECHO_T}yes" >&6 | |
38969 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
38970 | GCC_PCH=1 | |
38971 | ||
38972 | else | |
38973 | echo "$as_me: failed program was:" >&5 | |
38974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38975 | ||
38976 | ||
38977 | echo "$as_me:$LINENO: result: no" >&5 | |
38978 | echo "${ECHO_T}no" >&6 | |
38979 | ||
38980 | fi | |
32ddf007 | 38981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
38982 | if test $GCC_PCH = 1 ; then |
38983 | cat <<EOF >bk-make-pch | |
38984 | #!/bin/sh | |
38985 | ||
38986 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
38987 | # script. It is used to generated precompiled headers. | |
38988 | # | |
38989 | # Permission is given to use this file in any way. | |
38990 | ||
38991 | outfile="\${1}" | |
38992 | header="\${2}" | |
38993 | shift | |
38994 | shift | |
38995 | ||
38996 | compiler= | |
38997 | headerfile= | |
38998 | while test \${#} -gt 0; do | |
38999 | case "\${1}" in | |
39000 | -I* ) | |
39001 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39002 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39003 | headerfile="\${incdir}/\${header}" | |
39004 | fi | |
39005 | ;; | |
39006 | esac | |
39007 | compiler="\${compiler} \${1}" | |
39008 | shift | |
39009 | done | |
39010 | ||
39011 | if test "x\${headerfile}" = "x" ; then | |
39012 | echo "error: can't find header \${header} in include paths" >2 | |
39013 | else | |
39014 | if test -f \${outfile} ; then | |
39015 | rm -f \${outfile} | |
39016 | else | |
39017 | mkdir -p \`dirname \${outfile}\` | |
39018 | fi | |
39019 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39020 | mkdir -p .deps | |
39021 | # can do this because gcc is >= 3.4: | |
39022 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39023 | exit \${?} | |
39024 | fi | |
39025 | EOF | |
39026 | chmod +x bk-make-pch | |
39027 | fi | |
39028 | fi | |
39029 | fi | |
39030 | ||
39031 | ||
39032 | ||
39033 | ||
39034 | ||
d78c94f2 | 39035 | COND_BUILD_DEBUG="#" |
6f628073 | 39036 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 39037 | COND_BUILD_DEBUG="" |
6f628073 VS |
39038 | fi |
39039 | ||
6c67131a VS |
39040 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
39041 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39042 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39043 | fi | |
39044 | ||
39045 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39046 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39047 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39048 | fi | |
39049 | ||
f93ca9fd VS |
39050 | COND_BUILD_DEBUG_UNICODE_0="#" |
39051 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39052 | COND_BUILD_DEBUG_UNICODE_0="" | |
39053 | fi | |
39054 | ||
39055 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39056 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39057 | COND_BUILD_DEBUG_UNICODE_1="" | |
39058 | fi | |
39059 | ||
d78c94f2 | 39060 | COND_BUILD_RELEASE="#" |
6f628073 | 39061 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 39062 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
39063 | fi |
39064 | ||
6c67131a VS |
39065 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
39066 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39067 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39068 | fi | |
39069 | ||
f93ca9fd VS |
39070 | COND_BUILD_RELEASE_UNICODE_0="#" |
39071 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39072 | COND_BUILD_RELEASE_UNICODE_0="" | |
39073 | fi | |
39074 | ||
39075 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39076 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39077 | COND_BUILD_RELEASE_UNICODE_1="" | |
39078 | fi | |
39079 | ||
6c67131a VS |
39080 | COND_DEBUG_FLAG_1="#" |
39081 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39082 | COND_DEBUG_FLAG_1="" | |
39083 | fi | |
39084 | ||
39085 | COND_DEBUG_INFO_0="#" | |
39086 | if test "x$DEBUG_INFO" = "x0" ; then | |
39087 | COND_DEBUG_INFO_0="" | |
39088 | fi | |
39089 | ||
39090 | COND_DEBUG_INFO_1="#" | |
39091 | if test "x$DEBUG_INFO" = "x1" ; then | |
39092 | COND_DEBUG_INFO_1="" | |
39093 | fi | |
39094 | ||
f95cd8fa VS |
39095 | COND_DEPS_TRACKING_0="#" |
39096 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39097 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
39098 | fi |
39099 | ||
8ee2dd05 VS |
39100 | COND_DEPS_TRACKING_1="#" |
39101 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39102 | COND_DEPS_TRACKING_1="" | |
39103 | fi | |
39104 | ||
45842500 VS |
39105 | COND_GCC_PCH_1="#" |
39106 | if test "x$GCC_PCH" = "x1" ; then | |
39107 | COND_GCC_PCH_1="" | |
39108 | fi | |
39109 | ||
6f628073 VS |
39110 | COND_MONOLITHIC_0="#" |
39111 | if test "x$MONOLITHIC" = "x0" ; then | |
39112 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
39113 | fi |
39114 | ||
6f628073 VS |
39115 | COND_MONOLITHIC_0_SHARED_0="#" |
39116 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39117 | COND_MONOLITHIC_0_SHARED_0="" | |
39118 | fi | |
39119 | ||
39120 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39121 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39122 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 39123 | fi |
e6cc62c6 | 39124 | |
8772a1a7 VS |
39125 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
39126 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39127 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39128 | fi | |
39129 | ||
250700e4 RD |
39130 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
39131 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39132 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39133 | fi | |
39134 | ||
eb69fda5 VS |
39135 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
39136 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39137 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39138 | fi | |
39139 | ||
8ee2dd05 VS |
39140 | COND_MONOLITHIC_0_SHARED_1="#" |
39141 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39142 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 39143 | fi |
e6cc62c6 | 39144 | |
6f628073 VS |
39145 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
39146 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39147 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39148 | fi | |
39149 | ||
8772a1a7 VS |
39150 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
39151 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39152 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39153 | fi | |
39154 | ||
250700e4 RD |
39155 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
39156 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39157 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39158 | fi | |
39159 | ||
eb69fda5 VS |
39160 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
39161 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39162 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39163 | fi | |
39164 | ||
f95e4495 VS |
39165 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
39166 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39167 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39168 | fi | |
39169 | ||
3af038c0 VS |
39170 | COND_MONOLITHIC_1="#" |
39171 | if test "x$MONOLITHIC" = "x1" ; then | |
39172 | COND_MONOLITHIC_1="" | |
39173 | fi | |
39174 | ||
6f628073 VS |
39175 | COND_MONOLITHIC_1_SHARED_0="#" |
39176 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39177 | COND_MONOLITHIC_1_SHARED_0="" | |
39178 | fi | |
39179 | ||
39180 | COND_MONOLITHIC_1_SHARED_1="#" | |
39181 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39182 | COND_MONOLITHIC_1_SHARED_1="" | |
39183 | fi | |
39184 | ||
3af038c0 VS |
39185 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
39186 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39187 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39188 | fi | |
39189 | ||
39190 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39191 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39192 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39193 | fi | |
39194 | ||
6f628073 VS |
39195 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
39196 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39197 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39198 | fi | |
39199 | ||
3af038c0 VS |
39200 | COND_PLATFORM_MACOSX_1="#" |
39201 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39202 | COND_PLATFORM_MACOSX_1="" | |
39203 | fi | |
39204 | ||
250700e4 RD |
39205 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
39206 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39207 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39208 | fi | |
39209 | ||
39210 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39211 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39212 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39213 | fi | |
39214 | ||
39215 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39216 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39217 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39218 | fi | |
39219 | ||
3527f29c VS |
39220 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39221 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39222 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39223 | fi | |
39224 | ||
8ee2dd05 VS |
39225 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
39226 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39227 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39228 | fi | |
39229 | ||
45842500 VS |
39230 | COND_PLATFORM_MAC_1="#" |
39231 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39232 | COND_PLATFORM_MAC_1="" | |
39233 | fi | |
39234 | ||
3d8c1de0 VS |
39235 | COND_PLATFORM_OS2_1="#" |
39236 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39237 | COND_PLATFORM_OS2_1="" | |
39238 | fi | |
39239 | ||
8772a1a7 VS |
39240 | COND_PLATFORM_UNIX_0="#" |
39241 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39242 | COND_PLATFORM_UNIX_0="" | |
39243 | fi | |
39244 | ||
3af038c0 VS |
39245 | COND_PLATFORM_UNIX_1="#" |
39246 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39247 | COND_PLATFORM_UNIX_1="" | |
39248 | fi | |
39249 | ||
3527f29c VS |
39250 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
39251 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39252 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39253 | fi | |
39254 | ||
f93ca9fd VS |
39255 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" |
39256 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39257 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39258 | fi | |
39259 | ||
3af038c0 VS |
39260 | COND_PLATFORM_WIN32_0="#" |
39261 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39262 | COND_PLATFORM_WIN32_0="" | |
39263 | fi | |
39264 | ||
39265 | COND_PLATFORM_WIN32_1="#" | |
39266 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39267 | COND_PLATFORM_WIN32_1="" | |
39268 | fi | |
39269 | ||
45842500 VS |
39270 | COND_SHARED_0="#" |
39271 | if test "x$SHARED" = "x0" ; then | |
39272 | COND_SHARED_0="" | |
39273 | fi | |
39274 | ||
250700e4 RD |
39275 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
39276 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39277 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39278 | fi | |
39279 | ||
52a5a009 VS |
39280 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39281 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39282 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39283 | fi | |
39284 | ||
39285 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39286 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39287 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39288 | fi | |
39289 | ||
39290 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39291 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39292 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39293 | fi | |
39294 | ||
39295 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
39296 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39297 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
39298 | fi | |
39299 | ||
39300 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
39301 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39302 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
39303 | fi | |
39304 | ||
39305 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
39306 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39307 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
39308 | fi | |
39309 | ||
39310 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
39311 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39312 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
39313 | fi | |
39314 | ||
45842500 VS |
39315 | COND_SHARED_1="#" |
39316 | if test "x$SHARED" = "x1" ; then | |
39317 | COND_SHARED_1="" | |
39318 | fi | |
39319 | ||
250700e4 RD |
39320 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
39321 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39322 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
39323 | fi | |
39324 | ||
6f628073 VS |
39325 | COND_TOOLKIT_COCOA="#" |
39326 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
39327 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
39328 | fi |
39329 | ||
6f628073 VS |
39330 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
39331 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39332 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39333 | fi |
39334 | ||
6f628073 VS |
39335 | COND_TOOLKIT_GTK="#" |
39336 | if test "x$TOOLKIT" = "xGTK" ; then | |
39337 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
39338 | fi |
39339 | ||
6f628073 VS |
39340 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
39341 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
39342 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
39343 | fi |
39344 | ||
6f628073 VS |
39345 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
39346 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39347 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39348 | fi |
39349 | ||
3af038c0 VS |
39350 | COND_TOOLKIT_MAC="#" |
39351 | if test "x$TOOLKIT" = "xMAC" ; then | |
39352 | COND_TOOLKIT_MAC="" | |
39353 | fi | |
39354 | ||
8772a1a7 VS |
39355 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
39356 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
39357 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
39358 | fi | |
39359 | ||
6f628073 VS |
39360 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
39361 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39362 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39363 | fi |
39364 | ||
6f628073 VS |
39365 | COND_TOOLKIT_MGL="#" |
39366 | if test "x$TOOLKIT" = "xMGL" ; then | |
39367 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
39368 | fi |
39369 | ||
6f628073 VS |
39370 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
39371 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
39372 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
39373 | fi |
39374 | ||
6f628073 VS |
39375 | COND_TOOLKIT_MOTIF="#" |
39376 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
39377 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
39378 | fi |
39379 | ||
6f628073 VS |
39380 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
39381 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
39382 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 39383 | fi |
e6cc62c6 | 39384 | |
6f628073 VS |
39385 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
39386 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39387 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39388 | fi |
39389 | ||
6f628073 VS |
39390 | COND_TOOLKIT_MSW="#" |
39391 | if test "x$TOOLKIT" = "xMSW" ; then | |
39392 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
39393 | fi |
39394 | ||
6f628073 VS |
39395 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
39396 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
39397 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 39398 | fi |
e6cc62c6 | 39399 | |
6f628073 VS |
39400 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
39401 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39402 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39403 | fi |
e6cc62c6 | 39404 | |
96c1699d VS |
39405 | COND_TOOLKIT_PM="#" |
39406 | if test "x$TOOLKIT" = "xPM" ; then | |
39407 | COND_TOOLKIT_PM="" | |
39408 | fi | |
39409 | ||
39410 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
39411 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
39412 | COND_TOOLKIT_PM_USE_GUI_1="" | |
39413 | fi | |
39414 | ||
39415 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
39416 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39417 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
39418 | fi | |
39419 | ||
6f628073 VS |
39420 | COND_TOOLKIT_X11="#" |
39421 | if test "x$TOOLKIT" = "xX11" ; then | |
39422 | COND_TOOLKIT_X11="" | |
9747f85d VS |
39423 | fi |
39424 | ||
6f628073 VS |
39425 | COND_TOOLKIT_X11_USE_GUI_1="#" |
39426 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
39427 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
39428 | fi |
39429 | ||
3af038c0 VS |
39430 | COND_UNICODE_1="#" |
39431 | if test "x$UNICODE" = "x1" ; then | |
39432 | COND_UNICODE_1="" | |
39433 | fi | |
39434 | ||
7015ef3a VZ |
39435 | COND_USE_EXCEPTIONS_0="#" |
39436 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
39437 | COND_USE_EXCEPTIONS_0="" | |
39438 | fi | |
39439 | ||
39440 | COND_USE_EXCEPTIONS_1="#" | |
39441 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
39442 | COND_USE_EXCEPTIONS_1="" | |
39443 | fi | |
39444 | ||
3af038c0 VS |
39445 | COND_USE_GUI_0="#" |
39446 | if test "x$USE_GUI" = "x0" ; then | |
39447 | COND_USE_GUI_0="" | |
39448 | fi | |
39449 | ||
39450 | COND_USE_GUI_1="#" | |
39451 | if test "x$USE_GUI" = "x1" ; then | |
39452 | COND_USE_GUI_1="" | |
39453 | fi | |
39454 | ||
e6cc62c6 | 39455 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
39456 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
39457 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39458 | fi |
e6cc62c6 VS |
39459 | |
39460 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
39461 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
39462 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
39463 | fi |
39464 | ||
66a96744 VS |
39465 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39466 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39467 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39468 | fi | |
39469 | ||
39470 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39471 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39472 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39473 | fi | |
39474 | ||
39475 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39476 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39477 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39478 | fi | |
39479 | ||
57e7d4ac VS |
39480 | COND_USE_ODBC_1="#" |
39481 | if test "x$USE_ODBC" = "x1" ; then | |
39482 | COND_USE_ODBC_1="" | |
39483 | fi | |
39484 | ||
f93ca9fd VS |
39485 | COND_USE_PLUGINS_0="#" |
39486 | if test "x$USE_PLUGINS" = "x0" ; then | |
39487 | COND_USE_PLUGINS_0="" | |
39488 | fi | |
39489 | ||
6f628073 VS |
39490 | COND_USE_SOSYMLINKS_1="#" |
39491 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
39492 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
39493 | fi |
39494 | ||
6f628073 VS |
39495 | COND_USE_SOVERLINUX_1="#" |
39496 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
39497 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
39498 | fi |
39499 | ||
6f628073 VS |
39500 | COND_USE_SOVERSION_0="#" |
39501 | if test "x$USE_SOVERSION" = "x0" ; then | |
39502 | COND_USE_SOVERSION_0="" | |
fddeb06b | 39503 | fi |
fe0895cf | 39504 | |
6f628073 VS |
39505 | COND_USE_SOVERSOLARIS_1="#" |
39506 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
39507 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 39508 | fi |
fe0895cf | 39509 | |
f93ca9fd VS |
39510 | COND_WITH_PLUGIN_SDL_1="#" |
39511 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
39512 | COND_WITH_PLUGIN_SDL_1="" | |
39513 | fi | |
39514 | ||
39515 | COND_WITH_SDL_1="#" | |
39516 | if test "x$WITH_SDL" = "x1" ; then | |
39517 | COND_WITH_SDL_1="" | |
39518 | fi | |
39519 | ||
3af038c0 VS |
39520 | COND_WXUNIV_1="#" |
39521 | if test "x$WXUNIV" = "x1" ; then | |
39522 | COND_WXUNIV_1="" | |
39523 | fi | |
39524 | ||
66a96744 VS |
39525 | COND_WXUSE_EXPAT_BUILTIN="#" |
39526 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39527 | COND_WXUSE_EXPAT_BUILTIN="" | |
39528 | fi | |
39529 | ||
02980527 VS |
39530 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
39531 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39532 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
39533 | fi | |
39534 | ||
39535 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
39536 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39537 | COND_WXUSE_LIBPNG_BUILTIN="" | |
39538 | fi | |
39539 | ||
39540 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
39541 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39542 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
39543 | fi | |
39544 | ||
39545 | COND_WXUSE_ODBC_BUILTIN="#" | |
39546 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39547 | COND_WXUSE_ODBC_BUILTIN="" | |
39548 | fi | |
39549 | ||
39550 | COND_WXUSE_REGEX_BUILTIN="#" | |
39551 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39552 | COND_WXUSE_REGEX_BUILTIN="" | |
39553 | fi | |
39554 | ||
39555 | COND_WXUSE_ZLIB_BUILTIN="#" | |
39556 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39557 | COND_WXUSE_ZLIB_BUILTIN="" | |
39558 | fi | |
39559 | ||
1772d20c | 39560 | |
fe0895cf | 39561 | |
fe0895cf | 39562 | |
fe0895cf | 39563 | |
45842500 | 39564 | if test $GCC_PCH = 1 ; then |
130711ba | 39565 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
39566 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
39567 | else | |
39568 | case "${host}" in | |
39569 | powerpc-*-darwin* ) | |
130711ba VS |
39570 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
39571 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 39572 | ;; |
45842500 VS |
39573 | esac |
39574 | fi | |
fe0895cf VS |
39575 | |
39576 | ||
fddeb06b | 39577 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
39578 | |
39579 | ||
39580 | ||
39581 | ||
39582 | ||
39583 | ||
39584 | ||
39585 | ||
39586 | ||
39587 | ||
39588 | ||
39589 | ||
39590 | ||
39591 | ||
39592 | ||
39593 | ||
39594 | ||
39595 | ||
39596 | ||
39597 | ||
39598 | ||
39599 | ||
39600 | ||
39601 | ||
39602 | ||
39603 | ||
39604 | ||
39605 | ||
39606 | ||
39607 | ||
39608 | ||
39609 | ||
39610 | ||
39611 | ||
39612 | ||
39613 | ||
39614 | ||
39615 | ||
39616 | ||
39617 | ||
39618 | ||
39619 | ||
39620 | ||
39621 | ||
39622 | ||
39623 | ||
39624 | ||
39625 | ||
39626 | ||
39627 | ||
39628 | ||
39629 | ||
39630 | ||
39631 | ||
39632 | ||
39633 | ||
39634 | ||
39635 | ||
39636 | ||
39637 | ||
39638 | ||
39639 | ||
39640 | ||
39641 | ||
39642 | ||
39643 | ||
39644 | ||
39645 | ||
39646 | ||
39647 | ||
39648 | ||
39649 | ||
39650 | ||
39651 | ||
39652 | ||
39653 | ||
39654 | ||
39655 | ||
39656 | ||
39657 | ||
39658 | ||
39659 | ||
39660 | ||
39661 | ||
39662 | ||
39663 | ||
39664 | ||
39665 | ||
39666 | ||
39667 | ||
39668 | ||
39669 | ||
39670 | ||
39671 | ||
fe0895cf | 39672 | |
f0290fca VS |
39673 | |
39674 | ||
243f8ae5 | 39675 | |
e6cc62c6 VS |
39676 | |
39677 | ||
39678 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39679 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 39680 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
39681 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39683 | else | |
39684 | cat >conftest.make <<\_ACEOF | |
39685 | all: | |
39686 | @echo 'ac_maketemp="$(MAKE)"' | |
39687 | _ACEOF | |
39688 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39689 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39690 | if test -n "$ac_maketemp"; then | |
39691 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39692 | else | |
39693 | eval ac_cv_prog_make_${ac_make}_set=no | |
39694 | fi | |
39695 | rm -f conftest.make | |
39696 | fi | |
39697 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39698 | echo "$as_me:$LINENO: result: yes" >&5 | |
39699 | echo "${ECHO_T}yes" >&6 | |
39700 | SET_MAKE= | |
39701 | else | |
39702 | echo "$as_me:$LINENO: result: no" >&5 | |
39703 | echo "${ECHO_T}no" >&6 | |
39704 | SET_MAKE="MAKE=${MAKE-make}" | |
39705 | fi | |
39706 | ||
39707 | ||
39708 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
39709 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
39710 | fi | |
39711 | ||
39712 | ac_config_headers="$ac_config_headers setup.h" | |
39713 | ||
39714 | ||
81345eef | 39715 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
39716 | |
39717 | ||
39718 | ac_config_commands="$ac_config_commands default" | |
39719 | ||
39720 | ||
9de9b8f0 | 39721 | |
6c3e36af VZ |
39722 | if test "$wxUSE_GUI" = "yes"; then |
39723 | SUBDIRS="samples demos utils contrib" | |
39724 | else SUBDIRS="samples utils" | |
39725 | fi | |
e6cc62c6 | 39726 | |
166263e6 | 39727 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 39728 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 39729 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 39730 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
39731 | makefiles="samples/Makefile.in $makefiles" |
39732 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
39733 | if test -d $srcdir/samples/$sample; then |
39734 | makefiles="samples/$sample/Makefile.in $makefiles" | |
39735 | fi | |
39736 | done | |
39737 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
39738 | fi | |
6c3e36af | 39739 | else if test ${subdir} = "samples"; then |
8772a1a7 | 39740 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 39741 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
39742 | utils/HelpGen/src/Makefile.in \ |
39743 | utils/tex2rtf/Makefile.in \ | |
39744 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
39745 | fi |
39746 | fi | |
39747 | ||
9747f85d VS |
39748 | for mkin in $makefiles ; do |
39749 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
39750 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 39751 | |
9747f85d VS |
39752 | done |
39753 | fi | |
39754 | done | |
e6cc62c6 | 39755 | |
9de9b8f0 | 39756 | |
e6cc62c6 VS |
39757 | cat >confcache <<\_ACEOF |
39758 | # This file is a shell script that caches the results of configure | |
39759 | # tests run on this system so they can be shared between configure | |
39760 | # scripts and configure runs, see configure's option --config-cache. | |
39761 | # It is not useful on other systems. If it contains results you don't | |
39762 | # want to keep, you may remove or edit it. | |
39763 | # | |
39764 | # config.status only pays attention to the cache file if you give it | |
39765 | # the --recheck option to rerun configure. | |
39766 | # | |
39767 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
39768 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
39769 | # following values. | |
39770 | ||
39771 | _ACEOF | |
39772 | ||
39773 | # The following way of writing the cache mishandles newlines in values, | |
39774 | # but we know of no workaround that is simple, portable, and efficient. | |
39775 | # So, don't put newlines in cache variables' values. | |
39776 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
39777 | # and sets the high bit in the cache file unless we assign to the vars. | |
39778 | { | |
39779 | (set) 2>&1 | | |
39780 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
39781 | *ac_space=\ *) | |
39782 | # `set' does not quote correctly, so add quotes (double-quote | |
39783 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
39784 | sed -n \ | |
32ddf007 VS |
39785 | "s/'/'\\\\''/g; |
39786 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
39787 | ;; |
39788 | *) | |
39789 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
39790 | sed -n \ | |
32ddf007 | 39791 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
39792 | ;; |
39793 | esac; | |
39794 | } | | |
39795 | sed ' | |
39796 | t clear | |
39797 | : clear | |
39798 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
39799 | t end | |
39800 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
39801 | : end' >>confcache | |
39802 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
39803 | if test -w $cache_file; then | |
39804 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
39805 | cat confcache >$cache_file | |
39806 | else | |
39807 | echo "not updating unwritable cache $cache_file" | |
39808 | fi | |
39809 | fi | |
39810 | rm -f confcache | |
39811 | ||
39812 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
39813 | # Let make expand exec_prefix. | |
39814 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
39815 | ||
39816 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
39817 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
39818 | # trailing colons and then remove the whole line if VPATH becomes empty | |
39819 | # (actually we leave an empty line to preserve line numbers). | |
39820 | if test "x$srcdir" = x.; then | |
32ddf007 | 39821 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
39822 | s/:*\$(srcdir):*/:/; |
39823 | s/:*\${srcdir}:*/:/; | |
39824 | s/:*@srcdir@:*/:/; | |
32ddf007 | 39825 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 39826 | s/:*$//; |
32ddf007 | 39827 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
39828 | }' |
39829 | fi | |
39830 | ||
39831 | DEFS=-DHAVE_CONFIG_H | |
39832 | ||
39833 | ac_libobjs= | |
39834 | ac_ltlibobjs= | |
39835 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
39836 | # 1. Remove the extension, and $U if already installed. | |
39837 | ac_i=`echo "$ac_i" | | |
32ddf007 | 39838 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
39839 | # 2. Add them. |
39840 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
39841 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
39842 | done | |
39843 | LIBOBJS=$ac_libobjs | |
39844 | ||
39845 | LTLIBOBJS=$ac_ltlibobjs | |
39846 | ||
39847 | ||
39848 | ||
39849 | : ${CONFIG_STATUS=./config.status} | |
39850 | ac_clean_files_save=$ac_clean_files | |
39851 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
39852 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
39853 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
39854 | cat >$CONFIG_STATUS <<_ACEOF | |
39855 | #! $SHELL | |
39856 | # Generated by $as_me. | |
39857 | # Run this file to recreate the current configuration. | |
39858 | # Compiler output produced by configure, useful for debugging | |
39859 | # configure, is in config.log if it exists. | |
39860 | ||
39861 | debug=false | |
39862 | ac_cs_recheck=false | |
39863 | ac_cs_silent=false | |
39864 | SHELL=\${CONFIG_SHELL-$SHELL} | |
39865 | _ACEOF | |
39866 | ||
39867 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39868 | ## --------------------- ## | |
39869 | ## M4sh Initialization. ## | |
39870 | ## --------------------- ## | |
39871 | ||
39872 | # Be Bourne compatible | |
39873 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
39874 | emulate sh | |
39875 | NULLCMD=: | |
39876 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
39877 | # is contrary to our usage. Disable this feature. | |
39878 | alias -g '${1+"$@"}'='"$@"' | |
39879 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
39880 | set -o posix | |
39881 | fi | |
32ddf007 | 39882 | DUALCASE=1; export DUALCASE # for MKS sh |
e6cc62c6 VS |
39883 | |
39884 | # Support unset when possible. | |
32ddf007 | 39885 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
39886 | as_unset=unset |
39887 | else | |
39888 | as_unset=false | |
39889 | fi | |
39890 | ||
39891 | ||
39892 | # Work around bugs in pre-3.0 UWIN ksh. | |
39893 | $as_unset ENV MAIL MAILPATH | |
39894 | PS1='$ ' | |
39895 | PS2='> ' | |
39896 | PS4='+ ' | |
39897 | ||
39898 | # NLS nuisances. | |
39899 | for as_var in \ | |
39900 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
39901 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
39902 | LC_TELEPHONE LC_TIME | |
39903 | do | |
32ddf007 | 39904 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
39905 | eval $as_var=C; export $as_var |
39906 | else | |
39907 | $as_unset $as_var | |
39908 | fi | |
39909 | done | |
39910 | ||
39911 | # Required to use basename. | |
39912 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
39913 | as_expr=expr | |
39914 | else | |
39915 | as_expr=false | |
39916 | fi | |
39917 | ||
39918 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
39919 | as_basename=basename | |
39920 | else | |
39921 | as_basename=false | |
39922 | fi | |
39923 | ||
39924 | ||
39925 | # Name of the executable. | |
39926 | as_me=`$as_basename "$0" || | |
39927 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
39928 | X"$0" : 'X\(//\)$' \| \ | |
39929 | X"$0" : 'X\(/\)$' \| \ | |
39930 | . : '\(.\)' 2>/dev/null || | |
39931 | echo X/"$0" | | |
39932 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
39933 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
39934 | /^X\/\(\/\).*/{ s//\1/; q; } | |
39935 | s/.*/./; q'` | |
39936 | ||
39937 | ||
39938 | # PATH needs CR, and LINENO needs CR and PATH. | |
39939 | # Avoid depending upon Character Ranges. | |
39940 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
39941 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39942 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39943 | as_cr_digits='0123456789' | |
39944 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39945 | ||
39946 | # The user is always right. | |
39947 | if test "${PATH_SEPARATOR+set}" != set; then | |
39948 | echo "#! /bin/sh" >conf$$.sh | |
39949 | echo "exit 0" >>conf$$.sh | |
39950 | chmod +x conf$$.sh | |
39951 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
39952 | PATH_SEPARATOR=';' | |
39953 | else | |
39954 | PATH_SEPARATOR=: | |
39955 | fi | |
39956 | rm -f conf$$.sh | |
39957 | fi | |
39958 | ||
39959 | ||
39960 | as_lineno_1=$LINENO | |
39961 | as_lineno_2=$LINENO | |
39962 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
39963 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
39964 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
39965 | # Find who we are. Look in the path if we contain no path at all | |
39966 | # relative or not. | |
39967 | case $0 in | |
39968 | *[\\/]* ) as_myself=$0 ;; | |
39969 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39970 | for as_dir in $PATH | |
39971 | do | |
39972 | IFS=$as_save_IFS | |
39973 | test -z "$as_dir" && as_dir=. | |
39974 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
39975 | done | |
39976 | ||
39977 | ;; | |
39978 | esac | |
39979 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
39980 | # in which case we are not to be found in the path. | |
39981 | if test "x$as_myself" = x; then | |
39982 | as_myself=$0 | |
39983 | fi | |
39984 | if test ! -f "$as_myself"; then | |
39985 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
39986 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
39987 | { (exit 1); exit 1; }; } | |
39988 | fi | |
39989 | case $CONFIG_SHELL in | |
39990 | '') | |
39991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39992 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
39993 | do | |
39994 | IFS=$as_save_IFS | |
39995 | test -z "$as_dir" && as_dir=. | |
39996 | for as_base in sh bash ksh sh5; do | |
39997 | case $as_dir in | |
39998 | /*) | |
39999 | if ("$as_dir/$as_base" -c ' | |
40000 | as_lineno_1=$LINENO | |
40001 | as_lineno_2=$LINENO | |
40002 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
40003 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
40004 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
40005 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
40006 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
40007 | CONFIG_SHELL=$as_dir/$as_base | |
40008 | export CONFIG_SHELL | |
40009 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
40010 | fi;; | |
40011 | esac | |
40012 | done | |
40013 | done | |
40014 | ;; | |
40015 | esac | |
40016 | ||
40017 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
40018 | # uniformly replaced by the line number. The first 'sed' inserts a | |
40019 | # line-number line before each line; the second 'sed' does the real | |
40020 | # work. The second script uses 'N' to pair each line-number line | |
40021 | # with the numbered line, and appends trailing '-' during | |
40022 | # substitution so that $LINENO is not a special case at line end. | |
40023 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
40024 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
40025 | sed '=' <$as_myself | | |
40026 | sed ' | |
40027 | N | |
40028 | s,$,-, | |
40029 | : loop | |
40030 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
40031 | t loop | |
40032 | s,-$,, | |
40033 | s,^['$as_cr_digits']*\n,, | |
40034 | ' >$as_me.lineno && | |
40035 | chmod +x $as_me.lineno || | |
40036 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
40037 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
40038 | { (exit 1); exit 1; }; } | |
40039 | ||
40040 | # Don't try to exec as it changes $[0], causing all sort of problems | |
40041 | # (the dirname of $[0] is not the place where we might find the | |
40042 | # original and so on. Autoconf is especially sensible to this). | |
40043 | . ./$as_me.lineno | |
40044 | # Exit status is that of the last command. | |
40045 | exit | |
40046 | } | |
40047 | ||
40048 | ||
40049 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
40050 | *c*,-n*) ECHO_N= ECHO_C=' | |
40051 | ' ECHO_T=' ' ;; | |
40052 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
40053 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
40054 | esac | |
40055 | ||
40056 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
40057 | as_expr=expr | |
40058 | else | |
40059 | as_expr=false | |
40060 | fi | |
40061 | ||
40062 | rm -f conf$$ conf$$.exe conf$$.file | |
40063 | echo >conf$$.file | |
40064 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
40065 | # We could just check for DJGPP; but this test a) works b) is more generic | |
40066 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
40067 | if test -f conf$$.exe; then | |
40068 | # Don't use ln at all; we don't have any links | |
40069 | as_ln_s='cp -p' | |
40070 | else | |
40071 | as_ln_s='ln -s' | |
40072 | fi | |
40073 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
40074 | as_ln_s=ln | |
40075 | else | |
40076 | as_ln_s='cp -p' | |
40077 | fi | |
40078 | rm -f conf$$ conf$$.exe conf$$.file | |
40079 | ||
40080 | if mkdir -p . 2>/dev/null; then | |
40081 | as_mkdir_p=: | |
40082 | else | |
32ddf007 | 40083 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
40084 | as_mkdir_p=false |
40085 | fi | |
40086 | ||
40087 | as_executable_p="test -f" | |
40088 | ||
40089 | # Sed expression to map a string onto a valid CPP name. | |
32ddf007 | 40090 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40091 | |
40092 | # Sed expression to map a string onto a valid variable name. | |
32ddf007 | 40093 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40094 | |
40095 | ||
40096 | # IFS | |
40097 | # We need space, tab and new line, in precisely that order. | |
40098 | as_nl=' | |
40099 | ' | |
40100 | IFS=" $as_nl" | |
40101 | ||
40102 | # CDPATH. | |
40103 | $as_unset CDPATH | |
40104 | ||
40105 | exec 6>&1 | |
40106 | ||
40107 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
40108 | # report actual input values of CONFIG_FILES etc. instead of their | |
40109 | # values after options handling. Logging --version etc. is OK. | |
40110 | exec 5>>config.log | |
40111 | { | |
40112 | echo | |
40113 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
40114 | ## Running $as_me. ## | |
40115 | _ASBOX | |
40116 | } >&5 | |
40117 | cat >&5 <<_CSEOF | |
40118 | ||
e46d2a18 | 40119 | This file was extended by wxWindows $as_me 2.5.1, which was |
32ddf007 | 40120 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
40121 | |
40122 | CONFIG_FILES = $CONFIG_FILES | |
40123 | CONFIG_HEADERS = $CONFIG_HEADERS | |
40124 | CONFIG_LINKS = $CONFIG_LINKS | |
40125 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
40126 | $ $0 $@ | |
40127 | ||
40128 | _CSEOF | |
40129 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
40130 | echo >&5 | |
40131 | _ACEOF | |
40132 | ||
40133 | # Files that config.status was made for. | |
40134 | if test -n "$ac_config_files"; then | |
40135 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
40136 | fi | |
40137 | ||
40138 | if test -n "$ac_config_headers"; then | |
40139 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
40140 | fi | |
40141 | ||
40142 | if test -n "$ac_config_links"; then | |
40143 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
40144 | fi | |
40145 | ||
40146 | if test -n "$ac_config_commands"; then | |
40147 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
40148 | fi | |
40149 | ||
40150 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40151 | ||
40152 | ac_cs_usage="\ | |
40153 | \`$as_me' instantiates files from templates according to the | |
40154 | current configuration. | |
40155 | ||
40156 | Usage: $0 [OPTIONS] [FILE]... | |
40157 | ||
40158 | -h, --help print this help, then exit | |
40159 | -V, --version print version number, then exit | |
40160 | -q, --quiet do not print progress messages | |
40161 | -d, --debug don't remove temporary files | |
40162 | --recheck update $as_me by reconfiguring in the same conditions | |
40163 | --file=FILE[:TEMPLATE] | |
32ddf007 | 40164 | instantiate the configuration file FILE |
e6cc62c6 | 40165 | --header=FILE[:TEMPLATE] |
32ddf007 | 40166 | instantiate the configuration header FILE |
e6cc62c6 VS |
40167 | |
40168 | Configuration files: | |
40169 | $config_files | |
40170 | ||
40171 | Configuration headers: | |
40172 | $config_headers | |
40173 | ||
40174 | Configuration commands: | |
40175 | $config_commands | |
40176 | ||
40177 | Report bugs to <bug-autoconf@gnu.org>." | |
40178 | _ACEOF | |
40179 | ||
40180 | cat >>$CONFIG_STATUS <<_ACEOF | |
40181 | ac_cs_version="\\ | |
e46d2a18 | 40182 | wxWindows config.status 2.5.1 |
32ddf007 | 40183 | configured by $0, generated by GNU Autoconf 2.59, |
e6cc62c6 VS |
40184 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
40185 | ||
32ddf007 | 40186 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
40187 | This config.status script is free software; the Free Software Foundation |
40188 | gives unlimited permission to copy, distribute and modify it." | |
40189 | srcdir=$srcdir | |
40190 | INSTALL="$INSTALL" | |
40191 | _ACEOF | |
40192 | ||
40193 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40194 | # If no file are specified by the user, then we need to provide default | |
40195 | # value. By we need to know if files were specified by the user. | |
40196 | ac_need_defaults=: | |
40197 | while test $# != 0 | |
40198 | do | |
40199 | case $1 in | |
40200 | --*=*) | |
40201 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
40202 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
40203 | ac_shift=: | |
40204 | ;; | |
40205 | -*) | |
40206 | ac_option=$1 | |
40207 | ac_optarg=$2 | |
40208 | ac_shift=shift | |
40209 | ;; | |
40210 | *) # This is not an option, so the user has probably given explicit | |
40211 | # arguments. | |
40212 | ac_option=$1 | |
40213 | ac_need_defaults=false;; | |
40214 | esac | |
40215 | ||
40216 | case $ac_option in | |
40217 | # Handling of the options. | |
40218 | _ACEOF | |
40219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40220 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
40221 | ac_cs_recheck=: ;; | |
40222 | --version | --vers* | -V ) | |
40223 | echo "$ac_cs_version"; exit 0 ;; | |
40224 | --he | --h) | |
40225 | # Conflict between --help and --header | |
40226 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
40227 | Try \`$0 --help' for more information." >&5 | |
40228 | echo "$as_me: error: ambiguous option: $1 | |
40229 | Try \`$0 --help' for more information." >&2;} | |
40230 | { (exit 1); exit 1; }; };; | |
40231 | --help | --hel | -h ) | |
40232 | echo "$ac_cs_usage"; exit 0 ;; | |
40233 | --debug | --d* | -d ) | |
40234 | debug=: ;; | |
40235 | --file | --fil | --fi | --f ) | |
40236 | $ac_shift | |
40237 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
40238 | ac_need_defaults=false;; | |
40239 | --header | --heade | --head | --hea ) | |
40240 | $ac_shift | |
40241 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
40242 | ac_need_defaults=false;; | |
40243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
40244 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
40245 | ac_cs_silent=: ;; | |
40246 | ||
40247 | # This is an error. | |
40248 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
40249 | Try \`$0 --help' for more information." >&5 | |
40250 | echo "$as_me: error: unrecognized option: $1 | |
40251 | Try \`$0 --help' for more information." >&2;} | |
40252 | { (exit 1); exit 1; }; } ;; | |
40253 | ||
40254 | *) ac_config_targets="$ac_config_targets $1" ;; | |
40255 | ||
40256 | esac | |
40257 | shift | |
40258 | done | |
40259 | ||
40260 | ac_configure_extra_args= | |
40261 | ||
40262 | if $ac_cs_silent; then | |
40263 | exec 6>/dev/null | |
40264 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
40265 | fi |
40266 | ||
e6cc62c6 VS |
40267 | _ACEOF |
40268 | cat >>$CONFIG_STATUS <<_ACEOF | |
40269 | if \$ac_cs_recheck; then | |
40270 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
40271 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
40272 | fi |
40273 | ||
e6cc62c6 | 40274 | _ACEOF |
fe0895cf | 40275 | |
e6cc62c6 | 40276 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 40277 | # |
e6cc62c6 | 40278 | # INIT-COMMANDS section. |
10f2d63a | 40279 | # |
10f2d63a | 40280 | |
a0b9e27f | 40281 | |
e6cc62c6 VS |
40282 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
40283 | LN_S="${LN_S}" | |
10f2d63a | 40284 | |
10f2d63a | 40285 | |
10f2d63a | 40286 | |
e6cc62c6 | 40287 | _ACEOF |
8284b0c5 | 40288 | |
52127426 | 40289 | |
247f5006 | 40290 | |
e6cc62c6 VS |
40291 | cat >>$CONFIG_STATUS <<\_ACEOF |
40292 | for ac_config_target in $ac_config_targets | |
247f5006 | 40293 | do |
e6cc62c6 VS |
40294 | case "$ac_config_target" in |
40295 | # Handling of arguments. | |
81345eef VZ |
40296 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
40297 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
40298 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 40299 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
40300 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
40301 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
40302 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
40303 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
40304 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
40305 | esac |
40306 | done | |
40307 | ||
e6cc62c6 VS |
40308 | # If the user did not use the arguments to specify the items to instantiate, |
40309 | # then the envvar interface is used. Set only those that are not. | |
40310 | # We use the long form for the default assignment because of an extremely | |
40311 | # bizarre bug on SunOS 4.1.3. | |
40312 | if $ac_need_defaults; then | |
40313 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
40314 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
40315 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
40316 | fi | |
40317 | ||
40318 | # Have a temporary directory for convenience. Make it in the build tree | |
40319 | # simply because there is no reason to put it here, and in addition, | |
40320 | # creating and moving files from /tmp can sometimes cause problems. | |
40321 | # Create a temporary directory, and hook for its removal unless debugging. | |
40322 | $debug || | |
40323 | { | |
40324 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
40325 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
40326 | } | |
247f5006 | 40327 | |
e6cc62c6 | 40328 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 40329 | |
e6cc62c6 VS |
40330 | { |
40331 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
40332 | test -n "$tmp" && test -d "$tmp" | |
40333 | } || | |
40334 | { | |
40335 | tmp=./confstat$$-$RANDOM | |
40336 | (umask 077 && mkdir $tmp) | |
40337 | } || | |
40338 | { | |
40339 | echo "$me: cannot create a temporary directory in ." >&2 | |
40340 | { (exit 1); exit 1; } | |
40341 | } | |
40342 | ||
40343 | _ACEOF | |
40344 | ||
40345 | cat >>$CONFIG_STATUS <<_ACEOF | |
40346 | ||
40347 | # | |
40348 | # CONFIG_FILES section. | |
40349 | # | |
247f5006 | 40350 | |
e6cc62c6 VS |
40351 | # No need to generate the scripts if there are no CONFIG_FILES. |
40352 | # This happens for instance when ./config.status config.h | |
40353 | if test -n "\$CONFIG_FILES"; then | |
40354 | # Protect against being on the right side of a sed subst in config.status. | |
40355 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
40356 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
40357 | s,@SHELL@,$SHELL,;t t | |
40358 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
40359 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
40360 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
40361 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
40362 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
40363 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40364 | s,@exec_prefix@,$exec_prefix,;t t | |
40365 | s,@prefix@,$prefix,;t t | |
40366 | s,@program_transform_name@,$program_transform_name,;t t | |
40367 | s,@bindir@,$bindir,;t t | |
40368 | s,@sbindir@,$sbindir,;t t | |
40369 | s,@libexecdir@,$libexecdir,;t t | |
40370 | s,@datadir@,$datadir,;t t | |
40371 | s,@sysconfdir@,$sysconfdir,;t t | |
40372 | s,@sharedstatedir@,$sharedstatedir,;t t | |
40373 | s,@localstatedir@,$localstatedir,;t t | |
40374 | s,@libdir@,$libdir,;t t | |
40375 | s,@includedir@,$includedir,;t t | |
40376 | s,@oldincludedir@,$oldincludedir,;t t | |
40377 | s,@infodir@,$infodir,;t t | |
40378 | s,@mandir@,$mandir,;t t | |
40379 | s,@build_alias@,$build_alias,;t t | |
40380 | s,@host_alias@,$host_alias,;t t | |
40381 | s,@target_alias@,$target_alias,;t t | |
40382 | s,@DEFS@,$DEFS,;t t | |
40383 | s,@ECHO_C@,$ECHO_C,;t t | |
40384 | s,@ECHO_N@,$ECHO_N,;t t | |
40385 | s,@ECHO_T@,$ECHO_T,;t t | |
40386 | s,@LIBS@,$LIBS,;t t | |
40387 | s,@build@,$build,;t t | |
40388 | s,@build_cpu@,$build_cpu,;t t | |
40389 | s,@build_vendor@,$build_vendor,;t t | |
40390 | s,@build_os@,$build_os,;t t | |
40391 | s,@host@,$host,;t t | |
40392 | s,@host_cpu@,$host_cpu,;t t | |
40393 | s,@host_vendor@,$host_vendor,;t t | |
40394 | s,@host_os@,$host_os,;t t | |
40395 | s,@target@,$target,;t t | |
40396 | s,@target_cpu@,$target_cpu,;t t | |
40397 | s,@target_vendor@,$target_vendor,;t t | |
40398 | s,@target_os@,$target_os,;t t | |
40399 | s,@CC@,$CC,;t t | |
40400 | s,@CFLAGS@,$CFLAGS,;t t | |
40401 | s,@LDFLAGS@,$LDFLAGS,;t t | |
40402 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
40403 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
40404 | s,@EXEEXT@,$EXEEXT,;t t | |
40405 | s,@OBJEXT@,$OBJEXT,;t t | |
40406 | s,@CPP@,$CPP,;t t | |
40407 | s,@EGREP@,$EGREP,;t t | |
40408 | s,@CXX@,$CXX,;t t | |
40409 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
40410 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
40411 | s,@RANLIB@,$RANLIB,;t t | |
40412 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
40413 | s,@AR@,$AR,;t t | |
40414 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
40415 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
40416 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
40417 | s,@STRIP@,$STRIP,;t t | |
40418 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
40419 | s,@LN_S@,$LN_S,;t t |
40420 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 40421 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
40422 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
40423 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
40424 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
40425 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
40426 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
40427 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
40428 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
40429 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
40430 | s,@X_LIBS@,$X_LIBS,;t t | |
40431 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
40432 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
40433 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
40434 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
40435 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
40436 | s,@RESCOMP@,$RESCOMP,;t t |
40437 | s,@DEREZ@,$DEREZ,;t t | |
40438 | s,@SETFILE@,$SETFILE,;t t | |
40439 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 | 40440 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
f93ca9fd VS |
40441 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
40442 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
40443 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
edd891e2 VS |
40444 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
40445 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
40446 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
40447 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 40448 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
40449 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
40450 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
40451 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
40452 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
40453 | s,@VENDOR@,$VENDOR,;t t |
40454 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
40455 | s,@WXUNIV@,$WXUNIV,;t t |
40456 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
f93ca9fd | 40457 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t |
e6cc62c6 | 40458 | s,@EXTRALIBS@,$EXTRALIBS,;t t |
672abd7a | 40459 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 40460 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 40461 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 40462 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 40463 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
f93ca9fd VS |
40464 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t |
40465 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
e6cc62c6 VS |
40466 | s,@UNICODE@,$UNICODE,;t t |
40467 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
40468 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
40469 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
40470 | s,@SHARED@,$SHARED,;t t |
40471 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
40472 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
40473 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 40474 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 40475 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
40476 | s,@SET_MAKE@,$SET_MAKE,;t t |
40477 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
40478 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
40479 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
40480 | s,@NM@,$NM,;t t | |
40481 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 40482 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 40483 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
40484 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
40485 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
40486 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
40487 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
40488 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 40489 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 40490 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 40491 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 40492 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 40493 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 40494 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 40495 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
40496 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
40497 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
40498 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
40499 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
40500 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
40501 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
40502 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
40503 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
40504 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
40505 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
40506 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 40507 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 40508 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 40509 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
40510 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
40511 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
f93ca9fd VS |
40512 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t |
40513 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
d78c94f2 | 40514 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a | 40515 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
f93ca9fd VS |
40516 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t |
40517 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
6c67131a VS |
40518 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t |
40519 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
40520 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 40521 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 40522 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 40523 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 40524 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
40525 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
40526 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 40527 | 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 |
250700e4 | 40528 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 40529 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 40530 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 40531 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 40532 | 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 |
250700e4 | 40533 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 40534 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
f95e4495 | 40535 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
3af038c0 | 40536 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
40537 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
40538 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
40539 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
40540 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 40541 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 40542 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
40543 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
40544 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
40545 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 40546 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 40547 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 40548 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 40549 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 40550 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 40551 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 40552 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
f93ca9fd | 40553 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t |
3af038c0 VS |
40554 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
40555 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 40556 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 40557 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
40558 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40559 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40560 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
40561 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
40562 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
40563 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
40564 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 40565 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 40566 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
40567 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
40568 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
40569 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
40570 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 40571 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 40572 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 40573 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
40574 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
40575 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
40576 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
40577 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
40578 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
40579 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 40580 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
40581 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
40582 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
40583 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
40584 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
40585 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
40586 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
40587 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 40588 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
40589 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
40590 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
40591 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
40592 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
40593 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
40594 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
40595 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40596 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40597 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 40598 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
f93ca9fd | 40599 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
6f628073 VS |
40600 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
40601 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
40602 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
40603 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
f93ca9fd VS |
40604 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
40605 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
3af038c0 | 40606 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 40607 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
40608 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
40609 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
40610 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
40611 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
40612 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
40613 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
40614 | s,@PATH_IFS@,$PATH_IFS,;t t |
40615 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
40616 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
40617 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
40618 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
40619 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
40620 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
40621 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
40622 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
40623 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
40624 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
40625 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
40626 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
40627 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
40628 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
40629 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
40630 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
40631 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
40632 | s,@WX_ALL@,$WX_ALL,;t t | |
40633 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
40634 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
40635 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
40636 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
40637 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
40638 | s,@USE_GUI@,$USE_GUI,;t t | |
40639 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
40640 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
40641 | s,@TOOLKIT@,$TOOLKIT,;t t | |
40642 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
40643 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
40644 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
40645 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
40646 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
40647 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
40648 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 40649 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
40650 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
40651 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
40652 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
40653 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
40654 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
40655 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 40656 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 40657 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
40658 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
40659 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
40660 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
40661 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
40662 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
40663 | s,@GUIDIST@,$GUIDIST,;t t | |
40664 | s,@PORT_FILES@,$PORT_FILES,;t t | |
40665 | s,@DISTDIR@,$DISTDIR,;t t | |
40666 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
40667 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
40668 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
40669 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
40670 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
40671 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
40672 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
40673 | s,@RESFLAGS@,$RESFLAGS,;t t | |
40674 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
40675 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
40676 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
40677 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
40678 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
40679 | s,@MACSETFILE@,$MACSETFILE,;t t | |
40680 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
40681 | s,@GCC@,$GCC,;t t | |
243f8ae5 | 40682 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t |
e6cc62c6 VS |
40683 | s,@DLLTOOL@,$DLLTOOL,;t t |
40684 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
40685 | s,@LD@,$LD,;t t |
40686 | s,@MAKEINFO@,$MAKEINFO,;t t | |
40687 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
40688 | s,@LIBOBJS@,$LIBOBJS,;t t |
40689 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
40690 | CEOF |
40691 | ||
e6cc62c6 VS |
40692 | _ACEOF |
40693 | ||
40694 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40695 | # Split the substitutions into bite-sized pieces for seds with | |
40696 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
40697 | ac_max_sed_lines=48 | |
40698 | ac_sed_frag=1 # Number of current file. | |
40699 | ac_beg=1 # First line for current file. | |
40700 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
40701 | ac_more_lines=: | |
40702 | ac_sed_cmds= | |
40703 | while $ac_more_lines; do | |
40704 | if test $ac_beg -gt 1; then | |
40705 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 40706 | else |
e6cc62c6 VS |
40707 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
40708 | fi | |
40709 | if test ! -s $tmp/subs.frag; then | |
40710 | ac_more_lines=false | |
40711 | else | |
40712 | # The purpose of the label and of the branching condition is to | |
40713 | # speed up the sed processing (if there are no `@' at all, there | |
40714 | # is no need to browse any of the substitutions). | |
40715 | # These are the two extra sed commands mentioned above. | |
40716 | (echo ':t | |
40717 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
40718 | if test -z "$ac_sed_cmds"; then | |
32ddf007 | 40719 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 40720 | else |
32ddf007 | 40721 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
40722 | fi |
40723 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
40724 | ac_beg=$ac_end | |
40725 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 40726 | fi |
e6cc62c6 VS |
40727 | done |
40728 | if test -z "$ac_sed_cmds"; then | |
40729 | ac_sed_cmds=cat | |
10f2d63a | 40730 | fi |
e6cc62c6 | 40731 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 40732 | |
e6cc62c6 VS |
40733 | _ACEOF |
40734 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40735 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 40736 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
40737 | case $ac_file in |
40738 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
40739 | cat >$tmp/stdin |
40740 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40741 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 40742 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 40743 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 40744 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 40745 | esac |
247f5006 | 40746 | |
e6cc62c6 VS |
40747 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
40748 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
40749 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
40750 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
40751 | X"$ac_file" : 'X\(//\)$' \| \ | |
40752 | X"$ac_file" : 'X\(/\)' \| \ | |
40753 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40754 | echo X"$ac_file" | |
40755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40756 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40757 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40758 | /^X\(\/\).*/{ s//\1/; q; } | |
40759 | s/.*/./; q'` | |
40760 | { if $as_mkdir_p; then | |
40761 | mkdir -p "$ac_dir" | |
a0b9e27f | 40762 | else |
e6cc62c6 VS |
40763 | as_dir="$ac_dir" |
40764 | as_dirs= | |
40765 | while test ! -d "$as_dir"; do | |
40766 | as_dirs="$as_dir $as_dirs" | |
40767 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40768 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
40769 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40770 | X"$as_dir" : 'X\(//\)$' \| \ | |
40771 | X"$as_dir" : 'X\(/\)' \| \ | |
40772 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40773 | echo X"$as_dir" | |
40774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40775 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40776 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40777 | /^X\(\/\).*/{ s//\1/; q; } | |
40778 | s/.*/./; q'` | |
40779 | done | |
40780 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40781 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40782 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40783 | { (exit 1); exit 1; }; }; } | |
40784 | ||
40785 | ac_builddir=. | |
40786 | ||
40787 | if test "$ac_dir" != .; then | |
40788 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40789 | # A "../" for each directory in $ac_dir_suffix. | |
40790 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40791 | else | |
40792 | ac_dir_suffix= ac_top_builddir= | |
40793 | fi | |
247f5006 | 40794 | |
e6cc62c6 VS |
40795 | case $srcdir in |
40796 | .) # No --srcdir option. We are building in place. | |
40797 | ac_srcdir=. | |
40798 | if test -z "$ac_top_builddir"; then | |
40799 | ac_top_srcdir=. | |
40800 | else | |
40801 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40802 | fi ;; | |
40803 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40804 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40805 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 40806 | *) # Relative path. |
e6cc62c6 VS |
40807 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
40808 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40809 | esac | |
32ddf007 VS |
40810 | |
40811 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
40812 | # the directories may not exist. | |
40813 | case `pwd` in | |
40814 | .) ac_abs_builddir="$ac_dir";; | |
40815 | *) | |
40816 | case "$ac_dir" in | |
40817 | .) ac_abs_builddir=`pwd`;; | |
40818 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
40819 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
40820 | esac;; | |
40821 | esac | |
40822 | case $ac_abs_builddir in | |
40823 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40824 | *) | |
40825 | case ${ac_top_builddir}. in | |
40826 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
40827 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40828 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
40829 | esac;; | |
40830 | esac | |
40831 | case $ac_abs_builddir in | |
40832 | .) ac_abs_srcdir=$ac_srcdir;; | |
40833 | *) | |
40834 | case $ac_srcdir in | |
40835 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
40836 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40837 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
40838 | esac;; | |
40839 | esac | |
40840 | case $ac_abs_builddir in | |
40841 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40842 | *) | |
40843 | case $ac_top_srcdir in | |
40844 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
40845 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40846 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
40847 | esac;; | |
40848 | esac | |
10f2d63a | 40849 | |
247f5006 | 40850 | |
e6cc62c6 VS |
40851 | case $INSTALL in |
40852 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
40853 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 40854 | esac |
247f5006 | 40855 | |
e6cc62c6 VS |
40856 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
40857 | # use $as_me), people would be surprised to read: | |
40858 | # /* config.h. Generated by config.status. */ | |
40859 | if test x"$ac_file" = x-; then | |
40860 | configure_input= | |
40861 | else | |
40862 | configure_input="$ac_file. " | |
40863 | fi | |
40864 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
32ddf007 | 40865 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
40866 | |
40867 | # First look for the input files in the build tree, otherwise in the | |
40868 | # src tree. | |
40869 | ac_file_inputs=`IFS=: | |
40870 | for f in $ac_file_in; do | |
40871 | case $f in | |
40872 | -) echo $tmp/stdin ;; | |
40873 | [\\/$]*) | |
32ddf007 VS |
40874 | # Absolute (can't be DOS-style, as IFS=:) |
40875 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
40876 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40877 | { (exit 1); exit 1; }; } | |
32ddf007 | 40878 | echo "$f";; |
e6cc62c6 | 40879 | *) # Relative |
32ddf007 VS |
40880 | if test -f "$f"; then |
40881 | # Build tree | |
40882 | echo "$f" | |
40883 | elif test -f "$srcdir/$f"; then | |
40884 | # Source tree | |
40885 | echo "$srcdir/$f" | |
40886 | else | |
40887 | # /dev/null tree | |
40888 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
40889 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40890 | { (exit 1); exit 1; }; } | |
32ddf007 | 40891 | fi;; |
e6cc62c6 VS |
40892 | esac |
40893 | done` || { (exit 1); exit 1; } | |
e1293dcf RL |
40894 | |
40895 | if test x"$ac_file" != x-; then | |
40896 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
40897 | echo "$as_me: creating $ac_file" >&6;} | |
40898 | rm -f "$ac_file" | |
40899 | fi | |
e6cc62c6 VS |
40900 | _ACEOF |
40901 | cat >>$CONFIG_STATUS <<_ACEOF | |
40902 | sed "$ac_vpsub | |
40903 | $extrasub | |
40904 | _ACEOF | |
40905 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40906 | :t | |
40907 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
40908 | s,@configure_input@,$configure_input,;t t | |
40909 | s,@srcdir@,$ac_srcdir,;t t | |
40910 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
40911 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
40912 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
40913 | s,@builddir@,$ac_builddir,;t t | |
40914 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
40915 | s,@top_builddir@,$ac_top_builddir,;t t | |
40916 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
40917 | s,@INSTALL@,$ac_INSTALL,;t t | |
40918 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
40919 | rm -f $tmp/stdin | |
40920 | if test x"$ac_file" != x-; then | |
40921 | mv $tmp/out $ac_file | |
40922 | else | |
40923 | cat $tmp/out | |
40924 | rm -f $tmp/out | |
40925 | fi | |
40926 | ||
40927 | done | |
40928 | _ACEOF | |
40929 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40930 | ||
40931 | # | |
40932 | # CONFIG_HEADER section. | |
40933 | # | |
10f2d63a VZ |
40934 | |
40935 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
40936 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
40937 | # | |
40938 | # ac_d sets the value in "#define NAME VALUE" lines. | |
32ddf007 VS |
40939 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
40940 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
40941 | ac_dC=' ' |
40942 | ac_dD=',;t' | |
40943 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
32ddf007 | 40944 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 40945 | ac_uB='$,\1#\2define\3' |
10f2d63a | 40946 | ac_uC=' ' |
e6cc62c6 VS |
40947 | ac_uD=',;t' |
40948 | ||
40949 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 40950 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
40951 | case $ac_file in |
40952 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
40953 | cat >$tmp/stdin |
40954 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40955 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 40956 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 40957 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 40958 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
40959 | esac |
40960 | ||
e6cc62c6 VS |
40961 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
40962 | echo "$as_me: creating $ac_file" >&6;} | |
40963 | ||
40964 | # First look for the input files in the build tree, otherwise in the | |
40965 | # src tree. | |
40966 | ac_file_inputs=`IFS=: | |
40967 | for f in $ac_file_in; do | |
40968 | case $f in | |
40969 | -) echo $tmp/stdin ;; | |
40970 | [\\/$]*) | |
32ddf007 VS |
40971 | # Absolute (can't be DOS-style, as IFS=:) |
40972 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
40973 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40974 | { (exit 1); exit 1; }; } | |
32ddf007 VS |
40975 | # Do quote $f, to prevent DOS paths from being IFS'd. |
40976 | echo "$f";; | |
e6cc62c6 | 40977 | *) # Relative |
32ddf007 VS |
40978 | if test -f "$f"; then |
40979 | # Build tree | |
40980 | echo "$f" | |
40981 | elif test -f "$srcdir/$f"; then | |
40982 | # Source tree | |
40983 | echo "$srcdir/$f" | |
40984 | else | |
40985 | # /dev/null tree | |
40986 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
40987 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40988 | { (exit 1); exit 1; }; } | |
32ddf007 | 40989 | fi;; |
e6cc62c6 VS |
40990 | esac |
40991 | done` || { (exit 1); exit 1; } | |
40992 | # Remove the trailing spaces. | |
32ddf007 | 40993 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
40994 | |
40995 | _ACEOF | |
40996 | ||
40997 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
40998 | # `conftest.undefs', that substitutes the proper values into | |
40999 | # config.h.in to produce config.h. The first handles `#define' | |
41000 | # templates, and the second `#undef' templates. | |
41001 | # And first: Protect against being on the right side of a sed subst in | |
41002 | # config.status. Protect against being in an unquoted here document | |
41003 | # in config.status. | |
41004 | rm -f conftest.defines conftest.undefs | |
41005 | # Using a here document instead of a string reduces the quoting nightmare. | |
41006 | # Putting comments in sed scripts is not portable. | |
41007 | # | |
41008 | # `end' is used to avoid that the second main sed command (meant for | |
41009 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
41010 | # See the Autoconf documentation for `clear'. | |
41011 | cat >confdef2sed.sed <<\_ACEOF | |
41012 | s/[\\&,]/\\&/g | |
41013 | s,[\\$`],\\&,g | |
41014 | t clear | |
41015 | : clear | |
32ddf007 | 41016 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 41017 | t end |
32ddf007 | 41018 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
41019 | : end |
41020 | _ACEOF | |
41021 | # If some macros were called several times there might be several times | |
41022 | # the same #defines, which is useless. Nevertheless, we may not want to | |
41023 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
41024 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
41025 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
41026 | rm -f confdef2sed.sed | |
10f2d63a VZ |
41027 | |
41028 | # This sed command replaces #undef with comments. This is necessary, for | |
41029 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
41030 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 41031 | cat >>conftest.undefs <<\_ACEOF |
32ddf007 | 41032 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
41033 | _ACEOF |
41034 | ||
41035 | # Break up conftest.defines because some shells have a limit on the size | |
41036 | # of here documents, and old seds have small limits too (100 cmds). | |
41037 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
32ddf007 | 41038 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
41039 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
41040 | echo ' :' >>$CONFIG_STATUS | |
41041 | rm -f conftest.tail | |
41042 | while grep . conftest.defines >/dev/null | |
41043 | do | |
41044 | # Write a limited-size here document to $tmp/defines.sed. | |
41045 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
41046 | # Speed up: don't consider the non `#define' lines. | |
32ddf007 | 41047 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41048 | # Work around the forget-to-reset-the-flag bug. |
41049 | echo 't clr' >>$CONFIG_STATUS | |
41050 | echo ': clr' >>$CONFIG_STATUS | |
41051 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
41052 | echo 'CEOF | |
41053 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
41054 | rm -f $tmp/in | |
41055 | mv $tmp/out $tmp/in | |
41056 | ' >>$CONFIG_STATUS | |
41057 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
41058 | rm -f conftest.defines | |
41059 | mv conftest.tail conftest.defines | |
41060 | done | |
41061 | rm -f conftest.defines | |
41062 | echo ' fi # grep' >>$CONFIG_STATUS | |
41063 | echo >>$CONFIG_STATUS | |
10f2d63a | 41064 | |
e6cc62c6 VS |
41065 | # Break up conftest.undefs because some shells have a limit on the size |
41066 | # of here documents, and old seds have small limits too (100 cmds). | |
41067 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 41068 | rm -f conftest.tail |
e6cc62c6 | 41069 | while grep . conftest.undefs >/dev/null |
10f2d63a | 41070 | do |
e6cc62c6 VS |
41071 | # Write a limited-size here document to $tmp/undefs.sed. |
41072 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
41073 | # Speed up: don't consider the non `#undef' | |
32ddf007 | 41074 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41075 | # Work around the forget-to-reset-the-flag bug. |
41076 | echo 't clr' >>$CONFIG_STATUS | |
41077 | echo ': clr' >>$CONFIG_STATUS | |
41078 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 41079 | echo 'CEOF |
e6cc62c6 VS |
41080 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
41081 | rm -f $tmp/in | |
41082 | mv $tmp/out $tmp/in | |
41083 | ' >>$CONFIG_STATUS | |
41084 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
41085 | rm -f conftest.undefs | |
41086 | mv conftest.tail conftest.undefs | |
10f2d63a | 41087 | done |
e6cc62c6 VS |
41088 | rm -f conftest.undefs |
41089 | ||
41090 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41091 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
41092 | # use $as_me), people would be surprised to read: | |
41093 | # /* config.h. Generated by config.status. */ | |
41094 | if test x"$ac_file" = x-; then | |
41095 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 41096 | else |
e6cc62c6 | 41097 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 41098 | fi |
e6cc62c6 VS |
41099 | cat $tmp/in >>$tmp/config.h |
41100 | rm -f $tmp/in | |
41101 | if test x"$ac_file" != x-; then | |
41102 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
41103 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
41104 | echo "$as_me: $ac_file is unchanged" >&6;} | |
41105 | else | |
41106 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
41107 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41108 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
41109 | X"$ac_file" : 'X\(//\)$' \| \ | |
41110 | X"$ac_file" : 'X\(/\)' \| \ | |
41111 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41112 | echo X"$ac_file" | |
41113 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41114 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41115 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41116 | /^X\(\/\).*/{ s//\1/; q; } | |
41117 | s/.*/./; q'` | |
41118 | { if $as_mkdir_p; then | |
41119 | mkdir -p "$ac_dir" | |
41120 | else | |
41121 | as_dir="$ac_dir" | |
41122 | as_dirs= | |
41123 | while test ! -d "$as_dir"; do | |
41124 | as_dirs="$as_dir $as_dirs" | |
41125 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41126 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41127 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41128 | X"$as_dir" : 'X\(//\)$' \| \ | |
41129 | X"$as_dir" : 'X\(/\)' \| \ | |
41130 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41131 | echo X"$as_dir" | |
41132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41133 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41134 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41135 | /^X\(\/\).*/{ s//\1/; q; } | |
41136 | s/.*/./; q'` | |
41137 | done | |
41138 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41139 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41140 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41141 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 41142 | |
e6cc62c6 VS |
41143 | rm -f $ac_file |
41144 | mv $tmp/config.h $ac_file | |
41145 | fi | |
41146 | else | |
41147 | cat $tmp/config.h | |
41148 | rm -f $tmp/config.h | |
41149 | fi | |
41150 | done | |
41151 | _ACEOF | |
41152 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 41153 | |
e6cc62c6 VS |
41154 | # |
41155 | # CONFIG_COMMANDS section. | |
41156 | # | |
41157 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
41158 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
41159 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41160 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
41161 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41162 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
41163 | X"$ac_dest" : 'X\(//\)$' \| \ | |
41164 | X"$ac_dest" : 'X\(/\)' \| \ | |
41165 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41166 | echo X"$ac_dest" | |
41167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41168 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41169 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41170 | /^X\(\/\).*/{ s//\1/; q; } | |
41171 | s/.*/./; q'` | |
32ddf007 VS |
41172 | { if $as_mkdir_p; then |
41173 | mkdir -p "$ac_dir" | |
41174 | else | |
41175 | as_dir="$ac_dir" | |
41176 | as_dirs= | |
41177 | while test ! -d "$as_dir"; do | |
41178 | as_dirs="$as_dir $as_dirs" | |
41179 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41180 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
41181 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
41182 | X"$as_dir" : 'X\(//\)$' \| \ | |
41183 | X"$as_dir" : 'X\(/\)' \| \ | |
41184 | . : '\(.\)' 2>/dev/null || | |
41185 | echo X"$as_dir" | | |
41186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41187 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41188 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41189 | /^X\(\/\).*/{ s//\1/; q; } | |
41190 | s/.*/./; q'` | |
41191 | done | |
41192 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41193 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41194 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41195 | { (exit 1); exit 1; }; }; } | |
41196 | ||
e6cc62c6 VS |
41197 | ac_builddir=. |
41198 | ||
41199 | if test "$ac_dir" != .; then | |
41200 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41201 | # A "../" for each directory in $ac_dir_suffix. | |
41202 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41203 | else | |
41204 | ac_dir_suffix= ac_top_builddir= | |
41205 | fi | |
41206 | ||
41207 | case $srcdir in | |
41208 | .) # No --srcdir option. We are building in place. | |
41209 | ac_srcdir=. | |
41210 | if test -z "$ac_top_builddir"; then | |
41211 | ac_top_srcdir=. | |
41212 | else | |
41213 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41214 | fi ;; | |
41215 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41216 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41217 | ac_top_srcdir=$srcdir ;; | |
41218 | *) # Relative path. | |
41219 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41220 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41221 | esac | |
32ddf007 VS |
41222 | |
41223 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41224 | # the directories may not exist. | |
41225 | case `pwd` in | |
41226 | .) ac_abs_builddir="$ac_dir";; | |
41227 | *) | |
41228 | case "$ac_dir" in | |
41229 | .) ac_abs_builddir=`pwd`;; | |
41230 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41231 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41232 | esac;; | |
41233 | esac | |
41234 | case $ac_abs_builddir in | |
41235 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41236 | *) | |
41237 | case ${ac_top_builddir}. in | |
41238 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41239 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41240 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41241 | esac;; | |
41242 | esac | |
41243 | case $ac_abs_builddir in | |
41244 | .) ac_abs_srcdir=$ac_srcdir;; | |
41245 | *) | |
41246 | case $ac_srcdir in | |
41247 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41248 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41249 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41250 | esac;; | |
41251 | esac | |
41252 | case $ac_abs_builddir in | |
41253 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41254 | *) | |
41255 | case $ac_top_srcdir in | |
41256 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41257 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41258 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41259 | esac;; | |
41260 | esac | |
e6cc62c6 VS |
41261 | |
41262 | ||
41263 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
41264 | echo "$as_me: executing $ac_dest commands" >&6;} | |
41265 | case $ac_dest in | |
41266 | default ) | |
652d930d | 41267 | if test ! -h wx-config; then |
991a5759 | 41268 | chmod +x wx-config |
3a922bb4 RL |
41269 | mv wx-config wx${TOOLCHAIN_NAME}-config |
41270 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 41271 | fi |
665bbe97 | 41272 | |
00cf1208 RR |
41273 | if test ! -d lib; then |
41274 | mkdir lib | |
41275 | fi | |
41276 | if test ! -d lib/wx; then | |
41277 | mkdir lib/wx | |
41278 | fi | |
41279 | if test ! -d lib/wx/include; then | |
41280 | mkdir lib/wx/include | |
41281 | fi | |
3a922bb4 RL |
41282 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
41283 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 41284 | fi |
3a922bb4 RL |
41285 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
41286 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
41287 | fi |
41288 | if test -f setup.h; then | |
3a922bb4 | 41289 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 41290 | fi |
e6cc62c6 VS |
41291 | ;; |
41292 | esac | |
41293 | done | |
41294 | _ACEOF | |
2224580a | 41295 | |
e6cc62c6 | 41296 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 41297 | |
e6cc62c6 VS |
41298 | { (exit 0); exit 0; } |
41299 | _ACEOF | |
41300 | chmod +x $CONFIG_STATUS | |
41301 | ac_clean_files=$ac_clean_files_save | |
41302 | ||
41303 | ||
41304 | # configure is writing to config.log, and then calls config.status. | |
41305 | # config.status does its own redirection, appending to config.log. | |
41306 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
41307 | # by configure, so config.status won't be able to write to it; its | |
41308 | # output is simply discarded. So we exec the FD to /dev/null, | |
41309 | # effectively closing config.log, so it can be properly (re)opened and | |
41310 | # appended to by config.status. When coming back to configure, we | |
41311 | # need to make the FD available again. | |
41312 | if test "$no_create" != yes; then | |
41313 | ac_cs_success=: | |
41314 | ac_config_status_args= | |
41315 | test "$silent" = yes && | |
41316 | ac_config_status_args="$ac_config_status_args --quiet" | |
41317 | exec 5>/dev/null | |
41318 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
41319 | exec 5>>config.log | |
41320 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
41321 | # would make configure fail if this is the last instruction. | |
41322 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
41323 | fi |
41324 | ||
672abd7a VS |
41325 | # |
41326 | # CONFIG_SUBDIRS section. | |
41327 | # | |
41328 | if test "$no_recursion" != yes; then | |
41329 | ||
41330 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
41331 | ac_sub_configure_args= | |
41332 | ac_prev= | |
41333 | for ac_arg in $ac_configure_args; do | |
41334 | if test -n "$ac_prev"; then | |
41335 | ac_prev= | |
41336 | continue | |
41337 | fi | |
41338 | case $ac_arg in | |
41339 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
41340 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
41341 | ac_prev=cache_file ;; | |
41342 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
41343 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
41344 | | --c=*) | |
41345 | ;; | |
41346 | --config-cache | -C) | |
41347 | ;; | |
41348 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
41349 | ac_prev=srcdir ;; | |
41350 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
41351 | ;; | |
41352 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
41353 | ac_prev=prefix ;; | |
41354 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
41355 | ;; | |
41356 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
41357 | esac | |
41358 | done | |
41359 | ||
41360 | # Always prepend --prefix to ensure using the same prefix | |
41361 | # in subdir configurations. | |
41362 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
41363 | ||
41364 | ac_popdir=`pwd` | |
41365 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
41366 | ||
41367 | # Do not complain, so a configure script can configure whichever | |
41368 | # parts of a large source tree are present. | |
41369 | test -d $srcdir/$ac_dir || continue | |
41370 | ||
41371 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
41372 | echo "$as_me: configuring in $ac_dir" >&6;} | |
41373 | { if $as_mkdir_p; then | |
41374 | mkdir -p "$ac_dir" | |
41375 | else | |
41376 | as_dir="$ac_dir" | |
41377 | as_dirs= | |
41378 | while test ! -d "$as_dir"; do | |
41379 | as_dirs="$as_dir $as_dirs" | |
41380 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41381 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41382 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41383 | X"$as_dir" : 'X\(//\)$' \| \ | |
41384 | X"$as_dir" : 'X\(/\)' \| \ | |
41385 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
41386 | echo X"$as_dir" | |
41387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41388 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41389 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41390 | /^X\(\/\).*/{ s//\1/; q; } | |
41391 | s/.*/./; q'` | |
41392 | done | |
41393 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41394 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41395 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41396 | { (exit 1); exit 1; }; }; } | |
41397 | ||
41398 | ac_builddir=. | |
41399 | ||
41400 | if test "$ac_dir" != .; then | |
41401 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41402 | # A "../" for each directory in $ac_dir_suffix. | |
41403 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41404 | else | |
41405 | ac_dir_suffix= ac_top_builddir= | |
41406 | fi | |
41407 | ||
41408 | case $srcdir in | |
41409 | .) # No --srcdir option. We are building in place. | |
41410 | ac_srcdir=. | |
41411 | if test -z "$ac_top_builddir"; then | |
41412 | ac_top_srcdir=. | |
41413 | else | |
41414 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41415 | fi ;; | |
41416 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41417 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41418 | ac_top_srcdir=$srcdir ;; | |
41419 | *) # Relative path. | |
41420 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41421 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41422 | esac | |
32ddf007 VS |
41423 | |
41424 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41425 | # the directories may not exist. | |
41426 | case `pwd` in | |
41427 | .) ac_abs_builddir="$ac_dir";; | |
41428 | *) | |
41429 | case "$ac_dir" in | |
41430 | .) ac_abs_builddir=`pwd`;; | |
41431 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41432 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41433 | esac;; | |
41434 | esac | |
41435 | case $ac_abs_builddir in | |
41436 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41437 | *) | |
41438 | case ${ac_top_builddir}. in | |
41439 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41440 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41441 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41442 | esac;; | |
41443 | esac | |
41444 | case $ac_abs_builddir in | |
41445 | .) ac_abs_srcdir=$ac_srcdir;; | |
41446 | *) | |
41447 | case $ac_srcdir in | |
41448 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41449 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41450 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41451 | esac;; | |
41452 | esac | |
41453 | case $ac_abs_builddir in | |
41454 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41455 | *) | |
41456 | case $ac_top_srcdir in | |
41457 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41458 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41459 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41460 | esac;; | |
41461 | esac | |
672abd7a VS |
41462 | |
41463 | ||
41464 | cd $ac_dir | |
41465 | ||
41466 | # Check for guested configure; otherwise get Cygnus style configure. | |
41467 | if test -f $ac_srcdir/configure.gnu; then | |
41468 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
41469 | elif test -f $ac_srcdir/configure; then | |
41470 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
41471 | elif test -f $ac_srcdir/configure.in; then | |
41472 | ac_sub_configure=$ac_configure | |
41473 | else | |
41474 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
41475 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
41476 | ac_sub_configure= | |
41477 | fi | |
41478 | ||
41479 | # The recursion is here. | |
41480 | if test -n "$ac_sub_configure"; then | |
41481 | # Make the cache file name correct relative to the subdirectory. | |
41482 | case $cache_file in | |
41483 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
41484 | *) # Relative path. | |
32ddf007 | 41485 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
41486 | esac |
41487 | ||
41488 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
41489 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
41490 | # The eval makes quoting arguments work. | |
41491 | eval $ac_sub_configure $ac_sub_configure_args \ | |
32ddf007 VS |
41492 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
41493 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
41494 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
41495 | { (exit 1); exit 1; }; } | |
41496 | fi | |
41497 | ||
e1293dcf | 41498 | cd "$ac_popdir" |
672abd7a VS |
41499 | done |
41500 | fi | |
41501 | ||
8284b0c5 | 41502 | |
2b5f62a0 VZ |
41503 | echo |
41504 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
41505 | echo "" | |
89fe663f | 41506 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 41507 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
41508 | |
41509 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
41510 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
41511 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
41512 | ||
0c98a14e | 41513 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
41514 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
41515 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 41516 | |
2b5f62a0 VZ |
41517 | echo " Which libraries should wxWindows use?" |
41518 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
41519 | echo " png ${wxUSE_LIBPNG-none}" | |
41520 | echo " regex ${wxUSE_REGEX}" | |
41521 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
41522 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
41523 | echo " xpm ${wxUSE_LIBXPM-none}" | |
41524 | fi | |
2b5f62a0 | 41525 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 41526 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 41527 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 41528 | echo " libmspack ${wxUSE_LIBMSPACK}" |
f93ca9fd | 41529 | echo " sdl ${wxUSE_LIBSDL}" |
2b5f62a0 VZ |
41530 | |
41531 | echo "" | |
41532 |