]>
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" |
670ec357 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE 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 CPPUNIT_CONFIG 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) | |
670ec357 VS |
1070 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) |
1071 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
e6cc62c6 VS |
1072 | |
1073 | Some influential environment variables: | |
1074 | CC C compiler command | |
1075 | CFLAGS C compiler flags | |
1076 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1077 | nonstandard directory <lib dir> | |
1078 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1079 | headers in a nonstandard directory <include dir> | |
1080 | CPP C preprocessor | |
1081 | CXX C++ compiler command | |
1082 | CXXFLAGS C++ compiler flags | |
1083 | CXXCPP C++ preprocessor | |
1084 | ||
1085 | Use these variables to override the choices made by `configure' or to help | |
1086 | it to find libraries and programs with nonstandard names/locations. | |
1087 | ||
1088 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1089 | _ACEOF | |
1090 | fi | |
1091 | ||
1092 | if test "$ac_init_help" = "recursive"; then | |
1093 | # If there are subdirs, report their specific --help. | |
1094 | ac_popdir=`pwd` | |
1095 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1096 | test -d $ac_dir || continue | |
1097 | ac_builddir=. | |
1098 | ||
1099 | if test "$ac_dir" != .; then | |
1100 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1101 | # A "../" for each directory in $ac_dir_suffix. | |
1102 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1103 | else | |
1104 | ac_dir_suffix= ac_top_builddir= | |
1105 | fi | |
1106 | ||
1107 | case $srcdir in | |
1108 | .) # No --srcdir option. We are building in place. | |
1109 | ac_srcdir=. | |
1110 | if test -z "$ac_top_builddir"; then | |
1111 | ac_top_srcdir=. | |
1112 | else | |
1113 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1114 | fi ;; | |
1115 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1116 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1117 | ac_top_srcdir=$srcdir ;; | |
1118 | *) # Relative path. | |
1119 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1120 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1121 | esac | |
32ddf007 VS |
1122 | |
1123 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1124 | # the directories may not exist. | |
1125 | case `pwd` in | |
1126 | .) ac_abs_builddir="$ac_dir";; | |
1127 | *) | |
1128 | case "$ac_dir" in | |
1129 | .) ac_abs_builddir=`pwd`;; | |
1130 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1131 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1132 | esac;; | |
1133 | esac | |
1134 | case $ac_abs_builddir in | |
1135 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1136 | *) | |
1137 | case ${ac_top_builddir}. in | |
1138 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1139 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1140 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1141 | esac;; | |
1142 | esac | |
1143 | case $ac_abs_builddir in | |
1144 | .) ac_abs_srcdir=$ac_srcdir;; | |
1145 | *) | |
1146 | case $ac_srcdir in | |
1147 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1148 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1149 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1150 | esac;; | |
1151 | esac | |
1152 | case $ac_abs_builddir in | |
1153 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1154 | *) | |
1155 | case $ac_top_srcdir in | |
1156 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1157 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1158 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1159 | esac;; | |
1160 | esac | |
e6cc62c6 VS |
1161 | |
1162 | cd $ac_dir | |
1163 | # Check for guested configure; otherwise get Cygnus style configure. | |
1164 | if test -f $ac_srcdir/configure.gnu; then | |
1165 | echo | |
1166 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1167 | elif test -f $ac_srcdir/configure; then | |
1168 | echo | |
1169 | $SHELL $ac_srcdir/configure --help=recursive | |
1170 | elif test -f $ac_srcdir/configure.ac || | |
32ddf007 | 1171 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1172 | echo |
1173 | $ac_configure --help | |
1174 | else | |
1175 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1176 | fi | |
e1293dcf | 1177 | cd "$ac_popdir" |
e6cc62c6 VS |
1178 | done |
1179 | fi | |
8284b0c5 | 1180 | |
e6cc62c6 VS |
1181 | test -n "$ac_init_help" && exit 0 |
1182 | if $ac_init_version; then | |
1183 | cat <<\_ACEOF | |
e46d2a18 | 1184 | wxWindows configure 2.5.1 |
32ddf007 | 1185 | generated by GNU Autoconf 2.59 |
10f2d63a | 1186 | |
32ddf007 | 1187 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
1188 | This configure script is free software; the Free Software Foundation |
1189 | gives unlimited permission to copy, distribute and modify it. | |
1190 | _ACEOF | |
1191 | exit 0 | |
7c66a493 | 1192 | fi |
e6cc62c6 VS |
1193 | exec 5>config.log |
1194 | cat >&5 <<_ACEOF | |
1195 | This file contains any messages produced by compilers while | |
1196 | running configure, to aid debugging if configure makes a mistake. | |
1197 | ||
e46d2a18 | 1198 | It was created by wxWindows $as_me 2.5.1, which was |
32ddf007 | 1199 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
1200 | |
1201 | $ $0 $@ | |
1202 | ||
1203 | _ACEOF | |
1204 | { | |
1205 | cat <<_ASUNAME | |
1206 | ## --------- ## | |
1207 | ## Platform. ## | |
1208 | ## --------- ## | |
1209 | ||
1210 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1211 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1212 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1213 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1214 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1215 | ||
1216 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1217 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1218 | ||
1219 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1220 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1221 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1222 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1223 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1224 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1225 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1226 | ||
1227 | _ASUNAME | |
1228 | ||
1229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1230 | for as_dir in $PATH | |
1231 | do | |
1232 | IFS=$as_save_IFS | |
1233 | test -z "$as_dir" && as_dir=. | |
1234 | echo "PATH: $as_dir" | |
1235 | done | |
1236 | ||
1237 | } >&5 | |
1238 | ||
1239 | cat >&5 <<_ACEOF | |
1240 | ||
1241 | ||
1242 | ## ----------- ## | |
1243 | ## Core tests. ## | |
1244 | ## ----------- ## | |
1245 | ||
1246 | _ACEOF | |
1247 | ||
1248 | ||
1249 | # Keep a trace of the command line. | |
1250 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1251 | # Strip out --silent because we don't want to record it for future runs. | |
1252 | # Also quote any args containing shell meta-characters. | |
1253 | # Make two passes to allow for proper duplicate-argument suppression. | |
1254 | ac_configure_args= | |
1255 | ac_configure_args0= | |
1256 | ac_configure_args1= | |
1257 | ac_sep= | |
1258 | ac_must_keep_next=false | |
1259 | for ac_pass in 1 2 | |
1260 | do | |
1261 | for ac_arg | |
1262 | do | |
1263 | case $ac_arg in | |
1264 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1265 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1266 | | -silent | --silent | --silen | --sile | --sil) | |
1267 | continue ;; | |
1268 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1269 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1270 | esac | |
1271 | case $ac_pass in | |
1272 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1273 | 2) | |
1274 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1275 | if test $ac_must_keep_next = true; then | |
32ddf007 | 1276 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1277 | else |
32ddf007 VS |
1278 | case $ac_arg in |
1279 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1280 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1281 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1282 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1283 | case "$ac_configure_args0 " in | |
1284 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1285 | esac | |
1286 | ;; | |
1287 | -* ) ac_must_keep_next=true ;; | |
1288 | esac | |
e6cc62c6 VS |
1289 | fi |
1290 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1291 | # Get rid of the leading space. | |
1292 | ac_sep=" " | |
1293 | ;; | |
1294 | esac | |
1295 | done | |
1296 | done | |
1297 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1298 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1299 | ||
1300 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1301 | # config.log. We remove comments because anyway the quotes in there | |
1302 | # would cause problems or look ugly. | |
1303 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1304 | # such as our DU 5.0 friend, will then `close' the trap. | |
1305 | trap 'exit_status=$? | |
1306 | # Save into config.log some information that might help in debugging. | |
1307 | { | |
1308 | echo | |
1309 | ||
1310 | cat <<\_ASBOX | |
1311 | ## ---------------- ## | |
1312 | ## Cache variables. ## | |
1313 | ## ---------------- ## | |
1314 | _ASBOX | |
1315 | echo | |
1316 | # The following way of writing the cache mishandles newlines in values, | |
1317 | { | |
1318 | (set) 2>&1 | | |
1319 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1320 | *ac_space=\ *) | |
1321 | sed -n \ | |
32ddf007 VS |
1322 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1323 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1324 | ;; |
1325 | *) | |
1326 | sed -n \ | |
32ddf007 | 1327 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1328 | ;; |
1329 | esac; | |
1330 | } | |
1331 | echo | |
1332 | ||
1333 | cat <<\_ASBOX | |
1334 | ## ----------------- ## | |
1335 | ## Output variables. ## | |
1336 | ## ----------------- ## | |
1337 | _ASBOX | |
1338 | echo | |
1339 | for ac_var in $ac_subst_vars | |
1340 | do | |
1341 | eval ac_val=$`echo $ac_var` | |
1342 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1343 | done | sort | |
1344 | echo | |
1345 | ||
1346 | if test -n "$ac_subst_files"; then | |
1347 | cat <<\_ASBOX | |
1348 | ## ------------- ## | |
1349 | ## Output files. ## | |
1350 | ## ------------- ## | |
1351 | _ASBOX | |
1352 | echo | |
1353 | for ac_var in $ac_subst_files | |
1354 | do | |
1355 | eval ac_val=$`echo $ac_var` | |
32ddf007 | 1356 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1357 | done | sort |
1358 | echo | |
1359 | fi | |
1360 | ||
1361 | if test -s confdefs.h; then | |
1362 | cat <<\_ASBOX | |
1363 | ## ----------- ## | |
1364 | ## confdefs.h. ## | |
1365 | ## ----------- ## | |
1366 | _ASBOX | |
1367 | echo | |
1368 | sed "/^$/d" confdefs.h | sort | |
1369 | echo | |
1370 | fi | |
1371 | test "$ac_signal" != 0 && | |
1372 | echo "$as_me: caught signal $ac_signal" | |
1373 | echo "$as_me: exit $exit_status" | |
1374 | } >&5 | |
32ddf007 | 1375 | rm -f core *.core && |
e6cc62c6 VS |
1376 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1377 | exit $exit_status | |
1378 | ' 0 | |
1379 | for ac_signal in 1 2 13 15; do | |
1380 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1381 | done | |
1382 | ac_signal=0 | |
1383 | ||
1384 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1385 | rm -rf conftest* confdefs.h | |
1386 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1387 | echo >confdefs.h | |
1388 | ||
1389 | # Predefined preprocessor variables. | |
1390 | ||
1391 | cat >>confdefs.h <<_ACEOF | |
1392 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1393 | _ACEOF | |
1394 | ||
1395 | ||
1396 | cat >>confdefs.h <<_ACEOF | |
1397 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1398 | _ACEOF | |
1399 | ||
1400 | ||
1401 | cat >>confdefs.h <<_ACEOF | |
1402 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1403 | _ACEOF | |
1404 | ||
1405 | ||
1406 | cat >>confdefs.h <<_ACEOF | |
1407 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1408 | _ACEOF | |
1409 | ||
1410 | ||
1411 | cat >>confdefs.h <<_ACEOF | |
1412 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1413 | _ACEOF | |
1414 | ||
1415 | ||
1416 | # Let the site file select an alternate cache file if it wants to. | |
1417 | # Prefer explicitly selected file to automatically selected ones. | |
1418 | if test -z "$CONFIG_SITE"; then | |
1419 | if test "x$prefix" != xNONE; then | |
1420 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1421 | else | |
1422 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1423 | fi | |
1424 | fi | |
1425 | for ac_site_file in $CONFIG_SITE; do | |
1426 | if test -r "$ac_site_file"; then | |
1427 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1428 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1429 | sed 's/^/| /' "$ac_site_file" >&5 | |
1430 | . "$ac_site_file" | |
1431 | fi | |
1432 | done | |
1433 | ||
1434 | if test -r "$cache_file"; then | |
1435 | # Some versions of bash will fail to source /dev/null (special | |
1436 | # files actually), so we avoid doing that. | |
1437 | if test -f "$cache_file"; then | |
1438 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1439 | echo "$as_me: loading cache $cache_file" >&6;} | |
1440 | case $cache_file in | |
1441 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1442 | *) . ./$cache_file;; | |
1443 | esac | |
1444 | fi | |
1445 | else | |
1446 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1447 | echo "$as_me: creating cache $cache_file" >&6;} | |
1448 | >$cache_file | |
1449 | fi | |
1450 | ||
1451 | # Check that the precious variables saved in the cache have kept the same | |
1452 | # value. | |
1453 | ac_cache_corrupted=false | |
1454 | for ac_var in `(set) 2>&1 | | |
32ddf007 | 1455 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1456 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1457 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1458 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1459 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1460 | case $ac_old_set,$ac_new_set in | |
1461 | set,) | |
1462 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1463 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1464 | ac_cache_corrupted=: ;; | |
1465 | ,set) | |
1466 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1467 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1468 | ac_cache_corrupted=: ;; | |
1469 | ,);; | |
1470 | *) | |
1471 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
32ddf007 | 1472 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1473 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
32ddf007 | 1474 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1475 | echo "$as_me: former value: $ac_old_val" >&2;} |
32ddf007 | 1476 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1477 | echo "$as_me: current value: $ac_new_val" >&2;} |
32ddf007 | 1478 | ac_cache_corrupted=: |
e6cc62c6 VS |
1479 | fi;; |
1480 | esac | |
1481 | # Pass precious variables to config.status. | |
1482 | if test "$ac_new_set" = set; then | |
1483 | case $ac_new_val in | |
1484 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1485 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1486 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1487 | esac | |
1488 | case " $ac_configure_args " in | |
1489 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1490 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1491 | esac | |
1492 | fi | |
1493 | done | |
1494 | if $ac_cache_corrupted; then | |
1495 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1496 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1497 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1498 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1499 | { (exit 1); exit 1; }; } | |
1500 | fi | |
1501 | ||
1502 | ac_ext=c | |
1503 | ac_cpp='$CPP $CPPFLAGS' | |
1504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
698dcdb6 | 1524 | |
8284b0c5 | 1525 | |
7c66a493 | 1526 | |
a0b9e27f MB |
1527 | |
1528 | ||
a0b9e27f | 1529 | |
a0b9e27f | 1530 | |
a0b9e27f | 1531 | |
a0b9e27f | 1532 | |
a0b9e27f | 1533 | |
a0b9e27f | 1534 | |
e6cc62c6 VS |
1535 | |
1536 | ||
1537 | ac_aux_dir= | |
1538 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1539 | if test -f $ac_dir/install-sh; then | |
1540 | ac_aux_dir=$ac_dir | |
1541 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1542 | break | |
1543 | elif test -f $ac_dir/install.sh; then | |
1544 | ac_aux_dir=$ac_dir | |
1545 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1546 | break | |
1547 | elif test -f $ac_dir/shtool; then | |
1548 | ac_aux_dir=$ac_dir | |
1549 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1550 | break | |
1551 | fi | |
1552 | done | |
1553 | if test -z "$ac_aux_dir"; then | |
1554 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1555 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1556 | { (exit 1); exit 1; }; } | |
1557 | fi | |
1558 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1559 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1560 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1561 | ||
1562 | # Make sure we can run config.sub. | |
1563 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1564 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1565 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1566 | { (exit 1); exit 1; }; } | |
1567 | ||
1568 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1569 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1570 | if test "${ac_cv_build+set}" = set; then | |
1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1572 | else | |
1573 | ac_cv_build_alias=$build_alias | |
1574 | test -z "$ac_cv_build_alias" && | |
1575 | ac_cv_build_alias=`$ac_config_guess` | |
1576 | test -z "$ac_cv_build_alias" && | |
1577 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1578 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1579 | { (exit 1); exit 1; }; } | |
1580 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1581 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1582 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | fi | |
1586 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1587 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1588 | build=$ac_cv_build | |
1589 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1590 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1591 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1592 | ||
1593 | ||
1594 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1595 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1596 | if test "${ac_cv_host+set}" = set; then | |
1597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1598 | else | |
1599 | ac_cv_host_alias=$host_alias | |
1600 | test -z "$ac_cv_host_alias" && | |
1601 | ac_cv_host_alias=$ac_cv_build_alias | |
1602 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1603 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1604 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1605 | { (exit 1); exit 1; }; } | |
1606 | ||
1607 | fi | |
1608 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1609 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1610 | host=$ac_cv_host | |
1611 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1612 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1613 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1614 | ||
1615 | ||
1616 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1617 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_target+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | ac_cv_target_alias=$target_alias | |
1622 | test "x$ac_cv_target_alias" = "x" && | |
1623 | ac_cv_target_alias=$ac_cv_host_alias | |
1624 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1625 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1626 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1627 | { (exit 1); exit 1; }; } | |
1628 | ||
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1631 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1632 | target=$ac_cv_target | |
1633 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1634 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1635 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1636 | ||
1637 | ||
1638 | # The aliases save the names the user supplied, while $host etc. | |
1639 | # will get canonicalized. | |
1640 | test -n "$target_alias" && | |
7c66a493 VZ |
1641 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1642 | NONENONEs,x,x, && | |
1643 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1644 | |
1645 | ||
a0b9e27f | 1646 | |
10f2d63a | 1647 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1648 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1649 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1650 | |
10f2d63a | 1651 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1652 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1653 | |
978f1259 RL |
1654 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1655 | ||
7015ef3a | 1656 | WX_CURRENT=1 |
6426998c RL |
1657 | WX_REVISION=0 |
1658 | WX_AGE=0 | |
1659 | ||
8284b0c5 MB |
1660 | |
1661 | ||
10f2d63a | 1662 | USE_UNIX=1 |
73d617c9 | 1663 | USE_OS2=0 |
10f2d63a | 1664 | USE_WIN32=0 |
f9bc1684 | 1665 | USE_DOS=0 |
b12915c1 | 1666 | USE_BEOS=0 |
1216f52d | 1667 | USE_MAC=0 |
b12915c1 | 1668 | |
10f2d63a | 1669 | USE_AIX= |
fe0895cf VS |
1670 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1671 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1672 | USE_LINUX= |
f6bcfd97 | 1673 | USE_NETBSD= |
89e3b3e4 | 1674 | USE_OPENBSD= |
fe0895cf VS |
1675 | USE_OSF= USE_SGI= |
1676 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1677 | USE_ULTRIX= |
89e3b3e4 VZ |
1678 | USE_UNIXWARE= |
1679 | ||
1680 | USE_ALPHA= | |
10f2d63a | 1681 | |
ab9b9eab VZ |
1682 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1683 | ||
ac0c4cc3 | 1684 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1685 | |
ac0c4cc3 | 1686 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1687 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1688 | DEFAULT_wxUSE_MAC=0 |
1689 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1690 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1691 | DEFAULT_wxUSE_MOTIF=0 |
1692 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1693 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1694 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1695 | |
ac0c4cc3 | 1696 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1697 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1698 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1699 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1700 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1701 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1702 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1703 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1704 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1705 | |
d6a55c4b | 1706 | PROGRAM_EXT= |
3a922bb4 | 1707 | SO_SUFFIX=so |
fe0895cf | 1708 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1709 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1710 | |
10f2d63a VZ |
1711 | case "${host}" in |
1712 | *-hp-hpux* ) | |
1713 | USE_HPUX=1 | |
1714 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1715 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1716 | SO_SUFFIX=sl |
e6cc62c6 | 1717 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1718 | #define __HPUX__ 1 |
e6cc62c6 | 1719 | _ACEOF |
10f2d63a VZ |
1720 | |
1721 | ;; | |
1722 | *-*-linux* ) | |
1723 | USE_LINUX=1 | |
e6cc62c6 | 1724 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1725 | #define __LINUX__ 1 |
e6cc62c6 | 1726 | _ACEOF |
10f2d63a VZ |
1727 | |
1728 | TMP=`uname -m` | |
1729 | if test "x$TMP" = "xalpha"; then | |
1730 | USE_ALPHA=1 | |
e6cc62c6 | 1731 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1732 | #define __ALPHA__ 1 |
e6cc62c6 | 1733 | _ACEOF |
fe0895cf VS |
1734 | |
1735 | fi | |
1736 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1737 | ;; | |
e1293dcf | 1738 | *-*-gnu* | *-*-k*bsd*-gnu ) |
fe0895cf | 1739 | USE_GNU=1 |
fe0895cf VS |
1740 | TMP=`uname -m` |
1741 | if test "x$TMP" = "xalpha"; then | |
1742 | USE_ALPHA=1 | |
e6cc62c6 | 1743 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1744 | #define __ALPHA__ 1 |
e6cc62c6 | 1745 | _ACEOF |
10f2d63a VZ |
1746 | |
1747 | fi | |
1748 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1749 | ;; | |
1750 | *-*-irix5* | *-*-irix6* ) | |
1751 | USE_SGI=1 | |
1752 | USE_SVR4=1 | |
e6cc62c6 | 1753 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1754 | #define __SGI__ 1 |
e6cc62c6 | 1755 | _ACEOF |
10f2d63a | 1756 | |
e6cc62c6 | 1757 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1758 | #define __SVR4__ 1 |
e6cc62c6 | 1759 | _ACEOF |
10f2d63a VZ |
1760 | |
1761 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1762 | ;; | |
1763 | *-*-solaris2* ) | |
1764 | USE_SUN=1 | |
1765 | USE_SOLARIS=1 | |
1766 | USE_SVR4=1 | |
e6cc62c6 | 1767 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1768 | #define __SUN__ 1 |
e6cc62c6 | 1769 | _ACEOF |
10f2d63a | 1770 | |
e6cc62c6 | 1771 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1772 | #define __SOLARIS__ 1 |
e6cc62c6 | 1773 | _ACEOF |
10f2d63a | 1774 | |
e6cc62c6 | 1775 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1776 | #define __SVR4__ 1 |
e6cc62c6 | 1777 | _ACEOF |
10f2d63a VZ |
1778 | |
1779 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1780 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1781 | ;; |
1782 | *-*-sunos4* ) | |
1783 | USE_SUN=1 | |
1784 | USE_SUNOS=1 | |
1785 | USE_BSD=1 | |
e6cc62c6 | 1786 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1787 | #define __SUN__ 1 |
e6cc62c6 | 1788 | _ACEOF |
10f2d63a | 1789 | |
e6cc62c6 | 1790 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1791 | #define __SUNOS__ 1 |
e6cc62c6 | 1792 | _ACEOF |
10f2d63a | 1793 | |
e6cc62c6 | 1794 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1795 | #define __BSD__ 1 |
e6cc62c6 | 1796 | _ACEOF |
10f2d63a VZ |
1797 | |
1798 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1799 | ;; | |
f6bcfd97 | 1800 | *-*-freebsd*) |
10f2d63a VZ |
1801 | USE_BSD=1 |
1802 | USE_FREEBSD=1 | |
e6cc62c6 | 1803 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1804 | #define __FREEBSD__ 1 |
e6cc62c6 | 1805 | _ACEOF |
10f2d63a | 1806 | |
e6cc62c6 | 1807 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1808 | #define __BSD__ 1 |
e6cc62c6 | 1809 | _ACEOF |
95c8801c VS |
1810 | |
1811 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1812 | ;; | |
1813 | *-*-openbsd*) | |
1814 | USE_BSD=1 | |
1815 | USE_OPENBSD=1 | |
e6cc62c6 | 1816 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1817 | #define __OPENBSD__ 1 |
e6cc62c6 | 1818 | _ACEOF |
95c8801c | 1819 | |
e6cc62c6 | 1820 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1821 | #define __BSD__ 1 |
e6cc62c6 | 1822 | _ACEOF |
f6bcfd97 BP |
1823 | |
1824 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1825 | ;; | |
1826 | *-*-netbsd*) | |
1827 | USE_BSD=1 | |
1828 | USE_NETBSD=1 | |
e6cc62c6 | 1829 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1830 | #define __NETBSD__ 1 |
e6cc62c6 | 1831 | _ACEOF |
f6bcfd97 | 1832 | |
e6cc62c6 | 1833 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1834 | #define __BSD__ 1 |
e6cc62c6 | 1835 | _ACEOF |
10f2d63a VZ |
1836 | |
1837 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1838 | ;; | |
1839 | *-*-osf* ) | |
1840 | USE_ALPHA=1 | |
1841 | USE_OSF=1 | |
e6cc62c6 | 1842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1843 | #define __ALPHA__ 1 |
e6cc62c6 | 1844 | _ACEOF |
10f2d63a | 1845 | |
e6cc62c6 | 1846 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1847 | #define __OSF__ 1 |
e6cc62c6 | 1848 | _ACEOF |
10f2d63a VZ |
1849 | |
1850 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1851 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1852 | ;; |
1853 | *-*-dgux5* ) | |
1854 | USE_ALPHA=1 | |
1855 | USE_SVR4=1 | |
e6cc62c6 | 1856 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1857 | #define __ALPHA__ 1 |
e6cc62c6 | 1858 | _ACEOF |
10f2d63a | 1859 | |
e6cc62c6 | 1860 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1861 | #define __SVR4__ 1 |
e6cc62c6 | 1862 | _ACEOF |
10f2d63a VZ |
1863 | |
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | ;; | |
1866 | *-*-sysv5* ) | |
1867 | USE_SYSV=1 | |
1868 | USE_SVR4=1 | |
e6cc62c6 | 1869 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1870 | #define __SYSV__ 1 |
e6cc62c6 | 1871 | _ACEOF |
10f2d63a | 1872 | |
e6cc62c6 | 1873 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1874 | #define __SVR4__ 1 |
e6cc62c6 | 1875 | _ACEOF |
10f2d63a VZ |
1876 | |
1877 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1878 | ;; | |
1879 | *-*-aix* ) | |
1880 | USE_AIX=1 | |
1881 | USE_SYSV=1 | |
1882 | USE_SVR4=1 | |
2b5f62a0 | 1883 | SO_SUFFIX=a |
e6cc62c6 | 1884 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1885 | #define __AIX__ 1 |
e6cc62c6 | 1886 | _ACEOF |
10f2d63a | 1887 | |
e6cc62c6 | 1888 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1889 | #define __SYSV__ 1 |
e6cc62c6 | 1890 | _ACEOF |
10f2d63a | 1891 | |
e6cc62c6 | 1892 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1893 | #define __SVR4__ 1 |
e6cc62c6 | 1894 | _ACEOF |
10f2d63a VZ |
1895 | |
1896 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1897 | ;; | |
1898 | ||
89e3b3e4 VZ |
1899 | *-*-*UnixWare*) |
1900 | USE_SYSV=1 | |
1901 | USE_SVR4=1 | |
1902 | USE_UNIXWARE=1 | |
e6cc62c6 | 1903 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1904 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1905 | _ACEOF |
89e3b3e4 VZ |
1906 | |
1907 | ;; | |
1908 | ||
1c8183e2 | 1909 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1910 | SO_SUFFIX=dll |
cf27ef00 | 1911 | PROGRAM_EXT=".exe" |
7b7a7637 | 1912 | RESCOMP=windres |
10f2d63a VZ |
1913 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1914 | ;; | |
1915 | ||
f9bc1684 VS |
1916 | *-pc-msdosdjgpp ) |
1917 | USE_UNIX=0 | |
1918 | USE_DOS=1 | |
e6cc62c6 | 1919 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1920 | #define __DOS__ 1 |
e6cc62c6 | 1921 | _ACEOF |
f9bc1684 VS |
1922 | |
1923 | PROGRAM_EXT=".exe" | |
1924 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1925 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1926 | ;; |
1927 | ||
6fa882bd | 1928 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1929 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1930 | #define __EMX__ 1 |
e6cc62c6 | 1931 | _ACEOF |
10f2d63a | 1932 | |
73d617c9 | 1933 | USE_OS2=1 |
7015ef3a VZ |
1934 | cat >>confdefs.h <<\_ACEOF |
1935 | #define __OS2__ 1 | |
1936 | _ACEOF | |
1937 | ||
cf27ef00 | 1938 | PROGRAM_EXT=".exe" |
e07802fc | 1939 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1940 | CXX=gcc |
32ddf007 | 1941 | LDFLAGS="$LDFLAGS -Zcrtdll" |
d5fc095c VS |
1942 | ac_executable_extensions=".exe" |
1943 | export ac_executable_extensions | |
1944 | ac_save_IFS="$IFS" | |
e46d2a18 | 1945 | IFS='\\' |
d5fc095c VS |
1946 | ac_TEMP_PATH= |
1947 | for ac_dir in $PATH; do | |
1948 | IFS=$ac_save_IFS | |
1949 | if test -z "$ac_TEMP_PATH"; then | |
1950 | ac_TEMP_PATH="$ac_dir" | |
1951 | else | |
1952 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1953 | fi | |
1954 | done | |
1955 | export PATH="$ac_TEMP_PATH" | |
1956 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1957 | ;; |
1958 | ||
d08b457b GD |
1959 | powerpc-*-darwin* ) |
1960 | USE_BSD=1 | |
f11bdd03 | 1961 | USE_DARWIN=1 |
3a922bb4 | 1962 | SO_SUFFIX=dylib |
e6cc62c6 | 1963 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1964 | #define __BSD__ 1 |
e6cc62c6 | 1965 | _ACEOF |
b4085ce6 | 1966 | |
e6cc62c6 | 1967 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1968 | #define __DARWIN__ 1 |
e6cc62c6 | 1969 | _ACEOF |
d08b457b | 1970 | |
e6cc62c6 | 1971 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1972 | #define __POWERPC__ 1 |
e6cc62c6 | 1973 | _ACEOF |
82d43113 | 1974 | |
e6cc62c6 | 1975 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1976 | #define TARGET_CARBON 1 |
e6cc62c6 | 1977 | _ACEOF |
b4085ce6 GD |
1978 | |
1979 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1980 | ;; | |
1981 | ||
b12915c1 VZ |
1982 | *-*-beos* ) |
1983 | USE_BEOS=1 | |
e6cc62c6 | 1984 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1985 | #define __BEOS__ 1 |
e6cc62c6 | 1986 | _ACEOF |
b12915c1 VZ |
1987 | |
1988 | ;; | |
1989 | ||
10f2d63a | 1990 | *) |
e6cc62c6 VS |
1991 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1992 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1993 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1994 | esac |
1995 | ||
8284b0c5 MB |
1996 | |
1997 | ||
1998 | ||
1999 | wx_arg_cache_file="configarg.cache" | |
2000 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
2001 | rm -f ${wx_arg_cache_file}.tmp |
2002 | touch ${wx_arg_cache_file}.tmp | |
2003 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 2004 | |
10f2d63a VZ |
2005 | |
2006 | DEBUG_CONFIGURE=0 | |
2007 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 2008 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2009 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2010 | |
d8356fa3 VZ |
2011 | DEFAULT_wxUSE_NANOX=no |
2012 | ||
10f2d63a VZ |
2013 | DEFAULT_wxUSE_THREADS=yes |
2014 | ||
2015 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 2016 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
2017 | DEFAULT_wxUSE_PROFILE=no |
2018 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2019 | DEFAULT_wxUSE_NO_RTTI=no |
2020 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2021 | DEFAULT_wxUSE_PERMISSIVE=no |
2022 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2023 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2024 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2025 | DEFAULT_wxUSE_MEM_TRACING=no | |
2026 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2027 | DEFAULT_wxUSE_DMALLOC=no | |
2028 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2029 | ||
e46d2a18 | 2030 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 2031 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2032 | DEFAULT_wxUSE_LOGWINDOW=no |
2033 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2034 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2035 | |
2036 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2037 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2038 | |
3e44f09d | 2039 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2040 | DEFAULT_wxUSE_XML=no |
2041 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2042 | DEFAULT_wxUSE_ZLIB=no |
2043 | DEFAULT_wxUSE_LIBPNG=no | |
2044 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2045 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2046 | DEFAULT_wxUSE_LIBXPM=no |
f93ca9fd VS |
2047 | DEFAULT_wxUSE_LIBMSPACK=no |
2048 | DEFAULT_wxUSE_LIBSDL=no | |
10f2d63a | 2049 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2050 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2051 | |
eb4efbdc | 2052 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2053 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2054 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2055 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2056 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2057 | DEFAULT_wxUSE_TIMER=no |
2058 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2059 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2060 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2061 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2062 | DEFAULT_wxUSE_TEXTFILE=no |
002ed9af | 2063 | DEFAULT_wxUSE_SOUND=no |
10f2d63a VZ |
2064 | DEFAULT_wxUSE_INTL=no |
2065 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2066 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2067 | DEFAULT_wxUSE_STREAMS=no |
2068 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2069 | DEFAULT_wxUSE_OLE=no |
2070 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2071 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2072 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2073 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2074 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2075 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2076 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2077 | |
2078 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2079 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2080 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2081 | ||
10f2d63a VZ |
2082 | DEFAULT_wxUSE_CLIPBOARD=no |
2083 | DEFAULT_wxUSE_TOOLTIPS=no | |
2084 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2085 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2086 | DEFAULT_wxUSE_SPLINES=no |
2087 | ||
2088 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2089 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2090 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2091 | ||
10f2d63a VZ |
2092 | DEFAULT_wxUSE_RESOURCES=no |
2093 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2094 | DEFAULT_wxUSE_IPC=no | |
2095 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2096 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2097 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2098 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2099 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2100 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2101 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2102 | DEFAULT_wxUSE_PROTOCOL=no | |
2103 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2104 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2105 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2106 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2107 | |
10f2d63a | 2108 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2109 | DEFAULT_wxUSE_CHOICEDLG=no |
2110 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2111 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2112 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2113 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2114 | DEFAULT_wxUSE_FONTDLG=no |
2115 | DEFAULT_wxUSE_MSGDLG=no | |
2116 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2117 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2118 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2119 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2120 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2121 | DEFAULT_wxUSE_WIZARDDLG=no |
2122 | ||
1e6feb95 | 2123 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2124 | DEFAULT_wxUSE_MINIFRAME=no |
2125 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2126 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2127 | DEFAULT_wxUSE_FS_INET=no |
2128 | DEFAULT_wxUSE_FS_ZIP=no | |
2129 | DEFAULT_wxUSE_BUSYINFO=no | |
2130 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2131 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2132 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2133 | |
2134 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2135 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2136 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2137 | DEFAULT_wxUSE_CALCTRL=no |
2138 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2139 | DEFAULT_wxUSE_CHECKBOX=no |
2140 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2141 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2142 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2143 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2144 | DEFAULT_wxUSE_GAUGE=no |
2145 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2146 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2147 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2148 | DEFAULT_wxUSE_LISTBOX=no |
2149 | DEFAULT_wxUSE_LISTCTRL=no | |
2150 | DEFAULT_wxUSE_NOTEBOOK=no | |
2151 | DEFAULT_wxUSE_RADIOBOX=no | |
2152 | DEFAULT_wxUSE_RADIOBTN=no | |
2153 | DEFAULT_wxUSE_SASH=no | |
2154 | DEFAULT_wxUSE_SCROLLBAR=no | |
2155 | DEFAULT_wxUSE_SLIDER=no | |
2156 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2157 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2158 | DEFAULT_wxUSE_SPLITTER=no |
2159 | DEFAULT_wxUSE_STATBMP=no | |
2160 | DEFAULT_wxUSE_STATBOX=no | |
2161 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2162 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2163 | DEFAULT_wxUSE_STATUSBAR=yes |
2164 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2165 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2166 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2167 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2168 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2169 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2170 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2171 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2172 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2173 | |
2174 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2175 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2176 | DEFAULT_wxUSE_WCSRTOMBS=no |
2177 | ||
edae8572 | 2178 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2179 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2180 | DEFAULT_wxUSE_GIF=no |
2181 | DEFAULT_wxUSE_PCX=no | |
2182 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2183 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2184 | DEFAULT_wxUSE_XPM=no |
658974ae | 2185 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2186 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2187 | |
e9e0dc15 | 2188 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2189 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2190 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2191 | else |
1e6feb95 | 2192 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2193 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2194 | |
d8356fa3 VZ |
2195 | DEFAULT_wxUSE_NANOX=no |
2196 | ||
10f2d63a VZ |
2197 | DEFAULT_wxUSE_THREADS=yes |
2198 | ||
2199 | DEFAULT_wxUSE_SHARED=yes | |
2200 | DEFAULT_wxUSE_OPTIMISE=yes | |
2201 | DEFAULT_wxUSE_PROFILE=no | |
2202 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2203 | DEFAULT_wxUSE_NO_RTTI=no |
2204 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2205 | DEFAULT_wxUSE_PERMISSIVE=no |
2206 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2207 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2208 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2209 | DEFAULT_wxUSE_MEM_TRACING=no | |
2210 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2211 | DEFAULT_wxUSE_DMALLOC=no | |
2212 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2213 | ||
e46d2a18 | 2214 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2215 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2216 | DEFAULT_wxUSE_LOGWINDOW=yes |
2217 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2218 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2219 | |
2220 | DEFAULT_wxUSE_GUI=yes | |
2221 | ||
aa2d9ecc | 2222 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2223 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2224 | DEFAULT_wxUSE_EXPAT=yes |
2225 | DEFAULT_wxUSE_ZLIB=yes | |
2226 | DEFAULT_wxUSE_LIBPNG=yes | |
2227 | DEFAULT_wxUSE_LIBJPEG=yes | |
2228 | DEFAULT_wxUSE_LIBTIFF=yes | |
2229 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2230 | DEFAULT_wxUSE_LIBMSPACK=yes |
f93ca9fd | 2231 | DEFAULT_wxUSE_LIBSDL=no |
16b52fa1 | 2232 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2233 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2234 | |
eb4efbdc | 2235 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2236 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2237 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2238 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2239 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2240 | DEFAULT_wxUSE_TIMER=yes |
2241 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2242 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2243 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2244 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2245 | DEFAULT_wxUSE_TEXTFILE=yes |
002ed9af | 2246 | DEFAULT_wxUSE_SOUND=yes |
10f2d63a VZ |
2247 | DEFAULT_wxUSE_INTL=yes |
2248 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2249 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2250 | DEFAULT_wxUSE_STREAMS=yes |
2251 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2252 | DEFAULT_wxUSE_OLE=yes |
2253 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2254 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2255 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2256 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2257 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2258 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2259 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2260 | |
2261 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2262 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2263 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2264 | ||
10f2d63a VZ |
2265 | DEFAULT_wxUSE_CLIPBOARD=yes |
2266 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2267 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2268 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2269 | DEFAULT_wxUSE_SPLINES=yes |
2270 | ||
2271 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2272 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2273 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2274 | ||
2b5f62a0 | 2275 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2276 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2277 | DEFAULT_wxUSE_IPC=yes | |
2278 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2279 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2280 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2281 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2282 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2283 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2284 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2285 | DEFAULT_wxUSE_PROTOCOL=yes |
2286 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2287 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2288 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2289 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2290 | |
2291 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2292 | DEFAULT_wxUSE_CHOICEDLG=yes |
2293 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2294 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2295 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2296 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2297 | DEFAULT_wxUSE_FONTDLG=yes |
2298 | DEFAULT_wxUSE_MSGDLG=yes | |
2299 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2300 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2301 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2302 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2303 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2304 | DEFAULT_wxUSE_WIZARDDLG=yes |
2305 | ||
1e6feb95 | 2306 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2307 | DEFAULT_wxUSE_MINIFRAME=yes |
2308 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2309 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2310 | DEFAULT_wxUSE_FS_INET=yes |
2311 | DEFAULT_wxUSE_FS_ZIP=yes | |
2312 | DEFAULT_wxUSE_BUSYINFO=yes | |
2313 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2314 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2315 | DEFAULT_wxUSE_VALIDATORS=yes |
2316 | ||
2317 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2318 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2319 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2320 | DEFAULT_wxUSE_CALCTRL=yes |
2321 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2322 | DEFAULT_wxUSE_CHECKBOX=yes |
2323 | DEFAULT_wxUSE_CHECKLST=yes | |
2324 | DEFAULT_wxUSE_CHOICE=yes | |
2325 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2326 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2327 | DEFAULT_wxUSE_GAUGE=yes |
2328 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2329 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2330 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2331 | DEFAULT_wxUSE_LISTBOX=yes |
2332 | DEFAULT_wxUSE_LISTCTRL=yes | |
2333 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2334 | DEFAULT_wxUSE_RADIOBOX=yes | |
2335 | DEFAULT_wxUSE_RADIOBTN=yes | |
2336 | DEFAULT_wxUSE_SASH=yes | |
2337 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2338 | DEFAULT_wxUSE_SLIDER=yes | |
2339 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2340 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2341 | DEFAULT_wxUSE_SPLITTER=yes |
2342 | DEFAULT_wxUSE_STATBMP=yes | |
2343 | DEFAULT_wxUSE_STATBOX=yes | |
2344 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2345 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2346 | DEFAULT_wxUSE_STATUSBAR=yes |
2347 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2348 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2349 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2350 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2351 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2352 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2353 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2354 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2355 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2356 | |
2357 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2358 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2359 | DEFAULT_wxUSE_WCSRTOMBS=no |
2360 | ||
edae8572 | 2361 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2362 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2363 | DEFAULT_wxUSE_GIF=yes |
2364 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2365 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2366 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2367 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2368 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2369 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2370 | |
e9e0dc15 | 2371 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2372 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2373 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2374 | fi |
2375 | ||
8284b0c5 MB |
2376 | |
2377 | ||
10f2d63a | 2378 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2379 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2380 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2381 | has_toolkit_in_cache=1 |
2382 | eval "DEFAULT_$LINE" | |
2383 | eval "CACHE_$toolkit=1" | |
2384 | fi | |
2385 | done | |
2386 | ||
8284b0c5 MB |
2387 | |
2388 | ||
5005acfe | 2389 | enablestring= |
e6cc62c6 VS |
2390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2391 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2392 | no_cache=0 |
2393 | # Check whether --enable-gui or --disable-gui was given. | |
2394 | if test "${enable_gui+set}" = set; then | |
2395 | enableval="$enable_gui" | |
e6cc62c6 | 2396 | |
10f2d63a VZ |
2397 | if test "$enableval" = yes; then |
2398 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2399 | else | |
2400 | ac_cv_use_gui='wxUSE_GUI=no' | |
2401 | fi | |
e6cc62c6 | 2402 | |
10f2d63a | 2403 | else |
e6cc62c6 | 2404 | |
10f2d63a VZ |
2405 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2406 | if test "x$LINE" != x ; then | |
2407 | eval "DEFAULT_$LINE" | |
2408 | else | |
2409 | no_cache=1 | |
2410 | fi | |
2411 | ||
2412 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2413 | |
e6cc62c6 | 2414 | fi; |
10f2d63a VZ |
2415 | |
2416 | eval "$ac_cv_use_gui" | |
2417 | if test "$no_cache" != 1; then | |
2418 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2419 | fi | |
2420 | ||
2421 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2422 | echo "$as_me:$LINENO: result: yes" >&5 |
2423 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2424 | else |
e6cc62c6 VS |
2425 | echo "$as_me:$LINENO: result: no" >&5 |
2426 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2427 | fi |
e6cc62c6 | 2428 | |
10f2d63a | 2429 | |
9747f85d VS |
2430 | enablestring= |
2431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2432 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2433 | no_cache=0 | |
2434 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2435 | if test "${enable_monolithic+set}" = set; then | |
2436 | enableval="$enable_monolithic" | |
2437 | ||
2438 | if test "$enableval" = yes; then | |
2439 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2440 | else | |
2441 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2442 | fi | |
2443 | ||
2444 | else | |
2445 | ||
2446 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2447 | if test "x$LINE" != x ; then | |
2448 | eval "DEFAULT_$LINE" | |
2449 | else | |
2450 | no_cache=1 | |
2451 | fi | |
2452 | ||
2453 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2454 | ||
2455 | fi; | |
2456 | ||
2457 | eval "$ac_cv_use_monolithic" | |
2458 | if test "$no_cache" != 1; then | |
2459 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2460 | fi | |
2461 | ||
2462 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2463 | echo "$as_me:$LINENO: result: yes" >&5 | |
2464 | echo "${ECHO_T}yes" >&6 | |
2465 | else | |
2466 | echo "$as_me:$LINENO: result: no" >&5 | |
2467 | echo "${ECHO_T}no" >&6 | |
2468 | fi | |
2469 | ||
2470 | ||
f93ca9fd VS |
2471 | enablestring= |
2472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2473 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2474 | no_cache=0 | |
2475 | # Check whether --enable-plugins or --disable-plugins was given. | |
2476 | if test "${enable_plugins+set}" = set; then | |
2477 | enableval="$enable_plugins" | |
2478 | ||
2479 | if test "$enableval" = yes; then | |
2480 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2481 | else | |
2482 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2483 | fi | |
2484 | ||
2485 | else | |
2486 | ||
2487 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2488 | if test "x$LINE" != x ; then | |
2489 | eval "DEFAULT_$LINE" | |
2490 | else | |
2491 | no_cache=1 | |
2492 | fi | |
2493 | ||
2494 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2495 | ||
2496 | fi; | |
2497 | ||
2498 | eval "$ac_cv_use_plugins" | |
2499 | if test "$no_cache" != 1; then | |
2500 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2501 | fi | |
2502 | ||
2503 | if test "$wxUSE_PLUGINS" = yes; then | |
2504 | echo "$as_me:$LINENO: result: yes" >&5 | |
2505 | echo "${ECHO_T}yes" >&6 | |
2506 | else | |
2507 | echo "$as_me:$LINENO: result: no" >&5 | |
2508 | echo "${ECHO_T}no" >&6 | |
2509 | fi | |
2510 | ||
2511 | ||
b12915c1 | 2512 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2513 | |
8284b0c5 | 2514 | |
5005acfe | 2515 | enablestring= |
e6cc62c6 VS |
2516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2517 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2518 | no_cache=0 |
2519 | # Check whether --enable-universal or --disable-universal was given. | |
2520 | if test "${enable_universal+set}" = set; then | |
2521 | enableval="$enable_universal" | |
e6cc62c6 | 2522 | |
1e6feb95 VZ |
2523 | if test "$enableval" = yes; then |
2524 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2525 | else | |
2526 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2527 | fi | |
e6cc62c6 | 2528 | |
1e6feb95 | 2529 | else |
e6cc62c6 | 2530 | |
1e6feb95 VZ |
2531 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2532 | if test "x$LINE" != x ; then | |
2533 | eval "DEFAULT_$LINE" | |
2534 | else | |
2535 | no_cache=1 | |
2536 | fi | |
2537 | ||
2538 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2539 | |
e6cc62c6 | 2540 | fi; |
1e6feb95 VZ |
2541 | |
2542 | eval "$ac_cv_use_universal" | |
2543 | if test "$no_cache" != 1; then | |
2544 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2545 | fi | |
2546 | ||
2547 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2548 | echo "$as_me:$LINENO: result: yes" >&5 |
2549 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2550 | else |
e6cc62c6 VS |
2551 | echo "$as_me:$LINENO: result: no" >&5 |
2552 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2553 | fi |
e6cc62c6 VS |
2554 | |
2555 | ||
10f2d63a VZ |
2556 | # Check whether --with-gtk or --without-gtk was given. |
2557 | if test "${with_gtk+set}" = set; then | |
2558 | withval="$with_gtk" | |
2559 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2560 | fi; |
10f2d63a VZ |
2561 | |
2562 | # Check whether --with-motif or --without-motif was given. | |
2563 | if test "${with_motif+set}" = set; then | |
2564 | withval="$with_motif" | |
2565 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2566 | fi; |
10f2d63a | 2567 | |
b4085ce6 GD |
2568 | # Check whether --with-mac or --without-mac was given. |
2569 | if test "${with_mac+set}" = set; then | |
2570 | withval="$with_mac" | |
2571 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2572 | fi; |
b4085ce6 | 2573 | |
ac0c4cc3 DE |
2574 | # Check whether --with-cocoa or --without-cocoa was given. |
2575 | if test "${with_cocoa+set}" = set; then | |
2576 | withval="$with_cocoa" | |
2577 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2578 | fi; |
ac0c4cc3 | 2579 | |
10f2d63a VZ |
2580 | # Check whether --with-wine or --without-wine was given. |
2581 | if test "${with_wine+set}" = set; then | |
2582 | withval="$with_wine" | |
89e6bf6d | 2583 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2584 | fi; |
10f2d63a | 2585 | |
77e13408 RL |
2586 | # Check whether --with-msw or --without-msw was given. |
2587 | if test "${with_msw+set}" = set; then | |
2588 | withval="$with_msw" | |
b4efce5e | 2589 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2590 | fi; |
10f2d63a | 2591 | |
e07802fc VZ |
2592 | # Check whether --with-pm or --without-pm was given. |
2593 | if test "${with_pm+set}" = set; then | |
2594 | withval="$with_pm" | |
2595 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2596 | fi; |
698dcdb6 | 2597 | |
1e6feb95 VZ |
2598 | # Check whether --with-mgl or --without-mgl was given. |
2599 | if test "${with_mgl+set}" = set; then | |
2600 | withval="$with_mgl" | |
6c657b52 | 2601 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2602 | fi; |
1e6feb95 | 2603 | |
1725144d RR |
2604 | # Check whether --with-microwin or --without-microwin was given. |
2605 | if test "${with_microwin+set}" = set; then | |
2606 | withval="$with_microwin" | |
2607 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2608 | fi; |
1725144d | 2609 | |
f79bd02d JS |
2610 | # Check whether --with-x11 or --without-x11 was given. |
2611 | if test "${with_x11+set}" = set; then | |
2612 | withval="$with_x11" | |
3c011993 | 2613 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2614 | fi; |
a0b9e27f | 2615 | |
5005acfe | 2616 | enablestring= |
e6cc62c6 VS |
2617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2618 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2619 | no_cache=0 |
ba875e66 VZ |
2620 | # Check whether --enable-nanox or --disable-nanox was given. |
2621 | if test "${enable_nanox+set}" = set; then | |
2622 | enableval="$enable_nanox" | |
e6cc62c6 | 2623 | |
d8356fa3 | 2624 | if test "$enableval" = yes; then |
ba875e66 | 2625 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2626 | else |
ba875e66 | 2627 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2628 | fi |
e6cc62c6 | 2629 | |
d8356fa3 | 2630 | else |
e6cc62c6 | 2631 | |
d8356fa3 VZ |
2632 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2633 | if test "x$LINE" != x ; then | |
2634 | eval "DEFAULT_$LINE" | |
2635 | else | |
2636 | no_cache=1 | |
2637 | fi | |
2638 | ||
ba875e66 | 2639 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2640 | |
e6cc62c6 | 2641 | fi; |
d8356fa3 | 2642 | |
ba875e66 | 2643 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2644 | if test "$no_cache" != 1; then |
ba875e66 | 2645 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2646 | fi |
2647 | ||
2648 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2649 | echo "$as_me:$LINENO: result: yes" >&5 |
2650 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2651 | else |
e6cc62c6 VS |
2652 | echo "$as_me:$LINENO: result: no" >&5 |
2653 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2654 | fi |
e6cc62c6 | 2655 | |
8284b0c5 | 2656 | |
d74f4b5a | 2657 | |
5005acfe | 2658 | enablestring= |
e6cc62c6 VS |
2659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2660 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2661 | no_cache=0 |
2662 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2663 | if test "${enable_gtk2+set}" = set; then |
2664 | enableval="$enable_gtk2" | |
e6cc62c6 | 2665 | |
d74f4b5a VZ |
2666 | if test "$enableval" = yes; then |
2667 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2668 | else | |
2669 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2670 | fi | |
e6cc62c6 | 2671 | |
10f2d63a | 2672 | else |
e6cc62c6 | 2673 | |
d74f4b5a VZ |
2674 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2675 | if test "x$LINE" != x ; then | |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
2681 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2682 | |
e6cc62c6 | 2683 | fi; |
328a083c | 2684 | |
d74f4b5a VZ |
2685 | eval "$ac_cv_use_gtk2" |
2686 | if test "$no_cache" != 1; then | |
2687 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2688 | fi | |
2689 | ||
2690 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2691 | echo "$as_me:$LINENO: result: yes" >&5 |
2692 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2693 | else |
e6cc62c6 VS |
2694 | echo "$as_me:$LINENO: result: no" >&5 |
2695 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2696 | fi |
d74f4b5a | 2697 | |
5c6fa7d2 | 2698 | |
0f87e84c RR |
2699 | enablestring= |
2700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2701 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2702 | no_cache=0 | |
2703 | # Check whether --enable-gpe or --disable-gpe was given. | |
2704 | if test "${enable_gpe+set}" = set; then | |
2705 | enableval="$enable_gpe" | |
2706 | ||
2707 | if test "$enableval" = yes; then | |
2708 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2709 | else | |
2710 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2711 | fi | |
2712 | ||
2713 | else | |
2714 | ||
2715 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2716 | if test "x$LINE" != x ; then | |
2717 | eval "DEFAULT_$LINE" | |
2718 | else | |
2719 | no_cache=1 | |
2720 | fi | |
2721 | ||
2722 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2723 | ||
2724 | fi; | |
2725 | ||
2726 | eval "$ac_cv_use_gpe" | |
2727 | if test "$no_cache" != 1; then | |
2728 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2729 | fi | |
2730 | ||
2731 | if test "$wxUSE_GPE" = yes; then | |
2732 | echo "$as_me:$LINENO: result: yes" >&5 | |
2733 | echo "${ECHO_T}yes" >&6 | |
2734 | else | |
2735 | echo "$as_me:$LINENO: result: no" >&5 | |
2736 | echo "${ECHO_T}no" >&6 | |
2737 | fi | |
2738 | ||
2739 | ||
e6cc62c6 VS |
2740 | |
2741 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2742 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2743 | no_cache=0 |
e6cc62c6 VS |
2744 | |
2745 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2746 | if test "${with_libpng+set}" = set; then |
2747 | withval="$with_libpng" | |
e6cc62c6 | 2748 | |
10f2d63a | 2749 | if test "$withval" = yes; then |
b12915c1 | 2750 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2751 | elif test "$withval" = no; then |
b12915c1 | 2752 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2753 | elif test "$withval" = sys; then |
2754 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2755 | elif test "$withval" = builtin; then |
2756 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2757 | else |
e6cc62c6 VS |
2758 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2759 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2760 | { (exit 1); exit 1; }; } | |
10f2d63a | 2761 | fi |
e6cc62c6 | 2762 | |
10f2d63a | 2763 | else |
e6cc62c6 | 2764 | |
b12915c1 | 2765 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2766 | if test "x$LINE" != x ; then |
2767 | eval "DEFAULT_$LINE" | |
2768 | else | |
2769 | no_cache=1 | |
2770 | fi | |
2771 | ||
b12915c1 | 2772 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2773 | |
e6cc62c6 | 2774 | fi; |
10f2d63a | 2775 | |
b12915c1 | 2776 | eval "$ac_cv_use_libpng" |
10f2d63a | 2777 | if test "$no_cache" != 1; then |
b12915c1 | 2778 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2779 | fi |
2780 | ||
b12915c1 | 2781 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2782 | echo "$as_me:$LINENO: result: yes" >&5 |
2783 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2784 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2785 | echo "$as_me:$LINENO: result: no" >&5 |
2786 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2787 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2788 | echo "$as_me:$LINENO: result: system version" >&5 |
2789 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2790 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2791 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2792 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2793 | else |
e6cc62c6 VS |
2794 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2795 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2796 | { (exit 1); exit 1; }; } | |
10f2d63a | 2797 | fi |
10f2d63a | 2798 | |
e6cc62c6 VS |
2799 | |
2800 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2801 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2802 | no_cache=0 |
e6cc62c6 VS |
2803 | |
2804 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2805 | if test "${with_libjpeg+set}" = set; then |
2806 | withval="$with_libjpeg" | |
e6cc62c6 | 2807 | |
10f2d63a | 2808 | if test "$withval" = yes; then |
b12915c1 | 2809 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2810 | elif test "$withval" = no; then |
b12915c1 | 2811 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2812 | elif test "$withval" = sys; then |
2813 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2814 | elif test "$withval" = builtin; then |
2815 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2816 | else |
e6cc62c6 VS |
2817 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2818 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2819 | { (exit 1); exit 1; }; } | |
10f2d63a | 2820 | fi |
e6cc62c6 | 2821 | |
10f2d63a | 2822 | else |
e6cc62c6 | 2823 | |
b12915c1 | 2824 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2825 | if test "x$LINE" != x ; then |
2826 | eval "DEFAULT_$LINE" | |
2827 | else | |
2828 | no_cache=1 | |
2829 | fi | |
2830 | ||
b12915c1 | 2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2832 | |
e6cc62c6 | 2833 | fi; |
10f2d63a | 2834 | |
b12915c1 | 2835 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2836 | if test "$no_cache" != 1; then |
b12915c1 | 2837 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2838 | fi |
2839 | ||
b12915c1 | 2840 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2841 | echo "$as_me:$LINENO: result: yes" >&5 |
2842 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2843 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2844 | echo "$as_me:$LINENO: result: no" >&5 |
2845 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2846 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2847 | echo "$as_me:$LINENO: result: system version" >&5 |
2848 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2849 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2850 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2851 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2852 | else |
e6cc62c6 VS |
2853 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2854 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
10f2d63a | 2856 | fi |
10f2d63a | 2857 | |
e6cc62c6 VS |
2858 | |
2859 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2860 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2861 | no_cache=0 |
e6cc62c6 VS |
2862 | |
2863 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2864 | if test "${with_libtiff+set}" = set; then |
2865 | withval="$with_libtiff" | |
e6cc62c6 | 2866 | |
10f2d63a | 2867 | if test "$withval" = yes; then |
b12915c1 | 2868 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2869 | elif test "$withval" = no; then |
b12915c1 | 2870 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2871 | elif test "$withval" = sys; then |
2872 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2873 | elif test "$withval" = builtin; then |
2874 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2875 | else |
e6cc62c6 VS |
2876 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2877 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2878 | { (exit 1); exit 1; }; } | |
10f2d63a | 2879 | fi |
e6cc62c6 | 2880 | |
10f2d63a | 2881 | else |
e6cc62c6 | 2882 | |
b12915c1 | 2883 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2884 | if test "x$LINE" != x ; then |
2885 | eval "DEFAULT_$LINE" | |
2886 | else | |
2887 | no_cache=1 | |
2888 | fi | |
2889 | ||
b12915c1 | 2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2891 | |
e6cc62c6 | 2892 | fi; |
10f2d63a | 2893 | |
b12915c1 | 2894 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2895 | if test "$no_cache" != 1; then |
b12915c1 | 2896 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2897 | fi |
2898 | ||
b12915c1 | 2899 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2900 | echo "$as_me:$LINENO: result: yes" >&5 |
2901 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2902 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2903 | echo "$as_me:$LINENO: result: no" >&5 |
2904 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2905 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2906 | echo "$as_me:$LINENO: result: system version" >&5 |
2907 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2908 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2909 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2910 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2911 | else |
e6cc62c6 VS |
2912 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2913 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2914 | { (exit 1); exit 1; }; } | |
10f2d63a | 2915 | fi |
10f2d63a | 2916 | |
e6cc62c6 | 2917 | |
89fe663f VZ |
2918 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2919 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2920 | no_cache=0 | |
2921 | ||
2922 | # Check whether --with-libxpm or --without-libxpm was given. | |
2923 | if test "${with_libxpm+set}" = set; then | |
2924 | withval="$with_libxpm" | |
2925 | ||
2926 | if test "$withval" = yes; then | |
2927 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2928 | elif test "$withval" = no; then | |
2929 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2930 | elif test "$withval" = sys; then | |
2931 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2932 | elif test "$withval" = builtin; then | |
2933 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2934 | else | |
2935 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2936 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2937 | { (exit 1); exit 1; }; } | |
2938 | fi | |
2939 | ||
2940 | else | |
2941 | ||
2942 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2943 | if test "x$LINE" != x ; then | |
2944 | eval "DEFAULT_$LINE" | |
2945 | else | |
2946 | no_cache=1 | |
2947 | fi | |
2948 | ||
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2950 | ||
2951 | fi; | |
2952 | ||
2953 | eval "$ac_cv_use_libxpm" | |
2954 | if test "$no_cache" != 1; then | |
2955 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2956 | fi | |
2957 | ||
2958 | if test "$wxUSE_LIBXPM" = yes; then | |
2959 | echo "$as_me:$LINENO: result: yes" >&5 | |
2960 | echo "${ECHO_T}yes" >&6 | |
2961 | elif test "$wxUSE_LIBXPM" = no; then | |
2962 | echo "$as_me:$LINENO: result: no" >&5 | |
2963 | echo "${ECHO_T}no" >&6 | |
2964 | elif test "$wxUSE_LIBXPM" = sys; then | |
2965 | echo "$as_me:$LINENO: result: system version" >&5 | |
2966 | echo "${ECHO_T}system version" >&6 | |
2967 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2968 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2969 | echo "${ECHO_T}builtin version" >&6 | |
2970 | else | |
2971 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2972 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2973 | { (exit 1); exit 1; }; } | |
2974 | fi | |
2975 | ||
2976 | ||
3527f29c VS |
2977 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2978 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2979 | no_cache=0 | |
2980 | ||
2981 | # Check whether --with-libmspack or --without-libmspack was given. | |
2982 | if test "${with_libmspack+set}" = set; then | |
2983 | withval="$with_libmspack" | |
2984 | ||
2985 | if test "$withval" = yes; then | |
2986 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2987 | else | |
2988 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2989 | fi | |
2990 | ||
2991 | else | |
2992 | ||
2993 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2994 | if test "x$LINE" != x ; then | |
2995 | eval "DEFAULT_$LINE" | |
2996 | else | |
2997 | no_cache=1 | |
2998 | fi | |
2999 | ||
3000 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3001 | ||
3002 | fi; | |
3003 | ||
3004 | eval "$ac_cv_use_libmspack" | |
3005 | if test "$no_cache" != 1; then | |
3006 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3007 | fi | |
3008 | ||
3009 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3010 | echo "$as_me:$LINENO: result: yes" >&5 | |
3011 | echo "${ECHO_T}yes" >&6 | |
3012 | else | |
3013 | echo "$as_me:$LINENO: result: no" >&5 | |
3014 | echo "${ECHO_T}no" >&6 | |
3015 | fi | |
3016 | ||
3017 | ||
f93ca9fd VS |
3018 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 |
3019 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3020 | no_cache=0 | |
3021 | ||
3022 | # Check whether --with-sdl or --without-sdl was given. | |
3023 | if test "${with_sdl+set}" = set; then | |
3024 | withval="$with_sdl" | |
3025 | ||
3026 | if test "$withval" = yes; then | |
3027 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3028 | else | |
3029 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3030 | fi | |
3031 | ||
3032 | else | |
3033 | ||
3034 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3042 | ||
3043 | fi; | |
3044 | ||
3045 | eval "$ac_cv_use_sdl" | |
3046 | if test "$no_cache" != 1; then | |
3047 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3048 | fi | |
3049 | ||
3050 | if test "$wxUSE_LIBSDL" = yes; then | |
3051 | echo "$as_me:$LINENO: result: yes" >&5 | |
3052 | echo "${ECHO_T}yes" >&6 | |
3053 | else | |
3054 | echo "$as_me:$LINENO: result: no" >&5 | |
3055 | echo "${ECHO_T}no" >&6 | |
3056 | fi | |
3057 | ||
3058 | ||
e6cc62c6 VS |
3059 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3060 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 3061 | no_cache=0 |
e6cc62c6 VS |
3062 | |
3063 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
3064 | if test "${with_opengl+set}" = set; then |
3065 | withval="$with_opengl" | |
e6cc62c6 | 3066 | |
10f2d63a | 3067 | if test "$withval" = yes; then |
b12915c1 | 3068 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 3069 | else |
b12915c1 | 3070 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 3071 | fi |
e6cc62c6 | 3072 | |
10f2d63a | 3073 | else |
e6cc62c6 | 3074 | |
b12915c1 | 3075 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
3076 | if test "x$LINE" != x ; then |
3077 | eval "DEFAULT_$LINE" | |
3078 | else | |
3079 | no_cache=1 | |
3080 | fi | |
3081 | ||
b12915c1 | 3082 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 3083 | |
e6cc62c6 | 3084 | fi; |
10f2d63a | 3085 | |
b12915c1 | 3086 | eval "$ac_cv_use_opengl" |
10f2d63a | 3087 | if test "$no_cache" != 1; then |
b12915c1 | 3088 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3089 | fi |
3090 | ||
b12915c1 | 3091 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
3092 | echo "$as_me:$LINENO: result: yes" >&5 |
3093 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3094 | else |
e6cc62c6 VS |
3095 | echo "$as_me:$LINENO: result: no" >&5 |
3096 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3097 | fi |
e6cc62c6 | 3098 | |
10f2d63a | 3099 | |
b12915c1 VZ |
3100 | fi |
3101 | ||
5c6fa7d2 | 3102 | |
e6cc62c6 VS |
3103 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
3104 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 3105 | no_cache=0 |
e6cc62c6 VS |
3106 | |
3107 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
3108 | if test "${with_dmalloc+set}" = set; then |
3109 | withval="$with_dmalloc" | |
e6cc62c6 | 3110 | |
c7a2bf27 | 3111 | if test "$withval" = yes; then |
b12915c1 | 3112 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 3113 | else |
b12915c1 | 3114 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 3115 | fi |
e6cc62c6 | 3116 | |
c7a2bf27 | 3117 | else |
e6cc62c6 | 3118 | |
b12915c1 | 3119 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
3120 | if test "x$LINE" != x ; then |
3121 | eval "DEFAULT_$LINE" | |
3122 | else | |
3123 | no_cache=1 | |
3124 | fi | |
3125 | ||
b12915c1 | 3126 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 3127 | |
e6cc62c6 | 3128 | fi; |
c7a2bf27 | 3129 | |
b12915c1 | 3130 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 3131 | if test "$no_cache" != 1; then |
b12915c1 | 3132 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
3133 | fi |
3134 | ||
b12915c1 | 3135 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3136 | echo "$as_me:$LINENO: result: yes" >&5 |
3137 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3138 | else |
e6cc62c6 VS |
3139 | echo "$as_me:$LINENO: result: no" >&5 |
3140 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3141 | fi |
c7a2bf27 | 3142 | |
e6cc62c6 VS |
3143 | |
3144 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3145 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3146 | no_cache=0 |
e6cc62c6 VS |
3147 | |
3148 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3149 | if test "${with_regex+set}" = set; then |
3150 | withval="$with_regex" | |
e6cc62c6 | 3151 | |
3e44f09d VZ |
3152 | if test "$withval" = yes; then |
3153 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3154 | elif test "$withval" = no; then | |
3155 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3156 | elif test "$withval" = sys; then | |
3157 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3158 | elif test "$withval" = builtin; then |
3159 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3160 | else |
e6cc62c6 VS |
3161 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3162 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3163 | { (exit 1); exit 1; }; } | |
3e44f09d | 3164 | fi |
e6cc62c6 | 3165 | |
3e44f09d | 3166 | else |
e6cc62c6 | 3167 | |
3e44f09d VZ |
3168 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3169 | if test "x$LINE" != x ; then | |
3170 | eval "DEFAULT_$LINE" | |
3171 | else | |
3172 | no_cache=1 | |
3173 | fi | |
3174 | ||
3175 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3176 | |
e6cc62c6 | 3177 | fi; |
3e44f09d VZ |
3178 | |
3179 | eval "$ac_cv_use_regex" | |
3180 | if test "$no_cache" != 1; then | |
3181 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3182 | fi | |
3183 | ||
3184 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3185 | echo "$as_me:$LINENO: result: yes" >&5 |
3186 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3187 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3188 | echo "$as_me:$LINENO: result: no" >&5 |
3189 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3190 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3191 | echo "$as_me:$LINENO: result: system version" >&5 |
3192 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3193 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3194 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3195 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3196 | else |
e6cc62c6 VS |
3197 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3198 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3199 | { (exit 1); exit 1; }; } | |
3e44f09d | 3200 | fi |
3e44f09d | 3201 | |
e6cc62c6 VS |
3202 | |
3203 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3204 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3205 | no_cache=0 |
e6cc62c6 VS |
3206 | |
3207 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3208 | if test "${with_zlib+set}" = set; then |
3209 | withval="$with_zlib" | |
e6cc62c6 | 3210 | |
10f2d63a | 3211 | if test "$withval" = yes; then |
b12915c1 | 3212 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3213 | elif test "$withval" = no; then |
b12915c1 | 3214 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3215 | elif test "$withval" = sys; then |
3216 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3217 | elif test "$withval" = builtin; then |
3218 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3219 | else |
e6cc62c6 VS |
3220 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3221 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3222 | { (exit 1); exit 1; }; } | |
10f2d63a | 3223 | fi |
e6cc62c6 | 3224 | |
10f2d63a | 3225 | else |
e6cc62c6 | 3226 | |
b12915c1 | 3227 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3228 | if test "x$LINE" != x ; then |
3229 | eval "DEFAULT_$LINE" | |
3230 | else | |
3231 | no_cache=1 | |
3232 | fi | |
3233 | ||
b12915c1 | 3234 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3235 | |
e6cc62c6 | 3236 | fi; |
10f2d63a | 3237 | |
b12915c1 | 3238 | eval "$ac_cv_use_zlib" |
10f2d63a | 3239 | if test "$no_cache" != 1; then |
b12915c1 | 3240 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3241 | fi |
3242 | ||
b12915c1 | 3243 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3244 | echo "$as_me:$LINENO: result: yes" >&5 |
3245 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3246 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3247 | echo "$as_me:$LINENO: result: no" >&5 |
3248 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3249 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3250 | echo "$as_me:$LINENO: result: system version" >&5 |
3251 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3252 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3253 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3254 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3255 | else |
e6cc62c6 VS |
3256 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3257 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3258 | { (exit 1); exit 1; }; } | |
10f2d63a | 3259 | fi |
10f2d63a | 3260 | |
e6cc62c6 VS |
3261 | |
3262 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3263 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3264 | no_cache=0 |
e6cc62c6 VS |
3265 | |
3266 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3267 | if test "${with_odbc+set}" = set; then |
3268 | withval="$with_odbc" | |
e6cc62c6 | 3269 | |
10f2d63a VZ |
3270 | if test "$withval" = yes; then |
3271 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3272 | elif test "$withval" = no; then |
10f2d63a | 3273 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3274 | elif test "$withval" = sys; then |
3275 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3276 | elif test "$withval" = builtin; then | |
3277 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3278 | else | |
e6cc62c6 VS |
3279 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3280 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3281 | { (exit 1); exit 1; }; } | |
10f2d63a | 3282 | fi |
e6cc62c6 | 3283 | |
10f2d63a | 3284 | else |
e6cc62c6 | 3285 | |
10f2d63a VZ |
3286 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3287 | if test "x$LINE" != x ; then | |
3288 | eval "DEFAULT_$LINE" | |
3289 | else | |
3290 | no_cache=1 | |
3291 | fi | |
3292 | ||
3293 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3294 | |
e6cc62c6 | 3295 | fi; |
10f2d63a VZ |
3296 | |
3297 | eval "$ac_cv_use_odbc" | |
3298 | if test "$no_cache" != 1; then | |
3299 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3300 | fi | |
3301 | ||
3302 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3303 | echo "$as_me:$LINENO: result: yes" >&5 |
3304 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3305 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3306 | echo "$as_me:$LINENO: result: no" >&5 |
3307 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3308 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3309 | echo "$as_me:$LINENO: result: system version" >&5 |
3310 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3311 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3312 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3313 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3314 | else |
e6cc62c6 VS |
3315 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3316 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3317 | { (exit 1); exit 1; }; } | |
10f2d63a | 3318 | fi |
e6cc62c6 | 3319 | |
52127426 | 3320 | |
672abd7a VS |
3321 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3322 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3323 | no_cache=0 | |
3324 | ||
3325 | # Check whether --with-expat or --without-expat was given. | |
3326 | if test "${with_expat+set}" = set; then | |
3327 | withval="$with_expat" | |
3328 | ||
3329 | if test "$withval" = yes; then | |
3330 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3331 | elif test "$withval" = no; then | |
3332 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3333 | elif test "$withval" = sys; then | |
3334 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3335 | elif test "$withval" = builtin; then | |
3336 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3337 | else | |
3338 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3339 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3340 | { (exit 1); exit 1; }; } | |
3341 | fi | |
3342 | ||
3343 | else | |
3344 | ||
3345 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3346 | if test "x$LINE" != x ; then | |
3347 | eval "DEFAULT_$LINE" | |
3348 | else | |
3349 | no_cache=1 | |
3350 | fi | |
3351 | ||
3352 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3353 | ||
3354 | fi; | |
3355 | ||
3356 | eval "$ac_cv_use_expat" | |
3357 | if test "$no_cache" != 1; then | |
3358 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3359 | fi | |
3360 | ||
3361 | if test "$wxUSE_EXPAT" = yes; then | |
3362 | echo "$as_me:$LINENO: result: yes" >&5 | |
3363 | echo "${ECHO_T}yes" >&6 | |
3364 | elif test "$wxUSE_EXPAT" = no; then | |
3365 | echo "$as_me:$LINENO: result: no" >&5 | |
3366 | echo "${ECHO_T}no" >&6 | |
3367 | elif test "$wxUSE_EXPAT" = sys; then | |
3368 | echo "$as_me:$LINENO: result: system version" >&5 | |
3369 | echo "${ECHO_T}system version" >&6 | |
3370 | elif test "$wxUSE_EXPAT" = builtin; then | |
3371 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3372 | echo "${ECHO_T}builtin version" >&6 | |
3373 | else | |
3374 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3375 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3376 | { (exit 1); exit 1; }; } | |
3377 | fi | |
3378 | ||
3379 | ||
8284b0c5 MB |
3380 | |
3381 | ||
5005acfe | 3382 | enablestring= |
e6cc62c6 VS |
3383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3384 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3385 | no_cache=0 |
3386 | # Check whether --enable-shared or --disable-shared was given. | |
3387 | if test "${enable_shared+set}" = set; then | |
3388 | enableval="$enable_shared" | |
e6cc62c6 | 3389 | |
10f2d63a VZ |
3390 | if test "$enableval" = yes; then |
3391 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3392 | else | |
3393 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3394 | fi | |
e6cc62c6 | 3395 | |
10f2d63a | 3396 | else |
e6cc62c6 | 3397 | |
10f2d63a VZ |
3398 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3399 | if test "x$LINE" != x ; then | |
3400 | eval "DEFAULT_$LINE" | |
3401 | else | |
3402 | no_cache=1 | |
3403 | fi | |
3404 | ||
3405 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3406 | |
e6cc62c6 | 3407 | fi; |
10f2d63a VZ |
3408 | |
3409 | eval "$ac_cv_use_shared" | |
3410 | if test "$no_cache" != 1; then | |
3411 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3412 | fi | |
3413 | ||
3414 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3415 | echo "$as_me:$LINENO: result: yes" >&5 |
3416 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3417 | else |
e6cc62c6 VS |
3418 | echo "$as_me:$LINENO: result: no" >&5 |
3419 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3420 | fi |
e6cc62c6 | 3421 | |
10f2d63a | 3422 | |
5005acfe | 3423 | enablestring= |
e6cc62c6 VS |
3424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3425 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3426 | no_cache=0 |
3427 | # Check whether --enable-optimise or --disable-optimise was given. | |
3428 | if test "${enable_optimise+set}" = set; then | |
3429 | enableval="$enable_optimise" | |
e6cc62c6 | 3430 | |
10f2d63a VZ |
3431 | if test "$enableval" = yes; then |
3432 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3433 | else | |
3434 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3435 | fi | |
e6cc62c6 | 3436 | |
10f2d63a | 3437 | else |
e6cc62c6 | 3438 | |
10f2d63a VZ |
3439 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3440 | if test "x$LINE" != x ; then | |
3441 | eval "DEFAULT_$LINE" | |
3442 | else | |
3443 | no_cache=1 | |
3444 | fi | |
3445 | ||
3446 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3447 | |
e6cc62c6 | 3448 | fi; |
10f2d63a VZ |
3449 | |
3450 | eval "$ac_cv_use_optimise" | |
3451 | if test "$no_cache" != 1; then | |
3452 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3453 | fi | |
3454 | ||
3455 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3456 | echo "$as_me:$LINENO: result: yes" >&5 |
3457 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3458 | else |
e6cc62c6 VS |
3459 | echo "$as_me:$LINENO: result: no" >&5 |
3460 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3461 | fi |
e6cc62c6 | 3462 | |
10f2d63a | 3463 | |
5005acfe | 3464 | enablestring= |
e6cc62c6 VS |
3465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3466 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3467 | no_cache=0 |
3468 | # Check whether --enable-debug or --disable-debug was given. | |
3469 | if test "${enable_debug+set}" = set; then | |
3470 | enableval="$enable_debug" | |
e6cc62c6 | 3471 | |
10f2d63a VZ |
3472 | if test "$enableval" = yes; then |
3473 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3474 | else | |
3475 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3476 | fi | |
e6cc62c6 | 3477 | |
10f2d63a | 3478 | else |
e6cc62c6 | 3479 | |
10f2d63a VZ |
3480 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3488 | |
e6cc62c6 | 3489 | fi; |
10f2d63a VZ |
3490 | |
3491 | eval "$ac_cv_use_debug" | |
3492 | if test "$no_cache" != 1; then | |
3493 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3494 | fi | |
3495 | ||
3496 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3497 | echo "$as_me:$LINENO: result: yes" >&5 |
3498 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3499 | else |
e6cc62c6 VS |
3500 | echo "$as_me:$LINENO: result: no" >&5 |
3501 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3502 | fi |
e6cc62c6 | 3503 | |
52127426 | 3504 | |
df5168c4 MB |
3505 | enablestring= |
3506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3507 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3508 | no_cache=0 | |
3509 | # Check whether --enable-stl or --disable-stl was given. | |
3510 | if test "${enable_stl+set}" = set; then | |
3511 | enableval="$enable_stl" | |
3512 | ||
3513 | if test "$enableval" = yes; then | |
3514 | ac_cv_use_stl='wxUSE_STL=yes' | |
3515 | else | |
3516 | ac_cv_use_stl='wxUSE_STL=no' | |
3517 | fi | |
3518 | ||
3519 | else | |
3520 | ||
3521 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3522 | if test "x$LINE" != x ; then | |
3523 | eval "DEFAULT_$LINE" | |
3524 | else | |
3525 | no_cache=1 | |
3526 | fi | |
3527 | ||
3528 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3529 | ||
3530 | fi; | |
3531 | ||
3532 | eval "$ac_cv_use_stl" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_STL" = yes; then | |
3538 | echo "$as_me:$LINENO: result: yes" >&5 | |
3539 | echo "${ECHO_T}yes" >&6 | |
3540 | else | |
3541 | echo "$as_me:$LINENO: result: no" >&5 | |
3542 | echo "${ECHO_T}no" >&6 | |
3543 | fi | |
3544 | ||
3545 | ||
10f2d63a VZ |
3546 | if test "$wxUSE_DEBUG" = "yes"; then |
3547 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3548 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3549 | BUILD=debug |
10f2d63a VZ |
3550 | elif test "$wxUSE_DEBUG" = "no"; then |
3551 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3552 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3553 | BUILD=release |
10f2d63a VZ |
3554 | fi |
3555 | ||
8284b0c5 | 3556 | |
5005acfe | 3557 | enablestring= |
e6cc62c6 VS |
3558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3559 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3560 | no_cache=0 |
3561 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3562 | if test "${enable_debug_flag+set}" = set; then | |
3563 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3564 | |
10f2d63a VZ |
3565 | if test "$enableval" = yes; then |
3566 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3567 | else | |
3568 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3569 | fi | |
e6cc62c6 | 3570 | |
10f2d63a | 3571 | else |
e6cc62c6 | 3572 | |
10f2d63a VZ |
3573 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3574 | if test "x$LINE" != x ; then | |
3575 | eval "DEFAULT_$LINE" | |
3576 | else | |
3577 | no_cache=1 | |
3578 | fi | |
3579 | ||
3580 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3581 | |
e6cc62c6 | 3582 | fi; |
10f2d63a VZ |
3583 | |
3584 | eval "$ac_cv_use_debug_flag" | |
3585 | if test "$no_cache" != 1; then | |
3586 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3587 | fi | |
3588 | ||
3589 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3590 | echo "$as_me:$LINENO: result: yes" >&5 |
3591 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3592 | else |
e6cc62c6 VS |
3593 | echo "$as_me:$LINENO: result: no" >&5 |
3594 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3595 | fi |
e6cc62c6 | 3596 | |
10f2d63a | 3597 | |
5005acfe | 3598 | enablestring= |
e6cc62c6 VS |
3599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3600 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3601 | no_cache=0 |
3602 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3603 | if test "${enable_debug_info+set}" = set; then | |
3604 | enableval="$enable_debug_info" | |
e6cc62c6 | 3605 | |
10f2d63a VZ |
3606 | if test "$enableval" = yes; then |
3607 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3608 | else | |
3609 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3610 | fi | |
e6cc62c6 | 3611 | |
10f2d63a | 3612 | else |
e6cc62c6 | 3613 | |
10f2d63a VZ |
3614 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3615 | if test "x$LINE" != x ; then | |
3616 | eval "DEFAULT_$LINE" | |
3617 | else | |
3618 | no_cache=1 | |
3619 | fi | |
3620 | ||
3621 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3622 | |
e6cc62c6 | 3623 | fi; |
10f2d63a VZ |
3624 | |
3625 | eval "$ac_cv_use_debug_info" | |
3626 | if test "$no_cache" != 1; then | |
3627 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3628 | fi | |
3629 | ||
3630 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3631 | echo "$as_me:$LINENO: result: yes" >&5 |
3632 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3633 | else |
e6cc62c6 VS |
3634 | echo "$as_me:$LINENO: result: no" >&5 |
3635 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3636 | fi |
e6cc62c6 | 3637 | |
10f2d63a | 3638 | |
5005acfe | 3639 | enablestring= |
e6cc62c6 VS |
3640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3641 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3642 | no_cache=0 |
3643 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3644 | if test "${enable_debug_gdb+set}" = set; then | |
3645 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3646 | |
10f2d63a VZ |
3647 | if test "$enableval" = yes; then |
3648 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3649 | else | |
3650 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3651 | fi | |
e6cc62c6 | 3652 | |
10f2d63a | 3653 | else |
e6cc62c6 | 3654 | |
10f2d63a VZ |
3655 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3656 | if test "x$LINE" != x ; then | |
3657 | eval "DEFAULT_$LINE" | |
3658 | else | |
3659 | no_cache=1 | |
3660 | fi | |
3661 | ||
3662 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3663 | |
e6cc62c6 | 3664 | fi; |
10f2d63a VZ |
3665 | |
3666 | eval "$ac_cv_use_debug_gdb" | |
3667 | if test "$no_cache" != 1; then | |
3668 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3669 | fi | |
3670 | ||
3671 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3672 | echo "$as_me:$LINENO: result: yes" >&5 |
3673 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3674 | else |
e6cc62c6 VS |
3675 | echo "$as_me:$LINENO: result: no" >&5 |
3676 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3677 | fi |
e6cc62c6 | 3678 | |
10f2d63a | 3679 | |
5005acfe | 3680 | enablestring= |
e6cc62c6 VS |
3681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3682 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3683 | no_cache=0 |
3684 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3685 | if test "${enable_debug_cntxt+set}" = set; then | |
3686 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3687 | |
10f2d63a VZ |
3688 | if test "$enableval" = yes; then |
3689 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3690 | else | |
3691 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3692 | fi | |
e6cc62c6 | 3693 | |
10f2d63a | 3694 | else |
e6cc62c6 | 3695 | |
10f2d63a VZ |
3696 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3697 | if test "x$LINE" != x ; then | |
3698 | eval "DEFAULT_$LINE" | |
3699 | else | |
3700 | no_cache=1 | |
3701 | fi | |
3702 | ||
3703 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3704 | |
e6cc62c6 | 3705 | fi; |
10f2d63a VZ |
3706 | |
3707 | eval "$ac_cv_use_debug_cntxt" | |
3708 | if test "$no_cache" != 1; then | |
3709 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3710 | fi | |
3711 | ||
3712 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3713 | echo "$as_me:$LINENO: result: yes" >&5 |
3714 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3715 | else |
e6cc62c6 VS |
3716 | echo "$as_me:$LINENO: result: no" >&5 |
3717 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3718 | fi |
e6cc62c6 | 3719 | |
10f2d63a | 3720 | |
5005acfe | 3721 | enablestring= |
e6cc62c6 VS |
3722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3723 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3724 | no_cache=0 |
3725 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3726 | if test "${enable_mem_tracing+set}" = set; then | |
3727 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3728 | |
10f2d63a VZ |
3729 | if test "$enableval" = yes; then |
3730 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3731 | else | |
3732 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3733 | fi | |
e6cc62c6 | 3734 | |
10f2d63a | 3735 | else |
e6cc62c6 | 3736 | |
10f2d63a VZ |
3737 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3738 | if test "x$LINE" != x ; then | |
3739 | eval "DEFAULT_$LINE" | |
3740 | else | |
3741 | no_cache=1 | |
3742 | fi | |
3743 | ||
3744 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3745 | |
e6cc62c6 | 3746 | fi; |
10f2d63a VZ |
3747 | |
3748 | eval "$ac_cv_use_mem_tracing" | |
3749 | if test "$no_cache" != 1; then | |
3750 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3751 | fi | |
3752 | ||
3753 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3754 | echo "$as_me:$LINENO: result: yes" >&5 |
3755 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3756 | else |
e6cc62c6 VS |
3757 | echo "$as_me:$LINENO: result: no" >&5 |
3758 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3759 | fi |
e6cc62c6 | 3760 | |
10f2d63a | 3761 | |
5005acfe | 3762 | enablestring= |
e6cc62c6 VS |
3763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3764 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3765 | no_cache=0 |
3766 | # Check whether --enable-profile or --disable-profile was given. | |
3767 | if test "${enable_profile+set}" = set; then | |
3768 | enableval="$enable_profile" | |
e6cc62c6 | 3769 | |
10f2d63a VZ |
3770 | if test "$enableval" = yes; then |
3771 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3772 | else | |
3773 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3774 | fi | |
e6cc62c6 | 3775 | |
10f2d63a | 3776 | else |
e6cc62c6 | 3777 | |
10f2d63a VZ |
3778 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3779 | if test "x$LINE" != x ; then | |
3780 | eval "DEFAULT_$LINE" | |
3781 | else | |
3782 | no_cache=1 | |
3783 | fi | |
3784 | ||
3785 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3786 | |
e6cc62c6 | 3787 | fi; |
10f2d63a VZ |
3788 | |
3789 | eval "$ac_cv_use_profile" | |
3790 | if test "$no_cache" != 1; then | |
3791 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3792 | fi | |
3793 | ||
3794 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3795 | echo "$as_me:$LINENO: result: yes" >&5 |
3796 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3797 | else |
e6cc62c6 VS |
3798 | echo "$as_me:$LINENO: result: no" >&5 |
3799 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3800 | fi |
e6cc62c6 | 3801 | |
10f2d63a | 3802 | |
5005acfe | 3803 | enablestring= |
e6cc62c6 VS |
3804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3805 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3806 | no_cache=0 |
3807 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3808 | if test "${enable_no_rtti+set}" = set; then | |
3809 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3810 | |
10f2d63a VZ |
3811 | if test "$enableval" = yes; then |
3812 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3813 | else | |
3814 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3815 | fi | |
e6cc62c6 | 3816 | |
10f2d63a | 3817 | else |
e6cc62c6 | 3818 | |
10f2d63a VZ |
3819 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3820 | if test "x$LINE" != x ; then | |
3821 | eval "DEFAULT_$LINE" | |
3822 | else | |
3823 | no_cache=1 | |
3824 | fi | |
3825 | ||
3826 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3827 | |
e6cc62c6 | 3828 | fi; |
10f2d63a VZ |
3829 | |
3830 | eval "$ac_cv_use_no_rtti" | |
3831 | if test "$no_cache" != 1; then | |
3832 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3833 | fi | |
3834 | ||
3835 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3836 | echo "$as_me:$LINENO: result: yes" >&5 |
3837 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3838 | else |
e6cc62c6 VS |
3839 | echo "$as_me:$LINENO: result: no" >&5 |
3840 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3841 | fi |
e6cc62c6 | 3842 | |
10f2d63a | 3843 | |
5005acfe | 3844 | enablestring= |
e6cc62c6 VS |
3845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3846 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3847 | no_cache=0 |
3848 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3849 | if test "${enable_no_exceptions+set}" = set; then | |
3850 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3851 | |
10f2d63a VZ |
3852 | if test "$enableval" = yes; then |
3853 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3854 | else | |
3855 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3856 | fi | |
e6cc62c6 | 3857 | |
10f2d63a | 3858 | else |
e6cc62c6 | 3859 | |
10f2d63a VZ |
3860 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3861 | if test "x$LINE" != x ; then | |
3862 | eval "DEFAULT_$LINE" | |
3863 | else | |
3864 | no_cache=1 | |
3865 | fi | |
3866 | ||
3867 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3868 | |
e6cc62c6 | 3869 | fi; |
10f2d63a VZ |
3870 | |
3871 | eval "$ac_cv_use_no_exceptions" | |
3872 | if test "$no_cache" != 1; then | |
3873 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3874 | fi | |
3875 | ||
3876 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3877 | echo "$as_me:$LINENO: result: yes" >&5 |
3878 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3879 | else |
e6cc62c6 VS |
3880 | echo "$as_me:$LINENO: result: no" >&5 |
3881 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3882 | fi |
e6cc62c6 | 3883 | |
10f2d63a | 3884 | |
5005acfe | 3885 | enablestring= |
e6cc62c6 VS |
3886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3887 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3888 | no_cache=0 |
3889 | # Check whether --enable-permissive or --disable-permissive was given. | |
3890 | if test "${enable_permissive+set}" = set; then | |
3891 | enableval="$enable_permissive" | |
e6cc62c6 | 3892 | |
10f2d63a VZ |
3893 | if test "$enableval" = yes; then |
3894 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3895 | else | |
3896 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3897 | fi | |
e6cc62c6 | 3898 | |
10f2d63a | 3899 | else |
e6cc62c6 | 3900 | |
10f2d63a VZ |
3901 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3902 | if test "x$LINE" != x ; then | |
3903 | eval "DEFAULT_$LINE" | |
3904 | else | |
3905 | no_cache=1 | |
3906 | fi | |
3907 | ||
3908 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3909 | |
e6cc62c6 | 3910 | fi; |
10f2d63a VZ |
3911 | |
3912 | eval "$ac_cv_use_permissive" | |
3913 | if test "$no_cache" != 1; then | |
3914 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3915 | fi | |
3916 | ||
3917 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3918 | echo "$as_me:$LINENO: result: yes" >&5 |
3919 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3920 | else |
e6cc62c6 VS |
3921 | echo "$as_me:$LINENO: result: no" >&5 |
3922 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3923 | fi |
e6cc62c6 | 3924 | |
10f2d63a | 3925 | |
5005acfe | 3926 | enablestring= |
e6cc62c6 VS |
3927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3928 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3929 | no_cache=0 |
3930 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3931 | if test "${enable_no_deps+set}" = set; then | |
3932 | enableval="$enable_no_deps" | |
e6cc62c6 | 3933 | |
10f2d63a VZ |
3934 | if test "$enableval" = yes; then |
3935 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3936 | else | |
3937 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3938 | fi | |
e6cc62c6 | 3939 | |
10f2d63a | 3940 | else |
e6cc62c6 | 3941 | |
10f2d63a VZ |
3942 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3943 | if test "x$LINE" != x ; then | |
3944 | eval "DEFAULT_$LINE" | |
3945 | else | |
3946 | no_cache=1 | |
3947 | fi | |
3948 | ||
3949 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3950 | |
e6cc62c6 | 3951 | fi; |
10f2d63a VZ |
3952 | |
3953 | eval "$ac_cv_use_no_deps" | |
3954 | if test "$no_cache" != 1; then | |
3955 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3956 | fi | |
3957 | ||
3958 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3959 | echo "$as_me:$LINENO: result: yes" >&5 |
3960 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3961 | else |
e6cc62c6 VS |
3962 | echo "$as_me:$LINENO: result: no" >&5 |
3963 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3964 | fi |
e6cc62c6 | 3965 | |
52127426 | 3966 | |
8284b0c5 | 3967 | |
65d8ef1e | 3968 | enablestring= |
e6cc62c6 VS |
3969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3970 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3971 | no_cache=0 |
3972 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3973 | if test "${enable_compat22+set}" = set; then | |
3974 | enableval="$enable_compat22" | |
e6cc62c6 | 3975 | |
54276ccf VZ |
3976 | if test "$enableval" = yes; then |
3977 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3978 | else | |
3979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3980 | fi | |
e6cc62c6 | 3981 | |
54276ccf | 3982 | else |
e6cc62c6 | 3983 | |
54276ccf VZ |
3984 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3985 | if test "x$LINE" != x ; then | |
3986 | eval "DEFAULT_$LINE" | |
3987 | else | |
3988 | no_cache=1 | |
3989 | fi | |
3990 | ||
3991 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3992 | |
e6cc62c6 | 3993 | fi; |
54276ccf VZ |
3994 | |
3995 | eval "$ac_cv_use_compat22" | |
3996 | if test "$no_cache" != 1; then | |
3997 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3998 | fi | |
3999 | ||
4000 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
4001 | echo "$as_me:$LINENO: result: yes" >&5 |
4002 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 4003 | else |
e6cc62c6 VS |
4004 | echo "$as_me:$LINENO: result: no" >&5 |
4005 | echo "${ECHO_T}no" >&6 | |
54276ccf | 4006 | fi |
e6cc62c6 | 4007 | |
54276ccf | 4008 | |
65d8ef1e | 4009 | enablestring=disable |
e6cc62c6 VS |
4010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
4011 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
4012 | no_cache=0 |
4013 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4014 | if test "${enable_compat24+set}" = set; then | |
4015 | enableval="$enable_compat24" | |
e6cc62c6 | 4016 | |
65d8ef1e VS |
4017 | if test "$enableval" = yes; then |
4018 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4019 | else | |
4020 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4021 | fi | |
e6cc62c6 | 4022 | |
65d8ef1e | 4023 | else |
e6cc62c6 | 4024 | |
65d8ef1e VS |
4025 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
4026 | if test "x$LINE" != x ; then | |
4027 | eval "DEFAULT_$LINE" | |
4028 | else | |
4029 | no_cache=1 | |
4030 | fi | |
4031 | ||
4032 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 4033 | |
e6cc62c6 | 4034 | fi; |
65d8ef1e VS |
4035 | |
4036 | eval "$ac_cv_use_compat24" | |
4037 | if test "$no_cache" != 1; then | |
4038 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4039 | fi | |
4040 | ||
4041 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
4042 | echo "$as_me:$LINENO: result: yes" >&5 |
4043 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 4044 | else |
e6cc62c6 VS |
4045 | echo "$as_me:$LINENO: result: no" >&5 |
4046 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 4047 | fi |
e6cc62c6 | 4048 | |
65d8ef1e | 4049 | |
3bd8fb5f RD |
4050 | # Check whether --enable-rpath or --disable-rpath was given. |
4051 | if test "${enable_rpath+set}" = set; then | |
4052 | enableval="$enable_rpath" | |
4053 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 4054 | fi; |
3bd8fb5f RD |
4055 | |
4056 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
4057 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
4058 | fi | |
4059 | ||
8284b0c5 MB |
4060 | |
4061 | ||
4062 | ||
5005acfe | 4063 | enablestring= |
e6cc62c6 VS |
4064 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
4065 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
4066 | no_cache=0 |
4067 | # Check whether --enable-intl or --disable-intl was given. | |
4068 | if test "${enable_intl+set}" = set; then | |
4069 | enableval="$enable_intl" | |
e6cc62c6 | 4070 | |
10f2d63a VZ |
4071 | if test "$enableval" = yes; then |
4072 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4073 | else | |
4074 | ac_cv_use_intl='wxUSE_INTL=no' | |
4075 | fi | |
e6cc62c6 | 4076 | |
10f2d63a | 4077 | else |
e6cc62c6 | 4078 | |
10f2d63a VZ |
4079 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
4080 | if test "x$LINE" != x ; then | |
4081 | eval "DEFAULT_$LINE" | |
4082 | else | |
4083 | no_cache=1 | |
4084 | fi | |
4085 | ||
4086 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 4087 | |
e6cc62c6 | 4088 | fi; |
10f2d63a VZ |
4089 | |
4090 | eval "$ac_cv_use_intl" | |
4091 | if test "$no_cache" != 1; then | |
4092 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4093 | fi | |
4094 | ||
4095 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
4096 | echo "$as_me:$LINENO: result: yes" >&5 |
4097 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4098 | else |
e6cc62c6 VS |
4099 | echo "$as_me:$LINENO: result: no" >&5 |
4100 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4101 | fi |
e6cc62c6 | 4102 | |
10f2d63a | 4103 | |
5005acfe | 4104 | enablestring= |
e6cc62c6 VS |
4105 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
4106 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
4107 | no_cache=0 |
4108 | # Check whether --enable-config or --disable-config was given. | |
4109 | if test "${enable_config+set}" = set; then | |
4110 | enableval="$enable_config" | |
e6cc62c6 | 4111 | |
10f2d63a VZ |
4112 | if test "$enableval" = yes; then |
4113 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4114 | else | |
4115 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4116 | fi | |
e6cc62c6 | 4117 | |
10f2d63a | 4118 | else |
e6cc62c6 | 4119 | |
10f2d63a VZ |
4120 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
4121 | if test "x$LINE" != x ; then | |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
4127 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 4128 | |
e6cc62c6 | 4129 | fi; |
10f2d63a VZ |
4130 | |
4131 | eval "$ac_cv_use_config" | |
4132 | if test "$no_cache" != 1; then | |
4133 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4134 | fi | |
4135 | ||
4136 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4137 | echo "$as_me:$LINENO: result: yes" >&5 |
4138 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4139 | else |
e6cc62c6 VS |
4140 | echo "$as_me:$LINENO: result: no" >&5 |
4141 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4142 | fi |
e6cc62c6 | 4143 | |
52127426 | 4144 | |
8284b0c5 | 4145 | |
5005acfe | 4146 | enablestring= |
e6cc62c6 VS |
4147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4148 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4149 | no_cache=0 |
4150 | # Check whether --enable-protocols or --disable-protocols was given. | |
4151 | if test "${enable_protocols+set}" = set; then | |
4152 | enableval="$enable_protocols" | |
e6cc62c6 | 4153 | |
a1622950 VZ |
4154 | if test "$enableval" = yes; then |
4155 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4156 | else | |
4157 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4158 | fi | |
e6cc62c6 | 4159 | |
a1622950 | 4160 | else |
e6cc62c6 | 4161 | |
a1622950 VZ |
4162 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4163 | if test "x$LINE" != x ; then | |
4164 | eval "DEFAULT_$LINE" | |
4165 | else | |
4166 | no_cache=1 | |
4167 | fi | |
4168 | ||
4169 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4170 | |
e6cc62c6 | 4171 | fi; |
a1622950 VZ |
4172 | |
4173 | eval "$ac_cv_use_protocols" | |
4174 | if test "$no_cache" != 1; then | |
4175 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4176 | fi | |
4177 | ||
4178 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4179 | echo "$as_me:$LINENO: result: yes" >&5 |
4180 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4181 | else |
e6cc62c6 VS |
4182 | echo "$as_me:$LINENO: result: no" >&5 |
4183 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4184 | fi |
e6cc62c6 | 4185 | |
a1622950 | 4186 | |
5005acfe | 4187 | enablestring= |
e6cc62c6 VS |
4188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4189 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4190 | no_cache=0 |
4191 | # Check whether --enable-ftp or --disable-ftp was given. | |
4192 | if test "${enable_ftp+set}" = set; then | |
4193 | enableval="$enable_ftp" | |
e6cc62c6 | 4194 | |
a1622950 VZ |
4195 | if test "$enableval" = yes; then |
4196 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4197 | else | |
4198 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4199 | fi | |
e6cc62c6 | 4200 | |
a1622950 | 4201 | else |
e6cc62c6 | 4202 | |
a1622950 VZ |
4203 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4204 | if test "x$LINE" != x ; then | |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
4210 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4211 | |
e6cc62c6 | 4212 | fi; |
a1622950 VZ |
4213 | |
4214 | eval "$ac_cv_use_ftp" | |
4215 | if test "$no_cache" != 1; then | |
4216 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4217 | fi | |
4218 | ||
4219 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4220 | echo "$as_me:$LINENO: result: yes" >&5 |
4221 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4222 | else |
e6cc62c6 VS |
4223 | echo "$as_me:$LINENO: result: no" >&5 |
4224 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4225 | fi |
e6cc62c6 | 4226 | |
a1622950 | 4227 | |
5005acfe | 4228 | enablestring= |
e6cc62c6 VS |
4229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4230 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4231 | no_cache=0 |
4232 | # Check whether --enable-http or --disable-http was given. | |
4233 | if test "${enable_http+set}" = set; then | |
4234 | enableval="$enable_http" | |
e6cc62c6 | 4235 | |
a1622950 VZ |
4236 | if test "$enableval" = yes; then |
4237 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4238 | else | |
4239 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4240 | fi | |
e6cc62c6 | 4241 | |
a1622950 | 4242 | else |
e6cc62c6 | 4243 | |
a1622950 VZ |
4244 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4245 | if test "x$LINE" != x ; then | |
4246 | eval "DEFAULT_$LINE" | |
4247 | else | |
4248 | no_cache=1 | |
4249 | fi | |
4250 | ||
4251 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4252 | |
e6cc62c6 | 4253 | fi; |
a1622950 VZ |
4254 | |
4255 | eval "$ac_cv_use_http" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4261 | echo "$as_me:$LINENO: result: yes" >&5 |
4262 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4263 | else |
e6cc62c6 VS |
4264 | echo "$as_me:$LINENO: result: no" >&5 |
4265 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4266 | fi |
e6cc62c6 | 4267 | |
a1622950 | 4268 | |
5005acfe | 4269 | enablestring= |
e6cc62c6 VS |
4270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4271 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4272 | no_cache=0 |
4273 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4274 | if test "${enable_fileproto+set}" = set; then | |
4275 | enableval="$enable_fileproto" | |
e6cc62c6 | 4276 | |
a1622950 VZ |
4277 | if test "$enableval" = yes; then |
4278 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4279 | else | |
4280 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4281 | fi | |
e6cc62c6 | 4282 | |
a1622950 | 4283 | else |
e6cc62c6 | 4284 | |
a1622950 VZ |
4285 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4286 | if test "x$LINE" != x ; then | |
4287 | eval "DEFAULT_$LINE" | |
4288 | else | |
4289 | no_cache=1 | |
4290 | fi | |
4291 | ||
4292 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4293 | |
e6cc62c6 | 4294 | fi; |
a1622950 VZ |
4295 | |
4296 | eval "$ac_cv_use_fileproto" | |
4297 | if test "$no_cache" != 1; then | |
4298 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4299 | fi | |
4300 | ||
4301 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4302 | echo "$as_me:$LINENO: result: yes" >&5 |
4303 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4304 | else |
e6cc62c6 VS |
4305 | echo "$as_me:$LINENO: result: no" >&5 |
4306 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4307 | fi |
e6cc62c6 | 4308 | |
a1622950 | 4309 | |
5005acfe | 4310 | enablestring= |
e6cc62c6 VS |
4311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4312 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4313 | no_cache=0 |
4314 | # Check whether --enable-sockets or --disable-sockets was given. | |
4315 | if test "${enable_sockets+set}" = set; then | |
4316 | enableval="$enable_sockets" | |
e6cc62c6 | 4317 | |
10f2d63a VZ |
4318 | if test "$enableval" = yes; then |
4319 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4320 | else | |
4321 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4322 | fi | |
e6cc62c6 | 4323 | |
10f2d63a | 4324 | else |
e6cc62c6 | 4325 | |
10f2d63a VZ |
4326 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4327 | if test "x$LINE" != x ; then | |
4328 | eval "DEFAULT_$LINE" | |
4329 | else | |
4330 | no_cache=1 | |
4331 | fi | |
4332 | ||
4333 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4334 | |
e6cc62c6 | 4335 | fi; |
10f2d63a VZ |
4336 | |
4337 | eval "$ac_cv_use_sockets" | |
4338 | if test "$no_cache" != 1; then | |
4339 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4340 | fi | |
4341 | ||
4342 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4343 | echo "$as_me:$LINENO: result: yes" >&5 |
4344 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4345 | else |
e6cc62c6 VS |
4346 | echo "$as_me:$LINENO: result: no" >&5 |
4347 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4348 | fi |
e6cc62c6 | 4349 | |
8284b0c5 | 4350 | |
5005acfe | 4351 | enablestring= |
e6cc62c6 VS |
4352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4353 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4354 | no_cache=0 |
4355 | # Check whether --enable-ole or --disable-ole was given. | |
4356 | if test "${enable_ole+set}" = set; then | |
4357 | enableval="$enable_ole" | |
e6cc62c6 | 4358 | |
3bce6687 JS |
4359 | if test "$enableval" = yes; then |
4360 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4361 | else | |
4362 | ac_cv_use_ole='wxUSE_OLE=no' | |
4363 | fi | |
e6cc62c6 | 4364 | |
3bce6687 | 4365 | else |
e6cc62c6 | 4366 | |
3bce6687 JS |
4367 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4368 | if test "x$LINE" != x ; then | |
4369 | eval "DEFAULT_$LINE" | |
4370 | else | |
4371 | no_cache=1 | |
4372 | fi | |
4373 | ||
4374 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4375 | |
e6cc62c6 | 4376 | fi; |
3bce6687 JS |
4377 | |
4378 | eval "$ac_cv_use_ole" | |
4379 | if test "$no_cache" != 1; then | |
4380 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4381 | fi | |
4382 | ||
4383 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4384 | echo "$as_me:$LINENO: result: yes" >&5 |
4385 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4386 | else |
e6cc62c6 VS |
4387 | echo "$as_me:$LINENO: result: no" >&5 |
4388 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4389 | fi |
e6cc62c6 | 4390 | |
3bce6687 | 4391 | |
5005acfe | 4392 | enablestring= |
e6cc62c6 VS |
4393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4394 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4395 | no_cache=0 |
4396 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4397 | if test "${enable_dataobj+set}" = set; then | |
4398 | enableval="$enable_dataobj" | |
e6cc62c6 | 4399 | |
3bce6687 JS |
4400 | if test "$enableval" = yes; then |
4401 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4402 | else | |
4403 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4404 | fi | |
e6cc62c6 | 4405 | |
3bce6687 | 4406 | else |
e6cc62c6 | 4407 | |
3bce6687 JS |
4408 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | else | |
4412 | no_cache=1 | |
4413 | fi | |
4414 | ||
4415 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4416 | |
e6cc62c6 | 4417 | fi; |
3bce6687 JS |
4418 | |
4419 | eval "$ac_cv_use_dataobj" | |
4420 | if test "$no_cache" != 1; then | |
4421 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4422 | fi | |
4423 | ||
4424 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4425 | echo "$as_me:$LINENO: result: yes" >&5 |
4426 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4427 | else |
e6cc62c6 VS |
4428 | echo "$as_me:$LINENO: result: no" >&5 |
4429 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4430 | fi |
e6cc62c6 | 4431 | |
3bce6687 | 4432 | |
52127426 | 4433 | |
5005acfe | 4434 | enablestring= |
e6cc62c6 VS |
4435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4436 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4437 | no_cache=0 |
eb4efbdc VZ |
4438 | # Check whether --enable-ipc or --disable-ipc was given. |
4439 | if test "${enable_ipc+set}" = set; then | |
4440 | enableval="$enable_ipc" | |
e6cc62c6 | 4441 | |
10f2d63a | 4442 | if test "$enableval" = yes; then |
eb4efbdc | 4443 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4444 | else |
eb4efbdc | 4445 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4446 | fi |
e6cc62c6 | 4447 | |
10f2d63a | 4448 | else |
e6cc62c6 | 4449 | |
eb4efbdc | 4450 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4451 | if test "x$LINE" != x ; then |
4452 | eval "DEFAULT_$LINE" | |
4453 | else | |
4454 | no_cache=1 | |
4455 | fi | |
4456 | ||
eb4efbdc | 4457 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4458 | |
e6cc62c6 | 4459 | fi; |
10f2d63a | 4460 | |
eb4efbdc | 4461 | eval "$ac_cv_use_ipc" |
10f2d63a | 4462 | if test "$no_cache" != 1; then |
eb4efbdc | 4463 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4464 | fi |
4465 | ||
eb4efbdc | 4466 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4467 | echo "$as_me:$LINENO: result: yes" >&5 |
4468 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4469 | else |
e6cc62c6 VS |
4470 | echo "$as_me:$LINENO: result: no" >&5 |
4471 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4472 | fi |
e6cc62c6 | 4473 | |
52127426 | 4474 | |
8284b0c5 | 4475 | |
5005acfe | 4476 | enablestring= |
e46d2a18 VS |
4477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4478 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4479 | no_cache=0 |
e46d2a18 VS |
4480 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4481 | if test "${enable_apple_ieee+set}" = set; then | |
4482 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4483 | |
10f2d63a | 4484 | if test "$enableval" = yes; then |
e46d2a18 | 4485 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4486 | else |
e46d2a18 | 4487 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4488 | fi |
e6cc62c6 | 4489 | |
10f2d63a | 4490 | else |
e6cc62c6 | 4491 | |
e46d2a18 | 4492 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4493 | if test "x$LINE" != x ; then |
4494 | eval "DEFAULT_$LINE" | |
4495 | else | |
4496 | no_cache=1 | |
4497 | fi | |
4498 | ||
e46d2a18 | 4499 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4500 | |
e6cc62c6 | 4501 | fi; |
10f2d63a | 4502 | |
e46d2a18 | 4503 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4504 | if test "$no_cache" != 1; then |
e46d2a18 | 4505 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4506 | fi |
4507 | ||
e46d2a18 | 4508 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4509 | echo "$as_me:$LINENO: result: yes" >&5 |
4510 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4511 | else |
e6cc62c6 VS |
4512 | echo "$as_me:$LINENO: result: no" >&5 |
4513 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4514 | fi |
e6cc62c6 | 4515 | |
10f2d63a | 4516 | |
5005acfe | 4517 | enablestring= |
e46d2a18 VS |
4518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4519 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4520 | no_cache=0 |
e46d2a18 VS |
4521 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4522 | if test "${enable_catch_segvs+set}" = set; then | |
4523 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4524 | |
10f2d63a | 4525 | if test "$enableval" = yes; then |
e46d2a18 | 4526 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4527 | else |
e46d2a18 | 4528 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4529 | fi |
e6cc62c6 | 4530 | |
10f2d63a | 4531 | else |
e6cc62c6 | 4532 | |
e46d2a18 | 4533 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4534 | if test "x$LINE" != x ; then |
4535 | eval "DEFAULT_$LINE" | |
4536 | else | |
4537 | no_cache=1 | |
4538 | fi | |
4539 | ||
e46d2a18 | 4540 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4541 | |
e6cc62c6 | 4542 | fi; |
10f2d63a | 4543 | |
e46d2a18 | 4544 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4545 | if test "$no_cache" != 1; then |
e46d2a18 | 4546 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4547 | fi |
4548 | ||
e46d2a18 | 4549 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4550 | echo "$as_me:$LINENO: result: yes" >&5 |
4551 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4552 | else |
e6cc62c6 VS |
4553 | echo "$as_me:$LINENO: result: no" >&5 |
4554 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4555 | fi |
e6cc62c6 | 4556 | |
10f2d63a | 4557 | |
5005acfe | 4558 | enablestring= |
e46d2a18 VS |
4559 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4560 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4561 | no_cache=0 |
e46d2a18 VS |
4562 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4563 | if test "${enable_cmdline+set}" = set; then | |
4564 | enableval="$enable_cmdline" | |
e6cc62c6 | 4565 | |
10f2d63a | 4566 | if test "$enableval" = yes; then |
e46d2a18 | 4567 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4568 | else |
e46d2a18 | 4569 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4570 | fi |
e6cc62c6 | 4571 | |
10f2d63a | 4572 | else |
e6cc62c6 | 4573 | |
e46d2a18 | 4574 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4575 | if test "x$LINE" != x ; then |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
e46d2a18 | 4581 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4582 | |
e6cc62c6 | 4583 | fi; |
10f2d63a | 4584 | |
e46d2a18 | 4585 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4586 | if test "$no_cache" != 1; then |
e46d2a18 | 4587 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4588 | fi |
4589 | ||
e46d2a18 | 4590 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4591 | echo "$as_me:$LINENO: result: yes" >&5 |
4592 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4593 | else |
e6cc62c6 VS |
4594 | echo "$as_me:$LINENO: result: no" >&5 |
4595 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4596 | fi |
e6cc62c6 | 4597 | |
10f2d63a | 4598 | |
5005acfe | 4599 | enablestring= |
e46d2a18 VS |
4600 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4601 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4602 | no_cache=0 |
e46d2a18 VS |
4603 | # Check whether --enable-datetime or --disable-datetime was given. |
4604 | if test "${enable_datetime+set}" = set; then | |
4605 | enableval="$enable_datetime" | |
e6cc62c6 | 4606 | |
10f2d63a | 4607 | if test "$enableval" = yes; then |
e46d2a18 | 4608 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4609 | else |
e46d2a18 | 4610 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4611 | fi |
e6cc62c6 | 4612 | |
10f2d63a | 4613 | else |
e6cc62c6 | 4614 | |
e46d2a18 | 4615 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4616 | if test "x$LINE" != x ; then |
4617 | eval "DEFAULT_$LINE" | |
4618 | else | |
4619 | no_cache=1 | |
4620 | fi | |
4621 | ||
e46d2a18 | 4622 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4623 | |
e6cc62c6 | 4624 | fi; |
10f2d63a | 4625 | |
e46d2a18 | 4626 | eval "$ac_cv_use_datetime" |
10f2d63a | 4627 | if test "$no_cache" != 1; then |
e46d2a18 | 4628 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4629 | fi |
4630 | ||
e46d2a18 | 4631 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4632 | echo "$as_me:$LINENO: result: yes" >&5 |
4633 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4634 | else |
e6cc62c6 VS |
4635 | echo "$as_me:$LINENO: result: no" >&5 |
4636 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4637 | fi |
e6cc62c6 | 4638 | |
10f2d63a | 4639 | |
5005acfe | 4640 | enablestring= |
e46d2a18 VS |
4641 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4642 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4643 | no_cache=0 |
e46d2a18 VS |
4644 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4645 | if test "${enable_dialupman+set}" = set; then | |
4646 | enableval="$enable_dialupman" | |
e6cc62c6 | 4647 | |
10f2d63a | 4648 | if test "$enableval" = yes; then |
e46d2a18 | 4649 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4650 | else |
e46d2a18 | 4651 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4652 | fi |
e6cc62c6 | 4653 | |
10f2d63a | 4654 | else |
e6cc62c6 | 4655 | |
e46d2a18 | 4656 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4657 | if test "x$LINE" != x ; then |
4658 | eval "DEFAULT_$LINE" | |
4659 | else | |
4660 | no_cache=1 | |
4661 | fi | |
4662 | ||
e46d2a18 | 4663 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4664 | |
e6cc62c6 | 4665 | fi; |
10f2d63a | 4666 | |
e46d2a18 | 4667 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4668 | if test "$no_cache" != 1; then |
e46d2a18 | 4669 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4670 | fi |
4671 | ||
e46d2a18 | 4672 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4673 | echo "$as_me:$LINENO: result: yes" >&5 |
4674 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4675 | else |
e6cc62c6 VS |
4676 | echo "$as_me:$LINENO: result: no" >&5 |
4677 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4678 | fi |
e6cc62c6 | 4679 | |
10f2d63a | 4680 | |
5005acfe | 4681 | enablestring= |
e6cc62c6 VS |
4682 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4683 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4684 | no_cache=0 |
4685 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4686 | if test "${enable_dynlib+set}" = set; then | |
4687 | enableval="$enable_dynlib" | |
e6cc62c6 | 4688 | |
10f2d63a VZ |
4689 | if test "$enableval" = yes; then |
4690 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4691 | else | |
4692 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4693 | fi | |
e6cc62c6 | 4694 | |
10f2d63a | 4695 | else |
e6cc62c6 | 4696 | |
10f2d63a VZ |
4697 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4698 | if test "x$LINE" != x ; then | |
4699 | eval "DEFAULT_$LINE" | |
4700 | else | |
4701 | no_cache=1 | |
4702 | fi | |
4703 | ||
4704 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4705 | |
e6cc62c6 | 4706 | fi; |
10f2d63a VZ |
4707 | |
4708 | eval "$ac_cv_use_dynlib" | |
4709 | if test "$no_cache" != 1; then | |
4710 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4711 | fi | |
4712 | ||
4713 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4714 | echo "$as_me:$LINENO: result: yes" >&5 |
4715 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4716 | else |
e6cc62c6 VS |
4717 | echo "$as_me:$LINENO: result: no" >&5 |
4718 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4719 | fi |
e6cc62c6 | 4720 | |
10f2d63a | 4721 | |
5005acfe | 4722 | enablestring= |
e6cc62c6 VS |
4723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4724 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4725 | no_cache=0 |
4726 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4727 | if test "${enable_dynamicloader+set}" = set; then | |
4728 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4729 | |
0b9ab0bd RL |
4730 | if test "$enableval" = yes; then |
4731 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4732 | else | |
4733 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4734 | fi | |
e6cc62c6 | 4735 | |
0b9ab0bd | 4736 | else |
e6cc62c6 | 4737 | |
0b9ab0bd RL |
4738 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4739 | if test "x$LINE" != x ; then | |
4740 | eval "DEFAULT_$LINE" | |
4741 | else | |
4742 | no_cache=1 | |
4743 | fi | |
4744 | ||
4745 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4746 | |
e6cc62c6 | 4747 | fi; |
0b9ab0bd RL |
4748 | |
4749 | eval "$ac_cv_use_dynamicloader" | |
4750 | if test "$no_cache" != 1; then | |
4751 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4752 | fi | |
4753 | ||
4754 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4755 | echo "$as_me:$LINENO: result: yes" >&5 |
4756 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4757 | else |
e6cc62c6 VS |
4758 | echo "$as_me:$LINENO: result: no" >&5 |
4759 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4760 | fi |
e6cc62c6 | 4761 | |
0b9ab0bd | 4762 | |
5005acfe | 4763 | enablestring= |
e46d2a18 VS |
4764 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4765 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4766 | no_cache=0 |
e46d2a18 VS |
4767 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4768 | if test "${enable_exceptions+set}" = set; then | |
4769 | enableval="$enable_exceptions" | |
e6cc62c6 | 4770 | |
10f2d63a | 4771 | if test "$enableval" = yes; then |
e46d2a18 | 4772 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4773 | else |
e46d2a18 | 4774 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4775 | fi |
e6cc62c6 | 4776 | |
10f2d63a | 4777 | else |
e6cc62c6 | 4778 | |
e46d2a18 | 4779 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4780 | if test "x$LINE" != x ; then |
4781 | eval "DEFAULT_$LINE" | |
4782 | else | |
4783 | no_cache=1 | |
4784 | fi | |
4785 | ||
e46d2a18 | 4786 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4787 | |
e6cc62c6 | 4788 | fi; |
10f2d63a | 4789 | |
e46d2a18 | 4790 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4791 | if test "$no_cache" != 1; then |
e46d2a18 | 4792 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4793 | fi |
4794 | ||
e46d2a18 | 4795 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4796 | echo "$as_me:$LINENO: result: yes" >&5 |
4797 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4798 | else |
e6cc62c6 VS |
4799 | echo "$as_me:$LINENO: result: no" >&5 |
4800 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4801 | fi |
e6cc62c6 | 4802 | |
10f2d63a | 4803 | |
5005acfe | 4804 | enablestring= |
e46d2a18 VS |
4805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4806 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4807 | no_cache=0 |
e46d2a18 VS |
4808 | # Check whether --enable-ffile or --disable-ffile was given. |
4809 | if test "${enable_ffile+set}" = set; then | |
4810 | enableval="$enable_ffile" | |
e6cc62c6 | 4811 | |
e8f65ba6 | 4812 | if test "$enableval" = yes; then |
e46d2a18 | 4813 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4814 | else |
e46d2a18 | 4815 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4816 | fi |
e6cc62c6 | 4817 | |
e8f65ba6 | 4818 | else |
e6cc62c6 | 4819 | |
e46d2a18 | 4820 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4821 | if test "x$LINE" != x ; then |
4822 | eval "DEFAULT_$LINE" | |
4823 | else | |
4824 | no_cache=1 | |
4825 | fi | |
4826 | ||
e46d2a18 | 4827 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4828 | |
e6cc62c6 | 4829 | fi; |
e8f65ba6 | 4830 | |
e46d2a18 | 4831 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4832 | if test "$no_cache" != 1; then |
e46d2a18 | 4833 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4834 | fi |
4835 | ||
e46d2a18 | 4836 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4837 | echo "$as_me:$LINENO: result: yes" >&5 |
4838 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4839 | else |
e6cc62c6 VS |
4840 | echo "$as_me:$LINENO: result: no" >&5 |
4841 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4842 | fi |
e6cc62c6 | 4843 | |
e8f65ba6 | 4844 | |
5005acfe | 4845 | enablestring= |
e46d2a18 VS |
4846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4847 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4848 | no_cache=0 |
e46d2a18 VS |
4849 | # Check whether --enable-file or --disable-file was given. |
4850 | if test "${enable_file+set}" = set; then | |
4851 | enableval="$enable_file" | |
e6cc62c6 | 4852 | |
10f2d63a | 4853 | if test "$enableval" = yes; then |
e46d2a18 | 4854 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4855 | else |
e46d2a18 | 4856 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4857 | fi |
e6cc62c6 | 4858 | |
10f2d63a | 4859 | else |
e6cc62c6 | 4860 | |
e46d2a18 | 4861 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4862 | if test "x$LINE" != x ; then |
4863 | eval "DEFAULT_$LINE" | |
4864 | else | |
4865 | no_cache=1 | |
4866 | fi | |
4867 | ||
e46d2a18 | 4868 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4869 | |
e6cc62c6 | 4870 | fi; |
10f2d63a | 4871 | |
e46d2a18 | 4872 | eval "$ac_cv_use_file" |
10f2d63a | 4873 | if test "$no_cache" != 1; then |
e46d2a18 | 4874 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4875 | fi |
4876 | ||
e46d2a18 | 4877 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4878 | echo "$as_me:$LINENO: result: yes" >&5 |
4879 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4880 | else |
e6cc62c6 VS |
4881 | echo "$as_me:$LINENO: result: no" >&5 |
4882 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4883 | fi |
e6cc62c6 | 4884 | |
10f2d63a | 4885 | |
5005acfe | 4886 | enablestring= |
e46d2a18 VS |
4887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4888 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4889 | no_cache=0 |
e46d2a18 VS |
4890 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4891 | if test "${enable_filesystem+set}" = set; then | |
4892 | enableval="$enable_filesystem" | |
e6cc62c6 | 4893 | |
10f2d63a | 4894 | if test "$enableval" = yes; then |
e46d2a18 | 4895 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4896 | else |
e46d2a18 | 4897 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4898 | fi |
e6cc62c6 | 4899 | |
10f2d63a | 4900 | else |
e6cc62c6 | 4901 | |
e46d2a18 | 4902 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4903 | if test "x$LINE" != x ; then |
4904 | eval "DEFAULT_$LINE" | |
4905 | else | |
4906 | no_cache=1 | |
4907 | fi | |
4908 | ||
e46d2a18 | 4909 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4910 | |
e6cc62c6 | 4911 | fi; |
10f2d63a | 4912 | |
e46d2a18 | 4913 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4914 | if test "$no_cache" != 1; then |
e46d2a18 | 4915 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4916 | fi |
4917 | ||
e46d2a18 | 4918 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4919 | echo "$as_me:$LINENO: result: yes" >&5 |
4920 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4921 | else |
e6cc62c6 VS |
4922 | echo "$as_me:$LINENO: result: no" >&5 |
4923 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4924 | fi |
e6cc62c6 | 4925 | |
10f2d63a | 4926 | |
5005acfe | 4927 | enablestring= |
e46d2a18 VS |
4928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4929 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4930 | no_cache=0 |
e46d2a18 VS |
4931 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4932 | if test "${enable_fontmap+set}" = set; then | |
4933 | enableval="$enable_fontmap" | |
e6cc62c6 | 4934 | |
10f2d63a | 4935 | if test "$enableval" = yes; then |
e46d2a18 | 4936 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4937 | else |
e46d2a18 | 4938 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4939 | fi |
e6cc62c6 | 4940 | |
10f2d63a | 4941 | else |
e6cc62c6 | 4942 | |
e46d2a18 | 4943 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4944 | if test "x$LINE" != x ; then |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
e46d2a18 | 4950 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4951 | |
e6cc62c6 | 4952 | fi; |
10f2d63a | 4953 | |
e46d2a18 | 4954 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4955 | if test "$no_cache" != 1; then |
e46d2a18 | 4956 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4957 | fi |
4958 | ||
e46d2a18 | 4959 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4960 | echo "$as_me:$LINENO: result: yes" >&5 |
4961 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4962 | else |
e6cc62c6 VS |
4963 | echo "$as_me:$LINENO: result: no" >&5 |
4964 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4965 | fi |
e6cc62c6 | 4966 | |
10f2d63a | 4967 | |
5005acfe | 4968 | enablestring= |
e46d2a18 VS |
4969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4970 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4971 | no_cache=0 |
e46d2a18 VS |
4972 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4973 | if test "${enable_fs_inet+set}" = set; then | |
4974 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4975 | |
10f2d63a | 4976 | if test "$enableval" = yes; then |
e46d2a18 | 4977 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4978 | else |
e46d2a18 | 4979 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4980 | fi |
e6cc62c6 | 4981 | |
10f2d63a | 4982 | else |
e6cc62c6 | 4983 | |
e46d2a18 | 4984 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4985 | if test "x$LINE" != x ; then |
4986 | eval "DEFAULT_$LINE" | |
4987 | else | |
4988 | no_cache=1 | |
4989 | fi | |
4990 | ||
e46d2a18 | 4991 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4992 | |
e6cc62c6 | 4993 | fi; |
10f2d63a | 4994 | |
e46d2a18 | 4995 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4996 | if test "$no_cache" != 1; then |
e46d2a18 | 4997 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4998 | fi |
4999 | ||
e46d2a18 | 5000 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
5001 | echo "$as_me:$LINENO: result: yes" >&5 |
5002 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5003 | else |
e6cc62c6 VS |
5004 | echo "$as_me:$LINENO: result: no" >&5 |
5005 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5006 | fi |
e6cc62c6 | 5007 | |
10f2d63a | 5008 | |
5005acfe | 5009 | enablestring= |
e46d2a18 VS |
5010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5011 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 5012 | no_cache=0 |
e46d2a18 VS |
5013 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
5014 | if test "${enable_fs_zip+set}" = set; then | |
5015 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5016 | |
a3a584a7 | 5017 | if test "$enableval" = yes; then |
e46d2a18 | 5018 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 5019 | else |
e46d2a18 | 5020 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 5021 | fi |
e6cc62c6 | 5022 | |
a3a584a7 | 5023 | else |
e6cc62c6 | 5024 | |
e46d2a18 | 5025 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
5026 | if test "x$LINE" != x ; then |
5027 | eval "DEFAULT_$LINE" | |
5028 | else | |
5029 | no_cache=1 | |
5030 | fi | |
5031 | ||
e46d2a18 | 5032 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 5033 | |
e6cc62c6 | 5034 | fi; |
a3a584a7 | 5035 | |
e46d2a18 | 5036 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 5037 | if test "$no_cache" != 1; then |
e46d2a18 | 5038 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
5039 | fi |
5040 | ||
e46d2a18 | 5041 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
5042 | echo "$as_me:$LINENO: result: yes" >&5 |
5043 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 5044 | else |
e6cc62c6 VS |
5045 | echo "$as_me:$LINENO: result: no" >&5 |
5046 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 5047 | fi |
e6cc62c6 | 5048 | |
a3a584a7 | 5049 | |
5005acfe | 5050 | enablestring= |
e46d2a18 VS |
5051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
5052 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 5053 | no_cache=0 |
e46d2a18 VS |
5054 | # Check whether --enable-geometry or --disable-geometry was given. |
5055 | if test "${enable_geometry+set}" = set; then | |
5056 | enableval="$enable_geometry" | |
e6cc62c6 | 5057 | |
10f2d63a | 5058 | if test "$enableval" = yes; then |
e46d2a18 | 5059 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 5060 | else |
e46d2a18 | 5061 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 5062 | fi |
e6cc62c6 | 5063 | |
10f2d63a | 5064 | else |
e6cc62c6 | 5065 | |
e46d2a18 | 5066 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
5067 | if test "x$LINE" != x ; then |
5068 | eval "DEFAULT_$LINE" | |
5069 | else | |
5070 | no_cache=1 | |
5071 | fi | |
5072 | ||
e46d2a18 | 5073 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 5074 | |
e6cc62c6 | 5075 | fi; |
10f2d63a | 5076 | |
e46d2a18 | 5077 | eval "$ac_cv_use_geometry" |
10f2d63a | 5078 | if test "$no_cache" != 1; then |
e46d2a18 | 5079 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5080 | fi |
5081 | ||
e46d2a18 | 5082 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
5083 | echo "$as_me:$LINENO: result: yes" >&5 |
5084 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5085 | else |
e6cc62c6 VS |
5086 | echo "$as_me:$LINENO: result: no" >&5 |
5087 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5088 | fi |
e6cc62c6 | 5089 | |
10f2d63a | 5090 | |
5005acfe | 5091 | enablestring= |
e46d2a18 VS |
5092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
5093 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 5094 | no_cache=0 |
e46d2a18 VS |
5095 | # Check whether --enable-log or --disable-log was given. |
5096 | if test "${enable_log+set}" = set; then | |
5097 | enableval="$enable_log" | |
e6cc62c6 | 5098 | |
10f2d63a | 5099 | if test "$enableval" = yes; then |
e46d2a18 | 5100 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 5101 | else |
e46d2a18 | 5102 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 5103 | fi |
e6cc62c6 | 5104 | |
10f2d63a | 5105 | else |
e6cc62c6 | 5106 | |
e46d2a18 | 5107 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
5108 | if test "x$LINE" != x ; then |
5109 | eval "DEFAULT_$LINE" | |
5110 | else | |
5111 | no_cache=1 | |
5112 | fi | |
5113 | ||
e46d2a18 | 5114 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 5115 | |
e6cc62c6 | 5116 | fi; |
10f2d63a | 5117 | |
e46d2a18 | 5118 | eval "$ac_cv_use_log" |
10f2d63a | 5119 | if test "$no_cache" != 1; then |
e46d2a18 | 5120 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5121 | fi |
5122 | ||
e46d2a18 | 5123 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
5124 | echo "$as_me:$LINENO: result: yes" >&5 |
5125 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5126 | else |
e6cc62c6 VS |
5127 | echo "$as_me:$LINENO: result: no" >&5 |
5128 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5129 | fi |
e6cc62c6 | 5130 | |
10f2d63a | 5131 | |
5005acfe | 5132 | enablestring= |
e46d2a18 VS |
5133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
5134 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5135 | no_cache=0 |
e46d2a18 VS |
5136 | # Check whether --enable-longlong or --disable-longlong was given. |
5137 | if test "${enable_longlong+set}" = set; then | |
5138 | enableval="$enable_longlong" | |
e6cc62c6 | 5139 | |
1e6feb95 | 5140 | if test "$enableval" = yes; then |
e46d2a18 | 5141 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5142 | else |
e46d2a18 | 5143 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5144 | fi |
e6cc62c6 | 5145 | |
1e6feb95 | 5146 | else |
e6cc62c6 | 5147 | |
e46d2a18 | 5148 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5149 | if test "x$LINE" != x ; then |
5150 | eval "DEFAULT_$LINE" | |
5151 | else | |
5152 | no_cache=1 | |
5153 | fi | |
5154 | ||
e46d2a18 | 5155 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5156 | |
e6cc62c6 | 5157 | fi; |
1e6feb95 | 5158 | |
e46d2a18 | 5159 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5160 | if test "$no_cache" != 1; then |
e46d2a18 | 5161 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5162 | fi |
5163 | ||
e46d2a18 VS |
5164 | if test "$wxUSE_LONGLONG" = yes; then |
5165 | echo "$as_me:$LINENO: result: yes" >&5 | |
5166 | echo "${ECHO_T}yes" >&6 | |
5167 | else | |
5168 | echo "$as_me:$LINENO: result: no" >&5 | |
5169 | echo "${ECHO_T}no" >&6 | |
5170 | fi | |
5171 | ||
5172 | ||
5173 | enablestring= | |
5174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5175 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5176 | no_cache=0 | |
5177 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5178 | if test "${enable_mimetype+set}" = set; then | |
5179 | enableval="$enable_mimetype" | |
5180 | ||
5181 | if test "$enableval" = yes; then | |
5182 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5183 | else | |
5184 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5185 | fi | |
5186 | ||
5187 | else | |
5188 | ||
5189 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5190 | if test "x$LINE" != x ; then | |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
5196 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5197 | ||
5198 | fi; | |
5199 | ||
5200 | eval "$ac_cv_use_mimetype" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5206 | echo "$as_me:$LINENO: result: yes" >&5 |
5207 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5208 | else |
e6cc62c6 VS |
5209 | echo "$as_me:$LINENO: result: no" >&5 |
5210 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5211 | fi |
e6cc62c6 | 5212 | |
1e6feb95 | 5213 | |
5005acfe | 5214 | enablestring= |
e6cc62c6 VS |
5215 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5216 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5217 | no_cache=0 |
5218 | # Check whether --enable-mslu or --disable-mslu was given. | |
5219 | if test "${enable_mslu+set}" = set; then | |
5220 | enableval="$enable_mslu" | |
e6cc62c6 | 5221 | |
a72a4bfa VS |
5222 | if test "$enableval" = yes; then |
5223 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5224 | else | |
5225 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5226 | fi | |
e6cc62c6 | 5227 | |
a72a4bfa | 5228 | else |
e6cc62c6 | 5229 | |
a72a4bfa VS |
5230 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5231 | if test "x$LINE" != x ; then | |
5232 | eval "DEFAULT_$LINE" | |
5233 | else | |
5234 | no_cache=1 | |
5235 | fi | |
5236 | ||
5237 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5238 | |
e6cc62c6 | 5239 | fi; |
a72a4bfa VS |
5240 | |
5241 | eval "$ac_cv_use_mslu" | |
5242 | if test "$no_cache" != 1; then | |
5243 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5244 | fi | |
5245 | ||
5246 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5247 | echo "$as_me:$LINENO: result: yes" >&5 |
5248 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5249 | else |
e6cc62c6 VS |
5250 | echo "$as_me:$LINENO: result: no" >&5 |
5251 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5252 | fi |
e6cc62c6 | 5253 | |
a72a4bfa | 5254 | |
5005acfe | 5255 | enablestring= |
e46d2a18 VS |
5256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5257 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5258 | no_cache=0 |
e46d2a18 VS |
5259 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5260 | if test "${enable_snglinst+set}" = set; then | |
5261 | enableval="$enable_snglinst" | |
e6cc62c6 | 5262 | |
1e6feb95 | 5263 | if test "$enableval" = yes; then |
e46d2a18 | 5264 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5265 | else |
e46d2a18 | 5266 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5267 | fi |
e6cc62c6 | 5268 | |
10f2d63a | 5269 | else |
e6cc62c6 | 5270 | |
e46d2a18 | 5271 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5272 | if test "x$LINE" != x ; then |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
e46d2a18 | 5278 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5279 | |
e6cc62c6 | 5280 | fi; |
10f2d63a | 5281 | |
e46d2a18 | 5282 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5283 | if test "$no_cache" != 1; then |
e46d2a18 | 5284 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5285 | fi |
5286 | ||
e46d2a18 VS |
5287 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5288 | echo "$as_me:$LINENO: result: yes" >&5 | |
5289 | echo "${ECHO_T}yes" >&6 | |
5290 | else | |
5291 | echo "$as_me:$LINENO: result: no" >&5 | |
5292 | echo "${ECHO_T}no" >&6 | |
5293 | fi | |
5294 | ||
5295 | ||
5296 | enablestring= | |
5297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5298 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5299 | no_cache=0 | |
5300 | # Check whether --enable-streams or --disable-streams was given. | |
5301 | if test "${enable_streams+set}" = set; then | |
5302 | enableval="$enable_streams" | |
5303 | ||
5304 | if test "$enableval" = yes; then | |
5305 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5306 | else | |
5307 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5308 | fi | |
5309 | ||
5310 | else | |
5311 | ||
5312 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5313 | if test "x$LINE" != x ; then | |
5314 | eval "DEFAULT_$LINE" | |
5315 | else | |
5316 | no_cache=1 | |
5317 | fi | |
5318 | ||
5319 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5320 | ||
5321 | fi; | |
5322 | ||
5323 | eval "$ac_cv_use_streams" | |
5324 | if test "$no_cache" != 1; then | |
5325 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5326 | fi | |
5327 | ||
5328 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5329 | echo "$as_me:$LINENO: result: yes" >&5 |
5330 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5331 | else |
e6cc62c6 VS |
5332 | echo "$as_me:$LINENO: result: no" >&5 |
5333 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5334 | fi |
e6cc62c6 | 5335 | |
10f2d63a | 5336 | |
5005acfe | 5337 | enablestring= |
e6cc62c6 VS |
5338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5339 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5340 | no_cache=0 |
5341 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5342 | if test "${enable_std_iostreams+set}" = set; then | |
5343 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5344 | |
10f2d63a VZ |
5345 | if test "$enableval" = yes; then |
5346 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5347 | else | |
5348 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5349 | fi | |
e6cc62c6 | 5350 | |
10f2d63a | 5351 | else |
e6cc62c6 | 5352 | |
10f2d63a VZ |
5353 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5354 | if test "x$LINE" != x ; then | |
5355 | eval "DEFAULT_$LINE" | |
5356 | else | |
5357 | no_cache=1 | |
5358 | fi | |
5359 | ||
5360 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5361 | |
e6cc62c6 | 5362 | fi; |
10f2d63a VZ |
5363 | |
5364 | eval "$ac_cv_use_std_iostreams" | |
5365 | if test "$no_cache" != 1; then | |
5366 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5367 | fi | |
5368 | ||
5369 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5370 | echo "$as_me:$LINENO: result: yes" >&5 |
5371 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5372 | else |
e6cc62c6 VS |
5373 | echo "$as_me:$LINENO: result: no" >&5 |
5374 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5375 | fi |
e6cc62c6 | 5376 | |
10f2d63a | 5377 | |
5005acfe | 5378 | enablestring= |
e46d2a18 VS |
5379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5380 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5381 | no_cache=0 |
e46d2a18 VS |
5382 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5383 | if test "${enable_stopwatch+set}" = set; then | |
5384 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5385 | |
24528b0c | 5386 | if test "$enableval" = yes; then |
e46d2a18 | 5387 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5388 | else |
e46d2a18 | 5389 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5390 | fi |
e6cc62c6 | 5391 | |
24528b0c | 5392 | else |
e6cc62c6 | 5393 | |
e46d2a18 | 5394 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5395 | if test "x$LINE" != x ; then |
5396 | eval "DEFAULT_$LINE" | |
5397 | else | |
5398 | no_cache=1 | |
5399 | fi | |
5400 | ||
e46d2a18 | 5401 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5402 | |
e6cc62c6 | 5403 | fi; |
24528b0c | 5404 | |
e46d2a18 | 5405 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5406 | if test "$no_cache" != 1; then |
e46d2a18 | 5407 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5408 | fi |
5409 | ||
e46d2a18 | 5410 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5411 | echo "$as_me:$LINENO: result: yes" >&5 |
5412 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5413 | else |
e6cc62c6 VS |
5414 | echo "$as_me:$LINENO: result: no" >&5 |
5415 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5416 | fi |
e6cc62c6 | 5417 | |
24528b0c | 5418 | |
5005acfe | 5419 | enablestring= |
e46d2a18 VS |
5420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5421 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5422 | no_cache=0 |
e46d2a18 VS |
5423 | # Check whether --enable-system_options or --disable-system_options was given. |
5424 | if test "${enable_system_options+set}" = set; then | |
5425 | enableval="$enable_system_options" | |
e6cc62c6 | 5426 | |
10f2d63a | 5427 | if test "$enableval" = yes; then |
e46d2a18 | 5428 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5429 | else |
e46d2a18 | 5430 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5431 | fi |
e6cc62c6 | 5432 | |
10f2d63a | 5433 | else |
e6cc62c6 | 5434 | |
e46d2a18 | 5435 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5436 | if test "x$LINE" != x ; then |
5437 | eval "DEFAULT_$LINE" | |
5438 | else | |
5439 | no_cache=1 | |
5440 | fi | |
5441 | ||
e46d2a18 | 5442 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5443 | |
e6cc62c6 | 5444 | fi; |
10f2d63a | 5445 | |
e46d2a18 | 5446 | eval "$ac_cv_use_system_options" |
10f2d63a | 5447 | if test "$no_cache" != 1; then |
e46d2a18 | 5448 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5449 | fi |
5450 | ||
e46d2a18 | 5451 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5452 | echo "$as_me:$LINENO: result: yes" >&5 |
5453 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5454 | else |
e6cc62c6 VS |
5455 | echo "$as_me:$LINENO: result: no" >&5 |
5456 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5457 | fi |
e6cc62c6 | 5458 | |
10f2d63a | 5459 | |
5005acfe | 5460 | enablestring= |
e46d2a18 VS |
5461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5462 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5463 | no_cache=0 |
e46d2a18 VS |
5464 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5465 | if test "${enable_textbuf+set}" = set; then | |
5466 | enableval="$enable_textbuf" | |
e6cc62c6 | 5467 | |
10f2d63a | 5468 | if test "$enableval" = yes; then |
e46d2a18 | 5469 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5470 | else |
e46d2a18 | 5471 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5472 | fi |
e6cc62c6 | 5473 | |
10f2d63a | 5474 | else |
e6cc62c6 | 5475 | |
e46d2a18 | 5476 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5477 | if test "x$LINE" != x ; then |
5478 | eval "DEFAULT_$LINE" | |
5479 | else | |
5480 | no_cache=1 | |
5481 | fi | |
5482 | ||
e46d2a18 | 5483 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5484 | |
e6cc62c6 | 5485 | fi; |
10f2d63a | 5486 | |
e46d2a18 | 5487 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5488 | if test "$no_cache" != 1; then |
e46d2a18 | 5489 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5490 | fi |
5491 | ||
e46d2a18 | 5492 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5493 | echo "$as_me:$LINENO: result: yes" >&5 |
5494 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5495 | else |
e6cc62c6 VS |
5496 | echo "$as_me:$LINENO: result: no" >&5 |
5497 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5498 | fi |
e6cc62c6 | 5499 | |
10f2d63a | 5500 | |
5005acfe | 5501 | enablestring= |
e46d2a18 VS |
5502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5503 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5504 | no_cache=0 |
e46d2a18 VS |
5505 | # Check whether --enable-textfile or --disable-textfile was given. |
5506 | if test "${enable_textfile+set}" = set; then | |
5507 | enableval="$enable_textfile" | |
e6cc62c6 | 5508 | |
10f2d63a | 5509 | if test "$enableval" = yes; then |
e46d2a18 | 5510 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5511 | else |
e46d2a18 | 5512 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5513 | fi |
e6cc62c6 | 5514 | |
10f2d63a | 5515 | else |
e6cc62c6 | 5516 | |
e46d2a18 | 5517 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5518 | if test "x$LINE" != x ; then |
5519 | eval "DEFAULT_$LINE" | |
5520 | else | |
5521 | no_cache=1 | |
5522 | fi | |
5523 | ||
e46d2a18 | 5524 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5525 | |
e6cc62c6 | 5526 | fi; |
10f2d63a | 5527 | |
e46d2a18 | 5528 | eval "$ac_cv_use_textfile" |
10f2d63a | 5529 | if test "$no_cache" != 1; then |
e46d2a18 | 5530 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5531 | fi |
5532 | ||
e46d2a18 | 5533 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5534 | echo "$as_me:$LINENO: result: yes" >&5 |
5535 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5536 | else |
e6cc62c6 VS |
5537 | echo "$as_me:$LINENO: result: no" >&5 |
5538 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5539 | fi |
e6cc62c6 | 5540 | |
8284b0c5 | 5541 | |
5005acfe | 5542 | enablestring= |
e46d2a18 VS |
5543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5544 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5545 | no_cache=0 |
e46d2a18 VS |
5546 | # Check whether --enable-timer or --disable-timer was given. |
5547 | if test "${enable_timer+set}" = set; then | |
5548 | enableval="$enable_timer" | |
e6cc62c6 | 5549 | |
eb4efbdc | 5550 | if test "$enableval" = yes; then |
e46d2a18 | 5551 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5552 | else |
e46d2a18 | 5553 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5554 | fi |
e6cc62c6 | 5555 | |
eb4efbdc | 5556 | else |
e6cc62c6 | 5557 | |
e46d2a18 | 5558 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5559 | if test "x$LINE" != x ; then |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
e46d2a18 | 5565 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5566 | |
e6cc62c6 | 5567 | fi; |
eb4efbdc | 5568 | |
e46d2a18 | 5569 | eval "$ac_cv_use_timer" |
eb4efbdc | 5570 | if test "$no_cache" != 1; then |
e46d2a18 | 5571 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5572 | fi |
5573 | ||
e46d2a18 | 5574 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5575 | echo "$as_me:$LINENO: result: yes" >&5 |
5576 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5577 | else |
e6cc62c6 VS |
5578 | echo "$as_me:$LINENO: result: no" >&5 |
5579 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5580 | fi |
e6cc62c6 | 5581 | |
eb4efbdc | 5582 | |
5005acfe | 5583 | enablestring= |
e46d2a18 VS |
5584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5585 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5586 | no_cache=0 |
e46d2a18 VS |
5587 | # Check whether --enable-unicode or --disable-unicode was given. |
5588 | if test "${enable_unicode+set}" = set; then | |
5589 | enableval="$enable_unicode" | |
e6cc62c6 | 5590 | |
4f3c5f06 | 5591 | if test "$enableval" = yes; then |
e46d2a18 | 5592 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5593 | else |
e46d2a18 | 5594 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5595 | fi |
e6cc62c6 | 5596 | |
4f3c5f06 | 5597 | else |
e6cc62c6 | 5598 | |
e46d2a18 | 5599 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5600 | if test "x$LINE" != x ; then |
5601 | eval "DEFAULT_$LINE" | |
5602 | else | |
5603 | no_cache=1 | |
5604 | fi | |
5605 | ||
e46d2a18 | 5606 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5607 | |
e6cc62c6 | 5608 | fi; |
4f3c5f06 | 5609 | |
e46d2a18 | 5610 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5611 | if test "$no_cache" != 1; then |
e46d2a18 | 5612 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5613 | fi |
5614 | ||
e46d2a18 | 5615 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5616 | echo "$as_me:$LINENO: result: yes" >&5 |
5617 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5618 | else |
e6cc62c6 VS |
5619 | echo "$as_me:$LINENO: result: no" >&5 |
5620 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5621 | fi |
e6cc62c6 | 5622 | |
52127426 | 5623 | |
e46d2a18 | 5624 | enablestring= |
002ed9af VS |
5625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 |
5626 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
e46d2a18 | 5627 | no_cache=0 |
002ed9af VS |
5628 | # Check whether --enable-sound or --disable-sound was given. |
5629 | if test "${enable_sound+set}" = set; then | |
5630 | enableval="$enable_sound" | |
e46d2a18 VS |
5631 | |
5632 | if test "$enableval" = yes; then | |
002ed9af | 5633 | ac_cv_use_sound='wxUSE_SOUND=yes' |
e46d2a18 | 5634 | else |
002ed9af | 5635 | ac_cv_use_sound='wxUSE_SOUND=no' |
e46d2a18 VS |
5636 | fi |
5637 | ||
5638 | else | |
5639 | ||
002ed9af | 5640 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` |
e46d2a18 VS |
5641 | if test "x$LINE" != x ; then |
5642 | eval "DEFAULT_$LINE" | |
5643 | else | |
5644 | no_cache=1 | |
5645 | fi | |
5646 | ||
002ed9af | 5647 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND |
e46d2a18 VS |
5648 | |
5649 | fi; | |
5650 | ||
002ed9af | 5651 | eval "$ac_cv_use_sound" |
e46d2a18 | 5652 | if test "$no_cache" != 1; then |
002ed9af | 5653 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp |
e46d2a18 VS |
5654 | fi |
5655 | ||
002ed9af | 5656 | if test "$wxUSE_SOUND" = yes; then |
e46d2a18 VS |
5657 | echo "$as_me:$LINENO: result: yes" >&5 |
5658 | echo "${ECHO_T}yes" >&6 | |
5659 | else | |
5660 | echo "$as_me:$LINENO: result: no" >&5 | |
5661 | echo "${ECHO_T}no" >&6 | |
5662 | fi | |
5663 | ||
8284b0c5 | 5664 | |
5005acfe | 5665 | enablestring= |
e46d2a18 VS |
5666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5667 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5668 | no_cache=0 |
e46d2a18 VS |
5669 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5670 | if test "${enable_wxprintfv+set}" = set; then | |
5671 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5672 | |
1e6feb95 | 5673 | if test "$enableval" = yes; then |
e46d2a18 | 5674 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5675 | else |
e46d2a18 | 5676 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5677 | fi |
e6cc62c6 | 5678 | |
1e6feb95 | 5679 | else |
e6cc62c6 | 5680 | |
e46d2a18 | 5681 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5682 | if test "x$LINE" != x ; then |
5683 | eval "DEFAULT_$LINE" | |
5684 | else | |
5685 | no_cache=1 | |
5686 | fi | |
5687 | ||
e46d2a18 | 5688 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5689 | |
e6cc62c6 | 5690 | fi; |
1e6feb95 | 5691 | |
e46d2a18 | 5692 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5693 | if test "$no_cache" != 1; then |
e46d2a18 | 5694 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5695 | fi |
5696 | ||
e46d2a18 | 5697 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5698 | echo "$as_me:$LINENO: result: yes" >&5 |
5699 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5700 | else |
e6cc62c6 VS |
5701 | echo "$as_me:$LINENO: result: no" >&5 |
5702 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5703 | fi |
e6cc62c6 | 5704 | |
1e6feb95 | 5705 | |
5005acfe | 5706 | enablestring= |
e46d2a18 VS |
5707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5708 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5709 | no_cache=0 |
e46d2a18 VS |
5710 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5711 | if test "${enable_zipstream+set}" = set; then | |
5712 | enableval="$enable_zipstream" | |
e6cc62c6 | 5713 | |
3e44f09d | 5714 | if test "$enableval" = yes; then |
e46d2a18 | 5715 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5716 | else |
e46d2a18 | 5717 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5718 | fi |
e6cc62c6 | 5719 | |
3e44f09d | 5720 | else |
e6cc62c6 | 5721 | |
e46d2a18 | 5722 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5723 | if test "x$LINE" != x ; then |
5724 | eval "DEFAULT_$LINE" | |
5725 | else | |
5726 | no_cache=1 | |
5727 | fi | |
5728 | ||
e46d2a18 | 5729 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5730 | |
e6cc62c6 | 5731 | fi; |
3e44f09d | 5732 | |
e46d2a18 | 5733 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5734 | if test "$no_cache" != 1; then |
e46d2a18 | 5735 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5736 | fi |
5737 | ||
e46d2a18 | 5738 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5739 | echo "$as_me:$LINENO: result: yes" >&5 |
5740 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5741 | else |
e6cc62c6 VS |
5742 | echo "$as_me:$LINENO: result: no" >&5 |
5743 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5744 | fi |
e6cc62c6 | 5745 | |
8284b0c5 | 5746 | |
7015ef3a VZ |
5747 | enablestring= |
5748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5749 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5750 | no_cache=0 | |
5751 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5752 | if test "${enable_gzstream+set}" = set; then | |
5753 | enableval="$enable_gzstream" | |
5754 | ||
5755 | if test "$enableval" = yes; then | |
5756 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5757 | else | |
5758 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5759 | fi | |
5760 | ||
5761 | else | |
5762 | ||
5763 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5764 | if test "x$LINE" != x ; then | |
5765 | eval "DEFAULT_$LINE" | |
5766 | else | |
5767 | no_cache=1 | |
5768 | fi | |
5769 | ||
5770 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5771 | ||
5772 | fi; | |
5773 | ||
5774 | eval "$ac_cv_use_gzstream" | |
5775 | if test "$no_cache" != 1; then | |
5776 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5777 | fi | |
5778 | ||
5779 | if test "$wxUSE_GZSTREAM" = yes; then | |
5780 | echo "$as_me:$LINENO: result: yes" >&5 | |
5781 | echo "${ECHO_T}yes" >&6 | |
5782 | else | |
5783 | echo "$as_me:$LINENO: result: no" >&5 | |
5784 | echo "${ECHO_T}no" >&6 | |
5785 | fi | |
5786 | ||
5787 | ||
52127426 | 5788 | |
5005acfe | 5789 | enablestring= |
e6cc62c6 VS |
5790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5791 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5792 | no_cache=0 |
5793 | # Check whether --enable-url or --disable-url was given. | |
5794 | if test "${enable_url+set}" = set; then | |
5795 | enableval="$enable_url" | |
e6cc62c6 | 5796 | |
4cdb0ab0 VS |
5797 | if test "$enableval" = yes; then |
5798 | ac_cv_use_url='wxUSE_URL=yes' | |
5799 | else | |
5800 | ac_cv_use_url='wxUSE_URL=no' | |
5801 | fi | |
e6cc62c6 | 5802 | |
4cdb0ab0 | 5803 | else |
e6cc62c6 | 5804 | |
4cdb0ab0 VS |
5805 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5806 | if test "x$LINE" != x ; then | |
5807 | eval "DEFAULT_$LINE" | |
5808 | else | |
5809 | no_cache=1 | |
5810 | fi | |
5811 | ||
5812 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5813 | |
e6cc62c6 | 5814 | fi; |
4cdb0ab0 VS |
5815 | |
5816 | eval "$ac_cv_use_url" | |
5817 | if test "$no_cache" != 1; then | |
5818 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5819 | fi | |
5820 | ||
5821 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5822 | echo "$as_me:$LINENO: result: yes" >&5 |
5823 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5824 | else |
e6cc62c6 VS |
5825 | echo "$as_me:$LINENO: result: no" >&5 |
5826 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5827 | fi |
e6cc62c6 | 5828 | |
4cdb0ab0 | 5829 | |
5005acfe | 5830 | enablestring= |
e6cc62c6 VS |
5831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5832 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5833 | no_cache=0 |
5834 | # Check whether --enable-protocol or --disable-protocol was given. | |
5835 | if test "${enable_protocol+set}" = set; then | |
5836 | enableval="$enable_protocol" | |
e6cc62c6 | 5837 | |
4cdb0ab0 VS |
5838 | if test "$enableval" = yes; then |
5839 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5840 | else | |
5841 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5842 | fi | |
e6cc62c6 | 5843 | |
4cdb0ab0 | 5844 | else |
e6cc62c6 | 5845 | |
4cdb0ab0 VS |
5846 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5847 | if test "x$LINE" != x ; then | |
5848 | eval "DEFAULT_$LINE" | |
5849 | else | |
5850 | no_cache=1 | |
5851 | fi | |
5852 | ||
5853 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5854 | |
e6cc62c6 | 5855 | fi; |
4cdb0ab0 VS |
5856 | |
5857 | eval "$ac_cv_use_protocol" | |
5858 | if test "$no_cache" != 1; then | |
5859 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5860 | fi | |
5861 | ||
5862 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5863 | echo "$as_me:$LINENO: result: yes" >&5 |
5864 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5865 | else |
e6cc62c6 VS |
5866 | echo "$as_me:$LINENO: result: no" >&5 |
5867 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5868 | fi |
e6cc62c6 | 5869 | |
4cdb0ab0 | 5870 | |
5005acfe | 5871 | enablestring= |
e6cc62c6 VS |
5872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5873 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5874 | no_cache=0 |
5875 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5876 | if test "${enable_protocol_http+set}" = set; then | |
5877 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5878 | |
4cdb0ab0 VS |
5879 | if test "$enableval" = yes; then |
5880 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5881 | else | |
5882 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5883 | fi | |
e6cc62c6 | 5884 | |
4cdb0ab0 | 5885 | else |
e6cc62c6 | 5886 | |
4cdb0ab0 VS |
5887 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5888 | if test "x$LINE" != x ; then | |
5889 | eval "DEFAULT_$LINE" | |
5890 | else | |
5891 | no_cache=1 | |
5892 | fi | |
5893 | ||
5894 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5895 | |
e6cc62c6 | 5896 | fi; |
4cdb0ab0 VS |
5897 | |
5898 | eval "$ac_cv_use_protocol_http" | |
5899 | if test "$no_cache" != 1; then | |
5900 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5901 | fi | |
5902 | ||
5903 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5904 | echo "$as_me:$LINENO: result: yes" >&5 |
5905 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5906 | else |
e6cc62c6 VS |
5907 | echo "$as_me:$LINENO: result: no" >&5 |
5908 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5909 | fi |
e6cc62c6 | 5910 | |
4cdb0ab0 | 5911 | |
5005acfe | 5912 | enablestring= |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5914 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5915 | no_cache=0 |
5916 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5917 | if test "${enable_protocol_ftp+set}" = set; then | |
5918 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5919 | |
4cdb0ab0 VS |
5920 | if test "$enableval" = yes; then |
5921 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5922 | else | |
5923 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5924 | fi | |
e6cc62c6 | 5925 | |
4cdb0ab0 | 5926 | else |
e6cc62c6 | 5927 | |
4cdb0ab0 VS |
5928 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5929 | if test "x$LINE" != x ; then | |
5930 | eval "DEFAULT_$LINE" | |
5931 | else | |
5932 | no_cache=1 | |
5933 | fi | |
5934 | ||
5935 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5936 | |
e6cc62c6 | 5937 | fi; |
4cdb0ab0 VS |
5938 | |
5939 | eval "$ac_cv_use_protocol_ftp" | |
5940 | if test "$no_cache" != 1; then | |
5941 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5942 | fi | |
5943 | ||
5944 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5945 | echo "$as_me:$LINENO: result: yes" >&5 |
5946 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5947 | else |
e6cc62c6 VS |
5948 | echo "$as_me:$LINENO: result: no" >&5 |
5949 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5950 | fi |
e6cc62c6 | 5951 | |
4cdb0ab0 | 5952 | |
5005acfe | 5953 | enablestring= |
e6cc62c6 VS |
5954 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5955 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5956 | no_cache=0 |
5957 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5958 | if test "${enable_protocol_file+set}" = set; then | |
5959 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5960 | |
4cdb0ab0 VS |
5961 | if test "$enableval" = yes; then |
5962 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5963 | else | |
5964 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5965 | fi | |
e6cc62c6 | 5966 | |
4cdb0ab0 | 5967 | else |
e6cc62c6 | 5968 | |
4cdb0ab0 VS |
5969 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5970 | if test "x$LINE" != x ; then | |
5971 | eval "DEFAULT_$LINE" | |
5972 | else | |
5973 | no_cache=1 | |
5974 | fi | |
5975 | ||
5976 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5977 | |
e6cc62c6 | 5978 | fi; |
4cdb0ab0 VS |
5979 | |
5980 | eval "$ac_cv_use_protocol_file" | |
5981 | if test "$no_cache" != 1; then | |
5982 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5983 | fi | |
5984 | ||
5985 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5986 | echo "$as_me:$LINENO: result: yes" >&5 |
5987 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5988 | else |
e6cc62c6 VS |
5989 | echo "$as_me:$LINENO: result: no" >&5 |
5990 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5991 | fi |
e6cc62c6 | 5992 | |
52127426 | 5993 | |
8284b0c5 MB |
5994 | |
5995 | ||
5996 | ||
5005acfe | 5997 | enablestring= |
e6cc62c6 VS |
5998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5999 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
6000 | no_cache=0 |
6001 | # Check whether --enable-threads or --disable-threads was given. | |
6002 | if test "${enable_threads+set}" = set; then | |
6003 | enableval="$enable_threads" | |
e6cc62c6 | 6004 | |
10f2d63a VZ |
6005 | if test "$enableval" = yes; then |
6006 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6007 | else | |
6008 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6009 | fi | |
e6cc62c6 | 6010 | |
10f2d63a | 6011 | else |
e6cc62c6 | 6012 | |
10f2d63a VZ |
6013 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
6014 | if test "x$LINE" != x ; then | |
6015 | eval "DEFAULT_$LINE" | |
6016 | else | |
6017 | no_cache=1 | |
6018 | fi | |
6019 | ||
6020 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 6021 | |
e6cc62c6 | 6022 | fi; |
10f2d63a VZ |
6023 | |
6024 | eval "$ac_cv_use_threads" | |
6025 | if test "$no_cache" != 1; then | |
6026 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6027 | fi | |
6028 | ||
6029 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
6030 | echo "$as_me:$LINENO: result: yes" >&5 |
6031 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6032 | else |
e6cc62c6 VS |
6033 | echo "$as_me:$LINENO: result: no" >&5 |
6034 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6035 | fi |
e6cc62c6 | 6036 | |
10f2d63a | 6037 | |
b12915c1 VZ |
6038 | if test "$wxUSE_GUI" = "yes"; then |
6039 | ||
8284b0c5 MB |
6040 | |
6041 | ||
5005acfe | 6042 | enablestring= |
e6cc62c6 VS |
6043 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
6044 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
6045 | no_cache=0 |
6046 | # Check whether --enable-docview or --disable-docview was given. | |
6047 | if test "${enable_docview+set}" = set; then | |
6048 | enableval="$enable_docview" | |
e6cc62c6 | 6049 | |
10f2d63a VZ |
6050 | if test "$enableval" = yes; then |
6051 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6052 | else | |
6053 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6054 | fi | |
e6cc62c6 | 6055 | |
10f2d63a | 6056 | else |
e6cc62c6 | 6057 | |
10f2d63a VZ |
6058 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
6059 | if test "x$LINE" != x ; then | |
6060 | eval "DEFAULT_$LINE" | |
6061 | else | |
6062 | no_cache=1 | |
6063 | fi | |
6064 | ||
6065 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 6066 | |
e6cc62c6 | 6067 | fi; |
10f2d63a VZ |
6068 | |
6069 | eval "$ac_cv_use_docview" | |
6070 | if test "$no_cache" != 1; then | |
6071 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6072 | fi | |
6073 | ||
6074 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6075 | echo "$as_me:$LINENO: result: yes" >&5 |
6076 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6077 | else |
e6cc62c6 VS |
6078 | echo "$as_me:$LINENO: result: no" >&5 |
6079 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6080 | fi |
e6cc62c6 | 6081 | |
10f2d63a | 6082 | |
5005acfe | 6083 | enablestring= |
e6cc62c6 VS |
6084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
6085 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
6086 | no_cache=0 |
6087 | # Check whether --enable-help or --disable-help was given. | |
6088 | if test "${enable_help+set}" = set; then | |
6089 | enableval="$enable_help" | |
e6cc62c6 | 6090 | |
10f2d63a VZ |
6091 | if test "$enableval" = yes; then |
6092 | ac_cv_use_help='wxUSE_HELP=yes' | |
6093 | else | |
6094 | ac_cv_use_help='wxUSE_HELP=no' | |
6095 | fi | |
e6cc62c6 | 6096 | |
10f2d63a | 6097 | else |
e6cc62c6 | 6098 | |
10f2d63a VZ |
6099 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
6100 | if test "x$LINE" != x ; then | |
6101 | eval "DEFAULT_$LINE" | |
6102 | else | |
6103 | no_cache=1 | |
6104 | fi | |
6105 | ||
6106 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 6107 | |
e6cc62c6 | 6108 | fi; |
10f2d63a VZ |
6109 | |
6110 | eval "$ac_cv_use_help" | |
6111 | if test "$no_cache" != 1; then | |
6112 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6113 | fi | |
6114 | ||
6115 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
6116 | echo "$as_me:$LINENO: result: yes" >&5 |
6117 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6118 | else |
e6cc62c6 VS |
6119 | echo "$as_me:$LINENO: result: no" >&5 |
6120 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6121 | fi |
e6cc62c6 | 6122 | |
10f2d63a | 6123 | |
5005acfe | 6124 | enablestring= |
e6cc62c6 VS |
6125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
6126 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
6127 | no_cache=0 |
6128 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6129 | if test "${enable_mshtmlhelp+set}" = set; then | |
6130 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 6131 | |
29fd3c0c VS |
6132 | if test "$enableval" = yes; then |
6133 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6134 | else | |
6135 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6136 | fi | |
e6cc62c6 | 6137 | |
29fd3c0c | 6138 | else |
e6cc62c6 | 6139 | |
29fd3c0c VS |
6140 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6141 | if test "x$LINE" != x ; then | |
6142 | eval "DEFAULT_$LINE" | |
6143 | else | |
6144 | no_cache=1 | |
6145 | fi | |
6146 | ||
6147 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6148 | |
e6cc62c6 | 6149 | fi; |
29fd3c0c VS |
6150 | |
6151 | eval "$ac_cv_use_mshtmlhelp" | |
6152 | if test "$no_cache" != 1; then | |
6153 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6154 | fi | |
6155 | ||
6156 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6157 | echo "$as_me:$LINENO: result: yes" >&5 |
6158 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6159 | else |
e6cc62c6 VS |
6160 | echo "$as_me:$LINENO: result: no" >&5 |
6161 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6162 | fi |
e6cc62c6 | 6163 | |
29fd3c0c | 6164 | |
5005acfe | 6165 | enablestring= |
e6cc62c6 VS |
6166 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6167 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6168 | no_cache=0 |
6169 | # Check whether --enable-html or --disable-html was given. | |
6170 | if test "${enable_html+set}" = set; then | |
6171 | enableval="$enable_html" | |
e6cc62c6 | 6172 | |
3379ed37 VZ |
6173 | if test "$enableval" = yes; then |
6174 | ac_cv_use_html='wxUSE_HTML=yes' | |
6175 | else | |
6176 | ac_cv_use_html='wxUSE_HTML=no' | |
6177 | fi | |
e6cc62c6 | 6178 | |
3379ed37 | 6179 | else |
e6cc62c6 | 6180 | |
3379ed37 VZ |
6181 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6182 | if test "x$LINE" != x ; then | |
6183 | eval "DEFAULT_$LINE" | |
6184 | else | |
6185 | no_cache=1 | |
6186 | fi | |
6187 | ||
6188 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6189 | |
e6cc62c6 | 6190 | fi; |
3379ed37 VZ |
6191 | |
6192 | eval "$ac_cv_use_html" | |
6193 | if test "$no_cache" != 1; then | |
6194 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6195 | fi | |
6196 | ||
6197 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6198 | echo "$as_me:$LINENO: result: yes" >&5 |
6199 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6200 | else |
e6cc62c6 VS |
6201 | echo "$as_me:$LINENO: result: no" >&5 |
6202 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6203 | fi |
e6cc62c6 | 6204 | |
3379ed37 | 6205 | |
5005acfe | 6206 | enablestring= |
e6cc62c6 VS |
6207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6208 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6209 | no_cache=0 |
6210 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6211 | if test "${enable_htmlhelp+set}" = set; then | |
6212 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6213 | |
3379ed37 VZ |
6214 | if test "$enableval" = yes; then |
6215 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6216 | else | |
6217 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6218 | fi | |
e6cc62c6 | 6219 | |
3379ed37 | 6220 | else |
e6cc62c6 | 6221 | |
3379ed37 VZ |
6222 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6223 | if test "x$LINE" != x ; then | |
6224 | eval "DEFAULT_$LINE" | |
6225 | else | |
6226 | no_cache=1 | |
6227 | fi | |
6228 | ||
6229 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6230 | |
e6cc62c6 | 6231 | fi; |
3379ed37 VZ |
6232 | |
6233 | eval "$ac_cv_use_htmlhelp" | |
6234 | if test "$no_cache" != 1; then | |
6235 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6236 | fi | |
6237 | ||
6238 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6239 | echo "$as_me:$LINENO: result: yes" >&5 |
6240 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6241 | else |
e6cc62c6 VS |
6242 | echo "$as_me:$LINENO: result: no" >&5 |
6243 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6244 | fi |
e6cc62c6 | 6245 | |
3379ed37 | 6246 | |
5005acfe | 6247 | enablestring= |
e6cc62c6 VS |
6248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6249 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6250 | no_cache=0 |
6251 | # Check whether --enable-constraints or --disable-constraints was given. | |
6252 | if test "${enable_constraints+set}" = set; then | |
6253 | enableval="$enable_constraints" | |
e6cc62c6 | 6254 | |
10f2d63a VZ |
6255 | if test "$enableval" = yes; then |
6256 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6257 | else | |
6258 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6259 | fi | |
e6cc62c6 | 6260 | |
10f2d63a | 6261 | else |
e6cc62c6 | 6262 | |
10f2d63a VZ |
6263 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6264 | if test "x$LINE" != x ; then | |
6265 | eval "DEFAULT_$LINE" | |
6266 | else | |
6267 | no_cache=1 | |
6268 | fi | |
6269 | ||
6270 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6271 | |
e6cc62c6 | 6272 | fi; |
10f2d63a VZ |
6273 | |
6274 | eval "$ac_cv_use_constraints" | |
6275 | if test "$no_cache" != 1; then | |
6276 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6277 | fi | |
6278 | ||
6279 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6280 | echo "$as_me:$LINENO: result: yes" >&5 |
6281 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6282 | else |
e6cc62c6 VS |
6283 | echo "$as_me:$LINENO: result: no" >&5 |
6284 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6285 | fi |
e6cc62c6 | 6286 | |
10f2d63a | 6287 | |
5005acfe | 6288 | enablestring= |
e6cc62c6 VS |
6289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6290 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6291 | no_cache=0 |
6292 | # Check whether --enable-printarch or --disable-printarch was given. | |
6293 | if test "${enable_printarch+set}" = set; then | |
6294 | enableval="$enable_printarch" | |
e6cc62c6 | 6295 | |
10f2d63a VZ |
6296 | if test "$enableval" = yes; then |
6297 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6298 | else | |
6299 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6300 | fi | |
e6cc62c6 | 6301 | |
10f2d63a | 6302 | else |
e6cc62c6 | 6303 | |
10f2d63a VZ |
6304 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6305 | if test "x$LINE" != x ; then | |
6306 | eval "DEFAULT_$LINE" | |
6307 | else | |
6308 | no_cache=1 | |
6309 | fi | |
6310 | ||
6311 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6312 | |
e6cc62c6 | 6313 | fi; |
10f2d63a VZ |
6314 | |
6315 | eval "$ac_cv_use_printarch" | |
6316 | if test "$no_cache" != 1; then | |
6317 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6318 | fi | |
6319 | ||
6320 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6321 | echo "$as_me:$LINENO: result: yes" >&5 |
6322 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6323 | else |
e6cc62c6 VS |
6324 | echo "$as_me:$LINENO: result: no" >&5 |
6325 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6326 | fi |
e6cc62c6 | 6327 | |
10f2d63a | 6328 | |
5005acfe | 6329 | enablestring= |
e6cc62c6 VS |
6330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6331 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6332 | no_cache=0 |
6333 | # Check whether --enable-mdi or --disable-mdi was given. | |
6334 | if test "${enable_mdi+set}" = set; then | |
6335 | enableval="$enable_mdi" | |
e6cc62c6 | 6336 | |
10f2d63a VZ |
6337 | if test "$enableval" = yes; then |
6338 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6339 | else | |
6340 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6341 | fi | |
e6cc62c6 | 6342 | |
10f2d63a | 6343 | else |
e6cc62c6 | 6344 | |
10f2d63a VZ |
6345 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6346 | if test "x$LINE" != x ; then | |
6347 | eval "DEFAULT_$LINE" | |
6348 | else | |
6349 | no_cache=1 | |
6350 | fi | |
6351 | ||
6352 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6353 | |
e6cc62c6 | 6354 | fi; |
10f2d63a VZ |
6355 | |
6356 | eval "$ac_cv_use_mdi" | |
6357 | if test "$no_cache" != 1; then | |
6358 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6359 | fi | |
6360 | ||
6361 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6362 | echo "$as_me:$LINENO: result: yes" >&5 |
6363 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6364 | else |
e6cc62c6 VS |
6365 | echo "$as_me:$LINENO: result: no" >&5 |
6366 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6367 | fi |
e6cc62c6 | 6368 | |
698dcdb6 | 6369 | |
5005acfe | 6370 | enablestring= |
e6cc62c6 VS |
6371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6372 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6373 | no_cache=0 |
6374 | # Check whether --enable-loggui or --disable-loggui was given. | |
6375 | if test "${enable_loggui+set}" = set; then | |
6376 | enableval="$enable_loggui" | |
e6cc62c6 | 6377 | |
1e6feb95 VZ |
6378 | if test "$enableval" = yes; then |
6379 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6380 | else | |
6381 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6382 | fi | |
e6cc62c6 | 6383 | |
1e6feb95 | 6384 | else |
e6cc62c6 | 6385 | |
1e6feb95 VZ |
6386 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6387 | if test "x$LINE" != x ; then | |
6388 | eval "DEFAULT_$LINE" | |
6389 | else | |
6390 | no_cache=1 | |
6391 | fi | |
6392 | ||
6393 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6394 | |
e6cc62c6 | 6395 | fi; |
1e6feb95 VZ |
6396 | |
6397 | eval "$ac_cv_use_loggui" | |
6398 | if test "$no_cache" != 1; then | |
6399 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6400 | fi | |
6401 | ||
6402 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6403 | echo "$as_me:$LINENO: result: yes" >&5 |
6404 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6405 | else |
e6cc62c6 VS |
6406 | echo "$as_me:$LINENO: result: no" >&5 |
6407 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6408 | fi |
e6cc62c6 | 6409 | |
1e6feb95 | 6410 | |
5005acfe | 6411 | enablestring= |
e6cc62c6 VS |
6412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6413 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6414 | no_cache=0 |
6415 | # Check whether --enable-logwin or --disable-logwin was given. | |
6416 | if test "${enable_logwin+set}" = set; then | |
6417 | enableval="$enable_logwin" | |
e6cc62c6 | 6418 | |
1e6feb95 VZ |
6419 | if test "$enableval" = yes; then |
6420 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6421 | else | |
6422 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6423 | fi | |
e6cc62c6 | 6424 | |
1e6feb95 | 6425 | else |
e6cc62c6 | 6426 | |
1e6feb95 VZ |
6427 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6428 | if test "x$LINE" != x ; then | |
6429 | eval "DEFAULT_$LINE" | |
6430 | else | |
6431 | no_cache=1 | |
6432 | fi | |
6433 | ||
6434 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6435 | |
e6cc62c6 | 6436 | fi; |
1e6feb95 VZ |
6437 | |
6438 | eval "$ac_cv_use_logwin" | |
6439 | if test "$no_cache" != 1; then | |
6440 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6441 | fi | |
6442 | ||
6443 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6444 | echo "$as_me:$LINENO: result: yes" >&5 |
6445 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6446 | else |
e6cc62c6 VS |
6447 | echo "$as_me:$LINENO: result: no" >&5 |
6448 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6449 | fi |
e6cc62c6 | 6450 | |
1e6feb95 | 6451 | |
5005acfe | 6452 | enablestring= |
e6cc62c6 VS |
6453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6454 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6455 | no_cache=0 |
6456 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6457 | if test "${enable_logdialog+set}" = set; then | |
6458 | enableval="$enable_logdialog" | |
e6cc62c6 | 6459 | |
69d27ff7 MB |
6460 | if test "$enableval" = yes; then |
6461 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6462 | else | |
6463 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6464 | fi | |
e6cc62c6 | 6465 | |
69d27ff7 | 6466 | else |
e6cc62c6 | 6467 | |
69d27ff7 MB |
6468 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6469 | if test "x$LINE" != x ; then | |
6470 | eval "DEFAULT_$LINE" | |
6471 | else | |
6472 | no_cache=1 | |
6473 | fi | |
6474 | ||
6475 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6476 | |
e6cc62c6 | 6477 | fi; |
69d27ff7 MB |
6478 | |
6479 | eval "$ac_cv_use_logdialog" | |
6480 | if test "$no_cache" != 1; then | |
6481 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6482 | fi | |
6483 | ||
6484 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6485 | echo "$as_me:$LINENO: result: yes" >&5 |
6486 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6487 | else |
e6cc62c6 VS |
6488 | echo "$as_me:$LINENO: result: no" >&5 |
6489 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6490 | fi |
e6cc62c6 | 6491 | |
8284b0c5 | 6492 | |
52127426 | 6493 | |
5005acfe | 6494 | enablestring= |
e6cc62c6 VS |
6495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6496 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6497 | no_cache=0 |
6498 | # Check whether --enable-postscript or --disable-postscript was given. | |
6499 | if test "${enable_postscript+set}" = set; then | |
6500 | enableval="$enable_postscript" | |
e6cc62c6 | 6501 | |
10f2d63a VZ |
6502 | if test "$enableval" = yes; then |
6503 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6504 | else | |
6505 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6506 | fi | |
e6cc62c6 | 6507 | |
10f2d63a | 6508 | else |
e6cc62c6 | 6509 | |
10f2d63a VZ |
6510 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6511 | if test "x$LINE" != x ; then | |
6512 | eval "DEFAULT_$LINE" | |
6513 | else | |
6514 | no_cache=1 | |
6515 | fi | |
6516 | ||
6517 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6518 | |
e6cc62c6 | 6519 | fi; |
10f2d63a VZ |
6520 | |
6521 | eval "$ac_cv_use_postscript" | |
6522 | if test "$no_cache" != 1; then | |
6523 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6524 | fi | |
6525 | ||
6526 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6527 | echo "$as_me:$LINENO: result: yes" >&5 |
6528 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6529 | else |
e6cc62c6 VS |
6530 | echo "$as_me:$LINENO: result: no" >&5 |
6531 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6532 | fi |
e6cc62c6 | 6533 | |
8284b0c5 MB |
6534 | |
6535 | ||
52127426 | 6536 | |
8284b0c5 | 6537 | |
5005acfe | 6538 | enablestring= |
e6cc62c6 VS |
6539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6540 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6541 | no_cache=0 |
3c907f20 VZ |
6542 | # Check whether --enable-prologio or --disable-prologio was given. |
6543 | if test "${enable_prologio+set}" = set; then | |
6544 | enableval="$enable_prologio" | |
e6cc62c6 | 6545 | |
10f2d63a | 6546 | if test "$enableval" = yes; then |
3c907f20 | 6547 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6548 | else |
3c907f20 | 6549 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6550 | fi |
e6cc62c6 | 6551 | |
10f2d63a | 6552 | else |
e6cc62c6 | 6553 | |
3c907f20 | 6554 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6555 | if test "x$LINE" != x ; then |
6556 | eval "DEFAULT_$LINE" | |
6557 | else | |
6558 | no_cache=1 | |
6559 | fi | |
6560 | ||
3c907f20 | 6561 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6562 | |
e6cc62c6 | 6563 | fi; |
10f2d63a | 6564 | |
3c907f20 | 6565 | eval "$ac_cv_use_prologio" |
10f2d63a | 6566 | if test "$no_cache" != 1; then |
3c907f20 | 6567 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6568 | fi |
6569 | ||
3c907f20 | 6570 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6571 | echo "$as_me:$LINENO: result: yes" >&5 |
6572 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6573 | else |
e6cc62c6 VS |
6574 | echo "$as_me:$LINENO: result: no" >&5 |
6575 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6576 | fi |
e6cc62c6 | 6577 | |
8284b0c5 | 6578 | |
5005acfe | 6579 | enablestring= |
e6cc62c6 VS |
6580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6581 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6582 | no_cache=0 |
3c907f20 VZ |
6583 | # Check whether --enable-resources or --disable-resources was given. |
6584 | if test "${enable_resources+set}" = set; then | |
6585 | enableval="$enable_resources" | |
e6cc62c6 | 6586 | |
10f2d63a | 6587 | if test "$enableval" = yes; then |
3c907f20 | 6588 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6589 | else |
3c907f20 | 6590 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6591 | fi |
e6cc62c6 | 6592 | |
10f2d63a | 6593 | else |
e6cc62c6 | 6594 | |
3c907f20 | 6595 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6596 | if test "x$LINE" != x ; then |
6597 | eval "DEFAULT_$LINE" | |
6598 | else | |
6599 | no_cache=1 | |
6600 | fi | |
6601 | ||
3c907f20 | 6602 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6603 | |
e6cc62c6 | 6604 | fi; |
10f2d63a | 6605 | |
3c907f20 | 6606 | eval "$ac_cv_use_resources" |
10f2d63a | 6607 | if test "$no_cache" != 1; then |
3c907f20 | 6608 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6609 | fi |
6610 | ||
3c907f20 | 6611 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6612 | echo "$as_me:$LINENO: result: yes" >&5 |
6613 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6614 | else |
e6cc62c6 VS |
6615 | echo "$as_me:$LINENO: result: no" >&5 |
6616 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6617 | fi |
e6cc62c6 | 6618 | |
8284b0c5 MB |
6619 | |
6620 | ||
52127426 | 6621 | |
5005acfe | 6622 | enablestring= |
e6cc62c6 VS |
6623 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6624 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6625 | no_cache=0 |
6626 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6627 | if test "${enable_clipboard+set}" = set; then | |
6628 | enableval="$enable_clipboard" | |
e6cc62c6 | 6629 | |
10f2d63a VZ |
6630 | if test "$enableval" = yes; then |
6631 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6632 | else | |
6633 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6634 | fi | |
e6cc62c6 | 6635 | |
10f2d63a | 6636 | else |
e6cc62c6 | 6637 | |
10f2d63a VZ |
6638 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6639 | if test "x$LINE" != x ; then | |
6640 | eval "DEFAULT_$LINE" | |
6641 | else | |
6642 | no_cache=1 | |
6643 | fi | |
6644 | ||
6645 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6646 | |
e6cc62c6 | 6647 | fi; |
10f2d63a VZ |
6648 | |
6649 | eval "$ac_cv_use_clipboard" | |
6650 | if test "$no_cache" != 1; then | |
6651 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6652 | fi | |
6653 | ||
6654 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6655 | echo "$as_me:$LINENO: result: yes" >&5 |
6656 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6657 | else |
e6cc62c6 VS |
6658 | echo "$as_me:$LINENO: result: no" >&5 |
6659 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6660 | fi |
e6cc62c6 | 6661 | |
10f2d63a | 6662 | |
5005acfe | 6663 | enablestring= |
e6cc62c6 VS |
6664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6665 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6666 | no_cache=0 |
6667 | # Check whether --enable-dnd or --disable-dnd was given. | |
6668 | if test "${enable_dnd+set}" = set; then | |
6669 | enableval="$enable_dnd" | |
e6cc62c6 | 6670 | |
10f2d63a VZ |
6671 | if test "$enableval" = yes; then |
6672 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6673 | else | |
6674 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6675 | fi | |
e6cc62c6 | 6676 | |
10f2d63a | 6677 | else |
e6cc62c6 | 6678 | |
10f2d63a VZ |
6679 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6680 | if test "x$LINE" != x ; then | |
6681 | eval "DEFAULT_$LINE" | |
6682 | else | |
6683 | no_cache=1 | |
6684 | fi | |
6685 | ||
6686 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6687 | |
e6cc62c6 | 6688 | fi; |
10f2d63a VZ |
6689 | |
6690 | eval "$ac_cv_use_dnd" | |
6691 | if test "$no_cache" != 1; then | |
6692 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6693 | fi | |
6694 | ||
6695 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6696 | echo "$as_me:$LINENO: result: yes" >&5 |
6697 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6698 | else |
e6cc62c6 VS |
6699 | echo "$as_me:$LINENO: result: no" >&5 |
6700 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6701 | fi |
e6cc62c6 | 6702 | |
10f2d63a | 6703 | |
5005acfe | 6704 | enablestring= |
e6cc62c6 VS |
6705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6706 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6707 | no_cache=0 |
6708 | # Check whether --enable-metafile or --disable-metafile was given. | |
6709 | if test "${enable_metafile+set}" = set; then | |
6710 | enableval="$enable_metafile" | |
e6cc62c6 | 6711 | |
b64f0a5f RL |
6712 | if test "$enableval" = yes; then |
6713 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6714 | else | |
6715 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6716 | fi | |
e6cc62c6 | 6717 | |
b64f0a5f | 6718 | else |
e6cc62c6 | 6719 | |
b64f0a5f RL |
6720 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6721 | if test "x$LINE" != x ; then | |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
6727 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6728 | |
e6cc62c6 | 6729 | fi; |
b64f0a5f RL |
6730 | |
6731 | eval "$ac_cv_use_metafile" | |
6732 | if test "$no_cache" != 1; then | |
6733 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6737 | echo "$as_me:$LINENO: result: yes" >&5 |
6738 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6739 | else |
e6cc62c6 VS |
6740 | echo "$as_me:$LINENO: result: no" >&5 |
6741 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6742 | fi |
e6cc62c6 | 6743 | |
52127426 | 6744 | |
8284b0c5 | 6745 | |
52127426 | 6746 | |
8284b0c5 | 6747 | |
5005acfe | 6748 | enablestring= |
e6cc62c6 VS |
6749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6750 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6751 | no_cache=0 |
6752 | # Check whether --enable-controls or --disable-controls was given. | |
6753 | if test "${enable_controls+set}" = set; then | |
6754 | enableval="$enable_controls" | |
e6cc62c6 | 6755 | |
10f2d63a VZ |
6756 | if test "$enableval" = yes; then |
6757 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6758 | else | |
6759 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6760 | fi | |
e6cc62c6 | 6761 | |
10f2d63a | 6762 | else |
e6cc62c6 | 6763 | |
10f2d63a VZ |
6764 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6765 | if test "x$LINE" != x ; then | |
6766 | eval "DEFAULT_$LINE" | |
6767 | else | |
6768 | no_cache=1 | |
6769 | fi | |
6770 | ||
6771 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6772 | |
e6cc62c6 | 6773 | fi; |
10f2d63a VZ |
6774 | |
6775 | eval "$ac_cv_use_controls" | |
6776 | if test "$no_cache" != 1; then | |
6777 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6778 | fi | |
6779 | ||
6780 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6781 | echo "$as_me:$LINENO: result: yes" >&5 |
6782 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6783 | else |
e6cc62c6 VS |
6784 | echo "$as_me:$LINENO: result: no" >&5 |
6785 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6786 | fi |
e6cc62c6 | 6787 | |
10f2d63a VZ |
6788 | |
6789 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6790 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6791 | DEFAULT_wxUSE_BMPBUTTON=yes |
6792 | DEFAULT_wxUSE_BUTTON=yes | |
6793 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6794 | DEFAULT_wxUSE_CARET=yes |
6795 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6796 | DEFAULT_wxUSE_CHECKBOX=yes |
6797 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6798 | DEFAULT_wxUSE_CHOICE=yes | |
6799 | DEFAULT_wxUSE_GAUGE=yes | |
6800 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6801 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6802 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6803 | DEFAULT_wxUSE_LISTBOX=yes |
6804 | DEFAULT_wxUSE_LISTCTRL=yes | |
6805 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6806 | DEFAULT_wxUSE_RADIOBOX=yes | |
6807 | DEFAULT_wxUSE_RADIOBTN=yes | |
6808 | DEFAULT_wxUSE_SASH=yes | |
6809 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6810 | DEFAULT_wxUSE_SLIDER=yes | |
6811 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6812 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6813 | DEFAULT_wxUSE_SPLITTER=yes |
6814 | DEFAULT_wxUSE_STATBMP=yes | |
6815 | DEFAULT_wxUSE_STATBOX=yes | |
6816 | DEFAULT_wxUSE_STATLINE=yes | |
6817 | DEFAULT_wxUSE_STATUSBAR=yes | |
6818 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6819 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6820 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6821 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6822 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6823 | DEFAULT_wxUSE_TOOLTIPS=yes |
6824 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6825 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6826 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6827 | elif test "$wxUSE_CONTROLS" = "no"; then |
6828 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6829 | DEFAULT_wxUSE_BMPBUTTON=no |
6830 | DEFAULT_wxUSE_BUTTON=no | |
6831 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6832 | DEFAULT_wxUSE_CARET=no |
6833 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6834 | DEFAULT_wxUSE_CHECKBOX=no |
6835 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6836 | DEFAULT_wxUSE_CHOICE=no | |
6837 | DEFAULT_wxUSE_GAUGE=no | |
6838 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6839 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6840 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6841 | DEFAULT_wxUSE_LISTBOX=no |
6842 | DEFAULT_wxUSE_LISTCTRL=no | |
6843 | DEFAULT_wxUSE_NOTEBOOK=no | |
6844 | DEFAULT_wxUSE_RADIOBOX=no | |
6845 | DEFAULT_wxUSE_RADIOBTN=no | |
6846 | DEFAULT_wxUSE_SASH=no | |
6847 | DEFAULT_wxUSE_SCROLLBAR=no | |
6848 | DEFAULT_wxUSE_SLIDER=no | |
6849 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6850 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6851 | DEFAULT_wxUSE_SPLITTER=no |
6852 | DEFAULT_wxUSE_STATBMP=no | |
6853 | DEFAULT_wxUSE_STATBOX=no | |
6854 | DEFAULT_wxUSE_STATLINE=no | |
6855 | DEFAULT_wxUSE_STATUSBAR=no | |
6856 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6857 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6858 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6859 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6860 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6861 | DEFAULT_wxUSE_TOOLTIPS=no |
6862 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6863 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6864 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6865 | fi |
6866 | ||
ac0c4cc3 DE |
6867 | ## FIXME: This is a blatant hack |
6868 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6869 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6870 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6871 | # Generic notebook requires tab dialog |
6872 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6873 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6874 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6875 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6876 | fi |
6877 | ||
8284b0c5 | 6878 | |
5005acfe | 6879 | enablestring= |
e6cc62c6 VS |
6880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6881 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6882 | no_cache=0 |
6883 | # Check whether --enable-accel or --disable-accel was given. | |
6884 | if test "${enable_accel+set}" = set; then | |
6885 | enableval="$enable_accel" | |
e6cc62c6 | 6886 | |
10f2d63a VZ |
6887 | if test "$enableval" = yes; then |
6888 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6889 | else | |
6890 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6891 | fi | |
e6cc62c6 | 6892 | |
10f2d63a | 6893 | else |
e6cc62c6 | 6894 | |
10f2d63a VZ |
6895 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6896 | if test "x$LINE" != x ; then | |
6897 | eval "DEFAULT_$LINE" | |
6898 | else | |
6899 | no_cache=1 | |
6900 | fi | |
6901 | ||
6902 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6903 | |
e6cc62c6 | 6904 | fi; |
10f2d63a VZ |
6905 | |
6906 | eval "$ac_cv_use_accel" | |
6907 | if test "$no_cache" != 1; then | |
6908 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6909 | fi | |
6910 | ||
6911 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6912 | echo "$as_me:$LINENO: result: yes" >&5 |
6913 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6914 | else |
e6cc62c6 VS |
6915 | echo "$as_me:$LINENO: result: no" >&5 |
6916 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6917 | fi |
e6cc62c6 | 6918 | |
10f2d63a | 6919 | |
5005acfe | 6920 | enablestring= |
e6cc62c6 VS |
6921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6922 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6923 | no_cache=0 |
1e6feb95 VZ |
6924 | # Check whether --enable-button or --disable-button was given. |
6925 | if test "${enable_button+set}" = set; then | |
6926 | enableval="$enable_button" | |
e6cc62c6 | 6927 | |
10f2d63a | 6928 | if test "$enableval" = yes; then |
1e6feb95 | 6929 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6930 | else |
1e6feb95 | 6931 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6932 | fi |
e6cc62c6 | 6933 | |
10f2d63a | 6934 | else |
e6cc62c6 | 6935 | |
1e6feb95 | 6936 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6937 | if test "x$LINE" != x ; then |
6938 | eval "DEFAULT_$LINE" | |
6939 | else | |
6940 | no_cache=1 | |
6941 | fi | |
6942 | ||
1e6feb95 | 6943 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6944 | |
e6cc62c6 | 6945 | fi; |
10f2d63a | 6946 | |
1e6feb95 | 6947 | eval "$ac_cv_use_button" |
10f2d63a | 6948 | if test "$no_cache" != 1; then |
1e6feb95 | 6949 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6950 | fi |
6951 | ||
1e6feb95 | 6952 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6953 | echo "$as_me:$LINENO: result: yes" >&5 |
6954 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6955 | else |
e6cc62c6 VS |
6956 | echo "$as_me:$LINENO: result: no" >&5 |
6957 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6958 | fi |
e6cc62c6 | 6959 | |
10f2d63a | 6960 | |
5005acfe | 6961 | enablestring= |
e6cc62c6 VS |
6962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6963 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6964 | no_cache=0 |
6965 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6966 | if test "${enable_bmpbutton+set}" = set; then | |
6967 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6968 | |
10f2d63a VZ |
6969 | if test "$enableval" = yes; then |
6970 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6971 | else | |
6972 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6973 | fi | |
e6cc62c6 | 6974 | |
10f2d63a | 6975 | else |
e6cc62c6 | 6976 | |
10f2d63a VZ |
6977 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6978 | if test "x$LINE" != x ; then | |
6979 | eval "DEFAULT_$LINE" | |
6980 | else | |
6981 | no_cache=1 | |
6982 | fi | |
6983 | ||
6984 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6985 | |
e6cc62c6 | 6986 | fi; |
10f2d63a VZ |
6987 | |
6988 | eval "$ac_cv_use_bmpbutton" | |
6989 | if test "$no_cache" != 1; then | |
6990 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6991 | fi | |
6992 | ||
6993 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6994 | echo "$as_me:$LINENO: result: yes" >&5 |
6995 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6996 | else |
e6cc62c6 VS |
6997 | echo "$as_me:$LINENO: result: no" >&5 |
6998 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6999 | fi |
e6cc62c6 | 7000 | |
10f2d63a | 7001 | |
5005acfe | 7002 | enablestring= |
e6cc62c6 VS |
7003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
7004 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
7005 | no_cache=0 |
7006 | # Check whether --enable-calendar or --disable-calendar was given. | |
7007 | if test "${enable_calendar+set}" = set; then | |
7008 | enableval="$enable_calendar" | |
e6cc62c6 | 7009 | |
1e6feb95 VZ |
7010 | if test "$enableval" = yes; then |
7011 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7012 | else | |
7013 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7014 | fi | |
e6cc62c6 | 7015 | |
1e6feb95 | 7016 | else |
e6cc62c6 | 7017 | |
1e6feb95 VZ |
7018 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
7019 | if test "x$LINE" != x ; then | |
7020 | eval "DEFAULT_$LINE" | |
7021 | else | |
7022 | no_cache=1 | |
7023 | fi | |
7024 | ||
7025 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 7026 | |
e6cc62c6 | 7027 | fi; |
1e6feb95 VZ |
7028 | |
7029 | eval "$ac_cv_use_calendar" | |
7030 | if test "$no_cache" != 1; then | |
7031 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7032 | fi | |
7033 | ||
7034 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
7035 | echo "$as_me:$LINENO: result: yes" >&5 |
7036 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7037 | else |
e6cc62c6 VS |
7038 | echo "$as_me:$LINENO: result: no" >&5 |
7039 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7040 | fi |
e6cc62c6 | 7041 | |
1e6feb95 | 7042 | |
5005acfe | 7043 | enablestring= |
e6cc62c6 VS |
7044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
7045 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
7046 | no_cache=0 |
7047 | # Check whether --enable-caret or --disable-caret was given. | |
7048 | if test "${enable_caret+set}" = set; then | |
7049 | enableval="$enable_caret" | |
e6cc62c6 | 7050 | |
1e6feb95 VZ |
7051 | if test "$enableval" = yes; then |
7052 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7053 | else | |
7054 | ac_cv_use_caret='wxUSE_CARET=no' | |
7055 | fi | |
e6cc62c6 | 7056 | |
1e6feb95 | 7057 | else |
e6cc62c6 | 7058 | |
1e6feb95 VZ |
7059 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
7060 | if test "x$LINE" != x ; then | |
7061 | eval "DEFAULT_$LINE" | |
7062 | else | |
7063 | no_cache=1 | |
7064 | fi | |
7065 | ||
7066 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 7067 | |
e6cc62c6 | 7068 | fi; |
1e6feb95 VZ |
7069 | |
7070 | eval "$ac_cv_use_caret" | |
7071 | if test "$no_cache" != 1; then | |
7072 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7073 | fi | |
7074 | ||
7075 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
7076 | echo "$as_me:$LINENO: result: yes" >&5 |
7077 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7078 | else |
e6cc62c6 VS |
7079 | echo "$as_me:$LINENO: result: no" >&5 |
7080 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7081 | fi |
e6cc62c6 | 7082 | |
1e6feb95 | 7083 | |
5005acfe | 7084 | enablestring= |
e6cc62c6 VS |
7085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
7086 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7087 | no_cache=0 |
7088 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7089 | if test "${enable_checkbox+set}" = set; then | |
7090 | enableval="$enable_checkbox" | |
e6cc62c6 | 7091 | |
10f2d63a VZ |
7092 | if test "$enableval" = yes; then |
7093 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7094 | else | |
7095 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7096 | fi | |
e6cc62c6 | 7097 | |
10f2d63a | 7098 | else |
e6cc62c6 | 7099 | |
10f2d63a VZ |
7100 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
7101 | if test "x$LINE" != x ; then | |
7102 | eval "DEFAULT_$LINE" | |
7103 | else | |
7104 | no_cache=1 | |
7105 | fi | |
7106 | ||
7107 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 7108 | |
e6cc62c6 | 7109 | fi; |
10f2d63a VZ |
7110 | |
7111 | eval "$ac_cv_use_checkbox" | |
7112 | if test "$no_cache" != 1; then | |
7113 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7114 | fi | |
7115 | ||
7116 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
7117 | echo "$as_me:$LINENO: result: yes" >&5 |
7118 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7119 | else |
e6cc62c6 VS |
7120 | echo "$as_me:$LINENO: result: no" >&5 |
7121 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7122 | fi |
e6cc62c6 | 7123 | |
10f2d63a | 7124 | |
5005acfe | 7125 | enablestring= |
e6cc62c6 VS |
7126 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
7127 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
7128 | no_cache=0 |
7129 | # Check whether --enable-checklst or --disable-checklst was given. | |
7130 | if test "${enable_checklst+set}" = set; then | |
7131 | enableval="$enable_checklst" | |
e6cc62c6 | 7132 | |
10f2d63a VZ |
7133 | if test "$enableval" = yes; then |
7134 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7135 | else | |
7136 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7137 | fi | |
e6cc62c6 | 7138 | |
10f2d63a | 7139 | else |
e6cc62c6 | 7140 | |
10f2d63a VZ |
7141 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7142 | if test "x$LINE" != x ; then | |
7143 | eval "DEFAULT_$LINE" | |
7144 | else | |
7145 | no_cache=1 | |
7146 | fi | |
7147 | ||
7148 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7149 | |
e6cc62c6 | 7150 | fi; |
10f2d63a VZ |
7151 | |
7152 | eval "$ac_cv_use_checklst" | |
7153 | if test "$no_cache" != 1; then | |
7154 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7155 | fi | |
7156 | ||
7157 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7158 | echo "$as_me:$LINENO: result: yes" >&5 |
7159 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7160 | else |
e6cc62c6 VS |
7161 | echo "$as_me:$LINENO: result: no" >&5 |
7162 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7163 | fi |
e6cc62c6 | 7164 | |
10f2d63a | 7165 | |
5005acfe | 7166 | enablestring= |
e6cc62c6 VS |
7167 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7168 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7169 | no_cache=0 |
7170 | # Check whether --enable-choice or --disable-choice was given. | |
7171 | if test "${enable_choice+set}" = set; then | |
7172 | enableval="$enable_choice" | |
e6cc62c6 | 7173 | |
10f2d63a VZ |
7174 | if test "$enableval" = yes; then |
7175 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7176 | else | |
7177 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7178 | fi | |
e6cc62c6 | 7179 | |
10f2d63a | 7180 | else |
e6cc62c6 | 7181 | |
10f2d63a VZ |
7182 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7183 | if test "x$LINE" != x ; then | |
7184 | eval "DEFAULT_$LINE" | |
7185 | else | |
7186 | no_cache=1 | |
7187 | fi | |
7188 | ||
7189 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7190 | |
e6cc62c6 | 7191 | fi; |
10f2d63a VZ |
7192 | |
7193 | eval "$ac_cv_use_choice" | |
7194 | if test "$no_cache" != 1; then | |
7195 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7196 | fi | |
7197 | ||
7198 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7199 | echo "$as_me:$LINENO: result: yes" >&5 |
7200 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7201 | else |
e6cc62c6 VS |
7202 | echo "$as_me:$LINENO: result: no" >&5 |
7203 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7204 | fi |
e6cc62c6 | 7205 | |
10f2d63a | 7206 | |
5005acfe | 7207 | enablestring= |
e6cc62c6 VS |
7208 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7209 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7210 | no_cache=0 |
7211 | # Check whether --enable-combobox or --disable-combobox was given. | |
7212 | if test "${enable_combobox+set}" = set; then | |
7213 | enableval="$enable_combobox" | |
e6cc62c6 | 7214 | |
10f2d63a VZ |
7215 | if test "$enableval" = yes; then |
7216 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7217 | else | |
7218 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7219 | fi | |
e6cc62c6 | 7220 | |
10f2d63a | 7221 | else |
e6cc62c6 | 7222 | |
10f2d63a VZ |
7223 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7224 | if test "x$LINE" != x ; then | |
7225 | eval "DEFAULT_$LINE" | |
7226 | else | |
7227 | no_cache=1 | |
7228 | fi | |
7229 | ||
7230 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7231 | |
e6cc62c6 | 7232 | fi; |
10f2d63a VZ |
7233 | |
7234 | eval "$ac_cv_use_combobox" | |
7235 | if test "$no_cache" != 1; then | |
7236 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7237 | fi | |
7238 | ||
7239 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7240 | echo "$as_me:$LINENO: result: yes" >&5 |
7241 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7242 | else |
e6cc62c6 VS |
7243 | echo "$as_me:$LINENO: result: no" >&5 |
7244 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7245 | fi |
e6cc62c6 | 7246 | |
10f2d63a | 7247 | |
da494b40 | 7248 | enablestring= |
e6cc62c6 VS |
7249 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7250 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7251 | no_cache=0 |
7252 | # Check whether --enable-display or --disable-display was given. | |
7253 | if test "${enable_display+set}" = set; then | |
7254 | enableval="$enable_display" | |
e6cc62c6 | 7255 | |
da494b40 MB |
7256 | if test "$enableval" = yes; then |
7257 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7258 | else | |
7259 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7260 | fi | |
e6cc62c6 | 7261 | |
da494b40 | 7262 | else |
e6cc62c6 | 7263 | |
da494b40 MB |
7264 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7272 | |
e6cc62c6 | 7273 | fi; |
da494b40 MB |
7274 | |
7275 | eval "$ac_cv_use_display" | |
7276 | if test "$no_cache" != 1; then | |
7277 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7278 | fi | |
7279 | ||
7280 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7281 | echo "$as_me:$LINENO: result: yes" >&5 |
7282 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7283 | else |
e6cc62c6 VS |
7284 | echo "$as_me:$LINENO: result: no" >&5 |
7285 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7286 | fi |
e6cc62c6 | 7287 | |
da494b40 | 7288 | |
5005acfe | 7289 | enablestring= |
e6cc62c6 VS |
7290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7291 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7292 | no_cache=0 |
7293 | # Check whether --enable-gauge or --disable-gauge was given. | |
7294 | if test "${enable_gauge+set}" = set; then | |
7295 | enableval="$enable_gauge" | |
e6cc62c6 | 7296 | |
10f2d63a VZ |
7297 | if test "$enableval" = yes; then |
7298 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7299 | else | |
7300 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7301 | fi | |
e6cc62c6 | 7302 | |
10f2d63a | 7303 | else |
e6cc62c6 | 7304 | |
10f2d63a VZ |
7305 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7306 | if test "x$LINE" != x ; then | |
7307 | eval "DEFAULT_$LINE" | |
7308 | else | |
7309 | no_cache=1 | |
7310 | fi | |
7311 | ||
7312 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7313 | |
e6cc62c6 | 7314 | fi; |
10f2d63a VZ |
7315 | |
7316 | eval "$ac_cv_use_gauge" | |
7317 | if test "$no_cache" != 1; then | |
7318 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7319 | fi | |
7320 | ||
7321 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7322 | echo "$as_me:$LINENO: result: yes" >&5 |
7323 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7324 | else |
e6cc62c6 VS |
7325 | echo "$as_me:$LINENO: result: no" >&5 |
7326 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7327 | fi |
e6cc62c6 | 7328 | |
10f2d63a | 7329 | |
5005acfe | 7330 | enablestring= |
e6cc62c6 VS |
7331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7332 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7333 | no_cache=0 |
7334 | # Check whether --enable-grid or --disable-grid was given. | |
7335 | if test "${enable_grid+set}" = set; then | |
7336 | enableval="$enable_grid" | |
e6cc62c6 | 7337 | |
10f2d63a VZ |
7338 | if test "$enableval" = yes; then |
7339 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7340 | else | |
7341 | ac_cv_use_grid='wxUSE_GRID=no' | |
7342 | fi | |
e6cc62c6 | 7343 | |
10f2d63a | 7344 | else |
e6cc62c6 | 7345 | |
10f2d63a VZ |
7346 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7347 | if test "x$LINE" != x ; then | |
7348 | eval "DEFAULT_$LINE" | |
7349 | else | |
7350 | no_cache=1 | |
7351 | fi | |
7352 | ||
7353 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7354 | |
e6cc62c6 | 7355 | fi; |
10f2d63a VZ |
7356 | |
7357 | eval "$ac_cv_use_grid" | |
7358 | if test "$no_cache" != 1; then | |
7359 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7360 | fi | |
7361 | ||
7362 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7363 | echo "$as_me:$LINENO: result: yes" >&5 |
7364 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7365 | else |
e6cc62c6 VS |
7366 | echo "$as_me:$LINENO: result: no" >&5 |
7367 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7368 | fi |
e6cc62c6 | 7369 | |
10f2d63a | 7370 | |
5005acfe | 7371 | enablestring= |
e6cc62c6 VS |
7372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7373 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7374 | no_cache=0 |
7375 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7376 | if test "${enable_imaglist+set}" = set; then | |
7377 | enableval="$enable_imaglist" | |
e6cc62c6 | 7378 | |
10f2d63a VZ |
7379 | if test "$enableval" = yes; then |
7380 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7381 | else | |
7382 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7383 | fi | |
e6cc62c6 | 7384 | |
10f2d63a | 7385 | else |
e6cc62c6 | 7386 | |
10f2d63a VZ |
7387 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7388 | if test "x$LINE" != x ; then | |
7389 | eval "DEFAULT_$LINE" | |
7390 | else | |
7391 | no_cache=1 | |
7392 | fi | |
7393 | ||
7394 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7395 | |
e6cc62c6 | 7396 | fi; |
10f2d63a VZ |
7397 | |
7398 | eval "$ac_cv_use_imaglist" | |
7399 | if test "$no_cache" != 1; then | |
7400 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7401 | fi | |
7402 | ||
7403 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7404 | echo "$as_me:$LINENO: result: yes" >&5 |
7405 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7406 | else |
e6cc62c6 VS |
7407 | echo "$as_me:$LINENO: result: no" >&5 |
7408 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7409 | fi |
e6cc62c6 | 7410 | |
10f2d63a | 7411 | |
0e012a93 VZ |
7412 | enablestring= |
7413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7414 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7415 | no_cache=0 | |
7416 | # Check whether --enable-listbook or --disable-listbook was given. | |
7417 | if test "${enable_listbook+set}" = set; then | |
7418 | enableval="$enable_listbook" | |
7419 | ||
7420 | if test "$enableval" = yes; then | |
7421 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7422 | else | |
7423 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7424 | fi | |
7425 | ||
7426 | else | |
7427 | ||
7428 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7429 | if test "x$LINE" != x ; then | |
7430 | eval "DEFAULT_$LINE" | |
7431 | else | |
7432 | no_cache=1 | |
7433 | fi | |
7434 | ||
7435 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7436 | ||
7437 | fi; | |
7438 | ||
7439 | eval "$ac_cv_use_listbook" | |
7440 | if test "$no_cache" != 1; then | |
7441 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7442 | fi | |
7443 | ||
7444 | if test "$wxUSE_LISTBOOK" = yes; then | |
7445 | echo "$as_me:$LINENO: result: yes" >&5 | |
7446 | echo "${ECHO_T}yes" >&6 | |
7447 | else | |
7448 | echo "$as_me:$LINENO: result: no" >&5 | |
7449 | echo "${ECHO_T}no" >&6 | |
7450 | fi | |
7451 | ||
7452 | ||
5005acfe | 7453 | enablestring= |
e6cc62c6 VS |
7454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7455 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7456 | no_cache=0 |
7457 | # Check whether --enable-listbox or --disable-listbox was given. | |
7458 | if test "${enable_listbox+set}" = set; then | |
7459 | enableval="$enable_listbox" | |
e6cc62c6 | 7460 | |
10f2d63a VZ |
7461 | if test "$enableval" = yes; then |
7462 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7463 | else | |
7464 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7465 | fi | |
e6cc62c6 | 7466 | |
10f2d63a | 7467 | else |
e6cc62c6 | 7468 | |
10f2d63a VZ |
7469 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7470 | if test "x$LINE" != x ; then | |
7471 | eval "DEFAULT_$LINE" | |
7472 | else | |
7473 | no_cache=1 | |
7474 | fi | |
7475 | ||
7476 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7477 | |
e6cc62c6 | 7478 | fi; |
10f2d63a VZ |
7479 | |
7480 | eval "$ac_cv_use_listbox" | |
7481 | if test "$no_cache" != 1; then | |
7482 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7483 | fi | |
7484 | ||
7485 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7486 | echo "$as_me:$LINENO: result: yes" >&5 |
7487 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7488 | else |
e6cc62c6 VS |
7489 | echo "$as_me:$LINENO: result: no" >&5 |
7490 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7491 | fi |
e6cc62c6 | 7492 | |
10f2d63a | 7493 | |
5005acfe | 7494 | enablestring= |
e6cc62c6 VS |
7495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7496 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7497 | no_cache=0 |
7498 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7499 | if test "${enable_listctrl+set}" = set; then | |
7500 | enableval="$enable_listctrl" | |
e6cc62c6 | 7501 | |
10f2d63a VZ |
7502 | if test "$enableval" = yes; then |
7503 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7504 | else | |
7505 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7506 | fi | |
e6cc62c6 | 7507 | |
10f2d63a | 7508 | else |
e6cc62c6 | 7509 | |
10f2d63a VZ |
7510 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7511 | if test "x$LINE" != x ; then | |
7512 | eval "DEFAULT_$LINE" | |
7513 | else | |
7514 | no_cache=1 | |
7515 | fi | |
7516 | ||
7517 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7518 | |
e6cc62c6 | 7519 | fi; |
10f2d63a VZ |
7520 | |
7521 | eval "$ac_cv_use_listctrl" | |
7522 | if test "$no_cache" != 1; then | |
7523 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7524 | fi | |
7525 | ||
7526 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7527 | echo "$as_me:$LINENO: result: yes" >&5 |
7528 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7529 | else |
e6cc62c6 VS |
7530 | echo "$as_me:$LINENO: result: no" >&5 |
7531 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7532 | fi |
e6cc62c6 | 7533 | |
10f2d63a | 7534 | |
5005acfe | 7535 | enablestring= |
e6cc62c6 VS |
7536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7537 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7538 | no_cache=0 |
7539 | # Check whether --enable-notebook or --disable-notebook was given. | |
7540 | if test "${enable_notebook+set}" = set; then | |
7541 | enableval="$enable_notebook" | |
e6cc62c6 | 7542 | |
10f2d63a VZ |
7543 | if test "$enableval" = yes; then |
7544 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7545 | else | |
7546 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7547 | fi | |
e6cc62c6 | 7548 | |
10f2d63a | 7549 | else |
e6cc62c6 | 7550 | |
10f2d63a VZ |
7551 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7552 | if test "x$LINE" != x ; then | |
7553 | eval "DEFAULT_$LINE" | |
7554 | else | |
7555 | no_cache=1 | |
7556 | fi | |
7557 | ||
7558 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7559 | |
e6cc62c6 | 7560 | fi; |
10f2d63a VZ |
7561 | |
7562 | eval "$ac_cv_use_notebook" | |
7563 | if test "$no_cache" != 1; then | |
7564 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7565 | fi | |
7566 | ||
7567 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7568 | echo "$as_me:$LINENO: result: yes" >&5 |
7569 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7570 | else |
e6cc62c6 VS |
7571 | echo "$as_me:$LINENO: result: no" >&5 |
7572 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7573 | fi |
e6cc62c6 | 7574 | |
10f2d63a | 7575 | |
5005acfe | 7576 | enablestring= |
e6cc62c6 VS |
7577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7578 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7579 | no_cache=0 |
7580 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7581 | if test "${enable_radiobox+set}" = set; then | |
7582 | enableval="$enable_radiobox" | |
e6cc62c6 | 7583 | |
10f2d63a VZ |
7584 | if test "$enableval" = yes; then |
7585 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7586 | else | |
7587 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7588 | fi | |
e6cc62c6 | 7589 | |
10f2d63a | 7590 | else |
e6cc62c6 | 7591 | |
10f2d63a VZ |
7592 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7593 | if test "x$LINE" != x ; then | |
7594 | eval "DEFAULT_$LINE" | |
7595 | else | |
7596 | no_cache=1 | |
7597 | fi | |
7598 | ||
7599 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7600 | |
e6cc62c6 | 7601 | fi; |
10f2d63a VZ |
7602 | |
7603 | eval "$ac_cv_use_radiobox" | |
7604 | if test "$no_cache" != 1; then | |
7605 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7606 | fi | |
7607 | ||
7608 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7609 | echo "$as_me:$LINENO: result: yes" >&5 |
7610 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7611 | else |
e6cc62c6 VS |
7612 | echo "$as_me:$LINENO: result: no" >&5 |
7613 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7614 | fi |
e6cc62c6 | 7615 | |
10f2d63a | 7616 | |
5005acfe | 7617 | enablestring= |
e6cc62c6 VS |
7618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7619 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7620 | no_cache=0 |
7621 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7622 | if test "${enable_radiobtn+set}" = set; then | |
7623 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7624 | |
10f2d63a VZ |
7625 | if test "$enableval" = yes; then |
7626 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7627 | else | |
7628 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7629 | fi | |
e6cc62c6 | 7630 | |
10f2d63a | 7631 | else |
e6cc62c6 | 7632 | |
10f2d63a VZ |
7633 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7634 | if test "x$LINE" != x ; then | |
7635 | eval "DEFAULT_$LINE" | |
7636 | else | |
7637 | no_cache=1 | |
7638 | fi | |
7639 | ||
7640 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7641 | |
e6cc62c6 | 7642 | fi; |
10f2d63a VZ |
7643 | |
7644 | eval "$ac_cv_use_radiobtn" | |
7645 | if test "$no_cache" != 1; then | |
7646 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7647 | fi | |
7648 | ||
7649 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7650 | echo "$as_me:$LINENO: result: yes" >&5 |
7651 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7652 | else |
e6cc62c6 VS |
7653 | echo "$as_me:$LINENO: result: no" >&5 |
7654 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7655 | fi |
e6cc62c6 | 7656 | |
10f2d63a | 7657 | |
5005acfe | 7658 | enablestring= |
e6cc62c6 VS |
7659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7660 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7661 | no_cache=0 |
7662 | # Check whether --enable-sash or --disable-sash was given. | |
7663 | if test "${enable_sash+set}" = set; then | |
7664 | enableval="$enable_sash" | |
e6cc62c6 | 7665 | |
10f2d63a VZ |
7666 | if test "$enableval" = yes; then |
7667 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7668 | else | |
7669 | ac_cv_use_sash='wxUSE_SASH=no' | |
7670 | fi | |
e6cc62c6 | 7671 | |
10f2d63a | 7672 | else |
e6cc62c6 | 7673 | |
10f2d63a VZ |
7674 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7675 | if test "x$LINE" != x ; then | |
7676 | eval "DEFAULT_$LINE" | |
7677 | else | |
7678 | no_cache=1 | |
7679 | fi | |
7680 | ||
7681 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7682 | |
e6cc62c6 | 7683 | fi; |
10f2d63a VZ |
7684 | |
7685 | eval "$ac_cv_use_sash" | |
7686 | if test "$no_cache" != 1; then | |
7687 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7688 | fi | |
7689 | ||
7690 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7691 | echo "$as_me:$LINENO: result: yes" >&5 |
7692 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7693 | else |
e6cc62c6 VS |
7694 | echo "$as_me:$LINENO: result: no" >&5 |
7695 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7696 | fi |
e6cc62c6 | 7697 | |
10f2d63a | 7698 | |
5005acfe | 7699 | enablestring= |
e6cc62c6 VS |
7700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7701 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7702 | no_cache=0 |
7703 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7704 | if test "${enable_scrollbar+set}" = set; then | |
7705 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7706 | |
10f2d63a VZ |
7707 | if test "$enableval" = yes; then |
7708 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7709 | else | |
7710 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7711 | fi | |
e6cc62c6 | 7712 | |
10f2d63a | 7713 | else |
e6cc62c6 | 7714 | |
10f2d63a VZ |
7715 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7716 | if test "x$LINE" != x ; then | |
7717 | eval "DEFAULT_$LINE" | |
7718 | else | |
7719 | no_cache=1 | |
7720 | fi | |
7721 | ||
7722 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7723 | |
e6cc62c6 | 7724 | fi; |
10f2d63a VZ |
7725 | |
7726 | eval "$ac_cv_use_scrollbar" | |
7727 | if test "$no_cache" != 1; then | |
7728 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7729 | fi | |
7730 | ||
7731 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7732 | echo "$as_me:$LINENO: result: yes" >&5 |
7733 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7734 | else |
e6cc62c6 VS |
7735 | echo "$as_me:$LINENO: result: no" >&5 |
7736 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7737 | fi |
e6cc62c6 | 7738 | |
10f2d63a | 7739 | |
5005acfe | 7740 | enablestring= |
e6cc62c6 VS |
7741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7742 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7743 | no_cache=0 |
7744 | # Check whether --enable-slider or --disable-slider was given. | |
7745 | if test "${enable_slider+set}" = set; then | |
7746 | enableval="$enable_slider" | |
e6cc62c6 | 7747 | |
10f2d63a VZ |
7748 | if test "$enableval" = yes; then |
7749 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7750 | else | |
7751 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7752 | fi | |
e6cc62c6 | 7753 | |
10f2d63a | 7754 | else |
e6cc62c6 | 7755 | |
10f2d63a VZ |
7756 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7757 | if test "x$LINE" != x ; then | |
7758 | eval "DEFAULT_$LINE" | |
7759 | else | |
7760 | no_cache=1 | |
7761 | fi | |
7762 | ||
7763 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7764 | |
e6cc62c6 | 7765 | fi; |
10f2d63a VZ |
7766 | |
7767 | eval "$ac_cv_use_slider" | |
7768 | if test "$no_cache" != 1; then | |
7769 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7770 | fi | |
7771 | ||
7772 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7773 | echo "$as_me:$LINENO: result: yes" >&5 |
7774 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7775 | else |
e6cc62c6 VS |
7776 | echo "$as_me:$LINENO: result: no" >&5 |
7777 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7778 | fi |
e6cc62c6 | 7779 | |
10f2d63a | 7780 | |
5005acfe | 7781 | enablestring= |
e6cc62c6 VS |
7782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7783 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7784 | no_cache=0 |
7785 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7786 | if test "${enable_spinbtn+set}" = set; then | |
7787 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7788 | |
10f2d63a VZ |
7789 | if test "$enableval" = yes; then |
7790 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7791 | else | |
7792 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7793 | fi | |
e6cc62c6 | 7794 | |
10f2d63a | 7795 | else |
e6cc62c6 | 7796 | |
10f2d63a VZ |
7797 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7798 | if test "x$LINE" != x ; then | |
7799 | eval "DEFAULT_$LINE" | |
7800 | else | |
7801 | no_cache=1 | |
7802 | fi | |
7803 | ||
7804 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7805 | |
e6cc62c6 | 7806 | fi; |
10f2d63a VZ |
7807 | |
7808 | eval "$ac_cv_use_spinbtn" | |
7809 | if test "$no_cache" != 1; then | |
7810 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7811 | fi | |
7812 | ||
7813 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7814 | echo "$as_me:$LINENO: result: yes" >&5 |
7815 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7816 | else |
e6cc62c6 VS |
7817 | echo "$as_me:$LINENO: result: no" >&5 |
7818 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7819 | fi |
e6cc62c6 | 7820 | |
10f2d63a | 7821 | |
5005acfe | 7822 | enablestring= |
e6cc62c6 VS |
7823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7824 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7825 | no_cache=0 |
7826 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7827 | if test "${enable_spinctrl+set}" = set; then | |
7828 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7829 | |
56cfaa52 RR |
7830 | if test "$enableval" = yes; then |
7831 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7832 | else | |
7833 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7834 | fi | |
e6cc62c6 | 7835 | |
56cfaa52 | 7836 | else |
e6cc62c6 | 7837 | |
56cfaa52 RR |
7838 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7839 | if test "x$LINE" != x ; then | |
7840 | eval "DEFAULT_$LINE" | |
7841 | else | |
7842 | no_cache=1 | |
7843 | fi | |
7844 | ||
7845 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7846 | |
e6cc62c6 | 7847 | fi; |
56cfaa52 RR |
7848 | |
7849 | eval "$ac_cv_use_spinctrl" | |
7850 | if test "$no_cache" != 1; then | |
7851 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7852 | fi | |
7853 | ||
7854 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7855 | echo "$as_me:$LINENO: result: yes" >&5 |
7856 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7857 | else |
e6cc62c6 VS |
7858 | echo "$as_me:$LINENO: result: no" >&5 |
7859 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7860 | fi |
e6cc62c6 | 7861 | |
56cfaa52 | 7862 | |
5005acfe | 7863 | enablestring= |
e6cc62c6 VS |
7864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7865 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7866 | no_cache=0 |
7867 | # Check whether --enable-splitter or --disable-splitter was given. | |
7868 | if test "${enable_splitter+set}" = set; then | |
7869 | enableval="$enable_splitter" | |
e6cc62c6 | 7870 | |
10f2d63a VZ |
7871 | if test "$enableval" = yes; then |
7872 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7873 | else | |
7874 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7875 | fi | |
e6cc62c6 | 7876 | |
10f2d63a | 7877 | else |
e6cc62c6 | 7878 | |
10f2d63a VZ |
7879 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7880 | if test "x$LINE" != x ; then | |
7881 | eval "DEFAULT_$LINE" | |
7882 | else | |
7883 | no_cache=1 | |
7884 | fi | |
7885 | ||
7886 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7887 | |
e6cc62c6 | 7888 | fi; |
10f2d63a VZ |
7889 | |
7890 | eval "$ac_cv_use_splitter" | |
7891 | if test "$no_cache" != 1; then | |
7892 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7893 | fi | |
7894 | ||
7895 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7896 | echo "$as_me:$LINENO: result: yes" >&5 |
7897 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7898 | else |
e6cc62c6 VS |
7899 | echo "$as_me:$LINENO: result: no" >&5 |
7900 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7901 | fi |
e6cc62c6 | 7902 | |
10f2d63a | 7903 | |
5005acfe | 7904 | enablestring= |
e6cc62c6 VS |
7905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7906 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7907 | no_cache=0 |
7908 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7909 | if test "${enable_statbmp+set}" = set; then | |
7910 | enableval="$enable_statbmp" | |
e6cc62c6 | 7911 | |
10f2d63a VZ |
7912 | if test "$enableval" = yes; then |
7913 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7914 | else | |
7915 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7916 | fi | |
e6cc62c6 | 7917 | |
10f2d63a | 7918 | else |
e6cc62c6 | 7919 | |
10f2d63a VZ |
7920 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7921 | if test "x$LINE" != x ; then | |
7922 | eval "DEFAULT_$LINE" | |
7923 | else | |
7924 | no_cache=1 | |
7925 | fi | |
7926 | ||
7927 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7928 | |
e6cc62c6 | 7929 | fi; |
10f2d63a VZ |
7930 | |
7931 | eval "$ac_cv_use_statbmp" | |
7932 | if test "$no_cache" != 1; then | |
7933 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7934 | fi | |
7935 | ||
7936 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7937 | echo "$as_me:$LINENO: result: yes" >&5 |
7938 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7939 | else |
e6cc62c6 VS |
7940 | echo "$as_me:$LINENO: result: no" >&5 |
7941 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7942 | fi |
e6cc62c6 | 7943 | |
10f2d63a | 7944 | |
5005acfe | 7945 | enablestring= |
e6cc62c6 VS |
7946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7947 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7948 | no_cache=0 |
7949 | # Check whether --enable-statbox or --disable-statbox was given. | |
7950 | if test "${enable_statbox+set}" = set; then | |
7951 | enableval="$enable_statbox" | |
e6cc62c6 | 7952 | |
10f2d63a VZ |
7953 | if test "$enableval" = yes; then |
7954 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7955 | else | |
7956 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7957 | fi | |
e6cc62c6 | 7958 | |
10f2d63a | 7959 | else |
e6cc62c6 | 7960 | |
10f2d63a VZ |
7961 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7962 | if test "x$LINE" != x ; then | |
7963 | eval "DEFAULT_$LINE" | |
7964 | else | |
7965 | no_cache=1 | |
7966 | fi | |
7967 | ||
7968 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7969 | |
e6cc62c6 | 7970 | fi; |
10f2d63a VZ |
7971 | |
7972 | eval "$ac_cv_use_statbox" | |
7973 | if test "$no_cache" != 1; then | |
7974 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7975 | fi | |
7976 | ||
7977 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7978 | echo "$as_me:$LINENO: result: yes" >&5 |
7979 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7980 | else |
e6cc62c6 VS |
7981 | echo "$as_me:$LINENO: result: no" >&5 |
7982 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7983 | fi |
e6cc62c6 | 7984 | |
10f2d63a | 7985 | |
5005acfe | 7986 | enablestring= |
e6cc62c6 VS |
7987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7988 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7989 | no_cache=0 |
7990 | # Check whether --enable-statline or --disable-statline was given. | |
7991 | if test "${enable_statline+set}" = set; then | |
7992 | enableval="$enable_statline" | |
e6cc62c6 | 7993 | |
10f2d63a VZ |
7994 | if test "$enableval" = yes; then |
7995 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7996 | else | |
7997 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7998 | fi | |
e6cc62c6 | 7999 | |
10f2d63a | 8000 | else |
e6cc62c6 | 8001 | |
10f2d63a VZ |
8002 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
8003 | if test "x$LINE" != x ; then | |
8004 | eval "DEFAULT_$LINE" | |
8005 | else | |
8006 | no_cache=1 | |
8007 | fi | |
8008 | ||
8009 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 8010 | |
e6cc62c6 | 8011 | fi; |
10f2d63a VZ |
8012 | |
8013 | eval "$ac_cv_use_statline" | |
8014 | if test "$no_cache" != 1; then | |
8015 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8016 | fi | |
8017 | ||
8018 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
8019 | echo "$as_me:$LINENO: result: yes" >&5 |
8020 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8021 | else |
e6cc62c6 VS |
8022 | echo "$as_me:$LINENO: result: no" >&5 |
8023 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8024 | fi |
e6cc62c6 | 8025 | |
10f2d63a | 8026 | |
5005acfe | 8027 | enablestring= |
e6cc62c6 VS |
8028 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
8029 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
8030 | no_cache=0 |
8031 | # Check whether --enable-stattext or --disable-stattext was given. | |
8032 | if test "${enable_stattext+set}" = set; then | |
8033 | enableval="$enable_stattext" | |
e6cc62c6 | 8034 | |
1e6feb95 VZ |
8035 | if test "$enableval" = yes; then |
8036 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8037 | else | |
8038 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8039 | fi | |
e6cc62c6 | 8040 | |
1e6feb95 | 8041 | else |
e6cc62c6 | 8042 | |
1e6feb95 VZ |
8043 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
8044 | if test "x$LINE" != x ; then | |
8045 | eval "DEFAULT_$LINE" | |
8046 | else | |
8047 | no_cache=1 | |
8048 | fi | |
8049 | ||
8050 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 8051 | |
e6cc62c6 | 8052 | fi; |
1e6feb95 VZ |
8053 | |
8054 | eval "$ac_cv_use_stattext" | |
8055 | if test "$no_cache" != 1; then | |
8056 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8057 | fi | |
8058 | ||
8059 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
8060 | echo "$as_me:$LINENO: result: yes" >&5 |
8061 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8062 | else |
e6cc62c6 VS |
8063 | echo "$as_me:$LINENO: result: no" >&5 |
8064 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8065 | fi |
e6cc62c6 | 8066 | |
1e6feb95 | 8067 | |
5005acfe | 8068 | enablestring= |
e6cc62c6 VS |
8069 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
8070 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8071 | no_cache=0 |
8072 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8073 | if test "${enable_statusbar+set}" = set; then | |
8074 | enableval="$enable_statusbar" | |
e6cc62c6 | 8075 | |
10f2d63a VZ |
8076 | if test "$enableval" = yes; then |
8077 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8078 | else | |
8079 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8080 | fi | |
e6cc62c6 | 8081 | |
10f2d63a | 8082 | else |
e6cc62c6 | 8083 | |
10f2d63a VZ |
8084 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
8085 | if test "x$LINE" != x ; then | |
8086 | eval "DEFAULT_$LINE" | |
8087 | else | |
8088 | no_cache=1 | |
8089 | fi | |
8090 | ||
8091 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 8092 | |
e6cc62c6 | 8093 | fi; |
10f2d63a VZ |
8094 | |
8095 | eval "$ac_cv_use_statusbar" | |
8096 | if test "$no_cache" != 1; then | |
8097 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8098 | fi | |
8099 | ||
8100 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
8101 | echo "$as_me:$LINENO: result: yes" >&5 |
8102 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8103 | else |
e6cc62c6 VS |
8104 | echo "$as_me:$LINENO: result: no" >&5 |
8105 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8106 | fi |
e6cc62c6 | 8107 | |
10f2d63a | 8108 | |
5005acfe | 8109 | enablestring= |
e6cc62c6 VS |
8110 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
8111 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
8112 | no_cache=0 |
8113 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8114 | if test "${enable_tabdialog+set}" = set; then | |
8115 | enableval="$enable_tabdialog" | |
e6cc62c6 | 8116 | |
10f2d63a VZ |
8117 | if test "$enableval" = yes; then |
8118 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8119 | else | |
8120 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8121 | fi | |
e6cc62c6 | 8122 | |
10f2d63a | 8123 | else |
e6cc62c6 | 8124 | |
10f2d63a VZ |
8125 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
8126 | if test "x$LINE" != x ; then | |
8127 | eval "DEFAULT_$LINE" | |
8128 | else | |
8129 | no_cache=1 | |
8130 | fi | |
8131 | ||
8132 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 8133 | |
e6cc62c6 | 8134 | fi; |
10f2d63a VZ |
8135 | |
8136 | eval "$ac_cv_use_tabdialog" | |
8137 | if test "$no_cache" != 1; then | |
8138 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8139 | fi | |
8140 | ||
8141 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8142 | echo "$as_me:$LINENO: result: yes" >&5 |
8143 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8144 | else |
e6cc62c6 VS |
8145 | echo "$as_me:$LINENO: result: no" >&5 |
8146 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8147 | fi |
e6cc62c6 | 8148 | |
10f2d63a | 8149 | |
5005acfe | 8150 | enablestring= |
e6cc62c6 VS |
8151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8152 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8153 | no_cache=0 |
8154 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8155 | if test "${enable_textctrl+set}" = set; then | |
8156 | enableval="$enable_textctrl" | |
e6cc62c6 | 8157 | |
1e6feb95 VZ |
8158 | if test "$enableval" = yes; then |
8159 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8160 | else | |
8161 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8162 | fi | |
e6cc62c6 | 8163 | |
1e6feb95 | 8164 | else |
e6cc62c6 | 8165 | |
1e6feb95 VZ |
8166 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8167 | if test "x$LINE" != x ; then | |
8168 | eval "DEFAULT_$LINE" | |
8169 | else | |
8170 | no_cache=1 | |
8171 | fi | |
8172 | ||
8173 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8174 | |
e6cc62c6 | 8175 | fi; |
1e6feb95 VZ |
8176 | |
8177 | eval "$ac_cv_use_textctrl" | |
8178 | if test "$no_cache" != 1; then | |
8179 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8180 | fi | |
8181 | ||
8182 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8183 | echo "$as_me:$LINENO: result: yes" >&5 |
8184 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8185 | else |
e6cc62c6 VS |
8186 | echo "$as_me:$LINENO: result: no" >&5 |
8187 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8188 | fi |
e6cc62c6 | 8189 | |
1e6feb95 | 8190 | |
5005acfe | 8191 | enablestring= |
e6cc62c6 VS |
8192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8193 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8194 | no_cache=0 |
8195 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8196 | if test "${enable_togglebtn+set}" = set; then | |
8197 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8198 | |
1db8dc4a VZ |
8199 | if test "$enableval" = yes; then |
8200 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8201 | else | |
8202 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8203 | fi | |
e6cc62c6 | 8204 | |
1db8dc4a | 8205 | else |
e6cc62c6 | 8206 | |
1db8dc4a VZ |
8207 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8208 | if test "x$LINE" != x ; then | |
8209 | eval "DEFAULT_$LINE" | |
8210 | else | |
8211 | no_cache=1 | |
8212 | fi | |
8213 | ||
8214 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8215 | |
e6cc62c6 | 8216 | fi; |
1db8dc4a VZ |
8217 | |
8218 | eval "$ac_cv_use_togglebtn" | |
8219 | if test "$no_cache" != 1; then | |
8220 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8221 | fi | |
8222 | ||
8223 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8224 | echo "$as_me:$LINENO: result: yes" >&5 |
8225 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8226 | else |
e6cc62c6 VS |
8227 | echo "$as_me:$LINENO: result: no" >&5 |
8228 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8229 | fi |
e6cc62c6 | 8230 | |
1db8dc4a | 8231 | |
5005acfe | 8232 | enablestring= |
e6cc62c6 VS |
8233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8234 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8235 | no_cache=0 |
8236 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8237 | if test "${enable_toolbar+set}" = set; then | |
8238 | enableval="$enable_toolbar" | |
e6cc62c6 | 8239 | |
10f2d63a VZ |
8240 | if test "$enableval" = yes; then |
8241 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8242 | else | |
8243 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8244 | fi | |
e6cc62c6 | 8245 | |
10f2d63a | 8246 | else |
e6cc62c6 | 8247 | |
10f2d63a VZ |
8248 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8249 | if test "x$LINE" != x ; then | |
8250 | eval "DEFAULT_$LINE" | |
8251 | else | |
8252 | no_cache=1 | |
8253 | fi | |
8254 | ||
8255 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8256 | |
e6cc62c6 | 8257 | fi; |
10f2d63a VZ |
8258 | |
8259 | eval "$ac_cv_use_toolbar" | |
8260 | if test "$no_cache" != 1; then | |
8261 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8262 | fi | |
8263 | ||
8264 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8265 | echo "$as_me:$LINENO: result: yes" >&5 |
8266 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8267 | else |
e6cc62c6 VS |
8268 | echo "$as_me:$LINENO: result: no" >&5 |
8269 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8270 | fi |
e6cc62c6 | 8271 | |
10f2d63a | 8272 | |
5005acfe | 8273 | enablestring= |
e6cc62c6 VS |
8274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8275 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8276 | no_cache=0 |
8277 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8278 | if test "${enable_tbarnative+set}" = set; then | |
8279 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8280 | |
360d6699 VZ |
8281 | if test "$enableval" = yes; then |
8282 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8283 | else | |
8284 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8285 | fi | |
e6cc62c6 | 8286 | |
360d6699 | 8287 | else |
e6cc62c6 | 8288 | |
360d6699 VZ |
8289 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8290 | if test "x$LINE" != x ; then | |
8291 | eval "DEFAULT_$LINE" | |
8292 | else | |
8293 | no_cache=1 | |
8294 | fi | |
8295 | ||
8296 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8297 | |
e6cc62c6 | 8298 | fi; |
360d6699 VZ |
8299 | |
8300 | eval "$ac_cv_use_tbarnative" | |
8301 | if test "$no_cache" != 1; then | |
8302 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8303 | fi | |
8304 | ||
8305 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8306 | echo "$as_me:$LINENO: result: yes" >&5 |
8307 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8308 | else |
e6cc62c6 VS |
8309 | echo "$as_me:$LINENO: result: no" >&5 |
8310 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8311 | fi |
e6cc62c6 | 8312 | |
360d6699 | 8313 | |
5005acfe | 8314 | enablestring= |
e6cc62c6 VS |
8315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8316 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8317 | no_cache=0 |
8318 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8319 | if test "${enable_tbarsmpl+set}" = set; then | |
8320 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8321 | |
360d6699 VZ |
8322 | if test "$enableval" = yes; then |
8323 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8324 | else | |
8325 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8326 | fi | |
e6cc62c6 | 8327 | |
360d6699 | 8328 | else |
e6cc62c6 | 8329 | |
360d6699 VZ |
8330 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8331 | if test "x$LINE" != x ; then | |
8332 | eval "DEFAULT_$LINE" | |
8333 | else | |
8334 | no_cache=1 | |
8335 | fi | |
8336 | ||
8337 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8338 | |
e6cc62c6 | 8339 | fi; |
360d6699 VZ |
8340 | |
8341 | eval "$ac_cv_use_tbarsmpl" | |
8342 | if test "$no_cache" != 1; then | |
8343 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8344 | fi | |
8345 | ||
8346 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8347 | echo "$as_me:$LINENO: result: yes" >&5 |
8348 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8349 | else |
e6cc62c6 VS |
8350 | echo "$as_me:$LINENO: result: no" >&5 |
8351 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8352 | fi |
e6cc62c6 | 8353 | |
360d6699 | 8354 | |
5005acfe | 8355 | enablestring= |
e6cc62c6 VS |
8356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8357 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8358 | no_cache=0 |
8359 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8360 | if test "${enable_treectrl+set}" = set; then | |
8361 | enableval="$enable_treectrl" | |
e6cc62c6 | 8362 | |
10f2d63a VZ |
8363 | if test "$enableval" = yes; then |
8364 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8365 | else | |
8366 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8367 | fi | |
e6cc62c6 | 8368 | |
10f2d63a | 8369 | else |
e6cc62c6 | 8370 | |
10f2d63a VZ |
8371 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8372 | if test "x$LINE" != x ; then | |
8373 | eval "DEFAULT_$LINE" | |
8374 | else | |
8375 | no_cache=1 | |
8376 | fi | |
8377 | ||
8378 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8379 | |
e6cc62c6 | 8380 | fi; |
10f2d63a | 8381 | |
1e6feb95 VZ |
8382 | eval "$ac_cv_use_treectrl" |
8383 | if test "$no_cache" != 1; then | |
8384 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8385 | fi | |
8386 | ||
8387 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8388 | echo "$as_me:$LINENO: result: yes" >&5 |
8389 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8390 | else |
e6cc62c6 VS |
8391 | echo "$as_me:$LINENO: result: no" >&5 |
8392 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8393 | fi |
e6cc62c6 | 8394 | |
1e6feb95 | 8395 | |
5005acfe | 8396 | enablestring= |
e6cc62c6 VS |
8397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8398 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8399 | no_cache=0 |
8400 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8401 | if test "${enable_tipwindow+set}" = set; then | |
8402 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8403 | |
9926e4a4 VZ |
8404 | if test "$enableval" = yes; then |
8405 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8406 | else | |
8407 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8408 | fi | |
e6cc62c6 | 8409 | |
9926e4a4 | 8410 | else |
e6cc62c6 | 8411 | |
9926e4a4 VZ |
8412 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8413 | if test "x$LINE" != x ; then | |
8414 | eval "DEFAULT_$LINE" | |
8415 | else | |
8416 | no_cache=1 | |
8417 | fi | |
8418 | ||
8419 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8420 | |
e6cc62c6 | 8421 | fi; |
9926e4a4 VZ |
8422 | |
8423 | eval "$ac_cv_use_tipwindow" | |
8424 | if test "$no_cache" != 1; then | |
8425 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8426 | fi | |
8427 | ||
8428 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8429 | echo "$as_me:$LINENO: result: yes" >&5 |
8430 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8431 | else |
e6cc62c6 VS |
8432 | echo "$as_me:$LINENO: result: no" >&5 |
8433 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8434 | fi |
e6cc62c6 | 8435 | |
9926e4a4 | 8436 | |
5005acfe | 8437 | enablestring= |
e6cc62c6 VS |
8438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8439 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8440 | no_cache=0 |
8441 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8442 | if test "${enable_popupwin+set}" = set; then | |
8443 | enableval="$enable_popupwin" | |
e6cc62c6 | 8444 | |
9f41d601 RR |
8445 | if test "$enableval" = yes; then |
8446 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8447 | else | |
8448 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8449 | fi | |
e6cc62c6 | 8450 | |
9f41d601 | 8451 | else |
e6cc62c6 | 8452 | |
9f41d601 RR |
8453 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8454 | if test "x$LINE" != x ; then | |
8455 | eval "DEFAULT_$LINE" | |
8456 | else | |
8457 | no_cache=1 | |
8458 | fi | |
8459 | ||
8460 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8461 | |
e6cc62c6 | 8462 | fi; |
9f41d601 RR |
8463 | |
8464 | eval "$ac_cv_use_popupwin" | |
8465 | if test "$no_cache" != 1; then | |
8466 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8467 | fi | |
8468 | ||
8469 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8470 | echo "$as_me:$LINENO: result: yes" >&5 |
8471 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8472 | else |
e6cc62c6 VS |
8473 | echo "$as_me:$LINENO: result: no" >&5 |
8474 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8475 | fi |
e6cc62c6 | 8476 | |
52127426 | 8477 | |
8284b0c5 MB |
8478 | |
8479 | ||
5005acfe | 8480 | enablestring= |
e6cc62c6 VS |
8481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8482 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8483 | no_cache=0 |
8484 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8485 | if test "${enable_commondlg+set}" = set; then | |
8486 | enableval="$enable_commondlg" | |
e6cc62c6 | 8487 | |
1e6feb95 VZ |
8488 | if test "$enableval" = yes; then |
8489 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8490 | else | |
8491 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8492 | fi | |
e6cc62c6 | 8493 | |
1e6feb95 | 8494 | else |
e6cc62c6 | 8495 | |
1e6feb95 VZ |
8496 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8497 | if test "x$LINE" != x ; then | |
8498 | eval "DEFAULT_$LINE" | |
8499 | else | |
8500 | no_cache=1 | |
8501 | fi | |
8502 | ||
8503 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8504 | |
e6cc62c6 | 8505 | fi; |
1e6feb95 VZ |
8506 | |
8507 | eval "$ac_cv_use_commondlg" | |
8508 | if test "$no_cache" != 1; then | |
8509 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8510 | fi | |
8511 | ||
8512 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8513 | echo "$as_me:$LINENO: result: yes" >&5 |
8514 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8515 | else |
e6cc62c6 VS |
8516 | echo "$as_me:$LINENO: result: no" >&5 |
8517 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8518 | fi |
e6cc62c6 | 8519 | |
1e6feb95 | 8520 | |
5005acfe | 8521 | enablestring= |
e6cc62c6 VS |
8522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8523 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8524 | no_cache=0 |
8525 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8526 | if test "${enable_choicedlg+set}" = set; then | |
8527 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8528 | |
1e6feb95 VZ |
8529 | if test "$enableval" = yes; then |
8530 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8531 | else | |
8532 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8533 | fi | |
e6cc62c6 | 8534 | |
1e6feb95 | 8535 | else |
e6cc62c6 | 8536 | |
1e6feb95 VZ |
8537 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8538 | if test "x$LINE" != x ; then | |
8539 | eval "DEFAULT_$LINE" | |
8540 | else | |
8541 | no_cache=1 | |
8542 | fi | |
8543 | ||
8544 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8545 | |
e6cc62c6 | 8546 | fi; |
1e6feb95 VZ |
8547 | |
8548 | eval "$ac_cv_use_choicedlg" | |
8549 | if test "$no_cache" != 1; then | |
8550 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8551 | fi | |
8552 | ||
8553 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8554 | echo "$as_me:$LINENO: result: yes" >&5 |
8555 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8556 | else |
e6cc62c6 VS |
8557 | echo "$as_me:$LINENO: result: no" >&5 |
8558 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8559 | fi |
e6cc62c6 | 8560 | |
1e6feb95 | 8561 | |
5005acfe | 8562 | enablestring= |
e6cc62c6 VS |
8563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8564 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8565 | no_cache=0 |
8566 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8567 | if test "${enable_coldlg+set}" = set; then | |
8568 | enableval="$enable_coldlg" | |
e6cc62c6 | 8569 | |
1e6feb95 VZ |
8570 | if test "$enableval" = yes; then |
8571 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8572 | else | |
8573 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8574 | fi | |
e6cc62c6 | 8575 | |
1e6feb95 | 8576 | else |
e6cc62c6 | 8577 | |
1e6feb95 VZ |
8578 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8579 | if test "x$LINE" != x ; then | |
8580 | eval "DEFAULT_$LINE" | |
8581 | else | |
8582 | no_cache=1 | |
8583 | fi | |
8584 | ||
8585 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8586 | |
e6cc62c6 | 8587 | fi; |
1e6feb95 VZ |
8588 | |
8589 | eval "$ac_cv_use_coldlg" | |
8590 | if test "$no_cache" != 1; then | |
8591 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8592 | fi | |
8593 | ||
8594 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8595 | echo "$as_me:$LINENO: result: yes" >&5 |
8596 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8597 | else |
e6cc62c6 VS |
8598 | echo "$as_me:$LINENO: result: no" >&5 |
8599 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8600 | fi |
e6cc62c6 | 8601 | |
1e6feb95 | 8602 | |
5005acfe | 8603 | enablestring= |
e6cc62c6 VS |
8604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8605 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8606 | no_cache=0 |
8607 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8608 | if test "${enable_filedlg+set}" = set; then | |
8609 | enableval="$enable_filedlg" | |
e6cc62c6 | 8610 | |
1e6feb95 VZ |
8611 | if test "$enableval" = yes; then |
8612 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8613 | else | |
8614 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8615 | fi | |
e6cc62c6 | 8616 | |
1e6feb95 | 8617 | else |
e6cc62c6 | 8618 | |
1e6feb95 VZ |
8619 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8620 | if test "x$LINE" != x ; then | |
8621 | eval "DEFAULT_$LINE" | |
8622 | else | |
8623 | no_cache=1 | |
8624 | fi | |
8625 | ||
8626 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8627 | |
e6cc62c6 | 8628 | fi; |
1e6feb95 VZ |
8629 | |
8630 | eval "$ac_cv_use_filedlg" | |
8631 | if test "$no_cache" != 1; then | |
8632 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8633 | fi | |
8634 | ||
8635 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8636 | echo "$as_me:$LINENO: result: yes" >&5 |
8637 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8638 | else |
e6cc62c6 VS |
8639 | echo "$as_me:$LINENO: result: no" >&5 |
8640 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8641 | fi |
e6cc62c6 | 8642 | |
1e6feb95 | 8643 | |
5005acfe | 8644 | enablestring= |
e6cc62c6 VS |
8645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8646 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8647 | no_cache=0 |
69d27ff7 MB |
8648 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8649 | if test "${enable_finddlg+set}" = set; then | |
8650 | enableval="$enable_finddlg" | |
e6cc62c6 | 8651 | |
8db37e06 | 8652 | if test "$enableval" = yes; then |
69d27ff7 | 8653 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8654 | else |
69d27ff7 | 8655 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8656 | fi |
e6cc62c6 | 8657 | |
8db37e06 | 8658 | else |
e6cc62c6 | 8659 | |
8db37e06 VZ |
8660 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8661 | if test "x$LINE" != x ; then | |
8662 | eval "DEFAULT_$LINE" | |
8663 | else | |
8664 | no_cache=1 | |
8665 | fi | |
8666 | ||
69d27ff7 | 8667 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8668 | |
e6cc62c6 | 8669 | fi; |
8db37e06 | 8670 | |
69d27ff7 | 8671 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8672 | if test "$no_cache" != 1; then |
69d27ff7 | 8673 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8674 | fi |
8675 | ||
8676 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8677 | echo "$as_me:$LINENO: result: yes" >&5 |
8678 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8679 | else |
e6cc62c6 VS |
8680 | echo "$as_me:$LINENO: result: no" >&5 |
8681 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8682 | fi |
e6cc62c6 | 8683 | |
8db37e06 | 8684 | |
5005acfe | 8685 | enablestring= |
e6cc62c6 VS |
8686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8687 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8688 | no_cache=0 |
8689 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8690 | if test "${enable_fontdlg+set}" = set; then | |
8691 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8692 | |
1e6feb95 VZ |
8693 | if test "$enableval" = yes; then |
8694 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8695 | else | |
8696 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8697 | fi | |
e6cc62c6 | 8698 | |
1e6feb95 | 8699 | else |
e6cc62c6 | 8700 | |
1e6feb95 VZ |
8701 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8702 | if test "x$LINE" != x ; then | |
8703 | eval "DEFAULT_$LINE" | |
8704 | else | |
8705 | no_cache=1 | |
8706 | fi | |
8707 | ||
8708 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8709 | |
e6cc62c6 | 8710 | fi; |
1e6feb95 VZ |
8711 | |
8712 | eval "$ac_cv_use_fontdlg" | |
8713 | if test "$no_cache" != 1; then | |
8714 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8715 | fi | |
8716 | ||
8717 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8718 | echo "$as_me:$LINENO: result: yes" >&5 |
8719 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8720 | else |
e6cc62c6 VS |
8721 | echo "$as_me:$LINENO: result: no" >&5 |
8722 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8723 | fi |
e6cc62c6 | 8724 | |
1e6feb95 | 8725 | |
5005acfe | 8726 | enablestring= |
e6cc62c6 VS |
8727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8728 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8729 | no_cache=0 |
8730 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8731 | if test "${enable_dirdlg+set}" = set; then | |
8732 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8733 | |
1e6feb95 VZ |
8734 | if test "$enableval" = yes; then |
8735 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8736 | else | |
8737 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8738 | fi | |
e6cc62c6 | 8739 | |
1e6feb95 | 8740 | else |
e6cc62c6 | 8741 | |
1e6feb95 VZ |
8742 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8743 | if test "x$LINE" != x ; then | |
8744 | eval "DEFAULT_$LINE" | |
8745 | else | |
8746 | no_cache=1 | |
8747 | fi | |
8748 | ||
8749 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8750 | |
e6cc62c6 | 8751 | fi; |
1e6feb95 VZ |
8752 | |
8753 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8754 | if test "$no_cache" != 1; then |
1e6feb95 | 8755 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8756 | fi |
8757 | ||
1e6feb95 | 8758 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8759 | echo "$as_me:$LINENO: result: yes" >&5 |
8760 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8761 | else |
e6cc62c6 VS |
8762 | echo "$as_me:$LINENO: result: no" >&5 |
8763 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8764 | fi |
e6cc62c6 | 8765 | |
698dcdb6 | 8766 | |
5005acfe | 8767 | enablestring= |
e6cc62c6 VS |
8768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8769 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8770 | no_cache=0 |
1e6feb95 VZ |
8771 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8772 | if test "${enable_msgdlg+set}" = set; then | |
8773 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8774 | |
10f2d63a | 8775 | if test "$enableval" = yes; then |
1e6feb95 | 8776 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8777 | else |
1e6feb95 | 8778 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8779 | fi |
e6cc62c6 | 8780 | |
10f2d63a | 8781 | else |
e6cc62c6 | 8782 | |
1e6feb95 | 8783 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8784 | if test "x$LINE" != x ; then |
8785 | eval "DEFAULT_$LINE" | |
8786 | else | |
8787 | no_cache=1 | |
8788 | fi | |
8789 | ||
1e6feb95 | 8790 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8791 | |
e6cc62c6 | 8792 | fi; |
10f2d63a | 8793 | |
1e6feb95 | 8794 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8795 | if test "$no_cache" != 1; then |
1e6feb95 | 8796 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8797 | fi |
8798 | ||
1e6feb95 | 8799 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8800 | echo "$as_me:$LINENO: result: yes" >&5 |
8801 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8802 | else |
e6cc62c6 VS |
8803 | echo "$as_me:$LINENO: result: no" >&5 |
8804 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8805 | fi |
e6cc62c6 | 8806 | |
10f2d63a | 8807 | |
5005acfe | 8808 | enablestring= |
e6cc62c6 VS |
8809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8810 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8811 | no_cache=0 |
1e6feb95 VZ |
8812 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8813 | if test "${enable_numberdlg+set}" = set; then | |
8814 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8815 | |
10f2d63a | 8816 | if test "$enableval" = yes; then |
1e6feb95 | 8817 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8818 | else |
1e6feb95 | 8819 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8820 | fi |
e6cc62c6 | 8821 | |
10f2d63a | 8822 | else |
e6cc62c6 | 8823 | |
1e6feb95 | 8824 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8825 | if test "x$LINE" != x ; then |
8826 | eval "DEFAULT_$LINE" | |
8827 | else | |
8828 | no_cache=1 | |
8829 | fi | |
8830 | ||
1e6feb95 | 8831 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8832 | |
e6cc62c6 | 8833 | fi; |
10f2d63a | 8834 | |
1e6feb95 | 8835 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8836 | if test "$no_cache" != 1; then |
1e6feb95 | 8837 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8838 | fi |
8839 | ||
1e6feb95 | 8840 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8841 | echo "$as_me:$LINENO: result: yes" >&5 |
8842 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8843 | else |
e6cc62c6 VS |
8844 | echo "$as_me:$LINENO: result: no" >&5 |
8845 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8846 | fi |
e6cc62c6 | 8847 | |
10f2d63a | 8848 | |
5005acfe | 8849 | enablestring= |
e6cc62c6 VS |
8850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8851 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8852 | no_cache=0 |
8853 | # Check whether --enable-splash or --disable-splash was given. | |
8854 | if test "${enable_splash+set}" = set; then | |
8855 | enableval="$enable_splash" | |
e6cc62c6 | 8856 | |
cbca9943 VZ |
8857 | if test "$enableval" = yes; then |
8858 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8859 | else | |
8860 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8861 | fi | |
e6cc62c6 | 8862 | |
cbca9943 | 8863 | else |
e6cc62c6 | 8864 | |
cbca9943 VZ |
8865 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8866 | if test "x$LINE" != x ; then | |
8867 | eval "DEFAULT_$LINE" | |
8868 | else | |
8869 | no_cache=1 | |
8870 | fi | |
8871 | ||
8872 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8873 | |
e6cc62c6 | 8874 | fi; |
cbca9943 VZ |
8875 | |
8876 | eval "$ac_cv_use_splash" | |
8877 | if test "$no_cache" != 1; then | |
8878 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8879 | fi | |
8880 | ||
8881 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8882 | echo "$as_me:$LINENO: result: yes" >&5 |
8883 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8884 | else |
e6cc62c6 VS |
8885 | echo "$as_me:$LINENO: result: no" >&5 |
8886 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8887 | fi |
e6cc62c6 | 8888 | |
cbca9943 | 8889 | |
5005acfe | 8890 | enablestring= |
e6cc62c6 VS |
8891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8892 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8893 | no_cache=0 |
8894 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8895 | if test "${enable_textdlg+set}" = set; then | |
8896 | enableval="$enable_textdlg" | |
e6cc62c6 | 8897 | |
10f2d63a VZ |
8898 | if test "$enableval" = yes; then |
8899 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8900 | else | |
8901 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8902 | fi | |
e6cc62c6 | 8903 | |
10f2d63a | 8904 | else |
e6cc62c6 | 8905 | |
10f2d63a VZ |
8906 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8907 | if test "x$LINE" != x ; then | |
8908 | eval "DEFAULT_$LINE" | |
8909 | else | |
8910 | no_cache=1 | |
8911 | fi | |
8912 | ||
8913 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8914 | |
e6cc62c6 | 8915 | fi; |
10f2d63a VZ |
8916 | |
8917 | eval "$ac_cv_use_textdlg" | |
8918 | if test "$no_cache" != 1; then | |
8919 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8920 | fi | |
8921 | ||
8922 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8923 | echo "$as_me:$LINENO: result: yes" >&5 |
8924 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8925 | else |
e6cc62c6 VS |
8926 | echo "$as_me:$LINENO: result: no" >&5 |
8927 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8928 | fi |
e6cc62c6 | 8929 | |
10f2d63a | 8930 | |
5005acfe | 8931 | enablestring= |
e6cc62c6 VS |
8932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8933 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8934 | no_cache=0 |
8935 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8936 | if test "${enable_tipdlg+set}" = set; then | |
8937 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8938 | |
10f2d63a VZ |
8939 | if test "$enableval" = yes; then |
8940 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8941 | else | |
8942 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8943 | fi | |
e6cc62c6 | 8944 | |
10f2d63a | 8945 | else |
e6cc62c6 | 8946 | |
10f2d63a VZ |
8947 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8948 | if test "x$LINE" != x ; then | |
8949 | eval "DEFAULT_$LINE" | |
8950 | else | |
8951 | no_cache=1 | |
8952 | fi | |
8953 | ||
8954 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8955 | |
e6cc62c6 | 8956 | fi; |
10f2d63a VZ |
8957 | |
8958 | eval "$ac_cv_use_tipdlg" | |
8959 | if test "$no_cache" != 1; then | |
8960 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8961 | fi | |
8962 | ||
8963 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8964 | echo "$as_me:$LINENO: result: yes" >&5 |
8965 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8966 | else |
e6cc62c6 VS |
8967 | echo "$as_me:$LINENO: result: no" >&5 |
8968 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8969 | fi |
e6cc62c6 | 8970 | |
10f2d63a | 8971 | |
5005acfe | 8972 | enablestring= |
e6cc62c6 VS |
8973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8974 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8975 | no_cache=0 |
8976 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8977 | if test "${enable_progressdlg+set}" = set; then | |
8978 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8979 | |
10f2d63a VZ |
8980 | if test "$enableval" = yes; then |
8981 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8982 | else | |
8983 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8984 | fi | |
e6cc62c6 | 8985 | |
10f2d63a | 8986 | else |
e6cc62c6 | 8987 | |
10f2d63a VZ |
8988 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8989 | if test "x$LINE" != x ; then | |
8990 | eval "DEFAULT_$LINE" | |
8991 | else | |
8992 | no_cache=1 | |
8993 | fi | |
8994 | ||
8995 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8996 | |
e6cc62c6 | 8997 | fi; |
10f2d63a VZ |
8998 | |
8999 | eval "$ac_cv_use_progressdlg" | |
9000 | if test "$no_cache" != 1; then | |
9001 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9002 | fi | |
9003 | ||
9004 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
9005 | echo "$as_me:$LINENO: result: yes" >&5 |
9006 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9007 | else |
e6cc62c6 VS |
9008 | echo "$as_me:$LINENO: result: no" >&5 |
9009 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9010 | fi |
e6cc62c6 | 9011 | |
10f2d63a | 9012 | |
5005acfe | 9013 | enablestring= |
e6cc62c6 VS |
9014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
9015 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
9016 | no_cache=0 |
9017 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9018 | if test "${enable_wizarddlg+set}" = set; then | |
9019 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 9020 | |
b1f5d087 VZ |
9021 | if test "$enableval" = yes; then |
9022 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9023 | else | |
9024 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9025 | fi | |
e6cc62c6 | 9026 | |
b1f5d087 | 9027 | else |
e6cc62c6 | 9028 | |
b1f5d087 VZ |
9029 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
9030 | if test "x$LINE" != x ; then | |
9031 | eval "DEFAULT_$LINE" | |
9032 | else | |
9033 | no_cache=1 | |
9034 | fi | |
9035 | ||
9036 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 9037 | |
e6cc62c6 | 9038 | fi; |
b1f5d087 VZ |
9039 | |
9040 | eval "$ac_cv_use_wizarddlg" | |
9041 | if test "$no_cache" != 1; then | |
9042 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9043 | fi | |
9044 | ||
9045 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
9046 | echo "$as_me:$LINENO: result: yes" >&5 |
9047 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 9048 | else |
e6cc62c6 VS |
9049 | echo "$as_me:$LINENO: result: no" >&5 |
9050 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 9051 | fi |
e6cc62c6 | 9052 | |
8284b0c5 MB |
9053 | |
9054 | ||
52127426 | 9055 | |
5005acfe | 9056 | enablestring= |
e6cc62c6 VS |
9057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
9058 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
9059 | no_cache=0 |
9060 | # Check whether --enable-menus or --disable-menus was given. | |
9061 | if test "${enable_menus+set}" = set; then | |
9062 | enableval="$enable_menus" | |
e6cc62c6 | 9063 | |
1e6feb95 VZ |
9064 | if test "$enableval" = yes; then |
9065 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9066 | else | |
9067 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9068 | fi | |
e6cc62c6 | 9069 | |
1e6feb95 | 9070 | else |
e6cc62c6 | 9071 | |
1e6feb95 VZ |
9072 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
9073 | if test "x$LINE" != x ; then | |
9074 | eval "DEFAULT_$LINE" | |
9075 | else | |
9076 | no_cache=1 | |
9077 | fi | |
9078 | ||
9079 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 9080 | |
e6cc62c6 | 9081 | fi; |
1e6feb95 VZ |
9082 | |
9083 | eval "$ac_cv_use_menus" | |
9084 | if test "$no_cache" != 1; then | |
9085 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9086 | fi | |
9087 | ||
9088 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
9089 | echo "$as_me:$LINENO: result: yes" >&5 |
9090 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9091 | else |
e6cc62c6 VS |
9092 | echo "$as_me:$LINENO: result: no" >&5 |
9093 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9094 | fi |
e6cc62c6 | 9095 | |
1e6feb95 | 9096 | |
5005acfe | 9097 | enablestring= |
e6cc62c6 VS |
9098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
9099 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
9100 | no_cache=0 |
9101 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9102 | if test "${enable_miniframe+set}" = set; then | |
9103 | enableval="$enable_miniframe" | |
e6cc62c6 | 9104 | |
10f2d63a VZ |
9105 | if test "$enableval" = yes; then |
9106 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9107 | else | |
9108 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9109 | fi | |
e6cc62c6 | 9110 | |
10f2d63a | 9111 | else |
e6cc62c6 | 9112 | |
10f2d63a VZ |
9113 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
9114 | if test "x$LINE" != x ; then | |
9115 | eval "DEFAULT_$LINE" | |
9116 | else | |
9117 | no_cache=1 | |
9118 | fi | |
9119 | ||
9120 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 9121 | |
e6cc62c6 | 9122 | fi; |
10f2d63a VZ |
9123 | |
9124 | eval "$ac_cv_use_miniframe" | |
9125 | if test "$no_cache" != 1; then | |
9126 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
9130 | echo "$as_me:$LINENO: result: yes" >&5 |
9131 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9132 | else |
e6cc62c6 VS |
9133 | echo "$as_me:$LINENO: result: no" >&5 |
9134 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9135 | fi |
e6cc62c6 | 9136 | |
10f2d63a | 9137 | |
5005acfe | 9138 | enablestring= |
e6cc62c6 VS |
9139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9140 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9141 | no_cache=0 |
9142 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9143 | if test "${enable_tooltips+set}" = set; then | |
9144 | enableval="$enable_tooltips" | |
e6cc62c6 | 9145 | |
10f2d63a VZ |
9146 | if test "$enableval" = yes; then |
9147 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9148 | else | |
9149 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9150 | fi | |
e6cc62c6 | 9151 | |
10f2d63a | 9152 | else |
e6cc62c6 | 9153 | |
10f2d63a VZ |
9154 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9155 | if test "x$LINE" != x ; then | |
9156 | eval "DEFAULT_$LINE" | |
9157 | else | |
9158 | no_cache=1 | |
9159 | fi | |
9160 | ||
9161 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9162 | |
e6cc62c6 | 9163 | fi; |
10f2d63a VZ |
9164 | |
9165 | eval "$ac_cv_use_tooltips" | |
9166 | if test "$no_cache" != 1; then | |
9167 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9168 | fi | |
9169 | ||
9170 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9171 | echo "$as_me:$LINENO: result: yes" >&5 |
9172 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9173 | else |
e6cc62c6 VS |
9174 | echo "$as_me:$LINENO: result: no" >&5 |
9175 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9176 | fi |
e6cc62c6 | 9177 | |
10f2d63a | 9178 | |
5005acfe | 9179 | enablestring= |
e6cc62c6 VS |
9180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9181 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9182 | no_cache=0 |
9183 | # Check whether --enable-splines or --disable-splines was given. | |
9184 | if test "${enable_splines+set}" = set; then | |
9185 | enableval="$enable_splines" | |
e6cc62c6 | 9186 | |
10f2d63a VZ |
9187 | if test "$enableval" = yes; then |
9188 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9189 | else | |
9190 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9191 | fi | |
e6cc62c6 | 9192 | |
10f2d63a | 9193 | else |
e6cc62c6 | 9194 | |
10f2d63a VZ |
9195 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9196 | if test "x$LINE" != x ; then | |
9197 | eval "DEFAULT_$LINE" | |
9198 | else | |
9199 | no_cache=1 | |
9200 | fi | |
9201 | ||
9202 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9203 | |
e6cc62c6 | 9204 | fi; |
10f2d63a VZ |
9205 | |
9206 | eval "$ac_cv_use_splines" | |
9207 | if test "$no_cache" != 1; then | |
9208 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9209 | fi | |
9210 | ||
9211 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9212 | echo "$as_me:$LINENO: result: yes" >&5 |
9213 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9214 | else |
e6cc62c6 VS |
9215 | echo "$as_me:$LINENO: result: no" >&5 |
9216 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9217 | fi |
e6cc62c6 | 9218 | |
10f2d63a | 9219 | |
5005acfe | 9220 | enablestring= |
e6cc62c6 VS |
9221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9222 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9223 | no_cache=0 |
9224 | # Check whether --enable-validators or --disable-validators was given. | |
9225 | if test "${enable_validators+set}" = set; then | |
9226 | enableval="$enable_validators" | |
e6cc62c6 | 9227 | |
10f2d63a VZ |
9228 | if test "$enableval" = yes; then |
9229 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9230 | else | |
9231 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9232 | fi | |
e6cc62c6 | 9233 | |
10f2d63a | 9234 | else |
e6cc62c6 | 9235 | |
10f2d63a VZ |
9236 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9237 | if test "x$LINE" != x ; then | |
9238 | eval "DEFAULT_$LINE" | |
9239 | else | |
9240 | no_cache=1 | |
9241 | fi | |
9242 | ||
9243 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9244 | |
e6cc62c6 | 9245 | fi; |
10f2d63a VZ |
9246 | |
9247 | eval "$ac_cv_use_validators" | |
9248 | if test "$no_cache" != 1; then | |
9249 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9250 | fi | |
9251 | ||
9252 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9253 | echo "$as_me:$LINENO: result: yes" >&5 |
9254 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9255 | else |
e6cc62c6 VS |
9256 | echo "$as_me:$LINENO: result: no" >&5 |
9257 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9258 | fi |
e6cc62c6 | 9259 | |
10f2d63a | 9260 | |
5005acfe | 9261 | enablestring= |
e6cc62c6 VS |
9262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9263 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9264 | no_cache=0 |
9265 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9266 | if test "${enable_busyinfo+set}" = set; then | |
9267 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9268 | |
10f2d63a VZ |
9269 | if test "$enableval" = yes; then |
9270 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9271 | else | |
9272 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9273 | fi | |
e6cc62c6 | 9274 | |
10f2d63a | 9275 | else |
e6cc62c6 | 9276 | |
10f2d63a VZ |
9277 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9278 | if test "x$LINE" != x ; then | |
9279 | eval "DEFAULT_$LINE" | |
9280 | else | |
9281 | no_cache=1 | |
9282 | fi | |
9283 | ||
9284 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9285 | |
e6cc62c6 | 9286 | fi; |
10f2d63a VZ |
9287 | |
9288 | eval "$ac_cv_use_busyinfo" | |
9289 | if test "$no_cache" != 1; then | |
9290 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9291 | fi | |
9292 | ||
9293 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9294 | echo "$as_me:$LINENO: result: yes" >&5 |
9295 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9296 | else |
e6cc62c6 VS |
9297 | echo "$as_me:$LINENO: result: no" >&5 |
9298 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9299 | fi |
e6cc62c6 | 9300 | |
10f2d63a | 9301 | |
5005acfe | 9302 | enablestring= |
e6cc62c6 VS |
9303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9304 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9305 | no_cache=0 |
9306 | # Check whether --enable-joystick or --disable-joystick was given. | |
9307 | if test "${enable_joystick+set}" = set; then | |
9308 | enableval="$enable_joystick" | |
e6cc62c6 | 9309 | |
f6bcfd97 BP |
9310 | if test "$enableval" = yes; then |
9311 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9312 | else | |
9313 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9314 | fi | |
e6cc62c6 | 9315 | |
f6bcfd97 | 9316 | else |
e6cc62c6 | 9317 | |
f6bcfd97 BP |
9318 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9319 | if test "x$LINE" != x ; then | |
9320 | eval "DEFAULT_$LINE" | |
9321 | else | |
9322 | no_cache=1 | |
9323 | fi | |
9324 | ||
9325 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9326 | |
e6cc62c6 | 9327 | fi; |
f6bcfd97 BP |
9328 | |
9329 | eval "$ac_cv_use_joystick" | |
9330 | if test "$no_cache" != 1; then | |
9331 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9332 | fi | |
9333 | ||
9334 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9335 | echo "$as_me:$LINENO: result: yes" >&5 |
9336 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9337 | else |
e6cc62c6 VS |
9338 | echo "$as_me:$LINENO: result: no" >&5 |
9339 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9340 | fi |
e6cc62c6 | 9341 | |
698dcdb6 | 9342 | |
5005acfe | 9343 | enablestring= |
e6cc62c6 VS |
9344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9345 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9346 | no_cache=0 |
9347 | # Check whether --enable-metafile or --disable-metafile was given. | |
9348 | if test "${enable_metafile+set}" = set; then | |
9349 | enableval="$enable_metafile" | |
e6cc62c6 | 9350 | |
1e6feb95 VZ |
9351 | if test "$enableval" = yes; then |
9352 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9353 | else | |
9354 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9355 | fi | |
e6cc62c6 | 9356 | |
1e6feb95 | 9357 | else |
e6cc62c6 | 9358 | |
1e6feb95 VZ |
9359 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9360 | if test "x$LINE" != x ; then | |
9361 | eval "DEFAULT_$LINE" | |
9362 | else | |
9363 | no_cache=1 | |
9364 | fi | |
9365 | ||
9366 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9367 | |
e6cc62c6 | 9368 | fi; |
1e6feb95 VZ |
9369 | |
9370 | eval "$ac_cv_use_metafile" | |
9371 | if test "$no_cache" != 1; then | |
9372 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9373 | fi | |
9374 | ||
9375 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9376 | echo "$as_me:$LINENO: result: yes" >&5 |
9377 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9378 | else |
e6cc62c6 VS |
9379 | echo "$as_me:$LINENO: result: no" >&5 |
9380 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9381 | fi |
e6cc62c6 | 9382 | |
1e6feb95 | 9383 | |
5005acfe | 9384 | enablestring= |
e6cc62c6 VS |
9385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9386 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9387 | no_cache=0 |
9388 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9389 | if test "${enable_dragimage+set}" = set; then | |
9390 | enableval="$enable_dragimage" | |
e6cc62c6 | 9391 | |
24fd6d87 VZ |
9392 | if test "$enableval" = yes; then |
9393 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9394 | else | |
9395 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9396 | fi | |
e6cc62c6 | 9397 | |
24fd6d87 | 9398 | else |
e6cc62c6 | 9399 | |
24fd6d87 VZ |
9400 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9401 | if test "x$LINE" != x ; then | |
9402 | eval "DEFAULT_$LINE" | |
9403 | else | |
9404 | no_cache=1 | |
9405 | fi | |
9406 | ||
9407 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9408 | |
e6cc62c6 | 9409 | fi; |
24fd6d87 VZ |
9410 | |
9411 | eval "$ac_cv_use_dragimage" | |
9412 | if test "$no_cache" != 1; then | |
9413 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9414 | fi | |
9415 | ||
9416 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9417 | echo "$as_me:$LINENO: result: yes" >&5 |
9418 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9419 | else |
e6cc62c6 VS |
9420 | echo "$as_me:$LINENO: result: no" >&5 |
9421 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9422 | fi |
e6cc62c6 | 9423 | |
52127426 | 9424 | |
7bb2947d | 9425 | enablestring= |
e6cc62c6 VS |
9426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9427 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9428 | no_cache=0 |
9429 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9430 | if test "${enable_accessibility+set}" = set; then | |
9431 | enableval="$enable_accessibility" | |
e6cc62c6 | 9432 | |
7bb2947d MB |
9433 | if test "$enableval" = yes; then |
9434 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9435 | else | |
9436 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9437 | fi | |
e6cc62c6 | 9438 | |
7bb2947d | 9439 | else |
e6cc62c6 | 9440 | |
7bb2947d MB |
9441 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9442 | if test "x$LINE" != x ; then | |
9443 | eval "DEFAULT_$LINE" | |
9444 | else | |
9445 | no_cache=1 | |
9446 | fi | |
9447 | ||
9448 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9449 | |
e6cc62c6 | 9450 | fi; |
7bb2947d MB |
9451 | |
9452 | eval "$ac_cv_use_accessibility" | |
9453 | if test "$no_cache" != 1; then | |
9454 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9455 | fi | |
9456 | ||
9457 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9458 | echo "$as_me:$LINENO: result: yes" >&5 |
9459 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9460 | else |
e6cc62c6 VS |
9461 | echo "$as_me:$LINENO: result: no" >&5 |
9462 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9463 | fi |
e6cc62c6 | 9464 | |
7bb2947d | 9465 | |
8284b0c5 MB |
9466 | |
9467 | ||
5005acfe | 9468 | enablestring= |
e6cc62c6 VS |
9469 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9470 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9471 | no_cache=0 |
9472 | # Check whether --enable-palette or --disable-palette was given. | |
9473 | if test "${enable_palette+set}" = set; then | |
9474 | enableval="$enable_palette" | |
e6cc62c6 | 9475 | |
edae8572 VZ |
9476 | if test "$enableval" = yes; then |
9477 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9478 | else | |
9479 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9480 | fi | |
e6cc62c6 | 9481 | |
edae8572 | 9482 | else |
e6cc62c6 | 9483 | |
edae8572 VZ |
9484 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9485 | if test "x$LINE" != x ; then | |
9486 | eval "DEFAULT_$LINE" | |
9487 | else | |
9488 | no_cache=1 | |
9489 | fi | |
9490 | ||
9491 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9492 | |
e6cc62c6 | 9493 | fi; |
edae8572 VZ |
9494 | |
9495 | eval "$ac_cv_use_palette" | |
9496 | if test "$no_cache" != 1; then | |
9497 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9498 | fi | |
9499 | ||
9500 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9501 | echo "$as_me:$LINENO: result: yes" >&5 |
9502 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9503 | else |
e6cc62c6 VS |
9504 | echo "$as_me:$LINENO: result: no" >&5 |
9505 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9506 | fi |
e6cc62c6 | 9507 | |
edae8572 | 9508 | |
5005acfe | 9509 | enablestring= |
e6cc62c6 VS |
9510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9511 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9512 | no_cache=0 |
9513 | # Check whether --enable-image or --disable-image was given. | |
9514 | if test "${enable_image+set}" = set; then | |
9515 | enableval="$enable_image" | |
e6cc62c6 | 9516 | |
0046ff7c VS |
9517 | if test "$enableval" = yes; then |
9518 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9519 | else | |
9520 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9521 | fi | |
e6cc62c6 | 9522 | |
0046ff7c | 9523 | else |
e6cc62c6 | 9524 | |
0046ff7c VS |
9525 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9526 | if test "x$LINE" != x ; then | |
9527 | eval "DEFAULT_$LINE" | |
9528 | else | |
9529 | no_cache=1 | |
9530 | fi | |
9531 | ||
9532 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9533 | |
e6cc62c6 | 9534 | fi; |
0046ff7c VS |
9535 | |
9536 | eval "$ac_cv_use_image" | |
9537 | if test "$no_cache" != 1; then | |
9538 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9539 | fi | |
9540 | ||
9541 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9542 | echo "$as_me:$LINENO: result: yes" >&5 |
9543 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9544 | else |
e6cc62c6 VS |
9545 | echo "$as_me:$LINENO: result: no" >&5 |
9546 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9547 | fi |
e6cc62c6 | 9548 | |
0046ff7c | 9549 | |
5005acfe | 9550 | enablestring= |
e6cc62c6 VS |
9551 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9552 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9553 | no_cache=0 |
9554 | # Check whether --enable-gif or --disable-gif was given. | |
9555 | if test "${enable_gif+set}" = set; then | |
9556 | enableval="$enable_gif" | |
e6cc62c6 | 9557 | |
10f2d63a VZ |
9558 | if test "$enableval" = yes; then |
9559 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9560 | else | |
9561 | ac_cv_use_gif='wxUSE_GIF=no' | |
9562 | fi | |
e6cc62c6 | 9563 | |
10f2d63a | 9564 | else |
e6cc62c6 | 9565 | |
10f2d63a VZ |
9566 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9567 | if test "x$LINE" != x ; then | |
9568 | eval "DEFAULT_$LINE" | |
9569 | else | |
9570 | no_cache=1 | |
9571 | fi | |
9572 | ||
9573 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9574 | |
e6cc62c6 | 9575 | fi; |
10f2d63a VZ |
9576 | |
9577 | eval "$ac_cv_use_gif" | |
9578 | if test "$no_cache" != 1; then | |
9579 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9580 | fi | |
9581 | ||
9582 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9583 | echo "$as_me:$LINENO: result: yes" >&5 |
9584 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9585 | else |
e6cc62c6 VS |
9586 | echo "$as_me:$LINENO: result: no" >&5 |
9587 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9588 | fi |
e6cc62c6 | 9589 | |
10f2d63a | 9590 | |
5005acfe | 9591 | enablestring= |
e6cc62c6 VS |
9592 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9593 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9594 | no_cache=0 |
9595 | # Check whether --enable-pcx or --disable-pcx was given. | |
9596 | if test "${enable_pcx+set}" = set; then | |
9597 | enableval="$enable_pcx" | |
e6cc62c6 | 9598 | |
10f2d63a VZ |
9599 | if test "$enableval" = yes; then |
9600 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9601 | else | |
9602 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9603 | fi | |
e6cc62c6 | 9604 | |
10f2d63a | 9605 | else |
e6cc62c6 | 9606 | |
10f2d63a VZ |
9607 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9608 | if test "x$LINE" != x ; then | |
9609 | eval "DEFAULT_$LINE" | |
9610 | else | |
9611 | no_cache=1 | |
9612 | fi | |
9613 | ||
9614 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9615 | |
e6cc62c6 | 9616 | fi; |
10f2d63a VZ |
9617 | |
9618 | eval "$ac_cv_use_pcx" | |
9619 | if test "$no_cache" != 1; then | |
9620 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9621 | fi | |
9622 | ||
9623 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9624 | echo "$as_me:$LINENO: result: yes" >&5 |
9625 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9626 | else |
e6cc62c6 VS |
9627 | echo "$as_me:$LINENO: result: no" >&5 |
9628 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9629 | fi |
e6cc62c6 | 9630 | |
10f2d63a | 9631 | |
5005acfe | 9632 | enablestring= |
e6cc62c6 VS |
9633 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9634 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9635 | no_cache=0 |
9636 | # Check whether --enable-iff or --disable-iff was given. | |
9637 | if test "${enable_iff+set}" = set; then | |
9638 | enableval="$enable_iff" | |
e6cc62c6 | 9639 | |
4b6b4dfc RR |
9640 | if test "$enableval" = yes; then |
9641 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9642 | else | |
9643 | ac_cv_use_iff='wxUSE_IFF=no' | |
9644 | fi | |
e6cc62c6 | 9645 | |
4b6b4dfc | 9646 | else |
e6cc62c6 | 9647 | |
4b6b4dfc RR |
9648 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9649 | if test "x$LINE" != x ; then | |
9650 | eval "DEFAULT_$LINE" | |
9651 | else | |
9652 | no_cache=1 | |
9653 | fi | |
9654 | ||
9655 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9656 | |
e6cc62c6 | 9657 | fi; |
4b6b4dfc RR |
9658 | |
9659 | eval "$ac_cv_use_iff" | |
9660 | if test "$no_cache" != 1; then | |
9661 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9662 | fi | |
9663 | ||
9664 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9665 | echo "$as_me:$LINENO: result: yes" >&5 |
9666 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9667 | else |
e6cc62c6 VS |
9668 | echo "$as_me:$LINENO: result: no" >&5 |
9669 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9670 | fi |
e6cc62c6 | 9671 | |
4b6b4dfc | 9672 | |
5005acfe | 9673 | enablestring= |
e6cc62c6 VS |
9674 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9675 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9676 | no_cache=0 |
9677 | # Check whether --enable-pnm or --disable-pnm was given. | |
9678 | if test "${enable_pnm+set}" = set; then | |
9679 | enableval="$enable_pnm" | |
e6cc62c6 | 9680 | |
10f2d63a VZ |
9681 | if test "$enableval" = yes; then |
9682 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9683 | else | |
9684 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9685 | fi | |
e6cc62c6 | 9686 | |
10f2d63a | 9687 | else |
e6cc62c6 | 9688 | |
10f2d63a VZ |
9689 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9690 | if test "x$LINE" != x ; then | |
9691 | eval "DEFAULT_$LINE" | |
9692 | else | |
9693 | no_cache=1 | |
9694 | fi | |
9695 | ||
9696 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9697 | |
e6cc62c6 | 9698 | fi; |
10f2d63a VZ |
9699 | |
9700 | eval "$ac_cv_use_pnm" | |
9701 | if test "$no_cache" != 1; then | |
9702 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9703 | fi | |
9704 | ||
9705 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9706 | echo "$as_me:$LINENO: result: yes" >&5 |
9707 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9708 | else |
e6cc62c6 VS |
9709 | echo "$as_me:$LINENO: result: no" >&5 |
9710 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9711 | fi |
e6cc62c6 | 9712 | |
10f2d63a | 9713 | |
5005acfe | 9714 | enablestring= |
e6cc62c6 VS |
9715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9716 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9717 | no_cache=0 |
69d27ff7 MB |
9718 | # Check whether --enable-xpm or --disable-xpm was given. |
9719 | if test "${enable_xpm+set}" = set; then | |
9720 | enableval="$enable_xpm" | |
e6cc62c6 | 9721 | |
0046ff7c | 9722 | if test "$enableval" = yes; then |
69d27ff7 | 9723 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9724 | else |
69d27ff7 | 9725 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9726 | fi |
e6cc62c6 | 9727 | |
0046ff7c | 9728 | else |
e6cc62c6 | 9729 | |
0046ff7c VS |
9730 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9731 | if test "x$LINE" != x ; then | |
9732 | eval "DEFAULT_$LINE" | |
9733 | else | |
9734 | no_cache=1 | |
9735 | fi | |
9736 | ||
69d27ff7 | 9737 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9738 | |
e6cc62c6 | 9739 | fi; |
0046ff7c | 9740 | |
69d27ff7 | 9741 | eval "$ac_cv_use_xpm" |
0046ff7c | 9742 | if test "$no_cache" != 1; then |
69d27ff7 | 9743 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9744 | fi |
9745 | ||
9746 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9747 | echo "$as_me:$LINENO: result: yes" >&5 |
9748 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9749 | else |
e6cc62c6 VS |
9750 | echo "$as_me:$LINENO: result: no" >&5 |
9751 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9752 | fi |
e6cc62c6 | 9753 | |
0046ff7c | 9754 | |
5005acfe | 9755 | enablestring= |
e6cc62c6 VS |
9756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9757 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9758 | no_cache=0 |
c7206e64 VS |
9759 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9760 | if test "${enable_ico_cur+set}" = set; then | |
9761 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9762 | |
658974ae | 9763 | if test "$enableval" = yes; then |
c7206e64 | 9764 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9765 | else |
c7206e64 | 9766 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9767 | fi |
e6cc62c6 | 9768 | |
658974ae | 9769 | else |
e6cc62c6 | 9770 | |
658974ae VS |
9771 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9772 | if test "x$LINE" != x ; then | |
9773 | eval "DEFAULT_$LINE" | |
9774 | else | |
9775 | no_cache=1 | |
9776 | fi | |
9777 | ||
c7206e64 | 9778 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9779 | |
e6cc62c6 | 9780 | fi; |
658974ae | 9781 | |
c7206e64 | 9782 | eval "$ac_cv_use_ico_cur" |
658974ae | 9783 | if test "$no_cache" != 1; then |
c7206e64 | 9784 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9785 | fi |
9786 | ||
9787 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9788 | echo "$as_me:$LINENO: result: yes" >&5 |
9789 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9790 | else |
e6cc62c6 VS |
9791 | echo "$as_me:$LINENO: result: no" >&5 |
9792 | echo "${ECHO_T}no" >&6 | |
658974ae | 9793 | fi |
e6cc62c6 | 9794 | |
658974ae | 9795 | |
b12915c1 VZ |
9796 | fi |
9797 | ||
029b47ad VS |
9798 | |
9799 | ||
9800 | enablestring= | |
9801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9802 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9803 | no_cache=0 | |
9804 | # Check whether --enable-official_build or --disable-official_build was given. | |
9805 | if test "${enable_official_build+set}" = set; then | |
9806 | enableval="$enable_official_build" | |
9807 | ||
9808 | if test "$enableval" = yes; then | |
9809 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9810 | else | |
9811 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9812 | fi | |
9813 | ||
9814 | else | |
9815 | ||
9816 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9817 | if test "x$LINE" != x ; then | |
9818 | eval "DEFAULT_$LINE" | |
9819 | else | |
9820 | no_cache=1 | |
9821 | fi | |
9822 | ||
9823 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9824 | ||
9825 | fi; | |
9826 | ||
9827 | eval "$ac_cv_use_official_build" | |
9828 | if test "$no_cache" != 1; then | |
9829 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9830 | fi | |
9831 | ||
9832 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9833 | echo "$as_me:$LINENO: result: yes" >&5 | |
9834 | echo "${ECHO_T}yes" >&6 | |
9835 | else | |
9836 | echo "$as_me:$LINENO: result: no" >&5 | |
9837 | echo "${ECHO_T}no" >&6 | |
9838 | fi | |
9839 | ||
9840 | # Check whether --enable-vendor or --disable-vendor was given. | |
9841 | if test "${enable_vendor+set}" = set; then | |
9842 | enableval="$enable_vendor" | |
9843 | VENDOR="$enableval" | |
9844 | fi; | |
9845 | if test "x$VENDOR" = "x"; then | |
9846 | VENDOR="custom" | |
9847 | fi | |
9848 | ||
d558c907 VS |
9849 | case "${host}" in |
9850 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9851 | PATH_IFS=';' |
d558c907 VS |
9852 | ;; |
9853 | *) | |
9854 | PATH_IFS=':' | |
d558c907 VS |
9855 | ;; |
9856 | esac | |
9857 | ||
8284b0c5 MB |
9858 | |
9859 | ||
10f2d63a VZ |
9860 | echo "saving argument cache $wx_arg_cache_file" |
9861 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9862 | |
8284b0c5 | 9863 | |
e6cc62c6 VS |
9864 | |
9865 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9866 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9867 | |
9868 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9869 | if test "$wxUSE_WINE" = "yes"; then | |
9870 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9871 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9872 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9873 | wxUSE_SHARED=no |
89e6bf6d | 9874 | fi |
10f2d63a VZ |
9875 | |
9876 | if test "$wxUSE_GUI" = "yes"; then | |
9877 | ||
3a922bb4 | 9878 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9879 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9880 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9881 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9882 | fi |
b12915c1 | 9883 | |
3a922bb4 RL |
9884 | if test "$TOOLKIT_GIVEN" = 1; then |
9885 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9886 | var=wxUSE_$toolkit | |
9887 | eval "value=\$${var}" | |
9888 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9889 | done | |
10f2d63a | 9890 | else |
3a922bb4 RL |
9891 | for toolkit in `echo $ALL_TOOLKITS`; do |
9892 | if test "$has_toolkit_in_cache" != 1; then | |
9893 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9894 | else | |
9895 | var=DEFAULT_wxUSE_$toolkit | |
9896 | fi | |
9897 | eval "wxUSE_$toolkit=\$${var}" | |
9898 | done | |
10f2d63a | 9899 | fi |
10f2d63a | 9900 | |
ac0c4cc3 DE |
9901 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9902 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9903 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9904 | |
d558c907 | 9905 | case "${host}" in |
6fa882bd | 9906 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9907 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9908 | esac |
10f2d63a | 9909 | |
3a922bb4 RL |
9910 | case "$NUM_TOOLKITS" in |
9911 | 1) | |
9912 | ;; | |
9913 | 0) | |
e6cc62c6 VS |
9914 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9915 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9916 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9917 | ;; |
9918 | *) | |
e6cc62c6 VS |
9919 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9920 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9921 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9922 | esac |
10f2d63a | 9923 | |
3a922bb4 RL |
9924 | for toolkit in `echo $ALL_TOOLKITS`; do |
9925 | var=wxUSE_$toolkit | |
9926 | eval "value=\$${var}" | |
9927 | if test "x$value" != x; then | |
9928 | cache_var=CACHE_$toolkit | |
9929 | eval "cache=\$${cache_var}" | |
9930 | if test "$cache" = 1; then | |
9931 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9932 | fi | |
9933 | if test "$value" = 1; then | |
89fe663f | 9934 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9935 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9936 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9937 | fi |
9938 | fi | |
9939 | done | |
10f2d63a | 9940 | else |
9de9b8f0 VZ |
9941 | if test "x$host_alias" != "x"; then |
9942 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9943 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9944 | else |
9945 | echo "$as_me:$LINENO: result: base only" >&5 | |
9946 | echo "${ECHO_T}base only" >&6 | |
9947 | fi | |
10f2d63a VZ |
9948 | fi |
9949 | ||
43d99b6d VS |
9950 | wants_win32=0 |
9951 | doesnt_want_win32=0 | |
17234b26 MB |
9952 | case "${host}" in |
9953 | *-*-cygwin*) | |
9954 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9955 | wants_win32=1 |
9956 | else | |
9957 | doesnt_want_win32=1 | |
17234b26 MB |
9958 | fi |
9959 | ;; | |
9960 | *-*-mingw*) | |
43d99b6d | 9961 | wants_win32=1 |
17234b26 MB |
9962 | ;; |
9963 | esac | |
9964 | ||
89e6bf6d VZ |
9965 | if test "$wxUSE_WINE" = "yes"; then |
9966 | wants_win32=1 | |
9967 | CC=winegcc | |
9968 | CXX=wineg++ | |
9969 | RESCOMP=wrc | |
30f2fa6c | 9970 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9971 | fi |
9972 | ||
43d99b6d | 9973 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9974 | USE_UNIX=0 |
9975 | USE_WIN32=1 | |
e6cc62c6 | 9976 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9977 | #define __WIN32__ 1 |
e6cc62c6 | 9978 | _ACEOF |
17234b26 | 9979 | |
e6cc62c6 | 9980 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9981 | #define __WIN95__ 1 |
e6cc62c6 | 9982 | _ACEOF |
17234b26 | 9983 | |
e6cc62c6 | 9984 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9985 | #define __WINDOWS__ 1 |
e6cc62c6 | 9986 | _ACEOF |
17234b26 | 9987 | |
e6cc62c6 | 9988 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9989 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9990 | _ACEOF |
17234b26 | 9991 | |
e6cc62c6 | 9992 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9993 | #define STRICT 1 |
e6cc62c6 | 9994 | _ACEOF |
17234b26 | 9995 | |
e6cc62c6 | 9996 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9997 | #define WINVER 0x0400 |
e6cc62c6 | 9998 | _ACEOF |
17234b26 | 9999 | |
43d99b6d VS |
10000 | fi |
10001 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
10002 | USE_UNIX=1 |
10003 | USE_WIN32=0 | |
10004 | fi | |
10005 | ||
10006 | if test "$USE_UNIX" = 1 ; then | |
10007 | wxUSE_UNIX=yes | |
e6cc62c6 | 10008 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 10009 | #define __UNIX__ 1 |
e6cc62c6 | 10010 | _ACEOF |
17234b26 MB |
10011 | |
10012 | fi | |
10013 | ||
8284b0c5 | 10014 | |
e6cc62c6 | 10015 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
10016 | # This file is a shell script that caches the results of configure |
10017 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
10018 | # scripts and configure runs, see configure's option --config-cache. |
10019 | # It is not useful on other systems. If it contains results you don't | |
10020 | # want to keep, you may remove or edit it. | |
10f2d63a | 10021 | # |
e6cc62c6 VS |
10022 | # config.status only pays attention to the cache file if you give it |
10023 | # the --recheck option to rerun configure. | |
10f2d63a | 10024 | # |
e6cc62c6 VS |
10025 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10026 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10027 | # following values. | |
10028 | ||
10029 | _ACEOF | |
10030 | ||
10f2d63a VZ |
10031 | # The following way of writing the cache mishandles newlines in values, |
10032 | # but we know of no workaround that is simple, portable, and efficient. | |
10033 | # So, don't put newlines in cache variables' values. | |
10034 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10035 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
10036 | { |
10037 | (set) 2>&1 | | |
10038 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10039 | *ac_space=\ *) | |
10040 | # `set' does not quote correctly, so add quotes (double-quote | |
10041 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10042 | sed -n \ | |
32ddf007 VS |
10043 | "s/'/'\\\\''/g; |
10044 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
10045 | ;; |
10046 | *) | |
10047 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10048 | sed -n \ | |
32ddf007 | 10049 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
10050 | ;; |
10051 | esac; | |
10052 | } | | |
10053 | sed ' | |
10054 | t clear | |
10055 | : clear | |
10056 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10057 | t end | |
10058 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10059 | : end' >>confcache | |
10060 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 10061 | if test -w $cache_file; then |
e6cc62c6 VS |
10062 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10063 | cat confcache >$cache_file | |
10f2d63a VZ |
10064 | else |
10065 | echo "not updating unwritable cache $cache_file" | |
10066 | fi | |
10067 | fi | |
10068 | rm -f confcache | |
10069 | ||
e59890c3 | 10070 | if test "$build" != "$host" ; then |
9d353d4a | 10071 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
10072 | CC=$host_alias-gcc |
10073 | CXX=$host_alias-c++ | |
10074 | AR=$host_alias-ar | |
10075 | RANLIB=$host_alias-ranlib | |
10076 | DLLTOOL=$host_alias-dlltool | |
10077 | RESCOMP=$host_alias-windres | |
10078 | LD=$host_alias-ld | |
10079 | NM=$host_alias-nm | |
10080 | STRIP=$host_alias-strip | |
10081 | else | |
e6cc62c6 VS |
10082 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
10083 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10084 | { (exit 1); exit 1; }; } | |
3a922bb4 | 10085 | fi |
10f2d63a VZ |
10086 | fi |
10087 | ||
ec603395 | 10088 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
10089 | ac_ext=c |
10090 | ac_cpp='$CPP $CPPFLAGS' | |
10091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10094 | if test -n "$ac_tool_prefix"; then | |
10095 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10096 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10099 | if test "${ac_cv_prog_CC+set}" = set; then | |
10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10101 | else | |
10102 | if test -n "$CC"; then | |
10103 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10104 | else | |
10105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10106 | for as_dir in $PATH | |
10107 | do | |
10108 | IFS=$as_save_IFS | |
10109 | test -z "$as_dir" && as_dir=. | |
10110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10112 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10114 | break 2 | |
10115 | fi | |
10116 | done | |
10117 | done | |
10118 | ||
10119 | fi | |
10120 | fi | |
10121 | CC=$ac_cv_prog_CC | |
10122 | if test -n "$CC"; then | |
10123 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10124 | echo "${ECHO_T}$CC" >&6 | |
10125 | else | |
10126 | echo "$as_me:$LINENO: result: no" >&5 | |
10127 | echo "${ECHO_T}no" >&6 | |
10128 | fi | |
10129 | ||
10130 | fi | |
10131 | if test -z "$ac_cv_prog_CC"; then | |
10132 | ac_ct_CC=$CC | |
10133 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 10134 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
10135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10137 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10139 | else | |
10140 | if test -n "$ac_ct_CC"; then | |
10141 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10142 | else | |
10143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10144 | for as_dir in $PATH | |
10145 | do | |
10146 | IFS=$as_save_IFS | |
10147 | test -z "$as_dir" && as_dir=. | |
10148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10150 | ac_cv_prog_ac_ct_CC="gcc" | |
10151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10152 | break 2 | |
10153 | fi | |
10154 | done | |
10155 | done | |
10156 | ||
10157 | fi | |
10158 | fi | |
10159 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10160 | if test -n "$ac_ct_CC"; then | |
10161 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10162 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10163 | else | |
10164 | echo "$as_me:$LINENO: result: no" >&5 | |
10165 | echo "${ECHO_T}no" >&6 | |
10166 | fi | |
10167 | ||
10168 | CC=$ac_ct_CC | |
10169 | else | |
10170 | CC="$ac_cv_prog_CC" | |
10171 | fi | |
10172 | ||
10173 | if test -z "$CC"; then | |
10174 | if test -n "$ac_tool_prefix"; then | |
10175 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10176 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10177 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10178 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10179 | if test "${ac_cv_prog_CC+set}" = set; then | |
10180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10181 | else |
10182 | if test -n "$CC"; then | |
10183 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10184 | else |
e6cc62c6 VS |
10185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10186 | for as_dir in $PATH | |
10187 | do | |
10188 | IFS=$as_save_IFS | |
10189 | test -z "$as_dir" && as_dir=. | |
10190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10191 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10192 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10194 | break 2 | |
10195 | fi | |
10196 | done | |
10197 | done | |
10198 | ||
10f2d63a | 10199 | fi |
6232543b | 10200 | fi |
e6cc62c6 | 10201 | CC=$ac_cv_prog_CC |
6232543b | 10202 | if test -n "$CC"; then |
e6cc62c6 VS |
10203 | echo "$as_me:$LINENO: result: $CC" >&5 |
10204 | echo "${ECHO_T}$CC" >&6 | |
10205 | else | |
10206 | echo "$as_me:$LINENO: result: no" >&5 | |
10207 | echo "${ECHO_T}no" >&6 | |
10208 | fi | |
10209 | ||
10210 | fi | |
10211 | if test -z "$ac_cv_prog_CC"; then | |
10212 | ac_ct_CC=$CC | |
10213 | # Extract the first word of "cc", so it can be a program name with args. | |
10214 | set dummy cc; ac_word=$2 | |
10215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10217 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10219 | else | |
10220 | if test -n "$ac_ct_CC"; then | |
10221 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10222 | else | |
10223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10224 | for as_dir in $PATH | |
10225 | do | |
10226 | IFS=$as_save_IFS | |
10227 | test -z "$as_dir" && as_dir=. | |
10228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10230 | ac_cv_prog_ac_ct_CC="cc" | |
10231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10232 | break 2 | |
10233 | fi | |
10234 | done | |
10235 | done | |
10236 | ||
10237 | fi | |
10238 | fi | |
10239 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10240 | if test -n "$ac_ct_CC"; then | |
10241 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10242 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10243 | else | |
10244 | echo "$as_me:$LINENO: result: no" >&5 | |
10245 | echo "${ECHO_T}no" >&6 | |
10246 | fi | |
10247 | ||
10248 | CC=$ac_ct_CC | |
247f5006 | 10249 | else |
e6cc62c6 | 10250 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10251 | fi |
10252 | ||
e6cc62c6 | 10253 | fi |
5c6fa7d2 RR |
10254 | if test -z "$CC"; then |
10255 | # Extract the first word of "cc", so it can be a program name with args. | |
10256 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10259 | if test "${ac_cv_prog_CC+set}" = set; then | |
10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10261 | else |
10262 | if test -n "$CC"; then | |
10263 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10264 | else | |
10265 | ac_prog_rejected=no | |
e6cc62c6 VS |
10266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10267 | for as_dir in $PATH | |
10268 | do | |
10269 | IFS=$as_save_IFS | |
10270 | test -z "$as_dir" && as_dir=. | |
10271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10273 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10274 | ac_prog_rejected=yes | |
10275 | continue | |
10276 | fi | |
10277 | ac_cv_prog_CC="cc" | |
10278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10279 | break 2 | |
10280 | fi | |
10281 | done | |
10282 | done | |
10283 | ||
328a083c RR |
10284 | if test $ac_prog_rejected = yes; then |
10285 | # We found a bogon in the path, so make sure we never use it. | |
10286 | set dummy $ac_cv_prog_CC | |
10287 | shift | |
e6cc62c6 | 10288 | if test $# != 0; then |
328a083c | 10289 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10290 | # However, it has the same basename, so the bogon will be chosen |
10291 | # first if we set CC to just the basename; use the full file name. | |
10292 | shift | |
e6cc62c6 | 10293 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10294 | fi |
1e487827 VS |
10295 | fi |
10296 | fi | |
10297 | fi | |
e6cc62c6 | 10298 | CC=$ac_cv_prog_CC |
1e487827 | 10299 | if test -n "$CC"; then |
e6cc62c6 VS |
10300 | echo "$as_me:$LINENO: result: $CC" >&5 |
10301 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10302 | else |
e6cc62c6 VS |
10303 | echo "$as_me:$LINENO: result: no" >&5 |
10304 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10305 | fi |
1e487827 | 10306 | |
e6cc62c6 VS |
10307 | fi |
10308 | if test -z "$CC"; then | |
10309 | if test -n "$ac_tool_prefix"; then | |
10310 | for ac_prog in cl | |
10311 | do | |
10312 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10313 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10316 | if test "${ac_cv_prog_CC+set}" = set; then | |
10317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10318 | else |
10319 | if test -n "$CC"; then | |
10320 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10321 | else | |
e6cc62c6 VS |
10322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10323 | for as_dir in $PATH | |
10324 | do | |
10325 | IFS=$as_save_IFS | |
10326 | test -z "$as_dir" && as_dir=. | |
10327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10329 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10331 | break 2 | |
10332 | fi | |
10333 | done | |
10334 | done | |
10335 | ||
f09359cf VS |
10336 | fi |
10337 | fi | |
e6cc62c6 | 10338 | CC=$ac_cv_prog_CC |
f09359cf | 10339 | if test -n "$CC"; then |
e6cc62c6 VS |
10340 | echo "$as_me:$LINENO: result: $CC" >&5 |
10341 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10342 | else |
e6cc62c6 VS |
10343 | echo "$as_me:$LINENO: result: no" >&5 |
10344 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10345 | fi |
1e487827 | 10346 | |
e6cc62c6 VS |
10347 | test -n "$CC" && break |
10348 | done | |
10349 | fi | |
10350 | if test -z "$CC"; then | |
10351 | ac_ct_CC=$CC | |
10352 | for ac_prog in cl | |
10353 | do | |
10354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10355 | set dummy $ac_prog; ac_word=$2 | |
10356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10358 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10360 | else | |
10361 | if test -n "$ac_ct_CC"; then | |
10362 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10363 | else | |
10364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10365 | for as_dir in $PATH | |
10366 | do | |
10367 | IFS=$as_save_IFS | |
10368 | test -z "$as_dir" && as_dir=. | |
10369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10371 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10373 | break 2 | |
10374 | fi | |
10375 | done | |
10376 | done | |
f09359cf | 10377 | |
e6cc62c6 VS |
10378 | fi |
10379 | fi | |
10380 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10381 | if test -n "$ac_ct_CC"; then | |
10382 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10383 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10384 | else | |
10385 | echo "$as_me:$LINENO: result: no" >&5 | |
10386 | echo "${ECHO_T}no" >&6 | |
10387 | fi | |
f09359cf | 10388 | |
e6cc62c6 VS |
10389 | test -n "$ac_ct_CC" && break |
10390 | done | |
247f5006 | 10391 | |
e6cc62c6 VS |
10392 | CC=$ac_ct_CC |
10393 | fi | |
10394 | ||
10395 | fi | |
10396 | ||
10397 | ||
10398 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10399 | See \`config.log' for more details." >&5 | |
10400 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10401 | See \`config.log' for more details." >&2;} | |
10402 | { (exit 1); exit 1; }; } | |
10403 | ||
10404 | # Provide some information about the compiler. | |
10405 | echo "$as_me:$LINENO:" \ | |
10406 | "checking for C compiler version" >&5 | |
10407 | ac_compiler=`set X $ac_compile; echo $2` | |
10408 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10409 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10410 | ac_status=$? | |
10411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10412 | (exit $ac_status); } | |
10413 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10414 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10415 | ac_status=$? | |
10416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10417 | (exit $ac_status); } | |
10418 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10419 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10420 | ac_status=$? | |
10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10422 | (exit $ac_status); } | |
10423 | ||
10424 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10425 | /* confdefs.h. */ |
10426 | _ACEOF | |
10427 | cat confdefs.h >>conftest.$ac_ext | |
10428 | cat >>conftest.$ac_ext <<_ACEOF | |
10429 | /* end confdefs.h. */ | |
10430 | ||
10431 | int | |
10432 | main () | |
10433 | { | |
247f5006 | 10434 | |
e6cc62c6 VS |
10435 | ; |
10436 | return 0; | |
10437 | } | |
10438 | _ACEOF | |
10439 | ac_clean_files_save=$ac_clean_files | |
10440 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10441 | # Try to create an executable without -o first, disregard a.out. | |
10442 | # It will help us diagnose broken compilers, and finding out an intuition | |
10443 | # of exeext. | |
32ddf007 VS |
10444 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10445 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
e6cc62c6 VS |
10446 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10447 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10448 | (eval $ac_link_default) 2>&5 | |
10449 | ac_status=$? | |
10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10451 | (exit $ac_status); }; then | |
10452 | # Find the output, starting from the most likely. This scheme is | |
10453 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10454 | # resort. | |
10455 | ||
10456 | # Be careful to initialize this variable, since it used to be cached. | |
10457 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10458 | ac_cv_exeext= | |
10459 | # b.out is created by i960 compilers. | |
10460 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10461 | do | |
10462 | test -f "$ac_file" || continue | |
10463 | case $ac_file in | |
10464 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
32ddf007 | 10465 | ;; |
e6cc62c6 | 10466 | conftest.$ac_ext ) |
32ddf007 VS |
10467 | # This is the source file. |
10468 | ;; | |
e6cc62c6 | 10469 | [ab].out ) |
32ddf007 VS |
10470 | # We found the default executable, but exeext='' is most |
10471 | # certainly right. | |
10472 | break;; | |
e6cc62c6 | 10473 | *.* ) |
32ddf007 VS |
10474 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10475 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10476 | # but it would be cool to find out if it's true. Does anybody | |
10477 | # maintain Libtool? --akim. | |
10478 | export ac_cv_exeext | |
10479 | break;; | |
e6cc62c6 | 10480 | * ) |
32ddf007 | 10481 | break;; |
e6cc62c6 VS |
10482 | esac |
10483 | done | |
10484 | else | |
10485 | echo "$as_me: failed program was:" >&5 | |
10486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10487 | ||
10488 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10489 | See \`config.log' for more details." >&5 | |
10490 | echo "$as_me: error: C compiler cannot create executables | |
10491 | See \`config.log' for more details." >&2;} | |
10492 | { (exit 77); exit 77; }; } | |
10493 | fi | |
10494 | ||
10495 | ac_exeext=$ac_cv_exeext | |
10496 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10497 | echo "${ECHO_T}$ac_file" >&6 | |
10498 | ||
10499 | # Check the compiler produces executables we can run. If not, either | |
10500 | # the compiler is broken, or we cross compile. | |
10501 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10502 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10503 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10504 | # If not cross compiling, check that we can run a simple program. | |
10505 | if test "$cross_compiling" != yes; then | |
10506 | if { ac_try='./$ac_file' | |
10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10508 | (eval $ac_try) 2>&5 | |
10509 | ac_status=$? | |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10511 | (exit $ac_status); }; }; then | |
10512 | cross_compiling=no | |
698dcdb6 | 10513 | else |
e6cc62c6 VS |
10514 | if test "$cross_compiling" = maybe; then |
10515 | cross_compiling=yes | |
10516 | else | |
10517 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10518 | If you meant to cross compile, use \`--host'. | |
10519 | See \`config.log' for more details." >&5 | |
10520 | echo "$as_me: error: cannot run C compiled programs. | |
10521 | If you meant to cross compile, use \`--host'. | |
10522 | See \`config.log' for more details." >&2;} | |
10523 | { (exit 1); exit 1; }; } | |
10524 | fi | |
698dcdb6 | 10525 | fi |
52127426 | 10526 | fi |
e6cc62c6 VS |
10527 | echo "$as_me:$LINENO: result: yes" >&5 |
10528 | echo "${ECHO_T}yes" >&6 | |
10529 | ||
10530 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10531 | ac_clean_files=$ac_clean_files_save | |
10532 | # Check the compiler produces executables we can run. If not, either | |
10533 | # the compiler is broken, or we cross compile. | |
10534 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10535 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10536 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10537 | echo "${ECHO_T}$cross_compiling" >&6 | |
10538 | ||
10539 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10540 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10542 | (eval $ac_link) 2>&5 | |
10543 | ac_status=$? | |
10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10545 | (exit $ac_status); }; then | |
10546 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10547 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10548 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10549 | # `rm'. | |
10550 | for ac_file in conftest.exe conftest conftest.*; do | |
10551 | test -f "$ac_file" || continue | |
10552 | case $ac_file in | |
10553 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10554 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
32ddf007 VS |
10555 | export ac_cv_exeext |
10556 | break;; | |
e6cc62c6 VS |
10557 | * ) break;; |
10558 | esac | |
10559 | done | |
5c6fa7d2 | 10560 | else |
e6cc62c6 VS |
10561 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10562 | See \`config.log' for more details." >&5 | |
10563 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10564 | See \`config.log' for more details." >&2;} | |
10565 | { (exit 1); exit 1; }; } | |
10566 | fi | |
10567 | ||
10568 | rm -f conftest$ac_cv_exeext | |
10569 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10570 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10571 | ||
10572 | rm -f conftest.$ac_ext | |
10573 | EXEEXT=$ac_cv_exeext | |
10574 | ac_exeext=$EXEEXT | |
10575 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10576 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10577 | if test "${ac_cv_objext+set}" = set; then | |
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10579 | else | |
10580 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10581 | /* confdefs.h. */ |
10582 | _ACEOF | |
10583 | cat confdefs.h >>conftest.$ac_ext | |
10584 | cat >>conftest.$ac_ext <<_ACEOF | |
10585 | /* end confdefs.h. */ | |
10586 | ||
10587 | int | |
10588 | main () | |
10589 | { | |
f09359cf | 10590 | |
e6cc62c6 VS |
10591 | ; |
10592 | return 0; | |
10593 | } | |
10594 | _ACEOF | |
10595 | rm -f conftest.o conftest.obj | |
10596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10597 | (eval $ac_compile) 2>&5 | |
10598 | ac_status=$? | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); }; then | |
10601 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10602 | case $ac_file in | |
10603 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10604 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10605 | break;; | |
10606 | esac | |
10607 | done | |
a0b9e27f | 10608 | else |
e6cc62c6 VS |
10609 | echo "$as_me: failed program was:" >&5 |
10610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10611 | ||
10612 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10613 | See \`config.log' for more details." >&5 | |
10614 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10615 | See \`config.log' for more details." >&2;} | |
10616 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10617 | fi |
247f5006 | 10618 | |
e6cc62c6 VS |
10619 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10620 | fi | |
10621 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10622 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10623 | OBJEXT=$ac_cv_objext | |
10624 | ac_objext=$OBJEXT | |
10625 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10626 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10627 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10629 | else |
e6cc62c6 | 10630 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10631 | /* confdefs.h. */ |
10632 | _ACEOF | |
10633 | cat confdefs.h >>conftest.$ac_ext | |
10634 | cat >>conftest.$ac_ext <<_ACEOF | |
10635 | /* end confdefs.h. */ | |
10636 | ||
10637 | int | |
10638 | main () | |
10639 | { | |
10640 | #ifndef __GNUC__ | |
10641 | choke me | |
10642 | #endif | |
10643 | ||
10644 | ; | |
10645 | return 0; | |
10646 | } | |
10647 | _ACEOF | |
10648 | rm -f conftest.$ac_objext | |
10649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10650 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10651 | ac_status=$? |
32ddf007 VS |
10652 | grep -v '^ *+' conftest.er1 >conftest.err |
10653 | rm -f conftest.er1 | |
10654 | cat conftest.err >&5 | |
e6cc62c6 VS |
10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10656 | (exit $ac_status); } && | |
e1293dcf | 10657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10659 | (eval $ac_try) 2>&5 | |
10660 | ac_status=$? | |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10662 | (exit $ac_status); }; } && | |
10663 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10665 | (eval $ac_try) 2>&5 | |
10666 | ac_status=$? | |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10668 | (exit $ac_status); }; }; then | |
10669 | ac_compiler_gnu=yes | |
10670 | else | |
10671 | echo "$as_me: failed program was:" >&5 | |
10672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10673 | ||
10674 | ac_compiler_gnu=no | |
10675 | fi | |
32ddf007 | 10676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10677 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10678 | ||
10679 | fi | |
10680 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10681 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10682 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10683 | ac_test_CFLAGS=${CFLAGS+set} | |
10684 | ac_save_CFLAGS=$CFLAGS | |
10685 | CFLAGS="-g" | |
10686 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10687 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10688 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10690 | else | |
10691 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10692 | /* confdefs.h. */ |
10693 | _ACEOF | |
10694 | cat confdefs.h >>conftest.$ac_ext | |
10695 | cat >>conftest.$ac_ext <<_ACEOF | |
10696 | /* end confdefs.h. */ | |
10697 | ||
10698 | int | |
10699 | main () | |
10700 | { | |
10701 | ||
10702 | ; | |
10703 | return 0; | |
10704 | } | |
10705 | _ACEOF | |
10706 | rm -f conftest.$ac_objext | |
10707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10708 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10709 | ac_status=$? |
32ddf007 VS |
10710 | grep -v '^ *+' conftest.er1 >conftest.err |
10711 | rm -f conftest.er1 | |
10712 | cat conftest.err >&5 | |
e6cc62c6 VS |
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10714 | (exit $ac_status); } && | |
e1293dcf | 10715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10717 | (eval $ac_try) 2>&5 | |
10718 | ac_status=$? | |
10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10720 | (exit $ac_status); }; } && | |
10721 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10723 | (eval $ac_try) 2>&5 | |
10724 | ac_status=$? | |
10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10726 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10727 | ac_cv_prog_cc_g=yes |
10728 | else | |
e6cc62c6 VS |
10729 | echo "$as_me: failed program was:" >&5 |
10730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10731 | |
e6cc62c6 | 10732 | ac_cv_prog_cc_g=no |
10f2d63a | 10733 | fi |
32ddf007 | 10734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10735 | fi |
10736 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10737 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10738 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10739 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10740 | elif test $ac_cv_prog_cc_g = yes; then |
10741 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10742 | CFLAGS="-g -O2" |
10743 | else | |
f09359cf | 10744 | CFLAGS="-g" |
10f2d63a | 10745 | fi |
5c0a20c3 | 10746 | else |
f09359cf VS |
10747 | if test "$GCC" = yes; then |
10748 | CFLAGS="-O2" | |
10749 | else | |
10750 | CFLAGS= | |
10751 | fi | |
10f2d63a | 10752 | fi |
e6cc62c6 VS |
10753 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10754 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10755 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10757 | else | |
10758 | ac_cv_prog_cc_stdc=no | |
10759 | ac_save_CC=$CC | |
10760 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10761 | /* confdefs.h. */ |
10762 | _ACEOF | |
10763 | cat confdefs.h >>conftest.$ac_ext | |
10764 | cat >>conftest.$ac_ext <<_ACEOF | |
10765 | /* end confdefs.h. */ | |
10766 | #include <stdarg.h> | |
10767 | #include <stdio.h> | |
10768 | #include <sys/types.h> | |
10769 | #include <sys/stat.h> | |
10770 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10771 | struct buf { int x; }; | |
10772 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10773 | static char *e (p, i) | |
10774 | char **p; | |
10775 | int i; | |
10776 | { | |
10777 | return p[i]; | |
10778 | } | |
10779 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10780 | { | |
10781 | char *s; | |
10782 | va_list v; | |
10783 | va_start (v,p); | |
10784 | s = g (p, va_arg (v,int)); | |
10785 | va_end (v); | |
10786 | return s; | |
10787 | } | |
32ddf007 VS |
10788 | |
10789 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10790 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10791 | These don't provoke an error unfortunately, instead are silently treated | |
10792 | as 'x'. The following induces an error, until -std1 is added to get | |
10793 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10794 | array size at least. It's necessary to write '\x00'==0 to get something | |
10795 | that's true only with -std1. */ | |
10796 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10797 | ||
e6cc62c6 VS |
10798 | int test (int i, double x); |
10799 | struct s1 {int (*f) (int a);}; | |
10800 | struct s2 {int (*f) (double a);}; | |
10801 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10802 | int argc; | |
10803 | char **argv; | |
10804 | int | |
10805 | main () | |
10806 | { | |
10807 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10808 | ; | |
10809 | return 0; | |
10810 | } | |
10811 | _ACEOF | |
10812 | # Don't try gcc -ansi; that turns off useful extensions and | |
10813 | # breaks some systems' header files. | |
10814 | # AIX -qlanglvl=ansi | |
10815 | # Ultrix and OSF/1 -std1 | |
10816 | # HP-UX 10.20 and later -Ae | |
10817 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10818 | # SVR4 -Xc -D__EXTENSIONS__ | |
10819 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10820 | do | |
10821 | CC="$ac_save_CC $ac_arg" | |
10822 | rm -f conftest.$ac_objext | |
10823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10824 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10825 | ac_status=$? |
32ddf007 VS |
10826 | grep -v '^ *+' conftest.er1 >conftest.err |
10827 | rm -f conftest.er1 | |
10828 | cat conftest.err >&5 | |
e6cc62c6 VS |
10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10830 | (exit $ac_status); } && | |
e1293dcf | 10831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10833 | (eval $ac_try) 2>&5 | |
10834 | ac_status=$? | |
10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10836 | (exit $ac_status); }; } && | |
10837 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10839 | (eval $ac_try) 2>&5 | |
10840 | ac_status=$? | |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10842 | (exit $ac_status); }; }; then | |
10843 | ac_cv_prog_cc_stdc=$ac_arg | |
10844 | break | |
10845 | else | |
10846 | echo "$as_me: failed program was:" >&5 | |
10847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10848 | ||
10849 | fi | |
32ddf007 | 10850 | rm -f conftest.err conftest.$ac_objext |
e6cc62c6 VS |
10851 | done |
10852 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10853 | CC=$ac_save_CC | |
10854 | ||
10855 | fi | |
10856 | ||
10857 | case "x$ac_cv_prog_cc_stdc" in | |
10858 | x|xno) | |
10859 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10860 | echo "${ECHO_T}none needed" >&6 ;; | |
10861 | *) | |
10862 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10863 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10864 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10865 | esac | |
10866 | ||
10867 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10868 | # in C++ we need to declare it. In case someone uses the same compiler | |
10869 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10870 | # the declaration of exit, since it's the most demanding environment. | |
10871 | cat >conftest.$ac_ext <<_ACEOF | |
10872 | #ifndef __cplusplus | |
10873 | choke me | |
10874 | #endif | |
10875 | _ACEOF | |
10876 | rm -f conftest.$ac_objext | |
10877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10878 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10879 | ac_status=$? |
32ddf007 VS |
10880 | grep -v '^ *+' conftest.er1 >conftest.err |
10881 | rm -f conftest.er1 | |
10882 | cat conftest.err >&5 | |
e6cc62c6 VS |
10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10884 | (exit $ac_status); } && | |
e1293dcf | 10885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10887 | (eval $ac_try) 2>&5 | |
10888 | ac_status=$? | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); }; } && | |
10891 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; }; then | |
10897 | for ac_declaration in \ | |
32ddf007 | 10898 | '' \ |
e6cc62c6 VS |
10899 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10900 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10901 | 'extern "C" void exit (int) throw ();' \ | |
10902 | 'extern "C" void exit (int);' \ | |
10903 | 'void exit (int);' | |
10904 | do | |
10905 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10906 | /* confdefs.h. */ |
10907 | _ACEOF | |
10908 | cat confdefs.h >>conftest.$ac_ext | |
10909 | cat >>conftest.$ac_ext <<_ACEOF | |
10910 | /* end confdefs.h. */ | |
0f87e84c | 10911 | $ac_declaration |
32ddf007 | 10912 | #include <stdlib.h> |
e6cc62c6 VS |
10913 | int |
10914 | main () | |
10915 | { | |
10916 | exit (42); | |
10917 | ; | |
10918 | return 0; | |
10919 | } | |
10920 | _ACEOF | |
10921 | rm -f conftest.$ac_objext | |
10922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10923 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10924 | ac_status=$? |
32ddf007 VS |
10925 | grep -v '^ *+' conftest.er1 >conftest.err |
10926 | rm -f conftest.er1 | |
10927 | cat conftest.err >&5 | |
e6cc62c6 VS |
10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10929 | (exit $ac_status); } && | |
e1293dcf | 10930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10932 | (eval $ac_try) 2>&5 | |
10933 | ac_status=$? | |
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10935 | (exit $ac_status); }; } && | |
10936 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10938 | (eval $ac_try) 2>&5 | |
10939 | ac_status=$? | |
10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10941 | (exit $ac_status); }; }; then | |
10942 | : | |
10943 | else | |
10944 | echo "$as_me: failed program was:" >&5 | |
10945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10946 | ||
10947 | continue | |
10948 | fi | |
32ddf007 | 10949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10950 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10951 | /* confdefs.h. */ |
10952 | _ACEOF | |
10953 | cat confdefs.h >>conftest.$ac_ext | |
10954 | cat >>conftest.$ac_ext <<_ACEOF | |
10955 | /* end confdefs.h. */ | |
10956 | $ac_declaration | |
10957 | int | |
10958 | main () | |
10959 | { | |
10960 | exit (42); | |
10961 | ; | |
10962 | return 0; | |
10963 | } | |
10964 | _ACEOF | |
10965 | rm -f conftest.$ac_objext | |
10966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10967 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10968 | ac_status=$? |
32ddf007 VS |
10969 | grep -v '^ *+' conftest.er1 >conftest.err |
10970 | rm -f conftest.er1 | |
10971 | cat conftest.err >&5 | |
e6cc62c6 VS |
10972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10973 | (exit $ac_status); } && | |
e1293dcf | 10974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
10975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10976 | (eval $ac_try) 2>&5 | |
10977 | ac_status=$? | |
10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10979 | (exit $ac_status); }; } && | |
10980 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10982 | (eval $ac_try) 2>&5 | |
10983 | ac_status=$? | |
10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10985 | (exit $ac_status); }; }; then | |
10986 | break | |
10987 | else | |
10988 | echo "$as_me: failed program was:" >&5 | |
10989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10990 | ||
10991 | fi | |
32ddf007 | 10992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10993 | done |
10994 | rm -f conftest* | |
10995 | if test -n "$ac_declaration"; then | |
10996 | echo '#ifdef __cplusplus' >>confdefs.h | |
10997 | echo $ac_declaration >>confdefs.h | |
10998 | echo '#endif' >>confdefs.h | |
10999 | fi | |
11000 | ||
11001 | else | |
11002 | echo "$as_me: failed program was:" >&5 | |
11003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11004 | ||
11005 | fi | |
32ddf007 | 11006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11007 | ac_ext=c |
11008 | ac_cpp='$CPP $CPPFLAGS' | |
11009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
11012 | |
11013 | ||
e6cc62c6 VS |
11014 | |
11015 | ac_ext=c | |
11016 | ac_cpp='$CPP $CPPFLAGS' | |
11017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11020 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11021 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
11022 | # On Suns, sometimes $CPP names a directory. |
11023 | if test -n "$CPP" && test -d "$CPP"; then | |
11024 | CPP= | |
11025 | fi | |
11026 | if test -z "$CPP"; then | |
e6cc62c6 VS |
11027 | if test "${ac_cv_prog_CPP+set}" = set; then |
11028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11029 | else | |
11030 | # Double quotes because CPP needs to be expanded | |
11031 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11032 | do | |
11033 | ac_preproc_ok=false | |
11034 | for ac_c_preproc_warn_flag in '' yes | |
11035 | do | |
11036 | # Use a header file that comes with gcc, so configuring glibc | |
11037 | # with a fresh cross-compiler works. | |
11038 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11039 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 11040 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
11041 | # not just through cpp. "Syntax error" is here to catch this case. |
11042 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11043 | /* confdefs.h. */ |
11044 | _ACEOF | |
11045 | cat confdefs.h >>conftest.$ac_ext | |
11046 | cat >>conftest.$ac_ext <<_ACEOF | |
11047 | /* end confdefs.h. */ | |
11048 | #ifdef __STDC__ | |
11049 | # include <limits.h> | |
11050 | #else | |
11051 | # include <assert.h> | |
11052 | #endif | |
32ddf007 | 11053 | Syntax error |
e6cc62c6 VS |
11054 | _ACEOF |
11055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11057 | ac_status=$? | |
11058 | grep -v '^ *+' conftest.er1 >conftest.err | |
11059 | rm -f conftest.er1 | |
11060 | cat conftest.err >&5 | |
11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11062 | (exit $ac_status); } >/dev/null; then | |
11063 | if test -s conftest.err; then | |
11064 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11066 | else |
11067 | ac_cpp_err= | |
11068 | fi | |
10f2d63a | 11069 | else |
e6cc62c6 VS |
11070 | ac_cpp_err=yes |
11071 | fi | |
11072 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 11073 | : |
247f5006 | 11074 | else |
e6cc62c6 VS |
11075 | echo "$as_me: failed program was:" >&5 |
11076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11077 | ||
11078 | # Broken: fails on valid input. | |
11079 | continue | |
11080 | fi | |
11081 | rm -f conftest.err conftest.$ac_ext | |
11082 | ||
11083 | # OK, works on sane cases. Now check whether non-existent headers | |
11084 | # can be detected and how. | |
11085 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11086 | /* confdefs.h. */ |
11087 | _ACEOF | |
11088 | cat confdefs.h >>conftest.$ac_ext | |
11089 | cat >>conftest.$ac_ext <<_ACEOF | |
11090 | /* end confdefs.h. */ | |
11091 | #include <ac_nonexistent.h> | |
11092 | _ACEOF | |
11093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11095 | ac_status=$? | |
11096 | grep -v '^ *+' conftest.er1 >conftest.err | |
11097 | rm -f conftest.er1 | |
11098 | cat conftest.err >&5 | |
11099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11100 | (exit $ac_status); } >/dev/null; then | |
11101 | if test -s conftest.err; then | |
11102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11103 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11104 | else |
11105 | ac_cpp_err= | |
11106 | fi | |
10f2d63a | 11107 | else |
e6cc62c6 | 11108 | ac_cpp_err=yes |
579d8138 | 11109 | fi |
e6cc62c6 VS |
11110 | if test -z "$ac_cpp_err"; then |
11111 | # Broken: success on invalid input. | |
11112 | continue | |
11113 | else | |
11114 | echo "$as_me: failed program was:" >&5 | |
11115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11116 | ||
11117 | # Passes both tests. | |
11118 | ac_preproc_ok=: | |
11119 | break | |
52127426 | 11120 | fi |
e6cc62c6 VS |
11121 | rm -f conftest.err conftest.$ac_ext |
11122 | ||
11123 | done | |
11124 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11125 | rm -f conftest.err conftest.$ac_ext | |
11126 | if $ac_preproc_ok; then | |
11127 | break | |
8284b0c5 | 11128 | fi |
e6cc62c6 VS |
11129 | |
11130 | done | |
11131 | ac_cv_prog_CPP=$CPP | |
11132 | ||
11133 | fi | |
11134 | CPP=$ac_cv_prog_CPP | |
11135 | else | |
11136 | ac_cv_prog_CPP=$CPP | |
11137 | fi | |
11138 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11139 | echo "${ECHO_T}$CPP" >&6 | |
11140 | ac_preproc_ok=false | |
11141 | for ac_c_preproc_warn_flag in '' yes | |
11142 | do | |
11143 | # Use a header file that comes with gcc, so configuring glibc | |
11144 | # with a fresh cross-compiler works. | |
11145 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11146 | # <limits.h> exists even on freestanding compilers. | |
11147 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11148 | # not just through cpp. "Syntax error" is here to catch this case. | |
11149 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11150 | /* confdefs.h. */ |
11151 | _ACEOF | |
11152 | cat confdefs.h >>conftest.$ac_ext | |
11153 | cat >>conftest.$ac_ext <<_ACEOF | |
11154 | /* end confdefs.h. */ | |
11155 | #ifdef __STDC__ | |
11156 | # include <limits.h> | |
11157 | #else | |
11158 | # include <assert.h> | |
11159 | #endif | |
32ddf007 | 11160 | Syntax error |
e6cc62c6 VS |
11161 | _ACEOF |
11162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11164 | ac_status=$? | |
11165 | grep -v '^ *+' conftest.er1 >conftest.err | |
11166 | rm -f conftest.er1 | |
11167 | cat conftest.err >&5 | |
11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 | (exit $ac_status); } >/dev/null; then | |
11170 | if test -s conftest.err; then | |
11171 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11173 | else |
11174 | ac_cpp_err= | |
11175 | fi | |
11176 | else | |
11177 | ac_cpp_err=yes | |
11178 | fi | |
11179 | if test -z "$ac_cpp_err"; then | |
11180 | : | |
11181 | else | |
11182 | echo "$as_me: failed program was:" >&5 | |
11183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11184 | ||
11185 | # Broken: fails on valid input. | |
11186 | continue | |
11187 | fi | |
11188 | rm -f conftest.err conftest.$ac_ext | |
11189 | ||
11190 | # OK, works on sane cases. Now check whether non-existent headers | |
11191 | # can be detected and how. | |
11192 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11193 | /* confdefs.h. */ |
11194 | _ACEOF | |
11195 | cat confdefs.h >>conftest.$ac_ext | |
11196 | cat >>conftest.$ac_ext <<_ACEOF | |
11197 | /* end confdefs.h. */ | |
11198 | #include <ac_nonexistent.h> | |
11199 | _ACEOF | |
11200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11202 | ac_status=$? | |
11203 | grep -v '^ *+' conftest.er1 >conftest.err | |
11204 | rm -f conftest.er1 | |
11205 | cat conftest.err >&5 | |
11206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11207 | (exit $ac_status); } >/dev/null; then | |
11208 | if test -s conftest.err; then | |
11209 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11211 | else |
11212 | ac_cpp_err= | |
11213 | fi | |
11214 | else | |
11215 | ac_cpp_err=yes | |
11216 | fi | |
11217 | if test -z "$ac_cpp_err"; then | |
11218 | # Broken: success on invalid input. | |
11219 | continue | |
11220 | else | |
11221 | echo "$as_me: failed program was:" >&5 | |
11222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11223 | ||
11224 | # Passes both tests. | |
11225 | ac_preproc_ok=: | |
11226 | break | |
a0b9e27f | 11227 | fi |
e6cc62c6 VS |
11228 | rm -f conftest.err conftest.$ac_ext |
11229 | ||
11230 | done | |
11231 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11232 | rm -f conftest.err conftest.$ac_ext | |
11233 | if $ac_preproc_ok; then | |
11234 | : | |
11235 | else | |
11236 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11237 | See \`config.log' for more details." >&5 | |
11238 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11239 | See \`config.log' for more details." >&2;} | |
11240 | { (exit 1); exit 1; }; } | |
11241 | fi | |
11242 | ||
11243 | ac_ext=c | |
11244 | ac_cpp='$CPP $CPPFLAGS' | |
11245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11248 | ||
11249 | ||
11250 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11251 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11252 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11254 | else |
e6cc62c6 VS |
11255 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11256 | then ac_cv_prog_egrep='grep -E' | |
11257 | else ac_cv_prog_egrep='egrep' | |
11258 | fi | |
10f2d63a | 11259 | fi |
e6cc62c6 VS |
11260 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11261 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11262 | EGREP=$ac_cv_prog_egrep | |
11263 | ||
10f2d63a | 11264 | |
e6cc62c6 VS |
11265 | if test $ac_cv_c_compiler_gnu = yes; then |
11266 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11267 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11268 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11270 | else |
11271 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11272 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11273 | /* confdefs.h. */ |
11274 | _ACEOF | |
11275 | cat confdefs.h >>conftest.$ac_ext | |
11276 | cat >>conftest.$ac_ext <<_ACEOF | |
11277 | /* end confdefs.h. */ | |
10f2d63a VZ |
11278 | #include <sgtty.h> |
11279 | Autoconf TIOCGETP | |
e6cc62c6 | 11280 | _ACEOF |
10f2d63a | 11281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11282 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11283 | ac_cv_prog_gcc_traditional=yes |
11284 | else | |
10f2d63a VZ |
11285 | ac_cv_prog_gcc_traditional=no |
11286 | fi | |
11287 | rm -f conftest* | |
11288 | ||
8284b0c5 | 11289 | |
10f2d63a | 11290 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11291 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11292 | /* confdefs.h. */ |
11293 | _ACEOF | |
11294 | cat confdefs.h >>conftest.$ac_ext | |
11295 | cat >>conftest.$ac_ext <<_ACEOF | |
11296 | /* end confdefs.h. */ | |
10f2d63a VZ |
11297 | #include <termio.h> |
11298 | Autoconf TCGETA | |
e6cc62c6 | 11299 | _ACEOF |
10f2d63a | 11300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11301 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11302 | ac_cv_prog_gcc_traditional=yes |
11303 | fi | |
11304 | rm -f conftest* | |
11305 | ||
11306 | fi | |
11307 | fi | |
e6cc62c6 VS |
11308 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11309 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11310 | if test $ac_cv_prog_gcc_traditional = yes; then |
11311 | CC="$CC -traditional" | |
11312 | fi | |
11313 | fi | |
11314 | ||
8284b0c5 MB |
11315 | |
11316 | ||
e6cc62c6 VS |
11317 | |
11318 | ac_ext=cc | |
1e487827 | 11319 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11323 | |
698dcdb6 | 11324 | |
ec603395 | 11325 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11326 | ac_ext=cc |
11327 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11331 | if test -n "$ac_tool_prefix"; then | |
11332 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11333 | do | |
11334 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11335 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11338 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11340 | else |
11341 | if test -n "$CXX"; then | |
11342 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11343 | else | |
e6cc62c6 VS |
11344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11345 | for as_dir in $PATH | |
11346 | do | |
11347 | IFS=$as_save_IFS | |
11348 | test -z "$as_dir" && as_dir=. | |
11349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11351 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11353 | break 2 | |
11354 | fi | |
11355 | done | |
11356 | done | |
11357 | ||
10f2d63a VZ |
11358 | fi |
11359 | fi | |
e6cc62c6 | 11360 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11361 | if test -n "$CXX"; then |
e6cc62c6 VS |
11362 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11363 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11364 | else |
e6cc62c6 VS |
11365 | echo "$as_me:$LINENO: result: no" >&5 |
11366 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11367 | fi |
11368 | ||
e6cc62c6 VS |
11369 | test -n "$CXX" && break |
11370 | done | |
11371 | fi | |
11372 | if test -z "$CXX"; then | |
11373 | ac_ct_CXX=$CXX | |
11374 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11375 | do | |
11376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11377 | set dummy $ac_prog; ac_word=$2 | |
11378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11380 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11382 | else | |
11383 | if test -n "$ac_ct_CXX"; then | |
11384 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11385 | else | |
11386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11387 | for as_dir in $PATH | |
11388 | do | |
11389 | IFS=$as_save_IFS | |
11390 | test -z "$as_dir" && as_dir=. | |
11391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11393 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11395 | break 2 | |
11396 | fi | |
11397 | done | |
10f2d63a | 11398 | done |
a0b9e27f | 11399 | |
8284b0c5 | 11400 | fi |
a0b9e27f | 11401 | fi |
e6cc62c6 VS |
11402 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11403 | if test -n "$ac_ct_CXX"; then | |
11404 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11405 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11406 | else | |
11407 | echo "$as_me:$LINENO: result: no" >&5 | |
11408 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11409 | fi |
10f2d63a | 11410 | |
e6cc62c6 VS |
11411 | test -n "$ac_ct_CXX" && break |
11412 | done | |
11413 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11414 | ||
11415 | CXX=$ac_ct_CXX | |
11416 | fi | |
11417 | ||
11418 | ||
11419 | # Provide some information about the compiler. | |
11420 | echo "$as_me:$LINENO:" \ | |
11421 | "checking for C++ compiler version" >&5 | |
11422 | ac_compiler=`set X $ac_compile; echo $2` | |
11423 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11424 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11425 | ac_status=$? | |
11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11427 | (exit $ac_status); } | |
11428 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11429 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11430 | ac_status=$? | |
11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11432 | (exit $ac_status); } | |
11433 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11434 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11435 | ac_status=$? | |
11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11437 | (exit $ac_status); } | |
11438 | ||
11439 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11440 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11441 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11443 | else | |
11444 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11445 | /* confdefs.h. */ |
11446 | _ACEOF | |
11447 | cat confdefs.h >>conftest.$ac_ext | |
11448 | cat >>conftest.$ac_ext <<_ACEOF | |
11449 | /* end confdefs.h. */ | |
11450 | ||
11451 | int | |
11452 | main () | |
11453 | { | |
11454 | #ifndef __GNUC__ | |
11455 | choke me | |
11456 | #endif | |
10f2d63a | 11457 | |
e6cc62c6 VS |
11458 | ; |
11459 | return 0; | |
11460 | } | |
11461 | _ACEOF | |
11462 | rm -f conftest.$ac_objext | |
11463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11464 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11465 | ac_status=$? |
32ddf007 VS |
11466 | grep -v '^ *+' conftest.er1 >conftest.err |
11467 | rm -f conftest.er1 | |
11468 | cat conftest.err >&5 | |
e6cc62c6 VS |
11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11470 | (exit $ac_status); } && | |
e1293dcf | 11471 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11473 | (eval $ac_try) 2>&5 | |
11474 | ac_status=$? | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); }; } && | |
11477 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11479 | (eval $ac_try) 2>&5 | |
11480 | ac_status=$? | |
11481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11482 | (exit $ac_status); }; }; then | |
11483 | ac_compiler_gnu=yes | |
11484 | else | |
11485 | echo "$as_me: failed program was:" >&5 | |
11486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11487 | ||
11488 | ac_compiler_gnu=no | |
11489 | fi | |
32ddf007 | 11490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11491 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11492 | ||
11493 | fi | |
11494 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11495 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11496 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11497 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11498 | ac_save_CXXFLAGS=$CXXFLAGS | |
11499 | CXXFLAGS="-g" | |
11500 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11501 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11502 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11504 | else | |
11505 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11506 | /* confdefs.h. */ |
11507 | _ACEOF | |
11508 | cat confdefs.h >>conftest.$ac_ext | |
11509 | cat >>conftest.$ac_ext <<_ACEOF | |
11510 | /* end confdefs.h. */ | |
11511 | ||
11512 | int | |
11513 | main () | |
11514 | { | |
f09359cf | 11515 | |
e6cc62c6 VS |
11516 | ; |
11517 | return 0; | |
11518 | } | |
11519 | _ACEOF | |
11520 | rm -f conftest.$ac_objext | |
11521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11522 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11523 | ac_status=$? |
32ddf007 VS |
11524 | grep -v '^ *+' conftest.er1 >conftest.err |
11525 | rm -f conftest.er1 | |
11526 | cat conftest.err >&5 | |
e6cc62c6 VS |
11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11528 | (exit $ac_status); } && | |
e1293dcf | 11529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11531 | (eval $ac_try) 2>&5 | |
11532 | ac_status=$? | |
11533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11534 | (exit $ac_status); }; } && | |
11535 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11537 | (eval $ac_try) 2>&5 | |
11538 | ac_status=$? | |
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11541 | ac_cv_prog_cxx_g=yes |
11542 | else | |
e6cc62c6 VS |
11543 | echo "$as_me: failed program was:" >&5 |
11544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11545 | |
e6cc62c6 | 11546 | ac_cv_prog_cxx_g=no |
10f2d63a | 11547 | fi |
32ddf007 | 11548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11549 | fi |
11550 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11551 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11552 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11553 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11554 | elif test $ac_cv_prog_cxx_g = yes; then |
11555 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11556 | CXXFLAGS="-g -O2" |
11557 | else | |
f09359cf | 11558 | CXXFLAGS="-g" |
10f2d63a | 11559 | fi |
5c0a20c3 | 11560 | else |
f09359cf VS |
11561 | if test "$GXX" = yes; then |
11562 | CXXFLAGS="-O2" | |
11563 | else | |
11564 | CXXFLAGS= | |
11565 | fi | |
10f2d63a | 11566 | fi |
e6cc62c6 | 11567 | for ac_declaration in \ |
32ddf007 | 11568 | '' \ |
e6cc62c6 VS |
11569 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11570 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11571 | 'extern "C" void exit (int) throw ();' \ | |
11572 | 'extern "C" void exit (int);' \ | |
11573 | 'void exit (int);' | |
11574 | do | |
11575 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11576 | /* confdefs.h. */ |
11577 | _ACEOF | |
11578 | cat confdefs.h >>conftest.$ac_ext | |
11579 | cat >>conftest.$ac_ext <<_ACEOF | |
11580 | /* end confdefs.h. */ | |
0f87e84c | 11581 | $ac_declaration |
32ddf007 | 11582 | #include <stdlib.h> |
e6cc62c6 VS |
11583 | int |
11584 | main () | |
11585 | { | |
11586 | exit (42); | |
11587 | ; | |
11588 | return 0; | |
11589 | } | |
11590 | _ACEOF | |
11591 | rm -f conftest.$ac_objext | |
11592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11593 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11594 | ac_status=$? |
32ddf007 VS |
11595 | grep -v '^ *+' conftest.er1 >conftest.err |
11596 | rm -f conftest.er1 | |
11597 | cat conftest.err >&5 | |
e6cc62c6 VS |
11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11599 | (exit $ac_status); } && | |
e1293dcf | 11600 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11602 | (eval $ac_try) 2>&5 | |
11603 | ac_status=$? | |
11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11605 | (exit $ac_status); }; } && | |
11606 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11608 | (eval $ac_try) 2>&5 | |
11609 | ac_status=$? | |
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11611 | (exit $ac_status); }; }; then | |
11612 | : | |
11613 | else | |
11614 | echo "$as_me: failed program was:" >&5 | |
11615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11616 | ||
11617 | continue | |
11618 | fi | |
32ddf007 | 11619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11620 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11621 | /* confdefs.h. */ |
11622 | _ACEOF | |
11623 | cat confdefs.h >>conftest.$ac_ext | |
11624 | cat >>conftest.$ac_ext <<_ACEOF | |
11625 | /* end confdefs.h. */ | |
11626 | $ac_declaration | |
11627 | int | |
11628 | main () | |
11629 | { | |
11630 | exit (42); | |
11631 | ; | |
11632 | return 0; | |
11633 | } | |
11634 | _ACEOF | |
11635 | rm -f conftest.$ac_objext | |
11636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11637 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11638 | ac_status=$? |
32ddf007 VS |
11639 | grep -v '^ *+' conftest.er1 >conftest.err |
11640 | rm -f conftest.er1 | |
11641 | cat conftest.err >&5 | |
e6cc62c6 VS |
11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11643 | (exit $ac_status); } && | |
e1293dcf | 11644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
11645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11646 | (eval $ac_try) 2>&5 | |
11647 | ac_status=$? | |
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11649 | (exit $ac_status); }; } && | |
11650 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11652 | (eval $ac_try) 2>&5 | |
11653 | ac_status=$? | |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11655 | (exit $ac_status); }; }; then | |
11656 | break | |
11657 | else | |
11658 | echo "$as_me: failed program was:" >&5 | |
11659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11660 | ||
11661 | fi | |
32ddf007 | 11662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11663 | done |
11664 | rm -f conftest* | |
11665 | if test -n "$ac_declaration"; then | |
11666 | echo '#ifdef __cplusplus' >>confdefs.h | |
11667 | echo $ac_declaration >>confdefs.h | |
11668 | echo '#endif' >>confdefs.h | |
11669 | fi | |
11670 | ||
11671 | ac_ext=cc | |
11672 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11673 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11674 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11675 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11676 | |
11677 | ||
10f2d63a | 11678 | ac_ext=c |
10f2d63a | 11679 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11683 | |
11684 | ||
243f8ae5 VS |
11685 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 |
11686 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11687 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11688 | if test "$GCC" = "yes" ; then | |
11689 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11690 | sed -n '1,/End of search list\./p' | \ | |
11691 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11692 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11693 | fi | |
11694 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11695 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11696 | ||
e6cc62c6 VS |
11697 | if test -n "$ac_tool_prefix"; then |
11698 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11699 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11702 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11704 | else |
11705 | if test -n "$RANLIB"; then | |
11706 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11707 | else | |
e6cc62c6 VS |
11708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11709 | for as_dir in $PATH | |
11710 | do | |
11711 | IFS=$as_save_IFS | |
11712 | test -z "$as_dir" && as_dir=. | |
11713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11715 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11717 | break 2 | |
11718 | fi | |
11719 | done | |
11720 | done | |
11721 | ||
10f2d63a VZ |
11722 | fi |
11723 | fi | |
e6cc62c6 | 11724 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11725 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11726 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11727 | echo "${ECHO_T}$RANLIB" >&6 | |
11728 | else | |
11729 | echo "$as_me:$LINENO: result: no" >&5 | |
11730 | echo "${ECHO_T}no" >&6 | |
11731 | fi | |
11732 | ||
11733 | fi | |
11734 | if test -z "$ac_cv_prog_RANLIB"; then | |
11735 | ac_ct_RANLIB=$RANLIB | |
11736 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11737 | set dummy ranlib; ac_word=$2 | |
11738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11740 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11742 | else |
e6cc62c6 VS |
11743 | if test -n "$ac_ct_RANLIB"; then |
11744 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11745 | else | |
11746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11747 | for as_dir in $PATH | |
11748 | do | |
11749 | IFS=$as_save_IFS | |
11750 | test -z "$as_dir" && as_dir=. | |
11751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11752 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11753 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11755 | break 2 | |
11756 | fi | |
11757 | done | |
11758 | done | |
11759 | ||
11760 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11761 | fi | |
11762 | fi | |
11763 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11764 | if test -n "$ac_ct_RANLIB"; then | |
11765 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11766 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11767 | else | |
11768 | echo "$as_me:$LINENO: result: no" >&5 | |
11769 | echo "${ECHO_T}no" >&6 | |
11770 | fi | |
11771 | ||
11772 | RANLIB=$ac_ct_RANLIB | |
11773 | else | |
11774 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11775 | fi |
11776 | ||
10f2d63a VZ |
11777 | |
11778 | # Extract the first word of "ar", so it can be a program name with args. | |
11779 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11782 | if test "${ac_cv_prog_AR+set}" = set; then | |
11783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11784 | else |
11785 | if test -n "$AR"; then | |
11786 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11787 | else | |
e6cc62c6 VS |
11788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11789 | for as_dir in $PATH | |
11790 | do | |
11791 | IFS=$as_save_IFS | |
11792 | test -z "$as_dir" && as_dir=. | |
11793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11795 | ac_cv_prog_AR="ar" | |
11796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11797 | break 2 | |
11798 | fi | |
11799 | done | |
11800 | done | |
11801 | ||
10f2d63a VZ |
11802 | fi |
11803 | fi | |
e6cc62c6 | 11804 | AR=$ac_cv_prog_AR |
10f2d63a | 11805 | if test -n "$AR"; then |
e6cc62c6 VS |
11806 | echo "$as_me:$LINENO: result: $AR" >&5 |
11807 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11808 | else |
e6cc62c6 VS |
11809 | echo "$as_me:$LINENO: result: no" >&5 |
11810 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11811 | fi |
11812 | ||
911740e7 VS |
11813 | if test "x$AR" = "x" ; then |
11814 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11815 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11816 | { (exit 1); exit 1; }; } | |
11817 | fi | |
8284b0c5 | 11818 | |
6054113a | 11819 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11820 | # so one script is as good as another. But avoid the broken or |
11821 | # incompatible versions: | |
11822 | # SysV /etc/install, /usr/sbin/install | |
11823 | # SunOS /usr/etc/install | |
11824 | # IRIX /sbin/install | |
11825 | # AIX /bin/install | |
e6cc62c6 | 11826 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11827 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11828 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11829 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 11830 | # OS/2's system install, which has a completely different semantic |
10f2d63a | 11831 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
11832 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11833 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11834 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11835 | if test "${ac_cv_path_install+set}" = set; then |
11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11837 | else | |
11838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11839 | for as_dir in $PATH | |
11840 | do | |
11841 | IFS=$as_save_IFS | |
11842 | test -z "$as_dir" && as_dir=. | |
11843 | # Account for people who put trailing slashes in PATH elements. | |
11844 | case $as_dir/ in | |
11845 | ./ | .// | /cC/* | \ | |
11846 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 11847 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
11848 | /usr/ucb/* ) ;; |
11849 | *) | |
11850 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11851 | # Don't use installbsd from OSF since it installs stuff as root | |
11852 | # by default. | |
11853 | for ac_prog in ginstall scoinst install; do | |
11854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
11855 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11856 | if test $ac_prog = install && | |
11857 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11858 | # AIX install. It has an incompatible calling convention. | |
11859 | : | |
11860 | elif test $ac_prog = install && | |
11861 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11862 | # program-specific install script used by HP pwplus--don't use. | |
11863 | : | |
11864 | else | |
11865 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11866 | break 3 | |
11867 | fi | |
11868 | fi | |
10f2d63a | 11869 | done |
e6cc62c6 VS |
11870 | done |
11871 | ;; | |
11872 | esac | |
11873 | done | |
11874 | ||
10f2d63a VZ |
11875 | |
11876 | fi | |
11877 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11878 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11879 | else |
11880 | # As a last resort, use the slow shell script. We don't cache a | |
11881 | # path for INSTALL within a source directory, because that will | |
11882 | # break other packages using the cache if that directory is | |
11883 | # removed, or if the path is relative. | |
e6cc62c6 | 11884 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11885 | fi |
11886 | fi | |
e6cc62c6 VS |
11887 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11888 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11889 | |
11890 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11891 | # It thinks the first close brace ends the variable substitution. | |
11892 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11893 | ||
e6cc62c6 | 11894 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11895 | |
10f2d63a VZ |
11896 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11897 | ||
8284b0c5 | 11898 | |
1d1b75ac VZ |
11899 | case ${INSTALL} in |
11900 | /* ) # Absolute | |
11901 | ;; | |
4f5a7f74 VZ |
11902 | ?:* ) # Drive letter, considered as absolute. |
11903 | ;; | |
3bd8fb5f | 11904 | *) |
1d1b75ac VZ |
11905 | INSTALL=`pwd`/${INSTALL} ;; |
11906 | esac | |
11907 | ||
4f5a7f74 VZ |
11908 | case ${host} in |
11909 | *-hp-hpux* ) | |
11910 | INSTALL_DIR="mkdir" | |
11911 | ;; | |
11912 | ||
11913 | *) INSTALL_DIR="$INSTALL -d" | |
11914 | ;; | |
11915 | esac | |
11916 | ||
8284b0c5 | 11917 | |
6054113a GD |
11918 | case "${host}" in |
11919 | ||
b5853384 | 11920 | powerpc-*-darwin* ) |
eb99ae0b GD |
11921 | INSTALL_PROGRAM="cp -fp" |
11922 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11923 | ;; |
11924 | *) | |
11925 | ;; | |
d6853540 | 11926 | esac |
698dcdb6 | 11927 | |
10f2d63a VZ |
11928 | # Extract the first word of "strip", so it can be a program name with args. |
11929 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11932 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11934 | else |
11935 | if test -n "$STRIP"; then | |
11936 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11937 | else | |
e6cc62c6 VS |
11938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11939 | for as_dir in $PATH | |
11940 | do | |
11941 | IFS=$as_save_IFS | |
11942 | test -z "$as_dir" && as_dir=. | |
11943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11945 | ac_cv_prog_STRIP="strip" | |
11946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11947 | break 2 | |
11948 | fi | |
11949 | done | |
11950 | done | |
11951 | ||
10f2d63a VZ |
11952 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11953 | fi | |
11954 | fi | |
e6cc62c6 | 11955 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11956 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11957 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11958 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11959 | else |
e6cc62c6 VS |
11960 | echo "$as_me:$LINENO: result: no" >&5 |
11961 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11962 | fi |
11963 | ||
5c6fa7d2 | 11964 | |
e6cc62c6 VS |
11965 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11966 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11967 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11969 | else |
e6cc62c6 | 11970 | |
414eab6d | 11971 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11972 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11973 | wx_cv_prog_makeisgnu="yes" |
11974 | else | |
11975 | wx_cv_prog_makeisgnu="no" | |
11976 | fi | |
11977 | ||
11978 | fi | |
e6cc62c6 VS |
11979 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11980 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11981 | |
11982 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11983 | IF_GNU_MAKE="" | |
11984 | else | |
11985 | IF_GNU_MAKE="#" | |
11986 | fi | |
11987 | ||
8284b0c5 MB |
11988 | |
11989 | ||
414eab6d | 11990 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11991 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11992 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11993 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11995 | else |
e6cc62c6 | 11996 | |
10f2d63a VZ |
11997 | cat - << EOF > confMake |
11998 | check : file | |
11999 | cp \$? \$@ | |
12000 | cp \$? final_file | |
12001 | EOF | |
12002 | ||
12003 | if test ! -d sub ; then | |
12004 | mkdir sub | |
12005 | fi | |
12006 | echo dummy > sub/file | |
f6bcfd97 | 12007 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
12008 | RESULT=$? |
12009 | rm -f sub/file check final_file confMake | |
12010 | rmdir sub | |
12011 | if test "$RESULT" = 0; then | |
04e7a216 | 12012 | wx_cv_prog_makevpath="yes" |
10f2d63a | 12013 | else |
04e7a216 VZ |
12014 | wx_cv_prog_makevpath="no" |
12015 | fi | |
12016 | ||
12017 | fi | |
e6cc62c6 VS |
12018 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
12019 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
12020 | |
12021 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 12022 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
12023 | You need a make-utility that is able to use the variable |
12024 | VPATH correctly. | |
12025 | If your version of make does not support VPATH correctly, | |
12026 | please install GNU-make (possibly as gmake), and start | |
12027 | configure with the following command: | |
12028 | export MAKE=gmake; ./configure for sh-type shells | |
12029 | setenv MAKE gmake; ./configure for csh-type shells | |
12030 | Also please do remember to use gmake in this case every time | |
12031 | you are trying to compile. | |
e6cc62c6 VS |
12032 | " >&5 |
12033 | echo "$as_me: error: | |
12034 | You need a make-utility that is able to use the variable | |
12035 | VPATH correctly. | |
12036 | If your version of make does not support VPATH correctly, | |
12037 | please install GNU-make (possibly as gmake), and start | |
12038 | configure with the following command: | |
12039 | export MAKE=gmake; ./configure for sh-type shells | |
12040 | setenv MAKE gmake; ./configure for csh-type shells | |
12041 | Also please do remember to use gmake in this case every time | |
12042 | you are trying to compile. | |
12043 | " >&2;} | |
12044 | { (exit 1); exit 1; }; } | |
12045 | fi fi | |
e6cc62c6 VS |
12046 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
12047 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12048 | LN_S=$as_ln_s | |
12049 | if test "$LN_S" = "ln -s"; then | |
12050 | echo "$as_me:$LINENO: result: yes" >&5 | |
12051 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 12052 | else |
e6cc62c6 VS |
12053 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
12054 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 12055 | fi |
5c6fa7d2 | 12056 | |
247f5006 | 12057 | |
243f8ae5 | 12058 | |
2b5f62a0 VZ |
12059 | case "${host}" in |
12060 | *-pc-os2_emx | *-pc-os2-emx ) | |
243f8ae5 | 12061 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
12062 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
12063 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12064 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 12066 | else |
e6cc62c6 | 12067 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 12068 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 12069 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
12070 | /* confdefs.h. */ |
12071 | _ACEOF | |
12072 | cat confdefs.h >>conftest.$ac_ext | |
12073 | cat >>conftest.$ac_ext <<_ACEOF | |
12074 | /* end confdefs.h. */ | |
12075 | ||
2b5f62a0 | 12076 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
12077 | #ifdef __cplusplus |
12078 | extern "C" | |
12079 | #endif | |
2b5f62a0 | 12080 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
12081 | builtin and then its argument prototype would still apply. */ |
12082 | char drand48 (); | |
12083 | int | |
12084 | main () | |
12085 | { | |
12086 | drand48 (); | |
12087 | ; | |
12088 | return 0; | |
12089 | } | |
12090 | _ACEOF | |
12091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12093 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 12094 | ac_status=$? |
32ddf007 VS |
12095 | grep -v '^ *+' conftest.er1 >conftest.err |
12096 | rm -f conftest.er1 | |
12097 | cat conftest.err >&5 | |
e6cc62c6 VS |
12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12099 | (exit $ac_status); } && | |
e1293dcf | 12100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12102 | (eval $ac_try) 2>&5 | |
12103 | ac_status=$? | |
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12105 | (exit $ac_status); }; } && | |
12106 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
12107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12108 | (eval $ac_try) 2>&5 | |
12109 | ac_status=$? | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12111 | (exit $ac_status); }; }; then | |
12112 | ac_cv_lib_cExt_drand48=yes | |
12113 | else | |
12114 | echo "$as_me: failed program was:" >&5 | |
12115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12116 | ||
12117 | ac_cv_lib_cExt_drand48=no | |
12118 | fi | |
32ddf007 VS |
12119 | rm -f conftest.err conftest.$ac_objext \ |
12120 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
12121 | LIBS=$ac_check_lib_save_LIBS |
12122 | fi | |
12123 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12124 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12125 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 12126 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
12127 | fi |
12128 | ||
12129 | else | |
12130 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12131 | fi | |
32ddf007 VS |
12132 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
12133 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12134 | if test "${wx_cv_gccversion+set}" = set; then | |
73d617c9 MB |
12135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12136 | else | |
12137 | ||
12138 | cat >conftest.$ac_ext <<_ACEOF | |
73d617c9 MB |
12139 | /* confdefs.h. */ |
12140 | _ACEOF | |
12141 | cat confdefs.h >>conftest.$ac_ext | |
12142 | cat >>conftest.$ac_ext <<_ACEOF | |
12143 | /* end confdefs.h. */ | |
3527f29c | 12144 | |
73d617c9 MB |
12145 | int |
12146 | main () | |
12147 | { | |
12148 | ||
12149 | #if (__GNUC__ < 3) | |
12150 | #error old gcc | |
12151 | #endif | |
12152 | ||
12153 | ; | |
12154 | return 0; | |
12155 | } | |
12156 | _ACEOF | |
12157 | rm -f conftest.$ac_objext | |
12158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 VS |
12159 | (eval $ac_compile) 2>conftest.er1 |
12160 | ac_status=$? | |
12161 | grep -v '^ *+' conftest.er1 >conftest.err | |
12162 | rm -f conftest.er1 | |
12163 | cat conftest.err >&5 | |
12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12165 | (exit $ac_status); } && | |
e1293dcf | 12166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12168 | (eval $ac_try) 2>&5 | |
12169 | ac_status=$? | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); }; } && | |
12172 | { ac_try='test -s conftest.$ac_objext' | |
12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12174 | (eval $ac_try) 2>&5 | |
12175 | ac_status=$? | |
12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12177 | (exit $ac_status); }; }; then | |
12178 | ||
12179 | cat >conftest.$ac_ext <<_ACEOF | |
12180 | /* confdefs.h. */ | |
12181 | _ACEOF | |
12182 | cat confdefs.h >>conftest.$ac_ext | |
12183 | cat >>conftest.$ac_ext <<_ACEOF | |
12184 | /* end confdefs.h. */ | |
12185 | ||
12186 | int | |
12187 | main () | |
12188 | { | |
12189 | ||
12190 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12191 | #error intermediate gcc | |
12192 | #endif | |
12193 | ||
12194 | ; | |
12195 | return 0; | |
12196 | } | |
12197 | _ACEOF | |
12198 | rm -f conftest.$ac_objext | |
12199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12200 | (eval $ac_compile) 2>conftest.er1 | |
73d617c9 | 12201 | ac_status=$? |
32ddf007 VS |
12202 | grep -v '^ *+' conftest.er1 >conftest.err |
12203 | rm -f conftest.er1 | |
12204 | cat conftest.err >&5 | |
73d617c9 MB |
12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12206 | (exit $ac_status); } && | |
e1293dcf | 12207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12209 | (eval $ac_try) 2>&5 | |
12210 | ac_status=$? | |
12211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12212 | (exit $ac_status); }; } && | |
12213 | { ac_try='test -s conftest.$ac_objext' | |
73d617c9 MB |
12214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12215 | (eval $ac_try) 2>&5 | |
12216 | ac_status=$? | |
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12218 | (exit $ac_status); }; }; then | |
12219 | ||
32ddf007 | 12220 | wx_cv_gccversion=Innotek |
73d617c9 MB |
12221 | |
12222 | else | |
12223 | echo "$as_me: failed program was:" >&5 | |
12224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12225 | ||
12226 | ||
32ddf007 | 12227 | wx_cv_gccversion=3 |
73d617c9 MB |
12228 | |
12229 | ||
12230 | fi | |
32ddf007 VS |
12231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12232 | ||
12233 | else | |
12234 | echo "$as_me: failed program was:" >&5 | |
12235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12236 | ||
12237 | ||
12238 | wx_cv_gccversion=2 | |
12239 | ||
73d617c9 MB |
12240 | |
12241 | fi | |
32ddf007 VS |
12242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12243 | ||
12244 | fi | |
12245 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12246 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12247 | if test "$wx_cv_gccversion" = "2"; then | |
73d617c9 | 12248 | LIBS="$LIBS -lstdcpp" |
32ddf007 | 12249 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
73d617c9 | 12250 | else |
32ddf007 VS |
12251 | if test "$wx_cv_gccversion" = "3"; then |
12252 | LIBS="$LIBS -lstdcxx" | |
12253 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12254 | else | |
12255 | LIBS="$LIBS -lstdc++" | |
12256 | fi | |
73d617c9 | 12257 | fi |
243f8ae5 VS |
12258 | ;; |
12259 | *) | |
a0b9e27f | 12260 | |
1c2d1459 VZ |
12261 | |
12262 | ||
243f8ae5 | 12263 | ac_ext=cc |
1c2d1459 VZ |
12264 | ac_cpp='$CXXCPP $CPPFLAGS' |
12265 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12266 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12267 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12268 | ||
12269 | ||
12270 | ||
12271 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12272 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12273 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
01aa5863 VS |
12274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12275 | else | |
1c2d1459 | 12276 | |
243f8ae5 | 12277 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12278 | /* confdefs.h. */ |
12279 | _ACEOF | |
12280 | cat confdefs.h >>conftest.$ac_ext | |
12281 | cat >>conftest.$ac_ext <<_ACEOF | |
12282 | /* end confdefs.h. */ | |
12283 | ||
243f8ae5 | 12284 | #include <string.h> |
1c2d1459 VZ |
12285 | |
12286 | int | |
12287 | main () | |
12288 | { | |
12289 | ||
243f8ae5 | 12290 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12291 | |
12292 | ; | |
12293 | return 0; | |
12294 | } | |
12295 | _ACEOF | |
12296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12298 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12299 | ac_status=$? |
32ddf007 VS |
12300 | grep -v '^ *+' conftest.er1 >conftest.err |
12301 | rm -f conftest.er1 | |
12302 | cat conftest.err >&5 | |
1c2d1459 VZ |
12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12304 | (exit $ac_status); } && | |
e1293dcf | 12305 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12307 | (eval $ac_try) 2>&5 | |
12308 | ac_status=$? | |
12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12310 | (exit $ac_status); }; } && | |
12311 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12313 | (eval $ac_try) 2>&5 | |
12314 | ac_status=$? | |
12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12316 | (exit $ac_status); }; }; then | |
12317 | ac_cv_string_strcasecmp=yes | |
12318 | else | |
12319 | echo "$as_me: failed program was:" >&5 | |
12320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12321 | ||
12322 | ac_cv_string_strcasecmp=no | |
12323 | ||
12324 | fi | |
32ddf007 VS |
12325 | rm -f conftest.err conftest.$ac_objext \ |
12326 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 VZ |
12327 | |
12328 | fi | |
12329 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12330 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12331 | ||
243f8ae5 VS |
12332 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12333 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12334 | #define HAVE_STRCASECMP_IN_STRING_H 1 |
12335 | _ACEOF | |
12336 | ||
243f8ae5 VS |
12337 | else |
12338 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
1c2d1459 VZ |
12339 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 |
12340 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 | else | |
12343 | ||
243f8ae5 | 12344 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12345 | /* confdefs.h. */ |
12346 | _ACEOF | |
12347 | cat confdefs.h >>conftest.$ac_ext | |
12348 | cat >>conftest.$ac_ext <<_ACEOF | |
12349 | /* end confdefs.h. */ | |
12350 | ||
243f8ae5 | 12351 | #include <strings.h> |
1c2d1459 VZ |
12352 | |
12353 | int | |
12354 | main () | |
12355 | { | |
12356 | ||
243f8ae5 | 12357 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12358 | |
12359 | ; | |
12360 | return 0; | |
12361 | } | |
12362 | _ACEOF | |
12363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12365 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12366 | ac_status=$? |
32ddf007 VS |
12367 | grep -v '^ *+' conftest.er1 >conftest.err |
12368 | rm -f conftest.er1 | |
12369 | cat conftest.err >&5 | |
1c2d1459 VZ |
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12371 | (exit $ac_status); } && | |
e1293dcf | 12372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12374 | (eval $ac_try) 2>&5 | |
12375 | ac_status=$? | |
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12377 | (exit $ac_status); }; } && | |
12378 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12380 | (eval $ac_try) 2>&5 | |
12381 | ac_status=$? | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); }; }; then | |
12384 | ac_cv_strings_strcasecmp=yes | |
12385 | else | |
12386 | echo "$as_me: failed program was:" >&5 | |
12387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12388 | ||
12389 | ac_cv_strings_strcasecmp=no | |
12390 | ||
12391 | fi | |
32ddf007 VS |
12392 | rm -f conftest.err conftest.$ac_objext \ |
12393 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 | 12394 | |
01aa5863 | 12395 | fi |
1c2d1459 VZ |
12396 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 |
12397 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12398 | ||
243f8ae5 VS |
12399 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12400 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12401 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 |
12402 | _ACEOF | |
12403 | ||
243f8ae5 VS |
12404 | else |
12405 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
1c2d1459 VZ |
12406 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} |
12407 | { (exit 1); exit 1; }; } | |
243f8ae5 VS |
12408 | fi |
12409 | fi | |
1c2d1459 | 12410 | |
243f8ae5 | 12411 | ac_ext=c |
1c2d1459 VZ |
12412 | ac_cpp='$CPP $CPPFLAGS' |
12413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12416 | ||
243f8ae5 VS |
12417 | ;; |
12418 | esac | |
12419 | ||
1c2d1459 | 12420 | |
01aa5863 | 12421 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e6cc62c6 VS |
12422 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12423 | if test "${ac_cv_header_stdc+set}" = set; then | |
12424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12425 | else | |
12426 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12427 | /* confdefs.h. */ |
12428 | _ACEOF | |
12429 | cat confdefs.h >>conftest.$ac_ext | |
12430 | cat >>conftest.$ac_ext <<_ACEOF | |
12431 | /* end confdefs.h. */ | |
12432 | #include <stdlib.h> | |
12433 | #include <stdarg.h> | |
12434 | #include <string.h> | |
12435 | #include <float.h> | |
247f5006 | 12436 | |
e6cc62c6 VS |
12437 | int |
12438 | main () | |
12439 | { | |
90dd450c | 12440 | |
e6cc62c6 VS |
12441 | ; |
12442 | return 0; | |
12443 | } | |
12444 | _ACEOF | |
12445 | rm -f conftest.$ac_objext | |
12446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12447 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12448 | ac_status=$? |
32ddf007 VS |
12449 | grep -v '^ *+' conftest.er1 >conftest.err |
12450 | rm -f conftest.er1 | |
12451 | cat conftest.err >&5 | |
e6cc62c6 VS |
12452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12453 | (exit $ac_status); } && | |
e1293dcf | 12454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12456 | (eval $ac_try) 2>&5 | |
12457 | ac_status=$? | |
12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12459 | (exit $ac_status); }; } && | |
12460 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12462 | (eval $ac_try) 2>&5 | |
12463 | ac_status=$? | |
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12465 | (exit $ac_status); }; }; then | |
12466 | ac_cv_header_stdc=yes | |
8284b0c5 | 12467 | else |
e6cc62c6 VS |
12468 | echo "$as_me: failed program was:" >&5 |
12469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12470 | ||
12471 | ac_cv_header_stdc=no | |
21d1c967 | 12472 | fi |
32ddf007 | 12473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12474 | |
e6cc62c6 VS |
12475 | if test $ac_cv_header_stdc = yes; then |
12476 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12477 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12478 | /* confdefs.h. */ |
12479 | _ACEOF | |
12480 | cat confdefs.h >>conftest.$ac_ext | |
12481 | cat >>conftest.$ac_ext <<_ACEOF | |
12482 | /* end confdefs.h. */ | |
12483 | #include <string.h> | |
12484 | ||
12485 | _ACEOF | |
12486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12487 | $EGREP "memchr" >/dev/null 2>&1; then | |
12488 | : | |
12489 | else | |
12490 | ac_cv_header_stdc=no | |
3a922bb4 | 12491 | fi |
a0b9e27f | 12492 | rm -f conftest* |
e6cc62c6 | 12493 | |
90dd450c | 12494 | fi |
e6cc62c6 VS |
12495 | |
12496 | if test $ac_cv_header_stdc = yes; then | |
12497 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12498 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12499 | /* confdefs.h. */ |
12500 | _ACEOF | |
12501 | cat confdefs.h >>conftest.$ac_ext | |
12502 | cat >>conftest.$ac_ext <<_ACEOF | |
12503 | /* end confdefs.h. */ | |
12504 | #include <stdlib.h> | |
12505 | ||
12506 | _ACEOF | |
12507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12508 | $EGREP "free" >/dev/null 2>&1; then | |
12509 | : | |
a0b9e27f | 12510 | else |
e6cc62c6 | 12511 | ac_cv_header_stdc=no |
21d1c967 | 12512 | fi |
e6cc62c6 | 12513 | rm -f conftest* |
247f5006 VZ |
12514 | |
12515 | fi | |
e6cc62c6 VS |
12516 | |
12517 | if test $ac_cv_header_stdc = yes; then | |
12518 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12519 | if test "$cross_compiling" = yes; then | |
12520 | : | |
12521 | else | |
12522 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12523 | /* confdefs.h. */ |
12524 | _ACEOF | |
12525 | cat confdefs.h >>conftest.$ac_ext | |
12526 | cat >>conftest.$ac_ext <<_ACEOF | |
12527 | /* end confdefs.h. */ | |
12528 | #include <ctype.h> | |
12529 | #if ((' ' & 0x0FF) == 0x020) | |
12530 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12531 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12532 | #else | |
12533 | # define ISLOWER(c) \ | |
32ddf007 VS |
12534 | (('a' <= (c) && (c) <= 'i') \ |
12535 | || ('j' <= (c) && (c) <= 'r') \ | |
12536 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12537 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12538 | #endif | |
12539 | ||
12540 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12541 | int | |
12542 | main () | |
12543 | { | |
12544 | int i; | |
12545 | for (i = 0; i < 256; i++) | |
12546 | if (XOR (islower (i), ISLOWER (i)) | |
32ddf007 | 12547 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12548 | exit(2); |
12549 | exit (0); | |
12550 | } | |
12551 | _ACEOF | |
12552 | rm -f conftest$ac_exeext | |
12553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12554 | (eval $ac_link) 2>&5 | |
12555 | ac_status=$? | |
12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12559 | (eval $ac_try) 2>&5 | |
12560 | ac_status=$? | |
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12562 | (exit $ac_status); }; }; then | |
12563 | : | |
a0b9e27f | 12564 | else |
e6cc62c6 VS |
12565 | echo "$as_me: program exited with status $ac_status" >&5 |
12566 | echo "$as_me: failed program was:" >&5 | |
12567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12568 | ||
12569 | ( exit $ac_status ) | |
12570 | ac_cv_header_stdc=no | |
12571 | fi | |
32ddf007 | 12572 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12573 | fi |
12574 | fi | |
12575 | fi | |
12576 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12577 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12578 | if test $ac_cv_header_stdc = yes; then | |
12579 | ||
12580 | cat >>confdefs.h <<\_ACEOF | |
12581 | #define STDC_HEADERS 1 | |
12582 | _ACEOF | |
12583 | ||
a0b9e27f | 12584 | fi |
e6cc62c6 VS |
12585 | |
12586 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12587 | ||
12588 | ||
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | ||
12594 | ||
12595 | ||
12596 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
32ddf007 | 12597 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12598 | do |
12599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12604 | else | |
12605 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12606 | /* confdefs.h. */ |
12607 | _ACEOF | |
12608 | cat confdefs.h >>conftest.$ac_ext | |
12609 | cat >>conftest.$ac_ext <<_ACEOF | |
12610 | /* end confdefs.h. */ | |
12611 | $ac_includes_default | |
12612 | ||
12613 | #include <$ac_header> | |
12614 | _ACEOF | |
12615 | rm -f conftest.$ac_objext | |
12616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12617 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12618 | ac_status=$? |
32ddf007 VS |
12619 | grep -v '^ *+' conftest.er1 >conftest.err |
12620 | rm -f conftest.er1 | |
12621 | cat conftest.err >&5 | |
e6cc62c6 VS |
12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12623 | (exit $ac_status); } && | |
e1293dcf | 12624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12626 | (eval $ac_try) 2>&5 | |
12627 | ac_status=$? | |
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12629 | (exit $ac_status); }; } && | |
12630 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12632 | (eval $ac_try) 2>&5 | |
12633 | ac_status=$? | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12635 | (exit $ac_status); }; }; then | |
12636 | eval "$as_ac_Header=yes" | |
12637 | else | |
12638 | echo "$as_me: failed program was:" >&5 | |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
12641 | eval "$as_ac_Header=no" | |
12642 | fi | |
32ddf007 | 12643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12644 | fi |
12645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12647 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12648 | cat >>confdefs.h <<_ACEOF | |
12649 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12650 | _ACEOF | |
12651 | ||
12652 | fi | |
12653 | ||
a0b9e27f | 12654 | done |
90dd450c | 12655 | |
e6cc62c6 VS |
12656 | |
12657 | ||
e6cc62c6 VS |
12658 | for ac_header in stdlib.h |
12659 | do | |
12660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12666 | fi | |
12667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12669 | else | |
12670 | # Is the header compilable? | |
12671 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12673 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12674 | /* confdefs.h. */ |
12675 | _ACEOF | |
12676 | cat confdefs.h >>conftest.$ac_ext | |
12677 | cat >>conftest.$ac_ext <<_ACEOF | |
12678 | /* end confdefs.h. */ | |
12679 | $ac_includes_default | |
12680 | #include <$ac_header> | |
12681 | _ACEOF | |
12682 | rm -f conftest.$ac_objext | |
12683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12684 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12685 | ac_status=$? |
32ddf007 VS |
12686 | grep -v '^ *+' conftest.er1 >conftest.err |
12687 | rm -f conftest.er1 | |
12688 | cat conftest.err >&5 | |
e6cc62c6 VS |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12690 | (exit $ac_status); } && | |
e1293dcf | 12691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12693 | (eval $ac_try) 2>&5 | |
12694 | ac_status=$? | |
12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12696 | (exit $ac_status); }; } && | |
12697 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12699 | (eval $ac_try) 2>&5 | |
12700 | ac_status=$? | |
12701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12702 | (exit $ac_status); }; }; then | |
12703 | ac_header_compiler=yes | |
12704 | else | |
12705 | echo "$as_me: failed program was:" >&5 | |
12706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12707 | ||
12708 | ac_header_compiler=no | |
12709 | fi | |
32ddf007 | 12710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12713 | ||
12714 | # Is the header present? | |
12715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12717 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12718 | /* confdefs.h. */ |
12719 | _ACEOF | |
12720 | cat confdefs.h >>conftest.$ac_ext | |
12721 | cat >>conftest.$ac_ext <<_ACEOF | |
12722 | /* end confdefs.h. */ | |
12723 | #include <$ac_header> | |
12724 | _ACEOF | |
12725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12727 | ac_status=$? | |
12728 | grep -v '^ *+' conftest.er1 >conftest.err | |
12729 | rm -f conftest.er1 | |
12730 | cat conftest.err >&5 | |
12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12732 | (exit $ac_status); } >/dev/null; then | |
12733 | if test -s conftest.err; then | |
12734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12736 | else |
12737 | ac_cpp_err= | |
12738 | fi | |
12739 | else | |
12740 | ac_cpp_err=yes | |
12741 | fi | |
12742 | if test -z "$ac_cpp_err"; then | |
12743 | ac_header_preproc=yes | |
12744 | else | |
12745 | echo "$as_me: failed program was:" >&5 | |
12746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12747 | ||
12748 | ac_header_preproc=no | |
12749 | fi | |
12750 | rm -f conftest.err conftest.$ac_ext | |
12751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12753 | ||
12754 | # So? What about this header? | |
32ddf007 VS |
12755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12756 | yes:no: ) | |
e6cc62c6 VS |
12757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12761 | ac_header_preproc=yes | |
e6cc62c6 | 12762 | ;; |
32ddf007 | 12763 | no:yes:* ) |
e6cc62c6 VS |
12764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12776 | ( |
12777 | cat <<\_ASBOX | |
32ddf007 VS |
12778 | ## ----------------------------------------- ## |
12779 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12780 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12781 | _ASBOX |
12782 | ) | | |
12783 | sed "s/^/$as_me: WARNING: /" >&2 | |
12784 | ;; | |
12785 | esac | |
12786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12790 | else |
32ddf007 | 12791 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12792 | fi |
12793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12795 | ||
21d1c967 | 12796 | fi |
e6cc62c6 VS |
12797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12798 | cat >>confdefs.h <<_ACEOF | |
12799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12800 | _ACEOF | |
12801 | ||
12802 | fi | |
12803 | ||
21d1c967 | 12804 | done |
4f14bcd8 | 12805 | |
5c6fa7d2 | 12806 | |
e6cc62c6 | 12807 | for ac_header in malloc.h |
21d1c967 | 12808 | do |
e6cc62c6 VS |
12809 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12811 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12815 | fi | |
12816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12817 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12818 | else | |
12819 | # Is the header compilable? | |
12820 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12821 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12822 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12823 | /* confdefs.h. */ |
12824 | _ACEOF | |
12825 | cat confdefs.h >>conftest.$ac_ext | |
12826 | cat >>conftest.$ac_ext <<_ACEOF | |
12827 | /* end confdefs.h. */ | |
12828 | $ac_includes_default | |
12829 | #include <$ac_header> | |
12830 | _ACEOF | |
12831 | rm -f conftest.$ac_objext | |
12832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12833 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12834 | ac_status=$? |
32ddf007 VS |
12835 | grep -v '^ *+' conftest.er1 >conftest.err |
12836 | rm -f conftest.er1 | |
12837 | cat conftest.err >&5 | |
e6cc62c6 VS |
12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12839 | (exit $ac_status); } && | |
e1293dcf | 12840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12842 | (eval $ac_try) 2>&5 | |
12843 | ac_status=$? | |
12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12845 | (exit $ac_status); }; } && | |
12846 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12848 | (eval $ac_try) 2>&5 | |
12849 | ac_status=$? | |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); }; }; then | |
12852 | ac_header_compiler=yes | |
12853 | else | |
12854 | echo "$as_me: failed program was:" >&5 | |
12855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12856 | ||
12857 | ac_header_compiler=no | |
12858 | fi | |
32ddf007 | 12859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12862 | ||
12863 | # Is the header present? | |
12864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12866 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12867 | /* confdefs.h. */ |
12868 | _ACEOF | |
12869 | cat confdefs.h >>conftest.$ac_ext | |
12870 | cat >>conftest.$ac_ext <<_ACEOF | |
12871 | /* end confdefs.h. */ | |
12872 | #include <$ac_header> | |
12873 | _ACEOF | |
12874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12876 | ac_status=$? | |
12877 | grep -v '^ *+' conftest.er1 >conftest.err | |
12878 | rm -f conftest.er1 | |
12879 | cat conftest.err >&5 | |
12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12881 | (exit $ac_status); } >/dev/null; then | |
12882 | if test -s conftest.err; then | |
12883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12885 | else |
12886 | ac_cpp_err= | |
12887 | fi | |
12888 | else | |
12889 | ac_cpp_err=yes | |
12890 | fi | |
12891 | if test -z "$ac_cpp_err"; then | |
12892 | ac_header_preproc=yes | |
12893 | else | |
12894 | echo "$as_me: failed program was:" >&5 | |
12895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12896 | ||
12897 | ac_header_preproc=no | |
12898 | fi | |
12899 | rm -f conftest.err conftest.$ac_ext | |
12900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12902 | ||
12903 | # So? What about this header? | |
32ddf007 VS |
12904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12905 | yes:no: ) | |
e6cc62c6 VS |
12906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12910 | ac_header_preproc=yes | |
e6cc62c6 | 12911 | ;; |
32ddf007 | 12912 | no:yes:* ) |
e6cc62c6 VS |
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12925 | ( |
12926 | cat <<\_ASBOX | |
32ddf007 VS |
12927 | ## ----------------------------------------- ## |
12928 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12929 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12930 | _ASBOX |
12931 | ) | | |
12932 | sed "s/^/$as_me: WARNING: /" >&2 | |
12933 | ;; | |
12934 | esac | |
12935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12939 | else | |
32ddf007 | 12940 | eval "$as_ac_Header=\$ac_header_preproc" |
d4158b5d | 12941 | fi |
e6cc62c6 VS |
12942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12944 | ||
21d1c967 | 12945 | fi |
e6cc62c6 VS |
12946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12947 | cat >>confdefs.h <<_ACEOF | |
12948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12949 | _ACEOF | |
12950 | ||
12951 | fi | |
12952 | ||
12953 | done | |
12954 | ||
12955 | ||
12956 | for ac_header in unistd.h | |
12957 | do | |
12958 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12960 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12964 | fi | |
12965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12967 | else | |
12968 | # Is the header compilable? | |
12969 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12970 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12971 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12972 | /* confdefs.h. */ |
12973 | _ACEOF | |
12974 | cat confdefs.h >>conftest.$ac_ext | |
12975 | cat >>conftest.$ac_ext <<_ACEOF | |
12976 | /* end confdefs.h. */ | |
12977 | $ac_includes_default | |
12978 | #include <$ac_header> | |
12979 | _ACEOF | |
12980 | rm -f conftest.$ac_objext | |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12982 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12983 | ac_status=$? |
32ddf007 VS |
12984 | grep -v '^ *+' conftest.er1 >conftest.err |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
e6cc62c6 VS |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12988 | (exit $ac_status); } && | |
e1293dcf | 12989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; } && | |
12995 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12997 | (eval $ac_try) 2>&5 | |
12998 | ac_status=$? | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); }; }; then | |
13001 | ac_header_compiler=yes | |
13002 | else | |
13003 | echo "$as_me: failed program was:" >&5 | |
13004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13005 | ||
13006 | ac_header_compiler=no | |
13007 | fi | |
32ddf007 | 13008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13011 | ||
13012 | # Is the header present? | |
13013 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13014 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13015 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13016 | /* confdefs.h. */ |
13017 | _ACEOF | |
13018 | cat confdefs.h >>conftest.$ac_ext | |
13019 | cat >>conftest.$ac_ext <<_ACEOF | |
13020 | /* end confdefs.h. */ | |
13021 | #include <$ac_header> | |
13022 | _ACEOF | |
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13025 | ac_status=$? | |
13026 | grep -v '^ *+' conftest.er1 >conftest.err | |
13027 | rm -f conftest.er1 | |
13028 | cat conftest.err >&5 | |
13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13030 | (exit $ac_status); } >/dev/null; then | |
13031 | if test -s conftest.err; then | |
13032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13034 | else |
13035 | ac_cpp_err= | |
13036 | fi | |
a0b9e27f | 13037 | else |
e6cc62c6 VS |
13038 | ac_cpp_err=yes |
13039 | fi | |
13040 | if test -z "$ac_cpp_err"; then | |
13041 | ac_header_preproc=yes | |
13042 | else | |
13043 | echo "$as_me: failed program was:" >&5 | |
13044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13045 | ||
13046 | ac_header_preproc=no | |
13047 | fi | |
13048 | rm -f conftest.err conftest.$ac_ext | |
13049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13051 | ||
13052 | # So? What about this header? | |
32ddf007 VS |
13053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13054 | yes:no: ) | |
e6cc62c6 VS |
13055 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13056 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13058 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13059 | ac_header_preproc=yes | |
e6cc62c6 | 13060 | ;; |
32ddf007 | 13061 | no:yes:* ) |
e6cc62c6 VS |
13062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13064 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13065 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13066 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13067 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13068 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13069 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13070 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13071 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13072 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13073 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13074 | ( |
13075 | cat <<\_ASBOX | |
32ddf007 VS |
13076 | ## ----------------------------------------- ## |
13077 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13078 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13079 | _ASBOX |
13080 | ) | | |
13081 | sed "s/^/$as_me: WARNING: /" >&2 | |
13082 | ;; | |
13083 | esac | |
13084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13088 | else | |
32ddf007 | 13089 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13090 | fi |
13091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13092 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13093 | ||
13094 | fi | |
13095 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13096 | cat >>confdefs.h <<_ACEOF | |
13097 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13098 | _ACEOF | |
13099 | ||
d4158b5d | 13100 | fi |
e6cc62c6 | 13101 | |
21d1c967 | 13102 | done |
f6bcfd97 | 13103 | |
e6cc62c6 VS |
13104 | |
13105 | for ac_header in wchar.h | |
13106 | do | |
13107 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13109 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13113 | fi | |
13114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13116 | else | |
13117 | # Is the header compilable? | |
13118 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13119 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13120 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13121 | /* confdefs.h. */ |
13122 | _ACEOF | |
13123 | cat confdefs.h >>conftest.$ac_ext | |
13124 | cat >>conftest.$ac_ext <<_ACEOF | |
13125 | /* end confdefs.h. */ | |
13126 | $ac_includes_default | |
13127 | #include <$ac_header> | |
13128 | _ACEOF | |
13129 | rm -f conftest.$ac_objext | |
13130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13131 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13132 | ac_status=$? |
32ddf007 VS |
13133 | grep -v '^ *+' conftest.er1 >conftest.err |
13134 | rm -f conftest.er1 | |
13135 | cat conftest.err >&5 | |
e6cc62c6 VS |
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13137 | (exit $ac_status); } && | |
e1293dcf | 13138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13140 | (eval $ac_try) 2>&5 | |
13141 | ac_status=$? | |
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); }; } && | |
13144 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13146 | (eval $ac_try) 2>&5 | |
13147 | ac_status=$? | |
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13149 | (exit $ac_status); }; }; then | |
13150 | ac_header_compiler=yes | |
13151 | else | |
13152 | echo "$as_me: failed program was:" >&5 | |
13153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13154 | ||
13155 | ac_header_compiler=no | |
13156 | fi | |
32ddf007 | 13157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13158 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13159 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13160 | ||
13161 | # Is the header present? | |
13162 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13163 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13164 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13165 | /* confdefs.h. */ |
13166 | _ACEOF | |
13167 | cat confdefs.h >>conftest.$ac_ext | |
13168 | cat >>conftest.$ac_ext <<_ACEOF | |
13169 | /* end confdefs.h. */ | |
13170 | #include <$ac_header> | |
13171 | _ACEOF | |
13172 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13173 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13174 | ac_status=$? | |
13175 | grep -v '^ *+' conftest.er1 >conftest.err | |
13176 | rm -f conftest.er1 | |
13177 | cat conftest.err >&5 | |
13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13179 | (exit $ac_status); } >/dev/null; then | |
13180 | if test -s conftest.err; then | |
13181 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13182 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13183 | else |
13184 | ac_cpp_err= | |
13185 | fi | |
13186 | else | |
13187 | ac_cpp_err=yes | |
13188 | fi | |
13189 | if test -z "$ac_cpp_err"; then | |
13190 | ac_header_preproc=yes | |
13191 | else | |
13192 | echo "$as_me: failed program was:" >&5 | |
13193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13194 | ||
13195 | ac_header_preproc=no | |
13196 | fi | |
13197 | rm -f conftest.err conftest.$ac_ext | |
13198 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13199 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13200 | ||
13201 | # So? What about this header? | |
32ddf007 VS |
13202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13203 | yes:no: ) | |
e6cc62c6 VS |
13204 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13205 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13207 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13208 | ac_header_preproc=yes | |
e6cc62c6 | 13209 | ;; |
32ddf007 | 13210 | no:yes:* ) |
e6cc62c6 VS |
13211 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13212 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13213 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13214 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13215 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13216 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13217 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13218 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13220 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13221 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13222 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13223 | ( |
13224 | cat <<\_ASBOX | |
32ddf007 VS |
13225 | ## ----------------------------------------- ## |
13226 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13227 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13228 | _ASBOX |
13229 | ) | | |
13230 | sed "s/^/$as_me: WARNING: /" >&2 | |
13231 | ;; | |
13232 | esac | |
13233 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13237 | else | |
32ddf007 | 13238 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13239 | fi |
13240 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13241 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13242 | ||
90dd450c | 13243 | fi |
e6cc62c6 VS |
13244 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13245 | cat >>confdefs.h <<_ACEOF | |
13246 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13247 | _ACEOF | |
13248 | ||
13249 | fi | |
13250 | ||
13251 | done | |
90dd450c | 13252 | |
e6cc62c6 VS |
13253 | |
13254 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13255 | ||
13256 | for ac_header in wcstr.h | |
21d1c967 | 13257 | do |
e6cc62c6 VS |
13258 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13260 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13264 | fi | |
13265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13266 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13267 | else | |
13268 | # Is the header compilable? | |
13269 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13270 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13271 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13272 | /* confdefs.h. */ |
13273 | _ACEOF | |
13274 | cat confdefs.h >>conftest.$ac_ext | |
13275 | cat >>conftest.$ac_ext <<_ACEOF | |
13276 | /* end confdefs.h. */ | |
13277 | $ac_includes_default | |
13278 | #include <$ac_header> | |
13279 | _ACEOF | |
13280 | rm -f conftest.$ac_objext | |
13281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13282 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13283 | ac_status=$? |
32ddf007 VS |
13284 | grep -v '^ *+' conftest.er1 >conftest.err |
13285 | rm -f conftest.er1 | |
13286 | cat conftest.err >&5 | |
e6cc62c6 VS |
13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13288 | (exit $ac_status); } && | |
e1293dcf | 13289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13291 | (eval $ac_try) 2>&5 | |
13292 | ac_status=$? | |
13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13294 | (exit $ac_status); }; } && | |
13295 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13297 | (eval $ac_try) 2>&5 | |
13298 | ac_status=$? | |
13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13300 | (exit $ac_status); }; }; then | |
13301 | ac_header_compiler=yes | |
13302 | else | |
13303 | echo "$as_me: failed program was:" >&5 | |
13304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13305 | ||
13306 | ac_header_compiler=no | |
13307 | fi | |
32ddf007 | 13308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13310 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13311 | ||
13312 | # Is the header present? | |
13313 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13314 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13315 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13316 | /* confdefs.h. */ |
13317 | _ACEOF | |
13318 | cat confdefs.h >>conftest.$ac_ext | |
13319 | cat >>conftest.$ac_ext <<_ACEOF | |
13320 | /* end confdefs.h. */ | |
13321 | #include <$ac_header> | |
13322 | _ACEOF | |
13323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13325 | ac_status=$? | |
13326 | grep -v '^ *+' conftest.er1 >conftest.err | |
13327 | rm -f conftest.er1 | |
13328 | cat conftest.err >&5 | |
13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13330 | (exit $ac_status); } >/dev/null; then | |
13331 | if test -s conftest.err; then | |
13332 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13334 | else |
13335 | ac_cpp_err= | |
13336 | fi | |
13337 | else | |
13338 | ac_cpp_err=yes | |
13339 | fi | |
13340 | if test -z "$ac_cpp_err"; then | |
13341 | ac_header_preproc=yes | |
13342 | else | |
13343 | echo "$as_me: failed program was:" >&5 | |
13344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13345 | ||
13346 | ac_header_preproc=no | |
13347 | fi | |
13348 | rm -f conftest.err conftest.$ac_ext | |
13349 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13350 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13351 | ||
13352 | # So? What about this header? | |
32ddf007 VS |
13353 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13354 | yes:no: ) | |
e6cc62c6 VS |
13355 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13356 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13358 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13359 | ac_header_preproc=yes | |
e6cc62c6 | 13360 | ;; |
32ddf007 | 13361 | no:yes:* ) |
e6cc62c6 VS |
13362 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13363 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13364 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13365 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13366 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13367 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13368 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13369 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13370 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13371 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13372 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13373 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13374 | ( |
13375 | cat <<\_ASBOX | |
32ddf007 VS |
13376 | ## ----------------------------------------- ## |
13377 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13378 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13379 | _ASBOX |
13380 | ) | | |
13381 | sed "s/^/$as_me: WARNING: /" >&2 | |
13382 | ;; | |
13383 | esac | |
13384 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13388 | else | |
32ddf007 | 13389 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13390 | fi |
e6cc62c6 VS |
13391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13393 | ||
4f14bcd8 | 13394 | fi |
e6cc62c6 VS |
13395 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13396 | cat >>confdefs.h <<_ACEOF | |
13397 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13398 | _ACEOF | |
13399 | ||
13400 | fi | |
13401 | ||
13402 | done | |
13403 | ||
13404 | fi | |
13405 | ||
13406 | ||
13407 | for ac_header in fnmatch.h | |
13408 | do | |
13409 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13415 | fi | |
13416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13418 | else | |
13419 | # Is the header compilable? | |
13420 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13422 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13423 | /* confdefs.h. */ |
13424 | _ACEOF | |
13425 | cat confdefs.h >>conftest.$ac_ext | |
13426 | cat >>conftest.$ac_ext <<_ACEOF | |
13427 | /* end confdefs.h. */ | |
13428 | $ac_includes_default | |
13429 | #include <$ac_header> | |
13430 | _ACEOF | |
13431 | rm -f conftest.$ac_objext | |
13432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13433 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13434 | ac_status=$? |
32ddf007 VS |
13435 | grep -v '^ *+' conftest.er1 >conftest.err |
13436 | rm -f conftest.er1 | |
13437 | cat conftest.err >&5 | |
e6cc62c6 VS |
13438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13439 | (exit $ac_status); } && | |
e1293dcf | 13440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13442 | (eval $ac_try) 2>&5 | |
13443 | ac_status=$? | |
13444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13445 | (exit $ac_status); }; } && | |
13446 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13448 | (eval $ac_try) 2>&5 | |
13449 | ac_status=$? | |
13450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13451 | (exit $ac_status); }; }; then | |
13452 | ac_header_compiler=yes | |
13453 | else | |
13454 | echo "$as_me: failed program was:" >&5 | |
13455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13456 | ||
13457 | ac_header_compiler=no | |
13458 | fi | |
32ddf007 | 13459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13461 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13462 | ||
13463 | # Is the header present? | |
13464 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13466 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13467 | /* confdefs.h. */ |
13468 | _ACEOF | |
13469 | cat confdefs.h >>conftest.$ac_ext | |
13470 | cat >>conftest.$ac_ext <<_ACEOF | |
13471 | /* end confdefs.h. */ | |
13472 | #include <$ac_header> | |
13473 | _ACEOF | |
13474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13476 | ac_status=$? | |
13477 | grep -v '^ *+' conftest.er1 >conftest.err | |
13478 | rm -f conftest.er1 | |
13479 | cat conftest.err >&5 | |
13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13481 | (exit $ac_status); } >/dev/null; then | |
13482 | if test -s conftest.err; then | |
13483 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13484 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13485 | else |
13486 | ac_cpp_err= | |
13487 | fi | |
13488 | else | |
13489 | ac_cpp_err=yes | |
13490 | fi | |
13491 | if test -z "$ac_cpp_err"; then | |
13492 | ac_header_preproc=yes | |
13493 | else | |
13494 | echo "$as_me: failed program was:" >&5 | |
13495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13496 | ||
13497 | ac_header_preproc=no | |
13498 | fi | |
13499 | rm -f conftest.err conftest.$ac_ext | |
13500 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13501 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13502 | ||
13503 | # So? What about this header? | |
32ddf007 VS |
13504 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13505 | yes:no: ) | |
e6cc62c6 VS |
13506 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13507 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13509 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13510 | ac_header_preproc=yes | |
e6cc62c6 | 13511 | ;; |
32ddf007 | 13512 | no:yes:* ) |
e6cc62c6 VS |
13513 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13514 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13515 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13516 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13517 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13518 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13519 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13520 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13522 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13523 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13524 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13525 | ( |
13526 | cat <<\_ASBOX | |
32ddf007 VS |
13527 | ## ----------------------------------------- ## |
13528 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13529 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13530 | _ASBOX |
13531 | ) | | |
13532 | sed "s/^/$as_me: WARNING: /" >&2 | |
13533 | ;; | |
13534 | esac | |
13535 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13539 | else |
32ddf007 | 13540 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13541 | fi |
13542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13544 | ||
21d1c967 | 13545 | fi |
e6cc62c6 VS |
13546 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13547 | cat >>confdefs.h <<_ACEOF | |
13548 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13549 | _ACEOF | |
13550 | ||
13551 | fi | |
13552 | ||
21d1c967 | 13553 | done |
90dd450c | 13554 | |
5c6fa7d2 | 13555 | |
a0b9e27f | 13556 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13557 | |
13558 | for ac_func in fnmatch | |
21d1c967 | 13559 | do |
e6cc62c6 VS |
13560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13565 | else | |
13566 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13567 | /* confdefs.h. */ |
13568 | _ACEOF | |
13569 | cat confdefs.h >>conftest.$ac_ext | |
13570 | cat >>conftest.$ac_ext <<_ACEOF | |
13571 | /* end confdefs.h. */ | |
32ddf007 VS |
13572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13574 | #define $ac_func innocuous_$ac_func | |
13575 | ||
a0b9e27f | 13576 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13577 | which can conflict with char $ac_func (); below. |
13578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13579 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 13580 | |
e6cc62c6 VS |
13581 | #ifdef __STDC__ |
13582 | # include <limits.h> | |
13583 | #else | |
13584 | # include <assert.h> | |
13585 | #endif | |
32ddf007 VS |
13586 | |
13587 | #undef $ac_func | |
13588 | ||
a0b9e27f | 13589 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13590 | #ifdef __cplusplus |
13591 | extern "C" | |
13592 | { | |
13593 | #endif | |
a0b9e27f | 13594 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13595 | builtin and then its argument prototype would still apply. */ |
13596 | char $ac_func (); | |
a0b9e27f MB |
13597 | /* The GNU C library defines this for functions which it implements |
13598 | to always fail with ENOSYS. Some functions are actually named | |
13599 | something starting with __ and the normal name is an alias. */ | |
13600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13601 | choke me | |
13602 | #else | |
e6cc62c6 VS |
13603 | char (*f) () = $ac_func; |
13604 | #endif | |
13605 | #ifdef __cplusplus | |
13606 | } | |
a0b9e27f MB |
13607 | #endif |
13608 | ||
e6cc62c6 VS |
13609 | int |
13610 | main () | |
13611 | { | |
13612 | return f != $ac_func; | |
13613 | ; | |
13614 | return 0; | |
13615 | } | |
13616 | _ACEOF | |
13617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 13619 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 13620 | ac_status=$? |
32ddf007 VS |
13621 | grep -v '^ *+' conftest.er1 >conftest.err |
13622 | rm -f conftest.er1 | |
13623 | cat conftest.err >&5 | |
e6cc62c6 VS |
13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13625 | (exit $ac_status); } && | |
e1293dcf | 13626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13628 | (eval $ac_try) 2>&5 | |
13629 | ac_status=$? | |
13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13631 | (exit $ac_status); }; } && | |
13632 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
13633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13634 | (eval $ac_try) 2>&5 | |
13635 | ac_status=$? | |
13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13637 | (exit $ac_status); }; }; then | |
13638 | eval "$as_ac_var=yes" | |
13639 | else | |
13640 | echo "$as_me: failed program was:" >&5 | |
13641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13642 | ||
13643 | eval "$as_ac_var=no" | |
13644 | fi | |
32ddf007 VS |
13645 | rm -f conftest.err conftest.$ac_objext \ |
13646 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
13647 | fi |
13648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13651 | cat >>confdefs.h <<_ACEOF | |
13652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13653 | _ACEOF | |
32832908 | 13654 | |
21d1c967 GD |
13655 | fi |
13656 | done | |
90dd450c | 13657 | |
a0b9e27f | 13658 | fi |
90dd450c | 13659 | |
e6cc62c6 VS |
13660 | |
13661 | for ac_header in langinfo.h | |
21d1c967 | 13662 | do |
e6cc62c6 VS |
13663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13669 | fi | |
13670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13672 | else | |
13673 | # Is the header compilable? | |
13674 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13677 | /* confdefs.h. */ |
13678 | _ACEOF | |
13679 | cat confdefs.h >>conftest.$ac_ext | |
13680 | cat >>conftest.$ac_ext <<_ACEOF | |
13681 | /* end confdefs.h. */ | |
13682 | $ac_includes_default | |
13683 | #include <$ac_header> | |
13684 | _ACEOF | |
13685 | rm -f conftest.$ac_objext | |
13686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13687 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13688 | ac_status=$? |
32ddf007 VS |
13689 | grep -v '^ *+' conftest.er1 >conftest.err |
13690 | rm -f conftest.er1 | |
13691 | cat conftest.err >&5 | |
e6cc62c6 VS |
13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13693 | (exit $ac_status); } && | |
e1293dcf | 13694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13696 | (eval $ac_try) 2>&5 | |
13697 | ac_status=$? | |
13698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13699 | (exit $ac_status); }; } && | |
13700 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13702 | (eval $ac_try) 2>&5 | |
13703 | ac_status=$? | |
13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13705 | (exit $ac_status); }; }; then | |
13706 | ac_header_compiler=yes | |
13707 | else | |
13708 | echo "$as_me: failed program was:" >&5 | |
13709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13710 | ||
13711 | ac_header_compiler=no | |
13712 | fi | |
32ddf007 | 13713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13714 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13715 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13716 | ||
13717 | # Is the header present? | |
13718 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13719 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13720 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13721 | /* confdefs.h. */ |
13722 | _ACEOF | |
13723 | cat confdefs.h >>conftest.$ac_ext | |
13724 | cat >>conftest.$ac_ext <<_ACEOF | |
13725 | /* end confdefs.h. */ | |
13726 | #include <$ac_header> | |
13727 | _ACEOF | |
13728 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13729 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13730 | ac_status=$? | |
13731 | grep -v '^ *+' conftest.er1 >conftest.err | |
13732 | rm -f conftest.er1 | |
13733 | cat conftest.err >&5 | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); } >/dev/null; then | |
13736 | if test -s conftest.err; then | |
13737 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13738 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13739 | else |
13740 | ac_cpp_err= | |
13741 | fi | |
13742 | else | |
13743 | ac_cpp_err=yes | |
13744 | fi | |
13745 | if test -z "$ac_cpp_err"; then | |
13746 | ac_header_preproc=yes | |
13747 | else | |
13748 | echo "$as_me: failed program was:" >&5 | |
13749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13750 | ||
13751 | ac_header_preproc=no | |
13752 | fi | |
13753 | rm -f conftest.err conftest.$ac_ext | |
13754 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13755 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13756 | ||
13757 | # So? What about this header? | |
32ddf007 VS |
13758 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13759 | yes:no: ) | |
e6cc62c6 VS |
13760 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13761 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13763 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13764 | ac_header_preproc=yes | |
e6cc62c6 | 13765 | ;; |
32ddf007 | 13766 | no:yes:* ) |
e6cc62c6 VS |
13767 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13768 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13769 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13770 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13771 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13772 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13773 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13774 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13776 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13777 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13778 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13779 | ( |
13780 | cat <<\_ASBOX | |
32ddf007 VS |
13781 | ## ----------------------------------------- ## |
13782 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13783 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13784 | _ASBOX |
13785 | ) | | |
13786 | sed "s/^/$as_me: WARNING: /" >&2 | |
13787 | ;; | |
13788 | esac | |
13789 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13793 | else | |
32ddf007 | 13794 | eval "$as_ac_Header=\$ac_header_preproc" |
90dd450c | 13795 | fi |
e6cc62c6 VS |
13796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13797 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13798 | ||
4f14bcd8 | 13799 | fi |
e6cc62c6 VS |
13800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13801 | cat >>confdefs.h <<_ACEOF | |
13802 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13803 | _ACEOF | |
13804 | ||
21d1c967 | 13805 | fi |
e6cc62c6 | 13806 | |
21d1c967 | 13807 | done |
3a922bb4 | 13808 | |
8284b0c5 | 13809 | |
4f5a7f74 VZ |
13810 | case "${host}" in |
13811 | *-pc-os2_emx | *-pc-os2-emx ) | |
13812 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13813 | LIBS="$LIBS -lintl" | |
13814 | fi | |
13815 | ;; | |
13816 | esac | |
1542ea39 | 13817 | |
a0b9e27f | 13818 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13819 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13820 | |
eb69fda5 | 13821 | for ac_header in X11/Xlib.h |
21d1c967 | 13822 | do |
e6cc62c6 VS |
13823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13829 | fi | |
13830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13832 | else | |
13833 | # Is the header compilable? | |
13834 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13835 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13836 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13837 | /* confdefs.h. */ |
13838 | _ACEOF | |
13839 | cat confdefs.h >>conftest.$ac_ext | |
13840 | cat >>conftest.$ac_ext <<_ACEOF | |
13841 | /* end confdefs.h. */ | |
13842 | $ac_includes_default | |
13843 | #include <$ac_header> | |
13844 | _ACEOF | |
13845 | rm -f conftest.$ac_objext | |
13846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13847 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13848 | ac_status=$? |
32ddf007 VS |
13849 | grep -v '^ *+' conftest.er1 >conftest.err |
13850 | rm -f conftest.er1 | |
13851 | cat conftest.err >&5 | |
e6cc62c6 VS |
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13853 | (exit $ac_status); } && | |
e1293dcf | 13854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
13855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13856 | (eval $ac_try) 2>&5 | |
13857 | ac_status=$? | |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 | (exit $ac_status); }; } && | |
13860 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; }; then | |
13866 | ac_header_compiler=yes | |
13867 | else | |
13868 | echo "$as_me: failed program was:" >&5 | |
13869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13870 | ||
13871 | ac_header_compiler=no | |
13872 | fi | |
32ddf007 | 13873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13875 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13876 | ||
13877 | # Is the header present? | |
13878 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13880 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13881 | /* confdefs.h. */ |
13882 | _ACEOF | |
13883 | cat confdefs.h >>conftest.$ac_ext | |
13884 | cat >>conftest.$ac_ext <<_ACEOF | |
13885 | /* end confdefs.h. */ | |
13886 | #include <$ac_header> | |
13887 | _ACEOF | |
13888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13890 | ac_status=$? | |
13891 | grep -v '^ *+' conftest.er1 >conftest.err | |
13892 | rm -f conftest.er1 | |
13893 | cat conftest.err >&5 | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); } >/dev/null; then | |
13896 | if test -s conftest.err; then | |
13897 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13899 | else |
13900 | ac_cpp_err= | |
13901 | fi | |
13902 | else | |
13903 | ac_cpp_err=yes | |
13904 | fi | |
13905 | if test -z "$ac_cpp_err"; then | |
13906 | ac_header_preproc=yes | |
13907 | else | |
13908 | echo "$as_me: failed program was:" >&5 | |
13909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13910 | ||
13911 | ac_header_preproc=no | |
13912 | fi | |
13913 | rm -f conftest.err conftest.$ac_ext | |
13914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13915 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13916 | ||
13917 | # So? What about this header? | |
32ddf007 VS |
13918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13919 | yes:no: ) | |
e6cc62c6 VS |
13920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13924 | ac_header_preproc=yes | |
e6cc62c6 | 13925 | ;; |
32ddf007 | 13926 | no:yes:* ) |
e6cc62c6 VS |
13927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13939 | ( |
13940 | cat <<\_ASBOX | |
32ddf007 VS |
13941 | ## ----------------------------------------- ## |
13942 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13943 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13944 | _ASBOX |
13945 | ) | | |
13946 | sed "s/^/$as_me: WARNING: /" >&2 | |
13947 | ;; | |
13948 | esac | |
13949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13953 | else | |
32ddf007 | 13954 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13955 | fi |
e6cc62c6 VS |
13956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13958 | ||
90dd450c | 13959 | fi |
e6cc62c6 VS |
13960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13961 | cat >>confdefs.h <<_ACEOF | |
13962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13963 | _ACEOF | |
13964 | ||
247f5006 | 13965 | fi |
e6cc62c6 | 13966 | |
eb69fda5 VS |
13967 | done |
13968 | ||
13969 | ||
13970 | for ac_header in X11/XKBlib.h | |
13971 | do | |
13972 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13973 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13977 | else | |
13978 | cat >conftest.$ac_ext <<_ACEOF | |
eb69fda5 VS |
13979 | /* confdefs.h. */ |
13980 | _ACEOF | |
13981 | cat confdefs.h >>conftest.$ac_ext | |
13982 | cat >>conftest.$ac_ext <<_ACEOF | |
13983 | /* end confdefs.h. */ | |
13984 | ||
13985 | #if HAVE_X11_XLIB_H | |
13986 | #include <X11/Xlib.h> | |
13987 | #endif | |
13988 | ||
13989 | ||
13990 | #include <$ac_header> | |
13991 | _ACEOF | |
13992 | rm -f conftest.$ac_objext | |
13993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13994 | (eval $ac_compile) 2>conftest.er1 |
eb69fda5 | 13995 | ac_status=$? |
32ddf007 VS |
13996 | grep -v '^ *+' conftest.er1 >conftest.err |
13997 | rm -f conftest.er1 | |
13998 | cat conftest.err >&5 | |
eb69fda5 VS |
13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14000 | (exit $ac_status); } && | |
e1293dcf | 14001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14003 | (eval $ac_try) 2>&5 | |
14004 | ac_status=$? | |
14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14006 | (exit $ac_status); }; } && | |
14007 | { ac_try='test -s conftest.$ac_objext' | |
eb69fda5 VS |
14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14009 | (eval $ac_try) 2>&5 | |
14010 | ac_status=$? | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); }; }; then | |
14013 | eval "$as_ac_Header=yes" | |
14014 | else | |
14015 | echo "$as_me: failed program was:" >&5 | |
14016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14017 | ||
14018 | eval "$as_ac_Header=no" | |
14019 | fi | |
32ddf007 | 14020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
14021 | fi |
14022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14024 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14025 | cat >>confdefs.h <<_ACEOF | |
14026 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14027 | _ACEOF | |
14028 | ||
14029 | fi | |
14030 | ||
247f5006 VZ |
14031 | done |
14032 | ||
a0b9e27f MB |
14033 | fi |
14034 | fi | |
247f5006 | 14035 | |
247f5006 | 14036 | |
e6cc62c6 VS |
14037 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
14038 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14039 | if test "${ac_cv_c_const+set}" = set; then | |
14040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14041 | else | |
14042 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14043 | /* confdefs.h. */ |
14044 | _ACEOF | |
14045 | cat confdefs.h >>conftest.$ac_ext | |
14046 | cat >>conftest.$ac_ext <<_ACEOF | |
14047 | /* end confdefs.h. */ | |
14048 | ||
14049 | int | |
14050 | main () | |
14051 | { | |
14052 | /* FIXME: Include the comments suggested by Paul. */ | |
14053 | #ifndef __cplusplus | |
14054 | /* Ultrix mips cc rejects this. */ | |
14055 | typedef int charset[2]; | |
14056 | const charset x; | |
14057 | /* SunOS 4.1.1 cc rejects this. */ | |
14058 | char const *const *ccp; | |
14059 | char **p; | |
14060 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14061 | struct point {int x, y;}; | |
14062 | static struct point const zero = {0,0}; | |
14063 | /* AIX XL C 1.02.0.0 rejects this. | |
14064 | It does not let you subtract one const X* pointer from another in | |
14065 | an arm of an if-expression whose if-part is not a constant | |
14066 | expression */ | |
14067 | const char *g = "string"; | |
14068 | ccp = &g + (g ? g-g : 0); | |
14069 | /* HPUX 7.0 cc rejects these. */ | |
14070 | ++ccp; | |
14071 | p = (char**) ccp; | |
14072 | ccp = (char const *const *) p; | |
14073 | { /* SCO 3.2v4 cc rejects this. */ | |
14074 | char *t; | |
14075 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14076 | ||
14077 | *t++ = 0; | |
14078 | } | |
14079 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14080 | int x[] = {25, 17}; | |
14081 | const int *foo = &x[0]; | |
14082 | ++foo; | |
14083 | } | |
14084 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14085 | typedef const int *iptr; | |
14086 | iptr p = 0; | |
14087 | ++p; | |
14088 | } | |
14089 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14090 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14091 | struct s { int j; const int *ap[3]; }; | |
14092 | struct s *b; b->j = 5; | |
14093 | } | |
14094 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14095 | const int foo = 10; | |
14096 | } | |
14097 | #endif | |
14098 | ||
14099 | ; | |
14100 | return 0; | |
14101 | } | |
14102 | _ACEOF | |
14103 | rm -f conftest.$ac_objext | |
14104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14105 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14106 | ac_status=$? |
32ddf007 VS |
14107 | grep -v '^ *+' conftest.er1 >conftest.err |
14108 | rm -f conftest.er1 | |
14109 | cat conftest.err >&5 | |
e6cc62c6 VS |
14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14111 | (exit $ac_status); } && | |
e1293dcf | 14112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14114 | (eval $ac_try) 2>&5 | |
14115 | ac_status=$? | |
14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14117 | (exit $ac_status); }; } && | |
14118 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14120 | (eval $ac_try) 2>&5 | |
14121 | ac_status=$? | |
14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14123 | (exit $ac_status); }; }; then | |
a0b9e27f | 14124 | ac_cv_c_const=yes |
247f5006 | 14125 | else |
e6cc62c6 VS |
14126 | echo "$as_me: failed program was:" >&5 |
14127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14128 | ||
14129 | ac_cv_c_const=no | |
247f5006 | 14130 | fi |
32ddf007 | 14131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 14132 | fi |
e6cc62c6 VS |
14133 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14134 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 14135 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
14136 | |
14137 | cat >>confdefs.h <<\_ACEOF | |
14138 | #define const | |
14139 | _ACEOF | |
10f2d63a | 14140 | |
90dd450c | 14141 | fi |
81809c07 | 14142 | |
e6cc62c6 VS |
14143 | echo "$as_me:$LINENO: checking for inline" >&5 |
14144 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14145 | if test "${ac_cv_c_inline+set}" = set; then | |
14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 14147 | else |
a0b9e27f MB |
14148 | ac_cv_c_inline=no |
14149 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 14150 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
14151 | /* confdefs.h. */ |
14152 | _ACEOF | |
14153 | cat confdefs.h >>conftest.$ac_ext | |
14154 | cat >>conftest.$ac_ext <<_ACEOF | |
14155 | /* end confdefs.h. */ | |
14156 | #ifndef __cplusplus | |
14157 | typedef int foo_t; | |
14158 | static $ac_kw foo_t static_foo () {return 0; } | |
14159 | $ac_kw foo_t foo () {return 0; } | |
14160 | #endif | |
a0b9e27f | 14161 | |
e6cc62c6 VS |
14162 | _ACEOF |
14163 | rm -f conftest.$ac_objext | |
14164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14165 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14166 | ac_status=$? |
32ddf007 VS |
14167 | grep -v '^ *+' conftest.er1 >conftest.err |
14168 | rm -f conftest.er1 | |
14169 | cat conftest.err >&5 | |
e6cc62c6 VS |
14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14171 | (exit $ac_status); } && | |
e1293dcf | 14172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14174 | (eval $ac_try) 2>&5 | |
14175 | ac_status=$? | |
14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14177 | (exit $ac_status); }; } && | |
14178 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14180 | (eval $ac_try) 2>&5 | |
14181 | ac_status=$? | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); }; }; then | |
a0b9e27f | 14184 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 14185 | else |
e6cc62c6 VS |
14186 | echo "$as_me: failed program was:" >&5 |
14187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14188 | ||
247f5006 | 14189 | fi |
32ddf007 | 14190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 14191 | done |
247f5006 VZ |
14192 | |
14193 | fi | |
e6cc62c6 VS |
14194 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14195 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
32ddf007 VS |
14196 | |
14197 | ||
e6cc62c6 | 14198 | case $ac_cv_c_inline in |
a0b9e27f | 14199 | inline | yes) ;; |
32ddf007 VS |
14200 | *) |
14201 | case $ac_cv_c_inline in | |
14202 | no) ac_val=;; | |
14203 | *) ac_val=$ac_cv_c_inline;; | |
14204 | esac | |
14205 | cat >>confdefs.h <<_ACEOF | |
14206 | #ifndef __cplusplus | |
14207 | #define inline $ac_val | |
14208 | #endif | |
0f87e84c | 14209 | _ACEOF |
32ddf007 | 14210 | ;; |
a0b9e27f | 14211 | esac |
247f5006 | 14212 | |
247f5006 | 14213 | |
e6cc62c6 VS |
14214 | echo "$as_me:$LINENO: checking for char" >&5 |
14215 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14216 | if test "${ac_cv_type_char+set}" = set; then | |
14217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14218 | else | |
14219 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14220 | /* confdefs.h. */ |
14221 | _ACEOF | |
14222 | cat confdefs.h >>conftest.$ac_ext | |
14223 | cat >>conftest.$ac_ext <<_ACEOF | |
14224 | /* end confdefs.h. */ | |
14225 | $ac_includes_default | |
14226 | int | |
14227 | main () | |
14228 | { | |
14229 | if ((char *) 0) | |
14230 | return 0; | |
14231 | if (sizeof (char)) | |
14232 | return 0; | |
14233 | ; | |
14234 | return 0; | |
14235 | } | |
14236 | _ACEOF | |
14237 | rm -f conftest.$ac_objext | |
14238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14239 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14240 | ac_status=$? |
32ddf007 VS |
14241 | grep -v '^ *+' conftest.er1 >conftest.err |
14242 | rm -f conftest.er1 | |
14243 | cat conftest.err >&5 | |
e6cc62c6 VS |
14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14245 | (exit $ac_status); } && | |
e1293dcf | 14246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); }; } && | |
14252 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14254 | (eval $ac_try) 2>&5 | |
14255 | ac_status=$? | |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14257 | (exit $ac_status); }; }; then | |
14258 | ac_cv_type_char=yes | |
14259 | else | |
14260 | echo "$as_me: failed program was:" >&5 | |
14261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14262 | ||
14263 | ac_cv_type_char=no | |
14264 | fi | |
32ddf007 | 14265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14266 | fi |
14267 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14268 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14269 | ||
14270 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14271 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14272 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14274 | else | |
14275 | if test "$ac_cv_type_char" = yes; then | |
14276 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14277 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14278 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14279 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 14280 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
14281 | # Depending upon the size, compute the lo and hi bounds. |
14282 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14283 | /* confdefs.h. */ |
14284 | _ACEOF | |
14285 | cat confdefs.h >>conftest.$ac_ext | |
14286 | cat >>conftest.$ac_ext <<_ACEOF | |
14287 | /* end confdefs.h. */ | |
14288 | $ac_includes_default | |
14289 | int | |
14290 | main () | |
14291 | { | |
14292 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14293 | test_array [0] = 0 | |
14294 | ||
14295 | ; | |
14296 | return 0; | |
14297 | } | |
14298 | _ACEOF | |
14299 | rm -f conftest.$ac_objext | |
14300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14301 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14302 | ac_status=$? |
32ddf007 VS |
14303 | grep -v '^ *+' conftest.er1 >conftest.err |
14304 | rm -f conftest.er1 | |
14305 | cat conftest.err >&5 | |
e6cc62c6 VS |
14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14307 | (exit $ac_status); } && | |
e1293dcf | 14308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; } && | |
14314 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14316 | (eval $ac_try) 2>&5 | |
14317 | ac_status=$? | |
14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14319 | (exit $ac_status); }; }; then | |
14320 | ac_lo=0 ac_mid=0 | |
14321 | while :; do | |
14322 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14323 | /* confdefs.h. */ |
14324 | _ACEOF | |
14325 | cat confdefs.h >>conftest.$ac_ext | |
14326 | cat >>conftest.$ac_ext <<_ACEOF | |
14327 | /* end confdefs.h. */ | |
14328 | $ac_includes_default | |
14329 | int | |
14330 | main () | |
14331 | { | |
14332 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14333 | test_array [0] = 0 | |
14334 | ||
14335 | ; | |
14336 | return 0; | |
14337 | } | |
14338 | _ACEOF | |
14339 | rm -f conftest.$ac_objext | |
14340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14341 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14342 | ac_status=$? |
32ddf007 VS |
14343 | grep -v '^ *+' conftest.er1 >conftest.err |
14344 | rm -f conftest.er1 | |
14345 | cat conftest.err >&5 | |
e6cc62c6 VS |
14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14347 | (exit $ac_status); } && | |
e1293dcf | 14348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14350 | (eval $ac_try) 2>&5 | |
14351 | ac_status=$? | |
14352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14353 | (exit $ac_status); }; } && | |
14354 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14356 | (eval $ac_try) 2>&5 | |
14357 | ac_status=$? | |
14358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14359 | (exit $ac_status); }; }; then | |
14360 | ac_hi=$ac_mid; break | |
14361 | else | |
14362 | echo "$as_me: failed program was:" >&5 | |
14363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14364 | ||
14365 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14366 | if test $ac_lo -le $ac_mid; then |
14367 | ac_lo= ac_hi= | |
14368 | break | |
14369 | fi | |
14370 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 14371 | fi |
32ddf007 | 14372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14373 | done |
a0b9e27f | 14374 | else |
e6cc62c6 VS |
14375 | echo "$as_me: failed program was:" >&5 |
14376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14377 | ||
14378 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14379 | /* confdefs.h. */ |
14380 | _ACEOF | |
14381 | cat confdefs.h >>conftest.$ac_ext | |
14382 | cat >>conftest.$ac_ext <<_ACEOF | |
14383 | /* end confdefs.h. */ | |
14384 | $ac_includes_default | |
14385 | int | |
14386 | main () | |
14387 | { | |
14388 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14389 | test_array [0] = 0 | |
14390 | ||
14391 | ; | |
14392 | return 0; | |
14393 | } | |
14394 | _ACEOF | |
14395 | rm -f conftest.$ac_objext | |
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14397 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14398 | ac_status=$? |
32ddf007 VS |
14399 | grep -v '^ *+' conftest.er1 >conftest.err |
14400 | rm -f conftest.er1 | |
14401 | cat conftest.err >&5 | |
e6cc62c6 VS |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14403 | (exit $ac_status); } && | |
e1293dcf | 14404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; } && | |
14410 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; }; then | |
14416 | ac_hi=-1 ac_mid=-1 | |
14417 | while :; do | |
14418 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14419 | /* confdefs.h. */ |
14420 | _ACEOF | |
14421 | cat confdefs.h >>conftest.$ac_ext | |
14422 | cat >>conftest.$ac_ext <<_ACEOF | |
14423 | /* end confdefs.h. */ | |
14424 | $ac_includes_default | |
14425 | int | |
14426 | main () | |
14427 | { | |
14428 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14429 | test_array [0] = 0 | |
14430 | ||
14431 | ; | |
14432 | return 0; | |
14433 | } | |
14434 | _ACEOF | |
14435 | rm -f conftest.$ac_objext | |
14436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14437 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14438 | ac_status=$? |
32ddf007 VS |
14439 | grep -v '^ *+' conftest.er1 >conftest.err |
14440 | rm -f conftest.er1 | |
14441 | cat conftest.err >&5 | |
e6cc62c6 VS |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14443 | (exit $ac_status); } && | |
e1293dcf | 14444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14446 | (eval $ac_try) 2>&5 | |
14447 | ac_status=$? | |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14449 | (exit $ac_status); }; } && | |
14450 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14452 | (eval $ac_try) 2>&5 | |
14453 | ac_status=$? | |
14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14455 | (exit $ac_status); }; }; then | |
14456 | ac_lo=$ac_mid; break | |
14457 | else | |
14458 | echo "$as_me: failed program was:" >&5 | |
14459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14460 | ||
14461 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14462 | if test $ac_mid -le $ac_hi; then |
14463 | ac_lo= ac_hi= | |
14464 | break | |
14465 | fi | |
14466 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14467 | fi |
32ddf007 | 14468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14469 | done |
14470 | else | |
14471 | echo "$as_me: failed program was:" >&5 | |
14472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14473 | ||
14474 | ac_lo= ac_hi= | |
14475 | fi | |
32ddf007 | 14476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14477 | fi |
32ddf007 | 14478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14479 | # Binary search between lo and hi bounds. |
14480 | while test "x$ac_lo" != "x$ac_hi"; do | |
14481 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14482 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14483 | /* confdefs.h. */ |
14484 | _ACEOF | |
14485 | cat confdefs.h >>conftest.$ac_ext | |
14486 | cat >>conftest.$ac_ext <<_ACEOF | |
14487 | /* end confdefs.h. */ | |
14488 | $ac_includes_default | |
14489 | int | |
14490 | main () | |
14491 | { | |
14492 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14493 | test_array [0] = 0 | |
14494 | ||
14495 | ; | |
14496 | return 0; | |
14497 | } | |
14498 | _ACEOF | |
14499 | rm -f conftest.$ac_objext | |
14500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14501 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14502 | ac_status=$? |
32ddf007 VS |
14503 | grep -v '^ *+' conftest.er1 >conftest.err |
14504 | rm -f conftest.er1 | |
14505 | cat conftest.err >&5 | |
e6cc62c6 VS |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14507 | (exit $ac_status); } && | |
e1293dcf | 14508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14510 | (eval $ac_try) 2>&5 | |
14511 | ac_status=$? | |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14513 | (exit $ac_status); }; } && | |
14514 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14516 | (eval $ac_try) 2>&5 | |
14517 | ac_status=$? | |
14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14519 | (exit $ac_status); }; }; then | |
14520 | ac_hi=$ac_mid | |
14521 | else | |
14522 | echo "$as_me: failed program was:" >&5 | |
14523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14524 | ||
14525 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14526 | fi | |
32ddf007 | 14527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14528 | done |
14529 | case $ac_lo in | |
14530 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14531 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14532 | See \`config.log' for more details." >&5 | |
14533 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14534 | See \`config.log' for more details." >&2;} | |
14535 | { (exit 1); exit 1; }; } ;; | |
14536 | esac | |
14537 | else | |
14538 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
14539 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14540 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
14541 | { (exit 1); exit 1; }; } |
14542 | else | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14544 | /* confdefs.h. */ |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | long longval () { return (long) (sizeof (char)); } | |
14551 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14552 | #include <stdio.h> |
e6cc62c6 VS |
14553 | #include <stdlib.h> |
14554 | int | |
14555 | main () | |
247f5006 | 14556 | { |
e6cc62c6 VS |
14557 | |
14558 | FILE *f = fopen ("conftest.val", "w"); | |
14559 | if (! f) | |
14560 | exit (1); | |
14561 | if (((long) (sizeof (char))) < 0) | |
14562 | { | |
14563 | long i = longval (); | |
14564 | if (i != ((long) (sizeof (char)))) | |
14565 | exit (1); | |
14566 | fprintf (f, "%ld\n", i); | |
14567 | } | |
14568 | else | |
14569 | { | |
14570 | unsigned long i = ulongval (); | |
14571 | if (i != ((long) (sizeof (char)))) | |
14572 | exit (1); | |
14573 | fprintf (f, "%lu\n", i); | |
14574 | } | |
14575 | exit (ferror (f) || fclose (f) != 0); | |
14576 | ||
14577 | ; | |
14578 | return 0; | |
52127426 | 14579 | } |
e6cc62c6 VS |
14580 | _ACEOF |
14581 | rm -f conftest$ac_exeext | |
14582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14583 | (eval $ac_link) 2>&5 | |
14584 | ac_status=$? | |
14585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14586 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14588 | (eval $ac_try) 2>&5 | |
14589 | ac_status=$? | |
14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14591 | (exit $ac_status); }; }; then | |
14592 | ac_cv_sizeof_char=`cat conftest.val` | |
14593 | else | |
14594 | echo "$as_me: program exited with status $ac_status" >&5 | |
14595 | echo "$as_me: failed program was:" >&5 | |
14596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14597 | ||
14598 | ( exit $ac_status ) | |
14599 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14600 | See \`config.log' for more details." >&5 | |
14601 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14602 | See \`config.log' for more details." >&2;} | |
14603 | { (exit 1); exit 1; }; } | |
14604 | fi | |
32ddf007 | 14605 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14606 | fi |
14607 | fi | |
14608 | rm -f conftest.val | |
247f5006 | 14609 | else |
a0b9e27f | 14610 | ac_cv_sizeof_char=0 |
247f5006 | 14611 | fi |
247f5006 | 14612 | fi |
e6cc62c6 VS |
14613 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14614 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14615 | cat >>confdefs.h <<_ACEOF | |
14616 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14617 | _ACEOF | |
14618 | ||
14619 | ||
14620 | echo "$as_me:$LINENO: checking for short" >&5 | |
14621 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14622 | if test "${ac_cv_type_short+set}" = set; then | |
14623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14624 | else | |
14625 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14626 | /* confdefs.h. */ |
14627 | _ACEOF | |
14628 | cat confdefs.h >>conftest.$ac_ext | |
14629 | cat >>conftest.$ac_ext <<_ACEOF | |
14630 | /* end confdefs.h. */ | |
14631 | $ac_includes_default | |
14632 | int | |
14633 | main () | |
14634 | { | |
14635 | if ((short *) 0) | |
14636 | return 0; | |
14637 | if (sizeof (short)) | |
14638 | return 0; | |
14639 | ; | |
14640 | return 0; | |
14641 | } | |
14642 | _ACEOF | |
14643 | rm -f conftest.$ac_objext | |
14644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14645 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14646 | ac_status=$? |
32ddf007 VS |
14647 | grep -v '^ *+' conftest.er1 >conftest.err |
14648 | rm -f conftest.er1 | |
14649 | cat conftest.err >&5 | |
e6cc62c6 VS |
14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14651 | (exit $ac_status); } && | |
e1293dcf | 14652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14654 | (eval $ac_try) 2>&5 | |
14655 | ac_status=$? | |
14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14657 | (exit $ac_status); }; } && | |
14658 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14660 | (eval $ac_try) 2>&5 | |
14661 | ac_status=$? | |
14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14663 | (exit $ac_status); }; }; then | |
14664 | ac_cv_type_short=yes | |
14665 | else | |
14666 | echo "$as_me: failed program was:" >&5 | |
14667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14668 | ||
14669 | ac_cv_type_short=no | |
14670 | fi | |
32ddf007 | 14671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14672 | fi |
14673 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14674 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14675 | ||
14676 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14677 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14678 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14680 | else | |
14681 | if test "$ac_cv_type_short" = yes; then | |
14682 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14685 | # This bug is HP SR number 8606223364. | |
14686 | if test "$cross_compiling" = yes; then | |
14687 | # Depending upon the size, compute the lo and hi bounds. | |
14688 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14689 | /* confdefs.h. */ |
14690 | _ACEOF | |
14691 | cat confdefs.h >>conftest.$ac_ext | |
14692 | cat >>conftest.$ac_ext <<_ACEOF | |
14693 | /* end confdefs.h. */ | |
14694 | $ac_includes_default | |
14695 | int | |
14696 | main () | |
14697 | { | |
14698 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14699 | test_array [0] = 0 | |
247f5006 | 14700 | |
e6cc62c6 VS |
14701 | ; |
14702 | return 0; | |
14703 | } | |
14704 | _ACEOF | |
14705 | rm -f conftest.$ac_objext | |
14706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14707 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14708 | ac_status=$? |
32ddf007 VS |
14709 | grep -v '^ *+' conftest.er1 >conftest.err |
14710 | rm -f conftest.er1 | |
14711 | cat conftest.err >&5 | |
e6cc62c6 VS |
14712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14713 | (exit $ac_status); } && | |
e1293dcf | 14714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14716 | (eval $ac_try) 2>&5 | |
14717 | ac_status=$? | |
14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14719 | (exit $ac_status); }; } && | |
14720 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14722 | (eval $ac_try) 2>&5 | |
14723 | ac_status=$? | |
14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14725 | (exit $ac_status); }; }; then | |
14726 | ac_lo=0 ac_mid=0 | |
14727 | while :; do | |
14728 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14729 | /* confdefs.h. */ |
14730 | _ACEOF | |
14731 | cat confdefs.h >>conftest.$ac_ext | |
14732 | cat >>conftest.$ac_ext <<_ACEOF | |
14733 | /* end confdefs.h. */ | |
14734 | $ac_includes_default | |
14735 | int | |
14736 | main () | |
14737 | { | |
14738 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14739 | test_array [0] = 0 | |
14740 | ||
14741 | ; | |
14742 | return 0; | |
14743 | } | |
14744 | _ACEOF | |
14745 | rm -f conftest.$ac_objext | |
14746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14747 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14748 | ac_status=$? |
32ddf007 VS |
14749 | grep -v '^ *+' conftest.er1 >conftest.err |
14750 | rm -f conftest.er1 | |
14751 | cat conftest.err >&5 | |
e6cc62c6 VS |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14753 | (exit $ac_status); } && | |
e1293dcf | 14754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14756 | (eval $ac_try) 2>&5 | |
14757 | ac_status=$? | |
14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14759 | (exit $ac_status); }; } && | |
14760 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14762 | (eval $ac_try) 2>&5 | |
14763 | ac_status=$? | |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14765 | (exit $ac_status); }; }; then | |
14766 | ac_hi=$ac_mid; break | |
14767 | else | |
14768 | echo "$as_me: failed program was:" >&5 | |
14769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14770 | ||
14771 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14772 | if test $ac_lo -le $ac_mid; then |
14773 | ac_lo= ac_hi= | |
14774 | break | |
14775 | fi | |
14776 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14777 | fi |
32ddf007 | 14778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14779 | done |
14780 | else | |
14781 | echo "$as_me: failed program was:" >&5 | |
14782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14783 | ||
14784 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14785 | /* confdefs.h. */ |
14786 | _ACEOF | |
14787 | cat confdefs.h >>conftest.$ac_ext | |
14788 | cat >>conftest.$ac_ext <<_ACEOF | |
14789 | /* end confdefs.h. */ | |
14790 | $ac_includes_default | |
14791 | int | |
14792 | main () | |
14793 | { | |
14794 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14795 | test_array [0] = 0 | |
247f5006 | 14796 | |
e6cc62c6 VS |
14797 | ; |
14798 | return 0; | |
14799 | } | |
14800 | _ACEOF | |
14801 | rm -f conftest.$ac_objext | |
14802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14803 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14804 | ac_status=$? |
32ddf007 VS |
14805 | grep -v '^ *+' conftest.er1 >conftest.err |
14806 | rm -f conftest.er1 | |
14807 | cat conftest.err >&5 | |
e6cc62c6 VS |
14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14809 | (exit $ac_status); } && | |
e1293dcf | 14810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14812 | (eval $ac_try) 2>&5 | |
14813 | ac_status=$? | |
14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14815 | (exit $ac_status); }; } && | |
14816 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14818 | (eval $ac_try) 2>&5 | |
14819 | ac_status=$? | |
14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14821 | (exit $ac_status); }; }; then | |
14822 | ac_hi=-1 ac_mid=-1 | |
14823 | while :; do | |
14824 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14825 | /* confdefs.h. */ |
14826 | _ACEOF | |
14827 | cat confdefs.h >>conftest.$ac_ext | |
14828 | cat >>conftest.$ac_ext <<_ACEOF | |
14829 | /* end confdefs.h. */ | |
14830 | $ac_includes_default | |
14831 | int | |
14832 | main () | |
14833 | { | |
14834 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14835 | test_array [0] = 0 | |
247f5006 | 14836 | |
e6cc62c6 VS |
14837 | ; |
14838 | return 0; | |
14839 | } | |
14840 | _ACEOF | |
14841 | rm -f conftest.$ac_objext | |
14842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14843 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14844 | ac_status=$? |
32ddf007 VS |
14845 | grep -v '^ *+' conftest.er1 >conftest.err |
14846 | rm -f conftest.er1 | |
14847 | cat conftest.err >&5 | |
e6cc62c6 VS |
14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14849 | (exit $ac_status); } && | |
e1293dcf | 14850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14852 | (eval $ac_try) 2>&5 | |
14853 | ac_status=$? | |
14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14855 | (exit $ac_status); }; } && | |
14856 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14858 | (eval $ac_try) 2>&5 | |
14859 | ac_status=$? | |
14860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14861 | (exit $ac_status); }; }; then | |
14862 | ac_lo=$ac_mid; break | |
14863 | else | |
14864 | echo "$as_me: failed program was:" >&5 | |
14865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14866 | ||
14867 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14868 | if test $ac_mid -le $ac_hi; then |
14869 | ac_lo= ac_hi= | |
14870 | break | |
14871 | fi | |
14872 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14873 | fi |
32ddf007 | 14874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14875 | done |
247f5006 | 14876 | else |
e6cc62c6 VS |
14877 | echo "$as_me: failed program was:" >&5 |
14878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14879 | ||
14880 | ac_lo= ac_hi= | |
14881 | fi | |
32ddf007 | 14882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14883 | fi |
32ddf007 | 14884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14885 | # Binary search between lo and hi bounds. |
14886 | while test "x$ac_lo" != "x$ac_hi"; do | |
14887 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14888 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14889 | /* confdefs.h. */ |
14890 | _ACEOF | |
14891 | cat confdefs.h >>conftest.$ac_ext | |
14892 | cat >>conftest.$ac_ext <<_ACEOF | |
14893 | /* end confdefs.h. */ | |
14894 | $ac_includes_default | |
14895 | int | |
14896 | main () | |
14897 | { | |
14898 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14899 | test_array [0] = 0 | |
14900 | ||
14901 | ; | |
14902 | return 0; | |
14903 | } | |
14904 | _ACEOF | |
14905 | rm -f conftest.$ac_objext | |
14906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14907 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14908 | ac_status=$? |
32ddf007 VS |
14909 | grep -v '^ *+' conftest.er1 >conftest.err |
14910 | rm -f conftest.er1 | |
14911 | cat conftest.err >&5 | |
e6cc62c6 VS |
14912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14913 | (exit $ac_status); } && | |
e1293dcf | 14914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
14915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14916 | (eval $ac_try) 2>&5 | |
14917 | ac_status=$? | |
14918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14919 | (exit $ac_status); }; } && | |
14920 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14922 | (eval $ac_try) 2>&5 | |
14923 | ac_status=$? | |
14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14925 | (exit $ac_status); }; }; then | |
14926 | ac_hi=$ac_mid | |
14927 | else | |
14928 | echo "$as_me: failed program was:" >&5 | |
14929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14930 | ||
14931 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14932 | fi | |
32ddf007 | 14933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14934 | done |
14935 | case $ac_lo in | |
14936 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14937 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14938 | See \`config.log' for more details." >&5 | |
14939 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14940 | See \`config.log' for more details." >&2;} | |
14941 | { (exit 1); exit 1; }; } ;; | |
14942 | esac | |
247f5006 | 14943 | else |
e6cc62c6 | 14944 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
14945 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14946 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
14947 | { (exit 1); exit 1; }; } |
14948 | else | |
14949 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14950 | /* confdefs.h. */ |
14951 | _ACEOF | |
14952 | cat confdefs.h >>conftest.$ac_ext | |
14953 | cat >>conftest.$ac_ext <<_ACEOF | |
14954 | /* end confdefs.h. */ | |
14955 | $ac_includes_default | |
14956 | long longval () { return (long) (sizeof (short)); } | |
14957 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14958 | #include <stdio.h> |
e6cc62c6 VS |
14959 | #include <stdlib.h> |
14960 | int | |
14961 | main () | |
a0b9e27f | 14962 | { |
e6cc62c6 VS |
14963 | |
14964 | FILE *f = fopen ("conftest.val", "w"); | |
14965 | if (! f) | |
14966 | exit (1); | |
14967 | if (((long) (sizeof (short))) < 0) | |
14968 | { | |
14969 | long i = longval (); | |
14970 | if (i != ((long) (sizeof (short)))) | |
14971 | exit (1); | |
14972 | fprintf (f, "%ld\n", i); | |
14973 | } | |
14974 | else | |
14975 | { | |
14976 | unsigned long i = ulongval (); | |
14977 | if (i != ((long) (sizeof (short)))) | |
14978 | exit (1); | |
14979 | fprintf (f, "%lu\n", i); | |
14980 | } | |
14981 | exit (ferror (f) || fclose (f) != 0); | |
14982 | ||
14983 | ; | |
14984 | return 0; | |
a0b9e27f | 14985 | } |
e6cc62c6 VS |
14986 | _ACEOF |
14987 | rm -f conftest$ac_exeext | |
14988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14989 | (eval $ac_link) 2>&5 | |
14990 | ac_status=$? | |
14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; }; then | |
14998 | ac_cv_sizeof_short=`cat conftest.val` | |
14999 | else | |
15000 | echo "$as_me: program exited with status $ac_status" >&5 | |
15001 | echo "$as_me: failed program was:" >&5 | |
15002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15003 | ||
15004 | ( exit $ac_status ) | |
15005 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15006 | See \`config.log' for more details." >&5 | |
15007 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15008 | See \`config.log' for more details." >&2;} | |
15009 | { (exit 1); exit 1; }; } | |
15010 | fi | |
32ddf007 | 15011 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15012 | fi |
15013 | fi | |
15014 | rm -f conftest.val | |
247f5006 | 15015 | else |
a0b9e27f | 15016 | ac_cv_sizeof_short=0 |
247f5006 | 15017 | fi |
247f5006 | 15018 | fi |
e6cc62c6 VS |
15019 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
15020 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15021 | cat >>confdefs.h <<_ACEOF | |
15022 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15023 | _ACEOF | |
15024 | ||
15025 | ||
15026 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15027 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15028 | if test "${ac_cv_type_void_p+set}" = set; then | |
15029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15030 | else | |
15031 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15032 | /* confdefs.h. */ |
15033 | _ACEOF | |
15034 | cat confdefs.h >>conftest.$ac_ext | |
15035 | cat >>conftest.$ac_ext <<_ACEOF | |
15036 | /* end confdefs.h. */ | |
15037 | $ac_includes_default | |
15038 | int | |
15039 | main () | |
15040 | { | |
15041 | if ((void * *) 0) | |
15042 | return 0; | |
15043 | if (sizeof (void *)) | |
15044 | return 0; | |
15045 | ; | |
15046 | return 0; | |
15047 | } | |
15048 | _ACEOF | |
15049 | rm -f conftest.$ac_objext | |
15050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15051 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15052 | ac_status=$? |
32ddf007 VS |
15053 | grep -v '^ *+' conftest.er1 >conftest.err |
15054 | rm -f conftest.er1 | |
15055 | cat conftest.err >&5 | |
e6cc62c6 VS |
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15057 | (exit $ac_status); } && | |
e1293dcf | 15058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15060 | (eval $ac_try) 2>&5 | |
15061 | ac_status=$? | |
15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15063 | (exit $ac_status); }; } && | |
15064 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15066 | (eval $ac_try) 2>&5 | |
15067 | ac_status=$? | |
15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15069 | (exit $ac_status); }; }; then | |
15070 | ac_cv_type_void_p=yes | |
15071 | else | |
15072 | echo "$as_me: failed program was:" >&5 | |
15073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15074 | ||
15075 | ac_cv_type_void_p=no | |
15076 | fi | |
32ddf007 | 15077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15078 | fi |
15079 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15080 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15081 | ||
15082 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15083 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15084 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15086 | else | |
15087 | if test "$ac_cv_type_void_p" = yes; then | |
15088 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15089 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15090 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15091 | # This bug is HP SR number 8606223364. | |
15092 | if test "$cross_compiling" = yes; then | |
15093 | # Depending upon the size, compute the lo and hi bounds. | |
15094 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15095 | /* confdefs.h. */ |
15096 | _ACEOF | |
15097 | cat confdefs.h >>conftest.$ac_ext | |
15098 | cat >>conftest.$ac_ext <<_ACEOF | |
15099 | /* end confdefs.h. */ | |
15100 | $ac_includes_default | |
15101 | int | |
15102 | main () | |
15103 | { | |
15104 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15105 | test_array [0] = 0 | |
15106 | ||
15107 | ; | |
15108 | return 0; | |
15109 | } | |
15110 | _ACEOF | |
15111 | rm -f conftest.$ac_objext | |
15112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15113 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15114 | ac_status=$? |
32ddf007 VS |
15115 | grep -v '^ *+' conftest.er1 >conftest.err |
15116 | rm -f conftest.er1 | |
15117 | cat conftest.err >&5 | |
e6cc62c6 VS |
15118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15119 | (exit $ac_status); } && | |
e1293dcf | 15120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15122 | (eval $ac_try) 2>&5 | |
15123 | ac_status=$? | |
15124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15125 | (exit $ac_status); }; } && | |
15126 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15128 | (eval $ac_try) 2>&5 | |
15129 | ac_status=$? | |
15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15131 | (exit $ac_status); }; }; then | |
15132 | ac_lo=0 ac_mid=0 | |
15133 | while :; do | |
15134 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15135 | /* confdefs.h. */ |
15136 | _ACEOF | |
15137 | cat confdefs.h >>conftest.$ac_ext | |
15138 | cat >>conftest.$ac_ext <<_ACEOF | |
15139 | /* end confdefs.h. */ | |
15140 | $ac_includes_default | |
15141 | int | |
15142 | main () | |
15143 | { | |
15144 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15145 | test_array [0] = 0 | |
247f5006 | 15146 | |
e6cc62c6 VS |
15147 | ; |
15148 | return 0; | |
15149 | } | |
15150 | _ACEOF | |
15151 | rm -f conftest.$ac_objext | |
15152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15153 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15154 | ac_status=$? |
32ddf007 VS |
15155 | grep -v '^ *+' conftest.er1 >conftest.err |
15156 | rm -f conftest.er1 | |
15157 | cat conftest.err >&5 | |
e6cc62c6 VS |
15158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15159 | (exit $ac_status); } && | |
e1293dcf | 15160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15162 | (eval $ac_try) 2>&5 | |
15163 | ac_status=$? | |
15164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15165 | (exit $ac_status); }; } && | |
15166 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15168 | (eval $ac_try) 2>&5 | |
15169 | ac_status=$? | |
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15171 | (exit $ac_status); }; }; then | |
15172 | ac_hi=$ac_mid; break | |
15173 | else | |
15174 | echo "$as_me: failed program was:" >&5 | |
15175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15176 | ||
15177 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15178 | if test $ac_lo -le $ac_mid; then |
15179 | ac_lo= ac_hi= | |
15180 | break | |
15181 | fi | |
15182 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15183 | fi |
32ddf007 | 15184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15185 | done |
15186 | else | |
15187 | echo "$as_me: failed program was:" >&5 | |
15188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15189 | ||
15190 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15191 | /* confdefs.h. */ |
15192 | _ACEOF | |
15193 | cat confdefs.h >>conftest.$ac_ext | |
15194 | cat >>conftest.$ac_ext <<_ACEOF | |
15195 | /* end confdefs.h. */ | |
15196 | $ac_includes_default | |
15197 | int | |
15198 | main () | |
15199 | { | |
15200 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15201 | test_array [0] = 0 | |
247f5006 | 15202 | |
e6cc62c6 VS |
15203 | ; |
15204 | return 0; | |
15205 | } | |
15206 | _ACEOF | |
15207 | rm -f conftest.$ac_objext | |
15208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15209 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15210 | ac_status=$? |
32ddf007 VS |
15211 | grep -v '^ *+' conftest.er1 >conftest.err |
15212 | rm -f conftest.er1 | |
15213 | cat conftest.err >&5 | |
e6cc62c6 VS |
15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15215 | (exit $ac_status); } && | |
e1293dcf | 15216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15218 | (eval $ac_try) 2>&5 | |
15219 | ac_status=$? | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); }; } && | |
15222 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15224 | (eval $ac_try) 2>&5 | |
15225 | ac_status=$? | |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15227 | (exit $ac_status); }; }; then | |
15228 | ac_hi=-1 ac_mid=-1 | |
15229 | while :; do | |
15230 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15231 | /* confdefs.h. */ |
15232 | _ACEOF | |
15233 | cat confdefs.h >>conftest.$ac_ext | |
15234 | cat >>conftest.$ac_ext <<_ACEOF | |
15235 | /* end confdefs.h. */ | |
15236 | $ac_includes_default | |
15237 | int | |
15238 | main () | |
15239 | { | |
15240 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15241 | test_array [0] = 0 | |
247f5006 | 15242 | |
e6cc62c6 VS |
15243 | ; |
15244 | return 0; | |
15245 | } | |
15246 | _ACEOF | |
15247 | rm -f conftest.$ac_objext | |
15248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15249 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15250 | ac_status=$? |
32ddf007 VS |
15251 | grep -v '^ *+' conftest.er1 >conftest.err |
15252 | rm -f conftest.er1 | |
15253 | cat conftest.err >&5 | |
e6cc62c6 VS |
15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15255 | (exit $ac_status); } && | |
e1293dcf | 15256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15258 | (eval $ac_try) 2>&5 | |
15259 | ac_status=$? | |
15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15261 | (exit $ac_status); }; } && | |
15262 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15264 | (eval $ac_try) 2>&5 | |
15265 | ac_status=$? | |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15267 | (exit $ac_status); }; }; then | |
15268 | ac_lo=$ac_mid; break | |
15269 | else | |
15270 | echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15272 | ||
15273 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15274 | if test $ac_mid -le $ac_hi; then |
15275 | ac_lo= ac_hi= | |
15276 | break | |
15277 | fi | |
15278 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15279 | fi |
32ddf007 | 15280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15281 | done |
a0b9e27f | 15282 | else |
e6cc62c6 VS |
15283 | echo "$as_me: failed program was:" >&5 |
15284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15285 | ||
15286 | ac_lo= ac_hi= | |
15287 | fi | |
32ddf007 | 15288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15289 | fi |
32ddf007 | 15290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15291 | # Binary search between lo and hi bounds. |
15292 | while test "x$ac_lo" != "x$ac_hi"; do | |
15293 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15294 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15295 | /* confdefs.h. */ |
15296 | _ACEOF | |
15297 | cat confdefs.h >>conftest.$ac_ext | |
15298 | cat >>conftest.$ac_ext <<_ACEOF | |
15299 | /* end confdefs.h. */ | |
15300 | $ac_includes_default | |
15301 | int | |
15302 | main () | |
15303 | { | |
15304 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15305 | test_array [0] = 0 | |
15306 | ||
15307 | ; | |
15308 | return 0; | |
15309 | } | |
15310 | _ACEOF | |
15311 | rm -f conftest.$ac_objext | |
15312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15313 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15314 | ac_status=$? |
32ddf007 VS |
15315 | grep -v '^ *+' conftest.er1 >conftest.err |
15316 | rm -f conftest.er1 | |
15317 | cat conftest.err >&5 | |
e6cc62c6 VS |
15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15319 | (exit $ac_status); } && | |
e1293dcf | 15320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15322 | (eval $ac_try) 2>&5 | |
15323 | ac_status=$? | |
15324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15325 | (exit $ac_status); }; } && | |
15326 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15328 | (eval $ac_try) 2>&5 | |
15329 | ac_status=$? | |
15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15331 | (exit $ac_status); }; }; then | |
15332 | ac_hi=$ac_mid | |
15333 | else | |
15334 | echo "$as_me: failed program was:" >&5 | |
15335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15336 | ||
15337 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15338 | fi | |
32ddf007 | 15339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15340 | done |
15341 | case $ac_lo in | |
15342 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15343 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15344 | See \`config.log' for more details." >&5 | |
15345 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15346 | See \`config.log' for more details." >&2;} | |
15347 | { (exit 1); exit 1; }; } ;; | |
15348 | esac | |
247f5006 | 15349 | else |
e6cc62c6 | 15350 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
15351 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15352 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
15353 | { (exit 1); exit 1; }; } |
15354 | else | |
15355 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15356 | /* confdefs.h. */ |
15357 | _ACEOF | |
15358 | cat confdefs.h >>conftest.$ac_ext | |
15359 | cat >>conftest.$ac_ext <<_ACEOF | |
15360 | /* end confdefs.h. */ | |
15361 | $ac_includes_default | |
15362 | long longval () { return (long) (sizeof (void *)); } | |
15363 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 15364 | #include <stdio.h> |
e6cc62c6 VS |
15365 | #include <stdlib.h> |
15366 | int | |
15367 | main () | |
247f5006 | 15368 | { |
e6cc62c6 VS |
15369 | |
15370 | FILE *f = fopen ("conftest.val", "w"); | |
15371 | if (! f) | |
15372 | exit (1); | |
15373 | if (((long) (sizeof (void *))) < 0) | |
15374 | { | |
15375 | long i = longval (); | |
15376 | if (i != ((long) (sizeof (void *)))) | |
15377 | exit (1); | |
15378 | fprintf (f, "%ld\n", i); | |
15379 | } | |
15380 | else | |
15381 | { | |
15382 | unsigned long i = ulongval (); | |
15383 | if (i != ((long) (sizeof (void *)))) | |
15384 | exit (1); | |
15385 | fprintf (f, "%lu\n", i); | |
15386 | } | |
15387 | exit (ferror (f) || fclose (f) != 0); | |
15388 | ||
15389 | ; | |
15390 | return 0; | |
5c6fa7d2 | 15391 | } |
e6cc62c6 VS |
15392 | _ACEOF |
15393 | rm -f conftest$ac_exeext | |
15394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15395 | (eval $ac_link) 2>&5 | |
15396 | ac_status=$? | |
15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15400 | (eval $ac_try) 2>&5 | |
15401 | ac_status=$? | |
15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15403 | (exit $ac_status); }; }; then | |
15404 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15405 | else | |
15406 | echo "$as_me: program exited with status $ac_status" >&5 | |
15407 | echo "$as_me: failed program was:" >&5 | |
15408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15409 | ||
15410 | ( exit $ac_status ) | |
15411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15412 | See \`config.log' for more details." >&5 | |
15413 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15414 | See \`config.log' for more details." >&2;} | |
15415 | { (exit 1); exit 1; }; } | |
15416 | fi | |
32ddf007 | 15417 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15418 | fi |
15419 | fi | |
15420 | rm -f conftest.val | |
a0b9e27f | 15421 | else |
a0b9e27f MB |
15422 | ac_cv_sizeof_void_p=0 |
15423 | fi | |
a0b9e27f | 15424 | fi |
e6cc62c6 VS |
15425 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15426 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15427 | cat >>confdefs.h <<_ACEOF | |
15428 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15429 | _ACEOF | |
15430 | ||
15431 | ||
15432 | echo "$as_me:$LINENO: checking for int" >&5 | |
15433 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15434 | if test "${ac_cv_type_int+set}" = set; then | |
15435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15436 | else | |
15437 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15438 | /* confdefs.h. */ |
15439 | _ACEOF | |
15440 | cat confdefs.h >>conftest.$ac_ext | |
15441 | cat >>conftest.$ac_ext <<_ACEOF | |
15442 | /* end confdefs.h. */ | |
15443 | $ac_includes_default | |
15444 | int | |
15445 | main () | |
15446 | { | |
15447 | if ((int *) 0) | |
15448 | return 0; | |
15449 | if (sizeof (int)) | |
15450 | return 0; | |
15451 | ; | |
15452 | return 0; | |
15453 | } | |
15454 | _ACEOF | |
15455 | rm -f conftest.$ac_objext | |
15456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15457 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15458 | ac_status=$? |
32ddf007 VS |
15459 | grep -v '^ *+' conftest.er1 >conftest.err |
15460 | rm -f conftest.er1 | |
15461 | cat conftest.err >&5 | |
e6cc62c6 VS |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15463 | (exit $ac_status); } && | |
e1293dcf | 15464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15466 | (eval $ac_try) 2>&5 | |
15467 | ac_status=$? | |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); }; } && | |
15470 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15475 | (exit $ac_status); }; }; then | |
15476 | ac_cv_type_int=yes | |
15477 | else | |
15478 | echo "$as_me: failed program was:" >&5 | |
15479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15480 | ||
15481 | ac_cv_type_int=no | |
15482 | fi | |
32ddf007 | 15483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15484 | fi |
15485 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15486 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15487 | ||
15488 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15489 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15490 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15492 | else | |
15493 | if test "$ac_cv_type_int" = yes; then | |
15494 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15495 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15496 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15497 | # This bug is HP SR number 8606223364. | |
15498 | if test "$cross_compiling" = yes; then | |
15499 | # Depending upon the size, compute the lo and hi bounds. | |
15500 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15501 | /* confdefs.h. */ |
15502 | _ACEOF | |
15503 | cat confdefs.h >>conftest.$ac_ext | |
15504 | cat >>conftest.$ac_ext <<_ACEOF | |
15505 | /* end confdefs.h. */ | |
15506 | $ac_includes_default | |
15507 | int | |
15508 | main () | |
15509 | { | |
15510 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15511 | test_array [0] = 0 | |
8284b0c5 | 15512 | |
e6cc62c6 VS |
15513 | ; |
15514 | return 0; | |
15515 | } | |
15516 | _ACEOF | |
15517 | rm -f conftest.$ac_objext | |
15518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15519 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15520 | ac_status=$? |
32ddf007 VS |
15521 | grep -v '^ *+' conftest.er1 >conftest.err |
15522 | rm -f conftest.er1 | |
15523 | cat conftest.err >&5 | |
e6cc62c6 VS |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15525 | (exit $ac_status); } && | |
e1293dcf | 15526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15528 | (eval $ac_try) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); }; } && | |
15532 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15534 | (eval $ac_try) 2>&5 | |
15535 | ac_status=$? | |
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15537 | (exit $ac_status); }; }; then | |
15538 | ac_lo=0 ac_mid=0 | |
15539 | while :; do | |
15540 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15541 | /* confdefs.h. */ |
15542 | _ACEOF | |
15543 | cat confdefs.h >>conftest.$ac_ext | |
15544 | cat >>conftest.$ac_ext <<_ACEOF | |
15545 | /* end confdefs.h. */ | |
15546 | $ac_includes_default | |
15547 | int | |
15548 | main () | |
15549 | { | |
15550 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15551 | test_array [0] = 0 | |
15552 | ||
15553 | ; | |
15554 | return 0; | |
15555 | } | |
15556 | _ACEOF | |
15557 | rm -f conftest.$ac_objext | |
15558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15559 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15560 | ac_status=$? |
32ddf007 VS |
15561 | grep -v '^ *+' conftest.er1 >conftest.err |
15562 | rm -f conftest.er1 | |
15563 | cat conftest.err >&5 | |
e6cc62c6 VS |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15565 | (exit $ac_status); } && | |
e1293dcf | 15566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15568 | (eval $ac_try) 2>&5 | |
15569 | ac_status=$? | |
15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15571 | (exit $ac_status); }; } && | |
15572 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15574 | (eval $ac_try) 2>&5 | |
15575 | ac_status=$? | |
15576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15577 | (exit $ac_status); }; }; then | |
15578 | ac_hi=$ac_mid; break | |
15579 | else | |
15580 | echo "$as_me: failed program was:" >&5 | |
15581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15582 | ||
15583 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15584 | if test $ac_lo -le $ac_mid; then |
15585 | ac_lo= ac_hi= | |
15586 | break | |
15587 | fi | |
15588 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15589 | fi |
32ddf007 | 15590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15591 | done |
15592 | else | |
15593 | echo "$as_me: failed program was:" >&5 | |
15594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15595 | ||
15596 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15597 | /* confdefs.h. */ |
15598 | _ACEOF | |
15599 | cat confdefs.h >>conftest.$ac_ext | |
15600 | cat >>conftest.$ac_ext <<_ACEOF | |
15601 | /* end confdefs.h. */ | |
15602 | $ac_includes_default | |
15603 | int | |
15604 | main () | |
15605 | { | |
15606 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15607 | test_array [0] = 0 | |
247f5006 | 15608 | |
e6cc62c6 VS |
15609 | ; |
15610 | return 0; | |
15611 | } | |
15612 | _ACEOF | |
15613 | rm -f conftest.$ac_objext | |
15614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15615 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15616 | ac_status=$? |
32ddf007 VS |
15617 | grep -v '^ *+' conftest.er1 >conftest.err |
15618 | rm -f conftest.er1 | |
15619 | cat conftest.err >&5 | |
e6cc62c6 VS |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15621 | (exit $ac_status); } && | |
e1293dcf | 15622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15624 | (eval $ac_try) 2>&5 | |
15625 | ac_status=$? | |
15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15627 | (exit $ac_status); }; } && | |
15628 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15630 | (eval $ac_try) 2>&5 | |
15631 | ac_status=$? | |
15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15633 | (exit $ac_status); }; }; then | |
15634 | ac_hi=-1 ac_mid=-1 | |
15635 | while :; do | |
15636 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15637 | /* confdefs.h. */ |
15638 | _ACEOF | |
15639 | cat confdefs.h >>conftest.$ac_ext | |
15640 | cat >>conftest.$ac_ext <<_ACEOF | |
15641 | /* end confdefs.h. */ | |
15642 | $ac_includes_default | |
15643 | int | |
15644 | main () | |
15645 | { | |
15646 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15647 | test_array [0] = 0 | |
247f5006 | 15648 | |
e6cc62c6 VS |
15649 | ; |
15650 | return 0; | |
15651 | } | |
15652 | _ACEOF | |
15653 | rm -f conftest.$ac_objext | |
15654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15655 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15656 | ac_status=$? |
32ddf007 VS |
15657 | grep -v '^ *+' conftest.er1 >conftest.err |
15658 | rm -f conftest.er1 | |
15659 | cat conftest.err >&5 | |
e6cc62c6 VS |
15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15661 | (exit $ac_status); } && | |
e1293dcf | 15662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15664 | (eval $ac_try) 2>&5 | |
15665 | ac_status=$? | |
15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15667 | (exit $ac_status); }; } && | |
15668 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15670 | (eval $ac_try) 2>&5 | |
15671 | ac_status=$? | |
15672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15673 | (exit $ac_status); }; }; then | |
15674 | ac_lo=$ac_mid; break | |
15675 | else | |
15676 | echo "$as_me: failed program was:" >&5 | |
15677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15678 | ||
15679 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15680 | if test $ac_mid -le $ac_hi; then |
15681 | ac_lo= ac_hi= | |
15682 | break | |
15683 | fi | |
15684 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15685 | fi |
32ddf007 | 15686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15687 | done |
247f5006 | 15688 | else |
e6cc62c6 VS |
15689 | echo "$as_me: failed program was:" >&5 |
15690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15691 | ||
15692 | ac_lo= ac_hi= | |
15693 | fi | |
32ddf007 | 15694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15695 | fi |
32ddf007 | 15696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15697 | # Binary search between lo and hi bounds. |
15698 | while test "x$ac_lo" != "x$ac_hi"; do | |
15699 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15700 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15701 | /* confdefs.h. */ |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | $ac_includes_default | |
15707 | int | |
15708 | main () | |
15709 | { | |
15710 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15711 | test_array [0] = 0 | |
15712 | ||
15713 | ; | |
15714 | return 0; | |
15715 | } | |
15716 | _ACEOF | |
15717 | rm -f conftest.$ac_objext | |
15718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15719 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15720 | ac_status=$? |
32ddf007 VS |
15721 | grep -v '^ *+' conftest.er1 >conftest.err |
15722 | rm -f conftest.er1 | |
15723 | cat conftest.err >&5 | |
e6cc62c6 VS |
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15725 | (exit $ac_status); } && | |
e1293dcf | 15726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15728 | (eval $ac_try) 2>&5 | |
15729 | ac_status=$? | |
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15731 | (exit $ac_status); }; } && | |
15732 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15734 | (eval $ac_try) 2>&5 | |
15735 | ac_status=$? | |
15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15737 | (exit $ac_status); }; }; then | |
15738 | ac_hi=$ac_mid | |
15739 | else | |
15740 | echo "$as_me: failed program was:" >&5 | |
15741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15742 | ||
15743 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15744 | fi | |
32ddf007 | 15745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15746 | done |
15747 | case $ac_lo in | |
15748 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15749 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15750 | See \`config.log' for more details." >&5 | |
15751 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15752 | See \`config.log' for more details." >&2;} | |
15753 | { (exit 1); exit 1; }; } ;; | |
15754 | esac | |
a0b9e27f | 15755 | else |
e6cc62c6 | 15756 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
15757 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15758 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
15759 | { (exit 1); exit 1; }; } |
15760 | else | |
15761 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15762 | /* confdefs.h. */ |
15763 | _ACEOF | |
15764 | cat confdefs.h >>conftest.$ac_ext | |
15765 | cat >>conftest.$ac_ext <<_ACEOF | |
15766 | /* end confdefs.h. */ | |
15767 | $ac_includes_default | |
15768 | long longval () { return (long) (sizeof (int)); } | |
15769 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15770 | #include <stdio.h> |
e6cc62c6 VS |
15771 | #include <stdlib.h> |
15772 | int | |
15773 | main () | |
247f5006 | 15774 | { |
e6cc62c6 VS |
15775 | |
15776 | FILE *f = fopen ("conftest.val", "w"); | |
15777 | if (! f) | |
15778 | exit (1); | |
15779 | if (((long) (sizeof (int))) < 0) | |
15780 | { | |
15781 | long i = longval (); | |
15782 | if (i != ((long) (sizeof (int)))) | |
15783 | exit (1); | |
15784 | fprintf (f, "%ld\n", i); | |
15785 | } | |
15786 | else | |
15787 | { | |
15788 | unsigned long i = ulongval (); | |
15789 | if (i != ((long) (sizeof (int)))) | |
15790 | exit (1); | |
15791 | fprintf (f, "%lu\n", i); | |
15792 | } | |
15793 | exit (ferror (f) || fclose (f) != 0); | |
15794 | ||
15795 | ; | |
15796 | return 0; | |
247f5006 | 15797 | } |
e6cc62c6 VS |
15798 | _ACEOF |
15799 | rm -f conftest$ac_exeext | |
15800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15801 | (eval $ac_link) 2>&5 | |
15802 | ac_status=$? | |
15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15806 | (eval $ac_try) 2>&5 | |
15807 | ac_status=$? | |
15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15809 | (exit $ac_status); }; }; then | |
15810 | ac_cv_sizeof_int=`cat conftest.val` | |
15811 | else | |
15812 | echo "$as_me: program exited with status $ac_status" >&5 | |
15813 | echo "$as_me: failed program was:" >&5 | |
15814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15815 | ||
15816 | ( exit $ac_status ) | |
15817 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15818 | See \`config.log' for more details." >&5 | |
15819 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15820 | See \`config.log' for more details." >&2;} | |
15821 | { (exit 1); exit 1; }; } | |
15822 | fi | |
32ddf007 | 15823 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15824 | fi |
15825 | fi | |
15826 | rm -f conftest.val | |
6f72b082 | 15827 | else |
a0b9e27f | 15828 | ac_cv_sizeof_int=0 |
21d1c967 | 15829 | fi |
698dcdb6 | 15830 | fi |
e6cc62c6 VS |
15831 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15832 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15833 | cat >>confdefs.h <<_ACEOF | |
15834 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15835 | _ACEOF | |
15836 | ||
15837 | ||
15838 | echo "$as_me:$LINENO: checking for long" >&5 | |
15839 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15840 | if test "${ac_cv_type_long+set}" = set; then | |
15841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15842 | else | |
15843 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15844 | /* confdefs.h. */ |
15845 | _ACEOF | |
15846 | cat confdefs.h >>conftest.$ac_ext | |
15847 | cat >>conftest.$ac_ext <<_ACEOF | |
15848 | /* end confdefs.h. */ | |
15849 | $ac_includes_default | |
15850 | int | |
15851 | main () | |
15852 | { | |
15853 | if ((long *) 0) | |
15854 | return 0; | |
15855 | if (sizeof (long)) | |
15856 | return 0; | |
15857 | ; | |
15858 | return 0; | |
15859 | } | |
15860 | _ACEOF | |
15861 | rm -f conftest.$ac_objext | |
15862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15863 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15864 | ac_status=$? |
32ddf007 VS |
15865 | grep -v '^ *+' conftest.er1 >conftest.err |
15866 | rm -f conftest.er1 | |
15867 | cat conftest.err >&5 | |
e6cc62c6 VS |
15868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15869 | (exit $ac_status); } && | |
e1293dcf | 15870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15872 | (eval $ac_try) 2>&5 | |
15873 | ac_status=$? | |
15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15875 | (exit $ac_status); }; } && | |
15876 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; }; then | |
15882 | ac_cv_type_long=yes | |
15883 | else | |
15884 | echo "$as_me: failed program was:" >&5 | |
15885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15886 | ||
15887 | ac_cv_type_long=no | |
15888 | fi | |
32ddf007 | 15889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15890 | fi |
15891 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15892 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15893 | ||
15894 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15895 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15896 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15898 | else | |
15899 | if test "$ac_cv_type_long" = yes; then | |
15900 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15901 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15902 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15903 | # This bug is HP SR number 8606223364. | |
15904 | if test "$cross_compiling" = yes; then | |
15905 | # Depending upon the size, compute the lo and hi bounds. | |
15906 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15907 | /* confdefs.h. */ |
15908 | _ACEOF | |
15909 | cat confdefs.h >>conftest.$ac_ext | |
15910 | cat >>conftest.$ac_ext <<_ACEOF | |
15911 | /* end confdefs.h. */ | |
15912 | $ac_includes_default | |
15913 | int | |
15914 | main () | |
15915 | { | |
15916 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15917 | test_array [0] = 0 | |
15918 | ||
15919 | ; | |
15920 | return 0; | |
15921 | } | |
15922 | _ACEOF | |
15923 | rm -f conftest.$ac_objext | |
15924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15925 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15926 | ac_status=$? |
32ddf007 VS |
15927 | grep -v '^ *+' conftest.er1 >conftest.err |
15928 | rm -f conftest.er1 | |
15929 | cat conftest.err >&5 | |
e6cc62c6 VS |
15930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15931 | (exit $ac_status); } && | |
e1293dcf | 15932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15934 | (eval $ac_try) 2>&5 | |
15935 | ac_status=$? | |
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15937 | (exit $ac_status); }; } && | |
15938 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15940 | (eval $ac_try) 2>&5 | |
15941 | ac_status=$? | |
15942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15943 | (exit $ac_status); }; }; then | |
15944 | ac_lo=0 ac_mid=0 | |
15945 | while :; do | |
15946 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15947 | /* confdefs.h. */ |
15948 | _ACEOF | |
15949 | cat confdefs.h >>conftest.$ac_ext | |
15950 | cat >>conftest.$ac_ext <<_ACEOF | |
15951 | /* end confdefs.h. */ | |
15952 | $ac_includes_default | |
15953 | int | |
15954 | main () | |
15955 | { | |
15956 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15957 | test_array [0] = 0 | |
4f14bcd8 | 15958 | |
e6cc62c6 VS |
15959 | ; |
15960 | return 0; | |
15961 | } | |
15962 | _ACEOF | |
15963 | rm -f conftest.$ac_objext | |
15964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15965 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15966 | ac_status=$? |
32ddf007 VS |
15967 | grep -v '^ *+' conftest.er1 >conftest.err |
15968 | rm -f conftest.er1 | |
15969 | cat conftest.err >&5 | |
e6cc62c6 VS |
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15971 | (exit $ac_status); } && | |
e1293dcf | 15972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
15973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15974 | (eval $ac_try) 2>&5 | |
15975 | ac_status=$? | |
15976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15977 | (exit $ac_status); }; } && | |
15978 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15980 | (eval $ac_try) 2>&5 | |
15981 | ac_status=$? | |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15983 | (exit $ac_status); }; }; then | |
15984 | ac_hi=$ac_mid; break | |
15985 | else | |
15986 | echo "$as_me: failed program was:" >&5 | |
15987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15988 | ||
15989 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15990 | if test $ac_lo -le $ac_mid; then |
15991 | ac_lo= ac_hi= | |
15992 | break | |
15993 | fi | |
15994 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15995 | fi |
32ddf007 | 15996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15997 | done |
15998 | else | |
15999 | echo "$as_me: failed program was:" >&5 | |
16000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16001 | ||
16002 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16003 | /* confdefs.h. */ |
16004 | _ACEOF | |
16005 | cat confdefs.h >>conftest.$ac_ext | |
16006 | cat >>conftest.$ac_ext <<_ACEOF | |
16007 | /* end confdefs.h. */ | |
16008 | $ac_includes_default | |
16009 | int | |
16010 | main () | |
16011 | { | |
16012 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16013 | test_array [0] = 0 | |
4f14bcd8 | 16014 | |
e6cc62c6 VS |
16015 | ; |
16016 | return 0; | |
16017 | } | |
16018 | _ACEOF | |
16019 | rm -f conftest.$ac_objext | |
16020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16021 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16022 | ac_status=$? |
32ddf007 VS |
16023 | grep -v '^ *+' conftest.er1 >conftest.err |
16024 | rm -f conftest.er1 | |
16025 | cat conftest.err >&5 | |
e6cc62c6 VS |
16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16027 | (exit $ac_status); } && | |
e1293dcf | 16028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16030 | (eval $ac_try) 2>&5 | |
16031 | ac_status=$? | |
16032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16033 | (exit $ac_status); }; } && | |
16034 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16036 | (eval $ac_try) 2>&5 | |
16037 | ac_status=$? | |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16039 | (exit $ac_status); }; }; then | |
16040 | ac_hi=-1 ac_mid=-1 | |
16041 | while :; do | |
16042 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16043 | /* confdefs.h. */ |
16044 | _ACEOF | |
16045 | cat confdefs.h >>conftest.$ac_ext | |
16046 | cat >>conftest.$ac_ext <<_ACEOF | |
16047 | /* end confdefs.h. */ | |
16048 | $ac_includes_default | |
16049 | int | |
16050 | main () | |
16051 | { | |
16052 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16053 | test_array [0] = 0 | |
5c6fa7d2 | 16054 | |
e6cc62c6 VS |
16055 | ; |
16056 | return 0; | |
16057 | } | |
16058 | _ACEOF | |
16059 | rm -f conftest.$ac_objext | |
16060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16061 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16062 | ac_status=$? |
32ddf007 VS |
16063 | grep -v '^ *+' conftest.er1 >conftest.err |
16064 | rm -f conftest.er1 | |
16065 | cat conftest.err >&5 | |
e6cc62c6 VS |
16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16067 | (exit $ac_status); } && | |
e1293dcf | 16068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16070 | (eval $ac_try) 2>&5 | |
16071 | ac_status=$? | |
16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16073 | (exit $ac_status); }; } && | |
16074 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16076 | (eval $ac_try) 2>&5 | |
16077 | ac_status=$? | |
16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16079 | (exit $ac_status); }; }; then | |
16080 | ac_lo=$ac_mid; break | |
16081 | else | |
16082 | echo "$as_me: failed program was:" >&5 | |
16083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16084 | ||
16085 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16086 | if test $ac_mid -le $ac_hi; then |
16087 | ac_lo= ac_hi= | |
16088 | break | |
16089 | fi | |
16090 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16091 | fi |
32ddf007 | 16092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16093 | done |
247f5006 | 16094 | else |
e6cc62c6 VS |
16095 | echo "$as_me: failed program was:" >&5 |
16096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16097 | ||
16098 | ac_lo= ac_hi= | |
16099 | fi | |
32ddf007 | 16100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16101 | fi |
32ddf007 | 16102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16103 | # Binary search between lo and hi bounds. |
16104 | while test "x$ac_lo" != "x$ac_hi"; do | |
16105 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16106 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16107 | /* confdefs.h. */ |
16108 | _ACEOF | |
16109 | cat confdefs.h >>conftest.$ac_ext | |
16110 | cat >>conftest.$ac_ext <<_ACEOF | |
16111 | /* end confdefs.h. */ | |
16112 | $ac_includes_default | |
16113 | int | |
16114 | main () | |
16115 | { | |
16116 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16117 | test_array [0] = 0 | |
16118 | ||
16119 | ; | |
16120 | return 0; | |
16121 | } | |
16122 | _ACEOF | |
16123 | rm -f conftest.$ac_objext | |
16124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16125 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16126 | ac_status=$? |
32ddf007 VS |
16127 | grep -v '^ *+' conftest.er1 >conftest.err |
16128 | rm -f conftest.er1 | |
16129 | cat conftest.err >&5 | |
e6cc62c6 VS |
16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16131 | (exit $ac_status); } && | |
e1293dcf | 16132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16134 | (eval $ac_try) 2>&5 | |
16135 | ac_status=$? | |
16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16137 | (exit $ac_status); }; } && | |
16138 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16140 | (eval $ac_try) 2>&5 | |
16141 | ac_status=$? | |
16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16143 | (exit $ac_status); }; }; then | |
16144 | ac_hi=$ac_mid | |
16145 | else | |
16146 | echo "$as_me: failed program was:" >&5 | |
16147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16148 | ||
16149 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16150 | fi | |
32ddf007 | 16151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16152 | done |
16153 | case $ac_lo in | |
16154 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16155 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16156 | See \`config.log' for more details." >&5 | |
16157 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16158 | See \`config.log' for more details." >&2;} | |
16159 | { (exit 1); exit 1; }; } ;; | |
16160 | esac | |
247f5006 | 16161 | else |
e6cc62c6 | 16162 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
16163 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16164 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
16165 | { (exit 1); exit 1; }; } |
16166 | else | |
16167 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16168 | /* confdefs.h. */ |
16169 | _ACEOF | |
16170 | cat confdefs.h >>conftest.$ac_ext | |
16171 | cat >>conftest.$ac_ext <<_ACEOF | |
16172 | /* end confdefs.h. */ | |
16173 | $ac_includes_default | |
16174 | long longval () { return (long) (sizeof (long)); } | |
16175 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 16176 | #include <stdio.h> |
e6cc62c6 VS |
16177 | #include <stdlib.h> |
16178 | int | |
16179 | main () | |
247f5006 | 16180 | { |
e6cc62c6 VS |
16181 | |
16182 | FILE *f = fopen ("conftest.val", "w"); | |
16183 | if (! f) | |
16184 | exit (1); | |
16185 | if (((long) (sizeof (long))) < 0) | |
16186 | { | |
16187 | long i = longval (); | |
16188 | if (i != ((long) (sizeof (long)))) | |
16189 | exit (1); | |
16190 | fprintf (f, "%ld\n", i); | |
16191 | } | |
16192 | else | |
16193 | { | |
16194 | unsigned long i = ulongval (); | |
16195 | if (i != ((long) (sizeof (long)))) | |
16196 | exit (1); | |
16197 | fprintf (f, "%lu\n", i); | |
16198 | } | |
16199 | exit (ferror (f) || fclose (f) != 0); | |
16200 | ||
16201 | ; | |
16202 | return 0; | |
247f5006 | 16203 | } |
e6cc62c6 VS |
16204 | _ACEOF |
16205 | rm -f conftest$ac_exeext | |
16206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16207 | (eval $ac_link) 2>&5 | |
16208 | ac_status=$? | |
16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16212 | (eval $ac_try) 2>&5 | |
16213 | ac_status=$? | |
16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16215 | (exit $ac_status); }; }; then | |
16216 | ac_cv_sizeof_long=`cat conftest.val` | |
16217 | else | |
16218 | echo "$as_me: program exited with status $ac_status" >&5 | |
16219 | echo "$as_me: failed program was:" >&5 | |
16220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16221 | ||
16222 | ( exit $ac_status ) | |
16223 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16224 | See \`config.log' for more details." >&5 | |
16225 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16226 | See \`config.log' for more details." >&2;} | |
16227 | { (exit 1); exit 1; }; } | |
16228 | fi | |
32ddf007 | 16229 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16230 | fi |
16231 | fi | |
16232 | rm -f conftest.val | |
247f5006 | 16233 | else |
a0b9e27f | 16234 | ac_cv_sizeof_long=0 |
247f5006 | 16235 | fi |
247f5006 | 16236 | fi |
e6cc62c6 VS |
16237 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16238 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16239 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 16240 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 16241 | _ACEOF |
247f5006 | 16242 | |
a0b9e27f | 16243 | |
ecfd48ca VZ |
16244 | echo "$as_me:$LINENO: checking for size_t" >&5 |
16245 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16246 | if test "${ac_cv_type_size_t+set}" = set; then | |
16247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16248 | else | |
16249 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16250 | /* confdefs.h. */ |
16251 | _ACEOF | |
16252 | cat confdefs.h >>conftest.$ac_ext | |
16253 | cat >>conftest.$ac_ext <<_ACEOF | |
16254 | /* end confdefs.h. */ | |
16255 | $ac_includes_default | |
16256 | int | |
16257 | main () | |
16258 | { | |
16259 | if ((size_t *) 0) | |
16260 | return 0; | |
16261 | if (sizeof (size_t)) | |
16262 | return 0; | |
16263 | ; | |
16264 | return 0; | |
16265 | } | |
16266 | _ACEOF | |
16267 | rm -f conftest.$ac_objext | |
16268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16269 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16270 | ac_status=$? |
32ddf007 VS |
16271 | grep -v '^ *+' conftest.er1 >conftest.err |
16272 | rm -f conftest.er1 | |
16273 | cat conftest.err >&5 | |
ecfd48ca VZ |
16274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16275 | (exit $ac_status); } && | |
e1293dcf | 16276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16278 | (eval $ac_try) 2>&5 | |
16279 | ac_status=$? | |
16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16281 | (exit $ac_status); }; } && | |
16282 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16284 | (eval $ac_try) 2>&5 | |
16285 | ac_status=$? | |
16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16287 | (exit $ac_status); }; }; then | |
16288 | ac_cv_type_size_t=yes | |
16289 | else | |
16290 | echo "$as_me: failed program was:" >&5 | |
16291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16292 | ||
16293 | ac_cv_type_size_t=no | |
16294 | fi | |
32ddf007 | 16295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16296 | fi |
16297 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16298 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16299 | ||
16300 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16301 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16302 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16304 | else | |
16305 | if test "$ac_cv_type_size_t" = yes; then | |
16306 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16307 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16308 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16309 | # This bug is HP SR number 8606223364. | |
16310 | if test "$cross_compiling" = yes; then | |
16311 | # Depending upon the size, compute the lo and hi bounds. | |
16312 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16313 | /* confdefs.h. */ |
16314 | _ACEOF | |
16315 | cat confdefs.h >>conftest.$ac_ext | |
16316 | cat >>conftest.$ac_ext <<_ACEOF | |
16317 | /* end confdefs.h. */ | |
16318 | $ac_includes_default | |
16319 | int | |
16320 | main () | |
16321 | { | |
16322 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16323 | test_array [0] = 0 | |
16324 | ||
16325 | ; | |
16326 | return 0; | |
16327 | } | |
16328 | _ACEOF | |
16329 | rm -f conftest.$ac_objext | |
16330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16331 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16332 | ac_status=$? |
32ddf007 VS |
16333 | grep -v '^ *+' conftest.er1 >conftest.err |
16334 | rm -f conftest.er1 | |
16335 | cat conftest.err >&5 | |
ecfd48ca VZ |
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16337 | (exit $ac_status); } && | |
e1293dcf | 16338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16340 | (eval $ac_try) 2>&5 | |
16341 | ac_status=$? | |
16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16343 | (exit $ac_status); }; } && | |
16344 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16346 | (eval $ac_try) 2>&5 | |
16347 | ac_status=$? | |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16349 | (exit $ac_status); }; }; then | |
16350 | ac_lo=0 ac_mid=0 | |
16351 | while :; do | |
16352 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16353 | /* confdefs.h. */ |
16354 | _ACEOF | |
16355 | cat confdefs.h >>conftest.$ac_ext | |
16356 | cat >>conftest.$ac_ext <<_ACEOF | |
16357 | /* end confdefs.h. */ | |
16358 | $ac_includes_default | |
16359 | int | |
16360 | main () | |
16361 | { | |
16362 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16363 | test_array [0] = 0 | |
16364 | ||
16365 | ; | |
16366 | return 0; | |
16367 | } | |
16368 | _ACEOF | |
16369 | rm -f conftest.$ac_objext | |
16370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16371 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16372 | ac_status=$? |
32ddf007 VS |
16373 | grep -v '^ *+' conftest.er1 >conftest.err |
16374 | rm -f conftest.er1 | |
16375 | cat conftest.err >&5 | |
ecfd48ca VZ |
16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16377 | (exit $ac_status); } && | |
e1293dcf | 16378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16380 | (eval $ac_try) 2>&5 | |
16381 | ac_status=$? | |
16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16383 | (exit $ac_status); }; } && | |
16384 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16386 | (eval $ac_try) 2>&5 | |
16387 | ac_status=$? | |
16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16389 | (exit $ac_status); }; }; then | |
16390 | ac_hi=$ac_mid; break | |
16391 | else | |
16392 | echo "$as_me: failed program was:" >&5 | |
16393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16394 | ||
16395 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16396 | if test $ac_lo -le $ac_mid; then |
16397 | ac_lo= ac_hi= | |
16398 | break | |
16399 | fi | |
16400 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
ecfd48ca | 16401 | fi |
32ddf007 | 16402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16403 | done |
16404 | else | |
16405 | echo "$as_me: failed program was:" >&5 | |
16406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16407 | ||
16408 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16409 | /* confdefs.h. */ |
16410 | _ACEOF | |
16411 | cat confdefs.h >>conftest.$ac_ext | |
16412 | cat >>conftest.$ac_ext <<_ACEOF | |
16413 | /* end confdefs.h. */ | |
16414 | $ac_includes_default | |
16415 | int | |
16416 | main () | |
16417 | { | |
16418 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16419 | test_array [0] = 0 | |
16420 | ||
16421 | ; | |
16422 | return 0; | |
16423 | } | |
16424 | _ACEOF | |
16425 | rm -f conftest.$ac_objext | |
16426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16427 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16428 | ac_status=$? |
32ddf007 VS |
16429 | grep -v '^ *+' conftest.er1 >conftest.err |
16430 | rm -f conftest.er1 | |
16431 | cat conftest.err >&5 | |
ecfd48ca VZ |
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16433 | (exit $ac_status); } && | |
e1293dcf | 16434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16436 | (eval $ac_try) 2>&5 | |
16437 | ac_status=$? | |
16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16439 | (exit $ac_status); }; } && | |
16440 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; }; then | |
16446 | ac_hi=-1 ac_mid=-1 | |
16447 | while :; do | |
16448 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16449 | /* confdefs.h. */ |
16450 | _ACEOF | |
16451 | cat confdefs.h >>conftest.$ac_ext | |
16452 | cat >>conftest.$ac_ext <<_ACEOF | |
16453 | /* end confdefs.h. */ | |
16454 | $ac_includes_default | |
16455 | int | |
16456 | main () | |
16457 | { | |
16458 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16459 | test_array [0] = 0 | |
16460 | ||
16461 | ; | |
16462 | return 0; | |
16463 | } | |
16464 | _ACEOF | |
16465 | rm -f conftest.$ac_objext | |
16466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16467 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16468 | ac_status=$? |
32ddf007 VS |
16469 | grep -v '^ *+' conftest.er1 >conftest.err |
16470 | rm -f conftest.er1 | |
16471 | cat conftest.err >&5 | |
ecfd48ca VZ |
16472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16473 | (exit $ac_status); } && | |
e1293dcf | 16474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16476 | (eval $ac_try) 2>&5 | |
16477 | ac_status=$? | |
16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16479 | (exit $ac_status); }; } && | |
16480 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16482 | (eval $ac_try) 2>&5 | |
16483 | ac_status=$? | |
16484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16485 | (exit $ac_status); }; }; then | |
16486 | ac_lo=$ac_mid; break | |
16487 | else | |
16488 | echo "$as_me: failed program was:" >&5 | |
16489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16490 | ||
16491 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16492 | if test $ac_mid -le $ac_hi; then |
16493 | ac_lo= ac_hi= | |
16494 | break | |
16495 | fi | |
16496 | ac_mid=`expr 2 '*' $ac_mid` | |
ecfd48ca | 16497 | fi |
32ddf007 | 16498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16499 | done |
16500 | else | |
16501 | echo "$as_me: failed program was:" >&5 | |
16502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16503 | ||
16504 | ac_lo= ac_hi= | |
16505 | fi | |
32ddf007 | 16506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca | 16507 | fi |
32ddf007 | 16508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16509 | # Binary search between lo and hi bounds. |
16510 | while test "x$ac_lo" != "x$ac_hi"; do | |
16511 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16512 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16513 | /* confdefs.h. */ |
16514 | _ACEOF | |
16515 | cat confdefs.h >>conftest.$ac_ext | |
16516 | cat >>conftest.$ac_ext <<_ACEOF | |
16517 | /* end confdefs.h. */ | |
16518 | $ac_includes_default | |
16519 | int | |
16520 | main () | |
16521 | { | |
16522 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16523 | test_array [0] = 0 | |
16524 | ||
16525 | ; | |
16526 | return 0; | |
16527 | } | |
16528 | _ACEOF | |
16529 | rm -f conftest.$ac_objext | |
16530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16531 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16532 | ac_status=$? |
32ddf007 VS |
16533 | grep -v '^ *+' conftest.er1 >conftest.err |
16534 | rm -f conftest.er1 | |
16535 | cat conftest.err >&5 | |
ecfd48ca VZ |
16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16537 | (exit $ac_status); } && | |
e1293dcf | 16538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; } && | |
16544 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16546 | (eval $ac_try) 2>&5 | |
16547 | ac_status=$? | |
16548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16549 | (exit $ac_status); }; }; then | |
16550 | ac_hi=$ac_mid | |
16551 | else | |
16552 | echo "$as_me: failed program was:" >&5 | |
16553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16554 | ||
16555 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16556 | fi | |
32ddf007 | 16557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16558 | done |
16559 | case $ac_lo in | |
16560 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16561 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16562 | See \`config.log' for more details." >&5 | |
16563 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16564 | See \`config.log' for more details." >&2;} | |
16565 | { (exit 1); exit 1; }; } ;; | |
16566 | esac | |
16567 | else | |
16568 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
16569 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16570 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
ecfd48ca VZ |
16571 | { (exit 1); exit 1; }; } |
16572 | else | |
16573 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16574 | /* confdefs.h. */ |
16575 | _ACEOF | |
16576 | cat confdefs.h >>conftest.$ac_ext | |
16577 | cat >>conftest.$ac_ext <<_ACEOF | |
16578 | /* end confdefs.h. */ | |
16579 | $ac_includes_default | |
16580 | long longval () { return (long) (sizeof (size_t)); } | |
16581 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16582 | #include <stdio.h> | |
16583 | #include <stdlib.h> | |
16584 | int | |
16585 | main () | |
16586 | { | |
16587 | ||
16588 | FILE *f = fopen ("conftest.val", "w"); | |
16589 | if (! f) | |
16590 | exit (1); | |
16591 | if (((long) (sizeof (size_t))) < 0) | |
16592 | { | |
16593 | long i = longval (); | |
16594 | if (i != ((long) (sizeof (size_t)))) | |
16595 | exit (1); | |
16596 | fprintf (f, "%ld\n", i); | |
16597 | } | |
16598 | else | |
16599 | { | |
16600 | unsigned long i = ulongval (); | |
16601 | if (i != ((long) (sizeof (size_t)))) | |
16602 | exit (1); | |
16603 | fprintf (f, "%lu\n", i); | |
16604 | } | |
16605 | exit (ferror (f) || fclose (f) != 0); | |
16606 | ||
16607 | ; | |
16608 | return 0; | |
16609 | } | |
16610 | _ACEOF | |
16611 | rm -f conftest$ac_exeext | |
16612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16613 | (eval $ac_link) 2>&5 | |
16614 | ac_status=$? | |
16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16616 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; }; then | |
16622 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16623 | else | |
16624 | echo "$as_me: program exited with status $ac_status" >&5 | |
16625 | echo "$as_me: failed program was:" >&5 | |
16626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16627 | ||
16628 | ( exit $ac_status ) | |
16629 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16630 | See \`config.log' for more details." >&5 | |
16631 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16632 | See \`config.log' for more details." >&2;} | |
16633 | { (exit 1); exit 1; }; } | |
16634 | fi | |
32ddf007 | 16635 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16636 | fi |
16637 | fi | |
16638 | rm -f conftest.val | |
16639 | else | |
16640 | ac_cv_sizeof_size_t=0 | |
16641 | fi | |
16642 | fi | |
16643 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16644 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16645 | cat >>confdefs.h <<_ACEOF | |
16646 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16647 | _ACEOF | |
16648 | ||
16649 | ||
a0b9e27f MB |
16650 | |
16651 | case "${host}" in | |
16652 | arm-*-linux* ) | |
e6cc62c6 VS |
16653 | echo "$as_me:$LINENO: checking for long long" >&5 |
16654 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16655 | if test "${ac_cv_type_long_long+set}" = set; then | |
16656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16657 | else | |
16658 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16659 | /* confdefs.h. */ |
16660 | _ACEOF | |
16661 | cat confdefs.h >>conftest.$ac_ext | |
16662 | cat >>conftest.$ac_ext <<_ACEOF | |
16663 | /* end confdefs.h. */ | |
16664 | $ac_includes_default | |
16665 | int | |
16666 | main () | |
16667 | { | |
16668 | if ((long long *) 0) | |
16669 | return 0; | |
16670 | if (sizeof (long long)) | |
16671 | return 0; | |
16672 | ; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
16676 | rm -f conftest.$ac_objext | |
16677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16678 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16679 | ac_status=$? |
32ddf007 VS |
16680 | grep -v '^ *+' conftest.er1 >conftest.err |
16681 | rm -f conftest.er1 | |
16682 | cat conftest.err >&5 | |
e6cc62c6 VS |
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16684 | (exit $ac_status); } && | |
e1293dcf | 16685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16687 | (eval $ac_try) 2>&5 | |
16688 | ac_status=$? | |
16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16690 | (exit $ac_status); }; } && | |
16691 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16693 | (eval $ac_try) 2>&5 | |
16694 | ac_status=$? | |
16695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16696 | (exit $ac_status); }; }; then | |
16697 | ac_cv_type_long_long=yes | |
16698 | else | |
16699 | echo "$as_me: failed program was:" >&5 | |
16700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16701 | ||
16702 | ac_cv_type_long_long=no | |
16703 | fi | |
32ddf007 | 16704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16705 | fi |
16706 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16707 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16708 | ||
16709 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16710 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16711 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16713 | else | |
16714 | if test "$ac_cv_type_long_long" = yes; then | |
16715 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16716 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16717 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16718 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16719 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16720 | # Depending upon the size, compute the lo and hi bounds. |
16721 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16722 | /* confdefs.h. */ |
16723 | _ACEOF | |
16724 | cat confdefs.h >>conftest.$ac_ext | |
16725 | cat >>conftest.$ac_ext <<_ACEOF | |
16726 | /* end confdefs.h. */ | |
16727 | $ac_includes_default | |
16728 | int | |
16729 | main () | |
16730 | { | |
16731 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16732 | test_array [0] = 0 | |
16733 | ||
16734 | ; | |
16735 | return 0; | |
16736 | } | |
16737 | _ACEOF | |
16738 | rm -f conftest.$ac_objext | |
16739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16740 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16741 | ac_status=$? |
32ddf007 VS |
16742 | grep -v '^ *+' conftest.er1 >conftest.err |
16743 | rm -f conftest.er1 | |
16744 | cat conftest.err >&5 | |
e6cc62c6 VS |
16745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16746 | (exit $ac_status); } && | |
e1293dcf | 16747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16749 | (eval $ac_try) 2>&5 | |
16750 | ac_status=$? | |
16751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16752 | (exit $ac_status); }; } && | |
16753 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16755 | (eval $ac_try) 2>&5 | |
16756 | ac_status=$? | |
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16758 | (exit $ac_status); }; }; then | |
16759 | ac_lo=0 ac_mid=0 | |
16760 | while :; do | |
16761 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16762 | /* confdefs.h. */ |
16763 | _ACEOF | |
16764 | cat confdefs.h >>conftest.$ac_ext | |
16765 | cat >>conftest.$ac_ext <<_ACEOF | |
16766 | /* end confdefs.h. */ | |
16767 | $ac_includes_default | |
16768 | int | |
16769 | main () | |
16770 | { | |
16771 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16772 | test_array [0] = 0 | |
16773 | ||
16774 | ; | |
16775 | return 0; | |
16776 | } | |
16777 | _ACEOF | |
16778 | rm -f conftest.$ac_objext | |
16779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16780 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16781 | ac_status=$? |
32ddf007 VS |
16782 | grep -v '^ *+' conftest.er1 >conftest.err |
16783 | rm -f conftest.er1 | |
16784 | cat conftest.err >&5 | |
e6cc62c6 VS |
16785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16786 | (exit $ac_status); } && | |
e1293dcf | 16787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16789 | (eval $ac_try) 2>&5 | |
16790 | ac_status=$? | |
16791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16792 | (exit $ac_status); }; } && | |
16793 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16795 | (eval $ac_try) 2>&5 | |
16796 | ac_status=$? | |
16797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16798 | (exit $ac_status); }; }; then | |
16799 | ac_hi=$ac_mid; break | |
16800 | else | |
16801 | echo "$as_me: failed program was:" >&5 | |
16802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16803 | ||
16804 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16805 | if test $ac_lo -le $ac_mid; then |
16806 | ac_lo= ac_hi= | |
16807 | break | |
16808 | fi | |
16809 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16810 | fi |
32ddf007 | 16811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16812 | done |
16813 | else | |
16814 | echo "$as_me: failed program was:" >&5 | |
16815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16816 | ||
16817 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16818 | /* confdefs.h. */ |
16819 | _ACEOF | |
16820 | cat confdefs.h >>conftest.$ac_ext | |
16821 | cat >>conftest.$ac_ext <<_ACEOF | |
16822 | /* end confdefs.h. */ | |
16823 | $ac_includes_default | |
16824 | int | |
16825 | main () | |
16826 | { | |
16827 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16828 | test_array [0] = 0 | |
16829 | ||
16830 | ; | |
16831 | return 0; | |
16832 | } | |
16833 | _ACEOF | |
16834 | rm -f conftest.$ac_objext | |
16835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16836 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16837 | ac_status=$? |
32ddf007 VS |
16838 | grep -v '^ *+' conftest.er1 >conftest.err |
16839 | rm -f conftest.er1 | |
16840 | cat conftest.err >&5 | |
e6cc62c6 VS |
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16842 | (exit $ac_status); } && | |
e1293dcf | 16843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16845 | (eval $ac_try) 2>&5 | |
16846 | ac_status=$? | |
16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16848 | (exit $ac_status); }; } && | |
16849 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16854 | (exit $ac_status); }; }; then | |
16855 | ac_hi=-1 ac_mid=-1 | |
16856 | while :; do | |
16857 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16858 | /* confdefs.h. */ |
16859 | _ACEOF | |
16860 | cat confdefs.h >>conftest.$ac_ext | |
16861 | cat >>conftest.$ac_ext <<_ACEOF | |
16862 | /* end confdefs.h. */ | |
16863 | $ac_includes_default | |
16864 | int | |
16865 | main () | |
16866 | { | |
16867 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16868 | test_array [0] = 0 | |
16869 | ||
16870 | ; | |
16871 | return 0; | |
16872 | } | |
16873 | _ACEOF | |
16874 | rm -f conftest.$ac_objext | |
16875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16876 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16877 | ac_status=$? |
32ddf007 VS |
16878 | grep -v '^ *+' conftest.er1 >conftest.err |
16879 | rm -f conftest.er1 | |
16880 | cat conftest.err >&5 | |
e6cc62c6 VS |
16881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16882 | (exit $ac_status); } && | |
e1293dcf | 16883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16885 | (eval $ac_try) 2>&5 | |
16886 | ac_status=$? | |
16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); }; } && | |
16889 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16891 | (eval $ac_try) 2>&5 | |
16892 | ac_status=$? | |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); }; }; then | |
16895 | ac_lo=$ac_mid; break | |
16896 | else | |
16897 | echo "$as_me: failed program was:" >&5 | |
16898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16899 | ||
16900 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16901 | if test $ac_mid -le $ac_hi; then |
16902 | ac_lo= ac_hi= | |
16903 | break | |
16904 | fi | |
16905 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16906 | fi |
32ddf007 | 16907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16908 | done |
16909 | else | |
16910 | echo "$as_me: failed program was:" >&5 | |
16911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16912 | ||
16913 | ac_lo= ac_hi= | |
16914 | fi | |
32ddf007 | 16915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16916 | fi |
32ddf007 | 16917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16918 | # Binary search between lo and hi bounds. |
16919 | while test "x$ac_lo" != "x$ac_hi"; do | |
16920 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16921 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16922 | /* confdefs.h. */ |
16923 | _ACEOF | |
16924 | cat confdefs.h >>conftest.$ac_ext | |
16925 | cat >>conftest.$ac_ext <<_ACEOF | |
16926 | /* end confdefs.h. */ | |
16927 | $ac_includes_default | |
16928 | int | |
16929 | main () | |
16930 | { | |
16931 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16932 | test_array [0] = 0 | |
16933 | ||
16934 | ; | |
16935 | return 0; | |
16936 | } | |
16937 | _ACEOF | |
16938 | rm -f conftest.$ac_objext | |
16939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16940 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16941 | ac_status=$? |
32ddf007 VS |
16942 | grep -v '^ *+' conftest.er1 >conftest.err |
16943 | rm -f conftest.er1 | |
16944 | cat conftest.err >&5 | |
e6cc62c6 VS |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16946 | (exit $ac_status); } && | |
e1293dcf | 16947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; } && | |
16953 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16955 | (eval $ac_try) 2>&5 | |
16956 | ac_status=$? | |
16957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16958 | (exit $ac_status); }; }; then | |
16959 | ac_hi=$ac_mid | |
16960 | else | |
16961 | echo "$as_me: failed program was:" >&5 | |
16962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16963 | ||
16964 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16965 | fi | |
32ddf007 | 16966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16967 | done |
16968 | case $ac_lo in | |
16969 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16970 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16971 | See \`config.log' for more details." >&5 | |
16972 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16973 | See \`config.log' for more details." >&2;} | |
16974 | { (exit 1); exit 1; }; } ;; | |
16975 | esac | |
a0b9e27f | 16976 | else |
e6cc62c6 | 16977 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
16978 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16979 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
16980 | { (exit 1); exit 1; }; } |
16981 | else | |
16982 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16983 | /* confdefs.h. */ |
16984 | _ACEOF | |
16985 | cat confdefs.h >>conftest.$ac_ext | |
16986 | cat >>conftest.$ac_ext <<_ACEOF | |
16987 | /* end confdefs.h. */ | |
16988 | $ac_includes_default | |
16989 | long longval () { return (long) (sizeof (long long)); } | |
16990 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 16991 | #include <stdio.h> |
e6cc62c6 VS |
16992 | #include <stdlib.h> |
16993 | int | |
16994 | main () | |
247f5006 | 16995 | { |
e6cc62c6 VS |
16996 | |
16997 | FILE *f = fopen ("conftest.val", "w"); | |
16998 | if (! f) | |
16999 | exit (1); | |
17000 | if (((long) (sizeof (long long))) < 0) | |
17001 | { | |
17002 | long i = longval (); | |
17003 | if (i != ((long) (sizeof (long long)))) | |
17004 | exit (1); | |
17005 | fprintf (f, "%ld\n", i); | |
17006 | } | |
17007 | else | |
17008 | { | |
17009 | unsigned long i = ulongval (); | |
17010 | if (i != ((long) (sizeof (long long)))) | |
17011 | exit (1); | |
17012 | fprintf (f, "%lu\n", i); | |
17013 | } | |
17014 | exit (ferror (f) || fclose (f) != 0); | |
17015 | ||
17016 | ; | |
17017 | return 0; | |
247f5006 | 17018 | } |
e6cc62c6 VS |
17019 | _ACEOF |
17020 | rm -f conftest$ac_exeext | |
17021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17022 | (eval $ac_link) 2>&5 | |
17023 | ac_status=$? | |
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17027 | (eval $ac_try) 2>&5 | |
17028 | ac_status=$? | |
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17030 | (exit $ac_status); }; }; then | |
17031 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17032 | else | |
17033 | echo "$as_me: program exited with status $ac_status" >&5 | |
17034 | echo "$as_me: failed program was:" >&5 | |
17035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17036 | ||
17037 | ( exit $ac_status ) | |
17038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17039 | See \`config.log' for more details." >&5 | |
17040 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17041 | See \`config.log' for more details." >&2;} | |
17042 | { (exit 1); exit 1; }; } | |
17043 | fi | |
32ddf007 | 17044 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17045 | fi |
17046 | fi | |
17047 | rm -f conftest.val | |
7b4a847f | 17048 | else |
a0b9e27f | 17049 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
17050 | fi |
17051 | fi | |
e6cc62c6 VS |
17052 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17053 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17054 | cat >>confdefs.h <<_ACEOF | |
17055 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17056 | _ACEOF | |
17057 | ||
17058 | ||
17059 | ;; | |
17060 | *-hp-hpux* ) | |
17061 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17062 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17063 | if test "${ac_cv_type_long_long+set}" = set; then | |
17064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17065 | else | |
17066 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17067 | /* confdefs.h. */ |
17068 | _ACEOF | |
17069 | cat confdefs.h >>conftest.$ac_ext | |
17070 | cat >>conftest.$ac_ext <<_ACEOF | |
17071 | /* end confdefs.h. */ | |
17072 | $ac_includes_default | |
17073 | int | |
17074 | main () | |
17075 | { | |
17076 | if ((long long *) 0) | |
17077 | return 0; | |
17078 | if (sizeof (long long)) | |
17079 | return 0; | |
17080 | ; | |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
17084 | rm -f conftest.$ac_objext | |
17085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17086 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17087 | ac_status=$? |
32ddf007 VS |
17088 | grep -v '^ *+' conftest.er1 >conftest.err |
17089 | rm -f conftest.er1 | |
17090 | cat conftest.err >&5 | |
e6cc62c6 VS |
17091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17092 | (exit $ac_status); } && | |
e1293dcf | 17093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17095 | (eval $ac_try) 2>&5 | |
17096 | ac_status=$? | |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17098 | (exit $ac_status); }; } && | |
17099 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; }; then | |
17105 | ac_cv_type_long_long=yes | |
17106 | else | |
17107 | echo "$as_me: failed program was:" >&5 | |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17109 | ||
17110 | ac_cv_type_long_long=no | |
17111 | fi | |
32ddf007 | 17112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17113 | fi |
17114 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17115 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17116 | ||
17117 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17118 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17119 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17121 | else | |
17122 | if test "$ac_cv_type_long_long" = yes; then | |
17123 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17126 | # This bug is HP SR number 8606223364. | |
17127 | if test "$cross_compiling" = yes; then | |
17128 | # Depending upon the size, compute the lo and hi bounds. | |
17129 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17130 | /* confdefs.h. */ |
17131 | _ACEOF | |
17132 | cat confdefs.h >>conftest.$ac_ext | |
17133 | cat >>conftest.$ac_ext <<_ACEOF | |
17134 | /* end confdefs.h. */ | |
17135 | $ac_includes_default | |
17136 | int | |
17137 | main () | |
17138 | { | |
17139 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17140 | test_array [0] = 0 | |
17141 | ||
17142 | ; | |
17143 | return 0; | |
17144 | } | |
17145 | _ACEOF | |
17146 | rm -f conftest.$ac_objext | |
17147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17148 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17149 | ac_status=$? |
32ddf007 VS |
17150 | grep -v '^ *+' conftest.er1 >conftest.err |
17151 | rm -f conftest.er1 | |
17152 | cat conftest.err >&5 | |
e6cc62c6 VS |
17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17154 | (exit $ac_status); } && | |
e1293dcf | 17155 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17157 | (eval $ac_try) 2>&5 | |
17158 | ac_status=$? | |
17159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17160 | (exit $ac_status); }; } && | |
17161 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17163 | (eval $ac_try) 2>&5 | |
17164 | ac_status=$? | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); }; }; then | |
17167 | ac_lo=0 ac_mid=0 | |
17168 | while :; do | |
17169 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17170 | /* confdefs.h. */ |
17171 | _ACEOF | |
17172 | cat confdefs.h >>conftest.$ac_ext | |
17173 | cat >>conftest.$ac_ext <<_ACEOF | |
17174 | /* end confdefs.h. */ | |
17175 | $ac_includes_default | |
17176 | int | |
17177 | main () | |
17178 | { | |
17179 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17180 | test_array [0] = 0 | |
8284b0c5 | 17181 | |
e6cc62c6 VS |
17182 | ; |
17183 | return 0; | |
17184 | } | |
17185 | _ACEOF | |
17186 | rm -f conftest.$ac_objext | |
17187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17188 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17189 | ac_status=$? |
32ddf007 VS |
17190 | grep -v '^ *+' conftest.er1 >conftest.err |
17191 | rm -f conftest.er1 | |
17192 | cat conftest.err >&5 | |
e6cc62c6 VS |
17193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17194 | (exit $ac_status); } && | |
e1293dcf | 17195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17197 | (eval $ac_try) 2>&5 | |
17198 | ac_status=$? | |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17200 | (exit $ac_status); }; } && | |
17201 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; }; then | |
17207 | ac_hi=$ac_mid; break | |
17208 | else | |
17209 | echo "$as_me: failed program was:" >&5 | |
17210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17211 | ||
17212 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17213 | if test $ac_lo -le $ac_mid; then |
17214 | ac_lo= ac_hi= | |
17215 | break | |
17216 | fi | |
17217 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 17218 | fi |
32ddf007 | 17219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17220 | done |
17221 | else | |
17222 | echo "$as_me: failed program was:" >&5 | |
17223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17224 | ||
17225 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17226 | /* confdefs.h. */ |
17227 | _ACEOF | |
17228 | cat confdefs.h >>conftest.$ac_ext | |
17229 | cat >>conftest.$ac_ext <<_ACEOF | |
17230 | /* end confdefs.h. */ | |
17231 | $ac_includes_default | |
17232 | int | |
17233 | main () | |
17234 | { | |
17235 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17236 | test_array [0] = 0 | |
a0b9e27f | 17237 | |
e6cc62c6 VS |
17238 | ; |
17239 | return 0; | |
17240 | } | |
17241 | _ACEOF | |
17242 | rm -f conftest.$ac_objext | |
17243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17244 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17245 | ac_status=$? |
32ddf007 VS |
17246 | grep -v '^ *+' conftest.er1 >conftest.err |
17247 | rm -f conftest.er1 | |
17248 | cat conftest.err >&5 | |
e6cc62c6 VS |
17249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17250 | (exit $ac_status); } && | |
e1293dcf | 17251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17253 | (eval $ac_try) 2>&5 | |
17254 | ac_status=$? | |
17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17256 | (exit $ac_status); }; } && | |
17257 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17259 | (eval $ac_try) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); }; }; then | |
17263 | ac_hi=-1 ac_mid=-1 | |
17264 | while :; do | |
17265 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17266 | /* confdefs.h. */ |
17267 | _ACEOF | |
17268 | cat confdefs.h >>conftest.$ac_ext | |
17269 | cat >>conftest.$ac_ext <<_ACEOF | |
17270 | /* end confdefs.h. */ | |
17271 | $ac_includes_default | |
17272 | int | |
17273 | main () | |
17274 | { | |
17275 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17276 | test_array [0] = 0 | |
a0b9e27f | 17277 | |
e6cc62c6 VS |
17278 | ; |
17279 | return 0; | |
17280 | } | |
17281 | _ACEOF | |
17282 | rm -f conftest.$ac_objext | |
17283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17284 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17285 | ac_status=$? |
32ddf007 VS |
17286 | grep -v '^ *+' conftest.er1 >conftest.err |
17287 | rm -f conftest.er1 | |
17288 | cat conftest.err >&5 | |
e6cc62c6 VS |
17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17290 | (exit $ac_status); } && | |
e1293dcf | 17291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17293 | (eval $ac_try) 2>&5 | |
17294 | ac_status=$? | |
17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17296 | (exit $ac_status); }; } && | |
17297 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17299 | (eval $ac_try) 2>&5 | |
17300 | ac_status=$? | |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17302 | (exit $ac_status); }; }; then | |
17303 | ac_lo=$ac_mid; break | |
17304 | else | |
17305 | echo "$as_me: failed program was:" >&5 | |
17306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17307 | ||
17308 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17309 | if test $ac_mid -le $ac_hi; then |
17310 | ac_lo= ac_hi= | |
17311 | break | |
17312 | fi | |
17313 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17314 | fi |
32ddf007 | 17315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17316 | done |
8284b0c5 | 17317 | else |
e6cc62c6 VS |
17318 | echo "$as_me: failed program was:" >&5 |
17319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17320 | ||
17321 | ac_lo= ac_hi= | |
17322 | fi | |
32ddf007 | 17323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17324 | fi |
32ddf007 | 17325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17326 | # Binary search between lo and hi bounds. |
17327 | while test "x$ac_lo" != "x$ac_hi"; do | |
17328 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17329 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17330 | /* confdefs.h. */ |
17331 | _ACEOF | |
17332 | cat confdefs.h >>conftest.$ac_ext | |
17333 | cat >>conftest.$ac_ext <<_ACEOF | |
17334 | /* end confdefs.h. */ | |
17335 | $ac_includes_default | |
17336 | int | |
17337 | main () | |
17338 | { | |
17339 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17340 | test_array [0] = 0 | |
17341 | ||
17342 | ; | |
17343 | return 0; | |
17344 | } | |
17345 | _ACEOF | |
17346 | rm -f conftest.$ac_objext | |
17347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17348 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17349 | ac_status=$? |
32ddf007 VS |
17350 | grep -v '^ *+' conftest.er1 >conftest.err |
17351 | rm -f conftest.er1 | |
17352 | cat conftest.err >&5 | |
e6cc62c6 VS |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17354 | (exit $ac_status); } && | |
e1293dcf | 17355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17357 | (eval $ac_try) 2>&5 | |
17358 | ac_status=$? | |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17360 | (exit $ac_status); }; } && | |
17361 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17363 | (eval $ac_try) 2>&5 | |
17364 | ac_status=$? | |
17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17366 | (exit $ac_status); }; }; then | |
17367 | ac_hi=$ac_mid | |
17368 | else | |
17369 | echo "$as_me: failed program was:" >&5 | |
17370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17371 | ||
17372 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17373 | fi | |
32ddf007 | 17374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17375 | done |
17376 | case $ac_lo in | |
17377 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17378 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17379 | See \`config.log' for more details." >&5 | |
17380 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17381 | See \`config.log' for more details." >&2;} | |
17382 | { (exit 1); exit 1; }; } ;; | |
17383 | esac | |
8284b0c5 | 17384 | else |
e6cc62c6 | 17385 | if test "$cross_compiling" = yes; then |
e1293dcf RL |
17386 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17387 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
17388 | { (exit 1); exit 1; }; } |
17389 | else | |
17390 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17391 | /* confdefs.h. */ |
17392 | _ACEOF | |
17393 | cat confdefs.h >>conftest.$ac_ext | |
17394 | cat >>conftest.$ac_ext <<_ACEOF | |
17395 | /* end confdefs.h. */ | |
17396 | $ac_includes_default | |
17397 | long longval () { return (long) (sizeof (long long)); } | |
17398 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 17399 | #include <stdio.h> |
e6cc62c6 VS |
17400 | #include <stdlib.h> |
17401 | int | |
17402 | main () | |
8284b0c5 | 17403 | { |
e6cc62c6 VS |
17404 | |
17405 | FILE *f = fopen ("conftest.val", "w"); | |
17406 | if (! f) | |
17407 | exit (1); | |
17408 | if (((long) (sizeof (long long))) < 0) | |
17409 | { | |
17410 | long i = longval (); | |
17411 | if (i != ((long) (sizeof (long long)))) | |
17412 | exit (1); | |
17413 | fprintf (f, "%ld\n", i); | |
17414 | } | |
17415 | else | |
17416 | { | |
17417 | unsigned long i = ulongval (); | |
17418 | if (i != ((long) (sizeof (long long)))) | |
17419 | exit (1); | |
17420 | fprintf (f, "%lu\n", i); | |
17421 | } | |
17422 | exit (ferror (f) || fclose (f) != 0); | |
17423 | ||
17424 | ; | |
17425 | return 0; | |
8284b0c5 | 17426 | } |
e6cc62c6 VS |
17427 | _ACEOF |
17428 | rm -f conftest$ac_exeext | |
17429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17430 | (eval $ac_link) 2>&5 | |
17431 | ac_status=$? | |
17432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; }; then | |
17439 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17440 | else | |
17441 | echo "$as_me: program exited with status $ac_status" >&5 | |
17442 | echo "$as_me: failed program was:" >&5 | |
17443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17444 | ||
17445 | ( exit $ac_status ) | |
17446 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17447 | See \`config.log' for more details." >&5 | |
17448 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17449 | See \`config.log' for more details." >&2;} | |
17450 | { (exit 1); exit 1; }; } | |
17451 | fi | |
32ddf007 | 17452 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17453 | fi |
17454 | fi | |
17455 | rm -f conftest.val | |
5c6fa7d2 RR |
17456 | else |
17457 | ac_cv_sizeof_long_long=0 | |
52127426 | 17458 | fi |
4f57cf11 | 17459 | fi |
e6cc62c6 VS |
17460 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17461 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17462 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 17463 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17464 | _ACEOF |
4f57cf11 GD |
17465 | |
17466 | ||
17467 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17468 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17469 | fi | |
17470 | ;; | |
17471 | * ) | |
e6cc62c6 VS |
17472 | echo "$as_me:$LINENO: checking for long long" >&5 |
17473 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17474 | if test "${ac_cv_type_long_long+set}" = set; then | |
17475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17476 | else | |
17477 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17478 | /* confdefs.h. */ |
17479 | _ACEOF | |
17480 | cat confdefs.h >>conftest.$ac_ext | |
17481 | cat >>conftest.$ac_ext <<_ACEOF | |
17482 | /* end confdefs.h. */ | |
17483 | $ac_includes_default | |
17484 | int | |
17485 | main () | |
17486 | { | |
17487 | if ((long long *) 0) | |
17488 | return 0; | |
17489 | if (sizeof (long long)) | |
17490 | return 0; | |
17491 | ; | |
17492 | return 0; | |
17493 | } | |
17494 | _ACEOF | |
17495 | rm -f conftest.$ac_objext | |
17496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17497 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17498 | ac_status=$? |
32ddf007 VS |
17499 | grep -v '^ *+' conftest.er1 >conftest.err |
17500 | rm -f conftest.er1 | |
17501 | cat conftest.err >&5 | |
e6cc62c6 VS |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17503 | (exit $ac_status); } && | |
e1293dcf | 17504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17506 | (eval $ac_try) 2>&5 | |
17507 | ac_status=$? | |
17508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17509 | (exit $ac_status); }; } && | |
17510 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17512 | (eval $ac_try) 2>&5 | |
17513 | ac_status=$? | |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17515 | (exit $ac_status); }; }; then | |
17516 | ac_cv_type_long_long=yes | |
17517 | else | |
17518 | echo "$as_me: failed program was:" >&5 | |
17519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17520 | ||
17521 | ac_cv_type_long_long=no | |
17522 | fi | |
32ddf007 | 17523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17524 | fi |
17525 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17526 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17527 | ||
17528 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17529 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17530 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17532 | else | |
17533 | if test "$ac_cv_type_long_long" = yes; then | |
17534 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17535 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17536 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17537 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 17538 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
17539 | # Depending upon the size, compute the lo and hi bounds. |
17540 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17541 | /* confdefs.h. */ |
17542 | _ACEOF | |
17543 | cat confdefs.h >>conftest.$ac_ext | |
17544 | cat >>conftest.$ac_ext <<_ACEOF | |
17545 | /* end confdefs.h. */ | |
17546 | $ac_includes_default | |
17547 | int | |
17548 | main () | |
17549 | { | |
17550 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17551 | test_array [0] = 0 | |
17552 | ||
17553 | ; | |
17554 | return 0; | |
17555 | } | |
17556 | _ACEOF | |
17557 | rm -f conftest.$ac_objext | |
17558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17559 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17560 | ac_status=$? |
32ddf007 VS |
17561 | grep -v '^ *+' conftest.er1 >conftest.err |
17562 | rm -f conftest.er1 | |
17563 | cat conftest.err >&5 | |
e6cc62c6 VS |
17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17565 | (exit $ac_status); } && | |
e1293dcf | 17566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17568 | (eval $ac_try) 2>&5 | |
17569 | ac_status=$? | |
17570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17571 | (exit $ac_status); }; } && | |
17572 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17574 | (eval $ac_try) 2>&5 | |
17575 | ac_status=$? | |
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); }; }; then | |
17578 | ac_lo=0 ac_mid=0 | |
17579 | while :; do | |
17580 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17581 | /* confdefs.h. */ |
17582 | _ACEOF | |
17583 | cat confdefs.h >>conftest.$ac_ext | |
17584 | cat >>conftest.$ac_ext <<_ACEOF | |
17585 | /* end confdefs.h. */ | |
17586 | $ac_includes_default | |
17587 | int | |
17588 | main () | |
17589 | { | |
17590 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17591 | test_array [0] = 0 | |
17592 | ||
17593 | ; | |
17594 | return 0; | |
17595 | } | |
17596 | _ACEOF | |
17597 | rm -f conftest.$ac_objext | |
17598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17599 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17600 | ac_status=$? |
32ddf007 VS |
17601 | grep -v '^ *+' conftest.er1 >conftest.err |
17602 | rm -f conftest.er1 | |
17603 | cat conftest.err >&5 | |
e6cc62c6 VS |
17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17605 | (exit $ac_status); } && | |
e1293dcf | 17606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17608 | (eval $ac_try) 2>&5 | |
17609 | ac_status=$? | |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); }; } && | |
17612 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17614 | (eval $ac_try) 2>&5 | |
17615 | ac_status=$? | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); }; }; then | |
17618 | ac_hi=$ac_mid; break | |
17619 | else | |
17620 | echo "$as_me: failed program was:" >&5 | |
17621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17622 | ||
17623 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17624 | if test $ac_lo -le $ac_mid; then |
17625 | ac_lo= ac_hi= | |
17626 | break | |
17627 | fi | |
17628 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 17629 | fi |
32ddf007 | 17630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17631 | done |
17632 | else | |
17633 | echo "$as_me: failed program was:" >&5 | |
17634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17635 | ||
17636 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17637 | /* confdefs.h. */ |
17638 | _ACEOF | |
17639 | cat confdefs.h >>conftest.$ac_ext | |
17640 | cat >>conftest.$ac_ext <<_ACEOF | |
17641 | /* end confdefs.h. */ | |
17642 | $ac_includes_default | |
17643 | int | |
17644 | main () | |
17645 | { | |
17646 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17647 | test_array [0] = 0 | |
17648 | ||
17649 | ; | |
17650 | return 0; | |
17651 | } | |
17652 | _ACEOF | |
17653 | rm -f conftest.$ac_objext | |
17654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17655 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17656 | ac_status=$? |
32ddf007 VS |
17657 | grep -v '^ *+' conftest.er1 >conftest.err |
17658 | rm -f conftest.er1 | |
17659 | cat conftest.err >&5 | |
e6cc62c6 VS |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17661 | (exit $ac_status); } && | |
e1293dcf | 17662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17664 | (eval $ac_try) 2>&5 | |
17665 | ac_status=$? | |
17666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17667 | (exit $ac_status); }; } && | |
17668 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17670 | (eval $ac_try) 2>&5 | |
17671 | ac_status=$? | |
17672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17673 | (exit $ac_status); }; }; then | |
17674 | ac_hi=-1 ac_mid=-1 | |
17675 | while :; do | |
17676 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17677 | /* confdefs.h. */ |
17678 | _ACEOF | |
17679 | cat confdefs.h >>conftest.$ac_ext | |
17680 | cat >>conftest.$ac_ext <<_ACEOF | |
17681 | /* end confdefs.h. */ | |
17682 | $ac_includes_default | |
17683 | int | |
17684 | main () | |
17685 | { | |
17686 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17687 | test_array [0] = 0 | |
17688 | ||
17689 | ; | |
17690 | return 0; | |
17691 | } | |
17692 | _ACEOF | |
17693 | rm -f conftest.$ac_objext | |
17694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17695 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17696 | ac_status=$? |
32ddf007 VS |
17697 | grep -v '^ *+' conftest.er1 >conftest.err |
17698 | rm -f conftest.er1 | |
17699 | cat conftest.err >&5 | |
e6cc62c6 VS |
17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17701 | (exit $ac_status); } && | |
e1293dcf | 17702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17704 | (eval $ac_try) 2>&5 | |
17705 | ac_status=$? | |
17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17707 | (exit $ac_status); }; } && | |
17708 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17710 | (eval $ac_try) 2>&5 | |
17711 | ac_status=$? | |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17713 | (exit $ac_status); }; }; then | |
17714 | ac_lo=$ac_mid; break | |
17715 | else | |
17716 | echo "$as_me: failed program was:" >&5 | |
17717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17718 | ||
17719 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17720 | if test $ac_mid -le $ac_hi; then |
17721 | ac_lo= ac_hi= | |
17722 | break | |
17723 | fi | |
17724 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17725 | fi |
32ddf007 | 17726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17727 | done |
4f57cf11 | 17728 | else |
e6cc62c6 VS |
17729 | echo "$as_me: failed program was:" >&5 |
17730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17731 | ||
17732 | ac_lo= ac_hi= | |
17733 | fi | |
32ddf007 | 17734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17735 | fi |
32ddf007 | 17736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17737 | # Binary search between lo and hi bounds. |
17738 | while test "x$ac_lo" != "x$ac_hi"; do | |
17739 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17740 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17741 | /* confdefs.h. */ |
17742 | _ACEOF | |
17743 | cat confdefs.h >>conftest.$ac_ext | |
17744 | cat >>conftest.$ac_ext <<_ACEOF | |
17745 | /* end confdefs.h. */ | |
17746 | $ac_includes_default | |
17747 | int | |
17748 | main () | |
17749 | { | |
17750 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17751 | test_array [0] = 0 | |
17752 | ||
17753 | ; | |
17754 | return 0; | |
17755 | } | |
17756 | _ACEOF | |
17757 | rm -f conftest.$ac_objext | |
17758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17759 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17760 | ac_status=$? |
32ddf007 VS |
17761 | grep -v '^ *+' conftest.er1 >conftest.err |
17762 | rm -f conftest.er1 | |
17763 | cat conftest.err >&5 | |
e6cc62c6 VS |
17764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17765 | (exit $ac_status); } && | |
e1293dcf | 17766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17768 | (eval $ac_try) 2>&5 | |
17769 | ac_status=$? | |
17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17771 | (exit $ac_status); }; } && | |
17772 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17774 | (eval $ac_try) 2>&5 | |
17775 | ac_status=$? | |
17776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17777 | (exit $ac_status); }; }; then | |
17778 | ac_hi=$ac_mid | |
17779 | else | |
17780 | echo "$as_me: failed program was:" >&5 | |
17781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17782 | ||
17783 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17784 | fi | |
32ddf007 | 17785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17786 | done |
17787 | case $ac_lo in | |
17788 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17789 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17790 | See \`config.log' for more details." >&5 | |
17791 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17792 | See \`config.log' for more details." >&2;} | |
17793 | { (exit 1); exit 1; }; } ;; | |
17794 | esac | |
17795 | else | |
17796 | if test "$cross_compiling" = yes; then | |
e1293dcf RL |
17797 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17798 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
e6cc62c6 VS |
17799 | { (exit 1); exit 1; }; } |
17800 | else | |
17801 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17802 | /* confdefs.h. */ |
17803 | _ACEOF | |
17804 | cat confdefs.h >>conftest.$ac_ext | |
17805 | cat >>conftest.$ac_ext <<_ACEOF | |
17806 | /* end confdefs.h. */ | |
17807 | $ac_includes_default | |
17808 | long longval () { return (long) (sizeof (long long)); } | |
17809 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17810 | #include <stdio.h> |
e6cc62c6 VS |
17811 | #include <stdlib.h> |
17812 | int | |
17813 | main () | |
4f57cf11 | 17814 | { |
e6cc62c6 VS |
17815 | |
17816 | FILE *f = fopen ("conftest.val", "w"); | |
17817 | if (! f) | |
17818 | exit (1); | |
17819 | if (((long) (sizeof (long long))) < 0) | |
17820 | { | |
17821 | long i = longval (); | |
17822 | if (i != ((long) (sizeof (long long)))) | |
17823 | exit (1); | |
17824 | fprintf (f, "%ld\n", i); | |
17825 | } | |
17826 | else | |
17827 | { | |
17828 | unsigned long i = ulongval (); | |
17829 | if (i != ((long) (sizeof (long long)))) | |
17830 | exit (1); | |
17831 | fprintf (f, "%lu\n", i); | |
17832 | } | |
17833 | exit (ferror (f) || fclose (f) != 0); | |
17834 | ||
17835 | ; | |
17836 | return 0; | |
4f57cf11 | 17837 | } |
e6cc62c6 VS |
17838 | _ACEOF |
17839 | rm -f conftest$ac_exeext | |
17840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17841 | (eval $ac_link) 2>&5 | |
17842 | ac_status=$? | |
17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); }; }; then | |
17850 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17851 | else | |
17852 | echo "$as_me: program exited with status $ac_status" >&5 | |
17853 | echo "$as_me: failed program was:" >&5 | |
17854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17855 | ||
17856 | ( exit $ac_status ) | |
17857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17858 | See \`config.log' for more details." >&5 | |
17859 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17860 | See \`config.log' for more details." >&2;} | |
17861 | { (exit 1); exit 1; }; } | |
17862 | fi | |
32ddf007 | 17863 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17864 | fi |
17865 | fi | |
17866 | rm -f conftest.val | |
4f57cf11 | 17867 | else |
4f57cf11 GD |
17868 | ac_cv_sizeof_long_long=0 |
17869 | fi | |
7b4a847f | 17870 | fi |
e6cc62c6 VS |
17871 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17872 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17873 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17874 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17875 | _ACEOF |
9e691f46 | 17876 | |
8284b0c5 | 17877 | |
21d1c967 GD |
17878 | esac |
17879 | ||
e6cc62c6 VS |
17880 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17881 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17882 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17884 | else |
e6cc62c6 | 17885 | |
21d1c967 | 17886 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17887 | |
2b5f62a0 VZ |
17888 | case "${host}" in |
17889 | *-pc-msdosdjgpp ) | |
17890 | wx_cv_sizeof_wchar_t=0 | |
17891 | ;; | |
17892 | * ) | |
17893 | wx_cv_sizeof_wchar_t=4 | |
17894 | ;; | |
17895 | esac | |
e6cc62c6 VS |
17896 | |
17897 | ||
6f72b082 | 17898 | else |
e6cc62c6 | 17899 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17900 | /* confdefs.h. */ |
17901 | _ACEOF | |
17902 | cat confdefs.h >>conftest.$ac_ext | |
17903 | cat >>conftest.$ac_ext <<_ACEOF | |
17904 | /* end confdefs.h. */ | |
21d1c967 | 17905 | |
2b5f62a0 VZ |
17906 | /* DJGPP only has fake wchar_t: */ |
17907 | #ifdef __DJGPP__ | |
17908 | # error "fake wchar_t" | |
17909 | #endif | |
21d1c967 GD |
17910 | #ifdef HAVE_WCHAR_H |
17911 | # ifdef __CYGWIN__ | |
17912 | # include <stddef.h> | |
17913 | # endif | |
17914 | # include <wchar.h> | |
17915 | #endif | |
17916 | #ifdef HAVE_STDLIB_H | |
17917 | # include <stdlib.h> | |
17918 | #endif | |
17919 | #include <stdio.h> | |
17920 | int main() | |
17921 | { | |
17922 | FILE *f=fopen("conftestval", "w"); | |
17923 | if (!f) exit(1); | |
17924 | fprintf(f, "%i", sizeof(wchar_t)); | |
17925 | exit(0); | |
17926 | } | |
e6cc62c6 VS |
17927 | |
17928 | _ACEOF | |
17929 | rm -f conftest$ac_exeext | |
17930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17931 | (eval $ac_link) 2>&5 | |
17932 | ac_status=$? | |
17933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17934 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17939 | (exit $ac_status); }; }; then | |
21d1c967 | 17940 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 17941 | else |
e6cc62c6 VS |
17942 | echo "$as_me: program exited with status $ac_status" >&5 |
17943 | echo "$as_me: failed program was:" >&5 | |
17944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17945 | ||
17946 | ( exit $ac_status ) | |
17947 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 17948 | fi |
32ddf007 | 17949 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 17950 | fi |
6f72b082 | 17951 | |
3f345b47 | 17952 | fi |
e6cc62c6 VS |
17953 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
17954 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 17955 | |
e6cc62c6 | 17956 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17957 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 17958 | _ACEOF |
90dd450c | 17959 | |
8284b0c5 | 17960 | |
21d1c967 GD |
17961 | # Check whether --enable-largefile or --disable-largefile was given. |
17962 | if test "${enable_largefile+set}" = set; then | |
17963 | enableval="$enable_largefile" | |
3f345b47 | 17964 | |
e6cc62c6 | 17965 | fi; |
21d1c967 GD |
17966 | if test "$enable_largefile" != no; then |
17967 | wx_largefile=no | |
e6cc62c6 VS |
17968 | |
17969 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17970 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17971 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17973 | else | |
17974 | ||
17975 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17976 | /* confdefs.h. */ |
17977 | _ACEOF | |
17978 | cat confdefs.h >>conftest.$ac_ext | |
17979 | cat >>conftest.$ac_ext <<_ACEOF | |
17980 | /* end confdefs.h. */ | |
21d1c967 GD |
17981 | #define _FILE_OFFSET_BITS 64 |
17982 | #include <sys/types.h> | |
e6cc62c6 VS |
17983 | int |
17984 | main () | |
17985 | { | |
21d1c967 GD |
17986 | typedef struct { |
17987 | unsigned int field: sizeof(off_t) == 8; | |
17988 | } wxlf; | |
17989 | ||
e6cc62c6 VS |
17990 | ; |
17991 | return 0; | |
17992 | } | |
17993 | _ACEOF | |
17994 | rm -f conftest.$ac_objext | |
17995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17996 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17997 | ac_status=$? |
32ddf007 VS |
17998 | grep -v '^ *+' conftest.er1 >conftest.err |
17999 | rm -f conftest.er1 | |
18000 | cat conftest.err >&5 | |
e6cc62c6 VS |
18001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18002 | (exit $ac_status); } && | |
e1293dcf | 18003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18005 | (eval $ac_try) 2>&5 | |
18006 | ac_status=$? | |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18008 | (exit $ac_status); }; } && | |
18009 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18011 | (eval $ac_try) 2>&5 | |
18012 | ac_status=$? | |
18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18014 | (exit $ac_status); }; }; then | |
21d1c967 | 18015 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 18016 | else |
e6cc62c6 VS |
18017 | echo "$as_me: failed program was:" >&5 |
18018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18019 | ||
18020 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 18021 | fi |
32ddf007 | 18022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18023 | |
a0b9e27f | 18024 | |
e6cc62c6 VS |
18025 | fi |
18026 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18027 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
18028 | |
18029 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18030 | wx_largefile=yes | |
e6cc62c6 | 18031 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18032 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 18033 | _ACEOF |
21d1c967 GD |
18034 | |
18035 | fi | |
18036 | ||
18037 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
18038 | |
18039 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18040 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18041 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18043 | else | |
18044 | ||
18045 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18046 | /* confdefs.h. */ |
18047 | _ACEOF | |
18048 | cat confdefs.h >>conftest.$ac_ext | |
18049 | cat >>conftest.$ac_ext <<_ACEOF | |
18050 | /* end confdefs.h. */ | |
21d1c967 GD |
18051 | #define _LARGE_FILES 1 |
18052 | #include <sys/types.h> | |
e6cc62c6 VS |
18053 | int |
18054 | main () | |
18055 | { | |
21d1c967 GD |
18056 | typedef struct { |
18057 | unsigned int field: sizeof(off_t) == 8; | |
18058 | } wxlf; | |
18059 | ||
e6cc62c6 VS |
18060 | ; |
18061 | return 0; | |
18062 | } | |
18063 | _ACEOF | |
18064 | rm -f conftest.$ac_objext | |
18065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18066 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18067 | ac_status=$? |
32ddf007 VS |
18068 | grep -v '^ *+' conftest.er1 >conftest.err |
18069 | rm -f conftest.er1 | |
18070 | cat conftest.err >&5 | |
e6cc62c6 VS |
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18072 | (exit $ac_status); } && | |
e1293dcf | 18073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18075 | (eval $ac_try) 2>&5 | |
18076 | ac_status=$? | |
18077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18078 | (exit $ac_status); }; } && | |
18079 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18081 | (eval $ac_try) 2>&5 | |
18082 | ac_status=$? | |
18083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18084 | (exit $ac_status); }; }; then | |
21d1c967 | 18085 | ac_cv_sys_large_files=1 |
f6bcfd97 | 18086 | else |
e6cc62c6 VS |
18087 | echo "$as_me: failed program was:" >&5 |
18088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18089 | ||
18090 | ac_cv_sys_large_files=no | |
247f5006 | 18091 | fi |
32ddf007 | 18092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18093 | |
e6cc62c6 VS |
18094 | |
18095 | fi | |
18096 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18097 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 18098 | |
21d1c967 GD |
18099 | if test "$ac_cv_sys_large_files" != no; then |
18100 | wx_largefile=yes | |
e6cc62c6 | 18101 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18102 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 18103 | _ACEOF |
90dd450c | 18104 | |
90dd450c VZ |
18105 | fi |
18106 | ||
90dd450c | 18107 | fi |
90dd450c | 18108 | |
e6cc62c6 VS |
18109 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
18110 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 18111 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 18112 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18113 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 18114 | _ACEOF |
90dd450c | 18115 | |
90dd450c | 18116 | fi |
e6cc62c6 VS |
18117 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
18118 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 18119 | fi |
90dd450c | 18120 | |
8284b0c5 | 18121 | |
f02444d0 | 18122 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
18123 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
18124 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 18125 | else |
e26c13cf | 18126 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 18127 | fi |
e26c13cf | 18128 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
18129 | fi |
18130 | ||
e6cc62c6 VS |
18131 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
18132 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18133 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 18135 | else |
21d1c967 GD |
18136 | ac_cv_c_bigendian=unknown |
18137 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 18138 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18139 | /* confdefs.h. */ |
18140 | _ACEOF | |
18141 | cat confdefs.h >>conftest.$ac_ext | |
18142 | cat >>conftest.$ac_ext <<_ACEOF | |
18143 | /* end confdefs.h. */ | |
21d1c967 GD |
18144 | #include <sys/types.h> |
18145 | #include <sys/param.h> | |
e6cc62c6 VS |
18146 | int |
18147 | main () | |
18148 | { | |
21d1c967 GD |
18149 | |
18150 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18151 | bogus endian macros | |
18152 | #endif | |
e6cc62c6 VS |
18153 | ; |
18154 | return 0; | |
18155 | } | |
18156 | _ACEOF | |
18157 | rm -f conftest.$ac_objext | |
18158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18159 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18160 | ac_status=$? |
32ddf007 VS |
18161 | grep -v '^ *+' conftest.er1 >conftest.err |
18162 | rm -f conftest.er1 | |
18163 | cat conftest.err >&5 | |
e6cc62c6 VS |
18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18165 | (exit $ac_status); } && | |
e1293dcf | 18166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18168 | (eval $ac_try) 2>&5 | |
18169 | ac_status=$? | |
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18171 | (exit $ac_status); }; } && | |
18172 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); }; }; then | |
21d1c967 | 18178 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 18179 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18180 | /* confdefs.h. */ |
18181 | _ACEOF | |
18182 | cat confdefs.h >>conftest.$ac_ext | |
18183 | cat >>conftest.$ac_ext <<_ACEOF | |
18184 | /* end confdefs.h. */ | |
21d1c967 GD |
18185 | #include <sys/types.h> |
18186 | #include <sys/param.h> | |
e6cc62c6 VS |
18187 | int |
18188 | main () | |
18189 | { | |
21d1c967 GD |
18190 | |
18191 | #if BYTE_ORDER != BIG_ENDIAN | |
18192 | not big endian | |
18193 | #endif | |
e6cc62c6 VS |
18194 | ; |
18195 | return 0; | |
18196 | } | |
18197 | _ACEOF | |
18198 | rm -f conftest.$ac_objext | |
18199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18200 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18201 | ac_status=$? |
32ddf007 VS |
18202 | grep -v '^ *+' conftest.er1 >conftest.err |
18203 | rm -f conftest.er1 | |
18204 | cat conftest.err >&5 | |
e6cc62c6 VS |
18205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18206 | (exit $ac_status); } && | |
e1293dcf | 18207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18209 | (eval $ac_try) 2>&5 | |
18210 | ac_status=$? | |
18211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18212 | (exit $ac_status); }; } && | |
18213 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18215 | (eval $ac_try) 2>&5 | |
18216 | ac_status=$? | |
18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18218 | (exit $ac_status); }; }; then | |
21d1c967 | 18219 | ac_cv_c_bigendian=yes |
3f345b47 | 18220 | else |
e6cc62c6 VS |
18221 | echo "$as_me: failed program was:" >&5 |
18222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18223 | ||
18224 | ac_cv_c_bigendian=no | |
3f345b47 | 18225 | fi |
32ddf007 | 18226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 18227 | else |
e6cc62c6 VS |
18228 | echo "$as_me: failed program was:" >&5 |
18229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18230 | ||
3f345b47 | 18231 | fi |
32ddf007 | 18232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18233 | if test $ac_cv_c_bigendian = unknown; then |
18234 | if test "$cross_compiling" = yes; then | |
18235 | ac_cv_c_bigendian=unknown | |
10f2d63a | 18236 | else |
e6cc62c6 | 18237 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18238 | /* confdefs.h. */ |
18239 | _ACEOF | |
18240 | cat confdefs.h >>conftest.$ac_ext | |
18241 | cat >>conftest.$ac_ext <<_ACEOF | |
18242 | /* end confdefs.h. */ | |
21d1c967 GD |
18243 | main () { |
18244 | /* Are we little or big endian? From Harbison&Steele. */ | |
18245 | union | |
18246 | { | |
18247 | long l; | |
18248 | char c[sizeof (long)]; | |
18249 | } u; | |
18250 | u.l = 1; | |
18251 | exit (u.c[sizeof (long) - 1] == 1); | |
18252 | } | |
e6cc62c6 VS |
18253 | _ACEOF |
18254 | rm -f conftest$ac_exeext | |
18255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18256 | (eval $ac_link) 2>&5 | |
18257 | ac_status=$? | |
18258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18259 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18261 | (eval $ac_try) 2>&5 | |
18262 | ac_status=$? | |
18263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18264 | (exit $ac_status); }; }; then | |
21d1c967 | 18265 | ac_cv_c_bigendian=no |
3f345b47 | 18266 | else |
e6cc62c6 VS |
18267 | echo "$as_me: program exited with status $ac_status" >&5 |
18268 | echo "$as_me: failed program was:" >&5 | |
18269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18270 | ||
18271 | ( exit $ac_status ) | |
18272 | ac_cv_c_bigendian=yes | |
247f5006 | 18273 | fi |
32ddf007 | 18274 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 18275 | fi |
3f345b47 | 18276 | fi |
8168de4c | 18277 | fi |
e6cc62c6 VS |
18278 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
18279 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 18280 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
18281 | { 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 |
18282 | 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 |
18283 | fi |
18284 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 18285 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 18286 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 18287 | _ACEOF |
247f5006 VZ |
18288 | |
18289 | fi | |
18290 | ||
18291 | ||
e6cc62c6 VS |
18292 | ac_ext=cc |
18293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18297 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18298 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 18299 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
18300 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
18301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18302 | else | |
18303 | # Double quotes because CXXCPP needs to be expanded | |
18304 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18305 | do | |
18306 | ac_preproc_ok=false | |
18307 | for ac_cxx_preproc_warn_flag in '' yes | |
18308 | do | |
18309 | # Use a header file that comes with gcc, so configuring glibc | |
18310 | # with a fresh cross-compiler works. | |
18311 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18312 | # <limits.h> exists even on freestanding compilers. | |
18313 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18314 | # not just through cpp. "Syntax error" is here to catch this case. | |
18315 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18316 | /* confdefs.h. */ |
18317 | _ACEOF | |
18318 | cat confdefs.h >>conftest.$ac_ext | |
18319 | cat >>conftest.$ac_ext <<_ACEOF | |
18320 | /* end confdefs.h. */ | |
18321 | #ifdef __STDC__ | |
18322 | # include <limits.h> | |
18323 | #else | |
18324 | # include <assert.h> | |
18325 | #endif | |
32ddf007 | 18326 | Syntax error |
e6cc62c6 VS |
18327 | _ACEOF |
18328 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18329 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18330 | ac_status=$? | |
18331 | grep -v '^ *+' conftest.er1 >conftest.err | |
18332 | rm -f conftest.er1 | |
18333 | cat conftest.err >&5 | |
18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18335 | (exit $ac_status); } >/dev/null; then | |
18336 | if test -s conftest.err; then | |
18337 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18338 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18339 | else |
18340 | ac_cpp_err= | |
18341 | fi | |
247f5006 | 18342 | else |
e6cc62c6 VS |
18343 | ac_cpp_err=yes |
18344 | fi | |
18345 | if test -z "$ac_cpp_err"; then | |
18346 | : | |
18347 | else | |
18348 | echo "$as_me: failed program was:" >&5 | |
18349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18350 | ||
18351 | # Broken: fails on valid input. | |
18352 | continue | |
18353 | fi | |
18354 | rm -f conftest.err conftest.$ac_ext | |
18355 | ||
18356 | # OK, works on sane cases. Now check whether non-existent headers | |
18357 | # can be detected and how. | |
18358 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18359 | /* confdefs.h. */ |
18360 | _ACEOF | |
18361 | cat confdefs.h >>conftest.$ac_ext | |
18362 | cat >>conftest.$ac_ext <<_ACEOF | |
18363 | /* end confdefs.h. */ | |
18364 | #include <ac_nonexistent.h> | |
18365 | _ACEOF | |
18366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18368 | ac_status=$? | |
18369 | grep -v '^ *+' conftest.er1 >conftest.err | |
18370 | rm -f conftest.er1 | |
18371 | cat conftest.err >&5 | |
18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18373 | (exit $ac_status); } >/dev/null; then | |
18374 | if test -s conftest.err; then | |
18375 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18376 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18377 | else |
18378 | ac_cpp_err= | |
18379 | fi | |
18380 | else | |
18381 | ac_cpp_err=yes | |
18382 | fi | |
18383 | if test -z "$ac_cpp_err"; then | |
18384 | # Broken: success on invalid input. | |
18385 | continue | |
18386 | else | |
18387 | echo "$as_me: failed program was:" >&5 | |
18388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18389 | ||
18390 | # Passes both tests. | |
18391 | ac_preproc_ok=: | |
18392 | break | |
18393 | fi | |
18394 | rm -f conftest.err conftest.$ac_ext | |
18395 | ||
18396 | done | |
18397 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18398 | rm -f conftest.err conftest.$ac_ext | |
18399 | if $ac_preproc_ok; then | |
18400 | break | |
18401 | fi | |
18402 | ||
18403 | done | |
18404 | ac_cv_prog_CXXCPP=$CXXCPP | |
18405 | ||
18406 | fi | |
18407 | CXXCPP=$ac_cv_prog_CXXCPP | |
18408 | else | |
18409 | ac_cv_prog_CXXCPP=$CXXCPP | |
18410 | fi | |
18411 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18412 | echo "${ECHO_T}$CXXCPP" >&6 | |
18413 | ac_preproc_ok=false | |
18414 | for ac_cxx_preproc_warn_flag in '' yes | |
18415 | do | |
18416 | # Use a header file that comes with gcc, so configuring glibc | |
18417 | # with a fresh cross-compiler works. | |
18418 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18419 | # <limits.h> exists even on freestanding compilers. | |
18420 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18421 | # not just through cpp. "Syntax error" is here to catch this case. | |
18422 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18423 | /* confdefs.h. */ |
18424 | _ACEOF | |
18425 | cat confdefs.h >>conftest.$ac_ext | |
18426 | cat >>conftest.$ac_ext <<_ACEOF | |
18427 | /* end confdefs.h. */ | |
18428 | #ifdef __STDC__ | |
18429 | # include <limits.h> | |
18430 | #else | |
18431 | # include <assert.h> | |
18432 | #endif | |
32ddf007 | 18433 | Syntax error |
e6cc62c6 VS |
18434 | _ACEOF |
18435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18437 | ac_status=$? | |
18438 | grep -v '^ *+' conftest.er1 >conftest.err | |
18439 | rm -f conftest.er1 | |
18440 | cat conftest.err >&5 | |
18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18442 | (exit $ac_status); } >/dev/null; then | |
18443 | if test -s conftest.err; then | |
18444 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18445 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18446 | else |
18447 | ac_cpp_err= | |
18448 | fi | |
18449 | else | |
18450 | ac_cpp_err=yes | |
18451 | fi | |
18452 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 18453 | : |
698dcdb6 | 18454 | else |
e6cc62c6 VS |
18455 | echo "$as_me: failed program was:" >&5 |
18456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18457 | ||
18458 | # Broken: fails on valid input. | |
18459 | continue | |
18460 | fi | |
18461 | rm -f conftest.err conftest.$ac_ext | |
18462 | ||
18463 | # OK, works on sane cases. Now check whether non-existent headers | |
18464 | # can be detected and how. | |
18465 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18466 | /* confdefs.h. */ |
18467 | _ACEOF | |
18468 | cat confdefs.h >>conftest.$ac_ext | |
18469 | cat >>conftest.$ac_ext <<_ACEOF | |
18470 | /* end confdefs.h. */ | |
18471 | #include <ac_nonexistent.h> | |
18472 | _ACEOF | |
18473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18475 | ac_status=$? | |
18476 | grep -v '^ *+' conftest.er1 >conftest.err | |
18477 | rm -f conftest.er1 | |
18478 | cat conftest.err >&5 | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); } >/dev/null; then | |
18481 | if test -s conftest.err; then | |
18482 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18483 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18484 | else |
18485 | ac_cpp_err= | |
18486 | fi | |
18487 | else | |
18488 | ac_cpp_err=yes | |
247f5006 | 18489 | fi |
e6cc62c6 VS |
18490 | if test -z "$ac_cpp_err"; then |
18491 | # Broken: success on invalid input. | |
18492 | continue | |
18493 | else | |
18494 | echo "$as_me: failed program was:" >&5 | |
18495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18496 | ||
18497 | # Passes both tests. | |
18498 | ac_preproc_ok=: | |
18499 | break | |
328a083c | 18500 | fi |
e6cc62c6 VS |
18501 | rm -f conftest.err conftest.$ac_ext |
18502 | ||
18503 | done | |
18504 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18505 | rm -f conftest.err conftest.$ac_ext | |
18506 | if $ac_preproc_ok; then | |
18507 | : | |
18508 | else | |
18509 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18510 | See \`config.log' for more details." >&5 | |
18511 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18512 | See \`config.log' for more details." >&2;} | |
18513 | { (exit 1); exit 1; }; } | |
90dd450c | 18514 | fi |
e6cc62c6 VS |
18515 | |
18516 | ac_ext=cc | |
18517 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18518 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18519 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18520 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18521 | ||
1e6feb95 | 18522 | |
1725144d | 18523 | |
21d1c967 | 18524 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 18525 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18526 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18527 | _ACEOF |
ab9b9eab | 18528 | |
21d1c967 | 18529 | else |
e6cc62c6 VS |
18530 | |
18531 | ||
18532 | ac_ext=cc | |
5c6fa7d2 | 18533 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18537 | ||
52127426 | 18538 | |
247f5006 | 18539 | |
e6cc62c6 | 18540 | for ac_header in iostream |
21d1c967 | 18541 | do |
e6cc62c6 VS |
18542 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18548 | fi | |
18549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18551 | else | |
18552 | # Is the header compilable? | |
18553 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18554 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18555 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18556 | /* confdefs.h. */ |
18557 | _ACEOF | |
18558 | cat confdefs.h >>conftest.$ac_ext | |
18559 | cat >>conftest.$ac_ext <<_ACEOF | |
18560 | /* end confdefs.h. */ | |
18561 | $ac_includes_default | |
18562 | #include <$ac_header> | |
18563 | _ACEOF | |
18564 | rm -f conftest.$ac_objext | |
18565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18566 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18567 | ac_status=$? |
32ddf007 VS |
18568 | grep -v '^ *+' conftest.er1 >conftest.err |
18569 | rm -f conftest.er1 | |
18570 | cat conftest.err >&5 | |
e6cc62c6 VS |
18571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18572 | (exit $ac_status); } && | |
e1293dcf | 18573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18575 | (eval $ac_try) 2>&5 | |
18576 | ac_status=$? | |
18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18578 | (exit $ac_status); }; } && | |
18579 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18581 | (eval $ac_try) 2>&5 | |
18582 | ac_status=$? | |
18583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18584 | (exit $ac_status); }; }; then | |
18585 | ac_header_compiler=yes | |
18586 | else | |
18587 | echo "$as_me: failed program was:" >&5 | |
18588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18589 | ||
18590 | ac_header_compiler=no | |
18591 | fi | |
32ddf007 | 18592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18593 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18594 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18595 | ||
18596 | # Is the header present? | |
18597 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18598 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18599 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18600 | /* confdefs.h. */ |
18601 | _ACEOF | |
18602 | cat confdefs.h >>conftest.$ac_ext | |
18603 | cat >>conftest.$ac_ext <<_ACEOF | |
18604 | /* end confdefs.h. */ | |
18605 | #include <$ac_header> | |
18606 | _ACEOF | |
18607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18609 | ac_status=$? | |
18610 | grep -v '^ *+' conftest.er1 >conftest.err | |
18611 | rm -f conftest.er1 | |
18612 | cat conftest.err >&5 | |
18613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18614 | (exit $ac_status); } >/dev/null; then | |
18615 | if test -s conftest.err; then | |
18616 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18617 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18618 | else |
18619 | ac_cpp_err= | |
18620 | fi | |
18621 | else | |
18622 | ac_cpp_err=yes | |
18623 | fi | |
18624 | if test -z "$ac_cpp_err"; then | |
18625 | ac_header_preproc=yes | |
18626 | else | |
18627 | echo "$as_me: failed program was:" >&5 | |
18628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18629 | ||
18630 | ac_header_preproc=no | |
18631 | fi | |
18632 | rm -f conftest.err conftest.$ac_ext | |
18633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18634 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18635 | ||
18636 | # So? What about this header? | |
32ddf007 VS |
18637 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18638 | yes:no: ) | |
e6cc62c6 VS |
18639 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18640 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
18641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18642 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18643 | ac_header_preproc=yes | |
e6cc62c6 | 18644 | ;; |
32ddf007 | 18645 | no:yes:* ) |
e6cc62c6 VS |
18646 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18647 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
18648 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18649 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18650 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18651 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18652 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18653 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
18654 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18655 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
18656 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18657 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
18658 | ( |
18659 | cat <<\_ASBOX | |
32ddf007 VS |
18660 | ## ----------------------------------------- ## |
18661 | ## Report this to wx-dev@lists.wxwindows.org ## | |
18662 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
18663 | _ASBOX |
18664 | ) | | |
18665 | sed "s/^/$as_me: WARNING: /" >&2 | |
18666 | ;; | |
18667 | esac | |
18668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18672 | else | |
32ddf007 | 18673 | eval "$as_ac_Header=\$ac_header_preproc" |
ab9b9eab | 18674 | fi |
e6cc62c6 VS |
18675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18677 | ||
90dd450c | 18678 | fi |
e6cc62c6 VS |
18679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18680 | cat >>confdefs.h <<_ACEOF | |
18681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18682 | _ACEOF | |
18683 | ||
90dd450c | 18684 | fi |
e6cc62c6 | 18685 | |
21d1c967 | 18686 | done |
10f2d63a | 18687 | |
8284b0c5 | 18688 | |
21d1c967 GD |
18689 | if test "$ac_cv_header_iostream" = "yes" ; then |
18690 | : | |
18691 | else | |
e6cc62c6 | 18692 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18693 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18694 | _ACEOF |
788deba1 | 18695 | |
90dd450c | 18696 | fi |
ab9b9eab | 18697 | |
21d1c967 | 18698 | ac_ext=c |
21d1c967 | 18699 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 18703 | |
21d1c967 | 18704 | fi |
ab9b9eab | 18705 | |
52127426 | 18706 | |
8284b0c5 | 18707 | |
e6cc62c6 VS |
18708 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
18709 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18710 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18712 | else |
e6cc62c6 VS |
18713 | |
18714 | ||
18715 | ||
18716 | ac_ext=cc | |
5c6fa7d2 | 18717 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 18721 | |
8284b0c5 | 18722 | |
e6cc62c6 | 18723 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18724 | /* confdefs.h. */ |
18725 | _ACEOF | |
18726 | cat confdefs.h >>conftest.$ac_ext | |
18727 | cat >>conftest.$ac_ext <<_ACEOF | |
18728 | /* end confdefs.h. */ | |
21d1c967 | 18729 | |
e6cc62c6 VS |
18730 | |
18731 | int | |
18732 | main () | |
18733 | { | |
21d1c967 GD |
18734 | |
18735 | bool b = true; | |
18736 | ||
18737 | return 0; | |
e6cc62c6 VS |
18738 | |
18739 | ; | |
18740 | return 0; | |
18741 | } | |
18742 | _ACEOF | |
18743 | rm -f conftest.$ac_objext | |
18744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18745 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18746 | ac_status=$? |
32ddf007 VS |
18747 | grep -v '^ *+' conftest.er1 >conftest.err |
18748 | rm -f conftest.er1 | |
18749 | cat conftest.err >&5 | |
e6cc62c6 VS |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18751 | (exit $ac_status); } && | |
e1293dcf | 18752 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18754 | (eval $ac_try) 2>&5 | |
18755 | ac_status=$? | |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18757 | (exit $ac_status); }; } && | |
18758 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18760 | (eval $ac_try) 2>&5 | |
18761 | ac_status=$? | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); }; }; then | |
18764 | ||
21d1c967 | 18765 | wx_cv_cpp_bool=yes |
e6cc62c6 | 18766 | |
698dcdb6 | 18767 | else |
e6cc62c6 VS |
18768 | echo "$as_me: failed program was:" >&5 |
18769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18770 | ||
18771 | ||
21d1c967 | 18772 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
18773 | |
18774 | ||
698dcdb6 | 18775 | fi |
32ddf007 | 18776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18777 | |
18778 | ac_ext=c | |
21d1c967 | 18779 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18783 | |
a0b9e27f | 18784 | |
e6cc62c6 VS |
18785 | fi |
18786 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18787 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
18788 | |
18789 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 18790 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18791 | #define HAVE_BOOL 1 |
e6cc62c6 | 18792 | _ACEOF |
ab9b9eab | 18793 | |
21d1c967 GD |
18794 | fi |
18795 | ||
52127426 | 18796 | |
8284b0c5 | 18797 | |
e6cc62c6 VS |
18798 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
18799 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18800 | if test "${wx_cv_explicit+set}" = set; then | |
18801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18802 | else |
e6cc62c6 VS |
18803 | |
18804 | ||
18805 | ||
18806 | ac_ext=cc | |
5c6fa7d2 | 18807 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 18811 | |
8284b0c5 | 18812 | |
e6cc62c6 | 18813 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18814 | /* confdefs.h. */ |
18815 | _ACEOF | |
18816 | cat confdefs.h >>conftest.$ac_ext | |
18817 | cat >>conftest.$ac_ext <<_ACEOF | |
18818 | /* end confdefs.h. */ | |
986ecc86 VZ |
18819 | |
18820 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
18821 | |
18822 | int | |
18823 | main () | |
18824 | { | |
986ecc86 VZ |
18825 | |
18826 | return 0; | |
e6cc62c6 VS |
18827 | |
18828 | ; | |
18829 | return 0; | |
18830 | } | |
18831 | _ACEOF | |
18832 | rm -f conftest.$ac_objext | |
18833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18834 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18835 | ac_status=$? |
32ddf007 VS |
18836 | grep -v '^ *+' conftest.er1 >conftest.err |
18837 | rm -f conftest.er1 | |
18838 | cat conftest.err >&5 | |
e6cc62c6 VS |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18840 | (exit $ac_status); } && | |
e1293dcf | 18841 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18843 | (eval $ac_try) 2>&5 | |
18844 | ac_status=$? | |
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18846 | (exit $ac_status); }; } && | |
18847 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18849 | (eval $ac_try) 2>&5 | |
18850 | ac_status=$? | |
18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18852 | (exit $ac_status); }; }; then | |
18853 | ||
18854 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18855 | /* confdefs.h. */ |
18856 | _ACEOF | |
18857 | cat confdefs.h >>conftest.$ac_ext | |
18858 | cat >>conftest.$ac_ext <<_ACEOF | |
18859 | /* end confdefs.h. */ | |
986ecc86 VZ |
18860 | |
18861 | class Foo { public: explicit Foo(int) {} }; | |
18862 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18863 | |
18864 | int | |
18865 | main () | |
18866 | { | |
986ecc86 VZ |
18867 | |
18868 | TakeFoo(17); | |
18869 | return 0; | |
e6cc62c6 VS |
18870 | |
18871 | ; | |
18872 | return 0; | |
18873 | } | |
18874 | _ACEOF | |
18875 | rm -f conftest.$ac_objext | |
18876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18877 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18878 | ac_status=$? |
32ddf007 VS |
18879 | grep -v '^ *+' conftest.er1 >conftest.err |
18880 | rm -f conftest.er1 | |
18881 | cat conftest.err >&5 | |
e6cc62c6 VS |
18882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18883 | (exit $ac_status); } && | |
e1293dcf | 18884 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18886 | (eval $ac_try) 2>&5 | |
18887 | ac_status=$? | |
18888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18889 | (exit $ac_status); }; } && | |
18890 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18892 | (eval $ac_try) 2>&5 | |
18893 | ac_status=$? | |
18894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18895 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
18896 | wx_cv_explicit=no |
18897 | else | |
e6cc62c6 VS |
18898 | echo "$as_me: failed program was:" >&5 |
18899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18900 | ||
18901 | wx_cv_explicit=yes | |
18902 | ||
986ecc86 | 18903 | fi |
32ddf007 | 18904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18905 | |
986ecc86 | 18906 | else |
e6cc62c6 VS |
18907 | echo "$as_me: failed program was:" >&5 |
18908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18909 | ||
18910 | wx_cv_explicit=no | |
18911 | ||
986ecc86 | 18912 | fi |
32ddf007 | 18913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
18914 | |
18915 | ac_ext=c | |
986ecc86 | 18916 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18920 | |
a0b9e27f | 18921 | |
e6cc62c6 VS |
18922 | fi |
18923 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18924 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
18925 | |
18926 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 18927 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 18928 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 18929 | _ACEOF |
986ecc86 VZ |
18930 | |
18931 | fi | |
18932 | ||
8284b0c5 | 18933 | |
e6cc62c6 VS |
18934 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
18935 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18936 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 18938 | else |
521196a2 | 18939 | |
521196a2 | 18940 | |
e6cc62c6 VS |
18941 | ac_ext=cc |
18942 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18946 | ||
18947 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18948 | /* confdefs.h. */ |
18949 | _ACEOF | |
18950 | cat confdefs.h >>conftest.$ac_ext | |
18951 | cat >>conftest.$ac_ext <<_ACEOF | |
18952 | /* end confdefs.h. */ | |
18953 | ||
18954 | int | |
18955 | main () | |
18956 | { | |
521196a2 | 18957 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
18958 | ; |
18959 | return 0; | |
18960 | } | |
18961 | _ACEOF | |
18962 | rm -f conftest.$ac_objext | |
18963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18964 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18965 | ac_status=$? |
32ddf007 VS |
18966 | grep -v '^ *+' conftest.er1 >conftest.err |
18967 | rm -f conftest.er1 | |
18968 | cat conftest.err >&5 | |
e6cc62c6 VS |
18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18970 | (exit $ac_status); } && | |
e1293dcf | 18971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
18972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18973 | (eval $ac_try) 2>&5 | |
18974 | ac_status=$? | |
18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18976 | (exit $ac_status); }; } && | |
18977 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18979 | (eval $ac_try) 2>&5 | |
18980 | ac_status=$? | |
18981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18982 | (exit $ac_status); }; }; then | |
521196a2 MB |
18983 | ac_cv_cxx_const_cast=yes |
18984 | else | |
e6cc62c6 VS |
18985 | echo "$as_me: failed program was:" >&5 |
18986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18987 | ||
18988 | ac_cv_cxx_const_cast=no | |
521196a2 | 18989 | fi |
32ddf007 | 18990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
521196a2 | 18991 | ac_ext=c |
521196a2 | 18992 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
18996 | |
18997 | ||
18998 | fi | |
e6cc62c6 VS |
18999 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
19000 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 19001 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
19002 | |
19003 | cat >>confdefs.h <<\_ACEOF | |
19004 | #define HAVE_CONST_CAST | |
19005 | _ACEOF | |
521196a2 MB |
19006 | |
19007 | fi | |
19008 | ||
ecfd48ca VZ |
19009 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19010 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19011 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19013 | else | |
19014 | ||
19015 | ||
19016 | ac_ext=cc | |
19017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19021 | ||
19022 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
19023 | /* confdefs.h. */ |
19024 | _ACEOF | |
19025 | cat confdefs.h >>conftest.$ac_ext | |
19026 | cat >>conftest.$ac_ext <<_ACEOF | |
19027 | /* end confdefs.h. */ | |
19028 | #include <typeinfo> | |
19029 | class Base { public : Base () {} virtual void f () = 0; }; | |
19030 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19031 | int g (Derived&) { return 0; } | |
19032 | int | |
19033 | main () | |
19034 | { | |
19035 | ||
19036 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19037 | ; | |
19038 | return 0; | |
19039 | } | |
19040 | _ACEOF | |
19041 | rm -f conftest.$ac_objext | |
19042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19043 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 19044 | ac_status=$? |
32ddf007 VS |
19045 | grep -v '^ *+' conftest.er1 >conftest.err |
19046 | rm -f conftest.er1 | |
19047 | cat conftest.err >&5 | |
ecfd48ca VZ |
19048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19049 | (exit $ac_status); } && | |
e1293dcf | 19050 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19052 | (eval $ac_try) 2>&5 | |
19053 | ac_status=$? | |
19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19055 | (exit $ac_status); }; } && | |
19056 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
19057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19058 | (eval $ac_try) 2>&5 | |
19059 | ac_status=$? | |
19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19061 | (exit $ac_status); }; }; then | |
19062 | ac_cv_cxx_static_cast=yes | |
19063 | else | |
19064 | echo "$as_me: failed program was:" >&5 | |
19065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19066 | ||
19067 | ac_cv_cxx_static_cast=no | |
19068 | fi | |
32ddf007 | 19069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
19070 | ac_ext=c |
19071 | ac_cpp='$CPP $CPPFLAGS' | |
19072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19075 | ||
19076 | ||
19077 | fi | |
19078 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19079 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19080 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19081 | ||
19082 | cat >>confdefs.h <<\_ACEOF | |
19083 | #define HAVE_STATIC_CAST | |
19084 | _ACEOF | |
19085 | ||
19086 | fi | |
19087 | ||
521196a2 | 19088 | |
e87b7833 MB |
19089 | if test "$wxUSE_STL" = "yes"; then |
19090 | ac_ext=cc | |
19091 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19095 | ||
19096 | ||
19097 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19098 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19099 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19100 | /* confdefs.h. */ |
19101 | _ACEOF | |
19102 | cat confdefs.h >>conftest.$ac_ext | |
19103 | cat >>conftest.$ac_ext <<_ACEOF | |
19104 | /* end confdefs.h. */ | |
19105 | #include <string> | |
19106 | #include <functional> | |
19107 | #include <algorithm> | |
19108 | #include <vector> | |
19109 | #include <list> | |
19110 | int | |
19111 | main () | |
19112 | { | |
19113 | std::vector<int> moo; | |
19114 | std::list<int> foo; | |
19115 | std::vector<int>::iterator it = | |
19116 | std::find_if(moo.begin(), moo.end(), | |
19117 | std::bind2nd(std::less<int>(), 3)); | |
19118 | ; | |
19119 | return 0; | |
19120 | } | |
19121 | _ACEOF | |
19122 | rm -f conftest.$ac_objext | |
19123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19124 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19125 | ac_status=$? |
32ddf007 VS |
19126 | grep -v '^ *+' conftest.er1 >conftest.err |
19127 | rm -f conftest.er1 | |
19128 | cat conftest.err >&5 | |
e87b7833 MB |
19129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19130 | (exit $ac_status); } && | |
e1293dcf | 19131 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19133 | (eval $ac_try) 2>&5 | |
19134 | ac_status=$? | |
19135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19136 | (exit $ac_status); }; } && | |
19137 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19139 | (eval $ac_try) 2>&5 | |
19140 | ac_status=$? | |
19141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19142 | (exit $ac_status); }; }; then | |
19143 | echo "$as_me:$LINENO: result: yes" >&5 | |
19144 | echo "${ECHO_T}yes" >&6 | |
19145 | else | |
19146 | echo "$as_me: failed program was:" >&5 | |
19147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19148 | ||
19149 | echo "$as_me:$LINENO: result: no" >&5 | |
19150 | echo "${ECHO_T}no" >&6 | |
19151 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19152 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19153 | { (exit 1); exit 1; }; } | |
19154 | fi | |
32ddf007 | 19155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19156 | |
19157 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19158 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19159 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19160 | /* confdefs.h. */ |
19161 | _ACEOF | |
19162 | cat confdefs.h >>conftest.$ac_ext | |
19163 | cat >>conftest.$ac_ext <<_ACEOF | |
19164 | /* end confdefs.h. */ | |
19165 | #include <string> | |
19166 | int | |
19167 | main () | |
19168 | { | |
19169 | std::wstring foo; | |
19170 | ; | |
19171 | return 0; | |
19172 | } | |
19173 | _ACEOF | |
19174 | rm -f conftest.$ac_objext | |
19175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19176 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19177 | ac_status=$? |
32ddf007 VS |
19178 | grep -v '^ *+' conftest.er1 >conftest.err |
19179 | rm -f conftest.er1 | |
19180 | cat conftest.err >&5 | |
e87b7833 MB |
19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19182 | (exit $ac_status); } && | |
e1293dcf | 19183 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19185 | (eval $ac_try) 2>&5 | |
19186 | ac_status=$? | |
19187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19188 | (exit $ac_status); }; } && | |
19189 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19191 | (eval $ac_try) 2>&5 | |
19192 | ac_status=$? | |
19193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19194 | (exit $ac_status); }; }; then | |
19195 | echo "$as_me:$LINENO: result: yes" >&5 | |
19196 | echo "${ECHO_T}yes" >&6 | |
19197 | cat >>confdefs.h <<\_ACEOF | |
19198 | #define HAVE_STD_WSTRING 1 | |
19199 | _ACEOF | |
19200 | ||
19201 | else | |
19202 | echo "$as_me: failed program was:" >&5 | |
19203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19204 | ||
19205 | echo "$as_me:$LINENO: result: no" >&5 | |
19206 | echo "${ECHO_T}no" >&6 | |
19207 | fi | |
32ddf007 | 19208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19209 | |
19210 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19211 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19212 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19213 | /* confdefs.h. */ |
19214 | _ACEOF | |
19215 | cat confdefs.h >>conftest.$ac_ext | |
19216 | cat >>conftest.$ac_ext <<_ACEOF | |
19217 | /* end confdefs.h. */ | |
19218 | #include <string> | |
19219 | int | |
19220 | main () | |
19221 | { | |
19222 | std::string foo, bar; | |
19223 | foo.compare(bar); | |
19224 | foo.compare(1, 1, bar); | |
19225 | foo.compare(1, 1, bar, 1, 1); | |
19226 | foo.compare(""); | |
19227 | foo.compare(1, 1, ""); | |
19228 | foo.compare(1, 1, "", 2); | |
19229 | ; | |
19230 | return 0; | |
19231 | } | |
19232 | _ACEOF | |
19233 | rm -f conftest.$ac_objext | |
19234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19235 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19236 | ac_status=$? |
32ddf007 VS |
19237 | grep -v '^ *+' conftest.er1 >conftest.err |
19238 | rm -f conftest.er1 | |
19239 | cat conftest.err >&5 | |
e87b7833 MB |
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19241 | (exit $ac_status); } && | |
e1293dcf | 19242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19244 | (eval $ac_try) 2>&5 | |
19245 | ac_status=$? | |
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19247 | (exit $ac_status); }; } && | |
19248 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19250 | (eval $ac_try) 2>&5 | |
19251 | ac_status=$? | |
19252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19253 | (exit $ac_status); }; }; then | |
19254 | echo "$as_me:$LINENO: result: yes" >&5 | |
19255 | echo "${ECHO_T}yes" >&6 | |
19256 | cat >>confdefs.h <<\_ACEOF | |
19257 | #define HAVE_STD_STRING_COMPARE 1 | |
19258 | _ACEOF | |
19259 | ||
19260 | else | |
19261 | echo "$as_me: failed program was:" >&5 | |
19262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19263 | ||
19264 | echo "$as_me:$LINENO: result: no" >&5 | |
19265 | echo "${ECHO_T}no" >&6 | |
19266 | fi | |
32ddf007 | 19267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19268 | |
19269 | ac_ext=c | |
19270 | ac_cpp='$CPP $CPPFLAGS' | |
19271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19274 | ||
19275 | fi | |
19276 | ||
8284b0c5 | 19277 | |
21d1c967 GD |
19278 | SEARCH_INCLUDE="\ |
19279 | /usr/local/include \ | |
19280 | \ | |
21d1c967 | 19281 | /usr/Motif-2.1/include \ |
789c5f4a | 19282 | /usr/Motif-1.2/include \ |
21d1c967 GD |
19283 | /usr/include/Motif1.2 \ |
19284 | /opt/xpm/include/X11 \ | |
19285 | /opt/GBxpm/include/ \ | |
19286 | /opt/GBxpm/X11/include/ \ | |
19287 | \ | |
21d1c967 GD |
19288 | /usr/dt/include \ |
19289 | /usr/openwin/include \ | |
19290 | \ | |
19291 | /usr/include/Xm \ | |
19292 | \ | |
19293 | /usr/X11R6/include \ | |
19294 | /usr/X11R6.4/include \ | |
19295 | /usr/X11R5/include \ | |
19296 | /usr/X11R4/include \ | |
19297 | \ | |
19298 | /usr/include/X11R6 \ | |
19299 | /usr/include/X11R5 \ | |
19300 | /usr/include/X11R4 \ | |
19301 | \ | |
19302 | /usr/local/X11R6/include \ | |
19303 | /usr/local/X11R5/include \ | |
19304 | /usr/local/X11R4/include \ | |
19305 | \ | |
19306 | /usr/local/include/X11R6 \ | |
19307 | /usr/local/include/X11R5 \ | |
19308 | /usr/local/include/X11R4 \ | |
19309 | \ | |
19310 | /usr/X11/include \ | |
19311 | /usr/include/X11 \ | |
19312 | /usr/local/X11/include \ | |
19313 | /usr/local/include/X11 \ | |
19314 | \ | |
19315 | /usr/X386/include \ | |
19316 | /usr/x386/include \ | |
19317 | /usr/XFree86/include/X11 \ | |
19318 | \ | |
19319 | X:/XFree86/include \ | |
19320 | X:/XFree86/include/X11 \ | |
19321 | \ | |
19322 | /usr/include/gtk \ | |
19323 | /usr/local/include/gtk \ | |
19324 | /usr/include/glib \ | |
19325 | /usr/local/include/glib \ | |
19326 | \ | |
19327 | /usr/include/qt \ | |
19328 | /usr/local/include/qt \ | |
19329 | \ | |
0f87e84c RR |
19330 | /usr/local/arm/3.3.2/include \ |
19331 | \ | |
21d1c967 GD |
19332 | /usr/include/windows \ |
19333 | /usr/include/wine \ | |
19334 | /usr/local/include/wine \ | |
19335 | \ | |
19336 | /usr/unsupported/include \ | |
19337 | /usr/athena/include \ | |
19338 | /usr/local/x11r5/include \ | |
19339 | /usr/lpp/Xamples/include \ | |
19340 | \ | |
2b5f62a0 | 19341 | /usr/openwin/share/include" |
21d1c967 | 19342 | |
b62e750d | 19343 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" |
21d1c967 | 19344 | |
8284b0c5 | 19345 | |
e6cc62c6 | 19346 | cat >confcache <<\_ACEOF |
21d1c967 GD |
19347 | # This file is a shell script that caches the results of configure |
19348 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
19349 | # scripts and configure runs, see configure's option --config-cache. |
19350 | # It is not useful on other systems. If it contains results you don't | |
19351 | # want to keep, you may remove or edit it. | |
21d1c967 | 19352 | # |
e6cc62c6 VS |
19353 | # config.status only pays attention to the cache file if you give it |
19354 | # the --recheck option to rerun configure. | |
21d1c967 | 19355 | # |
e6cc62c6 VS |
19356 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19357 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19358 | # following values. | |
19359 | ||
19360 | _ACEOF | |
19361 | ||
21d1c967 GD |
19362 | # The following way of writing the cache mishandles newlines in values, |
19363 | # but we know of no workaround that is simple, portable, and efficient. | |
19364 | # So, don't put newlines in cache variables' values. | |
19365 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19366 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
19367 | { |
19368 | (set) 2>&1 | | |
19369 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19370 | *ac_space=\ *) | |
19371 | # `set' does not quote correctly, so add quotes (double-quote | |
19372 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19373 | sed -n \ | |
32ddf007 VS |
19374 | "s/'/'\\\\''/g; |
19375 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
19376 | ;; |
19377 | *) | |
19378 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19379 | sed -n \ | |
32ddf007 | 19380 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
19381 | ;; |
19382 | esac; | |
19383 | } | | |
19384 | sed ' | |
19385 | t clear | |
19386 | : clear | |
19387 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19388 | t end | |
19389 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19390 | : end' >>confcache | |
19391 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 19392 | if test -w $cache_file; then |
e6cc62c6 VS |
19393 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19394 | cat confcache >$cache_file | |
21d1c967 GD |
19395 | else |
19396 | echo "not updating unwritable cache $cache_file" | |
19397 | fi | |
ab9b9eab | 19398 | fi |
21d1c967 | 19399 | rm -f confcache |
ab9b9eab | 19400 | |
fe0895cf | 19401 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
19402 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
19403 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
19404 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
19405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19406 | else | |
19407 | ||
19408 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19409 | /* confdefs.h. */ |
19410 | _ACEOF | |
19411 | cat confdefs.h >>conftest.$ac_ext | |
19412 | cat >>conftest.$ac_ext <<_ACEOF | |
19413 | /* end confdefs.h. */ | |
21d1c967 | 19414 | #include <features.h> |
e6cc62c6 VS |
19415 | int |
19416 | main () | |
19417 | { | |
ab9b9eab | 19418 | |
21d1c967 GD |
19419 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
19420 | #error not glibc2.1 | |
19421 | #endif | |
e6cc62c6 VS |
19422 | |
19423 | ; | |
19424 | return 0; | |
19425 | } | |
19426 | _ACEOF | |
19427 | rm -f conftest.$ac_objext | |
19428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19429 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19430 | ac_status=$? |
32ddf007 VS |
19431 | grep -v '^ *+' conftest.er1 >conftest.err |
19432 | rm -f conftest.er1 | |
19433 | cat conftest.err >&5 | |
e6cc62c6 VS |
19434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19435 | (exit $ac_status); } && | |
e1293dcf | 19436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19438 | (eval $ac_try) 2>&5 | |
19439 | ac_status=$? | |
19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19441 | (exit $ac_status); }; } && | |
19442 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19444 | (eval $ac_try) 2>&5 | |
19445 | ac_status=$? | |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); }; }; then | |
19448 | ||
21d1c967 | 19449 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 19450 | |
698dcdb6 | 19451 | else |
e6cc62c6 VS |
19452 | echo "$as_me: failed program was:" >&5 |
19453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19454 | ||
19455 | ||
21d1c967 | 19456 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
19457 | |
19458 | ||
247f5006 | 19459 | fi |
32ddf007 | 19460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19461 | |
e6cc62c6 VS |
19462 | fi |
19463 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
19464 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 19465 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 19466 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19467 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 19468 | _ACEOF |
1e487827 | 19469 | |
90dd450c | 19470 | fi |
ab9b9eab VZ |
19471 | fi |
19472 | ||
5c0a20c3 VZ |
19473 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
19474 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 19475 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 19476 | #define _GNU_SOURCE 1 |
e6cc62c6 | 19477 | _ACEOF |
5c0a20c3 VZ |
19478 | |
19479 | fi | |
19480 | fi | |
19481 | ||
8284b0c5 MB |
19482 | |
19483 | ||
21d1c967 | 19484 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 19485 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19486 | #define wxUSE_REGEX 1 |
e6cc62c6 | 19487 | _ACEOF |
698dcdb6 | 19488 | |
8284b0c5 | 19489 | |
30f2fa6c | 19490 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
4996f261 VS |
19491 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 |
19492 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
30f2fa6c VS |
19493 | wxUSE_REGEX=builtin |
19494 | fi | |
19495 | ||
21d1c967 | 19496 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
19497 | if test "${ac_cv_header_regex_h+set}" = set; then |
19498 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19499 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19500 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19502 | fi | |
19503 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
19504 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19505 | else | |
19506 | # Is the header compilable? | |
19507 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
19508 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
19509 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19510 | /* confdefs.h. */ |
19511 | _ACEOF | |
19512 | cat confdefs.h >>conftest.$ac_ext | |
19513 | cat >>conftest.$ac_ext <<_ACEOF | |
19514 | /* end confdefs.h. */ | |
19515 | $ac_includes_default | |
247f5006 | 19516 | #include <regex.h> |
e6cc62c6 VS |
19517 | _ACEOF |
19518 | rm -f conftest.$ac_objext | |
19519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19520 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19521 | ac_status=$? |
32ddf007 VS |
19522 | grep -v '^ *+' conftest.er1 >conftest.err |
19523 | rm -f conftest.er1 | |
19524 | cat conftest.err >&5 | |
e6cc62c6 VS |
19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19526 | (exit $ac_status); } && | |
e1293dcf | 19527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19529 | (eval $ac_try) 2>&5 | |
19530 | ac_status=$? | |
19531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19532 | (exit $ac_status); }; } && | |
19533 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19535 | (eval $ac_try) 2>&5 | |
19536 | ac_status=$? | |
19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19538 | (exit $ac_status); }; }; then | |
19539 | ac_header_compiler=yes | |
19540 | else | |
19541 | echo "$as_me: failed program was:" >&5 | |
19542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19543 | ||
19544 | ac_header_compiler=no | |
19545 | fi | |
32ddf007 | 19546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19549 | ||
19550 | # Is the header present? | |
19551 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
19552 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
19553 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19554 | /* confdefs.h. */ |
19555 | _ACEOF | |
19556 | cat confdefs.h >>conftest.$ac_ext | |
19557 | cat >>conftest.$ac_ext <<_ACEOF | |
19558 | /* end confdefs.h. */ | |
19559 | #include <regex.h> | |
19560 | _ACEOF | |
19561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19563 | ac_status=$? | |
19564 | grep -v '^ *+' conftest.er1 >conftest.err | |
19565 | rm -f conftest.er1 | |
19566 | cat conftest.err >&5 | |
19567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19568 | (exit $ac_status); } >/dev/null; then | |
19569 | if test -s conftest.err; then | |
19570 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 19571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19572 | else |
19573 | ac_cpp_err= | |
19574 | fi | |
19575 | else | |
19576 | ac_cpp_err=yes | |
19577 | fi | |
19578 | if test -z "$ac_cpp_err"; then | |
19579 | ac_header_preproc=yes | |
19580 | else | |
19581 | echo "$as_me: failed program was:" >&5 | |
19582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19583 | ||
19584 | ac_header_preproc=no | |
19585 | fi | |
19586 | rm -f conftest.err conftest.$ac_ext | |
19587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19589 | ||
19590 | # So? What about this header? | |
32ddf007 VS |
19591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19592 | yes:no: ) | |
e6cc62c6 VS |
19593 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19594 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
19595 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
19596 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
19597 | ac_header_preproc=yes | |
e6cc62c6 | 19598 | ;; |
32ddf007 | 19599 | no:yes:* ) |
e6cc62c6 VS |
19600 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
19601 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
19602 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
19603 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
19604 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
19605 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
19606 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19607 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19608 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
19609 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
19610 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
19611 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19612 | ( |
19613 | cat <<\_ASBOX | |
32ddf007 VS |
19614 | ## ----------------------------------------- ## |
19615 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19616 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19617 | _ASBOX |
19618 | ) | | |
19619 | sed "s/^/$as_me: WARNING: /" >&2 | |
19620 | ;; | |
19621 | esac | |
19622 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19623 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19624 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19626 | else | |
19627 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 19628 | fi |
e6cc62c6 VS |
19629 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
19630 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19631 | ||
698dcdb6 | 19632 | fi |
e6cc62c6 VS |
19633 | if test $ac_cv_header_regex_h = yes; then |
19634 | ||
19635 | for ac_func in regcomp | |
21d1c967 | 19636 | do |
e6cc62c6 VS |
19637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19638 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19640 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19642 | else | |
19643 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19644 | /* confdefs.h. */ |
19645 | _ACEOF | |
19646 | cat confdefs.h >>conftest.$ac_ext | |
19647 | cat >>conftest.$ac_ext <<_ACEOF | |
19648 | /* end confdefs.h. */ | |
32ddf007 VS |
19649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19651 | #define $ac_func innocuous_$ac_func | |
19652 | ||
a0b9e27f | 19653 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
19654 | which can conflict with char $ac_func (); below. |
19655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19656 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 19657 | |
e6cc62c6 VS |
19658 | #ifdef __STDC__ |
19659 | # include <limits.h> | |
19660 | #else | |
19661 | # include <assert.h> | |
19662 | #endif | |
32ddf007 VS |
19663 | |
19664 | #undef $ac_func | |
19665 | ||
21d1c967 | 19666 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19667 | #ifdef __cplusplus |
19668 | extern "C" | |
19669 | { | |
19670 | #endif | |
21d1c967 | 19671 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19672 | builtin and then its argument prototype would still apply. */ |
19673 | char $ac_func (); | |
21d1c967 GD |
19674 | /* The GNU C library defines this for functions which it implements |
19675 | to always fail with ENOSYS. Some functions are actually named | |
19676 | something starting with __ and the normal name is an alias. */ | |
19677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19678 | choke me | |
19679 | #else | |
e6cc62c6 VS |
19680 | char (*f) () = $ac_func; |
19681 | #endif | |
19682 | #ifdef __cplusplus | |
19683 | } | |
21d1c967 | 19684 | #endif |
90dd450c | 19685 | |
e6cc62c6 VS |
19686 | int |
19687 | main () | |
19688 | { | |
19689 | return f != $ac_func; | |
19690 | ; | |
19691 | return 0; | |
19692 | } | |
19693 | _ACEOF | |
19694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 19696 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19697 | ac_status=$? |
32ddf007 VS |
19698 | grep -v '^ *+' conftest.er1 >conftest.err |
19699 | rm -f conftest.er1 | |
19700 | cat conftest.err >&5 | |
e6cc62c6 VS |
19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19702 | (exit $ac_status); } && | |
e1293dcf | 19703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19705 | (eval $ac_try) 2>&5 | |
19706 | ac_status=$? | |
19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19708 | (exit $ac_status); }; } && | |
19709 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19711 | (eval $ac_try) 2>&5 | |
19712 | ac_status=$? | |
19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19714 | (exit $ac_status); }; }; then | |
19715 | eval "$as_ac_var=yes" | |
19716 | else | |
19717 | echo "$as_me: failed program was:" >&5 | |
19718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19719 | ||
19720 | eval "$as_ac_var=no" | |
19721 | fi | |
32ddf007 VS |
19722 | rm -f conftest.err conftest.$ac_objext \ |
19723 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19724 | fi |
19725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19726 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19727 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19728 | cat >>confdefs.h <<_ACEOF | |
19729 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19730 | _ACEOF | |
5c6fa7d2 | 19731 | |
698dcdb6 | 19732 | fi |
21d1c967 GD |
19733 | done |
19734 | ||
ab9b9eab VZ |
19735 | fi |
19736 | ||
8284b0c5 | 19737 | |
e6cc62c6 | 19738 | |
21d1c967 GD |
19739 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
19740 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
19741 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
19742 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
19743 | { (exit 1); exit 1; }; } | |
21d1c967 | 19744 | else |
e6cc62c6 VS |
19745 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
19746 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19747 | wxUSE_REGEX=builtin |
19748 | fi | |
19749 | else | |
19750 | wxUSE_REGEX=sys | |
4996f261 VS |
19751 | cat >>confdefs.h <<\_ACEOF |
19752 | #define WX_NO_REGEX_ADVANCED 1 | |
19753 | _ACEOF | |
19754 | ||
21d1c967 | 19755 | fi |
ab9b9eab | 19756 | fi |
21d1c967 | 19757 | fi |
90dd450c | 19758 | |
8284b0c5 | 19759 | |
21d1c967 GD |
19760 | ZLIB_LINK= |
19761 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 19762 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19763 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 19764 | _ACEOF |
21d1c967 | 19765 | |
8284b0c5 | 19766 | |
21d1c967 | 19767 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
19768 | if test "$USE_DARWIN" = 1; then |
19769 | system_zlib_h_ok="yes" | |
19770 | else | |
e6cc62c6 VS |
19771 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
19772 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
19773 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
19775 | else |
19776 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19777 | unset ac_cv_header_zlib_h |
e6cc62c6 | 19778 | |
d643b80e | 19779 | else |
e6cc62c6 | 19780 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19781 | /* confdefs.h. */ |
19782 | _ACEOF | |
19783 | cat confdefs.h >>conftest.$ac_ext | |
19784 | cat >>conftest.$ac_ext <<_ACEOF | |
19785 | /* end confdefs.h. */ | |
19786 | ||
ef33c576 | 19787 | #include <zlib.h> |
d775acfa | 19788 | #include <stdio.h> |
d643b80e | 19789 | |
d775acfa VZ |
19790 | int main() |
19791 | { | |
19792 | FILE *f=fopen("conftestval", "w"); | |
19793 | if (!f) exit(1); | |
19794 | fprintf(f, "%s", | |
19795 | ZLIB_VERSION[0] == '1' && | |
19796 | (ZLIB_VERSION[2] > '1' || | |
19797 | (ZLIB_VERSION[2] == '1' && | |
19798 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19799 | exit(0); | |
19800 | } | |
e6cc62c6 VS |
19801 | |
19802 | _ACEOF | |
19803 | rm -f conftest$ac_exeext | |
19804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19805 | (eval $ac_link) 2>&5 | |
19806 | ac_status=$? | |
19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19808 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19810 | (eval $ac_try) 2>&5 | |
19811 | ac_status=$? | |
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19813 | (exit $ac_status); }; }; then | |
d643b80e VZ |
19814 | ac_cv_header_zlib_h=`cat conftestval` |
19815 | else | |
e6cc62c6 VS |
19816 | echo "$as_me: program exited with status $ac_status" >&5 |
19817 | echo "$as_me: failed program was:" >&5 | |
19818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19819 | ||
19820 | ( exit $ac_status ) | |
19821 | ac_cv_header_zlib_h=no | |
d643b80e | 19822 | fi |
32ddf007 | 19823 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
19824 | fi |
19825 | ||
d643b80e | 19826 | fi |
e6cc62c6 VS |
19827 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
19828 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19829 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19830 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19831 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19832 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19834 | fi | |
19835 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19836 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 19837 | else |
e6cc62c6 VS |
19838 | # Is the header compilable? |
19839 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19840 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19841 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19842 | /* confdefs.h. */ |
19843 | _ACEOF | |
19844 | cat confdefs.h >>conftest.$ac_ext | |
19845 | cat >>conftest.$ac_ext <<_ACEOF | |
19846 | /* end confdefs.h. */ | |
19847 | $ac_includes_default | |
89e6bf6d | 19848 | #include <zlib.h> |
e6cc62c6 VS |
19849 | _ACEOF |
19850 | rm -f conftest.$ac_objext | |
19851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19852 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19853 | ac_status=$? |
32ddf007 VS |
19854 | grep -v '^ *+' conftest.er1 >conftest.err |
19855 | rm -f conftest.er1 | |
19856 | cat conftest.err >&5 | |
e6cc62c6 VS |
19857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19858 | (exit $ac_status); } && | |
e1293dcf | 19859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
19860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19861 | (eval $ac_try) 2>&5 | |
19862 | ac_status=$? | |
19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19864 | (exit $ac_status); }; } && | |
19865 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19867 | (eval $ac_try) 2>&5 | |
19868 | ac_status=$? | |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19870 | (exit $ac_status); }; }; then | |
19871 | ac_header_compiler=yes | |
19872 | else | |
19873 | echo "$as_me: failed program was:" >&5 | |
19874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19875 | ||
19876 | ac_header_compiler=no | |
19877 | fi | |
32ddf007 | 19878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19879 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19880 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19881 | ||
19882 | # Is the header present? | |
19883 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19884 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19885 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19886 | /* confdefs.h. */ |
19887 | _ACEOF | |
19888 | cat confdefs.h >>conftest.$ac_ext | |
19889 | cat >>conftest.$ac_ext <<_ACEOF | |
19890 | /* end confdefs.h. */ | |
19891 | #include <zlib.h> | |
19892 | _ACEOF | |
19893 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19894 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19895 | ac_status=$? | |
19896 | grep -v '^ *+' conftest.er1 >conftest.err | |
19897 | rm -f conftest.er1 | |
19898 | cat conftest.err >&5 | |
19899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19900 | (exit $ac_status); } >/dev/null; then | |
19901 | if test -s conftest.err; then | |
19902 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 19903 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19904 | else |
19905 | ac_cpp_err= | |
19906 | fi | |
19907 | else | |
19908 | ac_cpp_err=yes | |
19909 | fi | |
19910 | if test -z "$ac_cpp_err"; then | |
19911 | ac_header_preproc=yes | |
19912 | else | |
19913 | echo "$as_me: failed program was:" >&5 | |
19914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19915 | ||
19916 | ac_header_preproc=no | |
19917 | fi | |
19918 | rm -f conftest.err conftest.$ac_ext | |
19919 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19920 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19921 | ||
19922 | # So? What about this header? | |
32ddf007 VS |
19923 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19924 | yes:no: ) | |
e6cc62c6 VS |
19925 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19926 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
19927 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
19928 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19929 | ac_header_preproc=yes | |
e6cc62c6 | 19930 | ;; |
32ddf007 | 19931 | no:yes:* ) |
e6cc62c6 VS |
19932 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19933 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
19934 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19935 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19936 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19937 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19938 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19939 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19940 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19941 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
19942 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
19943 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19944 | ( |
19945 | cat <<\_ASBOX | |
32ddf007 VS |
19946 | ## ----------------------------------------- ## |
19947 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19948 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19949 | _ASBOX |
19950 | ) | | |
19951 | sed "s/^/$as_me: WARNING: /" >&2 | |
19952 | ;; | |
19953 | esac | |
19954 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19955 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19956 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19958 | else |
e6cc62c6 VS |
19959 | ac_cv_header_zlib_h=$ac_header_preproc |
19960 | fi | |
19961 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19962 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19963 | ||
89e6bf6d VZ |
19964 | fi |
19965 | ||
d643b80e | 19966 | |
e6cc62c6 | 19967 | |
d775acfa VZ |
19968 | system_zlib_h_ok=$ac_cv_header_zlib_h |
19969 | fi | |
19970 | ||
19971 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
19972 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
19973 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19974 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19976 | else |
e6cc62c6 | 19977 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19978 | LIBS="-lz $LIBS" |
e6cc62c6 | 19979 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19980 | /* confdefs.h. */ |
19981 | _ACEOF | |
19982 | cat confdefs.h >>conftest.$ac_ext | |
19983 | cat >>conftest.$ac_ext <<_ACEOF | |
19984 | /* end confdefs.h. */ | |
19985 | ||
21d1c967 | 19986 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19987 | #ifdef __cplusplus |
19988 | extern "C" | |
19989 | #endif | |
21d1c967 | 19990 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19991 | builtin and then its argument prototype would still apply. */ |
19992 | char deflate (); | |
19993 | int | |
19994 | main () | |
19995 | { | |
19996 | deflate (); | |
19997 | ; | |
19998 | return 0; | |
19999 | } | |
20000 | _ACEOF | |
20001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20003 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20004 | ac_status=$? |
32ddf007 VS |
20005 | grep -v '^ *+' conftest.er1 >conftest.err |
20006 | rm -f conftest.er1 | |
20007 | cat conftest.err >&5 | |
e6cc62c6 VS |
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20009 | (exit $ac_status); } && | |
e1293dcf | 20010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20012 | (eval $ac_try) 2>&5 | |
20013 | ac_status=$? | |
20014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20015 | (exit $ac_status); }; } && | |
20016 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); }; }; then | |
20022 | ac_cv_lib_z_deflate=yes | |
20023 | else | |
20024 | echo "$as_me: failed program was:" >&5 | |
20025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20026 | ||
20027 | ac_cv_lib_z_deflate=no | |
20028 | fi | |
32ddf007 VS |
20029 | rm -f conftest.err conftest.$ac_objext \ |
20030 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20031 | LIBS=$ac_check_lib_save_LIBS |
20032 | fi | |
20033 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20034 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20035 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 20036 | ZLIB_LINK=" -lz" |
a0b9e27f | 20037 | fi |
698dcdb6 | 20038 | |
d643b80e | 20039 | fi |
247f5006 | 20040 | |
21d1c967 GD |
20041 | if test "x$ZLIB_LINK" = "x" ; then |
20042 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
20043 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
20044 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20045 | { (exit 1); exit 1; }; } | |
21d1c967 | 20046 | else |
e6cc62c6 VS |
20047 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
20048 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20049 | wxUSE_ZLIB=builtin |
20050 | fi | |
20051 | else | |
20052 | wxUSE_ZLIB=sys | |
20053 | fi | |
20054 | fi | |
ab9b9eab VZ |
20055 | fi |
20056 | ||
8284b0c5 | 20057 | |
21d1c967 GD |
20058 | PNG_LINK= |
20059 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 20060 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20061 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 20062 | _ACEOF |
90dd450c | 20063 | |
8284b0c5 | 20064 | |
21d1c967 | 20065 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
20066 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
20067 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20068 | wxUSE_LIBPNG=sys |
20069 | fi | |
90dd450c | 20070 | |
21d1c967 | 20071 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
20072 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
20073 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
20074 | wxUSE_LIBPNG=builtin |
20075 | fi | |
20076 | ||
20077 | if test "$wxUSE_MGL" != 1 ; then | |
20078 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
20079 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
20080 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20081 | if test "${ac_cv_header_png_h+set}" = set; then | |
20082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
20083 | else |
20084 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 20085 | unset ac_cv_header_png_h |
e6cc62c6 | 20086 | |
5d3f766d | 20087 | else |
e6cc62c6 | 20088 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20089 | /* confdefs.h. */ |
20090 | _ACEOF | |
20091 | cat confdefs.h >>conftest.$ac_ext | |
20092 | cat >>conftest.$ac_ext <<_ACEOF | |
20093 | /* end confdefs.h. */ | |
20094 | ||
ef33c576 | 20095 | #include <png.h> |
5d3f766d VZ |
20096 | #include <stdio.h> |
20097 | ||
20098 | int main() | |
20099 | { | |
20100 | FILE *f=fopen("conftestval", "w"); | |
20101 | if (!f) exit(1); | |
20102 | fprintf(f, "%s", | |
20103 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20104 | exit(0); | |
20105 | } | |
e6cc62c6 VS |
20106 | |
20107 | _ACEOF | |
20108 | rm -f conftest$ac_exeext | |
20109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20110 | (eval $ac_link) 2>&5 | |
20111 | ac_status=$? | |
20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20115 | (eval $ac_try) 2>&5 | |
20116 | ac_status=$? | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
20119 | ac_cv_header_png_h=`cat conftestval` |
20120 | else | |
e6cc62c6 VS |
20121 | echo "$as_me: program exited with status $ac_status" >&5 |
20122 | echo "$as_me: failed program was:" >&5 | |
20123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20124 | ||
20125 | ( exit $ac_status ) | |
20126 | ac_cv_header_png_h=no | |
5d3f766d | 20127 | fi |
32ddf007 | 20128 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
20129 | fi |
20130 | ||
5d3f766d | 20131 | fi |
e6cc62c6 VS |
20132 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
20133 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20134 | if test "${ac_cv_header_png_h+set}" = set; then | |
20135 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20136 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20137 | if test "${ac_cv_header_png_h+set}" = set; then | |
20138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20139 | fi | |
20140 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20141 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 20142 | else |
e6cc62c6 VS |
20143 | # Is the header compilable? |
20144 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20145 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20146 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20147 | /* confdefs.h. */ |
20148 | _ACEOF | |
20149 | cat confdefs.h >>conftest.$ac_ext | |
20150 | cat >>conftest.$ac_ext <<_ACEOF | |
20151 | /* end confdefs.h. */ | |
20152 | $ac_includes_default | |
89e6bf6d | 20153 | #include <png.h> |
e6cc62c6 VS |
20154 | _ACEOF |
20155 | rm -f conftest.$ac_objext | |
20156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20157 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20158 | ac_status=$? |
32ddf007 VS |
20159 | grep -v '^ *+' conftest.er1 >conftest.err |
20160 | rm -f conftest.er1 | |
20161 | cat conftest.err >&5 | |
e6cc62c6 VS |
20162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20163 | (exit $ac_status); } && | |
e1293dcf | 20164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20166 | (eval $ac_try) 2>&5 | |
20167 | ac_status=$? | |
20168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20169 | (exit $ac_status); }; } && | |
20170 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20172 | (eval $ac_try) 2>&5 | |
20173 | ac_status=$? | |
20174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20175 | (exit $ac_status); }; }; then | |
20176 | ac_header_compiler=yes | |
20177 | else | |
20178 | echo "$as_me: failed program was:" >&5 | |
20179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20180 | ||
20181 | ac_header_compiler=no | |
20182 | fi | |
32ddf007 | 20183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20185 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20186 | ||
20187 | # Is the header present? | |
20188 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20189 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20190 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20191 | /* confdefs.h. */ |
20192 | _ACEOF | |
20193 | cat confdefs.h >>conftest.$ac_ext | |
20194 | cat >>conftest.$ac_ext <<_ACEOF | |
20195 | /* end confdefs.h. */ | |
20196 | #include <png.h> | |
20197 | _ACEOF | |
20198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20200 | ac_status=$? | |
20201 | grep -v '^ *+' conftest.er1 >conftest.err | |
20202 | rm -f conftest.er1 | |
20203 | cat conftest.err >&5 | |
20204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20205 | (exit $ac_status); } >/dev/null; then | |
20206 | if test -s conftest.err; then | |
20207 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20208 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20209 | else |
20210 | ac_cpp_err= | |
20211 | fi | |
20212 | else | |
20213 | ac_cpp_err=yes | |
20214 | fi | |
20215 | if test -z "$ac_cpp_err"; then | |
20216 | ac_header_preproc=yes | |
20217 | else | |
20218 | echo "$as_me: failed program was:" >&5 | |
20219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20220 | ||
20221 | ac_header_preproc=no | |
20222 | fi | |
20223 | rm -f conftest.err conftest.$ac_ext | |
20224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20225 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20226 | ||
20227 | # So? What about this header? | |
32ddf007 VS |
20228 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20229 | yes:no: ) | |
e6cc62c6 VS |
20230 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20231 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20232 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20233 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20234 | ac_header_preproc=yes | |
e6cc62c6 | 20235 | ;; |
32ddf007 | 20236 | no:yes:* ) |
e6cc62c6 VS |
20237 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20238 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20239 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20240 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20241 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20242 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20243 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20244 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20245 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20246 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20247 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20248 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20249 | ( |
20250 | cat <<\_ASBOX | |
32ddf007 VS |
20251 | ## ----------------------------------------- ## |
20252 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20253 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20254 | _ASBOX |
20255 | ) | | |
20256 | sed "s/^/$as_me: WARNING: /" >&2 | |
20257 | ;; | |
20258 | esac | |
20259 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20260 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20261 | if test "${ac_cv_header_png_h+set}" = set; then | |
20262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 20263 | else |
e6cc62c6 VS |
20264 | ac_cv_header_png_h=$ac_header_preproc |
20265 | fi | |
20266 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20267 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20268 | ||
89e6bf6d VZ |
20269 | fi |
20270 | ||
5d3f766d | 20271 | |
e6cc62c6 | 20272 | |
5d3f766d | 20273 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
20274 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
20275 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20276 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20278 | else |
e6cc62c6 | 20279 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20280 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 20281 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20282 | /* confdefs.h. */ |
20283 | _ACEOF | |
20284 | cat confdefs.h >>conftest.$ac_ext | |
20285 | cat >>conftest.$ac_ext <<_ACEOF | |
20286 | /* end confdefs.h. */ | |
20287 | ||
21d1c967 | 20288 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20289 | #ifdef __cplusplus |
20290 | extern "C" | |
20291 | #endif | |
21d1c967 | 20292 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20293 | builtin and then its argument prototype would still apply. */ |
20294 | char png_check_sig (); | |
20295 | int | |
20296 | main () | |
20297 | { | |
20298 | png_check_sig (); | |
20299 | ; | |
20300 | return 0; | |
20301 | } | |
20302 | _ACEOF | |
20303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20305 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20306 | ac_status=$? |
32ddf007 VS |
20307 | grep -v '^ *+' conftest.er1 >conftest.err |
20308 | rm -f conftest.er1 | |
20309 | cat conftest.err >&5 | |
e6cc62c6 VS |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20311 | (exit $ac_status); } && | |
e1293dcf | 20312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20314 | (eval $ac_try) 2>&5 | |
20315 | ac_status=$? | |
20316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20317 | (exit $ac_status); }; } && | |
20318 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20320 | (eval $ac_try) 2>&5 | |
20321 | ac_status=$? | |
20322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20323 | (exit $ac_status); }; }; then | |
20324 | ac_cv_lib_png_png_check_sig=yes | |
20325 | else | |
20326 | echo "$as_me: failed program was:" >&5 | |
20327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20328 | ||
20329 | ac_cv_lib_png_png_check_sig=no | |
20330 | fi | |
32ddf007 VS |
20331 | rm -f conftest.err conftest.$ac_objext \ |
20332 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20333 | LIBS=$ac_check_lib_save_LIBS |
20334 | fi | |
20335 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20336 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20337 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 20338 | PNG_LINK=" -lpng" |
a0b9e27f | 20339 | fi |
90dd450c | 20340 | |
5d3f766d | 20341 | fi |
247f5006 | 20342 | |
21d1c967 GD |
20343 | if test "x$PNG_LINK" = "x" ; then |
20344 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
20345 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
20346 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20347 | { (exit 1); exit 1; }; } | |
21d1c967 | 20348 | else |
e6cc62c6 VS |
20349 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
20350 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20351 | wxUSE_LIBPNG=builtin |
20352 | fi | |
20353 | else | |
2b5f62a0 | 20354 | wxUSE_LIBPNG=sys |
21d1c967 GD |
20355 | fi |
20356 | fi | |
20357 | fi | |
90dd450c | 20358 | |
21d1c967 | 20359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
20360 | fi |
20361 | ||
8284b0c5 | 20362 | |
21d1c967 GD |
20363 | JPEG_LINK= |
20364 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 20365 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20366 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 20367 | _ACEOF |
90dd450c | 20368 | |
8284b0c5 | 20369 | |
21d1c967 | 20370 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
20371 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
20372 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20373 | wxUSE_LIBJPEG=sys |
20374 | fi | |
90dd450c | 20375 | |
21d1c967 GD |
20376 | if test "$wxUSE_MGL" != 1 ; then |
20377 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
20378 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
20379 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20380 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20382 | else | |
20383 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20384 | /* confdefs.h. */ |
20385 | _ACEOF | |
20386 | cat confdefs.h >>conftest.$ac_ext | |
20387 | cat >>conftest.$ac_ext <<_ACEOF | |
20388 | /* end confdefs.h. */ | |
90dd450c | 20389 | |
21d1c967 GD |
20390 | #undef HAVE_STDLIB_H |
20391 | #include <stdio.h> | |
20392 | #include <jpeglib.h> | |
90dd450c | 20393 | |
e6cc62c6 VS |
20394 | int |
20395 | main () | |
20396 | { | |
20397 | ||
20398 | ||
20399 | ; | |
20400 | return 0; | |
20401 | } | |
20402 | _ACEOF | |
20403 | rm -f conftest.$ac_objext | |
20404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20405 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20406 | ac_status=$? |
32ddf007 VS |
20407 | grep -v '^ *+' conftest.er1 >conftest.err |
20408 | rm -f conftest.er1 | |
20409 | cat conftest.err >&5 | |
e6cc62c6 VS |
20410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20411 | (exit $ac_status); } && | |
e1293dcf | 20412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20414 | (eval $ac_try) 2>&5 | |
20415 | ac_status=$? | |
20416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20417 | (exit $ac_status); }; } && | |
20418 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20420 | (eval $ac_try) 2>&5 | |
20421 | ac_status=$? | |
20422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20423 | (exit $ac_status); }; }; then | |
21d1c967 | 20424 | ac_cv_header_jpeglib_h=yes |
90dd450c | 20425 | else |
e6cc62c6 VS |
20426 | echo "$as_me: failed program was:" >&5 |
20427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20428 | ||
20429 | ac_cv_header_jpeglib_h=no | |
20430 | ||
90dd450c | 20431 | fi |
32ddf007 | 20432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 20433 | |
90dd450c VZ |
20434 | fi |
20435 | ||
e6cc62c6 VS |
20436 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
20437 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 20438 | |
21d1c967 | 20439 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
20440 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
20441 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
20442 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
20443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20444 | else |
e6cc62c6 | 20445 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20446 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 20447 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20448 | /* confdefs.h. */ |
20449 | _ACEOF | |
20450 | cat confdefs.h >>conftest.$ac_ext | |
20451 | cat >>conftest.$ac_ext <<_ACEOF | |
20452 | /* end confdefs.h. */ | |
20453 | ||
21d1c967 | 20454 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20455 | #ifdef __cplusplus |
20456 | extern "C" | |
20457 | #endif | |
21d1c967 | 20458 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20459 | builtin and then its argument prototype would still apply. */ |
20460 | char jpeg_read_header (); | |
20461 | int | |
20462 | main () | |
20463 | { | |
20464 | jpeg_read_header (); | |
20465 | ; | |
20466 | return 0; | |
20467 | } | |
20468 | _ACEOF | |
20469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20471 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20472 | ac_status=$? |
32ddf007 VS |
20473 | grep -v '^ *+' conftest.er1 >conftest.err |
20474 | rm -f conftest.er1 | |
20475 | cat conftest.err >&5 | |
e6cc62c6 VS |
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20477 | (exit $ac_status); } && | |
e1293dcf | 20478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20480 | (eval $ac_try) 2>&5 | |
20481 | ac_status=$? | |
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20483 | (exit $ac_status); }; } && | |
20484 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20486 | (eval $ac_try) 2>&5 | |
20487 | ac_status=$? | |
20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20489 | (exit $ac_status); }; }; then | |
20490 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
20491 | else | |
20492 | echo "$as_me: failed program was:" >&5 | |
20493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20494 | ||
20495 | ac_cv_lib_jpeg_jpeg_read_header=no | |
20496 | fi | |
32ddf007 VS |
20497 | rm -f conftest.err conftest.$ac_objext \ |
20498 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20499 | LIBS=$ac_check_lib_save_LIBS |
20500 | fi | |
20501 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
20502 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
20503 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 20504 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
20505 | fi |
20506 | ||
21d1c967 | 20507 | fi |
90dd450c | 20508 | |
21d1c967 GD |
20509 | if test "x$JPEG_LINK" = "x" ; then |
20510 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
20511 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
20512 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
20513 | { (exit 1); exit 1; }; } | |
21d1c967 | 20514 | else |
e6cc62c6 VS |
20515 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
20516 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
20517 | wxUSE_LIBJPEG=builtin |
20518 | fi | |
20519 | else | |
20520 | wxUSE_LIBJPEG=sys | |
20521 | fi | |
20522 | fi | |
20523 | fi | |
21d1c967 | 20524 | fi |
90dd450c | 20525 | |
8284b0c5 | 20526 | |
21d1c967 | 20527 | TIFF_LINK= |
2b5f62a0 | 20528 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 20529 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 20530 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20531 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 20532 | _ACEOF |
21d1c967 | 20533 | |
8284b0c5 | 20534 | |
21d1c967 | 20535 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
20536 | if test "$wxUSE_LIBJPEG" = "sys"; then |
20537 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
20538 | fi | |
20539 | if test "$wxUSE_ZLIB" = "sys"; then | |
20540 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
20541 | fi | |
e6cc62c6 VS |
20542 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
20543 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20544 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20545 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20547 | fi | |
20548 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
20549 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20550 | else | |
20551 | # Is the header compilable? | |
20552 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
20553 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
20554 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20555 | /* confdefs.h. */ |
20556 | _ACEOF | |
20557 | cat confdefs.h >>conftest.$ac_ext | |
20558 | cat >>conftest.$ac_ext <<_ACEOF | |
20559 | /* end confdefs.h. */ | |
20560 | $ac_includes_default | |
247f5006 | 20561 | #include <tiffio.h> |
e6cc62c6 VS |
20562 | _ACEOF |
20563 | rm -f conftest.$ac_objext | |
20564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20565 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20566 | ac_status=$? |
32ddf007 VS |
20567 | grep -v '^ *+' conftest.er1 >conftest.err |
20568 | rm -f conftest.er1 | |
20569 | cat conftest.err >&5 | |
e6cc62c6 VS |
20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20571 | (exit $ac_status); } && | |
e1293dcf | 20572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20574 | (eval $ac_try) 2>&5 | |
20575 | ac_status=$? | |
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20577 | (exit $ac_status); }; } && | |
20578 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20580 | (eval $ac_try) 2>&5 | |
20581 | ac_status=$? | |
20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20583 | (exit $ac_status); }; }; then | |
20584 | ac_header_compiler=yes | |
20585 | else | |
20586 | echo "$as_me: failed program was:" >&5 | |
20587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20588 | ||
20589 | ac_header_compiler=no | |
20590 | fi | |
32ddf007 | 20591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20593 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20594 | ||
20595 | # Is the header present? | |
20596 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
20597 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
20598 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20599 | /* confdefs.h. */ |
20600 | _ACEOF | |
20601 | cat confdefs.h >>conftest.$ac_ext | |
20602 | cat >>conftest.$ac_ext <<_ACEOF | |
20603 | /* end confdefs.h. */ | |
20604 | #include <tiffio.h> | |
20605 | _ACEOF | |
20606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20608 | ac_status=$? | |
20609 | grep -v '^ *+' conftest.er1 >conftest.err | |
20610 | rm -f conftest.er1 | |
20611 | cat conftest.err >&5 | |
20612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20613 | (exit $ac_status); } >/dev/null; then | |
20614 | if test -s conftest.err; then | |
20615 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20617 | else |
20618 | ac_cpp_err= | |
20619 | fi | |
20620 | else | |
20621 | ac_cpp_err=yes | |
20622 | fi | |
20623 | if test -z "$ac_cpp_err"; then | |
20624 | ac_header_preproc=yes | |
20625 | else | |
20626 | echo "$as_me: failed program was:" >&5 | |
20627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20628 | ||
20629 | ac_header_preproc=no | |
20630 | fi | |
20631 | rm -f conftest.err conftest.$ac_ext | |
20632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20633 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20634 | ||
20635 | # So? What about this header? | |
32ddf007 VS |
20636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20637 | yes:no: ) | |
e6cc62c6 VS |
20638 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20639 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20640 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
20641 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
20642 | ac_header_preproc=yes | |
e6cc62c6 | 20643 | ;; |
32ddf007 | 20644 | no:yes:* ) |
e6cc62c6 VS |
20645 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
20646 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20647 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
20648 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
20649 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
20650 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
20651 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20652 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20653 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
20654 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20655 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
20656 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20657 | ( |
20658 | cat <<\_ASBOX | |
32ddf007 VS |
20659 | ## ----------------------------------------- ## |
20660 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20661 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20662 | _ASBOX |
20663 | ) | | |
20664 | sed "s/^/$as_me: WARNING: /" >&2 | |
20665 | ;; | |
20666 | esac | |
20667 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20668 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20669 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20671 | else | |
20672 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 20673 | fi |
e6cc62c6 VS |
20674 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
20675 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20676 | ||
21d1c967 | 20677 | fi |
e6cc62c6 | 20678 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
20679 | |
20680 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
20681 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
20682 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
20683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 20684 | else |
e6cc62c6 | 20685 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 20686 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 20687 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20688 | /* confdefs.h. */ |
20689 | _ACEOF | |
20690 | cat confdefs.h >>conftest.$ac_ext | |
20691 | cat >>conftest.$ac_ext <<_ACEOF | |
20692 | /* end confdefs.h. */ | |
20693 | ||
ab9b9eab | 20694 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20695 | #ifdef __cplusplus |
20696 | extern "C" | |
20697 | #endif | |
ab9b9eab | 20698 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20699 | builtin and then its argument prototype would still apply. */ |
20700 | char TIFFError (); | |
20701 | int | |
20702 | main () | |
20703 | { | |
20704 | TIFFError (); | |
20705 | ; | |
20706 | return 0; | |
20707 | } | |
20708 | _ACEOF | |
20709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20711 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20712 | ac_status=$? |
32ddf007 VS |
20713 | grep -v '^ *+' conftest.er1 >conftest.err |
20714 | rm -f conftest.er1 | |
20715 | cat conftest.err >&5 | |
e6cc62c6 VS |
20716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20717 | (exit $ac_status); } && | |
e1293dcf | 20718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20720 | (eval $ac_try) 2>&5 | |
20721 | ac_status=$? | |
20722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20723 | (exit $ac_status); }; } && | |
20724 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20726 | (eval $ac_try) 2>&5 | |
20727 | ac_status=$? | |
20728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20729 | (exit $ac_status); }; }; then | |
20730 | ac_cv_lib_tiff_TIFFError=yes | |
20731 | else | |
20732 | echo "$as_me: failed program was:" >&5 | |
20733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20734 | ||
20735 | ac_cv_lib_tiff_TIFFError=no | |
20736 | fi | |
32ddf007 VS |
20737 | rm -f conftest.err conftest.$ac_objext \ |
20738 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20739 | LIBS=$ac_check_lib_save_LIBS |
20740 | fi | |
20741 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
20742 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
20743 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 20744 | TIFF_LINK=" -ltiff" |
a0b9e27f | 20745 | fi |
cd6d6d5b | 20746 | |
e6cc62c6 | 20747 | |
0e012a93 | 20748 | |
a0b9e27f | 20749 | fi |
8284b0c5 | 20750 | |
247f5006 | 20751 | |
e6cc62c6 | 20752 | |
21d1c967 GD |
20753 | if test "x$TIFF_LINK" = "x" ; then |
20754 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
20755 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
20756 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
20757 | { (exit 1); exit 1; }; } | |
90dd450c | 20758 | else |
e6cc62c6 VS |
20759 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
20760 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 20761 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 20762 | fi |
d8356fa3 | 20763 | else |
21d1c967 | 20764 | wxUSE_LIBTIFF=sys |
d8356fa3 | 20765 | fi |
21d1c967 | 20766 | fi |
21d1c967 | 20767 | fi |
10f2d63a | 20768 | |
8284b0c5 | 20769 | |
672abd7a | 20770 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 20771 | wxUSE_XML=yes |
672abd7a VS |
20772 | cat >>confdefs.h <<\_ACEOF |
20773 | #define wxUSE_EXPAT 1 | |
20774 | _ACEOF | |
20775 | ||
20776 | cat >>confdefs.h <<\_ACEOF | |
20777 | #define wxUSE_XML 1 | |
20778 | _ACEOF | |
20779 | ||
20780 | ||
20781 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
20782 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20783 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20784 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20785 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20787 | fi | |
20788 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20789 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20790 | else | |
20791 | # Is the header compilable? | |
20792 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
20793 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
20794 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20795 | /* confdefs.h. */ |
20796 | _ACEOF | |
20797 | cat confdefs.h >>conftest.$ac_ext | |
20798 | cat >>conftest.$ac_ext <<_ACEOF | |
20799 | /* end confdefs.h. */ | |
20800 | $ac_includes_default | |
20801 | #include <expat.h> | |
20802 | _ACEOF | |
20803 | rm -f conftest.$ac_objext | |
20804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20805 | (eval $ac_compile) 2>conftest.er1 |
672abd7a | 20806 | ac_status=$? |
32ddf007 VS |
20807 | grep -v '^ *+' conftest.er1 >conftest.err |
20808 | rm -f conftest.er1 | |
20809 | cat conftest.err >&5 | |
672abd7a VS |
20810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20811 | (exit $ac_status); } && | |
e1293dcf | 20812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20814 | (eval $ac_try) 2>&5 | |
20815 | ac_status=$? | |
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20817 | (exit $ac_status); }; } && | |
20818 | { ac_try='test -s conftest.$ac_objext' | |
672abd7a VS |
20819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20820 | (eval $ac_try) 2>&5 | |
20821 | ac_status=$? | |
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20823 | (exit $ac_status); }; }; then | |
20824 | ac_header_compiler=yes | |
20825 | else | |
20826 | echo "$as_me: failed program was:" >&5 | |
20827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20828 | ||
20829 | ac_header_compiler=no | |
20830 | fi | |
32ddf007 | 20831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
20832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20833 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20834 | ||
20835 | # Is the header present? | |
20836 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
20837 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
20838 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20839 | /* confdefs.h. */ |
20840 | _ACEOF | |
20841 | cat confdefs.h >>conftest.$ac_ext | |
20842 | cat >>conftest.$ac_ext <<_ACEOF | |
20843 | /* end confdefs.h. */ | |
20844 | #include <expat.h> | |
20845 | _ACEOF | |
20846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20848 | ac_status=$? | |
20849 | grep -v '^ *+' conftest.er1 >conftest.err | |
20850 | rm -f conftest.er1 | |
20851 | cat conftest.err >&5 | |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20853 | (exit $ac_status); } >/dev/null; then | |
20854 | if test -s conftest.err; then | |
20855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
672abd7a VS |
20857 | else |
20858 | ac_cpp_err= | |
20859 | fi | |
20860 | else | |
20861 | ac_cpp_err=yes | |
20862 | fi | |
20863 | if test -z "$ac_cpp_err"; then | |
20864 | ac_header_preproc=yes | |
20865 | else | |
20866 | echo "$as_me: failed program was:" >&5 | |
20867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20868 | ||
20869 | ac_header_preproc=no | |
20870 | fi | |
20871 | rm -f conftest.err conftest.$ac_ext | |
20872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20873 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20874 | ||
20875 | # So? What about this header? | |
32ddf007 VS |
20876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20877 | yes:no: ) | |
672abd7a VS |
20878 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20879 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20880 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
20881 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
20882 | ac_header_preproc=yes | |
672abd7a | 20883 | ;; |
32ddf007 | 20884 | no:yes:* ) |
672abd7a VS |
20885 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
20886 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20887 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
20888 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
20889 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
20890 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
20891 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20892 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
672abd7a VS |
20893 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20894 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20895 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
20896 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
672abd7a VS |
20897 | ( |
20898 | cat <<\_ASBOX | |
32ddf007 VS |
20899 | ## ----------------------------------------- ## |
20900 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20901 | ## ----------------------------------------- ## | |
672abd7a VS |
20902 | _ASBOX |
20903 | ) | | |
20904 | sed "s/^/$as_me: WARNING: /" >&2 | |
20905 | ;; | |
20906 | esac | |
20907 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20908 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20909 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20911 | else | |
20912 | ac_cv_header_expat_h=$ac_header_preproc | |
20913 | fi | |
20914 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20915 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20916 | ||
20917 | fi | |
5f0b6dff VS |
20918 | if test $ac_cv_header_expat_h = yes; then |
20919 | found_expat_h=1 | |
20920 | fi | |
20921 | ||
20922 | ||
20923 | if test "x$found_expat_h" = "x1"; then | |
20924 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
20925 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
20926 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
20927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20928 | else | |
20929 | ||
20930 | ||
672abd7a | 20931 | |
5f0b6dff VS |
20932 | ac_ext=cc |
20933 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20937 | ||
20938 | cat >conftest.$ac_ext <<_ACEOF | |
5f0b6dff VS |
20939 | /* confdefs.h. */ |
20940 | _ACEOF | |
20941 | cat confdefs.h >>conftest.$ac_ext | |
20942 | cat >>conftest.$ac_ext <<_ACEOF | |
20943 | /* end confdefs.h. */ | |
20944 | #include <expat.h> | |
20945 | int | |
20946 | main () | |
20947 | { | |
672abd7a | 20948 | |
5f0b6dff VS |
20949 | ; |
20950 | return 0; | |
20951 | } | |
20952 | _ACEOF | |
20953 | rm -f conftest.$ac_objext | |
20954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20955 | (eval $ac_compile) 2>conftest.er1 |
5f0b6dff | 20956 | ac_status=$? |
32ddf007 VS |
20957 | grep -v '^ *+' conftest.er1 >conftest.err |
20958 | rm -f conftest.er1 | |
20959 | cat conftest.err >&5 | |
5f0b6dff VS |
20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20961 | (exit $ac_status); } && | |
e1293dcf | 20962 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
20963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20964 | (eval $ac_try) 2>&5 | |
20965 | ac_status=$? | |
20966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20967 | (exit $ac_status); }; } && | |
20968 | { ac_try='test -s conftest.$ac_objext' | |
5f0b6dff VS |
20969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20970 | (eval $ac_try) 2>&5 | |
20971 | ac_status=$? | |
20972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20973 | (exit $ac_status); }; }; then | |
20974 | wx_cv_expat_is_not_broken=yes | |
20975 | else | |
20976 | echo "$as_me: failed program was:" >&5 | |
20977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20978 | ||
20979 | wx_cv_expat_is_not_broken=no | |
20980 | ||
20981 | fi | |
32ddf007 | 20982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
20983 | ac_ext=c |
20984 | ac_cpp='$CPP $CPPFLAGS' | |
20985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20988 | ||
20989 | ||
20990 | ||
20991 | fi | |
20992 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
20993 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
20994 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
20995 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
20996 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
20997 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
20998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20999 | else | |
21000 | ac_check_lib_save_LIBS=$LIBS | |
21001 | LIBS="-lexpat $LIBS" | |
21002 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
21003 | /* confdefs.h. */ |
21004 | _ACEOF | |
21005 | cat confdefs.h >>conftest.$ac_ext | |
21006 | cat >>conftest.$ac_ext <<_ACEOF | |
21007 | /* end confdefs.h. */ | |
21008 | ||
21009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21010 | #ifdef __cplusplus | |
21011 | extern "C" | |
21012 | #endif | |
21013 | /* We use char because int might match the return type of a gcc2 | |
21014 | builtin and then its argument prototype would still apply. */ | |
21015 | char XML_ParserCreate (); | |
21016 | int | |
21017 | main () | |
21018 | { | |
21019 | XML_ParserCreate (); | |
21020 | ; | |
21021 | return 0; | |
21022 | } | |
21023 | _ACEOF | |
21024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21026 | (eval $ac_link) 2>conftest.er1 |
672abd7a | 21027 | ac_status=$? |
32ddf007 VS |
21028 | grep -v '^ *+' conftest.er1 >conftest.err |
21029 | rm -f conftest.er1 | |
21030 | cat conftest.err >&5 | |
672abd7a VS |
21031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21032 | (exit $ac_status); } && | |
e1293dcf | 21033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21035 | (eval $ac_try) 2>&5 | |
21036 | ac_status=$? | |
21037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21038 | (exit $ac_status); }; } && | |
21039 | { ac_try='test -s conftest$ac_exeext' | |
672abd7a VS |
21040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21041 | (eval $ac_try) 2>&5 | |
21042 | ac_status=$? | |
21043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21044 | (exit $ac_status); }; }; then | |
21045 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21046 | else | |
21047 | echo "$as_me: failed program was:" >&5 | |
21048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21049 | ||
21050 | ac_cv_lib_expat_XML_ParserCreate=no | |
21051 | fi | |
32ddf007 VS |
21052 | rm -f conftest.err conftest.$ac_objext \ |
21053 | conftest$ac_exeext conftest.$ac_ext | |
672abd7a VS |
21054 | LIBS=$ac_check_lib_save_LIBS |
21055 | fi | |
21056 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21057 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21058 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21059 | EXPAT_LINK=" -lexpat" | |
21060 | fi | |
21061 | ||
5f0b6dff | 21062 | fi |
672abd7a VS |
21063 | fi |
21064 | if test "x$EXPAT_LINK" = "x" ; then | |
21065 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21066 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21067 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21068 | { (exit 1); exit 1; }; } | |
21069 | else | |
21070 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21071 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21072 | wxUSE_EXPAT=builtin | |
21073 | fi | |
21074 | else | |
21075 | wxUSE_EXPAT=sys | |
21076 | fi | |
21077 | fi | |
21078 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21079 | ||
21080 | ||
21081 | subdirs="$subdirs src/expat" | |
21082 | ||
21083 | fi | |
21084 | fi | |
21085 | ||
21086 | ||
21087 | ||
3527f29c VS |
21088 | if test "$wxUSE_LIBMSPACK" != "no"; then |
21089 | ||
21090 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21091 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21092 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21093 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21095 | fi | |
21096 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21097 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21098 | else | |
21099 | # Is the header compilable? | |
21100 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21101 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21102 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21103 | /* confdefs.h. */ |
21104 | _ACEOF | |
21105 | cat confdefs.h >>conftest.$ac_ext | |
21106 | cat >>conftest.$ac_ext <<_ACEOF | |
21107 | /* end confdefs.h. */ | |
21108 | $ac_includes_default | |
21109 | #include <mspack.h> | |
21110 | _ACEOF | |
21111 | rm -f conftest.$ac_objext | |
21112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21113 | (eval $ac_compile) 2>conftest.er1 |
3527f29c | 21114 | ac_status=$? |
32ddf007 VS |
21115 | grep -v '^ *+' conftest.er1 >conftest.err |
21116 | rm -f conftest.er1 | |
21117 | cat conftest.err >&5 | |
3527f29c VS |
21118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21119 | (exit $ac_status); } && | |
e1293dcf | 21120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21122 | (eval $ac_try) 2>&5 | |
21123 | ac_status=$? | |
21124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21125 | (exit $ac_status); }; } && | |
21126 | { ac_try='test -s conftest.$ac_objext' | |
3527f29c VS |
21127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21128 | (eval $ac_try) 2>&5 | |
21129 | ac_status=$? | |
21130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21131 | (exit $ac_status); }; }; then | |
21132 | ac_header_compiler=yes | |
21133 | else | |
21134 | echo "$as_me: failed program was:" >&5 | |
21135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21136 | ||
21137 | ac_header_compiler=no | |
21138 | fi | |
32ddf007 | 21139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
21140 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21141 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21142 | ||
21143 | # Is the header present? | |
21144 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21145 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21146 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21147 | /* confdefs.h. */ |
21148 | _ACEOF | |
21149 | cat confdefs.h >>conftest.$ac_ext | |
21150 | cat >>conftest.$ac_ext <<_ACEOF | |
21151 | /* end confdefs.h. */ | |
21152 | #include <mspack.h> | |
21153 | _ACEOF | |
21154 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21155 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21156 | ac_status=$? | |
21157 | grep -v '^ *+' conftest.er1 >conftest.err | |
21158 | rm -f conftest.er1 | |
21159 | cat conftest.err >&5 | |
21160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21161 | (exit $ac_status); } >/dev/null; then | |
21162 | if test -s conftest.err; then | |
21163 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21164 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3527f29c VS |
21165 | else |
21166 | ac_cpp_err= | |
21167 | fi | |
21168 | else | |
21169 | ac_cpp_err=yes | |
21170 | fi | |
21171 | if test -z "$ac_cpp_err"; then | |
21172 | ac_header_preproc=yes | |
21173 | else | |
21174 | echo "$as_me: failed program was:" >&5 | |
21175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21176 | ||
21177 | ac_header_preproc=no | |
21178 | fi | |
21179 | rm -f conftest.err conftest.$ac_ext | |
21180 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21181 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21182 | ||
21183 | # So? What about this header? | |
32ddf007 VS |
21184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21185 | yes:no: ) | |
3527f29c VS |
21186 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21187 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21188 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21189 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21190 | ac_header_preproc=yes | |
3527f29c | 21191 | ;; |
32ddf007 | 21192 | no:yes:* ) |
3527f29c VS |
21193 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21194 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21195 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21196 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21197 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21198 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21199 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21200 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3527f29c VS |
21201 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21202 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21203 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21204 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
3527f29c VS |
21205 | ( |
21206 | cat <<\_ASBOX | |
32ddf007 VS |
21207 | ## ----------------------------------------- ## |
21208 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21209 | ## ----------------------------------------- ## | |
3527f29c VS |
21210 | _ASBOX |
21211 | ) | | |
21212 | sed "s/^/$as_me: WARNING: /" >&2 | |
21213 | ;; | |
21214 | esac | |
21215 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21216 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21217 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21219 | else | |
21220 | ac_cv_header_mspack_h=$ac_header_preproc | |
21221 | fi | |
21222 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21223 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21224 | ||
21225 | fi | |
21226 | if test $ac_cv_header_mspack_h = yes; then | |
21227 | found_mspack_h=1 | |
21228 | fi | |
21229 | ||
21230 | ||
21231 | if test "x$found_mspack_h" = "x1"; then | |
21232 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21233 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21234 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21236 | else | |
21237 | ac_check_lib_save_LIBS=$LIBS | |
21238 | LIBS="-lmspack $LIBS" | |
21239 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21240 | /* confdefs.h. */ |
21241 | _ACEOF | |
21242 | cat confdefs.h >>conftest.$ac_ext | |
21243 | cat >>conftest.$ac_ext <<_ACEOF | |
21244 | /* end confdefs.h. */ | |
21245 | ||
21246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21247 | #ifdef __cplusplus | |
21248 | extern "C" | |
21249 | #endif | |
21250 | /* We use char because int might match the return type of a gcc2 | |
21251 | builtin and then its argument prototype would still apply. */ | |
21252 | char mspack_create_chm_decompressor (); | |
21253 | int | |
21254 | main () | |
21255 | { | |
21256 | mspack_create_chm_decompressor (); | |
21257 | ; | |
21258 | return 0; | |
21259 | } | |
21260 | _ACEOF | |
21261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21263 | (eval $ac_link) 2>conftest.er1 |
3527f29c | 21264 | ac_status=$? |
32ddf007 VS |
21265 | grep -v '^ *+' conftest.er1 >conftest.err |
21266 | rm -f conftest.er1 | |
21267 | cat conftest.err >&5 | |
3527f29c VS |
21268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21269 | (exit $ac_status); } && | |
e1293dcf | 21270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21272 | (eval $ac_try) 2>&5 | |
21273 | ac_status=$? | |
21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21275 | (exit $ac_status); }; } && | |
21276 | { ac_try='test -s conftest$ac_exeext' | |
3527f29c VS |
21277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21278 | (eval $ac_try) 2>&5 | |
21279 | ac_status=$? | |
21280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21281 | (exit $ac_status); }; }; then | |
21282 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21283 | else | |
21284 | echo "$as_me: failed program was:" >&5 | |
21285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21286 | ||
21287 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21288 | fi | |
32ddf007 VS |
21289 | rm -f conftest.err conftest.$ac_objext \ |
21290 | conftest$ac_exeext conftest.$ac_ext | |
3527f29c VS |
21291 | LIBS=$ac_check_lib_save_LIBS |
21292 | fi | |
21293 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21294 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21295 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21296 | MSPACK_LINK=" -lmspack" | |
21297 | fi | |
21298 | ||
21299 | fi | |
21300 | if test "x$MSPACK_LINK" = "x" ; then | |
21301 | wxUSE_LIBMSPACK=no | |
21302 | else | |
21303 | cat >>confdefs.h <<\_ACEOF | |
21304 | #define wxUSE_LIBMSPACK 1 | |
21305 | _ACEOF | |
21306 | ||
21307 | fi | |
21308 | fi | |
21309 | ||
21310 | ||
21311 | ||
21d1c967 | 21312 | AFMINSTALL= |
2b5f62a0 | 21313 | WIN32INSTALL= |
90dd450c | 21314 | |
21d1c967 GD |
21315 | TOOLKIT= |
21316 | TOOLKIT_INCLUDE= | |
21317 | WIDGET_SET= | |
21318 | ||
21319 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
21320 | |
21321 | for ac_header in w32api.h | |
21d1c967 | 21322 | do |
e6cc62c6 VS |
21323 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21329 | fi | |
21330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21331 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21332 | else | |
21333 | # Is the header compilable? | |
21334 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21336 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21337 | /* confdefs.h. */ |
21338 | _ACEOF | |
21339 | cat confdefs.h >>conftest.$ac_ext | |
21340 | cat >>conftest.$ac_ext <<_ACEOF | |
21341 | /* end confdefs.h. */ | |
21342 | $ac_includes_default | |
21343 | #include <$ac_header> | |
21344 | _ACEOF | |
21345 | rm -f conftest.$ac_objext | |
21346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21347 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21348 | ac_status=$? |
32ddf007 VS |
21349 | grep -v '^ *+' conftest.er1 >conftest.err |
21350 | rm -f conftest.er1 | |
21351 | cat conftest.err >&5 | |
e6cc62c6 VS |
21352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21353 | (exit $ac_status); } && | |
e1293dcf | 21354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21356 | (eval $ac_try) 2>&5 | |
21357 | ac_status=$? | |
21358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21359 | (exit $ac_status); }; } && | |
21360 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21362 | (eval $ac_try) 2>&5 | |
21363 | ac_status=$? | |
21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21365 | (exit $ac_status); }; }; then | |
21366 | ac_header_compiler=yes | |
21367 | else | |
21368 | echo "$as_me: failed program was:" >&5 | |
21369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21370 | ||
21371 | ac_header_compiler=no | |
21372 | fi | |
32ddf007 | 21373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21374 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21375 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21376 | ||
21377 | # Is the header present? | |
21378 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21379 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21380 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21381 | /* confdefs.h. */ |
21382 | _ACEOF | |
21383 | cat confdefs.h >>conftest.$ac_ext | |
21384 | cat >>conftest.$ac_ext <<_ACEOF | |
21385 | /* end confdefs.h. */ | |
21386 | #include <$ac_header> | |
21387 | _ACEOF | |
21388 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21389 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21390 | ac_status=$? | |
21391 | grep -v '^ *+' conftest.er1 >conftest.err | |
21392 | rm -f conftest.er1 | |
21393 | cat conftest.err >&5 | |
21394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21395 | (exit $ac_status); } >/dev/null; then | |
21396 | if test -s conftest.err; then | |
21397 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21399 | else |
21400 | ac_cpp_err= | |
21401 | fi | |
21402 | else | |
21403 | ac_cpp_err=yes | |
21404 | fi | |
21405 | if test -z "$ac_cpp_err"; then | |
21406 | ac_header_preproc=yes | |
21407 | else | |
21408 | echo "$as_me: failed program was:" >&5 | |
21409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21410 | ||
21411 | ac_header_preproc=no | |
21412 | fi | |
21413 | rm -f conftest.err conftest.$ac_ext | |
21414 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21415 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21416 | ||
21417 | # So? What about this header? | |
32ddf007 VS |
21418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21419 | yes:no: ) | |
e6cc62c6 VS |
21420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21424 | ac_header_preproc=yes | |
e6cc62c6 | 21425 | ;; |
32ddf007 | 21426 | no:yes:* ) |
e6cc62c6 VS |
21427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21439 | ( |
21440 | cat <<\_ASBOX | |
32ddf007 VS |
21441 | ## ----------------------------------------- ## |
21442 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21443 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21444 | _ASBOX |
21445 | ) | | |
21446 | sed "s/^/$as_me: WARNING: /" >&2 | |
21447 | ;; | |
21448 | esac | |
21449 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21450 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21453 | else | |
32ddf007 | 21454 | eval "$as_ac_Header=\$ac_header_preproc" |
f79bd02d | 21455 | fi |
e6cc62c6 VS |
21456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21458 | ||
21d1c967 | 21459 | fi |
e6cc62c6 VS |
21460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21461 | cat >>confdefs.h <<_ACEOF | |
21462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21463 | _ACEOF | |
21464 | ||
21d1c967 | 21465 | fi |
e6cc62c6 | 21466 | |
21d1c967 | 21467 | done |
f79bd02d | 21468 | |
e6cc62c6 VS |
21469 | if test "${ac_cv_header_windows_h+set}" = set; then |
21470 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21471 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21472 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21474 | fi | |
21475 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21476 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21477 | else | |
21478 | # Is the header compilable? | |
21479 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
21480 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
21481 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21482 | /* confdefs.h. */ |
21483 | _ACEOF | |
21484 | cat confdefs.h >>conftest.$ac_ext | |
21485 | cat >>conftest.$ac_ext <<_ACEOF | |
21486 | /* end confdefs.h. */ | |
21487 | $ac_includes_default | |
247f5006 | 21488 | #include <windows.h> |
e6cc62c6 VS |
21489 | _ACEOF |
21490 | rm -f conftest.$ac_objext | |
21491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21492 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21493 | ac_status=$? |
32ddf007 VS |
21494 | grep -v '^ *+' conftest.er1 >conftest.err |
21495 | rm -f conftest.er1 | |
21496 | cat conftest.err >&5 | |
e6cc62c6 VS |
21497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21498 | (exit $ac_status); } && | |
e1293dcf | 21499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21501 | (eval $ac_try) 2>&5 | |
21502 | ac_status=$? | |
21503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21504 | (exit $ac_status); }; } && | |
21505 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21507 | (eval $ac_try) 2>&5 | |
21508 | ac_status=$? | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); }; }; then | |
21511 | ac_header_compiler=yes | |
21512 | else | |
21513 | echo "$as_me: failed program was:" >&5 | |
21514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21515 | ||
21516 | ac_header_compiler=no | |
21517 | fi | |
32ddf007 | 21518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21520 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21521 | ||
21522 | # Is the header present? | |
21523 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
21524 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
21525 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21526 | /* confdefs.h. */ |
21527 | _ACEOF | |
21528 | cat confdefs.h >>conftest.$ac_ext | |
21529 | cat >>conftest.$ac_ext <<_ACEOF | |
21530 | /* end confdefs.h. */ | |
21531 | #include <windows.h> | |
21532 | _ACEOF | |
21533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21535 | ac_status=$? | |
21536 | grep -v '^ *+' conftest.er1 >conftest.err | |
21537 | rm -f conftest.er1 | |
21538 | cat conftest.err >&5 | |
21539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21540 | (exit $ac_status); } >/dev/null; then | |
21541 | if test -s conftest.err; then | |
21542 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21544 | else |
21545 | ac_cpp_err= | |
21546 | fi | |
21547 | else | |
21548 | ac_cpp_err=yes | |
21549 | fi | |
21550 | if test -z "$ac_cpp_err"; then | |
21551 | ac_header_preproc=yes | |
21552 | else | |
21553 | echo "$as_me: failed program was:" >&5 | |
21554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21555 | ||
21556 | ac_header_preproc=no | |
21557 | fi | |
21558 | rm -f conftest.err conftest.$ac_ext | |
21559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21560 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21561 | ||
21562 | # So? What about this header? | |
32ddf007 VS |
21563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21564 | yes:no: ) | |
e6cc62c6 VS |
21565 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21566 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21567 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
21568 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
21569 | ac_header_preproc=yes | |
e6cc62c6 | 21570 | ;; |
32ddf007 | 21571 | no:yes:* ) |
e6cc62c6 VS |
21572 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21573 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21574 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
21575 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21576 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21577 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21578 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21579 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21580 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
21581 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21582 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
21583 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21584 | ( |
21585 | cat <<\_ASBOX | |
32ddf007 VS |
21586 | ## ----------------------------------------- ## |
21587 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21588 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21589 | _ASBOX |
21590 | ) | | |
21591 | sed "s/^/$as_me: WARNING: /" >&2 | |
21592 | ;; | |
21593 | esac | |
21594 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21595 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21596 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21598 | else | |
21599 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 21600 | fi |
e6cc62c6 VS |
21601 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21602 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21603 | ||
90dd450c | 21604 | fi |
e6cc62c6 | 21605 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 21606 | : |
90dd450c | 21607 | else |
21d1c967 | 21608 | |
e6cc62c6 VS |
21609 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
21610 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
21611 | { (exit 1); exit 1; }; } | |
21612 | ||
5c6fa7d2 | 21613 | fi |
7b4a847f | 21614 | |
5c6fa7d2 | 21615 | |
e6cc62c6 | 21616 | |
b3dfbbc9 | 21617 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 21618 | |
7bb2947d MB |
21619 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
21620 | LIBS="$LIBS -loleacc" | |
21621 | fi | |
21622 | ||
21d1c967 GD |
21623 | case "${host}" in |
21624 | *-*-cygwin* ) | |
b3dfbbc9 | 21625 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 21626 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 21627 | esac |
f79bd02d | 21628 | |
8647bec6 RG |
21629 | if test "$wxUSE_ODBC" = "sys" ; then |
21630 | wxUSE_ODBC = "yes" | |
21d1c967 | 21631 | fi |
8647bec6 RG |
21632 | if test "$wxUSE_ODBC" = "yes" ; then |
21633 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 21634 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 21635 | #define wxUSE_ODBC 1 |
e6cc62c6 | 21636 | _ACEOF |
f79bd02d | 21637 | |
8647bec6 | 21638 | fi |
e6cc62c6 | 21639 | |
21d1c967 GD |
21640 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
21641 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
21642 | |
21643 | WIN32INSTALL=win32install | |
f79bd02d | 21644 | fi |
f79bd02d | 21645 | |
21d1c967 GD |
21646 | if test "$wxUSE_GUI" = "yes"; then |
21647 | USE_GUI=1 | |
f79bd02d | 21648 | |
21d1c967 | 21649 | GUI_TK_LIBRARY= |
f79bd02d | 21650 | |
21d1c967 GD |
21651 | WXGTK12= |
21652 | WXGTK127= | |
21653 | WXGTK20= | |
0f87e84c | 21654 | WXGPE= |
f79bd02d | 21655 | |
21d1c967 GD |
21656 | if test "$wxUSE_MSW" = 1 ; then |
21657 | TOOLKIT=MSW | |
21658 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
21659 | |
21660 | case "${host}" in | |
21661 | *-*-mingw32* ) | |
21662 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
21663 | esac | |
f79bd02d JS |
21664 | fi |
21665 | ||
21d1c967 | 21666 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
21667 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
21668 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
21669 | |
21670 | gtk_version_cached=1 | |
e6cc62c6 VS |
21671 | if test "${wx_cv_lib_gtk+set}" = set; then |
21672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 21673 | else |
e6cc62c6 | 21674 | |
21d1c967 | 21675 | gtk_version_cached=0 |
e6cc62c6 VS |
21676 | echo "$as_me:$LINENO: result: " >&5 |
21677 | echo "${ECHO_T}" >&6 | |
f79bd02d | 21678 | |
21d1c967 GD |
21679 | GTK_MODULES= |
21680 | if test "$wxUSE_THREADS" = "yes"; then | |
21681 | GTK_MODULES=gthread | |
21682 | fi | |
f79bd02d | 21683 | |
2b5f62a0 | 21684 | wx_cv_lib_gtk= |
21d1c967 GD |
21685 | if test "x$wxUSE_GTK2" = "xyes"; then |
21686 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21687 | if test "${enable_gtktest+set}" = set; then | |
21688 | enableval="$enable_gtktest" | |
e6cc62c6 | 21689 | |
f79bd02d | 21690 | else |
21d1c967 | 21691 | enable_gtktest=yes |
e6cc62c6 | 21692 | fi; |
f79bd02d | 21693 | |
21d1c967 GD |
21694 | pkg_config_args=gtk+-2.0 |
21695 | for module in . $GTK_MODULES | |
21696 | do | |
21697 | case "$module" in | |
e6cc62c6 | 21698 | gthread) |
21d1c967 GD |
21699 | pkg_config_args="$pkg_config_args gthread-2.0" |
21700 | ;; | |
21701 | esac | |
21702 | done | |
21703 | ||
21704 | no_gtk="" | |
f79bd02d | 21705 | |
21d1c967 GD |
21706 | # Extract the first word of "pkg-config", so it can be a program name with args. |
21707 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21710 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21712 | else |
e6cc62c6 VS |
21713 | case $PKG_CONFIG in |
21714 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21715 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21716 | ;; | |
21d1c967 | 21717 | *) |
e6cc62c6 VS |
21718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21719 | for as_dir in $PATH | |
21720 | do | |
21721 | IFS=$as_save_IFS | |
21722 | test -z "$as_dir" && as_dir=. | |
21723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21725 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21727 | break 2 | |
21728 | fi | |
21729 | done | |
21730 | done | |
21731 | ||
21d1c967 GD |
21732 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21733 | ;; | |
21734 | esac | |
f79bd02d | 21735 | fi |
e6cc62c6 VS |
21736 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21737 | ||
21d1c967 | 21738 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21739 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21740 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 21741 | else |
e6cc62c6 VS |
21742 | echo "$as_me:$LINENO: result: no" >&5 |
21743 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
21744 | fi |
21745 | ||
8284b0c5 | 21746 | |
21d1c967 GD |
21747 | if test x$PKG_CONFIG != xno ; then |
21748 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
21749 | : | |
21750 | else | |
21751 | echo *** pkg-config too old; version 0.7 or better required. | |
21752 | no_gtk=yes | |
21753 | PKG_CONFIG=no | |
21754 | fi | |
21755 | else | |
21756 | no_gtk=yes | |
21757 | fi | |
f79bd02d | 21758 | |
21d1c967 | 21759 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
21760 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
21761 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 21762 | |
21d1c967 GD |
21763 | if test x$PKG_CONFIG != xno ; then |
21764 | ## don't try to run the test against uninstalled libtool libs | |
21765 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
21766 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
21767 | enable_gtktest=no | |
21768 | fi | |
f79bd02d | 21769 | |
21d1c967 GD |
21770 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
21771 | : | |
21772 | else | |
21773 | no_gtk=yes | |
21774 | fi | |
21775 | fi | |
f79bd02d | 21776 | |
21d1c967 GD |
21777 | if test x"$no_gtk" = x ; then |
21778 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
21779 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
21780 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21781 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21782 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21783 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21784 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21785 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21786 | if test "x$enable_gtktest" = "xyes" ; then | |
21787 | ac_save_CFLAGS="$CFLAGS" | |
21788 | ac_save_LIBS="$LIBS" | |
21789 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21790 | LIBS="$GTK_LIBS $LIBS" | |
21791 | rm -f conf.gtktest | |
21792 | if test "$cross_compiling" = yes; then | |
21793 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21794 | else |
e6cc62c6 | 21795 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21796 | /* confdefs.h. */ |
21797 | _ACEOF | |
21798 | cat confdefs.h >>conftest.$ac_ext | |
21799 | cat >>conftest.$ac_ext <<_ACEOF | |
21800 | /* end confdefs.h. */ | |
f79bd02d | 21801 | |
21d1c967 GD |
21802 | #include <gtk/gtk.h> |
21803 | #include <stdio.h> | |
21804 | #include <stdlib.h> | |
f79bd02d | 21805 | |
e6cc62c6 | 21806 | int |
21d1c967 GD |
21807 | main () |
21808 | { | |
21809 | int major, minor, micro; | |
21810 | char *tmp_version; | |
f79bd02d | 21811 | |
21d1c967 | 21812 | system ("touch conf.gtktest"); |
f79bd02d | 21813 | |
21d1c967 GD |
21814 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
21815 | tmp_version = g_strdup("$min_gtk_version"); | |
21816 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21817 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21818 | exit(1); | |
21819 | } | |
f79bd02d | 21820 | |
21d1c967 GD |
21821 | if ((gtk_major_version != $gtk_config_major_version) || |
21822 | (gtk_minor_version != $gtk_config_minor_version) || | |
21823 | (gtk_micro_version != $gtk_config_micro_version)) | |
21824 | { | |
e6cc62c6 | 21825 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21826 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21827 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21828 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
21829 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21830 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21831 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21832 | printf("*** required on your system.\n"); | |
21833 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
21834 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 21835 | } |
21d1c967 GD |
21836 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
21837 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21838 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21839 | { | |
21840 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21841 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21842 | printf("*** library (version %d.%d.%d)\n", | |
21843 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21844 | } | |
21845 | else | |
21846 | { | |
21847 | if ((gtk_major_version > major) || | |
21848 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21849 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21850 | { | |
21851 | return 0; | |
21852 | } | |
21853 | else | |
21854 | { | |
21855 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21856 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21857 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21858 | major, minor, micro); | |
21859 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21860 | printf("***\n"); | |
21861 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21862 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
21863 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21864 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
21865 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
21866 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21867 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21868 | } | |
21869 | } | |
21870 | return 1; | |
21871 | } | |
f79bd02d | 21872 | |
e6cc62c6 VS |
21873 | _ACEOF |
21874 | rm -f conftest$ac_exeext | |
21875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21876 | (eval $ac_link) 2>&5 | |
21877 | ac_status=$? | |
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21881 | (eval $ac_try) 2>&5 | |
21882 | ac_status=$? | |
21883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21884 | (exit $ac_status); }; }; then | |
21d1c967 | 21885 | : |
f79bd02d | 21886 | else |
e6cc62c6 VS |
21887 | echo "$as_me: program exited with status $ac_status" >&5 |
21888 | echo "$as_me: failed program was:" >&5 | |
21889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21890 | ||
21891 | ( exit $ac_status ) | |
21892 | no_gtk=yes | |
f79bd02d | 21893 | fi |
32ddf007 | 21894 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 21895 | fi |
21d1c967 GD |
21896 | CFLAGS="$ac_save_CFLAGS" |
21897 | LIBS="$ac_save_LIBS" | |
21898 | fi | |
21899 | fi | |
21900 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21901 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
21902 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
21903 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 21904 | else |
e6cc62c6 VS |
21905 | echo "$as_me:$LINENO: result: no" >&5 |
21906 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21907 | if test "$PKG_CONFIG" = "no" ; then |
21908 | echo "*** A new enough version of pkg-config was not found." | |
21909 | echo "*** See http://pkgconfig.sourceforge.net" | |
21910 | else | |
21911 | if test -f conf.gtktest ; then | |
21912 | : | |
21913 | else | |
21914 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
21915 | ac_save_CFLAGS="$CFLAGS" |
21916 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
21917 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
21918 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21919 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21920 | /* confdefs.h. */ |
21921 | _ACEOF | |
21922 | cat confdefs.h >>conftest.$ac_ext | |
21923 | cat >>conftest.$ac_ext <<_ACEOF | |
21924 | /* end confdefs.h. */ | |
21d1c967 GD |
21925 | |
21926 | #include <gtk/gtk.h> | |
21927 | #include <stdio.h> | |
f79bd02d | 21928 | |
e6cc62c6 VS |
21929 | int |
21930 | main () | |
21931 | { | |
21932 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21933 | ; | |
21934 | return 0; | |
21935 | } | |
21936 | _ACEOF | |
21937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21939 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21940 | ac_status=$? |
32ddf007 VS |
21941 | grep -v '^ *+' conftest.er1 >conftest.err |
21942 | rm -f conftest.er1 | |
21943 | cat conftest.err >&5 | |
e6cc62c6 VS |
21944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21945 | (exit $ac_status); } && | |
e1293dcf | 21946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
21947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21948 | (eval $ac_try) 2>&5 | |
21949 | ac_status=$? | |
21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21951 | (exit $ac_status); }; } && | |
21952 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
21953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21954 | (eval $ac_try) 2>&5 | |
21955 | ac_status=$? | |
21956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21957 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21958 | echo "*** The test program compiled, but did not run. This usually means" |
21959 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
21960 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
21961 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21962 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21963 | echo "*** is required on your system" | |
21964 | echo "***" | |
21965 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 21966 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 21967 | else |
e6cc62c6 VS |
21968 | echo "$as_me: failed program was:" >&5 |
21969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21970 | ||
21971 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 21972 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 21973 | fi |
32ddf007 VS |
21974 | rm -f conftest.err conftest.$ac_objext \ |
21975 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21976 | CFLAGS="$ac_save_CFLAGS" |
21977 | LIBS="$ac_save_LIBS" | |
21978 | fi | |
21979 | fi | |
21980 | GTK_CFLAGS="" | |
21981 | GTK_LIBS="" | |
21982 | : | |
21983 | fi | |
e6cc62c6 VS |
21984 | |
21985 | ||
21d1c967 | 21986 | rm -f conf.gtktest |
f79bd02d | 21987 | |
2b5f62a0 | 21988 | else |
e6cc62c6 VS |
21989 | |
21990 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21991 | if test "${with_gtk_prefix+set}" = set; then |
21992 | withval="$with_gtk_prefix" | |
21993 | gtk_config_prefix="$withval" | |
21994 | else | |
21995 | gtk_config_prefix="" | |
e6cc62c6 | 21996 | fi; |
f79bd02d | 21997 | |
21d1c967 GD |
21998 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21999 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22000 | withval="$with_gtk_exec_prefix" | |
22001 | gtk_config_exec_prefix="$withval" | |
22002 | else | |
22003 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22004 | fi; |
21d1c967 GD |
22005 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22006 | if test "${enable_gtktest+set}" = set; then | |
22007 | enableval="$enable_gtktest" | |
e6cc62c6 | 22008 | |
21d1c967 GD |
22009 | else |
22010 | enable_gtktest=yes | |
e6cc62c6 | 22011 | fi; |
21d1c967 GD |
22012 | |
22013 | for module in . $GTK_MODULES | |
22014 | do | |
22015 | case "$module" in | |
e6cc62c6 | 22016 | gthread) |
21d1c967 GD |
22017 | gtk_config_args="$gtk_config_args gthread" |
22018 | ;; | |
22019 | esac | |
22020 | done | |
22021 | ||
22022 | if test x$gtk_config_exec_prefix != x ; then | |
22023 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22024 | if test x${GTK_CONFIG+set} != xset ; then | |
22025 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22026 | fi | |
22027 | fi | |
22028 | if test x$gtk_config_prefix != x ; then | |
22029 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22030 | if test x${GTK_CONFIG+set} != xset ; then | |
22031 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22032 | fi | |
22033 | fi | |
22034 | ||
22035 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22036 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22039 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22041 | else |
e6cc62c6 VS |
22042 | case $GTK_CONFIG in |
22043 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22044 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22045 | ;; | |
21d1c967 | 22046 | *) |
e6cc62c6 VS |
22047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22048 | for as_dir in $PATH | |
22049 | do | |
22050 | IFS=$as_save_IFS | |
22051 | test -z "$as_dir" && as_dir=. | |
22052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22054 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22056 | break 2 | |
22057 | fi | |
22058 | done | |
22059 | done | |
22060 | ||
21d1c967 GD |
22061 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22062 | ;; | |
22063 | esac | |
22064 | fi | |
e6cc62c6 VS |
22065 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22066 | ||
21d1c967 | 22067 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22068 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22069 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22070 | else |
e6cc62c6 VS |
22071 | echo "$as_me:$LINENO: result: no" >&5 |
22072 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22073 | fi |
22074 | ||
22075 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
22076 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22077 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22078 | no_gtk="" |
22079 | if test "$GTK_CONFIG" = "no" ; then | |
22080 | no_gtk=yes | |
22081 | else | |
22082 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22083 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22084 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22085 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22086 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22087 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22088 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22089 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22090 | if test "x$enable_gtktest" = "xyes" ; then | |
22091 | ac_save_CFLAGS="$CFLAGS" | |
22092 | ac_save_LIBS="$LIBS" | |
22093 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22094 | LIBS="$GTK_LIBS $LIBS" | |
22095 | rm -f conf.gtktest | |
22096 | if test "$cross_compiling" = yes; then | |
22097 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 22098 | else |
e6cc62c6 | 22099 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22100 | /* confdefs.h. */ |
22101 | _ACEOF | |
22102 | cat confdefs.h >>conftest.$ac_ext | |
22103 | cat >>conftest.$ac_ext <<_ACEOF | |
22104 | /* end confdefs.h. */ | |
f79bd02d | 22105 | |
21d1c967 GD |
22106 | #include <gtk/gtk.h> |
22107 | #include <stdio.h> | |
22108 | #include <stdlib.h> | |
f79bd02d | 22109 | |
e6cc62c6 | 22110 | int |
21d1c967 GD |
22111 | main () |
22112 | { | |
22113 | int major, minor, micro; | |
22114 | char *tmp_version; | |
22115 | ||
22116 | system ("touch conf.gtktest"); | |
22117 | ||
22118 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22119 | tmp_version = g_strdup("$min_gtk_version"); | |
22120 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22121 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22122 | exit(1); | |
22123 | } | |
90dd450c | 22124 | |
21d1c967 GD |
22125 | if ((gtk_major_version != $gtk_config_major_version) || |
22126 | (gtk_minor_version != $gtk_config_minor_version) || | |
22127 | (gtk_micro_version != $gtk_config_micro_version)) | |
22128 | { | |
e6cc62c6 | 22129 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22130 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22131 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22132 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22133 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22134 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22135 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22136 | printf("*** required on your system.\n"); | |
22137 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22138 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22139 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22140 | } |
21d1c967 GD |
22141 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22142 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22143 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22144 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22145 | { | |
22146 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22147 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22148 | printf("*** library (version %d.%d.%d)\n", | |
22149 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22150 | } | |
22151 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22152 | else | |
22153 | { | |
22154 | if ((gtk_major_version > major) || | |
22155 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22156 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22157 | { | |
22158 | return 0; | |
22159 | } | |
22160 | else | |
22161 | { | |
22162 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22163 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22164 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22165 | major, minor, micro); | |
22166 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22167 | printf("***\n"); | |
22168 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22169 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22170 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22171 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22172 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22173 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22174 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22175 | } | |
22176 | } | |
22177 | return 1; | |
22178 | } | |
22179 | ||
e6cc62c6 VS |
22180 | _ACEOF |
22181 | rm -f conftest$ac_exeext | |
22182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22183 | (eval $ac_link) 2>&5 | |
22184 | ac_status=$? | |
22185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22188 | (eval $ac_try) 2>&5 | |
22189 | ac_status=$? | |
22190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22191 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22192 | : |
22193 | else | |
e6cc62c6 VS |
22194 | echo "$as_me: program exited with status $ac_status" >&5 |
22195 | echo "$as_me: failed program was:" >&5 | |
22196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22197 | ||
22198 | ( exit $ac_status ) | |
22199 | no_gtk=yes | |
21d1c967 | 22200 | fi |
32ddf007 | 22201 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22202 | fi |
21d1c967 GD |
22203 | CFLAGS="$ac_save_CFLAGS" |
22204 | LIBS="$ac_save_LIBS" | |
22205 | fi | |
22206 | fi | |
22207 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22208 | echo "$as_me:$LINENO: result: yes" >&5 |
22209 | echo "${ECHO_T}yes" >&6 | |
22210 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 22211 | else |
e6cc62c6 VS |
22212 | echo "$as_me:$LINENO: result: no" >&5 |
22213 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22214 | if test "$GTK_CONFIG" = "no" ; then |
22215 | echo "*** The gtk-config script installed by GTK could not be found" | |
22216 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22217 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22218 | echo "*** full path to gtk-config." | |
22219 | else | |
22220 | if test -f conf.gtktest ; then | |
22221 | : | |
22222 | else | |
22223 | echo "*** Could not run GTK test program, checking why..." | |
22224 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22225 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22226 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22227 | /* confdefs.h. */ |
22228 | _ACEOF | |
22229 | cat confdefs.h >>conftest.$ac_ext | |
22230 | cat >>conftest.$ac_ext <<_ACEOF | |
22231 | /* end confdefs.h. */ | |
21d1c967 GD |
22232 | |
22233 | #include <gtk/gtk.h> | |
22234 | #include <stdio.h> | |
22235 | ||
e6cc62c6 VS |
22236 | int |
22237 | main () | |
22238 | { | |
22239 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22240 | ; | |
22241 | return 0; | |
22242 | } | |
22243 | _ACEOF | |
22244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22246 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22247 | ac_status=$? |
32ddf007 VS |
22248 | grep -v '^ *+' conftest.er1 >conftest.err |
22249 | rm -f conftest.er1 | |
22250 | cat conftest.err >&5 | |
e6cc62c6 VS |
22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22252 | (exit $ac_status); } && | |
e1293dcf | 22253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22255 | (eval $ac_try) 2>&5 | |
22256 | ac_status=$? | |
22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22258 | (exit $ac_status); }; } && | |
22259 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22261 | (eval $ac_try) 2>&5 | |
22262 | ac_status=$? | |
22263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22264 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22265 | echo "*** The test program compiled, but did not run. This usually means" |
22266 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22267 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22268 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22269 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22270 | echo "*** is required on your system" | |
22271 | echo "***" | |
22272 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22273 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22274 | echo "***" | |
22275 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22276 | echo "*** came with the system with the command" | |
22277 | echo "***" | |
e6cc62c6 | 22278 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22279 | else |
e6cc62c6 VS |
22280 | echo "$as_me: failed program was:" >&5 |
22281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22282 | ||
22283 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22284 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22285 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22286 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22287 | fi |
32ddf007 VS |
22288 | rm -f conftest.err conftest.$ac_objext \ |
22289 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22290 | CFLAGS="$ac_save_CFLAGS" |
22291 | LIBS="$ac_save_LIBS" | |
22292 | fi | |
22293 | fi | |
22294 | GTK_CFLAGS="" | |
22295 | GTK_LIBS="" | |
22296 | : | |
22297 | fi | |
e6cc62c6 VS |
22298 | |
22299 | ||
21d1c967 GD |
22300 | rm -f conf.gtktest |
22301 | ||
21d1c967 | 22302 | |
2b5f62a0 | 22303 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
22304 | |
22305 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
22306 | if test "${with_gtk_prefix+set}" = set; then |
22307 | withval="$with_gtk_prefix" | |
22308 | gtk_config_prefix="$withval" | |
22309 | else | |
22310 | gtk_config_prefix="" | |
e6cc62c6 | 22311 | fi; |
f79bd02d | 22312 | |
21d1c967 GD |
22313 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
22314 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22315 | withval="$with_gtk_exec_prefix" | |
22316 | gtk_config_exec_prefix="$withval" | |
22317 | else | |
22318 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22319 | fi; |
21d1c967 GD |
22320 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22321 | if test "${enable_gtktest+set}" = set; then | |
22322 | enableval="$enable_gtktest" | |
e6cc62c6 | 22323 | |
90dd450c | 22324 | else |
21d1c967 | 22325 | enable_gtktest=yes |
e6cc62c6 | 22326 | fi; |
21d1c967 GD |
22327 | |
22328 | for module in . $GTK_MODULES | |
22329 | do | |
22330 | case "$module" in | |
e6cc62c6 | 22331 | gthread) |
21d1c967 GD |
22332 | gtk_config_args="$gtk_config_args gthread" |
22333 | ;; | |
22334 | esac | |
22335 | done | |
22336 | ||
22337 | if test x$gtk_config_exec_prefix != x ; then | |
22338 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22339 | if test x${GTK_CONFIG+set} != xset ; then | |
22340 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22341 | fi | |
22342 | fi | |
22343 | if test x$gtk_config_prefix != x ; then | |
22344 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22345 | if test x${GTK_CONFIG+set} != xset ; then | |
22346 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22347 | fi | |
22348 | fi | |
22349 | ||
22350 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22351 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22354 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22356 | else |
e6cc62c6 VS |
22357 | case $GTK_CONFIG in |
22358 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22359 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22360 | ;; | |
21d1c967 | 22361 | *) |
e6cc62c6 VS |
22362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22363 | for as_dir in $PATH | |
22364 | do | |
22365 | IFS=$as_save_IFS | |
22366 | test -z "$as_dir" && as_dir=. | |
22367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22369 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22371 | break 2 | |
22372 | fi | |
22373 | done | |
22374 | done | |
22375 | ||
21d1c967 GD |
22376 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22377 | ;; | |
22378 | esac | |
22379 | fi | |
e6cc62c6 VS |
22380 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22381 | ||
21d1c967 | 22382 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22383 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22384 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22385 | else |
e6cc62c6 VS |
22386 | echo "$as_me:$LINENO: result: no" >&5 |
22387 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22388 | fi |
22389 | ||
22390 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
22391 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22392 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22393 | no_gtk="" |
22394 | if test "$GTK_CONFIG" = "no" ; then | |
22395 | no_gtk=yes | |
22396 | else | |
22397 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22398 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22399 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22400 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22401 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22402 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22403 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22404 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22405 | if test "x$enable_gtktest" = "xyes" ; then | |
22406 | ac_save_CFLAGS="$CFLAGS" | |
22407 | ac_save_LIBS="$LIBS" | |
22408 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22409 | LIBS="$GTK_LIBS $LIBS" | |
22410 | rm -f conf.gtktest | |
22411 | if test "$cross_compiling" = yes; then | |
22412 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22413 | else | |
e6cc62c6 | 22414 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22415 | /* confdefs.h. */ |
22416 | _ACEOF | |
22417 | cat confdefs.h >>conftest.$ac_ext | |
22418 | cat >>conftest.$ac_ext <<_ACEOF | |
22419 | /* end confdefs.h. */ | |
21d1c967 GD |
22420 | |
22421 | #include <gtk/gtk.h> | |
22422 | #include <stdio.h> | |
22423 | #include <stdlib.h> | |
22424 | ||
e6cc62c6 | 22425 | int |
21d1c967 GD |
22426 | main () |
22427 | { | |
22428 | int major, minor, micro; | |
22429 | char *tmp_version; | |
22430 | ||
22431 | system ("touch conf.gtktest"); | |
22432 | ||
22433 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22434 | tmp_version = g_strdup("$min_gtk_version"); | |
22435 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22436 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22437 | exit(1); | |
22438 | } | |
22439 | ||
22440 | if ((gtk_major_version != $gtk_config_major_version) || | |
22441 | (gtk_minor_version != $gtk_config_minor_version) || | |
22442 | (gtk_micro_version != $gtk_config_micro_version)) | |
22443 | { | |
e6cc62c6 | 22444 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22445 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22446 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22447 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22448 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22449 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22450 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22451 | printf("*** required on your system.\n"); | |
22452 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22453 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22454 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22455 | } |
21d1c967 GD |
22456 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22457 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22458 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22459 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22460 | { | |
22461 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22462 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22463 | printf("*** library (version %d.%d.%d)\n", | |
22464 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22465 | } | |
22466 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22467 | else | |
22468 | { | |
22469 | if ((gtk_major_version > major) || | |
22470 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22471 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22472 | { | |
22473 | return 0; | |
22474 | } | |
22475 | else | |
22476 | { | |
22477 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22478 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22479 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22480 | major, minor, micro); | |
22481 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22482 | printf("***\n"); | |
22483 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22484 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22485 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22486 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22487 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22488 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22489 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22490 | } | |
22491 | } | |
22492 | return 1; | |
22493 | } | |
22494 | ||
e6cc62c6 VS |
22495 | _ACEOF |
22496 | rm -f conftest$ac_exeext | |
22497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22498 | (eval $ac_link) 2>&5 | |
22499 | ac_status=$? | |
22500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22503 | (eval $ac_try) 2>&5 | |
22504 | ac_status=$? | |
22505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22506 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22507 | : |
22508 | else | |
e6cc62c6 VS |
22509 | echo "$as_me: program exited with status $ac_status" >&5 |
22510 | echo "$as_me: failed program was:" >&5 | |
22511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22512 | ||
22513 | ( exit $ac_status ) | |
22514 | no_gtk=yes | |
21d1c967 | 22515 | fi |
32ddf007 | 22516 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22517 | fi |
21d1c967 GD |
22518 | CFLAGS="$ac_save_CFLAGS" |
22519 | LIBS="$ac_save_LIBS" | |
22520 | fi | |
22521 | fi | |
22522 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22523 | echo "$as_me:$LINENO: result: yes" >&5 |
22524 | echo "${ECHO_T}yes" >&6 | |
22525 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 22526 | else |
e6cc62c6 VS |
22527 | echo "$as_me:$LINENO: result: no" >&5 |
22528 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22529 | if test "$GTK_CONFIG" = "no" ; then |
22530 | echo "*** The gtk-config script installed by GTK could not be found" | |
22531 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22532 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22533 | echo "*** full path to gtk-config." | |
22534 | else | |
22535 | if test -f conf.gtktest ; then | |
22536 | : | |
22537 | else | |
22538 | echo "*** Could not run GTK test program, checking why..." | |
22539 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22540 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22541 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22542 | /* confdefs.h. */ |
22543 | _ACEOF | |
22544 | cat confdefs.h >>conftest.$ac_ext | |
22545 | cat >>conftest.$ac_ext <<_ACEOF | |
22546 | /* end confdefs.h. */ | |
21d1c967 GD |
22547 | |
22548 | #include <gtk/gtk.h> | |
22549 | #include <stdio.h> | |
f79bd02d | 22550 | |
e6cc62c6 VS |
22551 | int |
22552 | main () | |
22553 | { | |
22554 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22555 | ; | |
22556 | return 0; | |
22557 | } | |
22558 | _ACEOF | |
22559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22561 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22562 | ac_status=$? |
32ddf007 VS |
22563 | grep -v '^ *+' conftest.er1 >conftest.err |
22564 | rm -f conftest.er1 | |
22565 | cat conftest.err >&5 | |
e6cc62c6 VS |
22566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22567 | (exit $ac_status); } && | |
e1293dcf | 22568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22570 | (eval $ac_try) 2>&5 | |
22571 | ac_status=$? | |
22572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22573 | (exit $ac_status); }; } && | |
22574 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22576 | (eval $ac_try) 2>&5 | |
22577 | ac_status=$? | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22579 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22580 | echo "*** The test program compiled, but did not run. This usually means" |
22581 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22582 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22583 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22584 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22585 | echo "*** is required on your system" | |
22586 | echo "***" | |
22587 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22588 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22589 | echo "***" | |
22590 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22591 | echo "*** came with the system with the command" | |
22592 | echo "***" | |
e6cc62c6 | 22593 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22594 | else |
e6cc62c6 VS |
22595 | echo "$as_me: failed program was:" >&5 |
22596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22597 | ||
22598 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22599 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22600 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22601 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22602 | fi |
32ddf007 VS |
22603 | rm -f conftest.err conftest.$ac_objext \ |
22604 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22605 | CFLAGS="$ac_save_CFLAGS" |
22606 | LIBS="$ac_save_LIBS" | |
22607 | fi | |
22608 | fi | |
22609 | GTK_CFLAGS="" | |
22610 | GTK_LIBS="" | |
22611 | : | |
22612 | fi | |
e6cc62c6 VS |
22613 | |
22614 | ||
21d1c967 | 22615 | rm -f conf.gtktest |
f79bd02d | 22616 | |
2b5f62a0 | 22617 | fi |
21d1c967 GD |
22618 | fi |
22619 | ||
22620 | if test -z "$wx_cv_lib_gtk"; then | |
22621 | wx_cv_lib_gtk=none | |
22622 | else | |
22623 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
22624 | wx_cv_libs_gtk=$GTK_LIBS | |
22625 | fi | |
e6cc62c6 VS |
22626 | |
22627 | ||
5c6fa7d2 | 22628 | fi |
52127426 | 22629 | |
8284b0c5 | 22630 | |
21d1c967 | 22631 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
22632 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
22633 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
22634 | fi |
22635 | ||
22636 | case "$wx_cv_lib_gtk" in | |
22637 | 2.0) WXGTK20=1 | |
2b5f62a0 | 22638 | TOOLKIT_VERSION=2 |
21d1c967 GD |
22639 | ;; |
22640 | 1.2.7) WXGTK127=1 | |
22641 | WXGTK12=1 | |
22642 | ;; | |
22643 | 1.2.3) WXGTK12=1 | |
22644 | ;; | |
e6cc62c6 VS |
22645 | *) { { echo "$as_me:$LINENO: error: |
22646 | Please check that gtk-config is in path, the directory | |
22647 | where GTK+ libraries are installed (returned by | |
22648 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22649 | equivalent variable and GTK+ is version 1.2.3 or above. | |
22650 | " >&5 | |
22651 | echo "$as_me: error: | |
247f5006 VZ |
22652 | Please check that gtk-config is in path, the directory |
22653 | where GTK+ libraries are installed (returned by | |
22654 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22655 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
22656 | " >&2;} |
22657 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22658 | ;; |
22659 | esac | |
22660 | ||
b13cd66e VZ |
22661 | if test "$WXGTK20" = 1; then |
22662 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 22663 | |
f09359cf VS |
22664 | succeeded=no |
22665 | ||
22666 | if test -z "$PKG_CONFIG"; then | |
22667 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22668 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22671 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 22673 | else |
e6cc62c6 VS |
22674 | case $PKG_CONFIG in |
22675 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
22676 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22677 | ;; | |
f09359cf | 22678 | *) |
e6cc62c6 VS |
22679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22680 | for as_dir in $PATH | |
22681 | do | |
22682 | IFS=$as_save_IFS | |
22683 | test -z "$as_dir" && as_dir=. | |
22684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22686 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22688 | break 2 | |
22689 | fi | |
22690 | done | |
22691 | done | |
22692 | ||
f09359cf VS |
22693 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22694 | ;; | |
22695 | esac | |
22696 | fi | |
e6cc62c6 VS |
22697 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22698 | ||
f09359cf | 22699 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22700 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22701 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 22702 | else |
e6cc62c6 VS |
22703 | echo "$as_me:$LINENO: result: no" >&5 |
22704 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
22705 | fi |
22706 | ||
22707 | fi | |
22708 | ||
22709 | if test "$PKG_CONFIG" = "no" ; then | |
22710 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22711 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22712 | echo "*** to the full path to pkg-config." | |
22713 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22714 | else | |
22715 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22716 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22717 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22718 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
22719 | |
22720 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22721 | echo "$as_me:$LINENO: result: yes" >&5 |
22722 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
22723 | succeeded=yes |
22724 | ||
e6cc62c6 VS |
22725 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22726 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 22727 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22728 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22729 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 22730 | |
e6cc62c6 VS |
22731 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22732 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 22733 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22734 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22735 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
22736 | else |
22737 | PANGOFT2_CFLAGS="" | |
22738 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22739 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
22740 | ## do set a variable so people can do so. |
22741 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22742 | |
f09359cf VS |
22743 | fi |
22744 | ||
e6cc62c6 VS |
22745 | |
22746 | ||
f09359cf VS |
22747 | else |
22748 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22749 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22750 | fi | |
22751 | fi | |
22752 | ||
22753 | if test $succeeded = yes; then | |
e6cc62c6 | 22754 | |
b13cd66e | 22755 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22756 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22757 | |
f09359cf | 22758 | else |
e6cc62c6 VS |
22759 | |
22760 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22761 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 22762 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22763 | |
22764 | ||
f09359cf VS |
22765 | fi |
22766 | ||
b13cd66e | 22767 | fi |
2b5f62a0 VZ |
22768 | else |
22769 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
22770 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
22771 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
22772 | wxUSE_UNICODE=no |
22773 | fi | |
22774 | fi | |
22775 | ||
22776 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
22777 | |
22778 | for ac_func in poll | |
2b5f62a0 | 22779 | do |
e6cc62c6 VS |
22780 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22781 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22782 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22783 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22785 | else | |
22786 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22787 | /* confdefs.h. */ |
22788 | _ACEOF | |
22789 | cat confdefs.h >>conftest.$ac_ext | |
22790 | cat >>conftest.$ac_ext <<_ACEOF | |
22791 | /* end confdefs.h. */ | |
32ddf007 VS |
22792 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22793 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22794 | #define $ac_func innocuous_$ac_func | |
22795 | ||
2b5f62a0 | 22796 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22797 | which can conflict with char $ac_func (); below. |
22798 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22799 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 22800 | |
e6cc62c6 VS |
22801 | #ifdef __STDC__ |
22802 | # include <limits.h> | |
22803 | #else | |
22804 | # include <assert.h> | |
22805 | #endif | |
32ddf007 VS |
22806 | |
22807 | #undef $ac_func | |
22808 | ||
2b5f62a0 | 22809 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22810 | #ifdef __cplusplus |
22811 | extern "C" | |
22812 | { | |
22813 | #endif | |
2b5f62a0 | 22814 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22815 | builtin and then its argument prototype would still apply. */ |
22816 | char $ac_func (); | |
2b5f62a0 VZ |
22817 | /* The GNU C library defines this for functions which it implements |
22818 | to always fail with ENOSYS. Some functions are actually named | |
22819 | something starting with __ and the normal name is an alias. */ | |
22820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22821 | choke me | |
22822 | #else | |
e6cc62c6 VS |
22823 | char (*f) () = $ac_func; |
22824 | #endif | |
22825 | #ifdef __cplusplus | |
22826 | } | |
2b5f62a0 VZ |
22827 | #endif |
22828 | ||
e6cc62c6 VS |
22829 | int |
22830 | main () | |
22831 | { | |
22832 | return f != $ac_func; | |
22833 | ; | |
22834 | return 0; | |
22835 | } | |
22836 | _ACEOF | |
22837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22839 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22840 | ac_status=$? |
32ddf007 VS |
22841 | grep -v '^ *+' conftest.er1 >conftest.err |
22842 | rm -f conftest.er1 | |
22843 | cat conftest.err >&5 | |
e6cc62c6 VS |
22844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22845 | (exit $ac_status); } && | |
e1293dcf | 22846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22848 | (eval $ac_try) 2>&5 | |
22849 | ac_status=$? | |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22851 | (exit $ac_status); }; } && | |
22852 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22854 | (eval $ac_try) 2>&5 | |
22855 | ac_status=$? | |
22856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22857 | (exit $ac_status); }; }; then | |
22858 | eval "$as_ac_var=yes" | |
22859 | else | |
22860 | echo "$as_me: failed program was:" >&5 | |
22861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22862 | ||
22863 | eval "$as_ac_var=no" | |
22864 | fi | |
32ddf007 VS |
22865 | rm -f conftest.err conftest.$ac_objext \ |
22866 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22867 | fi |
22868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22869 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22870 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22871 | cat >>confdefs.h <<_ACEOF | |
22872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22873 | _ACEOF | |
2b5f62a0 | 22874 | |
2b5f62a0 VZ |
22875 | fi |
22876 | done | |
22877 | ||
f09359cf VS |
22878 | fi |
22879 | ||
21d1c967 | 22880 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 22881 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
22882 | |
22883 | AFMINSTALL=afminstall | |
22884 | TOOLKIT=GTK | |
22885 | GUIDIST=GTK_DIST | |
22886 | ||
e6cc62c6 VS |
22887 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
22888 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
22889 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
22890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22891 | else |
e6cc62c6 | 22892 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22893 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 22894 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22895 | /* confdefs.h. */ |
22896 | _ACEOF | |
22897 | cat confdefs.h >>conftest.$ac_ext | |
22898 | cat >>conftest.$ac_ext <<_ACEOF | |
22899 | /* end confdefs.h. */ | |
22900 | ||
5c6fa7d2 | 22901 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22902 | #ifdef __cplusplus |
22903 | extern "C" | |
22904 | #endif | |
5c6fa7d2 | 22905 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22906 | builtin and then its argument prototype would still apply. */ |
22907 | char gdk_im_open (); | |
22908 | int | |
22909 | main () | |
22910 | { | |
22911 | gdk_im_open (); | |
22912 | ; | |
22913 | return 0; | |
22914 | } | |
22915 | _ACEOF | |
22916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22918 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22919 | ac_status=$? |
32ddf007 VS |
22920 | grep -v '^ *+' conftest.er1 >conftest.err |
22921 | rm -f conftest.er1 | |
22922 | cat conftest.err >&5 | |
e6cc62c6 VS |
22923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22924 | (exit $ac_status); } && | |
e1293dcf | 22925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
22926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22927 | (eval $ac_try) 2>&5 | |
22928 | ac_status=$? | |
22929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22930 | (exit $ac_status); }; } && | |
22931 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22933 | (eval $ac_try) 2>&5 | |
22934 | ac_status=$? | |
22935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22936 | (exit $ac_status); }; }; then | |
22937 | ac_cv_lib_gdk_gdk_im_open=yes | |
22938 | else | |
22939 | echo "$as_me: failed program was:" >&5 | |
22940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22941 | ||
22942 | ac_cv_lib_gdk_gdk_im_open=no | |
22943 | fi | |
32ddf007 VS |
22944 | rm -f conftest.err conftest.$ac_objext \ |
22945 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22946 | LIBS=$ac_check_lib_save_LIBS |
22947 | fi | |
22948 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
22949 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
22950 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
22951 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22952 | #define HAVE_XIM 1 |
e6cc62c6 | 22953 | _ACEOF |
21d1c967 | 22954 | |
90dd450c | 22955 | fi |
1e6feb95 | 22956 | |
0f87e84c RR |
22957 | |
22958 | ||
22959 | if test "$wxUSE_GPE" = "yes"; then | |
22960 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
22961 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
22962 | ||
22963 | ac_find_libraries= | |
22964 | for ac_dir in $SEARCH_LIB /usr/lib; | |
22965 | do | |
22966 | for ac_extension in a so sl dylib; do | |
22967 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
22968 | ac_find_libraries=$ac_dir | |
22969 | break 2 | |
22970 | fi | |
22971 | done | |
22972 | done | |
22973 | ||
22974 | if test "$ac_find_libraries" != "" ; then | |
22975 | ||
22976 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
22977 | result=$? | |
22978 | if test $result = 0; then | |
22979 | ac_path_to_link="" | |
22980 | else | |
22981 | ac_path_to_link=" -L$ac_find_libraries" | |
22982 | fi | |
22983 | ||
22984 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
22985 | WXGPE=1 | |
22986 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
22987 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
22988 | else | |
22989 | echo "$as_me:$LINENO: result: not found" >&5 | |
22990 | echo "${ECHO_T}not found" >&6 | |
22991 | fi | |
22992 | ||
22993 | fi | |
21d1c967 | 22994 | fi |
1e6feb95 | 22995 | |
21d1c967 | 22996 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
22997 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
22998 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 22999 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
23000 | echo "$as_me:$LINENO: result: not found" >&5 |
23001 | echo "${ECHO_T}not found" >&6 | |
23002 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23003 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23004 | { (exit 1); exit 1; }; } | |
21d1c967 | 23005 | else |
e6cc62c6 VS |
23006 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
23007 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
23008 | fi |
23009 | ||
e6cc62c6 VS |
23010 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
23011 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 23012 | case "${host}" in |
21d1c967 | 23013 | *-*-linux* ) |
e46d2a18 VS |
23014 | if test "x$wxUSE_SHARED" = xyes ; then |
23015 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 23016 | else |
e46d2a18 | 23017 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 23018 | fi |
21d1c967 GD |
23019 | ;; |
23020 | *-pc-msdosdjgpp ) | |
63a76696 | 23021 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
23022 | ;; |
23023 | *) | |
e6cc62c6 VS |
23024 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
23025 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23026 | { (exit 1); exit 1; }; } | |
21d1c967 | 23027 | esac |
1e6feb95 | 23028 | |
21d1c967 | 23029 | mgl_lib_type="" |
63a76696 VS |
23030 | mgl_os="" |
23031 | ||
23032 | for mgl_os_i in $mgl_os_candidates ; do | |
23033 | if test "x$mgl_os" = x ; then | |
23034 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23035 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23036 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23037 | mgl_lib_type=debug | |
23038 | mgl_os=$mgl_os_i | |
23039 | fi | |
23040 | fi | |
23041 | if test "x$mgl_lib_type" = x ; then | |
23042 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23043 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23044 | mgl_lib_type=release | |
23045 | mgl_os=$mgl_os_i | |
23046 | fi | |
23047 | fi | |
21d1c967 | 23048 | fi |
63a76696 | 23049 | done |
2224580a | 23050 | |
63a76696 | 23051 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
23052 | echo "$as_me:$LINENO: result: not found" >&5 |
23053 | echo "${ECHO_T}not found" >&6 | |
23054 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23055 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23056 | { (exit 1); exit 1; }; } | |
63a76696 | 23057 | fi |
e6cc62c6 VS |
23058 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
23059 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 23060 | |
1d1b75ac VZ |
23061 | wxUSE_UNIVERSAL="yes" |
23062 | ||
21d1c967 GD |
23063 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
23064 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23065 | ||
90dd450c | 23066 | AFMINSTALL=afminstall |
21d1c967 GD |
23067 | TOOLKIT=MGL |
23068 | GUIDIST=MGL_DIST | |
23069 | fi | |
dad6c0ea | 23070 | |
21d1c967 | 23071 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
23072 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
23073 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 23074 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
23075 | echo "$as_me:$LINENO: result: not found" >&5 |
23076 | echo "${ECHO_T}not found" >&6 | |
23077 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23078 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23079 | { (exit 1); exit 1; }; } | |
21d1c967 | 23080 | else |
e6cc62c6 VS |
23081 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
23082 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 23083 | fi |
f6bcfd97 | 23084 | |
21d1c967 | 23085 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
23086 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
23087 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 23088 | else |
e6cc62c6 VS |
23089 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
23090 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23091 | { (exit 1); exit 1; }; } | |
90dd450c | 23092 | fi |
0b2effe9 | 23093 | |
21d1c967 GD |
23094 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
23095 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23096 | ||
1d1b75ac VZ |
23097 | wxUSE_UNIVERSAL="yes" |
23098 | ||
21d1c967 GD |
23099 | AFMINSTALL=afminstall |
23100 | TOOLKIT=MICROWIN | |
23101 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
23102 | |
23103 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 23104 | fi |
f6bcfd97 | 23105 | |
21d1c967 | 23106 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
23107 | echo "$as_me:$LINENO: checking for X" >&5 |
23108 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
23109 | ||
d8356fa3 | 23110 | |
21d1c967 GD |
23111 | # Check whether --with-x or --without-x was given. |
23112 | if test "${with_x+set}" = set; then | |
23113 | withval="$with_x" | |
2224580a | 23114 | |
e6cc62c6 | 23115 | fi; |
21d1c967 GD |
23116 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23117 | if test "x$with_x" = xno; then | |
23118 | # The user explicitly disabled X. | |
23119 | have_x=disabled | |
23120 | else | |
23121 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23122 | # Both variables are already set. | |
23123 | have_x=yes | |
23124 | else | |
e6cc62c6 VS |
23125 | if test "${ac_cv_have_x+set}" = set; then |
23126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
23127 | else |
23128 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
23129 | ac_x_includes=no ac_x_libraries=no |
23130 | rm -fr conftest.dir | |
23131 | if mkdir conftest.dir; then | |
23132 | cd conftest.dir | |
21d1c967 | 23133 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 23134 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
23135 | acfindx: |
23136 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 23137 | _ACEOF |
21d1c967 GD |
23138 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
23139 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23140 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23141 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23142 | for ac_extension in a so sl; do | |
23143 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
32ddf007 VS |
23144 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23145 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
23146 | fi |
23147 | done | |
23148 | # Screen out bogus values from the imake configuration. They are | |
23149 | # bogus both because they are the default anyway, and because | |
23150 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 23151 | case $ac_im_incroot in |
21d1c967 | 23152 | /usr/include) ;; |
e6cc62c6 | 23153 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 23154 | esac |
e6cc62c6 | 23155 | case $ac_im_usrlibdir in |
21d1c967 | 23156 | /usr/lib | /lib) ;; |
e6cc62c6 | 23157 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
23158 | esac |
23159 | fi | |
23160 | cd .. | |
e6cc62c6 | 23161 | rm -fr conftest.dir |
21d1c967 | 23162 | fi |
10f2d63a | 23163 | |
e6cc62c6 VS |
23164 | # Standard set of common directories for X headers. |
23165 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23166 | ac_x_header_dirs=' | |
23167 | /usr/X11/include | |
23168 | /usr/X11R6/include | |
23169 | /usr/X11R5/include | |
23170 | /usr/X11R4/include | |
23171 | ||
23172 | /usr/include/X11 | |
23173 | /usr/include/X11R6 | |
23174 | /usr/include/X11R5 | |
23175 | /usr/include/X11R4 | |
23176 | ||
23177 | /usr/local/X11/include | |
23178 | /usr/local/X11R6/include | |
23179 | /usr/local/X11R5/include | |
23180 | /usr/local/X11R4/include | |
23181 | ||
23182 | /usr/local/include/X11 | |
23183 | /usr/local/include/X11R6 | |
23184 | /usr/local/include/X11R5 | |
23185 | /usr/local/include/X11R4 | |
23186 | ||
23187 | /usr/X386/include | |
23188 | /usr/x386/include | |
23189 | /usr/XFree86/include/X11 | |
23190 | ||
23191 | /usr/include | |
23192 | /usr/local/include | |
23193 | /usr/unsupported/include | |
23194 | /usr/athena/include | |
23195 | /usr/local/x11r5/include | |
23196 | /usr/lpp/Xamples/include | |
23197 | ||
23198 | /usr/openwin/include | |
23199 | /usr/openwin/share/include' | |
23200 | ||
23201 | if test "$ac_x_includes" = no; then | |
23202 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 23203 | # First, try using that file with no special directory specified. |
e6cc62c6 | 23204 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23205 | /* confdefs.h. */ |
23206 | _ACEOF | |
23207 | cat confdefs.h >>conftest.$ac_ext | |
23208 | cat >>conftest.$ac_ext <<_ACEOF | |
23209 | /* end confdefs.h. */ | |
23210 | #include <X11/Intrinsic.h> | |
23211 | _ACEOF | |
23212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23214 | ac_status=$? | |
23215 | grep -v '^ *+' conftest.er1 >conftest.err | |
23216 | rm -f conftest.er1 | |
23217 | cat conftest.err >&5 | |
23218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23219 | (exit $ac_status); } >/dev/null; then | |
23220 | if test -s conftest.err; then | |
23221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 23222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
23223 | else |
23224 | ac_cpp_err= | |
23225 | fi | |
23226 | else | |
23227 | ac_cpp_err=yes | |
23228 | fi | |
23229 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
23230 | # We can compile using X headers with no special include directory. |
23231 | ac_x_includes= | |
90dd450c | 23232 | else |
e6cc62c6 VS |
23233 | echo "$as_me: failed program was:" >&5 |
23234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23235 | ||
23236 | for ac_dir in $ac_x_header_dirs; do | |
23237 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23238 | ac_x_includes=$ac_dir | |
23239 | break | |
23240 | fi | |
23241 | done | |
3a922bb4 | 23242 | fi |
e6cc62c6 VS |
23243 | rm -f conftest.err conftest.$ac_ext |
23244 | fi # $ac_x_includes = no | |
10f2d63a | 23245 | |
e6cc62c6 | 23246 | if test "$ac_x_libraries" = no; then |
21d1c967 | 23247 | # Check for the libraries. |
21d1c967 GD |
23248 | # See if we find them without any special options. |
23249 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
23250 | ac_save_LIBS=$LIBS |
23251 | LIBS="-lXt $LIBS" | |
23252 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23253 | /* confdefs.h. */ |
23254 | _ACEOF | |
23255 | cat confdefs.h >>conftest.$ac_ext | |
23256 | cat >>conftest.$ac_ext <<_ACEOF | |
23257 | /* end confdefs.h. */ | |
23258 | #include <X11/Intrinsic.h> | |
23259 | int | |
23260 | main () | |
23261 | { | |
23262 | XtMalloc (0) | |
23263 | ; | |
23264 | return 0; | |
23265 | } | |
23266 | _ACEOF | |
23267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23269 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23270 | ac_status=$? |
32ddf007 VS |
23271 | grep -v '^ *+' conftest.er1 >conftest.err |
23272 | rm -f conftest.er1 | |
23273 | cat conftest.err >&5 | |
e6cc62c6 VS |
23274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23275 | (exit $ac_status); } && | |
e1293dcf | 23276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23278 | (eval $ac_try) 2>&5 | |
23279 | ac_status=$? | |
23280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23281 | (exit $ac_status); }; } && | |
23282 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23284 | (eval $ac_try) 2>&5 | |
23285 | ac_status=$? | |
23286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23287 | (exit $ac_status); }; }; then | |
23288 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
23289 | # We can link X programs with no special library path. |
23290 | ac_x_libraries= | |
3a922bb4 | 23291 | else |
e6cc62c6 VS |
23292 | echo "$as_me: failed program was:" >&5 |
23293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23294 | ||
23295 | LIBS=$ac_save_LIBS | |
23296 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 23297 | do |
e6cc62c6 | 23298 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 23299 | for ac_extension in a so sl; do |
e6cc62c6 | 23300 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
23301 | ac_x_libraries=$ac_dir |
23302 | break 2 | |
23303 | fi | |
23304 | done | |
23305 | done | |
3a922bb4 | 23306 | fi |
32ddf007 VS |
23307 | rm -f conftest.err conftest.$ac_objext \ |
23308 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23309 | fi # $ac_x_libraries = no |
90dd450c | 23310 | |
e6cc62c6 | 23311 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
23312 | # Didn't find X anywhere. Cache the known absence of X. |
23313 | ac_cv_have_x="have_x=no" | |
23314 | else | |
23315 | # Record where we found X for the cache. | |
23316 | ac_cv_have_x="have_x=yes \ | |
32ddf007 | 23317 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 23318 | fi |
21d1c967 | 23319 | fi |
e6cc62c6 | 23320 | |
21d1c967 GD |
23321 | fi |
23322 | eval "$ac_cv_have_x" | |
23323 | fi # $with_x != no | |
90dd450c | 23324 | |
21d1c967 | 23325 | if test "$have_x" != yes; then |
e6cc62c6 VS |
23326 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23327 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
23328 | no_x=yes |
23329 | else | |
23330 | # If each of the values was on the command line, it overrides each guess. | |
23331 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23332 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23333 | # Update the cache value to reflect the command line values. | |
23334 | ac_cv_have_x="have_x=yes \ | |
23335 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
23336 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23337 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 23338 | fi |
90dd450c | 23339 | |
21d1c967 | 23340 | if test "$no_x" = yes; then |
90dd450c | 23341 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
23342 | |
23343 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 23344 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 23345 | _ACEOF |
90dd450c VZ |
23346 | |
23347 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23348 | else | |
23349 | if test -n "$x_includes"; then | |
23350 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 23351 | fi |
3a922bb4 | 23352 | |
90dd450c VZ |
23353 | # It would also be nice to do this for all -L options, not just this one. |
23354 | if test -n "$x_libraries"; then | |
23355 | X_LIBS="$X_LIBS -L$x_libraries" | |
23356 | # For Solaris; some versions of Sun CC require a space after -R and | |
23357 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23358 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 23359 | "SunOS 5"*) |
e6cc62c6 VS |
23360 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23361 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23362 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23363 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23364 | /* confdefs.h. */ |
23365 | _ACEOF | |
23366 | cat confdefs.h >>conftest.$ac_ext | |
23367 | cat >>conftest.$ac_ext <<_ACEOF | |
23368 | /* end confdefs.h. */ | |
23369 | ||
23370 | int | |
23371 | main () | |
23372 | { | |
90dd450c | 23373 | |
e6cc62c6 VS |
23374 | ; |
23375 | return 0; | |
23376 | } | |
23377 | _ACEOF | |
23378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23380 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23381 | ac_status=$? |
32ddf007 VS |
23382 | grep -v '^ *+' conftest.er1 >conftest.err |
23383 | rm -f conftest.er1 | |
23384 | cat conftest.err >&5 | |
e6cc62c6 VS |
23385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23386 | (exit $ac_status); } && | |
e1293dcf | 23387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23389 | (eval $ac_try) 2>&5 | |
23390 | ac_status=$? | |
23391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23392 | (exit $ac_status); }; } && | |
23393 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23395 | (eval $ac_try) 2>&5 | |
23396 | ac_status=$? | |
23397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23398 | (exit $ac_status); }; }; then | |
90dd450c | 23399 | ac_R_nospace=yes |
3a922bb4 | 23400 | else |
e6cc62c6 VS |
23401 | echo "$as_me: failed program was:" >&5 |
23402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23403 | ||
23404 | ac_R_nospace=no | |
3a922bb4 | 23405 | fi |
32ddf007 VS |
23406 | rm -f conftest.err conftest.$ac_objext \ |
23407 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23408 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23409 | echo "$as_me:$LINENO: result: no" >&5 |
23410 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
23411 | X_LIBS="$X_LIBS -R$x_libraries" |
23412 | else | |
23413 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 23414 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23415 | /* confdefs.h. */ |
23416 | _ACEOF | |
23417 | cat confdefs.h >>conftest.$ac_ext | |
23418 | cat >>conftest.$ac_ext <<_ACEOF | |
23419 | /* end confdefs.h. */ | |
23420 | ||
23421 | int | |
23422 | main () | |
23423 | { | |
6f754473 | 23424 | |
e6cc62c6 VS |
23425 | ; |
23426 | return 0; | |
23427 | } | |
23428 | _ACEOF | |
23429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23431 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23432 | ac_status=$? |
32ddf007 VS |
23433 | grep -v '^ *+' conftest.er1 >conftest.err |
23434 | rm -f conftest.er1 | |
23435 | cat conftest.err >&5 | |
e6cc62c6 VS |
23436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23437 | (exit $ac_status); } && | |
e1293dcf | 23438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23440 | (eval $ac_try) 2>&5 | |
23441 | ac_status=$? | |
23442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23443 | (exit $ac_status); }; } && | |
23444 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23446 | (eval $ac_try) 2>&5 | |
23447 | ac_status=$? | |
23448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23449 | (exit $ac_status); }; }; then | |
90dd450c VZ |
23450 | ac_R_space=yes |
23451 | else | |
e6cc62c6 VS |
23452 | echo "$as_me: failed program was:" >&5 |
23453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23454 | ||
23455 | ac_R_space=no | |
90dd450c | 23456 | fi |
32ddf007 VS |
23457 | rm -f conftest.err conftest.$ac_objext \ |
23458 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23459 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23460 | echo "$as_me:$LINENO: result: yes" >&5 |
23461 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
23462 | X_LIBS="$X_LIBS -R $x_libraries" |
23463 | else | |
e6cc62c6 VS |
23464 | echo "$as_me:$LINENO: result: neither works" >&5 |
23465 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
23466 | fi |
23467 | fi | |
e6cc62c6 | 23468 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
23469 | esac |
23470 | fi | |
23471 | ||
23472 | # Check for system-dependent libraries X programs must link with. | |
23473 | # Do this before checking for the system-independent R6 libraries | |
23474 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 23475 | |
90dd450c VZ |
23476 | if test "$ISC" = yes; then |
23477 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23478 | else | |
e6cc62c6 VS |
23479 | # Martyn Johnson says this is needed for Ultrix, if the X |
23480 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 23481 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23482 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23483 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23484 | /* confdefs.h. */ |
23485 | _ACEOF | |
23486 | cat confdefs.h >>conftest.$ac_ext | |
23487 | cat >>conftest.$ac_ext <<_ACEOF | |
23488 | /* end confdefs.h. */ | |
23489 | ||
247f5006 | 23490 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23491 | #ifdef __cplusplus |
23492 | extern "C" | |
23493 | #endif | |
247f5006 | 23494 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23495 | builtin and then its argument prototype would still apply. */ |
23496 | char XOpenDisplay (); | |
23497 | int | |
23498 | main () | |
23499 | { | |
23500 | XOpenDisplay (); | |
23501 | ; | |
23502 | return 0; | |
23503 | } | |
23504 | _ACEOF | |
23505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23507 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23508 | ac_status=$? |
32ddf007 VS |
23509 | grep -v '^ *+' conftest.er1 >conftest.err |
23510 | rm -f conftest.er1 | |
23511 | cat conftest.err >&5 | |
e6cc62c6 VS |
23512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23513 | (exit $ac_status); } && | |
e1293dcf | 23514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23516 | (eval $ac_try) 2>&5 | |
23517 | ac_status=$? | |
23518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23519 | (exit $ac_status); }; } && | |
23520 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23522 | (eval $ac_try) 2>&5 | |
23523 | ac_status=$? | |
23524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23525 | (exit $ac_status); }; }; then | |
23526 | : | |
23527 | else | |
23528 | echo "$as_me: failed program was:" >&5 | |
23529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23530 | |
e6cc62c6 VS |
23531 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23532 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23533 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23535 | else |
e6cc62c6 VS |
23536 | ac_check_lib_save_LIBS=$LIBS |
23537 | LIBS="-ldnet $LIBS" | |
23538 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23539 | /* confdefs.h. */ |
23540 | _ACEOF | |
23541 | cat confdefs.h >>conftest.$ac_ext | |
23542 | cat >>conftest.$ac_ext <<_ACEOF | |
23543 | /* end confdefs.h. */ | |
a0b9e27f | 23544 | |
e6cc62c6 VS |
23545 | /* Override any gcc2 internal prototype to avoid an error. */ |
23546 | #ifdef __cplusplus | |
23547 | extern "C" | |
23548 | #endif | |
23549 | /* We use char because int might match the return type of a gcc2 | |
23550 | builtin and then its argument prototype would still apply. */ | |
23551 | char dnet_ntoa (); | |
23552 | int | |
23553 | main () | |
23554 | { | |
23555 | dnet_ntoa (); | |
23556 | ; | |
23557 | return 0; | |
23558 | } | |
23559 | _ACEOF | |
23560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23562 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23563 | ac_status=$? |
32ddf007 VS |
23564 | grep -v '^ *+' conftest.er1 >conftest.err |
23565 | rm -f conftest.er1 | |
23566 | cat conftest.err >&5 | |
e6cc62c6 VS |
23567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23568 | (exit $ac_status); } && | |
e1293dcf | 23569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23571 | (eval $ac_try) 2>&5 | |
23572 | ac_status=$? | |
23573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23574 | (exit $ac_status); }; } && | |
23575 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23577 | (eval $ac_try) 2>&5 | |
23578 | ac_status=$? | |
23579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23580 | (exit $ac_status); }; }; then | |
23581 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23582 | else | |
23583 | echo "$as_me: failed program was:" >&5 | |
23584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23585 | ||
23586 | ac_cv_lib_dnet_dnet_ntoa=no | |
23587 | fi | |
32ddf007 VS |
23588 | rm -f conftest.err conftest.$ac_objext \ |
23589 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23590 | LIBS=$ac_check_lib_save_LIBS |
23591 | fi | |
23592 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23593 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23594 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 23595 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
23596 | fi |
23597 | ||
90dd450c | 23598 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23599 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23600 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23601 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23603 | else |
e6cc62c6 | 23604 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23605 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23606 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23607 | /* confdefs.h. */ |
23608 | _ACEOF | |
23609 | cat confdefs.h >>conftest.$ac_ext | |
23610 | cat >>conftest.$ac_ext <<_ACEOF | |
23611 | /* end confdefs.h. */ | |
23612 | ||
90dd450c | 23613 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23614 | #ifdef __cplusplus |
23615 | extern "C" | |
23616 | #endif | |
90dd450c | 23617 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23618 | builtin and then its argument prototype would still apply. */ |
23619 | char dnet_ntoa (); | |
23620 | int | |
23621 | main () | |
23622 | { | |
23623 | dnet_ntoa (); | |
23624 | ; | |
23625 | return 0; | |
23626 | } | |
23627 | _ACEOF | |
23628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23630 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23631 | ac_status=$? |
32ddf007 VS |
23632 | grep -v '^ *+' conftest.er1 >conftest.err |
23633 | rm -f conftest.er1 | |
23634 | cat conftest.err >&5 | |
e6cc62c6 VS |
23635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23636 | (exit $ac_status); } && | |
e1293dcf | 23637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23639 | (eval $ac_try) 2>&5 | |
23640 | ac_status=$? | |
23641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23642 | (exit $ac_status); }; } && | |
23643 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23645 | (eval $ac_try) 2>&5 | |
23646 | ac_status=$? | |
23647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23648 | (exit $ac_status); }; }; then | |
23649 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23650 | else | |
23651 | echo "$as_me: failed program was:" >&5 | |
23652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23653 | ||
23654 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23655 | fi | |
32ddf007 VS |
23656 | rm -f conftest.err conftest.$ac_objext \ |
23657 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23658 | LIBS=$ac_check_lib_save_LIBS |
23659 | fi | |
23660 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23661 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23662 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 23663 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
23664 | fi |
23665 | ||
90dd450c | 23666 | fi |
e6cc62c6 | 23667 | fi |
32ddf007 VS |
23668 | rm -f conftest.err conftest.$ac_objext \ |
23669 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23670 | LIBS="$ac_xsave_LIBS" |
978f1259 | 23671 | |
90dd450c VZ |
23672 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23673 | # to get the SysV transport functions. | |
e6cc62c6 | 23674 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
23675 | # needs -lnsl. |
23676 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23677 | # on Irix 5.2, according to T.E. Dickey. |
23678 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23679 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23680 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23681 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23682 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23684 | else | |
23685 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23686 | /* confdefs.h. */ |
23687 | _ACEOF | |
23688 | cat confdefs.h >>conftest.$ac_ext | |
23689 | cat >>conftest.$ac_ext <<_ACEOF | |
23690 | /* end confdefs.h. */ | |
32ddf007 VS |
23691 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
23692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23693 | #define gethostbyname innocuous_gethostbyname | |
23694 | ||
90dd450c | 23695 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23696 | which can conflict with char gethostbyname (); below. |
23697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23698 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 23699 | |
e6cc62c6 VS |
23700 | #ifdef __STDC__ |
23701 | # include <limits.h> | |
23702 | #else | |
23703 | # include <assert.h> | |
23704 | #endif | |
32ddf007 VS |
23705 | |
23706 | #undef gethostbyname | |
23707 | ||
90dd450c | 23708 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23709 | #ifdef __cplusplus |
23710 | extern "C" | |
23711 | { | |
23712 | #endif | |
90dd450c | 23713 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23714 | builtin and then its argument prototype would still apply. */ |
23715 | char gethostbyname (); | |
90dd450c VZ |
23716 | /* The GNU C library defines this for functions which it implements |
23717 | to always fail with ENOSYS. Some functions are actually named | |
23718 | something starting with __ and the normal name is an alias. */ | |
23719 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23720 | choke me | |
23721 | #else | |
e6cc62c6 VS |
23722 | char (*f) () = gethostbyname; |
23723 | #endif | |
23724 | #ifdef __cplusplus | |
23725 | } | |
90dd450c | 23726 | #endif |
978f1259 | 23727 | |
e6cc62c6 VS |
23728 | int |
23729 | main () | |
23730 | { | |
23731 | return f != gethostbyname; | |
23732 | ; | |
23733 | return 0; | |
23734 | } | |
23735 | _ACEOF | |
23736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23738 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23739 | ac_status=$? |
32ddf007 VS |
23740 | grep -v '^ *+' conftest.er1 >conftest.err |
23741 | rm -f conftest.er1 | |
23742 | cat conftest.err >&5 | |
e6cc62c6 VS |
23743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23744 | (exit $ac_status); } && | |
e1293dcf | 23745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23747 | (eval $ac_try) 2>&5 | |
23748 | ac_status=$? | |
23749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23750 | (exit $ac_status); }; } && | |
23751 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23753 | (eval $ac_try) 2>&5 | |
23754 | ac_status=$? | |
23755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23756 | (exit $ac_status); }; }; then | |
23757 | ac_cv_func_gethostbyname=yes | |
23758 | else | |
23759 | echo "$as_me: failed program was:" >&5 | |
23760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23761 | ||
23762 | ac_cv_func_gethostbyname=no | |
23763 | fi | |
32ddf007 VS |
23764 | rm -f conftest.err conftest.$ac_objext \ |
23765 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23766 | fi |
23767 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23768 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 23769 | |
90dd450c | 23770 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23771 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23772 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23773 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23775 | else |
e6cc62c6 | 23776 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23777 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23778 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23779 | /* confdefs.h. */ |
23780 | _ACEOF | |
23781 | cat confdefs.h >>conftest.$ac_ext | |
23782 | cat >>conftest.$ac_ext <<_ACEOF | |
23783 | /* end confdefs.h. */ | |
23784 | ||
90dd450c | 23785 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23786 | #ifdef __cplusplus |
23787 | extern "C" | |
23788 | #endif | |
90dd450c | 23789 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23790 | builtin and then its argument prototype would still apply. */ |
23791 | char gethostbyname (); | |
23792 | int | |
23793 | main () | |
23794 | { | |
23795 | gethostbyname (); | |
23796 | ; | |
23797 | return 0; | |
23798 | } | |
23799 | _ACEOF | |
23800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23802 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23803 | ac_status=$? |
32ddf007 VS |
23804 | grep -v '^ *+' conftest.er1 >conftest.err |
23805 | rm -f conftest.er1 | |
23806 | cat conftest.err >&5 | |
e6cc62c6 VS |
23807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23808 | (exit $ac_status); } && | |
e1293dcf | 23809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23811 | (eval $ac_try) 2>&5 | |
23812 | ac_status=$? | |
23813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23814 | (exit $ac_status); }; } && | |
23815 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23817 | (eval $ac_try) 2>&5 | |
23818 | ac_status=$? | |
23819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23820 | (exit $ac_status); }; }; then | |
23821 | ac_cv_lib_nsl_gethostbyname=yes | |
23822 | else | |
23823 | echo "$as_me: failed program was:" >&5 | |
23824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23825 | ||
23826 | ac_cv_lib_nsl_gethostbyname=no | |
23827 | fi | |
32ddf007 VS |
23828 | rm -f conftest.err conftest.$ac_objext \ |
23829 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23830 | LIBS=$ac_check_lib_save_LIBS |
23831 | fi | |
23832 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23833 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23834 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23835 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23836 | fi |
247f5006 | 23837 | |
e6cc62c6 | 23838 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 23839 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23840 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23841 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23843 | else |
e6cc62c6 VS |
23844 | ac_check_lib_save_LIBS=$LIBS |
23845 | LIBS="-lbsd $LIBS" | |
23846 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23847 | /* confdefs.h. */ |
23848 | _ACEOF | |
23849 | cat confdefs.h >>conftest.$ac_ext | |
23850 | cat >>conftest.$ac_ext <<_ACEOF | |
23851 | /* end confdefs.h. */ | |
23852 | ||
23853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23854 | #ifdef __cplusplus | |
23855 | extern "C" | |
23856 | #endif | |
23857 | /* We use char because int might match the return type of a gcc2 | |
23858 | builtin and then its argument prototype would still apply. */ | |
23859 | char gethostbyname (); | |
23860 | int | |
23861 | main () | |
23862 | { | |
23863 | gethostbyname (); | |
23864 | ; | |
23865 | return 0; | |
23866 | } | |
23867 | _ACEOF | |
23868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23870 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23871 | ac_status=$? |
32ddf007 VS |
23872 | grep -v '^ *+' conftest.er1 >conftest.err |
23873 | rm -f conftest.er1 | |
23874 | cat conftest.err >&5 | |
e6cc62c6 VS |
23875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23876 | (exit $ac_status); } && | |
e1293dcf | 23877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23879 | (eval $ac_try) 2>&5 | |
23880 | ac_status=$? | |
23881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23882 | (exit $ac_status); }; } && | |
23883 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23885 | (eval $ac_try) 2>&5 | |
23886 | ac_status=$? | |
23887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23888 | (exit $ac_status); }; }; then | |
23889 | ac_cv_lib_bsd_gethostbyname=yes | |
23890 | else | |
23891 | echo "$as_me: failed program was:" >&5 | |
23892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23893 | ||
23894 | ac_cv_lib_bsd_gethostbyname=no | |
23895 | fi | |
32ddf007 VS |
23896 | rm -f conftest.err conftest.$ac_objext \ |
23897 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23898 | LIBS=$ac_check_lib_save_LIBS |
23899 | fi | |
23900 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23901 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23902 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 23904 | fi |
b12915c1 | 23905 | |
e6cc62c6 | 23906 | fi |
90dd450c VZ |
23907 | fi |
23908 | ||
23909 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
23910 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23911 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23912 | # on later versions), says Simon Leinen: it contains gethostby* |
23913 | # variants that don't use the name server (or something). -lsocket | |
23914 | # must be given before -lnsl if both are needed. We assume that | |
23915 | # if connect needs -lnsl, so does gethostbyname. | |
23916 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23917 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23918 | if test "${ac_cv_func_connect+set}" = set; then | |
23919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23920 | else | |
23921 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23922 | /* confdefs.h. */ |
23923 | _ACEOF | |
23924 | cat confdefs.h >>conftest.$ac_ext | |
23925 | cat >>conftest.$ac_ext <<_ACEOF | |
23926 | /* end confdefs.h. */ | |
32ddf007 VS |
23927 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
23928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23929 | #define connect innocuous_connect | |
23930 | ||
90dd450c | 23931 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23932 | which can conflict with char connect (); below. |
23933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23934 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 23935 | |
e6cc62c6 VS |
23936 | #ifdef __STDC__ |
23937 | # include <limits.h> | |
23938 | #else | |
23939 | # include <assert.h> | |
23940 | #endif | |
32ddf007 VS |
23941 | |
23942 | #undef connect | |
23943 | ||
90dd450c | 23944 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23945 | #ifdef __cplusplus |
23946 | extern "C" | |
23947 | { | |
23948 | #endif | |
90dd450c | 23949 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23950 | builtin and then its argument prototype would still apply. */ |
23951 | char connect (); | |
90dd450c VZ |
23952 | /* The GNU C library defines this for functions which it implements |
23953 | to always fail with ENOSYS. Some functions are actually named | |
23954 | something starting with __ and the normal name is an alias. */ | |
23955 | #if defined (__stub_connect) || defined (__stub___connect) | |
23956 | choke me | |
23957 | #else | |
e6cc62c6 VS |
23958 | char (*f) () = connect; |
23959 | #endif | |
23960 | #ifdef __cplusplus | |
23961 | } | |
90dd450c VZ |
23962 | #endif |
23963 | ||
e6cc62c6 VS |
23964 | int |
23965 | main () | |
23966 | { | |
23967 | return f != connect; | |
23968 | ; | |
23969 | return 0; | |
23970 | } | |
23971 | _ACEOF | |
23972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23974 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23975 | ac_status=$? |
32ddf007 VS |
23976 | grep -v '^ *+' conftest.er1 >conftest.err |
23977 | rm -f conftest.er1 | |
23978 | cat conftest.err >&5 | |
e6cc62c6 VS |
23979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23980 | (exit $ac_status); } && | |
e1293dcf | 23981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
23982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23983 | (eval $ac_try) 2>&5 | |
23984 | ac_status=$? | |
23985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23986 | (exit $ac_status); }; } && | |
23987 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23989 | (eval $ac_try) 2>&5 | |
23990 | ac_status=$? | |
23991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23992 | (exit $ac_status); }; }; then | |
23993 | ac_cv_func_connect=yes | |
23994 | else | |
23995 | echo "$as_me: failed program was:" >&5 | |
23996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23997 | ||
23998 | ac_cv_func_connect=no | |
23999 | fi | |
32ddf007 VS |
24000 | rm -f conftest.err conftest.$ac_objext \ |
24001 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24002 | fi |
24003 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24004 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 24005 | |
90dd450c | 24006 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24007 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24008 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24009 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24011 | else |
e6cc62c6 | 24012 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24013 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24014 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24015 | /* confdefs.h. */ |
24016 | _ACEOF | |
24017 | cat confdefs.h >>conftest.$ac_ext | |
24018 | cat >>conftest.$ac_ext <<_ACEOF | |
24019 | /* end confdefs.h. */ | |
24020 | ||
90dd450c | 24021 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24022 | #ifdef __cplusplus |
24023 | extern "C" | |
24024 | #endif | |
90dd450c | 24025 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24026 | builtin and then its argument prototype would still apply. */ |
24027 | char connect (); | |
24028 | int | |
24029 | main () | |
24030 | { | |
24031 | connect (); | |
24032 | ; | |
24033 | return 0; | |
24034 | } | |
24035 | _ACEOF | |
24036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24038 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24039 | ac_status=$? |
32ddf007 VS |
24040 | grep -v '^ *+' conftest.er1 >conftest.err |
24041 | rm -f conftest.er1 | |
24042 | cat conftest.err >&5 | |
e6cc62c6 VS |
24043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24044 | (exit $ac_status); } && | |
e1293dcf | 24045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24047 | (eval $ac_try) 2>&5 | |
24048 | ac_status=$? | |
24049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24050 | (exit $ac_status); }; } && | |
24051 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24053 | (eval $ac_try) 2>&5 | |
24054 | ac_status=$? | |
24055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24056 | (exit $ac_status); }; }; then | |
24057 | ac_cv_lib_socket_connect=yes | |
24058 | else | |
24059 | echo "$as_me: failed program was:" >&5 | |
24060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24061 | ||
24062 | ac_cv_lib_socket_connect=no | |
24063 | fi | |
32ddf007 VS |
24064 | rm -f conftest.err conftest.$ac_objext \ |
24065 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24066 | LIBS=$ac_check_lib_save_LIBS |
24067 | fi | |
24068 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24069 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24070 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 24071 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 24072 | fi |
77e13408 | 24073 | |
90dd450c | 24074 | fi |
25d0687a | 24075 | |
e6cc62c6 VS |
24076 | # Guillermo Gomez says -lposix is necessary on A/UX. |
24077 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24078 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24079 | if test "${ac_cv_func_remove+set}" = set; then | |
24080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24081 | else | |
24082 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24083 | /* confdefs.h. */ |
24084 | _ACEOF | |
24085 | cat confdefs.h >>conftest.$ac_ext | |
24086 | cat >>conftest.$ac_ext <<_ACEOF | |
24087 | /* end confdefs.h. */ | |
32ddf007 VS |
24088 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24090 | #define remove innocuous_remove | |
24091 | ||
90dd450c | 24092 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24093 | which can conflict with char remove (); below. |
24094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24095 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24096 | |
e6cc62c6 VS |
24097 | #ifdef __STDC__ |
24098 | # include <limits.h> | |
24099 | #else | |
24100 | # include <assert.h> | |
24101 | #endif | |
32ddf007 VS |
24102 | |
24103 | #undef remove | |
24104 | ||
90dd450c | 24105 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24106 | #ifdef __cplusplus |
24107 | extern "C" | |
24108 | { | |
24109 | #endif | |
90dd450c | 24110 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24111 | builtin and then its argument prototype would still apply. */ |
24112 | char remove (); | |
90dd450c VZ |
24113 | /* The GNU C library defines this for functions which it implements |
24114 | to always fail with ENOSYS. Some functions are actually named | |
24115 | something starting with __ and the normal name is an alias. */ | |
24116 | #if defined (__stub_remove) || defined (__stub___remove) | |
24117 | choke me | |
24118 | #else | |
e6cc62c6 VS |
24119 | char (*f) () = remove; |
24120 | #endif | |
24121 | #ifdef __cplusplus | |
24122 | } | |
90dd450c | 24123 | #endif |
55e80573 | 24124 | |
e6cc62c6 VS |
24125 | int |
24126 | main () | |
24127 | { | |
24128 | return f != remove; | |
24129 | ; | |
24130 | return 0; | |
24131 | } | |
24132 | _ACEOF | |
24133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24135 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24136 | ac_status=$? |
32ddf007 VS |
24137 | grep -v '^ *+' conftest.er1 >conftest.err |
24138 | rm -f conftest.er1 | |
24139 | cat conftest.err >&5 | |
e6cc62c6 VS |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24141 | (exit $ac_status); } && | |
e1293dcf | 24142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24144 | (eval $ac_try) 2>&5 | |
24145 | ac_status=$? | |
24146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24147 | (exit $ac_status); }; } && | |
24148 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24150 | (eval $ac_try) 2>&5 | |
24151 | ac_status=$? | |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); }; }; then | |
24154 | ac_cv_func_remove=yes | |
24155 | else | |
24156 | echo "$as_me: failed program was:" >&5 | |
24157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24158 | ||
24159 | ac_cv_func_remove=no | |
24160 | fi | |
32ddf007 VS |
24161 | rm -f conftest.err conftest.$ac_objext \ |
24162 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24163 | fi |
24164 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24165 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 24166 | |
90dd450c | 24167 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
24168 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
24169 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24170 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24172 | else |
e6cc62c6 | 24173 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24174 | LIBS="-lposix $LIBS" |
e6cc62c6 | 24175 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24176 | /* confdefs.h. */ |
24177 | _ACEOF | |
24178 | cat confdefs.h >>conftest.$ac_ext | |
24179 | cat >>conftest.$ac_ext <<_ACEOF | |
24180 | /* end confdefs.h. */ | |
24181 | ||
90dd450c | 24182 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24183 | #ifdef __cplusplus |
24184 | extern "C" | |
24185 | #endif | |
90dd450c | 24186 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24187 | builtin and then its argument prototype would still apply. */ |
24188 | char remove (); | |
24189 | int | |
24190 | main () | |
24191 | { | |
24192 | remove (); | |
24193 | ; | |
24194 | return 0; | |
24195 | } | |
24196 | _ACEOF | |
24197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24199 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24200 | ac_status=$? |
32ddf007 VS |
24201 | grep -v '^ *+' conftest.er1 >conftest.err |
24202 | rm -f conftest.er1 | |
24203 | cat conftest.err >&5 | |
e6cc62c6 VS |
24204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24205 | (exit $ac_status); } && | |
e1293dcf | 24206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24208 | (eval $ac_try) 2>&5 | |
24209 | ac_status=$? | |
24210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24211 | (exit $ac_status); }; } && | |
24212 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24214 | (eval $ac_try) 2>&5 | |
24215 | ac_status=$? | |
24216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24217 | (exit $ac_status); }; }; then | |
24218 | ac_cv_lib_posix_remove=yes | |
24219 | else | |
24220 | echo "$as_me: failed program was:" >&5 | |
24221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24222 | ||
24223 | ac_cv_lib_posix_remove=no | |
24224 | fi | |
32ddf007 VS |
24225 | rm -f conftest.err conftest.$ac_objext \ |
24226 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24227 | LIBS=$ac_check_lib_save_LIBS |
24228 | fi | |
24229 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24230 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24231 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 24232 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 24233 | fi |
f6bcfd97 | 24234 | |
6fa882bd RR |
24235 | fi |
24236 | ||
90dd450c | 24237 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
24238 | echo "$as_me:$LINENO: checking for shmat" >&5 |
24239 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24240 | if test "${ac_cv_func_shmat+set}" = set; then | |
24241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24242 | else | |
24243 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24244 | /* confdefs.h. */ |
24245 | _ACEOF | |
24246 | cat confdefs.h >>conftest.$ac_ext | |
24247 | cat >>conftest.$ac_ext <<_ACEOF | |
24248 | /* end confdefs.h. */ | |
32ddf007 VS |
24249 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24250 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24251 | #define shmat innocuous_shmat | |
24252 | ||
90dd450c | 24253 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24254 | which can conflict with char shmat (); below. |
24255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24256 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24257 | |
e6cc62c6 VS |
24258 | #ifdef __STDC__ |
24259 | # include <limits.h> | |
24260 | #else | |
24261 | # include <assert.h> | |
24262 | #endif | |
32ddf007 VS |
24263 | |
24264 | #undef shmat | |
24265 | ||
90dd450c | 24266 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24267 | #ifdef __cplusplus |
24268 | extern "C" | |
24269 | { | |
24270 | #endif | |
90dd450c | 24271 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24272 | builtin and then its argument prototype would still apply. */ |
24273 | char shmat (); | |
90dd450c VZ |
24274 | /* The GNU C library defines this for functions which it implements |
24275 | to always fail with ENOSYS. Some functions are actually named | |
24276 | something starting with __ and the normal name is an alias. */ | |
24277 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24278 | choke me | |
24279 | #else | |
e6cc62c6 VS |
24280 | char (*f) () = shmat; |
24281 | #endif | |
24282 | #ifdef __cplusplus | |
24283 | } | |
90dd450c | 24284 | #endif |
10f2d63a | 24285 | |
e6cc62c6 VS |
24286 | int |
24287 | main () | |
24288 | { | |
24289 | return f != shmat; | |
24290 | ; | |
24291 | return 0; | |
24292 | } | |
24293 | _ACEOF | |
24294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24296 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24297 | ac_status=$? |
32ddf007 VS |
24298 | grep -v '^ *+' conftest.er1 >conftest.err |
24299 | rm -f conftest.er1 | |
24300 | cat conftest.err >&5 | |
e6cc62c6 VS |
24301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24302 | (exit $ac_status); } && | |
e1293dcf | 24303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24305 | (eval $ac_try) 2>&5 | |
24306 | ac_status=$? | |
24307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24308 | (exit $ac_status); }; } && | |
24309 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24311 | (eval $ac_try) 2>&5 | |
24312 | ac_status=$? | |
24313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24314 | (exit $ac_status); }; }; then | |
24315 | ac_cv_func_shmat=yes | |
24316 | else | |
24317 | echo "$as_me: failed program was:" >&5 | |
24318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24319 | ||
24320 | ac_cv_func_shmat=no | |
24321 | fi | |
32ddf007 VS |
24322 | rm -f conftest.err conftest.$ac_objext \ |
24323 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24324 | fi |
24325 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24326 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 24327 | |
90dd450c | 24328 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
24329 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
24330 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24331 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 24333 | else |
e6cc62c6 | 24334 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24335 | LIBS="-lipc $LIBS" |
e6cc62c6 | 24336 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24337 | /* confdefs.h. */ |
24338 | _ACEOF | |
24339 | cat confdefs.h >>conftest.$ac_ext | |
24340 | cat >>conftest.$ac_ext <<_ACEOF | |
24341 | /* end confdefs.h. */ | |
24342 | ||
8284b0c5 | 24343 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24344 | #ifdef __cplusplus |
24345 | extern "C" | |
24346 | #endif | |
90dd450c | 24347 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24348 | builtin and then its argument prototype would still apply. */ |
24349 | char shmat (); | |
24350 | int | |
24351 | main () | |
24352 | { | |
24353 | shmat (); | |
24354 | ; | |
24355 | return 0; | |
24356 | } | |
24357 | _ACEOF | |
24358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24360 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24361 | ac_status=$? |
32ddf007 VS |
24362 | grep -v '^ *+' conftest.er1 >conftest.err |
24363 | rm -f conftest.er1 | |
24364 | cat conftest.err >&5 | |
e6cc62c6 VS |
24365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24366 | (exit $ac_status); } && | |
e1293dcf | 24367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24369 | (eval $ac_try) 2>&5 | |
24370 | ac_status=$? | |
24371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24372 | (exit $ac_status); }; } && | |
24373 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24375 | (eval $ac_try) 2>&5 | |
24376 | ac_status=$? | |
24377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24378 | (exit $ac_status); }; }; then | |
24379 | ac_cv_lib_ipc_shmat=yes | |
24380 | else | |
24381 | echo "$as_me: failed program was:" >&5 | |
24382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24383 | ||
24384 | ac_cv_lib_ipc_shmat=no | |
24385 | fi | |
32ddf007 VS |
24386 | rm -f conftest.err conftest.$ac_objext \ |
24387 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24388 | LIBS=$ac_check_lib_save_LIBS |
24389 | fi | |
24390 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24391 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24392 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 24393 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
24394 | fi |
24395 | ||
d558c907 | 24396 | fi |
90dd450c | 24397 | fi |
3a922bb4 | 24398 | |
90dd450c | 24399 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 24400 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
24401 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
24402 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24403 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24404 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24405 | # These have to be linked with before -lX11, unlike the other | |
24406 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
24407 | # John Interrante, Karl Berry |
24408 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24409 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24410 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24412 | else | |
24413 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 24414 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24415 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24416 | /* confdefs.h. */ |
24417 | _ACEOF | |
24418 | cat confdefs.h >>conftest.$ac_ext | |
24419 | cat >>conftest.$ac_ext <<_ACEOF | |
24420 | /* end confdefs.h. */ | |
24421 | ||
90dd450c | 24422 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24423 | #ifdef __cplusplus |
24424 | extern "C" | |
24425 | #endif | |
90dd450c | 24426 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24427 | builtin and then its argument prototype would still apply. */ |
24428 | char IceConnectionNumber (); | |
24429 | int | |
24430 | main () | |
24431 | { | |
24432 | IceConnectionNumber (); | |
24433 | ; | |
24434 | return 0; | |
24435 | } | |
24436 | _ACEOF | |
24437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24439 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24440 | ac_status=$? |
32ddf007 VS |
24441 | grep -v '^ *+' conftest.er1 >conftest.err |
24442 | rm -f conftest.er1 | |
24443 | cat conftest.err >&5 | |
e6cc62c6 VS |
24444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24445 | (exit $ac_status); } && | |
e1293dcf | 24446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24448 | (eval $ac_try) 2>&5 | |
24449 | ac_status=$? | |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24451 | (exit $ac_status); }; } && | |
24452 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24454 | (eval $ac_try) 2>&5 | |
24455 | ac_status=$? | |
24456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24457 | (exit $ac_status); }; }; then | |
24458 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
24459 | else | |
24460 | echo "$as_me: failed program was:" >&5 | |
24461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24462 | ||
24463 | ac_cv_lib_ICE_IceConnectionNumber=no | |
24464 | fi | |
32ddf007 VS |
24465 | rm -f conftest.err conftest.$ac_objext \ |
24466 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24467 | LIBS=$ac_check_lib_save_LIBS |
24468 | fi | |
24469 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
24470 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
24471 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 24472 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 24473 | fi |
10f2d63a | 24474 | |
e6cc62c6 | 24475 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
24476 | |
24477 | fi | |
24478 | ||
8284b0c5 | 24479 | |
90dd450c | 24480 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
24481 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
24482 | echo "$as_me: error: X11 not found" >&2;} | |
24483 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
24484 | fi |
24485 | ||
24486 | GUI_TK_LIBRARY="$X_LIBS" | |
24487 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
24488 | AFMINSTALL=afminstall | |
24489 | COMPILED_X_PROGRAM=0 | |
24490 | ||
21d1c967 | 24491 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
24492 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
24493 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 24494 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
24495 | echo "$as_me:$LINENO: result: not found" >&5 |
24496 | echo "${ECHO_T}not found" >&6 | |
24497 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
24498 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
24499 | { (exit 1); exit 1; }; } | |
90dd450c | 24500 | else |
e6cc62c6 VS |
24501 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
24502 | echo "${ECHO_T}$MICROWIN" >&6 | |
24503 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24504 | #define wxUSE_NANOX 1 |
e6cc62c6 | 24505 | _ACEOF |
21d1c967 | 24506 | |
90dd450c VZ |
24507 | fi |
24508 | fi | |
24509 | ||
2b5f62a0 | 24510 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 24511 | |
2b5f62a0 | 24512 | succeeded=no |
90dd450c | 24513 | |
2b5f62a0 VZ |
24514 | if test -z "$PKG_CONFIG"; then |
24515 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24516 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24519 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24521 | else |
e6cc62c6 VS |
24522 | case $PKG_CONFIG in |
24523 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24524 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24525 | ;; | |
2b5f62a0 | 24526 | *) |
e6cc62c6 VS |
24527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24528 | for as_dir in $PATH | |
24529 | do | |
24530 | IFS=$as_save_IFS | |
24531 | test -z "$as_dir" && as_dir=. | |
24532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24534 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24536 | break 2 | |
24537 | fi | |
24538 | done | |
24539 | done | |
24540 | ||
2b5f62a0 VZ |
24541 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24542 | ;; | |
24543 | esac | |
24544 | fi | |
e6cc62c6 VS |
24545 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24546 | ||
2b5f62a0 | 24547 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24548 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24549 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24550 | else |
e6cc62c6 VS |
24551 | echo "$as_me:$LINENO: result: no" >&5 |
24552 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24553 | fi |
24554 | ||
24555 | fi | |
24556 | ||
24557 | if test "$PKG_CONFIG" = "no" ; then | |
24558 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24559 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24560 | echo "*** to the full path to pkg-config." | |
24561 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24562 | else | |
24563 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24564 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24565 | echo "$as_me:$LINENO: checking for pangox" >&5 |
24566 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24567 | |
24568 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
24569 | echo "$as_me:$LINENO: result: yes" >&5 |
24570 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24571 | succeeded=yes |
24572 | ||
e6cc62c6 VS |
24573 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
24574 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24575 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
24576 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
24577 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 24578 | |
e6cc62c6 VS |
24579 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
24580 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24581 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
24582 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
24583 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
24584 | else |
24585 | PANGOX_CFLAGS="" | |
24586 | PANGOX_LIBS="" | |
e6cc62c6 | 24587 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24588 | ## do set a variable so people can do so. |
24589 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 24590 | |
2b5f62a0 VZ |
24591 | fi |
24592 | ||
e6cc62c6 VS |
24593 | |
24594 | ||
2b5f62a0 VZ |
24595 | else |
24596 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24597 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24598 | fi | |
24599 | fi | |
24600 | ||
24601 | if test $succeeded = yes; then | |
e6cc62c6 | 24602 | |
2b5f62a0 | 24603 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 24604 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 24605 | |
2b5f62a0 | 24606 | else |
e6cc62c6 VS |
24607 | |
24608 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
24609 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
24610 | { (exit 1); exit 1; }; } | |
24611 | ||
24612 | ||
2b5f62a0 VZ |
24613 | fi |
24614 | ||
e6cc62c6 | 24615 | |
2b5f62a0 VZ |
24616 | succeeded=no |
24617 | ||
24618 | if test -z "$PKG_CONFIG"; then | |
24619 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24620 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24623 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24625 | else |
e6cc62c6 VS |
24626 | case $PKG_CONFIG in |
24627 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24628 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24629 | ;; | |
2b5f62a0 | 24630 | *) |
e6cc62c6 VS |
24631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24632 | for as_dir in $PATH | |
24633 | do | |
24634 | IFS=$as_save_IFS | |
24635 | test -z "$as_dir" && as_dir=. | |
24636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24638 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24640 | break 2 | |
24641 | fi | |
24642 | done | |
24643 | done | |
24644 | ||
2b5f62a0 VZ |
24645 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24646 | ;; | |
24647 | esac | |
24648 | fi | |
e6cc62c6 VS |
24649 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24650 | ||
2b5f62a0 | 24651 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24652 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24653 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24654 | else |
e6cc62c6 VS |
24655 | echo "$as_me:$LINENO: result: no" >&5 |
24656 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24657 | fi |
24658 | ||
24659 | fi | |
24660 | ||
24661 | if test "$PKG_CONFIG" = "no" ; then | |
24662 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24663 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24664 | echo "*** to the full path to pkg-config." | |
24665 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24666 | else | |
24667 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24668 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24669 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
24670 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24671 | |
24672 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
24673 | echo "$as_me:$LINENO: result: yes" >&5 |
24674 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24675 | succeeded=yes |
24676 | ||
e6cc62c6 VS |
24677 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
24678 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24679 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
24680 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
24681 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 24682 | |
e6cc62c6 VS |
24683 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
24684 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24685 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
24686 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
24687 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
24688 | else |
24689 | PANGOFT2_CFLAGS="" | |
24690 | PANGOFT2_LIBS="" | |
e6cc62c6 | 24691 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24692 | ## do set a variable so people can do so. |
24693 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 24694 | |
2b5f62a0 VZ |
24695 | fi |
24696 | ||
e6cc62c6 VS |
24697 | |
24698 | ||
2b5f62a0 VZ |
24699 | else |
24700 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24701 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24702 | fi | |
24703 | fi | |
24704 | ||
24705 | if test $succeeded = yes; then | |
e6cc62c6 | 24706 | |
2b5f62a0 | 24707 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 24708 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 24709 | |
2b5f62a0 | 24710 | else |
e6cc62c6 VS |
24711 | |
24712 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
24713 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 24714 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
24715 | |
24716 | ||
2b5f62a0 VZ |
24717 | fi |
24718 | ||
e6cc62c6 | 24719 | |
2b5f62a0 VZ |
24720 | succeeded=no |
24721 | ||
24722 | if test -z "$PKG_CONFIG"; then | |
24723 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24724 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24727 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24729 | else |
e6cc62c6 VS |
24730 | case $PKG_CONFIG in |
24731 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24732 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24733 | ;; | |
2b5f62a0 | 24734 | *) |
e6cc62c6 VS |
24735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24736 | for as_dir in $PATH | |
24737 | do | |
24738 | IFS=$as_save_IFS | |
24739 | test -z "$as_dir" && as_dir=. | |
24740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24742 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24744 | break 2 | |
24745 | fi | |
24746 | done | |
24747 | done | |
24748 | ||
2b5f62a0 VZ |
24749 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24750 | ;; | |
24751 | esac | |
24752 | fi | |
e6cc62c6 VS |
24753 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24754 | ||
2b5f62a0 | 24755 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24756 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24757 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24758 | else |
e6cc62c6 VS |
24759 | echo "$as_me:$LINENO: result: no" >&5 |
24760 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24761 | fi |
24762 | ||
24763 | fi | |
24764 | ||
24765 | if test "$PKG_CONFIG" = "no" ; then | |
24766 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24767 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24768 | echo "*** to the full path to pkg-config." | |
24769 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24770 | else | |
24771 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24772 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24773 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
24774 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24775 | |
24776 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
24777 | echo "$as_me:$LINENO: result: yes" >&5 |
24778 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24779 | succeeded=yes |
24780 | ||
e6cc62c6 VS |
24781 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
24782 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24783 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
24784 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
24785 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 24786 | |
e6cc62c6 VS |
24787 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
24788 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24789 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
24790 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
24791 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
24792 | else |
24793 | PANGOXFT_CFLAGS="" | |
24794 | PANGOXFT_LIBS="" | |
e6cc62c6 | 24795 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24796 | ## do set a variable so people can do so. |
24797 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 24798 | |
2b5f62a0 VZ |
24799 | fi |
24800 | ||
e6cc62c6 VS |
24801 | |
24802 | ||
2b5f62a0 VZ |
24803 | else |
24804 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24805 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24806 | fi | |
24807 | fi | |
24808 | ||
24809 | if test $succeeded = yes; then | |
e6cc62c6 | 24810 | |
2b5f62a0 | 24811 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 24812 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 24813 | |
2b5f62a0 | 24814 | else |
e6cc62c6 VS |
24815 | |
24816 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
24817 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
24818 | ||
24819 | ||
2b5f62a0 VZ |
24820 | fi |
24821 | ||
24822 | fi | |
24823 | ||
24824 | wxUSE_UNIVERSAL="yes" | |
24825 | ||
24826 | if test "$wxUSE_NANOX" = "yes"; then | |
24827 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 24828 | 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 |
24829 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
24830 | else | |
93a543aa | 24831 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
24832 | fi |
24833 | ||
24834 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
24835 | TOOLKIT=X11 | |
24836 | GUIDIST=X11_DIST | |
24837 | fi | |
24838 | ||
21d1c967 GD |
24839 | if test "$wxUSE_MOTIF" = 1; then |
24840 | if test "$no_x" = yes; then | |
24841 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
24842 | |
24843 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24844 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 24845 | _ACEOF |
21d1c967 GD |
24846 | |
24847 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24848 | else | |
24849 | if test -n "$x_includes"; then | |
24850 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
24851 | fi |
24852 | ||
21d1c967 GD |
24853 | # It would also be nice to do this for all -L options, not just this one. |
24854 | if test -n "$x_libraries"; then | |
24855 | X_LIBS="$X_LIBS -L$x_libraries" | |
24856 | # For Solaris; some versions of Sun CC require a space after -R and | |
24857 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 24858 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 24859 | "SunOS 5"*) |
e6cc62c6 VS |
24860 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
24861 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24862 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24863 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24864 | /* confdefs.h. */ |
24865 | _ACEOF | |
24866 | cat confdefs.h >>conftest.$ac_ext | |
24867 | cat >>conftest.$ac_ext <<_ACEOF | |
24868 | /* end confdefs.h. */ | |
24869 | ||
24870 | int | |
24871 | main () | |
24872 | { | |
21d1c967 | 24873 | |
e6cc62c6 VS |
24874 | ; |
24875 | return 0; | |
24876 | } | |
24877 | _ACEOF | |
24878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24880 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24881 | ac_status=$? |
32ddf007 VS |
24882 | grep -v '^ *+' conftest.er1 >conftest.err |
24883 | rm -f conftest.er1 | |
24884 | cat conftest.err >&5 | |
e6cc62c6 VS |
24885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24886 | (exit $ac_status); } && | |
e1293dcf | 24887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24889 | (eval $ac_try) 2>&5 | |
24890 | ac_status=$? | |
24891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24892 | (exit $ac_status); }; } && | |
24893 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24895 | (eval $ac_try) 2>&5 | |
24896 | ac_status=$? | |
24897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24898 | (exit $ac_status); }; }; then | |
21d1c967 | 24899 | ac_R_nospace=yes |
698dcdb6 | 24900 | else |
e6cc62c6 VS |
24901 | echo "$as_me: failed program was:" >&5 |
24902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24903 | ||
24904 | ac_R_nospace=no | |
10f2d63a | 24905 | fi |
32ddf007 VS |
24906 | rm -f conftest.err conftest.$ac_objext \ |
24907 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24908 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
24909 | echo "$as_me:$LINENO: result: no" >&5 |
24910 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24911 | X_LIBS="$X_LIBS -R$x_libraries" |
24912 | else | |
24913 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 24914 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24915 | /* confdefs.h. */ |
24916 | _ACEOF | |
24917 | cat confdefs.h >>conftest.$ac_ext | |
24918 | cat >>conftest.$ac_ext <<_ACEOF | |
24919 | /* end confdefs.h. */ | |
24920 | ||
24921 | int | |
24922 | main () | |
24923 | { | |
f0c87536 | 24924 | |
e6cc62c6 VS |
24925 | ; |
24926 | return 0; | |
24927 | } | |
24928 | _ACEOF | |
24929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24931 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24932 | ac_status=$? |
32ddf007 VS |
24933 | grep -v '^ *+' conftest.er1 >conftest.err |
24934 | rm -f conftest.er1 | |
24935 | cat conftest.err >&5 | |
e6cc62c6 VS |
24936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24937 | (exit $ac_status); } && | |
e1293dcf | 24938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
24939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24940 | (eval $ac_try) 2>&5 | |
24941 | ac_status=$? | |
24942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24943 | (exit $ac_status); }; } && | |
24944 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24946 | (eval $ac_try) 2>&5 | |
24947 | ac_status=$? | |
24948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24949 | (exit $ac_status); }; }; then | |
21d1c967 GD |
24950 | ac_R_space=yes |
24951 | else | |
e6cc62c6 VS |
24952 | echo "$as_me: failed program was:" >&5 |
24953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24954 | ||
24955 | ac_R_space=no | |
21d1c967 | 24956 | fi |
32ddf007 VS |
24957 | rm -f conftest.err conftest.$ac_objext \ |
24958 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24959 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
24960 | echo "$as_me:$LINENO: result: yes" >&5 |
24961 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
24962 | X_LIBS="$X_LIBS -R $x_libraries" |
24963 | else | |
e6cc62c6 VS |
24964 | echo "$as_me:$LINENO: result: neither works" >&5 |
24965 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
24966 | fi |
24967 | fi | |
e6cc62c6 | 24968 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
24969 | esac |
24970 | fi | |
90dd450c | 24971 | |
21d1c967 GD |
24972 | # Check for system-dependent libraries X programs must link with. |
24973 | # Do this before checking for the system-independent R6 libraries | |
24974 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24975 | ||
24976 | if test "$ISC" = yes; then | |
24977 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24978 | else | |
e6cc62c6 VS |
24979 | # Martyn Johnson says this is needed for Ultrix, if the X |
24980 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 24981 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
24982 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
24983 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24984 | /* confdefs.h. */ |
24985 | _ACEOF | |
24986 | cat confdefs.h >>conftest.$ac_ext | |
24987 | cat >>conftest.$ac_ext <<_ACEOF | |
24988 | /* end confdefs.h. */ | |
24989 | ||
247f5006 | 24990 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24991 | #ifdef __cplusplus |
24992 | extern "C" | |
24993 | #endif | |
247f5006 | 24994 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24995 | builtin and then its argument prototype would still apply. */ |
24996 | char XOpenDisplay (); | |
24997 | int | |
24998 | main () | |
24999 | { | |
25000 | XOpenDisplay (); | |
25001 | ; | |
25002 | return 0; | |
25003 | } | |
25004 | _ACEOF | |
25005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25007 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25008 | ac_status=$? |
32ddf007 VS |
25009 | grep -v '^ *+' conftest.er1 >conftest.err |
25010 | rm -f conftest.er1 | |
25011 | cat conftest.err >&5 | |
e6cc62c6 VS |
25012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25013 | (exit $ac_status); } && | |
e1293dcf | 25014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25016 | (eval $ac_try) 2>&5 | |
25017 | ac_status=$? | |
25018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25019 | (exit $ac_status); }; } && | |
25020 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25022 | (eval $ac_try) 2>&5 | |
25023 | ac_status=$? | |
25024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25025 | (exit $ac_status); }; }; then | |
25026 | : | |
25027 | else | |
25028 | echo "$as_me: failed program was:" >&5 | |
25029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25030 | |
e6cc62c6 VS |
25031 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
25032 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25033 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25035 | else |
e6cc62c6 VS |
25036 | ac_check_lib_save_LIBS=$LIBS |
25037 | LIBS="-ldnet $LIBS" | |
25038 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25039 | /* confdefs.h. */ |
25040 | _ACEOF | |
25041 | cat confdefs.h >>conftest.$ac_ext | |
25042 | cat >>conftest.$ac_ext <<_ACEOF | |
25043 | /* end confdefs.h. */ | |
a0b9e27f | 25044 | |
e6cc62c6 VS |
25045 | /* Override any gcc2 internal prototype to avoid an error. */ |
25046 | #ifdef __cplusplus | |
25047 | extern "C" | |
25048 | #endif | |
25049 | /* We use char because int might match the return type of a gcc2 | |
25050 | builtin and then its argument prototype would still apply. */ | |
25051 | char dnet_ntoa (); | |
25052 | int | |
25053 | main () | |
25054 | { | |
25055 | dnet_ntoa (); | |
25056 | ; | |
25057 | return 0; | |
25058 | } | |
25059 | _ACEOF | |
25060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25062 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25063 | ac_status=$? |
32ddf007 VS |
25064 | grep -v '^ *+' conftest.er1 >conftest.err |
25065 | rm -f conftest.er1 | |
25066 | cat conftest.err >&5 | |
e6cc62c6 VS |
25067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25068 | (exit $ac_status); } && | |
e1293dcf | 25069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25071 | (eval $ac_try) 2>&5 | |
25072 | ac_status=$? | |
25073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25074 | (exit $ac_status); }; } && | |
25075 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25077 | (eval $ac_try) 2>&5 | |
25078 | ac_status=$? | |
25079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25080 | (exit $ac_status); }; }; then | |
25081 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25082 | else | |
25083 | echo "$as_me: failed program was:" >&5 | |
25084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25085 | ||
25086 | ac_cv_lib_dnet_dnet_ntoa=no | |
25087 | fi | |
32ddf007 VS |
25088 | rm -f conftest.err conftest.$ac_objext \ |
25089 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25090 | LIBS=$ac_check_lib_save_LIBS |
25091 | fi | |
25092 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25093 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25094 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 25095 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 25096 | fi |
0fb0dd83 | 25097 | |
21d1c967 | 25098 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
25099 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
25100 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25101 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25103 | else |
e6cc62c6 | 25104 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25105 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 25106 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25107 | /* confdefs.h. */ |
25108 | _ACEOF | |
25109 | cat confdefs.h >>conftest.$ac_ext | |
25110 | cat >>conftest.$ac_ext <<_ACEOF | |
25111 | /* end confdefs.h. */ | |
25112 | ||
21d1c967 | 25113 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25114 | #ifdef __cplusplus |
25115 | extern "C" | |
25116 | #endif | |
21d1c967 | 25117 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25118 | builtin and then its argument prototype would still apply. */ |
25119 | char dnet_ntoa (); | |
25120 | int | |
25121 | main () | |
25122 | { | |
25123 | dnet_ntoa (); | |
25124 | ; | |
25125 | return 0; | |
25126 | } | |
25127 | _ACEOF | |
25128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25130 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25131 | ac_status=$? |
32ddf007 VS |
25132 | grep -v '^ *+' conftest.er1 >conftest.err |
25133 | rm -f conftest.er1 | |
25134 | cat conftest.err >&5 | |
e6cc62c6 VS |
25135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25136 | (exit $ac_status); } && | |
e1293dcf | 25137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25139 | (eval $ac_try) 2>&5 | |
25140 | ac_status=$? | |
25141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25142 | (exit $ac_status); }; } && | |
25143 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25145 | (eval $ac_try) 2>&5 | |
25146 | ac_status=$? | |
25147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25148 | (exit $ac_status); }; }; then | |
25149 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25150 | else | |
25151 | echo "$as_me: failed program was:" >&5 | |
25152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25153 | ||
25154 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25155 | fi | |
32ddf007 VS |
25156 | rm -f conftest.err conftest.$ac_objext \ |
25157 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25158 | LIBS=$ac_check_lib_save_LIBS |
25159 | fi | |
25160 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25161 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25162 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 25163 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
25164 | fi |
25165 | ||
21d1c967 | 25166 | fi |
e6cc62c6 | 25167 | fi |
32ddf007 VS |
25168 | rm -f conftest.err conftest.$ac_objext \ |
25169 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 25170 | LIBS="$ac_xsave_LIBS" |
90dd450c | 25171 | |
21d1c967 GD |
25172 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
25173 | # to get the SysV transport functions. | |
e6cc62c6 | 25174 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
25175 | # needs -lnsl. |
25176 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
25177 | # on Irix 5.2, according to T.E. Dickey. |
25178 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25179 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25180 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25181 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25182 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25184 | else | |
25185 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25186 | /* confdefs.h. */ |
25187 | _ACEOF | |
25188 | cat confdefs.h >>conftest.$ac_ext | |
25189 | cat >>conftest.$ac_ext <<_ACEOF | |
25190 | /* end confdefs.h. */ | |
32ddf007 VS |
25191 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25193 | #define gethostbyname innocuous_gethostbyname | |
25194 | ||
21d1c967 | 25195 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25196 | which can conflict with char gethostbyname (); below. |
25197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25198 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25199 | |
e6cc62c6 VS |
25200 | #ifdef __STDC__ |
25201 | # include <limits.h> | |
25202 | #else | |
25203 | # include <assert.h> | |
25204 | #endif | |
32ddf007 VS |
25205 | |
25206 | #undef gethostbyname | |
25207 | ||
21d1c967 | 25208 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25209 | #ifdef __cplusplus |
25210 | extern "C" | |
25211 | { | |
25212 | #endif | |
21d1c967 | 25213 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25214 | builtin and then its argument prototype would still apply. */ |
25215 | char gethostbyname (); | |
21d1c967 GD |
25216 | /* The GNU C library defines this for functions which it implements |
25217 | to always fail with ENOSYS. Some functions are actually named | |
25218 | something starting with __ and the normal name is an alias. */ | |
25219 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25220 | choke me | |
25221 | #else | |
e6cc62c6 VS |
25222 | char (*f) () = gethostbyname; |
25223 | #endif | |
25224 | #ifdef __cplusplus | |
25225 | } | |
21d1c967 | 25226 | #endif |
90dd450c | 25227 | |
e6cc62c6 VS |
25228 | int |
25229 | main () | |
25230 | { | |
25231 | return f != gethostbyname; | |
25232 | ; | |
25233 | return 0; | |
25234 | } | |
25235 | _ACEOF | |
25236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25238 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25239 | ac_status=$? |
32ddf007 VS |
25240 | grep -v '^ *+' conftest.er1 >conftest.err |
25241 | rm -f conftest.er1 | |
25242 | cat conftest.err >&5 | |
e6cc62c6 VS |
25243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25244 | (exit $ac_status); } && | |
e1293dcf | 25245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25247 | (eval $ac_try) 2>&5 | |
25248 | ac_status=$? | |
25249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25250 | (exit $ac_status); }; } && | |
25251 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25253 | (eval $ac_try) 2>&5 | |
25254 | ac_status=$? | |
25255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25256 | (exit $ac_status); }; }; then | |
25257 | ac_cv_func_gethostbyname=yes | |
25258 | else | |
25259 | echo "$as_me: failed program was:" >&5 | |
25260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25261 | ||
25262 | ac_cv_func_gethostbyname=no | |
25263 | fi | |
32ddf007 VS |
25264 | rm -f conftest.err conftest.$ac_objext \ |
25265 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25266 | fi |
25267 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25268 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 25269 | |
21d1c967 | 25270 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
25271 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
25272 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25273 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25275 | else |
e6cc62c6 | 25276 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25277 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 25278 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25279 | /* confdefs.h. */ |
25280 | _ACEOF | |
25281 | cat confdefs.h >>conftest.$ac_ext | |
25282 | cat >>conftest.$ac_ext <<_ACEOF | |
25283 | /* end confdefs.h. */ | |
25284 | ||
21d1c967 | 25285 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25286 | #ifdef __cplusplus |
25287 | extern "C" | |
25288 | #endif | |
21d1c967 | 25289 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25290 | builtin and then its argument prototype would still apply. */ |
25291 | char gethostbyname (); | |
25292 | int | |
25293 | main () | |
25294 | { | |
25295 | gethostbyname (); | |
25296 | ; | |
25297 | return 0; | |
25298 | } | |
25299 | _ACEOF | |
25300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25302 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25303 | ac_status=$? |
32ddf007 VS |
25304 | grep -v '^ *+' conftest.er1 >conftest.err |
25305 | rm -f conftest.er1 | |
25306 | cat conftest.err >&5 | |
e6cc62c6 VS |
25307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25308 | (exit $ac_status); } && | |
e1293dcf | 25309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25311 | (eval $ac_try) 2>&5 | |
25312 | ac_status=$? | |
25313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25314 | (exit $ac_status); }; } && | |
25315 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25317 | (eval $ac_try) 2>&5 | |
25318 | ac_status=$? | |
25319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25320 | (exit $ac_status); }; }; then | |
25321 | ac_cv_lib_nsl_gethostbyname=yes | |
25322 | else | |
25323 | echo "$as_me: failed program was:" >&5 | |
25324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25325 | ||
25326 | ac_cv_lib_nsl_gethostbyname=no | |
25327 | fi | |
32ddf007 VS |
25328 | rm -f conftest.err conftest.$ac_objext \ |
25329 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25330 | LIBS=$ac_check_lib_save_LIBS |
25331 | fi | |
25332 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25333 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25334 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 25336 | fi |
247f5006 | 25337 | |
e6cc62c6 | 25338 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 25339 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
25340 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
25341 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25343 | else |
e6cc62c6 VS |
25344 | ac_check_lib_save_LIBS=$LIBS |
25345 | LIBS="-lbsd $LIBS" | |
25346 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25347 | /* confdefs.h. */ |
25348 | _ACEOF | |
25349 | cat confdefs.h >>conftest.$ac_ext | |
25350 | cat >>conftest.$ac_ext <<_ACEOF | |
25351 | /* end confdefs.h. */ | |
25352 | ||
25353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25354 | #ifdef __cplusplus | |
25355 | extern "C" | |
25356 | #endif | |
25357 | /* We use char because int might match the return type of a gcc2 | |
25358 | builtin and then its argument prototype would still apply. */ | |
25359 | char gethostbyname (); | |
25360 | int | |
25361 | main () | |
25362 | { | |
25363 | gethostbyname (); | |
25364 | ; | |
25365 | return 0; | |
25366 | } | |
25367 | _ACEOF | |
25368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25370 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25371 | ac_status=$? |
32ddf007 VS |
25372 | grep -v '^ *+' conftest.er1 >conftest.err |
25373 | rm -f conftest.er1 | |
25374 | cat conftest.err >&5 | |
e6cc62c6 VS |
25375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25376 | (exit $ac_status); } && | |
e1293dcf | 25377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25379 | (eval $ac_try) 2>&5 | |
25380 | ac_status=$? | |
25381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25382 | (exit $ac_status); }; } && | |
25383 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25385 | (eval $ac_try) 2>&5 | |
25386 | ac_status=$? | |
25387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25388 | (exit $ac_status); }; }; then | |
25389 | ac_cv_lib_bsd_gethostbyname=yes | |
25390 | else | |
25391 | echo "$as_me: failed program was:" >&5 | |
25392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25393 | ||
25394 | ac_cv_lib_bsd_gethostbyname=no | |
25395 | fi | |
32ddf007 VS |
25396 | rm -f conftest.err conftest.$ac_objext \ |
25397 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25398 | LIBS=$ac_check_lib_save_LIBS |
25399 | fi | |
25400 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25401 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25402 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25403 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 25404 | fi |
90dd450c | 25405 | |
e6cc62c6 | 25406 | fi |
90dd450c VZ |
25407 | fi |
25408 | ||
21d1c967 GD |
25409 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
25410 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25411 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
25412 | # on later versions), says Simon Leinen: it contains gethostby* |
25413 | # variants that don't use the name server (or something). -lsocket | |
25414 | # must be given before -lnsl if both are needed. We assume that | |
25415 | # if connect needs -lnsl, so does gethostbyname. | |
25416 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25417 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25418 | if test "${ac_cv_func_connect+set}" = set; then | |
25419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25420 | else | |
25421 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25422 | /* confdefs.h. */ |
25423 | _ACEOF | |
25424 | cat confdefs.h >>conftest.$ac_ext | |
25425 | cat >>conftest.$ac_ext <<_ACEOF | |
25426 | /* end confdefs.h. */ | |
32ddf007 VS |
25427 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25429 | #define connect innocuous_connect | |
25430 | ||
21d1c967 | 25431 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25432 | which can conflict with char connect (); below. |
25433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25434 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25435 | |
e6cc62c6 VS |
25436 | #ifdef __STDC__ |
25437 | # include <limits.h> | |
25438 | #else | |
25439 | # include <assert.h> | |
25440 | #endif | |
32ddf007 VS |
25441 | |
25442 | #undef connect | |
25443 | ||
21d1c967 | 25444 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25445 | #ifdef __cplusplus |
25446 | extern "C" | |
25447 | { | |
25448 | #endif | |
21d1c967 | 25449 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25450 | builtin and then its argument prototype would still apply. */ |
25451 | char connect (); | |
21d1c967 GD |
25452 | /* The GNU C library defines this for functions which it implements |
25453 | to always fail with ENOSYS. Some functions are actually named | |
25454 | something starting with __ and the normal name is an alias. */ | |
25455 | #if defined (__stub_connect) || defined (__stub___connect) | |
25456 | choke me | |
25457 | #else | |
e6cc62c6 VS |
25458 | char (*f) () = connect; |
25459 | #endif | |
25460 | #ifdef __cplusplus | |
25461 | } | |
21d1c967 | 25462 | #endif |
90dd450c | 25463 | |
e6cc62c6 VS |
25464 | int |
25465 | main () | |
25466 | { | |
25467 | return f != connect; | |
25468 | ; | |
25469 | return 0; | |
25470 | } | |
25471 | _ACEOF | |
25472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25474 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25475 | ac_status=$? |
32ddf007 VS |
25476 | grep -v '^ *+' conftest.er1 >conftest.err |
25477 | rm -f conftest.er1 | |
25478 | cat conftest.err >&5 | |
e6cc62c6 VS |
25479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25480 | (exit $ac_status); } && | |
e1293dcf | 25481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25483 | (eval $ac_try) 2>&5 | |
25484 | ac_status=$? | |
25485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25486 | (exit $ac_status); }; } && | |
25487 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25489 | (eval $ac_try) 2>&5 | |
25490 | ac_status=$? | |
25491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25492 | (exit $ac_status); }; }; then | |
25493 | ac_cv_func_connect=yes | |
25494 | else | |
25495 | echo "$as_me: failed program was:" >&5 | |
25496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25497 | ||
25498 | ac_cv_func_connect=no | |
25499 | fi | |
32ddf007 VS |
25500 | rm -f conftest.err conftest.$ac_objext \ |
25501 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25502 | fi |
25503 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25504 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 25505 | |
21d1c967 | 25506 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
25507 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
25508 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25509 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 25511 | else |
e6cc62c6 | 25512 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25513 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25514 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25515 | /* confdefs.h. */ |
25516 | _ACEOF | |
25517 | cat confdefs.h >>conftest.$ac_ext | |
25518 | cat >>conftest.$ac_ext <<_ACEOF | |
25519 | /* end confdefs.h. */ | |
25520 | ||
21d1c967 | 25521 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25522 | #ifdef __cplusplus |
25523 | extern "C" | |
25524 | #endif | |
21d1c967 | 25525 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25526 | builtin and then its argument prototype would still apply. */ |
25527 | char connect (); | |
25528 | int | |
25529 | main () | |
25530 | { | |
25531 | connect (); | |
25532 | ; | |
25533 | return 0; | |
25534 | } | |
25535 | _ACEOF | |
25536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25538 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25539 | ac_status=$? |
32ddf007 VS |
25540 | grep -v '^ *+' conftest.er1 >conftest.err |
25541 | rm -f conftest.er1 | |
25542 | cat conftest.err >&5 | |
e6cc62c6 VS |
25543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25544 | (exit $ac_status); } && | |
e1293dcf | 25545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25547 | (eval $ac_try) 2>&5 | |
25548 | ac_status=$? | |
25549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25550 | (exit $ac_status); }; } && | |
25551 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25553 | (eval $ac_try) 2>&5 | |
25554 | ac_status=$? | |
25555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25556 | (exit $ac_status); }; }; then | |
25557 | ac_cv_lib_socket_connect=yes | |
25558 | else | |
25559 | echo "$as_me: failed program was:" >&5 | |
25560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25561 | ||
25562 | ac_cv_lib_socket_connect=no | |
25563 | fi | |
32ddf007 VS |
25564 | rm -f conftest.err conftest.$ac_objext \ |
25565 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25566 | LIBS=$ac_check_lib_save_LIBS |
25567 | fi | |
25568 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25569 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25570 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 25571 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 25572 | fi |
90dd450c | 25573 | |
21d1c967 | 25574 | fi |
90dd450c | 25575 | |
e6cc62c6 VS |
25576 | # Guillermo Gomez says -lposix is necessary on A/UX. |
25577 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25578 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25579 | if test "${ac_cv_func_remove+set}" = set; then | |
25580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25581 | else | |
25582 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25583 | /* confdefs.h. */ |
25584 | _ACEOF | |
25585 | cat confdefs.h >>conftest.$ac_ext | |
25586 | cat >>conftest.$ac_ext <<_ACEOF | |
25587 | /* end confdefs.h. */ | |
32ddf007 VS |
25588 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25590 | #define remove innocuous_remove | |
25591 | ||
21d1c967 | 25592 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25593 | which can conflict with char remove (); below. |
25594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25595 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25596 | |
e6cc62c6 VS |
25597 | #ifdef __STDC__ |
25598 | # include <limits.h> | |
25599 | #else | |
25600 | # include <assert.h> | |
25601 | #endif | |
32ddf007 VS |
25602 | |
25603 | #undef remove | |
25604 | ||
21d1c967 | 25605 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25606 | #ifdef __cplusplus |
25607 | extern "C" | |
25608 | { | |
25609 | #endif | |
21d1c967 | 25610 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25611 | builtin and then its argument prototype would still apply. */ |
25612 | char remove (); | |
21d1c967 GD |
25613 | /* The GNU C library defines this for functions which it implements |
25614 | to always fail with ENOSYS. Some functions are actually named | |
25615 | something starting with __ and the normal name is an alias. */ | |
25616 | #if defined (__stub_remove) || defined (__stub___remove) | |
25617 | choke me | |
25618 | #else | |
e6cc62c6 VS |
25619 | char (*f) () = remove; |
25620 | #endif | |
25621 | #ifdef __cplusplus | |
25622 | } | |
21d1c967 | 25623 | #endif |
90dd450c | 25624 | |
e6cc62c6 VS |
25625 | int |
25626 | main () | |
25627 | { | |
25628 | return f != remove; | |
25629 | ; | |
25630 | return 0; | |
25631 | } | |
25632 | _ACEOF | |
25633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25635 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25636 | ac_status=$? |
32ddf007 VS |
25637 | grep -v '^ *+' conftest.er1 >conftest.err |
25638 | rm -f conftest.er1 | |
25639 | cat conftest.err >&5 | |
e6cc62c6 VS |
25640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25641 | (exit $ac_status); } && | |
e1293dcf | 25642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25644 | (eval $ac_try) 2>&5 | |
25645 | ac_status=$? | |
25646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25647 | (exit $ac_status); }; } && | |
25648 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25650 | (eval $ac_try) 2>&5 | |
25651 | ac_status=$? | |
25652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25653 | (exit $ac_status); }; }; then | |
25654 | ac_cv_func_remove=yes | |
25655 | else | |
25656 | echo "$as_me: failed program was:" >&5 | |
25657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25658 | ||
25659 | ac_cv_func_remove=no | |
25660 | fi | |
32ddf007 VS |
25661 | rm -f conftest.err conftest.$ac_objext \ |
25662 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25663 | fi |
25664 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25665 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 25666 | |
21d1c967 | 25667 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
25668 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
25669 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25670 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25672 | else |
e6cc62c6 | 25673 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25674 | LIBS="-lposix $LIBS" |
e6cc62c6 | 25675 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25676 | /* confdefs.h. */ |
25677 | _ACEOF | |
25678 | cat confdefs.h >>conftest.$ac_ext | |
25679 | cat >>conftest.$ac_ext <<_ACEOF | |
25680 | /* end confdefs.h. */ | |
25681 | ||
21d1c967 | 25682 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25683 | #ifdef __cplusplus |
25684 | extern "C" | |
25685 | #endif | |
21d1c967 | 25686 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25687 | builtin and then its argument prototype would still apply. */ |
25688 | char remove (); | |
25689 | int | |
25690 | main () | |
25691 | { | |
25692 | remove (); | |
25693 | ; | |
25694 | return 0; | |
25695 | } | |
25696 | _ACEOF | |
25697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25699 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25700 | ac_status=$? |
32ddf007 VS |
25701 | grep -v '^ *+' conftest.er1 >conftest.err |
25702 | rm -f conftest.er1 | |
25703 | cat conftest.err >&5 | |
e6cc62c6 VS |
25704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25705 | (exit $ac_status); } && | |
e1293dcf | 25706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25708 | (eval $ac_try) 2>&5 | |
25709 | ac_status=$? | |
25710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25711 | (exit $ac_status); }; } && | |
25712 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25714 | (eval $ac_try) 2>&5 | |
25715 | ac_status=$? | |
25716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25717 | (exit $ac_status); }; }; then | |
25718 | ac_cv_lib_posix_remove=yes | |
25719 | else | |
25720 | echo "$as_me: failed program was:" >&5 | |
25721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25722 | ||
25723 | ac_cv_lib_posix_remove=no | |
25724 | fi | |
32ddf007 VS |
25725 | rm -f conftest.err conftest.$ac_objext \ |
25726 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25727 | LIBS=$ac_check_lib_save_LIBS |
25728 | fi | |
25729 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25730 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25731 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 25732 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 25733 | fi |
19bc6aad | 25734 | |
90dd450c | 25735 | fi |
19bc6aad | 25736 | |
21d1c967 | 25737 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
25738 | echo "$as_me:$LINENO: checking for shmat" >&5 |
25739 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25740 | if test "${ac_cv_func_shmat+set}" = set; then | |
25741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25742 | else | |
25743 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25744 | /* confdefs.h. */ |
25745 | _ACEOF | |
25746 | cat confdefs.h >>conftest.$ac_ext | |
25747 | cat >>conftest.$ac_ext <<_ACEOF | |
25748 | /* end confdefs.h. */ | |
32ddf007 VS |
25749 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25751 | #define shmat innocuous_shmat | |
25752 | ||
21d1c967 | 25753 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25754 | which can conflict with char shmat (); below. |
25755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25756 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25757 | |
e6cc62c6 VS |
25758 | #ifdef __STDC__ |
25759 | # include <limits.h> | |
25760 | #else | |
25761 | # include <assert.h> | |
25762 | #endif | |
32ddf007 VS |
25763 | |
25764 | #undef shmat | |
25765 | ||
21d1c967 | 25766 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25767 | #ifdef __cplusplus |
25768 | extern "C" | |
25769 | { | |
25770 | #endif | |
21d1c967 | 25771 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25772 | builtin and then its argument prototype would still apply. */ |
25773 | char shmat (); | |
21d1c967 GD |
25774 | /* The GNU C library defines this for functions which it implements |
25775 | to always fail with ENOSYS. Some functions are actually named | |
25776 | something starting with __ and the normal name is an alias. */ | |
25777 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25778 | choke me | |
25779 | #else | |
e6cc62c6 VS |
25780 | char (*f) () = shmat; |
25781 | #endif | |
25782 | #ifdef __cplusplus | |
25783 | } | |
21d1c967 | 25784 | #endif |
90dd450c | 25785 | |
e6cc62c6 VS |
25786 | int |
25787 | main () | |
25788 | { | |
25789 | return f != shmat; | |
25790 | ; | |
25791 | return 0; | |
25792 | } | |
25793 | _ACEOF | |
25794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25796 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25797 | ac_status=$? |
32ddf007 VS |
25798 | grep -v '^ *+' conftest.er1 >conftest.err |
25799 | rm -f conftest.er1 | |
25800 | cat conftest.err >&5 | |
e6cc62c6 VS |
25801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25802 | (exit $ac_status); } && | |
e1293dcf | 25803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25805 | (eval $ac_try) 2>&5 | |
25806 | ac_status=$? | |
25807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25808 | (exit $ac_status); }; } && | |
25809 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25811 | (eval $ac_try) 2>&5 | |
25812 | ac_status=$? | |
25813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25814 | (exit $ac_status); }; }; then | |
25815 | ac_cv_func_shmat=yes | |
25816 | else | |
25817 | echo "$as_me: failed program was:" >&5 | |
25818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25819 | ||
25820 | ac_cv_func_shmat=no | |
25821 | fi | |
32ddf007 VS |
25822 | rm -f conftest.err conftest.$ac_objext \ |
25823 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25824 | fi |
25825 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25826 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 25827 | |
21d1c967 | 25828 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
25829 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
25830 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25831 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 25833 | else |
e6cc62c6 | 25834 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 25835 | LIBS="-lipc $LIBS" |
e6cc62c6 | 25836 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25837 | /* confdefs.h. */ |
25838 | _ACEOF | |
25839 | cat confdefs.h >>conftest.$ac_ext | |
25840 | cat >>conftest.$ac_ext <<_ACEOF | |
25841 | /* end confdefs.h. */ | |
25842 | ||
5c6fa7d2 | 25843 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25844 | #ifdef __cplusplus |
25845 | extern "C" | |
25846 | #endif | |
5c6fa7d2 | 25847 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25848 | builtin and then its argument prototype would still apply. */ |
25849 | char shmat (); | |
25850 | int | |
25851 | main () | |
25852 | { | |
25853 | shmat (); | |
25854 | ; | |
25855 | return 0; | |
25856 | } | |
25857 | _ACEOF | |
25858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25860 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25861 | ac_status=$? |
32ddf007 VS |
25862 | grep -v '^ *+' conftest.er1 >conftest.err |
25863 | rm -f conftest.er1 | |
25864 | cat conftest.err >&5 | |
e6cc62c6 VS |
25865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25866 | (exit $ac_status); } && | |
e1293dcf | 25867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25869 | (eval $ac_try) 2>&5 | |
25870 | ac_status=$? | |
25871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25872 | (exit $ac_status); }; } && | |
25873 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25875 | (eval $ac_try) 2>&5 | |
25876 | ac_status=$? | |
25877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25878 | (exit $ac_status); }; }; then | |
25879 | ac_cv_lib_ipc_shmat=yes | |
25880 | else | |
25881 | echo "$as_me: failed program was:" >&5 | |
25882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25883 | ||
25884 | ac_cv_lib_ipc_shmat=no | |
25885 | fi | |
32ddf007 VS |
25886 | rm -f conftest.err conftest.$ac_objext \ |
25887 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25888 | LIBS=$ac_check_lib_save_LIBS |
25889 | fi | |
25890 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25891 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25892 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 25893 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 25894 | fi |
90dd450c | 25895 | |
90dd450c | 25896 | fi |
21d1c967 | 25897 | fi |
10f2d63a | 25898 | |
21d1c967 | 25899 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 25900 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
25901 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
25902 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25903 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25904 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25905 | # These have to be linked with before -lX11, unlike the other | |
25906 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
25907 | # John Interrante, Karl Berry |
25908 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25909 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25910 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25912 | else | |
25913 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 25914 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25915 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25916 | /* confdefs.h. */ |
25917 | _ACEOF | |
25918 | cat confdefs.h >>conftest.$ac_ext | |
25919 | cat >>conftest.$ac_ext <<_ACEOF | |
25920 | /* end confdefs.h. */ | |
25921 | ||
21d1c967 | 25922 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25923 | #ifdef __cplusplus |
25924 | extern "C" | |
25925 | #endif | |
21d1c967 | 25926 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25927 | builtin and then its argument prototype would still apply. */ |
25928 | char IceConnectionNumber (); | |
25929 | int | |
25930 | main () | |
25931 | { | |
25932 | IceConnectionNumber (); | |
25933 | ; | |
25934 | return 0; | |
25935 | } | |
25936 | _ACEOF | |
25937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25939 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25940 | ac_status=$? |
32ddf007 VS |
25941 | grep -v '^ *+' conftest.er1 >conftest.err |
25942 | rm -f conftest.er1 | |
25943 | cat conftest.err >&5 | |
e6cc62c6 VS |
25944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25945 | (exit $ac_status); } && | |
e1293dcf | 25946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
25947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25948 | (eval $ac_try) 2>&5 | |
25949 | ac_status=$? | |
25950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25951 | (exit $ac_status); }; } && | |
25952 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25954 | (eval $ac_try) 2>&5 | |
25955 | ac_status=$? | |
25956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25957 | (exit $ac_status); }; }; then | |
25958 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25959 | else | |
25960 | echo "$as_me: failed program was:" >&5 | |
25961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25962 | ||
25963 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25964 | fi | |
32ddf007 VS |
25965 | rm -f conftest.err conftest.$ac_objext \ |
25966 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25967 | LIBS=$ac_check_lib_save_LIBS |
25968 | fi | |
25969 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25970 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25971 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 25972 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 25973 | fi |
21d1c967 | 25974 | |
e6cc62c6 | 25975 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 25976 | |
10f2d63a VZ |
25977 | fi |
25978 | ||
8284b0c5 | 25979 | |
21d1c967 | 25980 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
25981 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
25982 | echo "$as_me: error: X11 not found" >&2;} | |
25983 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
25984 | fi |
25985 | ||
2b5f62a0 VZ |
25986 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
25987 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
25988 | AFMINSTALL=afminstall |
25989 | COMPILED_X_PROGRAM=0 | |
25990 | ||
e6cc62c6 VS |
25991 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25992 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
25993 | ||
21d1c967 | 25994 | ac_find_includes= |
2b5f62a0 | 25995 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
25996 | do |
25997 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25998 | ac_find_includes=$ac_dir | |
25999 | break | |
26000 | fi | |
26001 | done | |
26002 | ||
26003 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
26004 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
26005 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26006 | ||
2b5f62a0 | 26007 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
26008 | ac_path_to_include="" |
26009 | else | |
2b5f62a0 VZ |
26010 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
26011 | result=$? | |
26012 | if test $result = 0; then | |
26013 | ac_path_to_include="" | |
26014 | else | |
26015 | ac_path_to_include=" -I$ac_find_includes" | |
26016 | fi | |
dd0e4a90 VZ |
26017 | fi |
26018 | ||
26019 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 26020 | else |
e6cc62c6 | 26021 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26022 | /* confdefs.h. */ |
26023 | _ACEOF | |
26024 | cat confdefs.h >>conftest.$ac_ext | |
26025 | cat >>conftest.$ac_ext <<_ACEOF | |
26026 | /* end confdefs.h. */ | |
21d1c967 GD |
26027 | |
26028 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26029 | |
26030 | int | |
26031 | main () | |
26032 | { | |
21d1c967 GD |
26033 | |
26034 | int version; | |
26035 | version = xmUseVersion; | |
e6cc62c6 VS |
26036 | |
26037 | ; | |
26038 | return 0; | |
26039 | } | |
26040 | _ACEOF | |
26041 | rm -f conftest.$ac_objext | |
26042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26043 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26044 | ac_status=$? |
32ddf007 VS |
26045 | grep -v '^ *+' conftest.er1 >conftest.err |
26046 | rm -f conftest.er1 | |
26047 | cat conftest.err >&5 | |
e6cc62c6 VS |
26048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26049 | (exit $ac_status); } && | |
e1293dcf | 26050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26052 | (eval $ac_try) 2>&5 | |
26053 | ac_status=$? | |
26054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26055 | (exit $ac_status); }; } && | |
26056 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26058 | (eval $ac_try) 2>&5 | |
26059 | ac_status=$? | |
26060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26061 | (exit $ac_status); }; }; then | |
26062 | ||
26063 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26064 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26065 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26066 | |
10f2d63a | 26067 | else |
e6cc62c6 VS |
26068 | echo "$as_me: failed program was:" >&5 |
26069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26070 | ||
26071 | ||
26072 | echo "$as_me:$LINENO: result: no" >&5 | |
26073 | echo "${ECHO_T}no" >&6 | |
26074 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26075 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26076 | { (exit 1); exit 1; }; } | |
26077 | ||
26078 | ||
10f2d63a | 26079 | fi |
32ddf007 | 26080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 26081 | fi |
10f2d63a | 26082 | |
21d1c967 | 26083 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
26084 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
26085 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26086 | ||
21d1c967 | 26087 | ac_find_libraries= |
2b5f62a0 | 26088 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26089 | do |
26090 | for ac_extension in a so sl dylib; do | |
26091 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26092 | ac_find_libraries=$ac_dir | |
26093 | break 2 | |
26094 | fi | |
26095 | done | |
26096 | done | |
26097 | ||
26098 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
26099 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
26100 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26101 | ||
21d1c967 | 26102 | |
21d1c967 GD |
26103 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26104 | result=$? | |
26105 | if test $result = 0; then | |
26106 | ac_path_to_link="" | |
26107 | else | |
26108 | ac_path_to_link=" -L$ac_find_libraries" | |
26109 | fi | |
26110 | ||
21d1c967 | 26111 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 26112 | else |
dd0e4a90 VZ |
26113 | save_CFLAGS=$CFLAGS |
26114 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26115 | ||
e6cc62c6 | 26116 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26117 | /* confdefs.h. */ |
26118 | _ACEOF | |
26119 | cat confdefs.h >>conftest.$ac_ext | |
26120 | cat >>conftest.$ac_ext <<_ACEOF | |
26121 | /* end confdefs.h. */ | |
21d1c967 GD |
26122 | |
26123 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26124 | |
26125 | int | |
26126 | main () | |
26127 | { | |
21d1c967 GD |
26128 | |
26129 | int version; | |
26130 | version = xmUseVersion; | |
e6cc62c6 VS |
26131 | |
26132 | ; | |
26133 | return 0; | |
26134 | } | |
26135 | _ACEOF | |
26136 | rm -f conftest.$ac_objext | |
26137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26138 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26139 | ac_status=$? |
32ddf007 VS |
26140 | grep -v '^ *+' conftest.er1 >conftest.err |
26141 | rm -f conftest.er1 | |
26142 | cat conftest.err >&5 | |
e6cc62c6 VS |
26143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26144 | (exit $ac_status); } && | |
e1293dcf | 26145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26147 | (eval $ac_try) 2>&5 | |
26148 | ac_status=$? | |
26149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26150 | (exit $ac_status); }; } && | |
26151 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26153 | (eval $ac_try) 2>&5 | |
26154 | ac_status=$? | |
26155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26156 | (exit $ac_status); }; }; then | |
26157 | ||
26158 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26159 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26160 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26161 | |
d836ee96 | 26162 | else |
e6cc62c6 VS |
26163 | echo "$as_me: failed program was:" >&5 |
26164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26165 | ||
26166 | ||
26167 | echo "$as_me:$LINENO: result: no" >&5 | |
26168 | echo "${ECHO_T}no" >&6 | |
26169 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26170 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26171 | { (exit 1); exit 1; }; } | |
26172 | ||
26173 | ||
d836ee96 | 26174 | fi |
32ddf007 | 26175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
26176 | |
26177 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
26178 | fi |
26179 | fi | |
26180 | ||
e6cc62c6 VS |
26181 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
26182 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
26183 | libp_link="" |
26184 | libsm_ice_link="" | |
26185 | libs_found=0 | |
26186 | for libp in "" " -lXp"; do | |
26187 | if test "$libs_found" = "0"; then | |
7015ef3a | 26188 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 26189 | if test "$libs_found" = "0"; then |
6a30f1c8 | 26190 | save_LIBS="$LIBS" |
93a543aa | 26191 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
26192 | save_CFLAGS=$CFLAGS |
26193 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26194 | ||
e6cc62c6 | 26195 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26196 | /* confdefs.h. */ |
26197 | _ACEOF | |
26198 | cat confdefs.h >>conftest.$ac_ext | |
26199 | cat >>conftest.$ac_ext <<_ACEOF | |
26200 | /* end confdefs.h. */ | |
17234b26 | 26201 | |
6a30f1c8 MB |
26202 | #include <Xm/Xm.h> |
26203 | #include <Xm/List.h> | |
e6cc62c6 VS |
26204 | |
26205 | int | |
26206 | main () | |
26207 | { | |
6a30f1c8 MB |
26208 | |
26209 | XmString string = NULL; | |
26210 | Widget w = NULL; | |
26211 | int position = 0; | |
26212 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
26213 | |
26214 | ; | |
26215 | return 0; | |
26216 | } | |
26217 | _ACEOF | |
26218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26220 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26221 | ac_status=$? |
32ddf007 VS |
26222 | grep -v '^ *+' conftest.er1 >conftest.err |
26223 | rm -f conftest.er1 | |
26224 | cat conftest.err >&5 | |
e6cc62c6 VS |
26225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26226 | (exit $ac_status); } && | |
e1293dcf | 26227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26229 | (eval $ac_try) 2>&5 | |
26230 | ac_status=$? | |
26231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26232 | (exit $ac_status); }; } && | |
26233 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26235 | (eval $ac_try) 2>&5 | |
26236 | ac_status=$? | |
26237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26238 | (exit $ac_status); }; }; then | |
26239 | ||
6a30f1c8 MB |
26240 | libp_link="$libp" |
26241 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
26242 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
26243 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 26244 | libs_found=1 |
e6cc62c6 | 26245 | |
6a30f1c8 | 26246 | else |
e6cc62c6 VS |
26247 | echo "$as_me: failed program was:" >&5 |
26248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26249 | ||
26250 | ||
26251 | ||
6a30f1c8 | 26252 | fi |
32ddf007 VS |
26253 | rm -f conftest.err conftest.$ac_objext \ |
26254 | conftest$ac_exeext conftest.$ac_ext | |
dd0e4a90 | 26255 | |
6a30f1c8 | 26256 | LIBS="$save_LIBS" |
dd0e4a90 | 26257 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
26258 | fi |
26259 | done | |
26260 | fi | |
26261 | done | |
26262 | ||
26263 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
26264 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
26265 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26266 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26267 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26268 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
26269 | fi |
26270 | ||
da494b40 MB |
26271 | save_CFLAGS=$CFLAGS |
26272 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
26273 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
26274 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26275 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26276 | /* confdefs.h. */ |
26277 | _ACEOF | |
26278 | cat confdefs.h >>conftest.$ac_ext | |
26279 | cat >>conftest.$ac_ext <<_ACEOF | |
26280 | /* end confdefs.h. */ | |
da494b40 MB |
26281 | |
26282 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26283 | |
26284 | int | |
26285 | main () | |
26286 | { | |
da494b40 MB |
26287 | |
26288 | #if XmVersion < 2000 | |
26289 | #error "Not Motif 2" | |
26290 | #endif | |
e6cc62c6 VS |
26291 | |
26292 | ; | |
26293 | return 0; | |
26294 | } | |
26295 | _ACEOF | |
26296 | rm -f conftest.$ac_objext | |
26297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26298 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26299 | ac_status=$? |
32ddf007 VS |
26300 | grep -v '^ *+' conftest.er1 >conftest.err |
26301 | rm -f conftest.er1 | |
26302 | cat conftest.err >&5 | |
e6cc62c6 VS |
26303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26304 | (exit $ac_status); } && | |
e1293dcf | 26305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26307 | (eval $ac_try) 2>&5 | |
26308 | ac_status=$? | |
26309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26310 | (exit $ac_status); }; } && | |
26311 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26313 | (eval $ac_try) 2>&5 | |
26314 | ac_status=$? | |
26315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26316 | (exit $ac_status); }; }; then | |
26317 | ||
26318 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26319 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
26320 | _ACEOF |
26321 | ||
26322 | echo "$as_me:$LINENO: result: found" >&5 | |
26323 | echo "${ECHO_T}found" >&6 | |
da494b40 | 26324 | |
da494b40 | 26325 | else |
e6cc62c6 VS |
26326 | echo "$as_me: failed program was:" >&5 |
26327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26328 | ||
26329 | ||
26330 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26331 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
26332 | _ACEOF |
26333 | ||
26334 | echo "$as_me:$LINENO: result: not found" >&5 | |
26335 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 26336 | |
da494b40 | 26337 | fi |
32ddf007 | 26338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
26339 | CFLAGS=$save_CFLAGS |
26340 | ||
93a543aa | 26341 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 26342 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
26343 | TOOLKIT=MOTIF |
26344 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
26345 | fi |
26346 | ||
89fe663f VZ |
26347 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
26348 | if test "$wxUSE_LIBXPM" = "sys"; then | |
26349 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26350 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26351 | ||
26352 | ac_find_libraries= | |
26353 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26354 | do | |
26355 | for ac_extension in a so sl dylib; do | |
26356 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26357 | ac_find_libraries=$ac_dir | |
26358 | break 2 | |
26359 | fi | |
26360 | done | |
26361 | done | |
26362 | ||
26363 | if test "$ac_find_libraries" != "" ; then | |
26364 | ||
26365 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26366 | result=$? | |
26367 | if test $result = 0; then | |
26368 | ac_path_to_link="" | |
26369 | else | |
26370 | ac_path_to_link=" -L$ac_find_libraries" | |
26371 | fi | |
26372 | ||
26373 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26374 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26375 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26376 | ||
26377 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26378 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26379 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26381 | else | |
26382 | ||
26383 | save_CFLAGS=$CFLAGS | |
26384 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26385 | ||
26386 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26387 | /* confdefs.h. */ |
26388 | _ACEOF | |
26389 | cat confdefs.h >>conftest.$ac_ext | |
26390 | cat >>conftest.$ac_ext <<_ACEOF | |
26391 | /* end confdefs.h. */ | |
26392 | ||
26393 | #include <X11/xpm.h> | |
26394 | ||
26395 | int | |
26396 | main () | |
26397 | { | |
26398 | ||
26399 | int version; | |
26400 | version = XpmLibraryVersion(); | |
26401 | ||
26402 | ; | |
26403 | return 0; | |
26404 | } | |
26405 | _ACEOF | |
26406 | rm -f conftest.$ac_objext | |
26407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26408 | (eval $ac_compile) 2>conftest.er1 |
89fe663f | 26409 | ac_status=$? |
32ddf007 VS |
26410 | grep -v '^ *+' conftest.er1 >conftest.err |
26411 | rm -f conftest.er1 | |
26412 | cat conftest.err >&5 | |
89fe663f VZ |
26413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26414 | (exit $ac_status); } && | |
e1293dcf | 26415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26417 | (eval $ac_try) 2>&5 | |
26418 | ac_status=$? | |
26419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26420 | (exit $ac_status); }; } && | |
26421 | { ac_try='test -s conftest.$ac_objext' | |
89fe663f VZ |
26422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26423 | (eval $ac_try) 2>&5 | |
26424 | ac_status=$? | |
26425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26426 | (exit $ac_status); }; }; then | |
26427 | wx_cv_x11_xpm_h=yes | |
26428 | else | |
26429 | echo "$as_me: failed program was:" >&5 | |
26430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26431 | ||
26432 | wx_cv_x11_xpm_h=no | |
26433 | ||
26434 | fi | |
32ddf007 | 26435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26436 | |
26437 | CFLAGS=$save_CFLAGS | |
26438 | ||
26439 | ||
26440 | fi | |
26441 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26442 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26443 | ||
26444 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 26445 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
26446 | cat >>confdefs.h <<\_ACEOF |
26447 | #define wxHAVE_LIB_XPM 1 | |
26448 | _ACEOF | |
26449 | ||
26450 | else | |
26451 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26452 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26453 | fi | |
26454 | fi | |
26455 | ||
26456 | fi | |
f7f78039 | 26457 | |
89fe663f VZ |
26458 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
26459 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26460 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26462 | else | |
26463 | ac_check_lib_save_LIBS=$LIBS | |
26464 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26465 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26466 | /* confdefs.h. */ |
26467 | _ACEOF | |
26468 | cat confdefs.h >>conftest.$ac_ext | |
26469 | cat >>conftest.$ac_ext <<_ACEOF | |
26470 | /* end confdefs.h. */ | |
26471 | ||
26472 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26473 | #ifdef __cplusplus | |
26474 | extern "C" | |
26475 | #endif | |
26476 | /* We use char because int might match the return type of a gcc2 | |
26477 | builtin and then its argument prototype would still apply. */ | |
26478 | char XShapeQueryExtension (); | |
26479 | int | |
26480 | main () | |
26481 | { | |
26482 | XShapeQueryExtension (); | |
26483 | ; | |
26484 | return 0; | |
26485 | } | |
26486 | _ACEOF | |
26487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26489 | (eval $ac_link) 2>conftest.er1 |
89fe663f | 26490 | ac_status=$? |
32ddf007 VS |
26491 | grep -v '^ *+' conftest.er1 >conftest.err |
26492 | rm -f conftest.er1 | |
26493 | cat conftest.err >&5 | |
89fe663f VZ |
26494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26495 | (exit $ac_status); } && | |
e1293dcf | 26496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26498 | (eval $ac_try) 2>&5 | |
26499 | ac_status=$? | |
26500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26501 | (exit $ac_status); }; } && | |
26502 | { ac_try='test -s conftest$ac_exeext' | |
89fe663f VZ |
26503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26504 | (eval $ac_try) 2>&5 | |
26505 | ac_status=$? | |
26506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26507 | (exit $ac_status); }; }; then | |
26508 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26509 | else | |
26510 | echo "$as_me: failed program was:" >&5 | |
26511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26512 | ||
26513 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26514 | fi | |
32ddf007 VS |
26515 | rm -f conftest.err conftest.$ac_objext \ |
26516 | conftest$ac_exeext conftest.$ac_ext | |
89fe663f VZ |
26517 | LIBS=$ac_check_lib_save_LIBS |
26518 | fi | |
26519 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26520 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26521 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26522 | ||
26523 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26524 | wxHAVE_XEXT_LIB=1 | |
26525 | ||
26526 | fi | |
26527 | ||
26528 | ||
26529 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26530 | save_CFLAGS="$CFLAGS" | |
26531 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26532 | ||
26533 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 26534 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 26535 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26536 | /* confdefs.h. */ |
26537 | _ACEOF | |
26538 | cat confdefs.h >>conftest.$ac_ext | |
26539 | cat >>conftest.$ac_ext <<_ACEOF | |
26540 | /* end confdefs.h. */ | |
26541 | ||
89fe663f VZ |
26542 | #include <X11/Xlib.h> |
26543 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
26544 | |
26545 | int | |
26546 | main () | |
26547 | { | |
f7f78039 | 26548 | |
89fe663f VZ |
26549 | int dummy1, dummy2; |
26550 | XShapeQueryExtension((Display*)NULL, | |
26551 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
26552 | |
26553 | ; | |
26554 | return 0; | |
26555 | } | |
26556 | _ACEOF | |
26557 | rm -f conftest.$ac_objext | |
26558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26559 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26560 | ac_status=$? |
32ddf007 VS |
26561 | grep -v '^ *+' conftest.er1 >conftest.err |
26562 | rm -f conftest.er1 | |
26563 | cat conftest.err >&5 | |
e6cc62c6 VS |
26564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26565 | (exit $ac_status); } && | |
e1293dcf | 26566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26568 | (eval $ac_try) 2>&5 | |
26569 | ac_status=$? | |
26570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26571 | (exit $ac_status); }; } && | |
26572 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26574 | (eval $ac_try) 2>&5 | |
26575 | ac_status=$? | |
26576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26577 | (exit $ac_status); }; }; then | |
26578 | ||
89fe663f | 26579 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 26580 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
26581 | _ACEOF |
26582 | ||
89fe663f | 26583 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 26584 | echo "${ECHO_T}found" >&6 |
f7f78039 | 26585 | |
f7f78039 | 26586 | else |
e6cc62c6 VS |
26587 | echo "$as_me: failed program was:" >&5 |
26588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26589 | ||
26590 | ||
89fe663f | 26591 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
26592 | echo "${ECHO_T}not found" >&6 |
26593 | ||
f7f78039 | 26594 | fi |
32ddf007 | 26595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26596 | CFLAGS="$save_CFLAGS" |
26597 | ||
26598 | fi | |
21d1c967 GD |
26599 | fi |
26600 | ||
26601 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
26602 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
26603 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26604 | if test "$GCC" = yes; then | |
26605 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26606 | echo "${ECHO_T}gcc" >&6 | |
26607 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26608 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26609 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26610 | echo "${ECHO_T}xlc" >&6 | |
26611 | CPPFLAGS_PASCAL="-qmacpstr" | |
26612 | else | |
26613 | echo "$as_me:$LINENO: result: none" >&5 | |
26614 | echo "${ECHO_T}none" >&6 | |
26615 | fi | |
26616 | ||
26617 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 26618 | |
0c98a14e | 26619 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
26620 | TOOLKIT=MAC |
26621 | GUIDIST=MACX_DIST | |
cf615ebb | 26622 | WXBASEPORT="_carbon" |
21d1c967 GD |
26623 | fi |
26624 | ||
ac0c4cc3 DE |
26625 | if test "$wxUSE_COCOA" = 1; then |
26626 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26627 | TOOLKIT=COCOA | |
26628 | GUIDIST=COCOA_DIST | |
26629 | fi | |
26630 | ||
21d1c967 GD |
26631 | if test "$wxUSE_PM" = 1; then |
26632 | TOOLKIT=PM | |
26633 | GUIDIST=GTK_DIST | |
26634 | fi | |
26635 | ||
26636 | if test "$TOOLKIT" = "PM" ; then | |
26637 | TOOLKIT_DIR="os2" | |
26638 | else | |
26639 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26640 | fi | |
26641 | ||
26642 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26643 | ||
26644 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26645 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26646 | ||
26647 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26648 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26649 | ||
26650 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26651 | if test "$wxUSE_X11" = 1; then | |
26652 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26653 | else | |
26654 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26655 | fi | |
26656 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26657 | WIDGET_SET=univ | |
26658 | else | |
26659 | ALL_OBJECTS="\$(GUIOBJS)" | |
26660 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26661 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26662 | fi | |
26663 | ||
26664 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26665 | ||
26666 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26667 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26668 | fi | |
26669 | ||
26670 | if test "$wxUSE_HTML" = "yes"; then | |
26671 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26672 | fi | |
26673 | ||
26674 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26675 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26676 | fi | |
26677 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26678 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26679 | fi | |
26680 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26681 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26682 | fi | |
26683 | ||
26684 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26685 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 26686 | else |
21d1c967 GD |
26687 | USE_GUI=0 |
26688 | ||
26689 | TOOLKIT_DIR="base" | |
26690 | ||
26691 | if test "$USE_WIN32" = 1 ; then | |
26692 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26693 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26694 | ||
26695 | TOOLKIT="MSW" | |
26696 | else | |
26697 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26698 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26699 | fi | |
26700 | ||
26701 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26702 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26703 | ||
26704 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26705 | ||
26706 | GUIDIST="BASE_DIST" | |
26707 | DISTDIR="wxBase" | |
d836ee96 VZ |
26708 | fi |
26709 | ||
8284b0c5 | 26710 | |
8647bec6 RG |
26711 | |
26712 | ||
26713 | IODBC_C_SRC="" | |
26714 | ||
26715 | ||
26716 | if test "$TOOLKIT" != "MSW" ; then | |
26717 | ||
bb41dcbe | 26718 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 26719 | |
bb41dcbe | 26720 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
26721 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
26722 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26723 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26725 | fi | |
26726 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26727 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26728 | else | |
26729 | # Is the header compilable? | |
26730 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26731 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26732 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26733 | /* confdefs.h. */ |
26734 | _ACEOF | |
26735 | cat confdefs.h >>conftest.$ac_ext | |
26736 | cat >>conftest.$ac_ext <<_ACEOF | |
26737 | /* end confdefs.h. */ | |
26738 | $ac_includes_default | |
8647bec6 | 26739 | #include <sql.h> |
e6cc62c6 VS |
26740 | _ACEOF |
26741 | rm -f conftest.$ac_objext | |
26742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26743 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26744 | ac_status=$? |
32ddf007 VS |
26745 | grep -v '^ *+' conftest.er1 >conftest.err |
26746 | rm -f conftest.er1 | |
26747 | cat conftest.err >&5 | |
e6cc62c6 VS |
26748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26749 | (exit $ac_status); } && | |
e1293dcf | 26750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26752 | (eval $ac_try) 2>&5 | |
26753 | ac_status=$? | |
26754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26755 | (exit $ac_status); }; } && | |
26756 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26758 | (eval $ac_try) 2>&5 | |
26759 | ac_status=$? | |
26760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26761 | (exit $ac_status); }; }; then | |
26762 | ac_header_compiler=yes | |
26763 | else | |
26764 | echo "$as_me: failed program was:" >&5 | |
26765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26766 | ||
26767 | ac_header_compiler=no | |
26768 | fi | |
32ddf007 | 26769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26771 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26772 | ||
26773 | # Is the header present? | |
26774 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26775 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26776 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26777 | /* confdefs.h. */ |
26778 | _ACEOF | |
26779 | cat confdefs.h >>conftest.$ac_ext | |
26780 | cat >>conftest.$ac_ext <<_ACEOF | |
26781 | /* end confdefs.h. */ | |
26782 | #include <sql.h> | |
26783 | _ACEOF | |
26784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26786 | ac_status=$? | |
26787 | grep -v '^ *+' conftest.er1 >conftest.err | |
26788 | rm -f conftest.er1 | |
26789 | cat conftest.err >&5 | |
26790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26791 | (exit $ac_status); } >/dev/null; then | |
26792 | if test -s conftest.err; then | |
26793 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 26794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26795 | else |
26796 | ac_cpp_err= | |
26797 | fi | |
26798 | else | |
26799 | ac_cpp_err=yes | |
26800 | fi | |
26801 | if test -z "$ac_cpp_err"; then | |
26802 | ac_header_preproc=yes | |
26803 | else | |
26804 | echo "$as_me: failed program was:" >&5 | |
26805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26806 | ||
26807 | ac_header_preproc=no | |
26808 | fi | |
26809 | rm -f conftest.err conftest.$ac_ext | |
26810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26811 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26812 | ||
26813 | # So? What about this header? | |
32ddf007 VS |
26814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26815 | yes:no: ) | |
e6cc62c6 VS |
26816 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26817 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
26818 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26819 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26820 | ac_header_preproc=yes | |
e6cc62c6 | 26821 | ;; |
32ddf007 | 26822 | no:yes:* ) |
e6cc62c6 VS |
26823 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26824 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
26825 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26826 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26827 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26828 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26829 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26830 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26831 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26832 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
26833 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26834 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26835 | ( |
26836 | cat <<\_ASBOX | |
32ddf007 VS |
26837 | ## ----------------------------------------- ## |
26838 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26839 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26840 | _ASBOX |
26841 | ) | | |
26842 | sed "s/^/$as_me: WARNING: /" >&2 | |
26843 | ;; | |
26844 | esac | |
26845 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26846 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26847 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 26849 | else |
e6cc62c6 VS |
26850 | ac_cv_header_sql_h=$ac_header_preproc |
26851 | fi | |
26852 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26853 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26854 | ||
bb41dcbe VS |
26855 | fi |
26856 | if test $ac_cv_header_sql_h = yes; then | |
26857 | found_sql_h=1 | |
8647bec6 RG |
26858 | fi |
26859 | ||
e6cc62c6 | 26860 | |
bb41dcbe | 26861 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
26862 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
26863 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26864 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 26865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 26866 | else |
bb41dcbe | 26867 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 26868 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 26869 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26870 | /* confdefs.h. */ |
26871 | _ACEOF | |
26872 | cat confdefs.h >>conftest.$ac_ext | |
26873 | cat >>conftest.$ac_ext <<_ACEOF | |
26874 | /* end confdefs.h. */ | |
26875 | ||
8647bec6 | 26876 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26877 | #ifdef __cplusplus |
26878 | extern "C" | |
26879 | #endif | |
8647bec6 | 26880 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26881 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26882 | char SQLAllocEnv (); |
e6cc62c6 VS |
26883 | int |
26884 | main () | |
26885 | { | |
e46d2a18 | 26886 | SQLAllocEnv (); |
e6cc62c6 VS |
26887 | ; |
26888 | return 0; | |
26889 | } | |
26890 | _ACEOF | |
26891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26893 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26894 | ac_status=$? |
32ddf007 VS |
26895 | grep -v '^ *+' conftest.er1 >conftest.err |
26896 | rm -f conftest.er1 | |
26897 | cat conftest.err >&5 | |
e6cc62c6 VS |
26898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26899 | (exit $ac_status); } && | |
e1293dcf | 26900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26902 | (eval $ac_try) 2>&5 | |
26903 | ac_status=$? | |
26904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26905 | (exit $ac_status); }; } && | |
26906 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26908 | (eval $ac_try) 2>&5 | |
26909 | ac_status=$? | |
26910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26911 | (exit $ac_status); }; }; then | |
e46d2a18 | 26912 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 26913 | else |
e6cc62c6 VS |
26914 | echo "$as_me: failed program was:" >&5 |
26915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26916 | ||
e46d2a18 | 26917 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 26918 | fi |
32ddf007 VS |
26919 | rm -f conftest.err conftest.$ac_objext \ |
26920 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26921 | LIBS=$ac_check_lib_save_LIBS |
26922 | fi | |
e46d2a18 VS |
26923 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
26924 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26925 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26926 | ODBC_LINK=" -liodbc" |
26927 | else | |
26928 | ||
e46d2a18 VS |
26929 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
26930 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26931 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26933 | else | |
26934 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26935 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 26936 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26937 | /* confdefs.h. */ |
26938 | _ACEOF | |
26939 | cat confdefs.h >>conftest.$ac_ext | |
26940 | cat >>conftest.$ac_ext <<_ACEOF | |
26941 | /* end confdefs.h. */ | |
26942 | ||
8647bec6 | 26943 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26944 | #ifdef __cplusplus |
26945 | extern "C" | |
26946 | #endif | |
8647bec6 | 26947 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26948 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26949 | char SQLAllocEnv (); |
e6cc62c6 VS |
26950 | int |
26951 | main () | |
26952 | { | |
e46d2a18 | 26953 | SQLAllocEnv (); |
e6cc62c6 VS |
26954 | ; |
26955 | return 0; | |
26956 | } | |
26957 | _ACEOF | |
26958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26960 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26961 | ac_status=$? |
32ddf007 VS |
26962 | grep -v '^ *+' conftest.er1 >conftest.err |
26963 | rm -f conftest.er1 | |
26964 | cat conftest.err >&5 | |
e6cc62c6 VS |
26965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26966 | (exit $ac_status); } && | |
e1293dcf | 26967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
26968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26969 | (eval $ac_try) 2>&5 | |
26970 | ac_status=$? | |
26971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26972 | (exit $ac_status); }; } && | |
26973 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26975 | (eval $ac_try) 2>&5 | |
26976 | ac_status=$? | |
26977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26978 | (exit $ac_status); }; }; then | |
e46d2a18 | 26979 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 26980 | else |
e6cc62c6 VS |
26981 | echo "$as_me: failed program was:" >&5 |
26982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26983 | ||
e46d2a18 | 26984 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 26985 | fi |
32ddf007 VS |
26986 | rm -f conftest.err conftest.$ac_objext \ |
26987 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe | 26988 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 26989 | fi |
e46d2a18 VS |
26990 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
26991 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26992 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26993 | ODBC_LINK=" -lunixodbc" |
26994 | else | |
26995 | ||
e46d2a18 VS |
26996 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
26997 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26998 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
27000 | else | |
27001 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 27002 | LIBS="-lodbc $LIBS" |
bb41dcbe | 27003 | cat >conftest.$ac_ext <<_ACEOF |
bb41dcbe VS |
27004 | /* confdefs.h. */ |
27005 | _ACEOF | |
27006 | cat confdefs.h >>conftest.$ac_ext | |
27007 | cat >>conftest.$ac_ext <<_ACEOF | |
27008 | /* end confdefs.h. */ | |
e6cc62c6 | 27009 | |
bb41dcbe VS |
27010 | /* Override any gcc2 internal prototype to avoid an error. */ |
27011 | #ifdef __cplusplus | |
27012 | extern "C" | |
27013 | #endif | |
27014 | /* We use char because int might match the return type of a gcc2 | |
27015 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 27016 | char SQLAllocEnv (); |
bb41dcbe VS |
27017 | int |
27018 | main () | |
27019 | { | |
e46d2a18 | 27020 | SQLAllocEnv (); |
bb41dcbe VS |
27021 | ; |
27022 | return 0; | |
27023 | } | |
27024 | _ACEOF | |
27025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27027 | (eval $ac_link) 2>conftest.er1 |
bb41dcbe | 27028 | ac_status=$? |
32ddf007 VS |
27029 | grep -v '^ *+' conftest.er1 >conftest.err |
27030 | rm -f conftest.er1 | |
27031 | cat conftest.err >&5 | |
bb41dcbe VS |
27032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27033 | (exit $ac_status); } && | |
e1293dcf | 27034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27036 | (eval $ac_try) 2>&5 | |
27037 | ac_status=$? | |
27038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27039 | (exit $ac_status); }; } && | |
27040 | { ac_try='test -s conftest$ac_exeext' | |
bb41dcbe VS |
27041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27042 | (eval $ac_try) 2>&5 | |
27043 | ac_status=$? | |
27044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27045 | (exit $ac_status); }; }; then | |
e46d2a18 | 27046 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 27047 | else |
bb41dcbe VS |
27048 | echo "$as_me: failed program was:" >&5 |
27049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27050 | ||
e46d2a18 | 27051 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 27052 | fi |
32ddf007 VS |
27053 | rm -f conftest.err conftest.$ac_objext \ |
27054 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
27055 | LIBS=$ac_check_lib_save_LIBS |
27056 | fi | |
e46d2a18 VS |
27057 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
27058 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27059 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
27060 | ODBC_LINK=" -lodbc" |
27061 | fi | |
27062 | ||
27063 | ||
27064 | fi | |
e6cc62c6 | 27065 | |
e6cc62c6 | 27066 | |
8647bec6 | 27067 | fi |
e6cc62c6 | 27068 | |
fd3d7534 | 27069 | fi |
bb41dcbe VS |
27070 | if test "x$ODBC_LINK" = "x" ; then |
27071 | if test "$wxUSE_ODBC" = "sys" ; then | |
27072 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27073 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27074 | { (exit 1); exit 1; }; } | |
27075 | else | |
27076 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27077 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27078 | wxUSE_ODBC=builtin | |
27079 | fi | |
27080 | else | |
27081 | wxUSE_ODBC=sys | |
8647bec6 | 27082 | fi |
8647bec6 | 27083 | fi |
bb41dcbe VS |
27084 | if test "$wxUSE_ODBC" != "no" ; then |
27085 | cat >>confdefs.h <<\_ACEOF | |
27086 | #define wxUSE_ODBC 1 | |
27087 | _ACEOF | |
e6cc62c6 | 27088 | |
0bdb08e7 VS |
27089 | if test "$wxUSE_ODBC" = "builtin" ; then |
27090 | cat >>confdefs.h <<\_ACEOF | |
27091 | #define wxUSE_BUILTIN_IODBC 1 | |
27092 | _ACEOF | |
27093 | ||
27094 | fi | |
bb41dcbe VS |
27095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
27096 | ||
27097 | WXODBCFLAG="-D_IODBC_" | |
27098 | fi | |
6232543b | 27099 | fi |
21d1c967 GD |
27100 | |
27101 | if test "$wxUSE_REGEX" = "builtin" ; then | |
27102 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 27103 | fi |
21d1c967 GD |
27104 | if test "$wxUSE_ZLIB" = "builtin" ; then |
27105 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
27106 | fi |
27107 | ||
74500461 VS |
27108 | if test "$wxUSE_DISPLAY" = "yes"; then |
27109 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
27110 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
27111 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27112 | ||
27113 | ac_find_libraries= | |
27114 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27115 | do | |
27116 | for ac_extension in a so sl dylib; do | |
27117 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27118 | ac_find_libraries=$ac_dir | |
27119 | break 2 | |
27120 | fi | |
27121 | done | |
27122 | done | |
27123 | ||
27124 | if test "$ac_find_libraries" != "" ; then | |
27125 | ||
27126 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27127 | result=$? | |
27128 | if test $result = 0; then | |
27129 | ac_path_to_link="" | |
27130 | else | |
27131 | ac_path_to_link=" -L$ac_find_libraries" | |
27132 | fi | |
27133 | ||
27134 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27135 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27136 | fi | |
27137 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27138 | echo "$as_me:$LINENO: result: yes" >&5 | |
27139 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
27140 | |
27141 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27142 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27143 | ||
27144 | ac_find_libraries= | |
27145 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27146 | do | |
27147 | for ac_extension in a so sl dylib; do | |
27148 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27149 | ac_find_libraries=$ac_dir | |
27150 | break 2 | |
27151 | fi | |
27152 | done | |
27153 | done | |
27154 | ||
27155 | if test "$ac_find_libraries" != "" ; then | |
27156 | echo "$as_me:$LINENO: result: yes" >&5 | |
27157 | echo "${ECHO_T}yes" >&6 | |
27158 | ||
27159 | for ac_header in X11/extensions/xf86vmode.h | |
27160 | do | |
27161 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27166 | else | |
27167 | cat >conftest.$ac_ext <<_ACEOF | |
27168 | /* confdefs.h. */ | |
27169 | _ACEOF | |
27170 | cat confdefs.h >>conftest.$ac_ext | |
27171 | cat >>conftest.$ac_ext <<_ACEOF | |
27172 | /* end confdefs.h. */ | |
27173 | ||
27174 | #if HAVE_X11_XLIB_H | |
27175 | #include <X11/Xlib.h> | |
27176 | #endif | |
27177 | ||
27178 | ||
27179 | #include <$ac_header> | |
27180 | _ACEOF | |
27181 | rm -f conftest.$ac_objext | |
27182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27183 | (eval $ac_compile) 2>conftest.er1 |
505c8ccd | 27184 | ac_status=$? |
32ddf007 VS |
27185 | grep -v '^ *+' conftest.er1 >conftest.err |
27186 | rm -f conftest.er1 | |
27187 | cat conftest.err >&5 | |
505c8ccd VS |
27188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27189 | (exit $ac_status); } && | |
e1293dcf | 27190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27192 | (eval $ac_try) 2>&5 | |
27193 | ac_status=$? | |
27194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27195 | (exit $ac_status); }; } && | |
27196 | { ac_try='test -s conftest.$ac_objext' | |
505c8ccd VS |
27197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27198 | (eval $ac_try) 2>&5 | |
27199 | ac_status=$? | |
27200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27201 | (exit $ac_status); }; }; then | |
27202 | eval "$as_ac_Header=yes" | |
27203 | else | |
27204 | echo "$as_me: failed program was:" >&5 | |
27205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27206 | ||
27207 | eval "$as_ac_Header=no" | |
27208 | fi | |
32ddf007 | 27209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
27210 | fi |
27211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27214 | cat >>confdefs.h <<_ACEOF | |
27215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27216 | _ACEOF | |
27217 | ||
27218 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27219 | ||
27220 | fi | |
27221 | ||
27222 | done | |
27223 | ||
27224 | else | |
27225 | echo "$as_me:$LINENO: result: no" >&5 | |
27226 | echo "${ECHO_T}no" >&6 | |
27227 | fi | |
27228 | ||
74500461 VS |
27229 | else |
27230 | echo "$as_me:$LINENO: result: no" >&5 | |
27231 | echo "${ECHO_T}no" >&6 | |
27232 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
27233 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
27234 | wxUSE_DISPLAY="no" | |
27235 | fi | |
27236 | fi | |
27237 | fi | |
27238 | ||
8284b0c5 | 27239 | |
4d264332 | 27240 | USE_OPENGL=0 |
21d1c967 | 27241 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 27242 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
27243 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
27244 | elif test "$wxUSE_MSW" = 1; then | |
27245 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27246 | else | |
01aa5863 VS |
27247 | |
27248 | ||
27249 | ac_find_includes= | |
27250 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27251 | do | |
27252 | if test -f "$ac_dir/GL/gl.h"; then | |
27253 | ac_find_includes=$ac_dir | |
27254 | break | |
27255 | fi | |
27256 | done | |
27257 | ||
27258 | if test "$ac_find_includes" != "" ; then | |
27259 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27260 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
27261 | |
27262 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27263 | ac_path_to_include="" | |
27264 | else | |
27265 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27266 | result=$? | |
27267 | if test $result = 0; then | |
27268 | ac_path_to_include="" | |
27269 | else | |
27270 | ac_path_to_include=" -I$ac_find_includes" | |
27271 | fi | |
27272 | fi | |
27273 | ||
27274 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
27275 | fi |
27276 | ||
e6cc62c6 VS |
27277 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
27278 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27279 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27280 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27282 | fi | |
27283 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27284 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27285 | else | |
27286 | # Is the header compilable? | |
27287 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27288 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27289 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27290 | /* confdefs.h. */ |
27291 | _ACEOF | |
27292 | cat confdefs.h >>conftest.$ac_ext | |
27293 | cat >>conftest.$ac_ext <<_ACEOF | |
27294 | /* end confdefs.h. */ | |
27295 | $ac_includes_default | |
21d1c967 | 27296 | #include <GL/gl.h> |
e6cc62c6 VS |
27297 | _ACEOF |
27298 | rm -f conftest.$ac_objext | |
27299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27300 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27301 | ac_status=$? |
32ddf007 VS |
27302 | grep -v '^ *+' conftest.er1 >conftest.err |
27303 | rm -f conftest.er1 | |
27304 | cat conftest.err >&5 | |
e6cc62c6 VS |
27305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27306 | (exit $ac_status); } && | |
e1293dcf | 27307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27309 | (eval $ac_try) 2>&5 | |
27310 | ac_status=$? | |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27312 | (exit $ac_status); }; } && | |
27313 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27315 | (eval $ac_try) 2>&5 | |
27316 | ac_status=$? | |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27318 | (exit $ac_status); }; }; then | |
27319 | ac_header_compiler=yes | |
27320 | else | |
27321 | echo "$as_me: failed program was:" >&5 | |
27322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27323 | ||
27324 | ac_header_compiler=no | |
27325 | fi | |
32ddf007 | 27326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27327 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27328 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27329 | ||
27330 | # Is the header present? | |
27331 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27332 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27333 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27334 | /* confdefs.h. */ |
27335 | _ACEOF | |
27336 | cat confdefs.h >>conftest.$ac_ext | |
27337 | cat >>conftest.$ac_ext <<_ACEOF | |
27338 | /* end confdefs.h. */ | |
27339 | #include <GL/gl.h> | |
27340 | _ACEOF | |
27341 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27343 | ac_status=$? | |
27344 | grep -v '^ *+' conftest.er1 >conftest.err | |
27345 | rm -f conftest.er1 | |
27346 | cat conftest.err >&5 | |
27347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27348 | (exit $ac_status); } >/dev/null; then | |
27349 | if test -s conftest.err; then | |
27350 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 27351 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
27352 | else |
27353 | ac_cpp_err= | |
27354 | fi | |
27355 | else | |
27356 | ac_cpp_err=yes | |
27357 | fi | |
27358 | if test -z "$ac_cpp_err"; then | |
27359 | ac_header_preproc=yes | |
27360 | else | |
27361 | echo "$as_me: failed program was:" >&5 | |
27362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27363 | ||
27364 | ac_header_preproc=no | |
27365 | fi | |
27366 | rm -f conftest.err conftest.$ac_ext | |
27367 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27368 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27369 | ||
27370 | # So? What about this header? | |
32ddf007 VS |
27371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27372 | yes:no: ) | |
e6cc62c6 VS |
27373 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27374 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
27375 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27376 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27377 | ac_header_preproc=yes | |
e6cc62c6 | 27378 | ;; |
32ddf007 | 27379 | no:yes:* ) |
e6cc62c6 VS |
27380 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27381 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
27382 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27383 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27384 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27385 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27386 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27387 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
27388 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27389 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
27390 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27391 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
27392 | ( |
27393 | cat <<\_ASBOX | |
32ddf007 VS |
27394 | ## ----------------------------------------- ## |
27395 | ## Report this to wx-dev@lists.wxwindows.org ## | |
27396 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
27397 | _ASBOX |
27398 | ) | | |
27399 | sed "s/^/$as_me: WARNING: /" >&2 | |
27400 | ;; | |
27401 | esac | |
27402 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27403 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27404 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27406 | else | |
27407 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 27408 | fi |
e6cc62c6 VS |
27409 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
27410 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27411 | ||
698dcdb6 | 27412 | fi |
e6cc62c6 VS |
27413 | if test $ac_cv_header_GL_gl_h = yes; then |
27414 | ||
89e3b3e4 VZ |
27415 | found_gl=0 |
27416 | ||
e6cc62c6 VS |
27417 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
27418 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27419 | ||
21d1c967 | 27420 | ac_find_libraries= |
2b5f62a0 | 27421 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27422 | do |
27423 | for ac_extension in a so sl dylib; do | |
27424 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27425 | ac_find_libraries=$ac_dir | |
27426 | break 2 | |
27427 | fi | |
27428 | done | |
27429 | done | |
27430 | ||
27431 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27432 | |
21d1c967 GD |
27433 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27434 | result=$? | |
27435 | if test $result = 0; then | |
27436 | ac_path_to_link="" | |
27437 | else | |
27438 | ac_path_to_link=" -L$ac_find_libraries" | |
27439 | fi | |
27440 | ||
89e3b3e4 VZ |
27441 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
27442 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 27443 | fi |
89e3b3e4 | 27444 | |
e6cc62c6 | 27445 | |
89e3b3e4 VZ |
27446 | ac_find_libraries= |
27447 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27448 | do | |
27449 | for ac_extension in a so sl dylib; do | |
27450 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27451 | ac_find_libraries=$ac_dir | |
27452 | break 2 | |
27453 | fi | |
27454 | done | |
27455 | done | |
27456 | ||
27457 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27458 | |
89e3b3e4 VZ |
27459 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27460 | result=$? | |
27461 | if test $result = 0; then | |
27462 | ac_path_to_link="" | |
27463 | else | |
27464 | ac_path_to_link=" -L$ac_find_libraries" | |
27465 | fi | |
27466 | ||
27467 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27468 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27469 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27470 | fi | |
27471 | ||
27472 | found_gl=1 | |
27473 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
27474 | echo "$as_me:$LINENO: result: yes" >&5 |
27475 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
27476 | fi |
27477 | fi | |
27478 | ||
bb41dcbe | 27479 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
27480 | echo "$as_me:$LINENO: result: no" >&5 |
27481 | echo "${ECHO_T}no" >&6 | |
27482 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27483 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27484 | ||
21d1c967 | 27485 | ac_find_libraries= |
2b5f62a0 | 27486 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27487 | do |
27488 | for ac_extension in a so sl dylib; do | |
27489 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27490 | ac_find_libraries=$ac_dir | |
27491 | break 2 | |
27492 | fi | |
27493 | done | |
27494 | done | |
27495 | ||
27496 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27497 | |
21d1c967 GD |
27498 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27499 | result=$? | |
27500 | if test $result = 0; then | |
27501 | ac_path_to_link="" | |
27502 | else | |
27503 | ac_path_to_link=" -L$ac_find_libraries" | |
27504 | fi | |
27505 | ||
27506 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27507 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
27508 | echo "$as_me:$LINENO: result: yes" >&5 |
27509 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 27510 | else |
e6cc62c6 VS |
27511 | echo "$as_me:$LINENO: result: no" >&5 |
27512 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
27513 | fi |
27514 | fi | |
e6cc62c6 | 27515 | |
5c6fa7d2 | 27516 | fi |
52127426 | 27517 | |
8284b0c5 | 27518 | |
e6cc62c6 | 27519 | |
21d1c967 | 27520 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
27521 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
27522 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27523 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
27524 | fi |
27525 | fi | |
90dd450c | 27526 | |
21d1c967 | 27527 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 27528 | USE_OPENGL=1 |
e6cc62c6 | 27529 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27530 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 27531 | _ACEOF |
21d1c967 | 27532 | |
e6cc62c6 | 27533 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27534 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 27535 | _ACEOF |
21d1c967 | 27536 | |
520755bb | 27537 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 27538 | fi |
10f2d63a | 27539 | fi |
21d1c967 GD |
27540 | |
27541 | if test -z "$TOOLKIT_VPATH" ; then | |
27542 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 27543 | fi |
21d1c967 GD |
27544 | |
27545 | if test -n "$TOOLKIT" ; then | |
27546 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27547 | fi | |
27548 | ||
fe0895cf | 27549 | UNICODE=0 |
21d1c967 GD |
27550 | lib_unicode_suffix= |
27551 | if test "$wxUSE_UNICODE" = "yes"; then | |
27552 | lib_unicode_suffix=u | |
fe0895cf | 27553 | UNICODE=1 |
90dd450c | 27554 | fi |
698dcdb6 | 27555 | |
21d1c967 | 27556 | lib_debug_suffix= |
6c67131a | 27557 | DEBUG_FLAG=0 |
21d1c967 GD |
27558 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
27559 | lib_debug_suffix=d | |
6c67131a VS |
27560 | DEBUG_FLAG=1 |
27561 | fi | |
27562 | ||
27563 | DEBUG_INFO=0 | |
27564 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27565 | DEBUG_INFO=1 | |
21d1c967 | 27566 | fi |
698dcdb6 | 27567 | |
1cbb95a2 | 27568 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
27569 | |
27570 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27571 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
27572 | |
27573 | if test "$cross_compiling" = "yes"; then | |
27574 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27575 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 27576 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
27577 | fi |
27578 | ||
27579 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27580 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
27581 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
27582 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
27583 | |
27584 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27585 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27586 | ||
27587 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27588 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27589 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27590 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27591 | ||
27592 | case "${host}" in | |
27593 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
27594 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
27595 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
27596 | ;; |
27597 | ||
27598 | *-*-darwin* ) | |
e6cc62c6 | 27599 | |
05159a27 GD |
27600 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
27601 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27602 | ||
27603 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27604 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27605 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27606 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27607 | ||
09d3439c VZ |
27608 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
27609 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 27610 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
27611 | fi |
27612 | ;; | |
27613 | esac | |
27614 | ||
27615 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27616 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27617 | ||
27618 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27619 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27620 | ||
27621 | if test "$wxUSE_OPENGL" = "yes"; then | |
27622 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27623 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27624 | fi | |
27625 | ||
8284b0c5 MB |
27626 | |
27627 | ||
21d1c967 GD |
27628 | if test "$wxUSE_SHARED" = "yes"; then |
27629 | case "${host}" in | |
27630 | *-pc-os2_emx | *-pc-os2-emx | \ | |
27631 | *-pc-msdosdjgpp ) | |
27632 | wxUSE_SHARED=no | |
e6cc62c6 VS |
27633 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
27634 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
27635 | ;; |
27636 | esac | |
27637 | fi | |
27638 | ||
fe0895cf | 27639 | SHARED=0 |
2b5f62a0 | 27640 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 27641 | SHARED=1 |
2b5f62a0 | 27642 | |
e6cc62c6 | 27643 | |
2b5f62a0 VZ |
27644 | found_versioning=no |
27645 | ||
e6cc62c6 | 27646 | |
2b5f62a0 | 27647 | if test $found_versioning = no ; then |
e6cc62c6 VS |
27648 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
27649 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27650 | if test "${wx_cv_version_script+set}" = set; then | |
27651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 27652 | else |
e6cc62c6 | 27653 | |
2b5f62a0 VZ |
27654 | echo "VER_1 { *; };" >conftest.sym |
27655 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 27656 | |
2b5f62a0 VZ |
27657 | if { ac_try=' |
27658 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
27659 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
27660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27661 | (eval $ac_try) 2>&5 | |
27662 | ac_status=$? | |
27663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27664 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
27665 | if test -s conftest.stderr ; then |
27666 | wx_cv_version_script=no | |
27667 | else | |
27668 | wx_cv_version_script=yes | |
27669 | fi | |
27670 | else | |
27671 | wx_cv_version_script=no | |
27672 | fi | |
27673 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 27674 | |
e6cc62c6 VS |
27675 | fi |
27676 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27677 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 27678 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 27679 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
27680 | fi |
27681 | fi | |
21d1c967 | 27682 | |
21d1c967 | 27683 | |
21d1c967 | 27684 | case "${host}" in |
fe0895cf | 27685 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 27686 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 27687 | ;; |
21d1c967 GD |
27688 | |
27689 | *-*-solaris2* ) | |
27690 | if test "$GCC" = yes ; then | |
27691 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
27692 | |
27693 | saveLdflags="$LDFLAGS" | |
27694 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
27695 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
27696 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27697 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27698 | /* confdefs.h. */ |
27699 | _ACEOF | |
27700 | cat confdefs.h >>conftest.$ac_ext | |
27701 | cat >>conftest.$ac_ext <<_ACEOF | |
27702 | /* end confdefs.h. */ | |
27703 | ||
27704 | int | |
27705 | main () | |
27706 | { | |
fe0895cf | 27707 | |
e6cc62c6 VS |
27708 | ; |
27709 | return 0; | |
27710 | } | |
27711 | _ACEOF | |
27712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27714 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27715 | ac_status=$? |
32ddf007 VS |
27716 | grep -v '^ *+' conftest.er1 >conftest.err |
27717 | rm -f conftest.er1 | |
27718 | cat conftest.err >&5 | |
e6cc62c6 VS |
27719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27720 | (exit $ac_status); } && | |
e1293dcf | 27721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27723 | (eval $ac_try) 2>&5 | |
27724 | ac_status=$? | |
27725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27726 | (exit $ac_status); }; } && | |
27727 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27729 | (eval $ac_try) 2>&5 | |
27730 | ac_status=$? | |
27731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27732 | (exit $ac_status); }; }; then | |
27733 | ||
27734 | echo "$as_me:$LINENO: result: yes" >&5 | |
27735 | echo "${ECHO_T}yes" >&6 | |
27736 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27737 | ||
27738 | else | |
27739 | echo "$as_me: failed program was:" >&5 | |
27740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27741 | ||
27742 | ||
27743 | echo "$as_me:$LINENO: result: no" >&5 | |
27744 | echo "${ECHO_T}no" >&6 | |
27745 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27746 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 27747 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 27748 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27749 | /* confdefs.h. */ |
27750 | _ACEOF | |
27751 | cat confdefs.h >>conftest.$ac_ext | |
27752 | cat >>conftest.$ac_ext <<_ACEOF | |
27753 | /* end confdefs.h. */ | |
27754 | ||
27755 | int | |
27756 | main () | |
27757 | { | |
27758 | ||
27759 | ; | |
27760 | return 0; | |
27761 | } | |
27762 | _ACEOF | |
27763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27765 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27766 | ac_status=$? |
32ddf007 VS |
27767 | grep -v '^ *+' conftest.er1 >conftest.err |
27768 | rm -f conftest.er1 | |
27769 | cat conftest.err >&5 | |
e6cc62c6 VS |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27771 | (exit $ac_status); } && | |
e1293dcf | 27772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
27773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27774 | (eval $ac_try) 2>&5 | |
27775 | ac_status=$? | |
27776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27777 | (exit $ac_status); }; } && | |
27778 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27780 | (eval $ac_try) 2>&5 | |
27781 | ac_status=$? | |
27782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27783 | (exit $ac_status); }; }; then | |
27784 | ||
27785 | echo "$as_me:$LINENO: result: yes" >&5 | |
27786 | echo "${ECHO_T}yes" >&6 | |
27787 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27788 | else | |
27789 | echo "$as_me: failed program was:" >&5 | |
27790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 27791 | |
fe0895cf | 27792 | |
e6cc62c6 VS |
27793 | echo "$as_me:$LINENO: result: no" >&5 |
27794 | echo "${ECHO_T}no" >&6 | |
27795 | ||
fe0895cf | 27796 | fi |
32ddf007 VS |
27797 | rm -f conftest.err conftest.$ac_objext \ |
27798 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
27799 | |
27800 | fi | |
32ddf007 VS |
27801 | rm -f conftest.err conftest.$ac_objext \ |
27802 | conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 27803 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
27804 | else |
27805 | SHARED_LD="${CXX} -G -o" | |
27806 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 27807 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
27808 | fi |
27809 | ;; | |
0f1bc9c2 VS |
27810 | |
27811 | powerpc-*-darwin* ) | |
ef0add05 VS |
27812 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
27813 | cat <<EOF >change-install-names | |
27814 | #!/bin/sh | |
27815 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27816 | inst_cmd="install_name_tool " | |
27817 | for i in \${libnames} ; do | |
27818 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27819 | done | |
27820 | \${inst_cmd} \${3} | |
27821 | EOF | |
27822 | chmod +x change-install-names | |
0f1bc9c2 VS |
27823 | ;; |
27824 | ||
21d1c967 GD |
27825 | esac |
27826 | ||
27827 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27828 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27829 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27830 | fi | |
27831 | ||
27832 | WX_TARGET_LIBRARY_TYPE="so" | |
27833 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 27834 | fi |
10f2d63a | 27835 | |
21d1c967 GD |
27836 | if test "$wxUSE_SHARED" = "no"; then |
27837 | ||
27838 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27839 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27840 | fi | |
27841 | ||
ac0c4cc3 | 27842 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
27843 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
27844 | fi | |
27845 | ||
27846 | if test "$wxUSE_OPENGL" = "yes"; then | |
27847 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27848 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27849 | else | |
27850 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27851 | fi | |
27852 | ||
27853 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27854 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27855 | ||
27856 | WX_TARGET_LIBRARY_TYPE="a" | |
27857 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
27858 | |
27859 | STATIC_FLAG="yes" | |
27860 | else | |
27861 | STATIC_FLAG="no" | |
90dd450c | 27862 | fi |
1e487827 | 27863 | |
09d3439c | 27864 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 27865 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
27866 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
27867 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 27868 | |
21d1c967 GD |
27869 | # Extract the first word of "Rez", so it can be a program name with args. |
27870 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
27871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27873 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 27875 | else |
21d1c967 GD |
27876 | if test -n "$RESCOMP"; then |
27877 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 27878 | else |
e6cc62c6 VS |
27879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27880 | for as_dir in $PATH | |
27881 | do | |
27882 | IFS=$as_save_IFS | |
27883 | test -z "$as_dir" && as_dir=. | |
27884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27886 | ac_cv_prog_RESCOMP="Rez" | |
27887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27888 | break 2 | |
27889 | fi | |
27890 | done | |
27891 | done | |
27892 | ||
21d1c967 | 27893 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 27894 | fi |
b93d0d08 | 27895 | fi |
e6cc62c6 | 27896 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 27897 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
27898 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
27899 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 27900 | else |
e6cc62c6 VS |
27901 | echo "$as_me:$LINENO: result: no" >&5 |
27902 | echo "${ECHO_T}no" >&6 | |
90dd450c | 27903 | fi |
b93d0d08 | 27904 | |
21d1c967 GD |
27905 | # Extract the first word of "DeRez", so it can be a program name with args. |
27906 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
27907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27909 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 27911 | else |
21d1c967 GD |
27912 | if test -n "$DEREZ"; then |
27913 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 27914 | else |
e6cc62c6 VS |
27915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27916 | for as_dir in $PATH | |
27917 | do | |
27918 | IFS=$as_save_IFS | |
27919 | test -z "$as_dir" && as_dir=. | |
27920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27922 | ac_cv_prog_DEREZ="DeRez" | |
27923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27924 | break 2 | |
27925 | fi | |
27926 | done | |
27927 | done | |
27928 | ||
21d1c967 | 27929 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 27930 | fi |
90dd450c | 27931 | fi |
e6cc62c6 | 27932 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 27933 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
27934 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
27935 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 27936 | else |
e6cc62c6 VS |
27937 | echo "$as_me:$LINENO: result: no" >&5 |
27938 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 27939 | fi |
698dcdb6 | 27940 | |
36825681 GD |
27941 | # Extract the first word of "SetFile", so it can be a program name with args. |
27942 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
27943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27945 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
27947 | else |
27948 | if test -n "$SETFILE"; then | |
27949 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27950 | else | |
e6cc62c6 VS |
27951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27952 | for as_dir in $PATH | |
27953 | do | |
27954 | IFS=$as_save_IFS | |
27955 | test -z "$as_dir" && as_dir=. | |
27956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27958 | ac_cv_prog_SETFILE="SetFile" | |
27959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27960 | break 2 | |
27961 | fi | |
27962 | done | |
27963 | done | |
27964 | ||
36825681 GD |
27965 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
27966 | fi | |
27967 | fi | |
e6cc62c6 | 27968 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 27969 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
27970 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
27971 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 27972 | else |
e6cc62c6 VS |
27973 | echo "$as_me:$LINENO: result: no" >&5 |
27974 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
27975 | fi |
27976 | ||
e6cc62c6 | 27977 | |
09d3439c | 27978 | MACSETFILE="\$(SETFILE)" |
64440d77 | 27979 | |
09d3439c VZ |
27980 | if test "$wxUSE_MAC" = 1; then |
27981 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 27982 | |
09d3439c VZ |
27983 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
27984 | else | |
27985 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27986 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27987 | fi | |
64440d77 | 27988 | else |
09d3439c VZ |
27989 | MACSETFILE="@#" |
27990 | MACRESWXCONFIG="#" | |
64440d77 | 27991 | |
09d3439c | 27992 | if test "$wxUSE_PM" = 1; then |
36825681 | 27993 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
27994 | else |
27995 | MACRESCOMP="@#" | |
90dd450c | 27996 | fi |
4f14bcd8 | 27997 | fi |
10f2d63a | 27998 | |
8284b0c5 | 27999 | |
f93ca9fd | 28000 | |
e6cc62c6 VS |
28001 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
28002 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28003 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 28005 | else |
e6cc62c6 | 28006 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28007 | /* confdefs.h. */ |
28008 | _ACEOF | |
28009 | cat confdefs.h >>conftest.$ac_ext | |
28010 | cat >>conftest.$ac_ext <<_ACEOF | |
28011 | /* end confdefs.h. */ | |
28012 | $ac_includes_default | |
28013 | int | |
28014 | main () | |
28015 | { | |
28016 | if ((mode_t *) 0) | |
28017 | return 0; | |
28018 | if (sizeof (mode_t)) | |
28019 | return 0; | |
28020 | ; | |
28021 | return 0; | |
28022 | } | |
28023 | _ACEOF | |
28024 | rm -f conftest.$ac_objext | |
28025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28026 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28027 | ac_status=$? |
32ddf007 VS |
28028 | grep -v '^ *+' conftest.er1 >conftest.err |
28029 | rm -f conftest.er1 | |
28030 | cat conftest.err >&5 | |
e6cc62c6 VS |
28031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28032 | (exit $ac_status); } && | |
e1293dcf | 28033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28035 | (eval $ac_try) 2>&5 | |
28036 | ac_status=$? | |
28037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28038 | (exit $ac_status); }; } && | |
28039 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28041 | (eval $ac_try) 2>&5 | |
28042 | ac_status=$? | |
28043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28044 | (exit $ac_status); }; }; then | |
28045 | ac_cv_type_mode_t=yes | |
a0b9e27f | 28046 | else |
e6cc62c6 VS |
28047 | echo "$as_me: failed program was:" >&5 |
28048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28049 | |
e6cc62c6 | 28050 | ac_cv_type_mode_t=no |
a0b9e27f | 28051 | fi |
32ddf007 | 28052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
52127426 | 28053 | fi |
e6cc62c6 VS |
28054 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
28055 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28056 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
28057 | : |
28058 | else | |
a0b9e27f | 28059 | |
e6cc62c6 VS |
28060 | cat >>confdefs.h <<_ACEOF |
28061 | #define mode_t int | |
28062 | _ACEOF | |
8284b0c5 MB |
28063 | |
28064 | fi | |
28065 | ||
e6cc62c6 VS |
28066 | echo "$as_me:$LINENO: checking for off_t" >&5 |
28067 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28068 | if test "${ac_cv_type_off_t+set}" = set; then | |
28069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28070 | else |
e6cc62c6 | 28071 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28072 | /* confdefs.h. */ |
28073 | _ACEOF | |
28074 | cat confdefs.h >>conftest.$ac_ext | |
28075 | cat >>conftest.$ac_ext <<_ACEOF | |
28076 | /* end confdefs.h. */ | |
28077 | $ac_includes_default | |
28078 | int | |
28079 | main () | |
28080 | { | |
28081 | if ((off_t *) 0) | |
28082 | return 0; | |
28083 | if (sizeof (off_t)) | |
28084 | return 0; | |
28085 | ; | |
28086 | return 0; | |
28087 | } | |
28088 | _ACEOF | |
28089 | rm -f conftest.$ac_objext | |
28090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28091 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28092 | ac_status=$? |
32ddf007 VS |
28093 | grep -v '^ *+' conftest.er1 >conftest.err |
28094 | rm -f conftest.er1 | |
28095 | cat conftest.err >&5 | |
e6cc62c6 VS |
28096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28097 | (exit $ac_status); } && | |
e1293dcf | 28098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28100 | (eval $ac_try) 2>&5 | |
28101 | ac_status=$? | |
28102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28103 | (exit $ac_status); }; } && | |
28104 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28106 | (eval $ac_try) 2>&5 | |
28107 | ac_status=$? | |
28108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28109 | (exit $ac_status); }; }; then | |
28110 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 28111 | else |
e6cc62c6 VS |
28112 | echo "$as_me: failed program was:" >&5 |
28113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28114 | |
e6cc62c6 | 28115 | ac_cv_type_off_t=no |
8284b0c5 | 28116 | fi |
32ddf007 | 28117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 28118 | fi |
e6cc62c6 VS |
28119 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
28120 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28121 | if test $ac_cv_type_off_t = yes; then | |
28122 | : | |
247f5006 VZ |
28123 | else |
28124 | ||
e6cc62c6 | 28125 | cat >>confdefs.h <<_ACEOF |
90dd450c | 28126 | #define off_t long |
e6cc62c6 | 28127 | _ACEOF |
10f2d63a | 28128 | |
90dd450c | 28129 | fi |
10f2d63a | 28130 | |
e6cc62c6 VS |
28131 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
28132 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28133 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 28135 | else |
e6cc62c6 | 28136 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28137 | /* confdefs.h. */ |
28138 | _ACEOF | |
28139 | cat confdefs.h >>conftest.$ac_ext | |
28140 | cat >>conftest.$ac_ext <<_ACEOF | |
28141 | /* end confdefs.h. */ | |
28142 | $ac_includes_default | |
28143 | int | |
28144 | main () | |
28145 | { | |
28146 | if ((pid_t *) 0) | |
28147 | return 0; | |
28148 | if (sizeof (pid_t)) | |
28149 | return 0; | |
28150 | ; | |
28151 | return 0; | |
28152 | } | |
28153 | _ACEOF | |
28154 | rm -f conftest.$ac_objext | |
28155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28156 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28157 | ac_status=$? |
32ddf007 VS |
28158 | grep -v '^ *+' conftest.er1 >conftest.err |
28159 | rm -f conftest.er1 | |
28160 | cat conftest.err >&5 | |
e6cc62c6 VS |
28161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28162 | (exit $ac_status); } && | |
e1293dcf | 28163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28165 | (eval $ac_try) 2>&5 | |
28166 | ac_status=$? | |
28167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28168 | (exit $ac_status); }; } && | |
28169 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28171 | (eval $ac_try) 2>&5 | |
28172 | ac_status=$? | |
28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28174 | (exit $ac_status); }; }; then | |
90dd450c | 28175 | ac_cv_type_pid_t=yes |
698dcdb6 | 28176 | else |
e6cc62c6 VS |
28177 | echo "$as_me: failed program was:" >&5 |
28178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28179 | |
e6cc62c6 VS |
28180 | ac_cv_type_pid_t=no |
28181 | fi | |
32ddf007 | 28182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28183 | fi |
e6cc62c6 VS |
28184 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
28185 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28186 | if test $ac_cv_type_pid_t = yes; then | |
28187 | : | |
28188 | else | |
28189 | ||
28190 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28191 | #define pid_t int |
e6cc62c6 | 28192 | _ACEOF |
10f2d63a | 28193 | |
7b4a847f RR |
28194 | fi |
28195 | ||
e6cc62c6 VS |
28196 | echo "$as_me:$LINENO: checking for size_t" >&5 |
28197 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28198 | if test "${ac_cv_type_size_t+set}" = set; then | |
28199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 28200 | else |
e6cc62c6 | 28201 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28202 | /* confdefs.h. */ |
28203 | _ACEOF | |
28204 | cat confdefs.h >>conftest.$ac_ext | |
28205 | cat >>conftest.$ac_ext <<_ACEOF | |
28206 | /* end confdefs.h. */ | |
28207 | $ac_includes_default | |
28208 | int | |
28209 | main () | |
28210 | { | |
28211 | if ((size_t *) 0) | |
28212 | return 0; | |
28213 | if (sizeof (size_t)) | |
28214 | return 0; | |
28215 | ; | |
28216 | return 0; | |
28217 | } | |
28218 | _ACEOF | |
28219 | rm -f conftest.$ac_objext | |
28220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28221 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28222 | ac_status=$? |
32ddf007 VS |
28223 | grep -v '^ *+' conftest.er1 >conftest.err |
28224 | rm -f conftest.er1 | |
28225 | cat conftest.err >&5 | |
e6cc62c6 VS |
28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28227 | (exit $ac_status); } && | |
e1293dcf | 28228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28230 | (eval $ac_try) 2>&5 | |
28231 | ac_status=$? | |
28232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28233 | (exit $ac_status); }; } && | |
28234 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28236 | (eval $ac_try) 2>&5 | |
28237 | ac_status=$? | |
28238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28239 | (exit $ac_status); }; }; then | |
90dd450c | 28240 | ac_cv_type_size_t=yes |
18dbb1f6 | 28241 | else |
e6cc62c6 VS |
28242 | echo "$as_me: failed program was:" >&5 |
28243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28244 | |
e6cc62c6 | 28245 | ac_cv_type_size_t=no |
a0b9e27f | 28246 | fi |
32ddf007 | 28247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
28248 | fi |
28249 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28250 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28251 | if test $ac_cv_type_size_t = yes; then | |
28252 | : | |
28253 | else | |
28254 | ||
28255 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28256 | #define size_t unsigned |
e6cc62c6 | 28257 | _ACEOF |
90dd450c VZ |
28258 | |
28259 | fi | |
28260 | ||
e6cc62c6 VS |
28261 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
28262 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28263 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 28265 | else |
e6cc62c6 | 28266 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28267 | /* confdefs.h. */ |
28268 | _ACEOF | |
28269 | cat confdefs.h >>conftest.$ac_ext | |
28270 | cat >>conftest.$ac_ext <<_ACEOF | |
28271 | /* end confdefs.h. */ | |
90dd450c | 28272 | #include <sys/types.h> |
e6cc62c6 VS |
28273 | |
28274 | _ACEOF | |
90dd450c | 28275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 28276 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 28277 | ac_cv_type_uid_t=yes |
b3e8d00a | 28278 | else |
90dd450c | 28279 | ac_cv_type_uid_t=no |
b3e8d00a | 28280 | fi |
90dd450c | 28281 | rm -f conftest* |
b3e8d00a | 28282 | |
4f14bcd8 | 28283 | fi |
e6cc62c6 VS |
28284 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
28285 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 28286 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
28287 | |
28288 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28289 | #define uid_t int |
e6cc62c6 | 28290 | _ACEOF |
247f5006 | 28291 | |
e6cc62c6 VS |
28292 | |
28293 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28294 | #define gid_t int |
e6cc62c6 | 28295 | _ACEOF |
4f14bcd8 | 28296 | |
b3e8d00a | 28297 | fi |
b3e8d00a | 28298 | |
8284b0c5 MB |
28299 | |
28300 | ||
e6cc62c6 VS |
28301 | |
28302 | ac_ext=cc | |
4f14bcd8 | 28303 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28307 | ||
28308 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28309 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28310 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28312 | else | |
28313 | ||
28314 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28315 | /* confdefs.h. */ |
28316 | _ACEOF | |
28317 | cat confdefs.h >>conftest.$ac_ext | |
28318 | cat >>conftest.$ac_ext <<_ACEOF | |
28319 | /* end confdefs.h. */ | |
90dd450c | 28320 | #include <stddef.h> |
e6cc62c6 VS |
28321 | int |
28322 | main () | |
28323 | { | |
90dd450c VZ |
28324 | |
28325 | return 0; } | |
28326 | ||
28327 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28328 | ||
28329 | int bar() { | |
e6cc62c6 VS |
28330 | |
28331 | ; | |
28332 | return 0; | |
28333 | } | |
28334 | _ACEOF | |
28335 | rm -f conftest.$ac_objext | |
28336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28337 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28338 | ac_status=$? |
32ddf007 VS |
28339 | grep -v '^ *+' conftest.er1 >conftest.err |
28340 | rm -f conftest.er1 | |
28341 | cat conftest.err >&5 | |
e6cc62c6 VS |
28342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28343 | (exit $ac_status); } && | |
e1293dcf | 28344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28346 | (eval $ac_try) 2>&5 | |
28347 | ac_status=$? | |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28349 | (exit $ac_status); }; } && | |
28350 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28352 | (eval $ac_try) 2>&5 | |
28353 | ac_status=$? | |
28354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28355 | (exit $ac_status); }; }; then | |
90dd450c | 28356 | wx_cv_size_t_is_uint=no |
698dcdb6 | 28357 | else |
e6cc62c6 VS |
28358 | echo "$as_me: failed program was:" >&5 |
28359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28360 | ||
28361 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 28362 | |
247f5006 | 28363 | fi |
32ddf007 | 28364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 28365 | |
a0b9e27f | 28366 | |
e6cc62c6 VS |
28367 | fi |
28368 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28369 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 28370 | |
90dd450c | 28371 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 28372 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28373 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 28374 | _ACEOF |
698dcdb6 | 28375 | |
90dd450c | 28376 | else |
e6cc62c6 VS |
28377 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
28378 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28379 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28381 | else |
e6cc62c6 | 28382 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28383 | /* confdefs.h. */ |
28384 | _ACEOF | |
28385 | cat confdefs.h >>conftest.$ac_ext | |
28386 | cat >>conftest.$ac_ext <<_ACEOF | |
28387 | /* end confdefs.h. */ | |
90dd450c | 28388 | #include <stddef.h> |
e6cc62c6 VS |
28389 | int |
28390 | main () | |
28391 | { | |
90dd450c VZ |
28392 | |
28393 | return 0; } | |
28394 | ||
28395 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28396 | ||
28397 | int bar() { | |
e6cc62c6 VS |
28398 | |
28399 | ; | |
28400 | return 0; | |
28401 | } | |
28402 | _ACEOF | |
28403 | rm -f conftest.$ac_objext | |
28404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28405 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28406 | ac_status=$? |
32ddf007 VS |
28407 | grep -v '^ *+' conftest.er1 >conftest.err |
28408 | rm -f conftest.er1 | |
28409 | cat conftest.err >&5 | |
e6cc62c6 VS |
28410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28411 | (exit $ac_status); } && | |
e1293dcf | 28412 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28414 | (eval $ac_try) 2>&5 | |
28415 | ac_status=$? | |
28416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28417 | (exit $ac_status); }; } && | |
28418 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28420 | (eval $ac_try) 2>&5 | |
28421 | ac_status=$? | |
28422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28423 | (exit $ac_status); }; }; then | |
90dd450c | 28424 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 28425 | else |
e6cc62c6 VS |
28426 | echo "$as_me: failed program was:" >&5 |
28427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28428 | ||
28429 | wx_cv_size_t_is_ulong=yes | |
28430 | ||
247f5006 | 28431 | fi |
32ddf007 | 28432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28433 | |
e6cc62c6 VS |
28434 | fi |
28435 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28436 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 28437 | |
90dd450c | 28438 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 28439 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28440 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 28441 | _ACEOF |
4f14bcd8 GD |
28442 | |
28443 | fi | |
90dd450c | 28444 | fi |
1e487827 | 28445 | |
90dd450c | 28446 | ac_ext=c |
4f14bcd8 | 28447 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 28451 | |
5c6fa7d2 | 28452 | |
8284b0c5 | 28453 | |
e6cc62c6 VS |
28454 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
28455 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28456 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28458 | else |
e6cc62c6 VS |
28459 | |
28460 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28461 | /* confdefs.h. */ |
28462 | _ACEOF | |
28463 | cat confdefs.h >>conftest.$ac_ext | |
28464 | cat >>conftest.$ac_ext <<_ACEOF | |
28465 | /* end confdefs.h. */ | |
90dd450c | 28466 | #include <pwd.h> |
e6cc62c6 VS |
28467 | int |
28468 | main () | |
28469 | { | |
f6bcfd97 | 28470 | |
90dd450c VZ |
28471 | char *p; |
28472 | struct passwd *pw; | |
28473 | p = pw->pw_gecos; | |
e6cc62c6 VS |
28474 | |
28475 | ; | |
28476 | return 0; | |
28477 | } | |
28478 | _ACEOF | |
28479 | rm -f conftest.$ac_objext | |
28480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28481 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28482 | ac_status=$? |
32ddf007 VS |
28483 | grep -v '^ *+' conftest.er1 >conftest.err |
28484 | rm -f conftest.er1 | |
28485 | cat conftest.err >&5 | |
e6cc62c6 VS |
28486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28487 | (exit $ac_status); } && | |
e1293dcf | 28488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28490 | (eval $ac_try) 2>&5 | |
28491 | ac_status=$? | |
28492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28493 | (exit $ac_status); }; } && | |
28494 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28496 | (eval $ac_try) 2>&5 | |
28497 | ac_status=$? | |
28498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28499 | (exit $ac_status); }; }; then | |
28500 | ||
90dd450c | 28501 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 28502 | |
10f2d63a | 28503 | else |
e6cc62c6 VS |
28504 | echo "$as_me: failed program was:" >&5 |
28505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28506 | ||
28507 | ||
90dd450c | 28508 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 28509 | |
247f5006 VZ |
28510 | |
28511 | fi | |
32ddf007 | 28512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28513 | |
e6cc62c6 VS |
28514 | |
28515 | fi | |
28516 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28517 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 28518 | |
90dd450c | 28519 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 28520 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28521 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 28522 | _ACEOF |
c521c494 | 28523 | |
90dd450c | 28524 | fi |
4f14bcd8 | 28525 | |
8284b0c5 | 28526 | |
d29b553b | 28527 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 28528 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28529 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 28530 | _ACEOF |
d74f4b5a | 28531 | |
8284b0c5 | 28532 | |
d74f4b5a VZ |
28533 | WCSLEN_FOUND=0 |
28534 | WCHAR_LINK= | |
e6cc62c6 VS |
28535 | |
28536 | for ac_func in wcslen | |
7a30264c | 28537 | do |
e6cc62c6 VS |
28538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28543 | else | |
28544 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28545 | /* confdefs.h. */ |
28546 | _ACEOF | |
28547 | cat confdefs.h >>conftest.$ac_ext | |
28548 | cat >>conftest.$ac_ext <<_ACEOF | |
28549 | /* end confdefs.h. */ | |
32ddf007 VS |
28550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28552 | #define $ac_func innocuous_$ac_func | |
28553 | ||
7a30264c | 28554 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28555 | which can conflict with char $ac_func (); below. |
28556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28557 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28558 | |
e6cc62c6 VS |
28559 | #ifdef __STDC__ |
28560 | # include <limits.h> | |
28561 | #else | |
28562 | # include <assert.h> | |
28563 | #endif | |
32ddf007 VS |
28564 | |
28565 | #undef $ac_func | |
28566 | ||
4f14bcd8 | 28567 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28568 | #ifdef __cplusplus |
28569 | extern "C" | |
28570 | { | |
28571 | #endif | |
4f14bcd8 | 28572 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28573 | builtin and then its argument prototype would still apply. */ |
28574 | char $ac_func (); | |
7a30264c VZ |
28575 | /* The GNU C library defines this for functions which it implements |
28576 | to always fail with ENOSYS. Some functions are actually named | |
28577 | something starting with __ and the normal name is an alias. */ | |
28578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28579 | choke me | |
28580 | #else | |
e6cc62c6 VS |
28581 | char (*f) () = $ac_func; |
28582 | #endif | |
28583 | #ifdef __cplusplus | |
28584 | } | |
7a30264c VZ |
28585 | #endif |
28586 | ||
e6cc62c6 VS |
28587 | int |
28588 | main () | |
28589 | { | |
28590 | return f != $ac_func; | |
28591 | ; | |
28592 | return 0; | |
28593 | } | |
28594 | _ACEOF | |
28595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28597 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28598 | ac_status=$? |
32ddf007 VS |
28599 | grep -v '^ *+' conftest.er1 >conftest.err |
28600 | rm -f conftest.er1 | |
28601 | cat conftest.err >&5 | |
e6cc62c6 VS |
28602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28603 | (exit $ac_status); } && | |
e1293dcf | 28604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28606 | (eval $ac_try) 2>&5 | |
28607 | ac_status=$? | |
28608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28609 | (exit $ac_status); }; } && | |
28610 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28612 | (eval $ac_try) 2>&5 | |
28613 | ac_status=$? | |
28614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28615 | (exit $ac_status); }; }; then | |
28616 | eval "$as_ac_var=yes" | |
28617 | else | |
28618 | echo "$as_me: failed program was:" >&5 | |
28619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28620 | ||
28621 | eval "$as_ac_var=no" | |
28622 | fi | |
32ddf007 VS |
28623 | rm -f conftest.err conftest.$ac_objext \ |
28624 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28625 | fi |
28626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28629 | cat >>confdefs.h <<_ACEOF | |
28630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28631 | _ACEOF | |
d74f4b5a | 28632 | WCSLEN_FOUND=1 |
7a30264c VZ |
28633 | fi |
28634 | done | |
9d8deca0 | 28635 | |
8284b0c5 | 28636 | |
d74f4b5a | 28637 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 28638 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
28639 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
28640 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28641 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28643 | else |
e6cc62c6 | 28644 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28645 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 28646 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28647 | /* confdefs.h. */ |
28648 | _ACEOF | |
28649 | cat confdefs.h >>conftest.$ac_ext | |
28650 | cat >>conftest.$ac_ext <<_ACEOF | |
28651 | /* end confdefs.h. */ | |
28652 | ||
4f14bcd8 | 28653 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28654 | #ifdef __cplusplus |
28655 | extern "C" | |
28656 | #endif | |
4f14bcd8 | 28657 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28658 | builtin and then its argument prototype would still apply. */ |
28659 | char wcslen (); | |
28660 | int | |
28661 | main () | |
28662 | { | |
28663 | wcslen (); | |
28664 | ; | |
28665 | return 0; | |
28666 | } | |
28667 | _ACEOF | |
28668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28670 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28671 | ac_status=$? |
32ddf007 VS |
28672 | grep -v '^ *+' conftest.er1 >conftest.err |
28673 | rm -f conftest.er1 | |
28674 | cat conftest.err >&5 | |
e6cc62c6 VS |
28675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28676 | (exit $ac_status); } && | |
e1293dcf | 28677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28679 | (eval $ac_try) 2>&5 | |
28680 | ac_status=$? | |
28681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28682 | (exit $ac_status); }; } && | |
28683 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28685 | (eval $ac_try) 2>&5 | |
28686 | ac_status=$? | |
28687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28688 | (exit $ac_status); }; }; then | |
28689 | ac_cv_lib_msvcrt_wcslen=yes | |
28690 | else | |
28691 | echo "$as_me: failed program was:" >&5 | |
28692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28693 | ||
28694 | ac_cv_lib_msvcrt_wcslen=no | |
28695 | fi | |
32ddf007 VS |
28696 | rm -f conftest.err conftest.$ac_objext \ |
28697 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28698 | LIBS=$ac_check_lib_save_LIBS |
28699 | fi | |
28700 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28701 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28702 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 28703 | WCHAR_OK=1 |
d29b553b | 28704 | fi |
698dcdb6 | 28705 | |
7a30264c | 28706 | else |
e6cc62c6 VS |
28707 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
28708 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28709 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28711 | else |
e6cc62c6 | 28712 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28713 | LIBS="-lw $LIBS" |
e6cc62c6 | 28714 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28715 | /* confdefs.h. */ |
28716 | _ACEOF | |
28717 | cat confdefs.h >>conftest.$ac_ext | |
28718 | cat >>conftest.$ac_ext <<_ACEOF | |
28719 | /* end confdefs.h. */ | |
28720 | ||
4f14bcd8 | 28721 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28722 | #ifdef __cplusplus |
28723 | extern "C" | |
28724 | #endif | |
4f14bcd8 | 28725 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28726 | builtin and then its argument prototype would still apply. */ |
28727 | char wcslen (); | |
28728 | int | |
28729 | main () | |
28730 | { | |
28731 | wcslen (); | |
28732 | ; | |
28733 | return 0; | |
28734 | } | |
28735 | _ACEOF | |
28736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28738 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28739 | ac_status=$? |
32ddf007 VS |
28740 | grep -v '^ *+' conftest.er1 >conftest.err |
28741 | rm -f conftest.er1 | |
28742 | cat conftest.err >&5 | |
e6cc62c6 VS |
28743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28744 | (exit $ac_status); } && | |
e1293dcf | 28745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28747 | (eval $ac_try) 2>&5 | |
28748 | ac_status=$? | |
28749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28750 | (exit $ac_status); }; } && | |
28751 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28753 | (eval $ac_try) 2>&5 | |
28754 | ac_status=$? | |
28755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28756 | (exit $ac_status); }; }; then | |
28757 | ac_cv_lib_w_wcslen=yes | |
28758 | else | |
28759 | echo "$as_me: failed program was:" >&5 | |
28760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28761 | ||
28762 | ac_cv_lib_w_wcslen=no | |
28763 | fi | |
32ddf007 VS |
28764 | rm -f conftest.err conftest.$ac_objext \ |
28765 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28766 | LIBS=$ac_check_lib_save_LIBS |
28767 | fi | |
28768 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28769 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28770 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 28771 | |
7a30264c | 28772 | WCHAR_LINK=" -lw" |
d74f4b5a | 28773 | WCSLEN_FOUND=1 |
e6cc62c6 | 28774 | |
4f14bcd8 | 28775 | fi |
10f2d63a | 28776 | |
7a30264c | 28777 | fi |
d29b553b | 28778 | fi |
95c8801c | 28779 | |
d74f4b5a | 28780 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 28781 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28782 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 28783 | _ACEOF |
10f2d63a | 28784 | |
d74f4b5a | 28785 | fi |
52127426 | 28786 | |
e6cc62c6 VS |
28787 | |
28788 | for ac_func in wcsrtombs | |
eb4efbdc | 28789 | do |
e6cc62c6 VS |
28790 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28791 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28792 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28793 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28795 | else | |
28796 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28797 | /* confdefs.h. */ |
28798 | _ACEOF | |
28799 | cat confdefs.h >>conftest.$ac_ext | |
28800 | cat >>conftest.$ac_ext <<_ACEOF | |
28801 | /* end confdefs.h. */ | |
32ddf007 VS |
28802 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28803 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28804 | #define $ac_func innocuous_$ac_func | |
28805 | ||
eb4efbdc | 28806 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28807 | which can conflict with char $ac_func (); below. |
28808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28809 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28810 | |
e6cc62c6 VS |
28811 | #ifdef __STDC__ |
28812 | # include <limits.h> | |
28813 | #else | |
28814 | # include <assert.h> | |
28815 | #endif | |
32ddf007 VS |
28816 | |
28817 | #undef $ac_func | |
28818 | ||
eb4efbdc | 28819 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28820 | #ifdef __cplusplus |
28821 | extern "C" | |
28822 | { | |
28823 | #endif | |
4f14bcd8 | 28824 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28825 | builtin and then its argument prototype would still apply. */ |
28826 | char $ac_func (); | |
10f2d63a VZ |
28827 | /* The GNU C library defines this for functions which it implements |
28828 | to always fail with ENOSYS. Some functions are actually named | |
28829 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 28830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
28831 | choke me |
28832 | #else | |
e6cc62c6 VS |
28833 | char (*f) () = $ac_func; |
28834 | #endif | |
28835 | #ifdef __cplusplus | |
28836 | } | |
10f2d63a VZ |
28837 | #endif |
28838 | ||
e6cc62c6 VS |
28839 | int |
28840 | main () | |
28841 | { | |
28842 | return f != $ac_func; | |
28843 | ; | |
28844 | return 0; | |
28845 | } | |
28846 | _ACEOF | |
28847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28849 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28850 | ac_status=$? |
32ddf007 VS |
28851 | grep -v '^ *+' conftest.er1 >conftest.err |
28852 | rm -f conftest.er1 | |
28853 | cat conftest.err >&5 | |
e6cc62c6 VS |
28854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28855 | (exit $ac_status); } && | |
e1293dcf | 28856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28858 | (eval $ac_try) 2>&5 | |
28859 | ac_status=$? | |
28860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28861 | (exit $ac_status); }; } && | |
28862 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28864 | (eval $ac_try) 2>&5 | |
28865 | ac_status=$? | |
28866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28867 | (exit $ac_status); }; }; then | |
28868 | eval "$as_ac_var=yes" | |
28869 | else | |
28870 | echo "$as_me: failed program was:" >&5 | |
28871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28872 | ||
28873 | eval "$as_ac_var=no" | |
28874 | fi | |
32ddf007 VS |
28875 | rm -f conftest.err conftest.$ac_objext \ |
28876 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28877 | fi |
28878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28879 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28880 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28881 | cat >>confdefs.h <<_ACEOF | |
28882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28883 | _ACEOF | |
270a909e | 28884 | |
4f14bcd8 | 28885 | fi |
247f5006 | 28886 | done |
1e487827 | 28887 | |
af15babd | 28888 | else |
e6cc62c6 VS |
28889 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
28890 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 28891 | fi |
52127426 | 28892 | |
8284b0c5 | 28893 | |
e6cc62c6 VS |
28894 | |
28895 | ac_ext=cc | |
247f5006 | 28896 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28900 | ||
af15babd | 28901 | |
247f5006 VZ |
28902 | |
28903 | for ac_func in vsnprintf | |
28904 | do | |
e6cc62c6 VS |
28905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28910 | else | |
28911 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28912 | /* confdefs.h. */ |
28913 | _ACEOF | |
28914 | cat confdefs.h >>conftest.$ac_ext | |
28915 | cat >>conftest.$ac_ext <<_ACEOF | |
28916 | /* end confdefs.h. */ | |
32ddf007 VS |
28917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28919 | #define $ac_func innocuous_$ac_func | |
28920 | ||
247f5006 | 28921 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28922 | which can conflict with char $ac_func (); below. |
28923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28924 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28925 | |
e6cc62c6 VS |
28926 | #ifdef __STDC__ |
28927 | # include <limits.h> | |
28928 | #else | |
28929 | # include <assert.h> | |
28930 | #endif | |
32ddf007 VS |
28931 | |
28932 | #undef $ac_func | |
28933 | ||
247f5006 VZ |
28934 | /* Override any gcc2 internal prototype to avoid an error. */ |
28935 | #ifdef __cplusplus | |
28936 | extern "C" | |
e6cc62c6 | 28937 | { |
247f5006 VZ |
28938 | #endif |
28939 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28940 | builtin and then its argument prototype would still apply. */ |
28941 | char $ac_func (); | |
247f5006 VZ |
28942 | /* The GNU C library defines this for functions which it implements |
28943 | to always fail with ENOSYS. Some functions are actually named | |
28944 | something starting with __ and the normal name is an alias. */ | |
28945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28946 | choke me | |
28947 | #else | |
e6cc62c6 VS |
28948 | char (*f) () = $ac_func; |
28949 | #endif | |
28950 | #ifdef __cplusplus | |
28951 | } | |
247f5006 | 28952 | #endif |
af15babd | 28953 | |
e6cc62c6 VS |
28954 | int |
28955 | main () | |
28956 | { | |
28957 | return f != $ac_func; | |
28958 | ; | |
28959 | return 0; | |
28960 | } | |
28961 | _ACEOF | |
28962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28964 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28965 | ac_status=$? |
32ddf007 VS |
28966 | grep -v '^ *+' conftest.er1 >conftest.err |
28967 | rm -f conftest.er1 | |
28968 | cat conftest.err >&5 | |
e6cc62c6 VS |
28969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28970 | (exit $ac_status); } && | |
e1293dcf | 28971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
28972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28973 | (eval $ac_try) 2>&5 | |
28974 | ac_status=$? | |
28975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28976 | (exit $ac_status); }; } && | |
28977 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28979 | (eval $ac_try) 2>&5 | |
28980 | ac_status=$? | |
28981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28982 | (exit $ac_status); }; }; then | |
28983 | eval "$as_ac_var=yes" | |
28984 | else | |
28985 | echo "$as_me: failed program was:" >&5 | |
28986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28987 | ||
28988 | eval "$as_ac_var=no" | |
28989 | fi | |
32ddf007 VS |
28990 | rm -f conftest.err conftest.$ac_objext \ |
28991 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28992 | fi |
28993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28996 | cat >>confdefs.h <<_ACEOF | |
28997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28998 | _ACEOF | |
52127426 | 28999 | |
5c6fa7d2 | 29000 | fi |
247f5006 | 29001 | done |
8284b0c5 | 29002 | |
4f14bcd8 | 29003 | |
8d90d2f2 | 29004 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
29005 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
29006 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29007 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 29009 | else |
e6cc62c6 VS |
29010 | |
29011 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29012 | /* confdefs.h. */ |
29013 | _ACEOF | |
29014 | cat confdefs.h >>conftest.$ac_ext | |
29015 | cat >>conftest.$ac_ext <<_ACEOF | |
29016 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
29017 | |
29018 | #include <stdio.h> | |
29019 | #include <stdarg.h> | |
e6cc62c6 VS |
29020 | |
29021 | int | |
29022 | main () | |
29023 | { | |
8d90d2f2 VZ |
29024 | |
29025 | char *buf; | |
29026 | va_list ap; | |
29027 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
29028 | |
29029 | ; | |
29030 | return 0; | |
29031 | } | |
29032 | _ACEOF | |
29033 | rm -f conftest.$ac_objext | |
29034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29035 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29036 | ac_status=$? |
32ddf007 VS |
29037 | grep -v '^ *+' conftest.er1 >conftest.err |
29038 | rm -f conftest.er1 | |
29039 | cat conftest.err >&5 | |
e6cc62c6 VS |
29040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29041 | (exit $ac_status); } && | |
e1293dcf | 29042 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29044 | (eval $ac_try) 2>&5 | |
29045 | ac_status=$? | |
29046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29047 | (exit $ac_status); }; } && | |
29048 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29050 | (eval $ac_try) 2>&5 | |
29051 | ac_status=$? | |
29052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29053 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
29054 | wx_cv_func_vsnprintf_decl=yes |
29055 | else | |
e6cc62c6 VS |
29056 | echo "$as_me: failed program was:" >&5 |
29057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29058 | ||
29059 | wx_cv_func_vsnprintf_decl=no | |
29060 | ||
8d90d2f2 | 29061 | fi |
32ddf007 | 29062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 29063 | |
8d90d2f2 | 29064 | |
e6cc62c6 VS |
29065 | fi |
29066 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29067 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
29068 | |
29069 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 29070 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 29071 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 29072 | _ACEOF |
8d90d2f2 VZ |
29073 | |
29074 | fi | |
29075 | fi | |
29076 | ||
247f5006 | 29077 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
29078 | |
29079 | ||
29080 | ||
29081 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 29082 | do |
e6cc62c6 VS |
29083 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29084 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29085 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29086 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29088 | else | |
29089 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29090 | /* confdefs.h. */ |
29091 | _ACEOF | |
29092 | cat confdefs.h >>conftest.$ac_ext | |
29093 | cat >>conftest.$ac_ext <<_ACEOF | |
29094 | /* end confdefs.h. */ | |
32ddf007 VS |
29095 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29096 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29097 | #define $ac_func innocuous_$ac_func | |
29098 | ||
d74f4b5a | 29099 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29100 | which can conflict with char $ac_func (); below. |
29101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29102 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29103 | |
e6cc62c6 VS |
29104 | #ifdef __STDC__ |
29105 | # include <limits.h> | |
29106 | #else | |
29107 | # include <assert.h> | |
29108 | #endif | |
32ddf007 VS |
29109 | |
29110 | #undef $ac_func | |
29111 | ||
d74f4b5a | 29112 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
29113 | #ifdef __cplusplus |
29114 | extern "C" | |
e6cc62c6 | 29115 | { |
247f5006 | 29116 | #endif |
d74f4b5a | 29117 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29118 | builtin and then its argument prototype would still apply. */ |
29119 | char $ac_func (); | |
d74f4b5a VZ |
29120 | /* The GNU C library defines this for functions which it implements |
29121 | to always fail with ENOSYS. Some functions are actually named | |
29122 | something starting with __ and the normal name is an alias. */ | |
29123 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29124 | choke me | |
29125 | #else | |
e6cc62c6 VS |
29126 | char (*f) () = $ac_func; |
29127 | #endif | |
29128 | #ifdef __cplusplus | |
29129 | } | |
d74f4b5a VZ |
29130 | #endif |
29131 | ||
e6cc62c6 VS |
29132 | int |
29133 | main () | |
29134 | { | |
29135 | return f != $ac_func; | |
29136 | ; | |
29137 | return 0; | |
29138 | } | |
29139 | _ACEOF | |
29140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29142 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29143 | ac_status=$? |
32ddf007 VS |
29144 | grep -v '^ *+' conftest.er1 >conftest.err |
29145 | rm -f conftest.er1 | |
29146 | cat conftest.err >&5 | |
e6cc62c6 VS |
29147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29148 | (exit $ac_status); } && | |
e1293dcf | 29149 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29151 | (eval $ac_try) 2>&5 | |
29152 | ac_status=$? | |
29153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29154 | (exit $ac_status); }; } && | |
29155 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29157 | (eval $ac_try) 2>&5 | |
29158 | ac_status=$? | |
29159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29160 | (exit $ac_status); }; }; then | |
29161 | eval "$as_ac_var=yes" | |
29162 | else | |
29163 | echo "$as_me: failed program was:" >&5 | |
29164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29165 | ||
29166 | eval "$as_ac_var=no" | |
29167 | fi | |
32ddf007 VS |
29168 | rm -f conftest.err conftest.$ac_objext \ |
29169 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29170 | fi |
29171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29172 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29173 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29174 | cat >>confdefs.h <<_ACEOF | |
29175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29176 | _ACEOF | |
d74f4b5a | 29177 | |
d74f4b5a VZ |
29178 | fi |
29179 | done | |
29180 | ||
8d90d2f2 | 29181 | |
e6cc62c6 VS |
29182 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
29183 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29184 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29185 | /* confdefs.h. */ |
29186 | _ACEOF | |
29187 | cat confdefs.h >>conftest.$ac_ext | |
29188 | cat >>conftest.$ac_ext <<_ACEOF | |
29189 | /* end confdefs.h. */ | |
79668cae | 29190 | #include <wchar.h> |
e6cc62c6 VS |
29191 | int |
29192 | main () | |
29193 | { | |
79668cae | 29194 | &_vsnwprintf; |
e6cc62c6 VS |
29195 | ; |
29196 | return 0; | |
29197 | } | |
29198 | _ACEOF | |
29199 | rm -f conftest.$ac_objext | |
29200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29201 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29202 | ac_status=$? |
32ddf007 VS |
29203 | grep -v '^ *+' conftest.er1 >conftest.err |
29204 | rm -f conftest.er1 | |
29205 | cat conftest.err >&5 | |
e6cc62c6 VS |
29206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29207 | (exit $ac_status); } && | |
e1293dcf | 29208 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29210 | (eval $ac_try) 2>&5 | |
29211 | ac_status=$? | |
29212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29213 | (exit $ac_status); }; } && | |
29214 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29216 | (eval $ac_try) 2>&5 | |
29217 | ac_status=$? | |
29218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29219 | (exit $ac_status); }; }; then | |
29220 | echo "$as_me:$LINENO: result: yes" >&5 | |
29221 | echo "${ECHO_T}yes" >&6 | |
29222 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 29223 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 29224 | _ACEOF |
79668cae MB |
29225 | |
29226 | else | |
e6cc62c6 VS |
29227 | echo "$as_me: failed program was:" >&5 |
29228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29229 | ||
29230 | echo "$as_me:$LINENO: result: no" >&5 | |
29231 | echo "${ECHO_T}no" >&6 | |
79668cae | 29232 | fi |
32ddf007 | 29233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
29234 | fi |
29235 | ||
247f5006 VZ |
29236 | ac_ext=c |
29237 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
29238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
29241 | |
29242 | ||
29243 | ||
29244 | ||
4f14bcd8 | 29245 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 29246 | |
8284b0c5 MB |
29247 | |
29248 | ||
e6cc62c6 VS |
29249 | |
29250 | ac_ext=cc | |
4f14bcd8 | 29251 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 29255 | |
52127426 | 29256 | |
e6cc62c6 VS |
29257 | |
29258 | ||
29259 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
29260 | if test "${with_libiconv_prefix+set}" = set; then |
29261 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 29262 | |
b040e242 VS |
29263 | for dir in `echo "$withval" | tr : ' '`; do |
29264 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29265 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29266 | done | |
b040e242 | 29267 | |
e6cc62c6 | 29268 | fi; |
b040e242 | 29269 | |
e6cc62c6 VS |
29270 | echo "$as_me:$LINENO: checking for iconv" >&5 |
29271 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29272 | if test "${am_cv_func_iconv+set}" = set; then | |
29273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29274 | else |
e6cc62c6 | 29275 | |
b040e242 VS |
29276 | am_cv_func_iconv="no, consider installing GNU libiconv" |
29277 | am_cv_lib_iconv=no | |
e6cc62c6 | 29278 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29279 | /* confdefs.h. */ |
29280 | _ACEOF | |
29281 | cat confdefs.h >>conftest.$ac_ext | |
29282 | cat >>conftest.$ac_ext <<_ACEOF | |
29283 | /* end confdefs.h. */ | |
b040e242 | 29284 | #include <stdlib.h> |
4f14bcd8 | 29285 | #include <iconv.h> |
e6cc62c6 VS |
29286 | int |
29287 | main () | |
29288 | { | |
b040e242 VS |
29289 | iconv_t cd = iconv_open("",""); |
29290 | iconv(cd,NULL,NULL,NULL,NULL); | |
29291 | iconv_close(cd); | |
e6cc62c6 VS |
29292 | ; |
29293 | return 0; | |
29294 | } | |
29295 | _ACEOF | |
29296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29298 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29299 | ac_status=$? |
32ddf007 VS |
29300 | grep -v '^ *+' conftest.er1 >conftest.err |
29301 | rm -f conftest.er1 | |
29302 | cat conftest.err >&5 | |
e6cc62c6 VS |
29303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29304 | (exit $ac_status); } && | |
e1293dcf | 29305 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29307 | (eval $ac_try) 2>&5 | |
29308 | ac_status=$? | |
29309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29310 | (exit $ac_status); }; } && | |
29311 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29313 | (eval $ac_try) 2>&5 | |
29314 | ac_status=$? | |
29315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29316 | (exit $ac_status); }; }; then | |
b040e242 | 29317 | am_cv_func_iconv=yes |
af15babd | 29318 | else |
e6cc62c6 VS |
29319 | echo "$as_me: failed program was:" >&5 |
29320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29321 | ||
b040e242 | 29322 | fi |
32ddf007 VS |
29323 | rm -f conftest.err conftest.$ac_objext \ |
29324 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29325 | if test "$am_cv_func_iconv" != yes; then |
29326 | am_save_LIBS="$LIBS" | |
29327 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 29328 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29329 | /* confdefs.h. */ |
29330 | _ACEOF | |
29331 | cat confdefs.h >>conftest.$ac_ext | |
29332 | cat >>conftest.$ac_ext <<_ACEOF | |
29333 | /* end confdefs.h. */ | |
b040e242 VS |
29334 | #include <stdlib.h> |
29335 | #include <iconv.h> | |
e6cc62c6 VS |
29336 | int |
29337 | main () | |
29338 | { | |
b040e242 VS |
29339 | iconv_t cd = iconv_open("",""); |
29340 | iconv(cd,NULL,NULL,NULL,NULL); | |
29341 | iconv_close(cd); | |
e6cc62c6 VS |
29342 | ; |
29343 | return 0; | |
29344 | } | |
29345 | _ACEOF | |
29346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29348 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29349 | ac_status=$? |
32ddf007 VS |
29350 | grep -v '^ *+' conftest.er1 >conftest.err |
29351 | rm -f conftest.er1 | |
29352 | cat conftest.err >&5 | |
e6cc62c6 VS |
29353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29354 | (exit $ac_status); } && | |
e1293dcf | 29355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29357 | (eval $ac_try) 2>&5 | |
29358 | ac_status=$? | |
29359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29360 | (exit $ac_status); }; } && | |
29361 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29363 | (eval $ac_try) 2>&5 | |
29364 | ac_status=$? | |
29365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29366 | (exit $ac_status); }; }; then | |
b040e242 VS |
29367 | am_cv_lib_iconv=yes |
29368 | am_cv_func_iconv=yes | |
29369 | else | |
e6cc62c6 VS |
29370 | echo "$as_me: failed program was:" >&5 |
29371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29372 | ||
af15babd | 29373 | fi |
32ddf007 VS |
29374 | rm -f conftest.err conftest.$ac_objext \ |
29375 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29376 | LIBS="$am_save_LIBS" |
29377 | fi | |
247f5006 | 29378 | |
e6cc62c6 VS |
29379 | fi |
29380 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29381 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 29382 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
29383 | |
29384 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 29385 | #define HAVE_ICONV 1 |
e6cc62c6 | 29386 | _ACEOF |
b040e242 | 29387 | |
e6cc62c6 VS |
29388 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
29389 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29390 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 29392 | else |
e6cc62c6 | 29393 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29394 | /* confdefs.h. */ |
29395 | _ACEOF | |
29396 | cat confdefs.h >>conftest.$ac_ext | |
29397 | cat >>conftest.$ac_ext <<_ACEOF | |
29398 | /* end confdefs.h. */ | |
b040e242 VS |
29399 | |
29400 | #include <stdlib.h> | |
29401 | #include <iconv.h> | |
29402 | extern | |
29403 | #ifdef __cplusplus | |
29404 | "C" | |
29405 | #endif | |
29406 | #if defined(__STDC__) || defined(__cplusplus) | |
29407 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29408 | #else | |
29409 | size_t iconv(); | |
29410 | #endif | |
af15babd | 29411 | |
e6cc62c6 VS |
29412 | int |
29413 | main () | |
29414 | { | |
29415 | ||
29416 | ; | |
29417 | return 0; | |
29418 | } | |
29419 | _ACEOF | |
29420 | rm -f conftest.$ac_objext | |
29421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29422 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29423 | ac_status=$? |
32ddf007 VS |
29424 | grep -v '^ *+' conftest.er1 >conftest.err |
29425 | rm -f conftest.er1 | |
29426 | cat conftest.err >&5 | |
e6cc62c6 VS |
29427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29428 | (exit $ac_status); } && | |
e1293dcf | 29429 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29431 | (eval $ac_try) 2>&5 | |
29432 | ac_status=$? | |
29433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29434 | (exit $ac_status); }; } && | |
29435 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29437 | (eval $ac_try) 2>&5 | |
29438 | ac_status=$? | |
29439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29440 | (exit $ac_status); }; }; then | |
b7043674 | 29441 | wx_cv_func_iconv_const="no" |
b040e242 | 29442 | else |
e6cc62c6 VS |
29443 | echo "$as_me: failed program was:" >&5 |
29444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29445 | ||
29446 | wx_cv_func_iconv_const="yes" | |
29447 | ||
247f5006 | 29448 | fi |
32ddf007 | 29449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29450 | |
e6cc62c6 VS |
29451 | fi |
29452 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29453 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
29454 | |
29455 | iconv_const= | |
1c405bb5 | 29456 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
29457 | iconv_const="const" |
29458 | fi | |
29459 | ||
e6cc62c6 VS |
29460 | |
29461 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 29462 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 29463 | _ACEOF |
b040e242 VS |
29464 | |
29465 | fi | |
29466 | LIBICONV= | |
29467 | if test "$am_cv_lib_iconv" = yes; then | |
29468 | LIBICONV="-liconv" | |
29469 | fi | |
e6cc62c6 | 29470 | |
b040e242 VS |
29471 | |
29472 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 29473 | ac_ext=c |
4f14bcd8 | 29474 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 29478 | |
5c6fa7d2 | 29479 | |
8284b0c5 | 29480 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
29481 | |
29482 | for ac_func in sigaction | |
af15babd | 29483 | do |
e6cc62c6 VS |
29484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29485 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29487 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29489 | else | |
29490 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29491 | /* confdefs.h. */ |
29492 | _ACEOF | |
29493 | cat confdefs.h >>conftest.$ac_ext | |
29494 | cat >>conftest.$ac_ext <<_ACEOF | |
29495 | /* end confdefs.h. */ | |
32ddf007 VS |
29496 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29497 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29498 | #define $ac_func innocuous_$ac_func | |
29499 | ||
af15babd | 29500 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29501 | which can conflict with char $ac_func (); below. |
29502 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29503 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29504 | |
e6cc62c6 VS |
29505 | #ifdef __STDC__ |
29506 | # include <limits.h> | |
29507 | #else | |
29508 | # include <assert.h> | |
29509 | #endif | |
32ddf007 VS |
29510 | |
29511 | #undef $ac_func | |
29512 | ||
af15babd | 29513 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29514 | #ifdef __cplusplus |
29515 | extern "C" | |
29516 | { | |
29517 | #endif | |
af15babd | 29518 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29519 | builtin and then its argument prototype would still apply. */ |
29520 | char $ac_func (); | |
af15babd VZ |
29521 | /* The GNU C library defines this for functions which it implements |
29522 | to always fail with ENOSYS. Some functions are actually named | |
29523 | something starting with __ and the normal name is an alias. */ | |
29524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29525 | choke me | |
29526 | #else | |
e6cc62c6 VS |
29527 | char (*f) () = $ac_func; |
29528 | #endif | |
29529 | #ifdef __cplusplus | |
29530 | } | |
af15babd VZ |
29531 | #endif |
29532 | ||
e6cc62c6 VS |
29533 | int |
29534 | main () | |
29535 | { | |
29536 | return f != $ac_func; | |
29537 | ; | |
29538 | return 0; | |
29539 | } | |
29540 | _ACEOF | |
29541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29543 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29544 | ac_status=$? |
32ddf007 VS |
29545 | grep -v '^ *+' conftest.er1 >conftest.err |
29546 | rm -f conftest.er1 | |
29547 | cat conftest.err >&5 | |
e6cc62c6 VS |
29548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29549 | (exit $ac_status); } && | |
e1293dcf | 29550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29552 | (eval $ac_try) 2>&5 | |
29553 | ac_status=$? | |
29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29555 | (exit $ac_status); }; } && | |
29556 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29558 | (eval $ac_try) 2>&5 | |
29559 | ac_status=$? | |
29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29561 | (exit $ac_status); }; }; then | |
29562 | eval "$as_ac_var=yes" | |
29563 | else | |
29564 | echo "$as_me: failed program was:" >&5 | |
29565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29566 | ||
29567 | eval "$as_ac_var=no" | |
29568 | fi | |
32ddf007 VS |
29569 | rm -f conftest.err conftest.$ac_objext \ |
29570 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29571 | fi |
29572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29574 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29575 | cat >>confdefs.h <<_ACEOF | |
29576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29577 | _ACEOF | |
7b4a847f | 29578 | |
4f14bcd8 GD |
29579 | fi |
29580 | done | |
29581 | ||
8284b0c5 | 29582 | |
4f14bcd8 | 29583 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
29584 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
29585 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
29586 | wxUSE_ON_FATAL_EXCEPTION=no |
29587 | fi | |
29588 | ||
29589 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
29590 | |
29591 | ||
29592 | ac_ext=cc | |
5c6fa7d2 | 29593 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29594 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29595 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29596 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 29597 | |
5c6fa7d2 | 29598 | |
e6cc62c6 VS |
29599 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
29600 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29601 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29603 | else |
e6cc62c6 VS |
29604 | |
29605 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29606 | /* confdefs.h. */ |
29607 | _ACEOF | |
29608 | cat confdefs.h >>conftest.$ac_ext | |
29609 | cat >>conftest.$ac_ext <<_ACEOF | |
29610 | /* end confdefs.h. */ | |
4f14bcd8 | 29611 | #include <signal.h> |
e6cc62c6 VS |
29612 | int |
29613 | main () | |
29614 | { | |
4f14bcd8 GD |
29615 | |
29616 | extern void testSigHandler(int); | |
29617 | ||
29618 | struct sigaction sa; | |
29619 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
29620 | |
29621 | ; | |
29622 | return 0; | |
29623 | } | |
29624 | _ACEOF | |
29625 | rm -f conftest.$ac_objext | |
29626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29627 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29628 | ac_status=$? |
32ddf007 VS |
29629 | grep -v '^ *+' conftest.er1 >conftest.err |
29630 | rm -f conftest.er1 | |
29631 | cat conftest.err >&5 | |
e6cc62c6 VS |
29632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29633 | (exit $ac_status); } && | |
e1293dcf | 29634 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29636 | (eval $ac_try) 2>&5 | |
29637 | ac_status=$? | |
29638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29639 | (exit $ac_status); }; } && | |
29640 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29642 | (eval $ac_try) 2>&5 | |
29643 | ac_status=$? | |
29644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29645 | (exit $ac_status); }; }; then | |
29646 | ||
4f14bcd8 | 29647 | wx_cv_type_sa_handler=int |
e6cc62c6 | 29648 | |
af15babd | 29649 | else |
e6cc62c6 VS |
29650 | echo "$as_me: failed program was:" >&5 |
29651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29652 | ||
29653 | ||
4f14bcd8 | 29654 | wx_cv_type_sa_handler=void |
e6cc62c6 | 29655 | |
247f5006 | 29656 | fi |
32ddf007 | 29657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29658 | |
e6cc62c6 VS |
29659 | fi |
29660 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29661 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
29662 | |
29663 | ac_ext=c | |
4f14bcd8 | 29664 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 29668 | |
8284b0c5 | 29669 | |
e6cc62c6 | 29670 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29671 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 29672 | _ACEOF |
af15babd | 29673 | |
4f14bcd8 GD |
29674 | fi |
29675 | fi | |
af15babd | 29676 | |
e6cc62c6 VS |
29677 | |
29678 | ||
a1d22ad7 | 29679 | for ac_func in mkstemp mktemp |
af15babd | 29680 | do |
e6cc62c6 VS |
29681 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29682 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29683 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29684 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29686 | else | |
29687 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29688 | /* confdefs.h. */ |
29689 | _ACEOF | |
29690 | cat confdefs.h >>conftest.$ac_ext | |
29691 | cat >>conftest.$ac_ext <<_ACEOF | |
29692 | /* end confdefs.h. */ | |
32ddf007 VS |
29693 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29695 | #define $ac_func innocuous_$ac_func | |
29696 | ||
af15babd | 29697 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29698 | which can conflict with char $ac_func (); below. |
29699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29700 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29701 | |
e6cc62c6 VS |
29702 | #ifdef __STDC__ |
29703 | # include <limits.h> | |
29704 | #else | |
29705 | # include <assert.h> | |
29706 | #endif | |
32ddf007 VS |
29707 | |
29708 | #undef $ac_func | |
29709 | ||
af15babd | 29710 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29711 | #ifdef __cplusplus |
29712 | extern "C" | |
29713 | { | |
29714 | #endif | |
af15babd | 29715 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29716 | builtin and then its argument prototype would still apply. */ |
29717 | char $ac_func (); | |
af15babd VZ |
29718 | /* The GNU C library defines this for functions which it implements |
29719 | to always fail with ENOSYS. Some functions are actually named | |
29720 | something starting with __ and the normal name is an alias. */ | |
29721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29722 | choke me | |
29723 | #else | |
e6cc62c6 VS |
29724 | char (*f) () = $ac_func; |
29725 | #endif | |
29726 | #ifdef __cplusplus | |
29727 | } | |
af15babd VZ |
29728 | #endif |
29729 | ||
e6cc62c6 VS |
29730 | int |
29731 | main () | |
29732 | { | |
29733 | return f != $ac_func; | |
29734 | ; | |
29735 | return 0; | |
29736 | } | |
29737 | _ACEOF | |
29738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29740 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29741 | ac_status=$? |
32ddf007 VS |
29742 | grep -v '^ *+' conftest.er1 >conftest.err |
29743 | rm -f conftest.er1 | |
29744 | cat conftest.err >&5 | |
e6cc62c6 VS |
29745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29746 | (exit $ac_status); } && | |
e1293dcf | 29747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29749 | (eval $ac_try) 2>&5 | |
29750 | ac_status=$? | |
29751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29752 | (exit $ac_status); }; } && | |
29753 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29755 | (eval $ac_try) 2>&5 | |
29756 | ac_status=$? | |
29757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29758 | (exit $ac_status); }; }; then | |
29759 | eval "$as_ac_var=yes" | |
29760 | else | |
29761 | echo "$as_me: failed program was:" >&5 | |
29762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29763 | ||
29764 | eval "$as_ac_var=no" | |
29765 | fi | |
32ddf007 VS |
29766 | rm -f conftest.err conftest.$ac_objext \ |
29767 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29768 | fi |
29769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29770 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29772 | cat >>confdefs.h <<_ACEOF | |
29773 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29774 | _ACEOF | |
ade35f11 | 29775 | break |
ade35f11 VZ |
29776 | fi |
29777 | done | |
29778 | ||
8284b0c5 | 29779 | |
e6cc62c6 VS |
29780 | echo "$as_me:$LINENO: checking for statfs" >&5 |
29781 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29782 | if test "${wx_cv_func_statfs+set}" = set; then | |
29783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29784 | else |
e6cc62c6 | 29785 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29786 | /* confdefs.h. */ |
29787 | _ACEOF | |
29788 | cat confdefs.h >>conftest.$ac_ext | |
29789 | cat >>conftest.$ac_ext <<_ACEOF | |
29790 | /* end confdefs.h. */ | |
4f14bcd8 GD |
29791 | |
29792 | #if defined(__BSD__) | |
29793 | #include <sys/param.h> | |
29794 | #include <sys/mount.h> | |
29795 | #else | |
29796 | #include <sys/vfs.h> | |
29797 | #endif | |
e6cc62c6 VS |
29798 | |
29799 | int | |
29800 | main () | |
29801 | { | |
4f14bcd8 GD |
29802 | |
29803 | long l; | |
29804 | struct statfs fs; | |
29805 | statfs("/", &fs); | |
29806 | l = fs.f_bsize; | |
29807 | l += fs.f_blocks; | |
29808 | l += fs.f_bavail; | |
e6cc62c6 VS |
29809 | |
29810 | ; | |
29811 | return 0; | |
29812 | } | |
29813 | _ACEOF | |
29814 | rm -f conftest.$ac_objext | |
29815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29816 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29817 | ac_status=$? |
32ddf007 VS |
29818 | grep -v '^ *+' conftest.er1 >conftest.err |
29819 | rm -f conftest.er1 | |
29820 | cat conftest.err >&5 | |
e6cc62c6 VS |
29821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29822 | (exit $ac_status); } && | |
e1293dcf | 29823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29825 | (eval $ac_try) 2>&5 | |
29826 | ac_status=$? | |
29827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29828 | (exit $ac_status); }; } && | |
29829 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29831 | (eval $ac_try) 2>&5 | |
29832 | ac_status=$? | |
29833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29834 | (exit $ac_status); }; }; then | |
29835 | ||
4f14bcd8 | 29836 | wx_cv_func_statfs=yes |
e6cc62c6 | 29837 | |
4f14bcd8 | 29838 | else |
e6cc62c6 VS |
29839 | echo "$as_me: failed program was:" >&5 |
29840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29841 | ||
29842 | ||
4f14bcd8 | 29843 | wx_cv_func_statfs=no |
e6cc62c6 | 29844 | |
8284b0c5 | 29845 | |
247f5006 | 29846 | fi |
32ddf007 | 29847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29848 | |
e6cc62c6 VS |
29849 | fi |
29850 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29851 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
29852 | |
29853 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 29854 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 29855 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29856 | #define HAVE_STATFS 1 |
e6cc62c6 | 29857 | _ACEOF |
4f14bcd8 GD |
29858 | |
29859 | else | |
e6cc62c6 VS |
29860 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
29861 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29862 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29864 | else |
e6cc62c6 | 29865 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29866 | /* confdefs.h. */ |
29867 | _ACEOF | |
29868 | cat confdefs.h >>conftest.$ac_ext | |
29869 | cat >>conftest.$ac_ext <<_ACEOF | |
29870 | /* end confdefs.h. */ | |
af15babd | 29871 | |
54ab82b3 VZ |
29872 | #include <stddef.h> |
29873 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29874 | |
29875 | int | |
29876 | main () | |
29877 | { | |
af15babd | 29878 | |
54ab82b3 | 29879 | statvfs("/", NULL); |
e6cc62c6 VS |
29880 | |
29881 | ; | |
29882 | return 0; | |
29883 | } | |
29884 | _ACEOF | |
29885 | rm -f conftest.$ac_objext | |
29886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29887 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29888 | ac_status=$? |
32ddf007 VS |
29889 | grep -v '^ *+' conftest.er1 >conftest.err |
29890 | rm -f conftest.er1 | |
29891 | cat conftest.err >&5 | |
e6cc62c6 VS |
29892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29893 | (exit $ac_status); } && | |
e1293dcf | 29894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29896 | (eval $ac_try) 2>&5 | |
29897 | ac_status=$? | |
29898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29899 | (exit $ac_status); }; } && | |
29900 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29902 | (eval $ac_try) 2>&5 | |
29903 | ac_status=$? | |
29904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29905 | (exit $ac_status); }; }; then | |
54ab82b3 | 29906 | wx_cv_func_statvfs=yes |
af15babd | 29907 | else |
e6cc62c6 VS |
29908 | echo "$as_me: failed program was:" >&5 |
29909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29910 | ||
29911 | wx_cv_func_statvfs=no | |
29912 | ||
247f5006 | 29913 | fi |
32ddf007 | 29914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29915 | |
e6cc62c6 VS |
29916 | fi |
29917 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29918 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 29919 | |
4f14bcd8 | 29920 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
29921 | |
29922 | ||
29923 | ac_ext=cc | |
54ab82b3 | 29924 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29925 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29926 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29927 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
29928 | |
29929 | ||
e6cc62c6 VS |
29930 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
29931 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29932 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 29934 | else |
e6cc62c6 | 29935 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29936 | /* confdefs.h. */ |
29937 | _ACEOF | |
29938 | cat confdefs.h >>conftest.$ac_ext | |
29939 | cat >>conftest.$ac_ext <<_ACEOF | |
29940 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29941 | |
29942 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29943 | |
29944 | int | |
29945 | main () | |
29946 | { | |
54ab82b3 VZ |
29947 | |
29948 | long l; | |
29949 | statvfs_t fs; | |
29950 | statvfs("/", &fs); | |
29951 | l = fs.f_bsize; | |
29952 | l += fs.f_blocks; | |
29953 | l += fs.f_bavail; | |
e6cc62c6 VS |
29954 | |
29955 | ; | |
29956 | return 0; | |
29957 | } | |
29958 | _ACEOF | |
29959 | rm -f conftest.$ac_objext | |
29960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29961 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29962 | ac_status=$? |
32ddf007 VS |
29963 | grep -v '^ *+' conftest.er1 >conftest.err |
29964 | rm -f conftest.er1 | |
29965 | cat conftest.err >&5 | |
e6cc62c6 VS |
29966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29967 | (exit $ac_status); } && | |
e1293dcf | 29968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
29969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29970 | (eval $ac_try) 2>&5 | |
29971 | ac_status=$? | |
29972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29973 | (exit $ac_status); }; } && | |
29974 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29976 | (eval $ac_try) 2>&5 | |
29977 | ac_status=$? | |
29978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29979 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29980 | wx_cv_type_statvfs_t=statvfs_t |
29981 | else | |
e6cc62c6 VS |
29982 | echo "$as_me: failed program was:" >&5 |
29983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29984 | ||
29985 | ||
29986 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29987 | /* confdefs.h. */ |
29988 | _ACEOF | |
29989 | cat confdefs.h >>conftest.$ac_ext | |
29990 | cat >>conftest.$ac_ext <<_ACEOF | |
29991 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29992 | |
29993 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29994 | |
29995 | int | |
29996 | main () | |
29997 | { | |
54ab82b3 VZ |
29998 | |
29999 | long l; | |
65d8ef1e | 30000 | struct statvfs fs; |
54ab82b3 VZ |
30001 | statvfs("/", &fs); |
30002 | l = fs.f_bsize; | |
30003 | l += fs.f_blocks; | |
30004 | l += fs.f_bavail; | |
e6cc62c6 VS |
30005 | |
30006 | ; | |
30007 | return 0; | |
30008 | } | |
30009 | _ACEOF | |
30010 | rm -f conftest.$ac_objext | |
30011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30012 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30013 | ac_status=$? |
32ddf007 VS |
30014 | grep -v '^ *+' conftest.er1 >conftest.err |
30015 | rm -f conftest.er1 | |
30016 | cat conftest.err >&5 | |
e6cc62c6 VS |
30017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30018 | (exit $ac_status); } && | |
e1293dcf | 30019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30021 | (eval $ac_try) 2>&5 | |
30022 | ac_status=$? | |
30023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30024 | (exit $ac_status); }; } && | |
30025 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30027 | (eval $ac_try) 2>&5 | |
30028 | ac_status=$? | |
30029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30030 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
30031 | wx_cv_type_statvfs_t="struct statvfs" |
30032 | else | |
e6cc62c6 VS |
30033 | echo "$as_me: failed program was:" >&5 |
30034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30035 | ||
30036 | wx_cv_type_statvfs_t="unknown" | |
30037 | ||
54ab82b3 | 30038 | fi |
32ddf007 | 30039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30040 | |
30041 | ||
54ab82b3 | 30042 | fi |
32ddf007 | 30043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 30044 | |
e6cc62c6 VS |
30045 | fi |
30046 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30047 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
30048 | |
30049 | ac_ext=c | |
54ab82b3 | 30050 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
30054 | |
30055 | ||
30056 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 30057 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30058 | #define HAVE_STATVFS 1 |
e6cc62c6 | 30059 | _ACEOF |
af15babd | 30060 | |
54ab82b3 | 30061 | fi |
4f14bcd8 | 30062 | else |
54ab82b3 | 30063 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
30064 | fi |
30065 | fi | |
af15babd | 30066 | |
54ab82b3 | 30067 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 30068 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 30069 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 30070 | _ACEOF |
54ab82b3 VZ |
30071 | |
30072 | else | |
e6cc62c6 VS |
30073 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
30074 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
30075 | fi |
30076 | ||
4f14bcd8 | 30077 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
30078 | |
30079 | ||
30080 | for ac_func in fcntl flock | |
af15babd | 30081 | do |
e6cc62c6 VS |
30082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30083 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30085 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30087 | else | |
30088 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30089 | /* confdefs.h. */ |
30090 | _ACEOF | |
30091 | cat confdefs.h >>conftest.$ac_ext | |
30092 | cat >>conftest.$ac_ext <<_ACEOF | |
30093 | /* end confdefs.h. */ | |
32ddf007 VS |
30094 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30096 | #define $ac_func innocuous_$ac_func | |
30097 | ||
af15babd | 30098 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30099 | which can conflict with char $ac_func (); below. |
30100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30101 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30102 | |
e6cc62c6 VS |
30103 | #ifdef __STDC__ |
30104 | # include <limits.h> | |
30105 | #else | |
30106 | # include <assert.h> | |
30107 | #endif | |
32ddf007 VS |
30108 | |
30109 | #undef $ac_func | |
30110 | ||
af15babd | 30111 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30112 | #ifdef __cplusplus |
30113 | extern "C" | |
30114 | { | |
30115 | #endif | |
af15babd | 30116 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30117 | builtin and then its argument prototype would still apply. */ |
30118 | char $ac_func (); | |
af15babd VZ |
30119 | /* The GNU C library defines this for functions which it implements |
30120 | to always fail with ENOSYS. Some functions are actually named | |
30121 | something starting with __ and the normal name is an alias. */ | |
30122 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30123 | choke me | |
30124 | #else | |
e6cc62c6 VS |
30125 | char (*f) () = $ac_func; |
30126 | #endif | |
30127 | #ifdef __cplusplus | |
30128 | } | |
af15babd VZ |
30129 | #endif |
30130 | ||
e6cc62c6 VS |
30131 | int |
30132 | main () | |
30133 | { | |
30134 | return f != $ac_func; | |
30135 | ; | |
30136 | return 0; | |
30137 | } | |
30138 | _ACEOF | |
30139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30141 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30142 | ac_status=$? |
32ddf007 VS |
30143 | grep -v '^ *+' conftest.er1 >conftest.err |
30144 | rm -f conftest.er1 | |
30145 | cat conftest.err >&5 | |
e6cc62c6 VS |
30146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30147 | (exit $ac_status); } && | |
e1293dcf | 30148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30150 | (eval $ac_try) 2>&5 | |
30151 | ac_status=$? | |
30152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30153 | (exit $ac_status); }; } && | |
30154 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30156 | (eval $ac_try) 2>&5 | |
30157 | ac_status=$? | |
30158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30159 | (exit $ac_status); }; }; then | |
30160 | eval "$as_ac_var=yes" | |
30161 | else | |
30162 | echo "$as_me: failed program was:" >&5 | |
30163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30164 | ||
30165 | eval "$as_ac_var=no" | |
30166 | fi | |
32ddf007 VS |
30167 | rm -f conftest.err conftest.$ac_objext \ |
30168 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30169 | fi |
30170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30173 | cat >>confdefs.h <<_ACEOF | |
30174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30175 | _ACEOF | |
4f14bcd8 | 30176 | break |
af15babd VZ |
30177 | fi |
30178 | done | |
30179 | ||
8284b0c5 | 30180 | |
4f14bcd8 | 30181 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
30182 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
30183 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
30184 | wxUSE_SNGLINST_CHECKER=no |
30185 | fi | |
30186 | fi | |
af15babd | 30187 | |
e6cc62c6 | 30188 | |
4f14bcd8 | 30189 | for ac_func in timegm |
af15babd | 30190 | do |
e6cc62c6 VS |
30191 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30192 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30193 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30194 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30196 | else | |
30197 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30198 | /* confdefs.h. */ |
30199 | _ACEOF | |
30200 | cat confdefs.h >>conftest.$ac_ext | |
30201 | cat >>conftest.$ac_ext <<_ACEOF | |
30202 | /* end confdefs.h. */ | |
32ddf007 VS |
30203 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30205 | #define $ac_func innocuous_$ac_func | |
30206 | ||
af15babd | 30207 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30208 | which can conflict with char $ac_func (); below. |
30209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30210 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30211 | |
e6cc62c6 VS |
30212 | #ifdef __STDC__ |
30213 | # include <limits.h> | |
30214 | #else | |
30215 | # include <assert.h> | |
30216 | #endif | |
32ddf007 VS |
30217 | |
30218 | #undef $ac_func | |
30219 | ||
af15babd | 30220 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30221 | #ifdef __cplusplus |
30222 | extern "C" | |
30223 | { | |
30224 | #endif | |
af15babd | 30225 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30226 | builtin and then its argument prototype would still apply. */ |
30227 | char $ac_func (); | |
af15babd VZ |
30228 | /* The GNU C library defines this for functions which it implements |
30229 | to always fail with ENOSYS. Some functions are actually named | |
30230 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
30231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
30232 | choke me | |
30233 | #else | |
e6cc62c6 VS |
30234 | char (*f) () = $ac_func; |
30235 | #endif | |
30236 | #ifdef __cplusplus | |
30237 | } | |
247f5006 VZ |
30238 | #endif |
30239 | ||
e6cc62c6 VS |
30240 | int |
30241 | main () | |
30242 | { | |
30243 | return f != $ac_func; | |
30244 | ; | |
30245 | return 0; | |
30246 | } | |
30247 | _ACEOF | |
30248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30250 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30251 | ac_status=$? |
32ddf007 VS |
30252 | grep -v '^ *+' conftest.er1 >conftest.err |
30253 | rm -f conftest.er1 | |
30254 | cat conftest.err >&5 | |
e6cc62c6 VS |
30255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30256 | (exit $ac_status); } && | |
e1293dcf | 30257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30259 | (eval $ac_try) 2>&5 | |
30260 | ac_status=$? | |
30261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30262 | (exit $ac_status); }; } && | |
30263 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30265 | (eval $ac_try) 2>&5 | |
30266 | ac_status=$? | |
30267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30268 | (exit $ac_status); }; }; then | |
30269 | eval "$as_ac_var=yes" | |
30270 | else | |
30271 | echo "$as_me: failed program was:" >&5 | |
30272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30273 | ||
30274 | eval "$as_ac_var=no" | |
30275 | fi | |
32ddf007 VS |
30276 | rm -f conftest.err conftest.$ac_objext \ |
30277 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30278 | fi |
30279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30280 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30282 | cat >>confdefs.h <<_ACEOF | |
30283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30284 | _ACEOF | |
703e0a69 | 30285 | |
af15babd VZ |
30286 | fi |
30287 | done | |
30288 | ||
8284b0c5 | 30289 | |
e6cc62c6 VS |
30290 | |
30291 | ||
4f14bcd8 | 30292 | for ac_func in putenv setenv |
10f2d63a | 30293 | do |
e6cc62c6 VS |
30294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30299 | else | |
30300 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30301 | /* confdefs.h. */ |
30302 | _ACEOF | |
30303 | cat confdefs.h >>conftest.$ac_ext | |
30304 | cat >>conftest.$ac_ext <<_ACEOF | |
30305 | /* end confdefs.h. */ | |
32ddf007 VS |
30306 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30307 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30308 | #define $ac_func innocuous_$ac_func | |
30309 | ||
af15babd | 30310 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30311 | which can conflict with char $ac_func (); below. |
30312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30313 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30314 | |
e6cc62c6 VS |
30315 | #ifdef __STDC__ |
30316 | # include <limits.h> | |
30317 | #else | |
30318 | # include <assert.h> | |
30319 | #endif | |
32ddf007 VS |
30320 | |
30321 | #undef $ac_func | |
30322 | ||
af15babd | 30323 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30324 | #ifdef __cplusplus |
30325 | extern "C" | |
30326 | { | |
30327 | #endif | |
af15babd | 30328 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30329 | builtin and then its argument prototype would still apply. */ |
30330 | char $ac_func (); | |
af15babd VZ |
30331 | /* The GNU C library defines this for functions which it implements |
30332 | to always fail with ENOSYS. Some functions are actually named | |
30333 | something starting with __ and the normal name is an alias. */ | |
30334 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30335 | choke me | |
30336 | #else | |
e6cc62c6 VS |
30337 | char (*f) () = $ac_func; |
30338 | #endif | |
30339 | #ifdef __cplusplus | |
30340 | } | |
af15babd VZ |
30341 | #endif |
30342 | ||
e6cc62c6 VS |
30343 | int |
30344 | main () | |
30345 | { | |
30346 | return f != $ac_func; | |
30347 | ; | |
30348 | return 0; | |
30349 | } | |
30350 | _ACEOF | |
30351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30353 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30354 | ac_status=$? |
32ddf007 VS |
30355 | grep -v '^ *+' conftest.er1 >conftest.err |
30356 | rm -f conftest.er1 | |
30357 | cat conftest.err >&5 | |
e6cc62c6 VS |
30358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30359 | (exit $ac_status); } && | |
e1293dcf | 30360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30362 | (eval $ac_try) 2>&5 | |
30363 | ac_status=$? | |
30364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30365 | (exit $ac_status); }; } && | |
30366 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30368 | (eval $ac_try) 2>&5 | |
30369 | ac_status=$? | |
30370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30371 | (exit $ac_status); }; }; then | |
30372 | eval "$as_ac_var=yes" | |
30373 | else | |
30374 | echo "$as_me: failed program was:" >&5 | |
30375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30376 | ||
30377 | eval "$as_ac_var=no" | |
30378 | fi | |
32ddf007 VS |
30379 | rm -f conftest.err conftest.$ac_objext \ |
30380 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30381 | fi |
30382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30385 | cat >>confdefs.h <<_ACEOF | |
30386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30387 | _ACEOF | |
4f14bcd8 | 30388 | break |
af15babd | 30389 | fi |
af15babd VZ |
30390 | done |
30391 | ||
8284b0c5 | 30392 | |
4f14bcd8 GD |
30393 | HAVE_SOME_SLEEP_FUNC=0 |
30394 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 30395 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30396 | #define HAVE_SLEEP 1 |
e6cc62c6 | 30397 | _ACEOF |
af15babd | 30398 | |
4f14bcd8 | 30399 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30400 | fi |
30401 | ||
4f14bcd8 | 30402 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 30403 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30404 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30405 | _ACEOF |
10f2d63a | 30406 | |
4f14bcd8 | 30407 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30408 | fi |
30409 | ||
4f14bcd8 GD |
30410 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
30411 | POSIX4_LINK= | |
e6cc62c6 VS |
30412 | |
30413 | for ac_func in nanosleep | |
4f14bcd8 | 30414 | do |
e6cc62c6 VS |
30415 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30416 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30417 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30418 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30420 | else | |
30421 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30422 | /* confdefs.h. */ |
30423 | _ACEOF | |
30424 | cat confdefs.h >>conftest.$ac_ext | |
30425 | cat >>conftest.$ac_ext <<_ACEOF | |
30426 | /* end confdefs.h. */ | |
32ddf007 VS |
30427 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30428 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30429 | #define $ac_func innocuous_$ac_func | |
30430 | ||
4f14bcd8 | 30431 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30432 | which can conflict with char $ac_func (); below. |
30433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30434 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30435 | |
e6cc62c6 VS |
30436 | #ifdef __STDC__ |
30437 | # include <limits.h> | |
30438 | #else | |
30439 | # include <assert.h> | |
30440 | #endif | |
32ddf007 VS |
30441 | |
30442 | #undef $ac_func | |
30443 | ||
10f2d63a | 30444 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30445 | #ifdef __cplusplus |
30446 | extern "C" | |
30447 | { | |
30448 | #endif | |
10f2d63a | 30449 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30450 | builtin and then its argument prototype would still apply. */ |
30451 | char $ac_func (); | |
4f14bcd8 GD |
30452 | /* The GNU C library defines this for functions which it implements |
30453 | to always fail with ENOSYS. Some functions are actually named | |
30454 | something starting with __ and the normal name is an alias. */ | |
30455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30456 | choke me | |
30457 | #else | |
e6cc62c6 VS |
30458 | char (*f) () = $ac_func; |
30459 | #endif | |
30460 | #ifdef __cplusplus | |
30461 | } | |
4f14bcd8 GD |
30462 | #endif |
30463 | ||
e6cc62c6 VS |
30464 | int |
30465 | main () | |
30466 | { | |
30467 | return f != $ac_func; | |
30468 | ; | |
30469 | return 0; | |
30470 | } | |
30471 | _ACEOF | |
30472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30474 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30475 | ac_status=$? |
32ddf007 VS |
30476 | grep -v '^ *+' conftest.er1 >conftest.err |
30477 | rm -f conftest.er1 | |
30478 | cat conftest.err >&5 | |
e6cc62c6 VS |
30479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30480 | (exit $ac_status); } && | |
e1293dcf | 30481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30483 | (eval $ac_try) 2>&5 | |
30484 | ac_status=$? | |
30485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30486 | (exit $ac_status); }; } && | |
30487 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30489 | (eval $ac_try) 2>&5 | |
30490 | ac_status=$? | |
30491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30492 | (exit $ac_status); }; }; then | |
30493 | eval "$as_ac_var=yes" | |
30494 | else | |
30495 | echo "$as_me: failed program was:" >&5 | |
30496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30497 | ||
30498 | eval "$as_ac_var=no" | |
30499 | fi | |
32ddf007 VS |
30500 | rm -f conftest.err conftest.$ac_objext \ |
30501 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30502 | fi |
30503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30504 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30505 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30506 | cat >>confdefs.h <<_ACEOF | |
30507 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30508 | _ACEOF | |
30509 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30510 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30511 | _ACEOF |
4f14bcd8 | 30512 | |
10f2d63a | 30513 | else |
e6cc62c6 VS |
30514 | |
30515 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30516 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30517 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30519 | else |
e6cc62c6 | 30520 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30521 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30522 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30523 | /* confdefs.h. */ |
30524 | _ACEOF | |
30525 | cat confdefs.h >>conftest.$ac_ext | |
30526 | cat >>conftest.$ac_ext <<_ACEOF | |
30527 | /* end confdefs.h. */ | |
30528 | ||
10f2d63a | 30529 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30530 | #ifdef __cplusplus |
30531 | extern "C" | |
30532 | #endif | |
10f2d63a | 30533 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30534 | builtin and then its argument prototype would still apply. */ |
30535 | char nanosleep (); | |
30536 | int | |
30537 | main () | |
30538 | { | |
30539 | nanosleep (); | |
30540 | ; | |
30541 | return 0; | |
30542 | } | |
30543 | _ACEOF | |
30544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30546 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30547 | ac_status=$? |
32ddf007 VS |
30548 | grep -v '^ *+' conftest.er1 >conftest.err |
30549 | rm -f conftest.er1 | |
30550 | cat conftest.err >&5 | |
e6cc62c6 VS |
30551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30552 | (exit $ac_status); } && | |
e1293dcf | 30553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30555 | (eval $ac_try) 2>&5 | |
30556 | ac_status=$? | |
30557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30558 | (exit $ac_status); }; } && | |
30559 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30561 | (eval $ac_try) 2>&5 | |
30562 | ac_status=$? | |
30563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30564 | (exit $ac_status); }; }; then | |
30565 | ac_cv_lib_posix4_nanosleep=yes | |
30566 | else | |
30567 | echo "$as_me: failed program was:" >&5 | |
30568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30569 | ||
30570 | ac_cv_lib_posix4_nanosleep=no | |
30571 | fi | |
32ddf007 VS |
30572 | rm -f conftest.err conftest.$ac_objext \ |
30573 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30574 | LIBS=$ac_check_lib_save_LIBS |
30575 | fi | |
30576 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30577 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30578 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30579 | ||
30580 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30581 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30582 | _ACEOF |
4f14bcd8 | 30583 | |
3d63bc3a | 30584 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 30585 | |
10f2d63a | 30586 | else |
10f2d63a | 30587 | |
e6cc62c6 VS |
30588 | |
30589 | for ac_func in usleep | |
4f14bcd8 | 30590 | do |
e6cc62c6 VS |
30591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30592 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30594 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30596 | else | |
30597 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30598 | /* confdefs.h. */ |
30599 | _ACEOF | |
30600 | cat confdefs.h >>conftest.$ac_ext | |
30601 | cat >>conftest.$ac_ext <<_ACEOF | |
30602 | /* end confdefs.h. */ | |
32ddf007 VS |
30603 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30604 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30605 | #define $ac_func innocuous_$ac_func | |
30606 | ||
4f14bcd8 | 30607 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30608 | which can conflict with char $ac_func (); below. |
30609 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30610 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30611 | |
e6cc62c6 VS |
30612 | #ifdef __STDC__ |
30613 | # include <limits.h> | |
30614 | #else | |
30615 | # include <assert.h> | |
30616 | #endif | |
32ddf007 VS |
30617 | |
30618 | #undef $ac_func | |
30619 | ||
4f14bcd8 | 30620 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30621 | #ifdef __cplusplus |
30622 | extern "C" | |
30623 | { | |
30624 | #endif | |
4f14bcd8 | 30625 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30626 | builtin and then its argument prototype would still apply. */ |
30627 | char $ac_func (); | |
4f14bcd8 GD |
30628 | /* The GNU C library defines this for functions which it implements |
30629 | to always fail with ENOSYS. Some functions are actually named | |
30630 | something starting with __ and the normal name is an alias. */ | |
30631 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30632 | choke me | |
30633 | #else | |
e6cc62c6 VS |
30634 | char (*f) () = $ac_func; |
30635 | #endif | |
30636 | #ifdef __cplusplus | |
30637 | } | |
4f14bcd8 GD |
30638 | #endif |
30639 | ||
e6cc62c6 VS |
30640 | int |
30641 | main () | |
30642 | { | |
30643 | return f != $ac_func; | |
30644 | ; | |
30645 | return 0; | |
30646 | } | |
30647 | _ACEOF | |
30648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30650 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30651 | ac_status=$? |
32ddf007 VS |
30652 | grep -v '^ *+' conftest.er1 >conftest.err |
30653 | rm -f conftest.er1 | |
30654 | cat conftest.err >&5 | |
e6cc62c6 VS |
30655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30656 | (exit $ac_status); } && | |
e1293dcf | 30657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30659 | (eval $ac_try) 2>&5 | |
30660 | ac_status=$? | |
30661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30662 | (exit $ac_status); }; } && | |
30663 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30665 | (eval $ac_try) 2>&5 | |
30666 | ac_status=$? | |
30667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30668 | (exit $ac_status); }; }; then | |
30669 | eval "$as_ac_var=yes" | |
30670 | else | |
30671 | echo "$as_me: failed program was:" >&5 | |
30672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30673 | ||
30674 | eval "$as_ac_var=no" | |
30675 | fi | |
32ddf007 VS |
30676 | rm -f conftest.err conftest.$ac_objext \ |
30677 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30678 | fi |
30679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30680 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30681 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30682 | cat >>confdefs.h <<_ACEOF | |
30683 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30684 | _ACEOF | |
30685 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30686 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30687 | _ACEOF |
4f14bcd8 | 30688 | |
698dcdb6 | 30689 | else |
e6cc62c6 VS |
30690 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
30691 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30692 | ||
10f2d63a | 30693 | fi |
4f14bcd8 | 30694 | done |
10f2d63a | 30695 | |
e6cc62c6 VS |
30696 | |
30697 | ||
6232543b | 30698 | fi |
10f2d63a | 30699 | |
e6cc62c6 VS |
30700 | |
30701 | ||
1e487827 | 30702 | fi |
4f14bcd8 | 30703 | done |
703e0a69 | 30704 | |
10f2d63a VZ |
30705 | fi |
30706 | ||
e6cc62c6 VS |
30707 | |
30708 | ||
4f14bcd8 | 30709 | for ac_func in uname gethostname |
70846f0a | 30710 | do |
e6cc62c6 VS |
30711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30712 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30714 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30716 | else | |
30717 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30718 | /* confdefs.h. */ |
30719 | _ACEOF | |
30720 | cat confdefs.h >>conftest.$ac_ext | |
30721 | cat >>conftest.$ac_ext <<_ACEOF | |
30722 | /* end confdefs.h. */ | |
32ddf007 VS |
30723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30725 | #define $ac_func innocuous_$ac_func | |
30726 | ||
70846f0a | 30727 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30728 | which can conflict with char $ac_func (); below. |
30729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30730 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30731 | |
e6cc62c6 VS |
30732 | #ifdef __STDC__ |
30733 | # include <limits.h> | |
30734 | #else | |
30735 | # include <assert.h> | |
30736 | #endif | |
32ddf007 VS |
30737 | |
30738 | #undef $ac_func | |
30739 | ||
70846f0a | 30740 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30741 | #ifdef __cplusplus |
30742 | extern "C" | |
30743 | { | |
30744 | #endif | |
70846f0a | 30745 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30746 | builtin and then its argument prototype would still apply. */ |
30747 | char $ac_func (); | |
70846f0a VZ |
30748 | /* The GNU C library defines this for functions which it implements |
30749 | to always fail with ENOSYS. Some functions are actually named | |
30750 | something starting with __ and the normal name is an alias. */ | |
30751 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30752 | choke me | |
30753 | #else | |
e6cc62c6 VS |
30754 | char (*f) () = $ac_func; |
30755 | #endif | |
30756 | #ifdef __cplusplus | |
30757 | } | |
70846f0a VZ |
30758 | #endif |
30759 | ||
e6cc62c6 VS |
30760 | int |
30761 | main () | |
30762 | { | |
30763 | return f != $ac_func; | |
30764 | ; | |
30765 | return 0; | |
30766 | } | |
30767 | _ACEOF | |
30768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30770 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30771 | ac_status=$? |
32ddf007 VS |
30772 | grep -v '^ *+' conftest.er1 >conftest.err |
30773 | rm -f conftest.er1 | |
30774 | cat conftest.err >&5 | |
e6cc62c6 VS |
30775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30776 | (exit $ac_status); } && | |
e1293dcf | 30777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30779 | (eval $ac_try) 2>&5 | |
30780 | ac_status=$? | |
30781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30782 | (exit $ac_status); }; } && | |
30783 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30785 | (eval $ac_try) 2>&5 | |
30786 | ac_status=$? | |
30787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30788 | (exit $ac_status); }; }; then | |
30789 | eval "$as_ac_var=yes" | |
30790 | else | |
30791 | echo "$as_me: failed program was:" >&5 | |
30792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30793 | ||
30794 | eval "$as_ac_var=no" | |
30795 | fi | |
32ddf007 VS |
30796 | rm -f conftest.err conftest.$ac_objext \ |
30797 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30798 | fi |
30799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30800 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30801 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30802 | cat >>confdefs.h <<_ACEOF | |
30803 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30804 | _ACEOF | |
4f14bcd8 | 30805 | break |
70846f0a VZ |
30806 | fi |
30807 | done | |
30808 | ||
8284b0c5 MB |
30809 | |
30810 | ||
e6cc62c6 VS |
30811 | |
30812 | ac_ext=cc | |
4f14bcd8 | 30813 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30814 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30815 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30816 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30817 | ||
8284b0c5 | 30818 | |
4f14bcd8 GD |
30819 | |
30820 | for ac_func in strtok_r | |
10f2d63a | 30821 | do |
e6cc62c6 VS |
30822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30823 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30825 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30827 | else | |
30828 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30829 | /* confdefs.h. */ |
30830 | _ACEOF | |
30831 | cat confdefs.h >>conftest.$ac_ext | |
30832 | cat >>conftest.$ac_ext <<_ACEOF | |
30833 | /* end confdefs.h. */ | |
32ddf007 VS |
30834 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30836 | #define $ac_func innocuous_$ac_func | |
30837 | ||
4f14bcd8 | 30838 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30839 | which can conflict with char $ac_func (); below. |
30840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30841 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30842 | |
e6cc62c6 VS |
30843 | #ifdef __STDC__ |
30844 | # include <limits.h> | |
30845 | #else | |
30846 | # include <assert.h> | |
30847 | #endif | |
32ddf007 VS |
30848 | |
30849 | #undef $ac_func | |
30850 | ||
4f14bcd8 GD |
30851 | /* Override any gcc2 internal prototype to avoid an error. */ |
30852 | #ifdef __cplusplus | |
30853 | extern "C" | |
e6cc62c6 | 30854 | { |
4f14bcd8 GD |
30855 | #endif |
30856 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
30857 | builtin and then its argument prototype would still apply. */ |
30858 | char $ac_func (); | |
4f14bcd8 GD |
30859 | /* The GNU C library defines this for functions which it implements |
30860 | to always fail with ENOSYS. Some functions are actually named | |
30861 | something starting with __ and the normal name is an alias. */ | |
30862 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30863 | choke me | |
30864 | #else | |
e6cc62c6 VS |
30865 | char (*f) () = $ac_func; |
30866 | #endif | |
30867 | #ifdef __cplusplus | |
30868 | } | |
4f14bcd8 GD |
30869 | #endif |
30870 | ||
e6cc62c6 VS |
30871 | int |
30872 | main () | |
30873 | { | |
30874 | return f != $ac_func; | |
30875 | ; | |
30876 | return 0; | |
30877 | } | |
30878 | _ACEOF | |
30879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30881 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30882 | ac_status=$? |
32ddf007 VS |
30883 | grep -v '^ *+' conftest.er1 >conftest.err |
30884 | rm -f conftest.er1 | |
30885 | cat conftest.err >&5 | |
e6cc62c6 VS |
30886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30887 | (exit $ac_status); } && | |
e1293dcf | 30888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30890 | (eval $ac_try) 2>&5 | |
30891 | ac_status=$? | |
30892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30893 | (exit $ac_status); }; } && | |
30894 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30896 | (eval $ac_try) 2>&5 | |
30897 | ac_status=$? | |
30898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30899 | (exit $ac_status); }; }; then | |
30900 | eval "$as_ac_var=yes" | |
30901 | else | |
30902 | echo "$as_me: failed program was:" >&5 | |
30903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30904 | ||
30905 | eval "$as_ac_var=no" | |
30906 | fi | |
32ddf007 VS |
30907 | rm -f conftest.err conftest.$ac_objext \ |
30908 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30909 | fi |
30910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30911 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30912 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30913 | cat >>confdefs.h <<_ACEOF | |
30914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30915 | _ACEOF | |
4f14bcd8 | 30916 | |
10f2d63a VZ |
30917 | fi |
30918 | done | |
30919 | ||
8284b0c5 | 30920 | |
4f14bcd8 | 30921 | ac_ext=c |
4f14bcd8 | 30922 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 30926 | |
5c6fa7d2 | 30927 | |
8284b0c5 | 30928 | INET_LINK= |
e6cc62c6 | 30929 | |
4f14bcd8 GD |
30930 | for ac_func in inet_addr |
30931 | do | |
e6cc62c6 VS |
30932 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30933 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30934 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30935 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30937 | else | |
30938 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30939 | /* confdefs.h. */ |
30940 | _ACEOF | |
30941 | cat confdefs.h >>conftest.$ac_ext | |
30942 | cat >>conftest.$ac_ext <<_ACEOF | |
30943 | /* end confdefs.h. */ | |
32ddf007 VS |
30944 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30946 | #define $ac_func innocuous_$ac_func | |
30947 | ||
4f14bcd8 | 30948 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30949 | which can conflict with char $ac_func (); below. |
30950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30951 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30952 | |
e6cc62c6 VS |
30953 | #ifdef __STDC__ |
30954 | # include <limits.h> | |
30955 | #else | |
30956 | # include <assert.h> | |
30957 | #endif | |
32ddf007 VS |
30958 | |
30959 | #undef $ac_func | |
30960 | ||
10f2d63a | 30961 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30962 | #ifdef __cplusplus |
30963 | extern "C" | |
30964 | { | |
30965 | #endif | |
10f2d63a | 30966 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30967 | builtin and then its argument prototype would still apply. */ |
30968 | char $ac_func (); | |
4f14bcd8 GD |
30969 | /* The GNU C library defines this for functions which it implements |
30970 | to always fail with ENOSYS. Some functions are actually named | |
30971 | something starting with __ and the normal name is an alias. */ | |
30972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30973 | choke me | |
30974 | #else | |
e6cc62c6 VS |
30975 | char (*f) () = $ac_func; |
30976 | #endif | |
30977 | #ifdef __cplusplus | |
30978 | } | |
4f14bcd8 GD |
30979 | #endif |
30980 | ||
e6cc62c6 VS |
30981 | int |
30982 | main () | |
30983 | { | |
30984 | return f != $ac_func; | |
30985 | ; | |
30986 | return 0; | |
30987 | } | |
30988 | _ACEOF | |
30989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30991 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30992 | ac_status=$? |
32ddf007 VS |
30993 | grep -v '^ *+' conftest.er1 >conftest.err |
30994 | rm -f conftest.er1 | |
30995 | cat conftest.err >&5 | |
e6cc62c6 VS |
30996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30997 | (exit $ac_status); } && | |
e1293dcf | 30998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
30999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31000 | (eval $ac_try) 2>&5 | |
31001 | ac_status=$? | |
31002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31003 | (exit $ac_status); }; } && | |
31004 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31006 | (eval $ac_try) 2>&5 | |
31007 | ac_status=$? | |
31008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31009 | (exit $ac_status); }; }; then | |
31010 | eval "$as_ac_var=yes" | |
31011 | else | |
31012 | echo "$as_me: failed program was:" >&5 | |
31013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31014 | ||
31015 | eval "$as_ac_var=no" | |
31016 | fi | |
32ddf007 VS |
31017 | rm -f conftest.err conftest.$ac_objext \ |
31018 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31019 | fi |
31020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31021 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31022 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31023 | cat >>confdefs.h <<_ACEOF | |
31024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31025 | _ACEOF | |
31026 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31027 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 31028 | _ACEOF |
10f2d63a VZ |
31029 | |
31030 | else | |
e6cc62c6 VS |
31031 | |
31032 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31033 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31034 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31036 | else |
e6cc62c6 | 31037 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31038 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 31039 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31040 | /* confdefs.h. */ |
31041 | _ACEOF | |
31042 | cat confdefs.h >>conftest.$ac_ext | |
31043 | cat >>conftest.$ac_ext <<_ACEOF | |
31044 | /* end confdefs.h. */ | |
31045 | ||
10f2d63a | 31046 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31047 | #ifdef __cplusplus |
31048 | extern "C" | |
31049 | #endif | |
10f2d63a | 31050 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31051 | builtin and then its argument prototype would still apply. */ |
31052 | char inet_addr (); | |
31053 | int | |
31054 | main () | |
31055 | { | |
31056 | inet_addr (); | |
31057 | ; | |
31058 | return 0; | |
31059 | } | |
31060 | _ACEOF | |
31061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31063 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31064 | ac_status=$? |
32ddf007 VS |
31065 | grep -v '^ *+' conftest.er1 >conftest.err |
31066 | rm -f conftest.er1 | |
31067 | cat conftest.err >&5 | |
e6cc62c6 VS |
31068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31069 | (exit $ac_status); } && | |
e1293dcf | 31070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31072 | (eval $ac_try) 2>&5 | |
31073 | ac_status=$? | |
31074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31075 | (exit $ac_status); }; } && | |
31076 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31078 | (eval $ac_try) 2>&5 | |
31079 | ac_status=$? | |
31080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31081 | (exit $ac_status); }; }; then | |
31082 | ac_cv_lib_nsl_inet_addr=yes | |
31083 | else | |
31084 | echo "$as_me: failed program was:" >&5 | |
31085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31086 | ||
31087 | ac_cv_lib_nsl_inet_addr=no | |
31088 | fi | |
32ddf007 VS |
31089 | rm -f conftest.err conftest.$ac_objext \ |
31090 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31091 | LIBS=$ac_check_lib_save_LIBS |
31092 | fi | |
31093 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31094 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31095 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 31096 | INET_LINK="nsl" |
10f2d63a | 31097 | else |
0e012a93 VZ |
31098 | |
31099 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
31100 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
31101 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31103 | else |
e6cc62c6 | 31104 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31105 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 31106 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31107 | /* confdefs.h. */ |
31108 | _ACEOF | |
31109 | cat confdefs.h >>conftest.$ac_ext | |
31110 | cat >>conftest.$ac_ext <<_ACEOF | |
31111 | /* end confdefs.h. */ | |
31112 | ||
5c6fa7d2 | 31113 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31114 | #ifdef __cplusplus |
31115 | extern "C" | |
31116 | #endif | |
5c6fa7d2 | 31117 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31118 | builtin and then its argument prototype would still apply. */ |
31119 | char inet_addr (); | |
31120 | int | |
31121 | main () | |
31122 | { | |
31123 | inet_addr (); | |
31124 | ; | |
31125 | return 0; | |
31126 | } | |
31127 | _ACEOF | |
31128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31130 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31131 | ac_status=$? |
32ddf007 VS |
31132 | grep -v '^ *+' conftest.er1 >conftest.err |
31133 | rm -f conftest.er1 | |
31134 | cat conftest.err >&5 | |
e6cc62c6 VS |
31135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31136 | (exit $ac_status); } && | |
e1293dcf | 31137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31139 | (eval $ac_try) 2>&5 | |
31140 | ac_status=$? | |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31142 | (exit $ac_status); }; } && | |
31143 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; }; then | |
31149 | ac_cv_lib_resolv_inet_addr=yes | |
31150 | else | |
31151 | echo "$as_me: failed program was:" >&5 | |
31152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31153 | ||
31154 | ac_cv_lib_resolv_inet_addr=no | |
31155 | fi | |
32ddf007 VS |
31156 | rm -f conftest.err conftest.$ac_objext \ |
31157 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31158 | LIBS=$ac_check_lib_save_LIBS |
31159 | fi | |
31160 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31161 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31162 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 31163 | INET_LINK="resolv" |
698dcdb6 | 31164 | else |
0e012a93 VZ |
31165 | |
31166 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
31167 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
31168 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 31170 | else |
e6cc62c6 | 31171 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 31172 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 31173 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31174 | /* confdefs.h. */ |
31175 | _ACEOF | |
31176 | cat confdefs.h >>conftest.$ac_ext | |
31177 | cat >>conftest.$ac_ext <<_ACEOF | |
31178 | /* end confdefs.h. */ | |
31179 | ||
3c011993 | 31180 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31181 | #ifdef __cplusplus |
31182 | extern "C" | |
31183 | #endif | |
3c011993 | 31184 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31185 | builtin and then its argument prototype would still apply. */ |
31186 | char inet_addr (); | |
31187 | int | |
31188 | main () | |
31189 | { | |
31190 | inet_addr (); | |
31191 | ; | |
31192 | return 0; | |
31193 | } | |
31194 | _ACEOF | |
31195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31197 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31198 | ac_status=$? |
32ddf007 VS |
31199 | grep -v '^ *+' conftest.er1 >conftest.err |
31200 | rm -f conftest.er1 | |
31201 | cat conftest.err >&5 | |
e6cc62c6 VS |
31202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31203 | (exit $ac_status); } && | |
e1293dcf | 31204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31206 | (eval $ac_try) 2>&5 | |
31207 | ac_status=$? | |
31208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31209 | (exit $ac_status); }; } && | |
31210 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31212 | (eval $ac_try) 2>&5 | |
31213 | ac_status=$? | |
31214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31215 | (exit $ac_status); }; }; then | |
31216 | ac_cv_lib_socket_inet_addr=yes | |
31217 | else | |
31218 | echo "$as_me: failed program was:" >&5 | |
31219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31220 | ||
31221 | ac_cv_lib_socket_inet_addr=no | |
31222 | fi | |
32ddf007 VS |
31223 | rm -f conftest.err conftest.$ac_objext \ |
31224 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31225 | LIBS=$ac_check_lib_save_LIBS |
31226 | fi | |
31227 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31228 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31229 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31230 | INET_LINK="socket" | |
4f14bcd8 | 31231 | |
8284b0c5 | 31232 | fi |
e6cc62c6 | 31233 | |
698dcdb6 | 31234 | |
0e012a93 | 31235 | |
7b4a847f | 31236 | fi |
e6cc62c6 VS |
31237 | |
31238 | ||
0e012a93 | 31239 | |
a0b9e27f | 31240 | fi |
579d8138 | 31241 | |
e6cc62c6 VS |
31242 | |
31243 | ||
5c6fa7d2 | 31244 | fi |
e6cc62c6 VS |
31245 | done |
31246 | ||
31247 | ||
31248 | ||
31249 | for ac_func in inet_aton | |
31250 | do | |
31251 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31252 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31253 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31254 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31256 | else | |
31257 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31258 | /* confdefs.h. */ |
31259 | _ACEOF | |
31260 | cat confdefs.h >>conftest.$ac_ext | |
31261 | cat >>conftest.$ac_ext <<_ACEOF | |
31262 | /* end confdefs.h. */ | |
32ddf007 VS |
31263 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31265 | #define $ac_func innocuous_$ac_func | |
31266 | ||
e6cc62c6 VS |
31267 | /* System header to define __stub macros and hopefully few prototypes, |
31268 | which can conflict with char $ac_func (); below. | |
31269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31270 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31271 | |
e6cc62c6 VS |
31272 | #ifdef __STDC__ |
31273 | # include <limits.h> | |
31274 | #else | |
31275 | # include <assert.h> | |
31276 | #endif | |
32ddf007 VS |
31277 | |
31278 | #undef $ac_func | |
31279 | ||
e6cc62c6 VS |
31280 | /* Override any gcc2 internal prototype to avoid an error. */ |
31281 | #ifdef __cplusplus | |
31282 | extern "C" | |
31283 | { | |
31284 | #endif | |
31285 | /* We use char because int might match the return type of a gcc2 | |
31286 | builtin and then its argument prototype would still apply. */ | |
31287 | char $ac_func (); | |
31288 | /* The GNU C library defines this for functions which it implements | |
31289 | to always fail with ENOSYS. Some functions are actually named | |
31290 | something starting with __ and the normal name is an alias. */ | |
31291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31292 | choke me | |
31293 | #else | |
31294 | char (*f) () = $ac_func; | |
31295 | #endif | |
31296 | #ifdef __cplusplus | |
31297 | } | |
31298 | #endif | |
31299 | ||
31300 | int | |
31301 | main () | |
31302 | { | |
31303 | return f != $ac_func; | |
31304 | ; | |
31305 | return 0; | |
31306 | } | |
31307 | _ACEOF | |
31308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31310 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31311 | ac_status=$? |
32ddf007 VS |
31312 | grep -v '^ *+' conftest.er1 >conftest.err |
31313 | rm -f conftest.er1 | |
31314 | cat conftest.err >&5 | |
e6cc62c6 VS |
31315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31316 | (exit $ac_status); } && | |
e1293dcf | 31317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31319 | (eval $ac_try) 2>&5 | |
31320 | ac_status=$? | |
31321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31322 | (exit $ac_status); }; } && | |
31323 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31325 | (eval $ac_try) 2>&5 | |
31326 | ac_status=$? | |
31327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31328 | (exit $ac_status); }; }; then | |
31329 | eval "$as_ac_var=yes" | |
31330 | else | |
31331 | echo "$as_me: failed program was:" >&5 | |
31332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31333 | ||
31334 | eval "$as_ac_var=no" | |
31335 | fi | |
32ddf007 VS |
31336 | rm -f conftest.err conftest.$ac_objext \ |
31337 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31338 | fi |
31339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31340 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31342 | cat >>confdefs.h <<_ACEOF | |
31343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31344 | _ACEOF | |
31345 | cat >>confdefs.h <<\_ACEOF | |
31346 | #define HAVE_INET_ATON 1 | |
31347 | _ACEOF | |
31348 | ||
31349 | else | |
31350 | ||
31351 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31352 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31353 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31354 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31356 | else | |
31357 | ac_check_lib_save_LIBS=$LIBS | |
31358 | LIBS="-l$INET_LINK $LIBS" | |
31359 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31360 | /* confdefs.h. */ |
31361 | _ACEOF | |
31362 | cat confdefs.h >>conftest.$ac_ext | |
31363 | cat >>conftest.$ac_ext <<_ACEOF | |
31364 | /* end confdefs.h. */ | |
31365 | ||
31366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31367 | #ifdef __cplusplus | |
31368 | extern "C" | |
31369 | #endif | |
31370 | /* We use char because int might match the return type of a gcc2 | |
31371 | builtin and then its argument prototype would still apply. */ | |
31372 | char inet_aton (); | |
31373 | int | |
31374 | main () | |
31375 | { | |
31376 | inet_aton (); | |
31377 | ; | |
31378 | return 0; | |
31379 | } | |
31380 | _ACEOF | |
31381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31383 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31384 | ac_status=$? |
32ddf007 VS |
31385 | grep -v '^ *+' conftest.er1 >conftest.err |
31386 | rm -f conftest.er1 | |
31387 | cat conftest.err >&5 | |
e6cc62c6 VS |
31388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31389 | (exit $ac_status); } && | |
e1293dcf | 31390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31392 | (eval $ac_try) 2>&5 | |
31393 | ac_status=$? | |
31394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31395 | (exit $ac_status); }; } && | |
31396 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31398 | (eval $ac_try) 2>&5 | |
31399 | ac_status=$? | |
31400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31401 | (exit $ac_status); }; }; then | |
31402 | eval "$as_ac_Lib=yes" | |
31403 | else | |
31404 | echo "$as_me: failed program was:" >&5 | |
31405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31406 | ||
31407 | eval "$as_ac_Lib=no" | |
31408 | fi | |
32ddf007 VS |
31409 | rm -f conftest.err conftest.$ac_objext \ |
31410 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31411 | LIBS=$ac_check_lib_save_LIBS |
31412 | fi | |
31413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31414 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31415 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31416 | cat >>confdefs.h <<\_ACEOF | |
31417 | #define HAVE_INET_ATON 1 | |
31418 | _ACEOF | |
52127426 | 31419 | |
a0b9e27f | 31420 | fi |
247f5006 | 31421 | |
8284b0c5 | 31422 | |
698dcdb6 | 31423 | fi |
4f14bcd8 GD |
31424 | done |
31425 | ||
8284b0c5 | 31426 | |
e6cc62c6 VS |
31427 | if test "x$INET_LINK" != "x"; then |
31428 | cat >>confdefs.h <<\_ACEOF | |
31429 | #define HAVE_INET_ADDR 1 | |
31430 | _ACEOF | |
31431 | ||
31432 | INET_LINK=" -l$INET_LINK" | |
31433 | fi | |
31434 | ||
31435 | fi | |
a0b9e27f | 31436 | |
a0b9e27f | 31437 | |
4f14bcd8 | 31438 | |
edd891e2 VS |
31439 | EXTRALIBS_ESD= |
31440 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31441 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31442 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31444 | else | |
31445 | ac_check_lib_save_LIBS=$LIBS | |
31446 | LIBS="-lesd $LIBS" | |
31447 | cat >conftest.$ac_ext <<_ACEOF | |
edd891e2 VS |
31448 | /* confdefs.h. */ |
31449 | _ACEOF | |
31450 | cat confdefs.h >>conftest.$ac_ext | |
31451 | cat >>conftest.$ac_ext <<_ACEOF | |
31452 | /* end confdefs.h. */ | |
31453 | ||
31454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31455 | #ifdef __cplusplus | |
31456 | extern "C" | |
31457 | #endif | |
31458 | /* We use char because int might match the return type of a gcc2 | |
31459 | builtin and then its argument prototype would still apply. */ | |
31460 | char esd_close (); | |
31461 | int | |
31462 | main () | |
31463 | { | |
31464 | esd_close (); | |
31465 | ; | |
31466 | return 0; | |
31467 | } | |
31468 | _ACEOF | |
31469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31471 | (eval $ac_link) 2>conftest.er1 |
edd891e2 | 31472 | ac_status=$? |
32ddf007 VS |
31473 | grep -v '^ *+' conftest.er1 >conftest.err |
31474 | rm -f conftest.er1 | |
31475 | cat conftest.err >&5 | |
edd891e2 VS |
31476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31477 | (exit $ac_status); } && | |
e1293dcf | 31478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31480 | (eval $ac_try) 2>&5 | |
31481 | ac_status=$? | |
31482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31483 | (exit $ac_status); }; } && | |
31484 | { ac_try='test -s conftest$ac_exeext' | |
edd891e2 VS |
31485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31486 | (eval $ac_try) 2>&5 | |
31487 | ac_status=$? | |
31488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31489 | (exit $ac_status); }; }; then | |
31490 | ac_cv_lib_esd_esd_close=yes | |
31491 | else | |
31492 | echo "$as_me: failed program was:" >&5 | |
31493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31494 | ||
31495 | ac_cv_lib_esd_esd_close=no | |
31496 | fi | |
32ddf007 VS |
31497 | rm -f conftest.err conftest.$ac_objext \ |
31498 | conftest$ac_exeext conftest.$ac_ext | |
edd891e2 VS |
31499 | LIBS=$ac_check_lib_save_LIBS |
31500 | fi | |
31501 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31502 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31503 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31504 | ||
31505 | ||
31506 | for ac_header in esd.h | |
31507 | do | |
31508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31514 | fi | |
edd891e2 VS |
31515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
31517 | else |
31518 | # Is the header compilable? | |
edd891e2 VS |
31519 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
31520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 31521 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31522 | /* confdefs.h. */ |
31523 | _ACEOF | |
31524 | cat confdefs.h >>conftest.$ac_ext | |
31525 | cat >>conftest.$ac_ext <<_ACEOF | |
31526 | /* end confdefs.h. */ | |
31527 | $ac_includes_default | |
edd891e2 | 31528 | #include <$ac_header> |
e6cc62c6 VS |
31529 | _ACEOF |
31530 | rm -f conftest.$ac_objext | |
31531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31532 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31533 | ac_status=$? |
32ddf007 VS |
31534 | grep -v '^ *+' conftest.er1 >conftest.err |
31535 | rm -f conftest.er1 | |
31536 | cat conftest.err >&5 | |
e6cc62c6 VS |
31537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31538 | (exit $ac_status); } && | |
e1293dcf | 31539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31541 | (eval $ac_try) 2>&5 | |
31542 | ac_status=$? | |
31543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31544 | (exit $ac_status); }; } && | |
31545 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31547 | (eval $ac_try) 2>&5 | |
31548 | ac_status=$? | |
31549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31550 | (exit $ac_status); }; }; then | |
31551 | ac_header_compiler=yes | |
31552 | else | |
31553 | echo "$as_me: failed program was:" >&5 | |
31554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31555 | ||
31556 | ac_header_compiler=no | |
31557 | fi | |
32ddf007 | 31558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31559 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31560 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31561 | ||
31562 | # Is the header present? | |
edd891e2 VS |
31563 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
31564 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 31565 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31566 | /* confdefs.h. */ |
31567 | _ACEOF | |
31568 | cat confdefs.h >>conftest.$ac_ext | |
31569 | cat >>conftest.$ac_ext <<_ACEOF | |
31570 | /* end confdefs.h. */ | |
edd891e2 | 31571 | #include <$ac_header> |
e6cc62c6 VS |
31572 | _ACEOF |
31573 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31574 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31575 | ac_status=$? | |
31576 | grep -v '^ *+' conftest.er1 >conftest.err | |
31577 | rm -f conftest.er1 | |
31578 | cat conftest.err >&5 | |
31579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31580 | (exit $ac_status); } >/dev/null; then | |
31581 | if test -s conftest.err; then | |
31582 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 31583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31584 | else |
31585 | ac_cpp_err= | |
31586 | fi | |
a0b9e27f | 31587 | else |
e6cc62c6 VS |
31588 | ac_cpp_err=yes |
31589 | fi | |
31590 | if test -z "$ac_cpp_err"; then | |
31591 | ac_header_preproc=yes | |
31592 | else | |
31593 | echo "$as_me: failed program was:" >&5 | |
31594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31595 | ||
31596 | ac_header_preproc=no | |
31597 | fi | |
31598 | rm -f conftest.err conftest.$ac_ext | |
31599 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31600 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31601 | ||
31602 | # So? What about this header? | |
32ddf007 VS |
31603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31604 | yes:no: ) | |
edd891e2 VS |
31605 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31606 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
31607 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31608 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31609 | ac_header_preproc=yes | |
e6cc62c6 | 31610 | ;; |
32ddf007 | 31611 | no:yes:* ) |
edd891e2 VS |
31612 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31613 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
31614 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31615 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31616 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31617 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31618 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31619 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
edd891e2 VS |
31620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31621 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
31622 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31623 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31624 | ( |
31625 | cat <<\_ASBOX | |
32ddf007 VS |
31626 | ## ----------------------------------------- ## |
31627 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31628 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31629 | _ASBOX |
31630 | ) | | |
31631 | sed "s/^/$as_me: WARNING: /" >&2 | |
31632 | ;; | |
31633 | esac | |
edd891e2 VS |
31634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
31635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31638 | else | |
32ddf007 | 31639 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 31640 | fi |
edd891e2 VS |
31641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31642 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 31643 | |
e6cc62c6 | 31644 | fi |
edd891e2 VS |
31645 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31646 | cat >>confdefs.h <<_ACEOF | |
31647 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 31648 | _ACEOF |
e6cc62c6 | 31649 | |
edd891e2 | 31650 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 31651 | |
a0b9e27f | 31652 | fi |
247f5006 | 31653 | |
edd891e2 | 31654 | done |
8284b0c5 | 31655 | |
4f14bcd8 | 31656 | |
6232543b | 31657 | fi |
10f2d63a | 31658 | |
703e0a69 | 31659 | |
8284b0c5 | 31660 | |
d19d1899 MB |
31661 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
31662 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31663 | cat >conftest.$ac_ext <<_ACEOF | |
d19d1899 MB |
31664 | /* confdefs.h. */ |
31665 | _ACEOF | |
31666 | cat confdefs.h >>conftest.$ac_ext | |
31667 | cat >>conftest.$ac_ext <<_ACEOF | |
31668 | /* end confdefs.h. */ | |
31669 | #ifdef __linux__ | |
31670 | #include <linux/cdrom.h> | |
31671 | #else | |
31672 | /* For Solaris */ | |
31673 | #include <sys/cdio.h> | |
31674 | #endif | |
31675 | ||
31676 | int | |
31677 | main () | |
31678 | { | |
31679 | struct cdrom_tocentry entry, old_entry; | |
31680 | ; | |
31681 | return 0; | |
31682 | } | |
31683 | _ACEOF | |
31684 | rm -f conftest.$ac_objext | |
31685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31686 | (eval $ac_compile) 2>conftest.er1 |
d19d1899 | 31687 | ac_status=$? |
32ddf007 VS |
31688 | grep -v '^ *+' conftest.er1 >conftest.err |
31689 | rm -f conftest.er1 | |
31690 | cat conftest.err >&5 | |
d19d1899 MB |
31691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31692 | (exit $ac_status); } && | |
e1293dcf | 31693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31695 | (eval $ac_try) 2>&5 | |
31696 | ac_status=$? | |
31697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31698 | (exit $ac_status); }; } && | |
31699 | { ac_try='test -s conftest.$ac_objext' | |
d19d1899 MB |
31700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31701 | (eval $ac_try) 2>&5 | |
31702 | ac_status=$? | |
31703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31704 | (exit $ac_status); }; }; then | |
31705 | echo "$as_me:$LINENO: result: yes" >&5 | |
31706 | echo "${ECHO_T}yes" >&6 | |
31707 | cat >>confdefs.h <<\_ACEOF | |
31708 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31709 | _ACEOF | |
31710 | ||
31711 | else | |
31712 | echo "$as_me: failed program was:" >&5 | |
31713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31714 | ||
31715 | echo "$as_me:$LINENO: result: no" >&5 | |
31716 | echo "${ECHO_T}no" >&6 | |
31717 | fi | |
32ddf007 | 31718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31719 | |
31720 | ||
31721 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
31722 | # This file is a shell script that caches the results of configure |
31723 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
31724 | # scripts and configure runs, see configure's option --config-cache. |
31725 | # It is not useful on other systems. If it contains results you don't | |
31726 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 31727 | # |
e6cc62c6 VS |
31728 | # config.status only pays attention to the cache file if you give it |
31729 | # the --recheck option to rerun configure. | |
4f14bcd8 | 31730 | # |
e6cc62c6 VS |
31731 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
31732 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31733 | # following values. | |
31734 | ||
31735 | _ACEOF | |
31736 | ||
4f14bcd8 GD |
31737 | # The following way of writing the cache mishandles newlines in values, |
31738 | # but we know of no workaround that is simple, portable, and efficient. | |
31739 | # So, don't put newlines in cache variables' values. | |
31740 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31741 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
31742 | { |
31743 | (set) 2>&1 | | |
31744 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31745 | *ac_space=\ *) | |
31746 | # `set' does not quote correctly, so add quotes (double-quote | |
31747 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31748 | sed -n \ | |
32ddf007 VS |
31749 | "s/'/'\\\\''/g; |
31750 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
31751 | ;; |
31752 | *) | |
31753 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31754 | sed -n \ | |
32ddf007 | 31755 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
31756 | ;; |
31757 | esac; | |
31758 | } | | |
31759 | sed ' | |
31760 | t clear | |
31761 | : clear | |
31762 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31763 | t end | |
31764 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31765 | : end' >>confcache | |
31766 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 31767 | if test -w $cache_file; then |
e6cc62c6 VS |
31768 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
31769 | cat confcache >$cache_file | |
f6bcfd97 | 31770 | else |
4f14bcd8 | 31771 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 31772 | fi |
4f14bcd8 GD |
31773 | fi |
31774 | rm -f confcache | |
f6bcfd97 | 31775 | |
8284b0c5 | 31776 | |
009fead0 | 31777 | CPP_MT_FLAG= |
73d617c9 | 31778 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 31779 | |
e6cc62c6 | 31780 | |
7274f1c7 | 31781 | THREADS_LINK= |
009fead0 | 31782 | THREADS_CFLAGS= |
7274f1c7 RL |
31783 | |
31784 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 31785 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
31786 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
31787 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
31788 | wxUSE_THREADS="no" |
31789 | fi | |
4f14bcd8 | 31790 | fi |
4f14bcd8 | 31791 | |
7274f1c7 | 31792 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31793 | |
31794 | ||
009fead0 VZ |
31795 | THREAD_OPTS="-pthread" |
31796 | case "${host}" in | |
31797 | *-*-solaris2* | *-*-sunos4* ) | |
31798 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 31799 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
31800 | else |
31801 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31802 | fi | |
31803 | ;; | |
31804 | *-*-freebsd*) | |
31805 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31806 | ;; | |
17234b26 MB |
31807 | *-*-darwin* | *-*-cygwin* ) |
31808 | THREAD_OPTS="" | |
4101db81 | 31809 | ;; |
8f4a9a10 | 31810 | *-*-aix*) |
009fead0 VZ |
31811 | THREAD_OPTS="pthreads" |
31812 | ;; | |
4f5a7f74 VZ |
31813 | *-hp-hpux* ) |
31814 | if test "x$GCC" != "xyes"; then | |
31815 | THREAD_OPTS="" | |
31816 | fi | |
89e3b3e4 VZ |
31817 | ;; |
31818 | ||
31819 | *-*-irix* ) | |
31820 | if test "x$GCC" = "xyes"; then | |
31821 | THREAD_OPTS="" | |
31822 | fi | |
31823 | ;; | |
31824 | ||
31825 | *-*-*UnixWare*) | |
31826 | if test "x$GCC" != "xyes"; then | |
31827 | THREAD_OPTS="-Ethread" | |
31828 | fi | |
31829 | ;; | |
009fead0 | 31830 | esac |
4f14bcd8 | 31831 | |
02a1dfba | 31832 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 31833 | |
009fead0 VZ |
31834 | THREADS_OK=no |
31835 | for flag in $THREAD_OPTS; do | |
31836 | case $flag in | |
31837 | none) | |
e6cc62c6 VS |
31838 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
31839 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 31840 | ;; |
698dcdb6 | 31841 | |
009fead0 | 31842 | -*) |
e6cc62c6 VS |
31843 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
31844 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
31845 | THREADS_CFLAGS="$flag" |
31846 | ;; | |
698dcdb6 | 31847 | |
009fead0 | 31848 | *) |
e6cc62c6 VS |
31849 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
31850 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
31851 | THREADS_LINK="-l$flag" |
31852 | ;; | |
31853 | esac | |
10f2d63a | 31854 | |
009fead0 VZ |
31855 | save_LIBS="$LIBS" |
31856 | save_CFLAGS="$CFLAGS" | |
31857 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 31858 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 31859 | |
e6cc62c6 | 31860 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31861 | /* confdefs.h. */ |
31862 | _ACEOF | |
31863 | cat confdefs.h >>conftest.$ac_ext | |
31864 | cat >>conftest.$ac_ext <<_ACEOF | |
31865 | /* end confdefs.h. */ | |
009fead0 | 31866 | #include <pthread.h> |
e6cc62c6 VS |
31867 | int |
31868 | main () | |
31869 | { | |
009fead0 | 31870 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
31871 | ; |
31872 | return 0; | |
31873 | } | |
31874 | _ACEOF | |
31875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31877 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31878 | ac_status=$? |
32ddf007 VS |
31879 | grep -v '^ *+' conftest.er1 >conftest.err |
31880 | rm -f conftest.er1 | |
31881 | cat conftest.err >&5 | |
e6cc62c6 VS |
31882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31883 | (exit $ac_status); } && | |
e1293dcf | 31884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
31885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31886 | (eval $ac_try) 2>&5 | |
31887 | ac_status=$? | |
31888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31889 | (exit $ac_status); }; } && | |
31890 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31892 | (eval $ac_try) 2>&5 | |
31893 | ac_status=$? | |
31894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31895 | (exit $ac_status); }; }; then | |
009fead0 | 31896 | THREADS_OK=yes |
10f2d63a | 31897 | else |
e6cc62c6 VS |
31898 | echo "$as_me: failed program was:" >&5 |
31899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31900 | ||
6232543b | 31901 | fi |
32ddf007 VS |
31902 | rm -f conftest.err conftest.$ac_objext \ |
31903 | conftest$ac_exeext conftest.$ac_ext | |
698dcdb6 | 31904 | |
009fead0 VZ |
31905 | LIBS="$save_LIBS" |
31906 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 31907 | |
e6cc62c6 VS |
31908 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
31909 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
31910 | if test "x$THREADS_OK" = "xyes"; then |
31911 | break; | |
31912 | fi | |
d9b9876f | 31913 | |
009fead0 VZ |
31914 | THREADS_LINK="" |
31915 | THREADS_CFLAGS="" | |
31916 | done | |
4f14bcd8 | 31917 | |
009fead0 VZ |
31918 | if test "x$THREADS_OK" != "xyes"; then |
31919 | wxUSE_THREADS=no | |
e6cc62c6 VS |
31920 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
31921 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 31922 | else |
db82f09e VZ |
31923 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
31924 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 31925 | |
e6cc62c6 VS |
31926 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
31927 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
31928 | flag=no |
31929 | case "${host}" in | |
2b5f62a0 VZ |
31930 | *-aix*) |
31931 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31932 | flag="-D_THREAD_SAFE" | |
31933 | ;; | |
31934 | *-freebsd*) | |
009fead0 VZ |
31935 | flag="-D_THREAD_SAFE" |
31936 | ;; | |
06313569 GD |
31937 | *-hp-hpux* ) |
31938 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
31939 | if test "x$GCC" != "xyes"; then |
31940 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
31941 | fi | |
06313569 | 31942 | ;; |
009fead0 VZ |
31943 | *solaris* | alpha*-osf*) |
31944 | flag="-D_REENTRANT" | |
31945 | ;; | |
31946 | esac | |
e6cc62c6 VS |
31947 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
31948 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 31949 | if test "x$flag" != xno; then |
04727afd | 31950 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
31951 | fi |
31952 | ||
009fead0 | 31953 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 31954 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
31955 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
31956 | fi | |
31957 | fi | |
4f14bcd8 | 31958 | fi |
4f14bcd8 | 31959 | |
7274f1c7 | 31960 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31961 | |
31962 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 31963 | do |
e6cc62c6 VS |
31964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31969 | else | |
31970 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31971 | /* confdefs.h. */ |
31972 | _ACEOF | |
31973 | cat confdefs.h >>conftest.$ac_ext | |
31974 | cat >>conftest.$ac_ext <<_ACEOF | |
31975 | /* end confdefs.h. */ | |
32ddf007 VS |
31976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31978 | #define $ac_func innocuous_$ac_func | |
31979 | ||
4f14bcd8 | 31980 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31981 | which can conflict with char $ac_func (); below. |
31982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31983 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31984 | |
e6cc62c6 VS |
31985 | #ifdef __STDC__ |
31986 | # include <limits.h> | |
31987 | #else | |
31988 | # include <assert.h> | |
31989 | #endif | |
32ddf007 VS |
31990 | |
31991 | #undef $ac_func | |
31992 | ||
4f14bcd8 | 31993 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31994 | #ifdef __cplusplus |
31995 | extern "C" | |
31996 | { | |
31997 | #endif | |
4f14bcd8 | 31998 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31999 | builtin and then its argument prototype would still apply. */ |
32000 | char $ac_func (); | |
4f14bcd8 GD |
32001 | /* The GNU C library defines this for functions which it implements |
32002 | to always fail with ENOSYS. Some functions are actually named | |
32003 | something starting with __ and the normal name is an alias. */ | |
32004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32005 | choke me | |
32006 | #else | |
e6cc62c6 VS |
32007 | char (*f) () = $ac_func; |
32008 | #endif | |
32009 | #ifdef __cplusplus | |
32010 | } | |
4f14bcd8 GD |
32011 | #endif |
32012 | ||
e6cc62c6 VS |
32013 | int |
32014 | main () | |
32015 | { | |
32016 | return f != $ac_func; | |
32017 | ; | |
32018 | return 0; | |
32019 | } | |
32020 | _ACEOF | |
32021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32023 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32024 | ac_status=$? |
32ddf007 VS |
32025 | grep -v '^ *+' conftest.er1 >conftest.err |
32026 | rm -f conftest.er1 | |
32027 | cat conftest.err >&5 | |
e6cc62c6 VS |
32028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32029 | (exit $ac_status); } && | |
e1293dcf | 32030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32032 | (eval $ac_try) 2>&5 | |
32033 | ac_status=$? | |
32034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32035 | (exit $ac_status); }; } && | |
32036 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32038 | (eval $ac_try) 2>&5 | |
32039 | ac_status=$? | |
32040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32041 | (exit $ac_status); }; }; then | |
32042 | eval "$as_ac_var=yes" | |
32043 | else | |
32044 | echo "$as_me: failed program was:" >&5 | |
32045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32046 | ||
32047 | eval "$as_ac_var=no" | |
32048 | fi | |
32ddf007 VS |
32049 | rm -f conftest.err conftest.$ac_objext \ |
32050 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32051 | fi |
32052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32053 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32054 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32055 | cat >>confdefs.h <<_ACEOF | |
32056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32057 | _ACEOF | |
698dcdb6 | 32058 | |
10f2d63a | 32059 | fi |
4f14bcd8 | 32060 | done |
10f2d63a | 32061 | |
8284b0c5 | 32062 | |
e6cc62c6 VS |
32063 | |
32064 | for ac_header in sched.h | |
4f14bcd8 | 32065 | do |
e6cc62c6 VS |
32066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
32067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32072 | fi | |
32073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32075 | else | |
32076 | # Is the header compilable? | |
32077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32079 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32080 | /* confdefs.h. */ |
32081 | _ACEOF | |
32082 | cat confdefs.h >>conftest.$ac_ext | |
32083 | cat >>conftest.$ac_ext <<_ACEOF | |
32084 | /* end confdefs.h. */ | |
32085 | $ac_includes_default | |
32086 | #include <$ac_header> | |
32087 | _ACEOF | |
32088 | rm -f conftest.$ac_objext | |
32089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32090 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32091 | ac_status=$? |
32ddf007 VS |
32092 | grep -v '^ *+' conftest.er1 >conftest.err |
32093 | rm -f conftest.er1 | |
32094 | cat conftest.err >&5 | |
e6cc62c6 VS |
32095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32096 | (exit $ac_status); } && | |
e1293dcf | 32097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32099 | (eval $ac_try) 2>&5 | |
32100 | ac_status=$? | |
32101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32102 | (exit $ac_status); }; } && | |
32103 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32105 | (eval $ac_try) 2>&5 | |
32106 | ac_status=$? | |
32107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32108 | (exit $ac_status); }; }; then | |
32109 | ac_header_compiler=yes | |
32110 | else | |
32111 | echo "$as_me: failed program was:" >&5 | |
32112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32113 | ||
32114 | ac_header_compiler=no | |
32115 | fi | |
32ddf007 | 32116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
32117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32119 | ||
32120 | # Is the header present? | |
32121 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32122 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32123 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32124 | /* confdefs.h. */ |
32125 | _ACEOF | |
32126 | cat confdefs.h >>conftest.$ac_ext | |
32127 | cat >>conftest.$ac_ext <<_ACEOF | |
32128 | /* end confdefs.h. */ | |
32129 | #include <$ac_header> | |
32130 | _ACEOF | |
32131 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32132 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32133 | ac_status=$? | |
32134 | grep -v '^ *+' conftest.er1 >conftest.err | |
32135 | rm -f conftest.er1 | |
32136 | cat conftest.err >&5 | |
32137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32138 | (exit $ac_status); } >/dev/null; then | |
32139 | if test -s conftest.err; then | |
32140 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 32141 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
32142 | else |
32143 | ac_cpp_err= | |
32144 | fi | |
32145 | else | |
32146 | ac_cpp_err=yes | |
32147 | fi | |
32148 | if test -z "$ac_cpp_err"; then | |
32149 | ac_header_preproc=yes | |
32150 | else | |
32151 | echo "$as_me: failed program was:" >&5 | |
32152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32153 | ||
32154 | ac_header_preproc=no | |
32155 | fi | |
32156 | rm -f conftest.err conftest.$ac_ext | |
32157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32159 | ||
32160 | # So? What about this header? | |
32ddf007 VS |
32161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32162 | yes:no: ) | |
e6cc62c6 VS |
32163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
32165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32167 | ac_header_preproc=yes | |
e6cc62c6 | 32168 | ;; |
32ddf007 | 32169 | no:yes:* ) |
e6cc62c6 VS |
32170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
32172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
32178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
32180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
32182 | ( |
32183 | cat <<\_ASBOX | |
32ddf007 VS |
32184 | ## ----------------------------------------- ## |
32185 | ## Report this to wx-dev@lists.wxwindows.org ## | |
32186 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
32187 | _ASBOX |
32188 | ) | | |
32189 | sed "s/^/$as_me: WARNING: /" >&2 | |
32190 | ;; | |
32191 | esac | |
32192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32196 | else | |
32ddf007 | 32197 | eval "$as_ac_Header=\$ac_header_preproc" |
13111b2a | 32198 | fi |
e6cc62c6 VS |
32199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
32200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32201 | ||
10f2d63a | 32202 | fi |
e6cc62c6 VS |
32203 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32204 | cat >>confdefs.h <<_ACEOF | |
32205 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32206 | _ACEOF | |
32207 | ||
f6bcfd97 | 32208 | fi |
e6cc62c6 | 32209 | |
4f14bcd8 | 32210 | done |
f6bcfd97 | 32211 | |
009fead0 | 32212 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
32213 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
32214 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32215 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32217 | else | |
32218 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32219 | /* confdefs.h. */ |
32220 | _ACEOF | |
32221 | cat confdefs.h >>conftest.$ac_ext | |
32222 | cat >>conftest.$ac_ext <<_ACEOF | |
32223 | /* end confdefs.h. */ | |
32ddf007 VS |
32224 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32226 | #define sched_yield innocuous_sched_yield | |
32227 | ||
009fead0 | 32228 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32229 | which can conflict with char sched_yield (); below. |
32230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32231 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32232 | |
e6cc62c6 VS |
32233 | #ifdef __STDC__ |
32234 | # include <limits.h> | |
32235 | #else | |
32236 | # include <assert.h> | |
32237 | #endif | |
32ddf007 VS |
32238 | |
32239 | #undef sched_yield | |
32240 | ||
4f14bcd8 | 32241 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32242 | #ifdef __cplusplus |
32243 | extern "C" | |
32244 | { | |
32245 | #endif | |
4f14bcd8 | 32246 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32247 | builtin and then its argument prototype would still apply. */ |
32248 | char sched_yield (); | |
009fead0 VZ |
32249 | /* The GNU C library defines this for functions which it implements |
32250 | to always fail with ENOSYS. Some functions are actually named | |
32251 | something starting with __ and the normal name is an alias. */ | |
32252 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32253 | choke me | |
32254 | #else | |
e6cc62c6 VS |
32255 | char (*f) () = sched_yield; |
32256 | #endif | |
32257 | #ifdef __cplusplus | |
32258 | } | |
009fead0 VZ |
32259 | #endif |
32260 | ||
e6cc62c6 VS |
32261 | int |
32262 | main () | |
32263 | { | |
32264 | return f != sched_yield; | |
32265 | ; | |
32266 | return 0; | |
32267 | } | |
32268 | _ACEOF | |
32269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32271 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32272 | ac_status=$? |
32ddf007 VS |
32273 | grep -v '^ *+' conftest.er1 >conftest.err |
32274 | rm -f conftest.er1 | |
32275 | cat conftest.err >&5 | |
e6cc62c6 VS |
32276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32277 | (exit $ac_status); } && | |
e1293dcf | 32278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32280 | (eval $ac_try) 2>&5 | |
32281 | ac_status=$? | |
32282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32283 | (exit $ac_status); }; } && | |
32284 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32286 | (eval $ac_try) 2>&5 | |
32287 | ac_status=$? | |
32288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32289 | (exit $ac_status); }; }; then | |
32290 | ac_cv_func_sched_yield=yes | |
32291 | else | |
32292 | echo "$as_me: failed program was:" >&5 | |
32293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32294 | ||
32295 | ac_cv_func_sched_yield=no | |
32296 | fi | |
32ddf007 VS |
32297 | rm -f conftest.err conftest.$ac_objext \ |
32298 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32299 | fi |
32300 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32301 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32302 | if test $ac_cv_func_sched_yield = yes; then | |
32303 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32304 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32305 | _ACEOF |
10f2d63a | 32306 | |
4f14bcd8 | 32307 | else |
009fead0 | 32308 | |
e6cc62c6 VS |
32309 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
32310 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32311 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 32313 | else |
e6cc62c6 | 32314 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32315 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32316 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32317 | /* confdefs.h. */ |
32318 | _ACEOF | |
32319 | cat confdefs.h >>conftest.$ac_ext | |
32320 | cat >>conftest.$ac_ext <<_ACEOF | |
32321 | /* end confdefs.h. */ | |
32322 | ||
4f14bcd8 | 32323 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32324 | #ifdef __cplusplus |
32325 | extern "C" | |
32326 | #endif | |
4f14bcd8 | 32327 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32328 | builtin and then its argument prototype would still apply. */ |
32329 | char sched_yield (); | |
32330 | int | |
32331 | main () | |
32332 | { | |
32333 | sched_yield (); | |
32334 | ; | |
32335 | return 0; | |
32336 | } | |
32337 | _ACEOF | |
32338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32340 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32341 | ac_status=$? |
32ddf007 VS |
32342 | grep -v '^ *+' conftest.er1 >conftest.err |
32343 | rm -f conftest.er1 | |
32344 | cat conftest.err >&5 | |
e6cc62c6 VS |
32345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32346 | (exit $ac_status); } && | |
e1293dcf | 32347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32349 | (eval $ac_try) 2>&5 | |
32350 | ac_status=$? | |
32351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32352 | (exit $ac_status); }; } && | |
32353 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32355 | (eval $ac_try) 2>&5 | |
32356 | ac_status=$? | |
32357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32358 | (exit $ac_status); }; }; then | |
32359 | ac_cv_lib_posix4_sched_yield=yes | |
32360 | else | |
32361 | echo "$as_me: failed program was:" >&5 | |
32362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32363 | ||
32364 | ac_cv_lib_posix4_sched_yield=no | |
32365 | fi | |
32ddf007 VS |
32366 | rm -f conftest.err conftest.$ac_objext \ |
32367 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32368 | LIBS=$ac_check_lib_save_LIBS |
32369 | fi | |
32370 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32371 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32372 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32373 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32374 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32375 | _ACEOF |
3d63bc3a | 32376 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 32377 | else |
e6cc62c6 VS |
32378 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
32379 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32380 | ||
54276ccf VZ |
32381 | fi |
32382 | ||
e6cc62c6 VS |
32383 | |
32384 | ||
4f14bcd8 | 32385 | fi |
698dcdb6 | 32386 | |
009fead0 | 32387 | fi |
10f2d63a | 32388 | |
7274f1c7 | 32389 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
32390 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
32391 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32392 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32394 | else | |
32395 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32396 | /* confdefs.h. */ |
32397 | _ACEOF | |
32398 | cat confdefs.h >>conftest.$ac_ext | |
32399 | cat >>conftest.$ac_ext <<_ACEOF | |
32400 | /* end confdefs.h. */ | |
32ddf007 VS |
32401 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32403 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32404 | ||
009fead0 | 32405 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32406 | which can conflict with char pthread_attr_getschedpolicy (); below. |
32407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32408 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32409 | |
e6cc62c6 VS |
32410 | #ifdef __STDC__ |
32411 | # include <limits.h> | |
32412 | #else | |
32413 | # include <assert.h> | |
32414 | #endif | |
32ddf007 VS |
32415 | |
32416 | #undef pthread_attr_getschedpolicy | |
32417 | ||
4f14bcd8 | 32418 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32419 | #ifdef __cplusplus |
32420 | extern "C" | |
32421 | { | |
32422 | #endif | |
4f14bcd8 | 32423 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32424 | builtin and then its argument prototype would still apply. */ |
32425 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
32426 | /* The GNU C library defines this for functions which it implements |
32427 | to always fail with ENOSYS. Some functions are actually named | |
32428 | something starting with __ and the normal name is an alias. */ | |
32429 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32430 | choke me | |
32431 | #else | |
e6cc62c6 VS |
32432 | char (*f) () = pthread_attr_getschedpolicy; |
32433 | #endif | |
32434 | #ifdef __cplusplus | |
32435 | } | |
009fead0 VZ |
32436 | #endif |
32437 | ||
e6cc62c6 VS |
32438 | int |
32439 | main () | |
32440 | { | |
32441 | return f != pthread_attr_getschedpolicy; | |
32442 | ; | |
32443 | return 0; | |
32444 | } | |
32445 | _ACEOF | |
32446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32448 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32449 | ac_status=$? |
32ddf007 VS |
32450 | grep -v '^ *+' conftest.er1 >conftest.err |
32451 | rm -f conftest.er1 | |
32452 | cat conftest.err >&5 | |
e6cc62c6 VS |
32453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32454 | (exit $ac_status); } && | |
e1293dcf | 32455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32457 | (eval $ac_try) 2>&5 | |
32458 | ac_status=$? | |
32459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32460 | (exit $ac_status); }; } && | |
32461 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32463 | (eval $ac_try) 2>&5 | |
32464 | ac_status=$? | |
32465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32466 | (exit $ac_status); }; }; then | |
32467 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32468 | else | |
32469 | echo "$as_me: failed program was:" >&5 | |
32470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32471 | ||
32472 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32473 | fi | |
32ddf007 VS |
32474 | rm -f conftest.err conftest.$ac_objext \ |
32475 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32476 | fi |
32477 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32478 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32479 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32480 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32481 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32482 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32484 | else | |
32485 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32486 | /* confdefs.h. */ |
32487 | _ACEOF | |
32488 | cat confdefs.h >>conftest.$ac_ext | |
32489 | cat >>conftest.$ac_ext <<_ACEOF | |
32490 | /* end confdefs.h. */ | |
32ddf007 VS |
32491 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32493 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32494 | ||
a0b9e27f | 32495 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32496 | which can conflict with char pthread_attr_setschedparam (); below. |
32497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32498 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32499 | |
e6cc62c6 VS |
32500 | #ifdef __STDC__ |
32501 | # include <limits.h> | |
32502 | #else | |
32503 | # include <assert.h> | |
32504 | #endif | |
32ddf007 VS |
32505 | |
32506 | #undef pthread_attr_setschedparam | |
32507 | ||
422107f9 | 32508 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32509 | #ifdef __cplusplus |
32510 | extern "C" | |
32511 | { | |
32512 | #endif | |
422107f9 | 32513 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32514 | builtin and then its argument prototype would still apply. */ |
32515 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
32516 | /* The GNU C library defines this for functions which it implements |
32517 | to always fail with ENOSYS. Some functions are actually named | |
32518 | something starting with __ and the normal name is an alias. */ | |
32519 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32520 | choke me | |
32521 | #else | |
e6cc62c6 VS |
32522 | char (*f) () = pthread_attr_setschedparam; |
32523 | #endif | |
32524 | #ifdef __cplusplus | |
32525 | } | |
009fead0 VZ |
32526 | #endif |
32527 | ||
e6cc62c6 VS |
32528 | int |
32529 | main () | |
32530 | { | |
32531 | return f != pthread_attr_setschedparam; | |
32532 | ; | |
32533 | return 0; | |
32534 | } | |
32535 | _ACEOF | |
32536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32538 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32539 | ac_status=$? |
32ddf007 VS |
32540 | grep -v '^ *+' conftest.er1 >conftest.err |
32541 | rm -f conftest.er1 | |
32542 | cat conftest.err >&5 | |
e6cc62c6 VS |
32543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32544 | (exit $ac_status); } && | |
e1293dcf | 32545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32547 | (eval $ac_try) 2>&5 | |
32548 | ac_status=$? | |
32549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32550 | (exit $ac_status); }; } && | |
32551 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32553 | (eval $ac_try) 2>&5 | |
32554 | ac_status=$? | |
32555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32556 | (exit $ac_status); }; }; then | |
32557 | ac_cv_func_pthread_attr_setschedparam=yes | |
32558 | else | |
32559 | echo "$as_me: failed program was:" >&5 | |
32560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32561 | ||
32562 | ac_cv_func_pthread_attr_setschedparam=no | |
32563 | fi | |
32ddf007 VS |
32564 | rm -f conftest.err conftest.$ac_objext \ |
32565 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32566 | fi |
32567 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32568 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32569 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32570 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32571 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32572 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32574 | else | |
32575 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32576 | /* confdefs.h. */ |
32577 | _ACEOF | |
32578 | cat confdefs.h >>conftest.$ac_ext | |
32579 | cat >>conftest.$ac_ext <<_ACEOF | |
32580 | /* end confdefs.h. */ | |
32ddf007 VS |
32581 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32583 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32584 | ||
ef33c576 | 32585 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32586 | which can conflict with char sched_get_priority_max (); below. |
32587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32588 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32589 | |
e6cc62c6 VS |
32590 | #ifdef __STDC__ |
32591 | # include <limits.h> | |
32592 | #else | |
32593 | # include <assert.h> | |
32594 | #endif | |
32ddf007 VS |
32595 | |
32596 | #undef sched_get_priority_max | |
32597 | ||
4f14bcd8 | 32598 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32599 | #ifdef __cplusplus |
32600 | extern "C" | |
32601 | { | |
32602 | #endif | |
4f14bcd8 | 32603 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32604 | builtin and then its argument prototype would still apply. */ |
32605 | char sched_get_priority_max (); | |
009fead0 VZ |
32606 | /* The GNU C library defines this for functions which it implements |
32607 | to always fail with ENOSYS. Some functions are actually named | |
32608 | something starting with __ and the normal name is an alias. */ | |
32609 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32610 | choke me | |
32611 | #else | |
e6cc62c6 VS |
32612 | char (*f) () = sched_get_priority_max; |
32613 | #endif | |
32614 | #ifdef __cplusplus | |
32615 | } | |
009fead0 VZ |
32616 | #endif |
32617 | ||
e6cc62c6 VS |
32618 | int |
32619 | main () | |
32620 | { | |
32621 | return f != sched_get_priority_max; | |
32622 | ; | |
32623 | return 0; | |
32624 | } | |
32625 | _ACEOF | |
32626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32628 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32629 | ac_status=$? |
32ddf007 VS |
32630 | grep -v '^ *+' conftest.er1 >conftest.err |
32631 | rm -f conftest.er1 | |
32632 | cat conftest.err >&5 | |
e6cc62c6 VS |
32633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32634 | (exit $ac_status); } && | |
e1293dcf | 32635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32637 | (eval $ac_try) 2>&5 | |
32638 | ac_status=$? | |
32639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32640 | (exit $ac_status); }; } && | |
32641 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32643 | (eval $ac_try) 2>&5 | |
32644 | ac_status=$? | |
32645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32646 | (exit $ac_status); }; }; then | |
32647 | ac_cv_func_sched_get_priority_max=yes | |
32648 | else | |
32649 | echo "$as_me: failed program was:" >&5 | |
32650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32651 | ||
32652 | ac_cv_func_sched_get_priority_max=no | |
32653 | fi | |
32ddf007 VS |
32654 | rm -f conftest.err conftest.$ac_objext \ |
32655 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32656 | fi |
32657 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32658 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32659 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
32660 | HAVE_PRIOR_FUNCS=1 |
32661 | else | |
e6cc62c6 VS |
32662 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
32663 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32664 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 32666 | else |
e6cc62c6 | 32667 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32668 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32669 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32670 | /* confdefs.h. */ |
32671 | _ACEOF | |
32672 | cat confdefs.h >>conftest.$ac_ext | |
32673 | cat >>conftest.$ac_ext <<_ACEOF | |
32674 | /* end confdefs.h. */ | |
32675 | ||
422107f9 | 32676 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32677 | #ifdef __cplusplus |
32678 | extern "C" | |
32679 | #endif | |
422107f9 | 32680 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32681 | builtin and then its argument prototype would still apply. */ |
32682 | char sched_get_priority_max (); | |
32683 | int | |
32684 | main () | |
32685 | { | |
32686 | sched_get_priority_max (); | |
32687 | ; | |
32688 | return 0; | |
32689 | } | |
32690 | _ACEOF | |
32691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32693 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32694 | ac_status=$? |
32ddf007 VS |
32695 | grep -v '^ *+' conftest.er1 >conftest.err |
32696 | rm -f conftest.er1 | |
32697 | cat conftest.err >&5 | |
e6cc62c6 VS |
32698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32699 | (exit $ac_status); } && | |
e1293dcf | 32700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32702 | (eval $ac_try) 2>&5 | |
32703 | ac_status=$? | |
32704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32705 | (exit $ac_status); }; } && | |
32706 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32708 | (eval $ac_try) 2>&5 | |
32709 | ac_status=$? | |
32710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32711 | (exit $ac_status); }; }; then | |
32712 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32713 | else | |
32714 | echo "$as_me: failed program was:" >&5 | |
32715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32716 | ||
32717 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32718 | fi | |
32ddf007 VS |
32719 | rm -f conftest.err conftest.$ac_objext \ |
32720 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32721 | LIBS=$ac_check_lib_save_LIBS |
32722 | fi | |
32723 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32724 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32725 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 32726 | |
7274f1c7 RL |
32727 | HAVE_PRIOR_FUNCS=1 |
32728 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 32729 | |
4f14bcd8 | 32730 | fi |
463abc64 | 32731 | |
e6cc62c6 | 32732 | |
328a083c | 32733 | fi |
463abc64 | 32734 | |
e6cc62c6 | 32735 | |
7b4a847f | 32736 | fi |
579d8138 | 32737 | |
e6cc62c6 | 32738 | |
5c6fa7d2 | 32739 | fi |
52127426 | 32740 | |
8284b0c5 | 32741 | |
7274f1c7 | 32742 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 32743 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32744 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 32745 | _ACEOF |
463abc64 | 32746 | |
7274f1c7 | 32747 | else |
e6cc62c6 VS |
32748 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
32749 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 32750 | fi |
463abc64 | 32751 | |
e6cc62c6 VS |
32752 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
32753 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32754 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32756 | else | |
32757 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32758 | /* confdefs.h. */ |
32759 | _ACEOF | |
32760 | cat confdefs.h >>conftest.$ac_ext | |
32761 | cat >>conftest.$ac_ext <<_ACEOF | |
32762 | /* end confdefs.h. */ | |
32ddf007 VS |
32763 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32765 | #define pthread_cancel innocuous_pthread_cancel | |
32766 | ||
009fead0 | 32767 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32768 | which can conflict with char pthread_cancel (); below. |
32769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32770 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32771 | |
e6cc62c6 VS |
32772 | #ifdef __STDC__ |
32773 | # include <limits.h> | |
32774 | #else | |
32775 | # include <assert.h> | |
32776 | #endif | |
32ddf007 VS |
32777 | |
32778 | #undef pthread_cancel | |
32779 | ||
422107f9 | 32780 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32781 | #ifdef __cplusplus |
32782 | extern "C" | |
32783 | { | |
32784 | #endif | |
422107f9 | 32785 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32786 | builtin and then its argument prototype would still apply. */ |
32787 | char pthread_cancel (); | |
009fead0 VZ |
32788 | /* The GNU C library defines this for functions which it implements |
32789 | to always fail with ENOSYS. Some functions are actually named | |
32790 | something starting with __ and the normal name is an alias. */ | |
32791 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32792 | choke me | |
32793 | #else | |
e6cc62c6 VS |
32794 | char (*f) () = pthread_cancel; |
32795 | #endif | |
32796 | #ifdef __cplusplus | |
32797 | } | |
009fead0 VZ |
32798 | #endif |
32799 | ||
e6cc62c6 VS |
32800 | int |
32801 | main () | |
32802 | { | |
32803 | return f != pthread_cancel; | |
32804 | ; | |
32805 | return 0; | |
32806 | } | |
32807 | _ACEOF | |
32808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32810 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32811 | ac_status=$? |
32ddf007 VS |
32812 | grep -v '^ *+' conftest.er1 >conftest.err |
32813 | rm -f conftest.er1 | |
32814 | cat conftest.err >&5 | |
e6cc62c6 VS |
32815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32816 | (exit $ac_status); } && | |
e1293dcf | 32817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32819 | (eval $ac_try) 2>&5 | |
32820 | ac_status=$? | |
32821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32822 | (exit $ac_status); }; } && | |
32823 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32825 | (eval $ac_try) 2>&5 | |
32826 | ac_status=$? | |
32827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32828 | (exit $ac_status); }; }; then | |
32829 | ac_cv_func_pthread_cancel=yes | |
32830 | else | |
32831 | echo "$as_me: failed program was:" >&5 | |
32832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32833 | ||
32834 | ac_cv_func_pthread_cancel=no | |
32835 | fi | |
32ddf007 VS |
32836 | rm -f conftest.err conftest.$ac_objext \ |
32837 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32838 | fi |
32839 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32840 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32841 | if test $ac_cv_func_pthread_cancel = yes; then | |
32842 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32843 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 32844 | _ACEOF |
4f14bcd8 | 32845 | |
698dcdb6 | 32846 | else |
e6cc62c6 VS |
32847 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
32848 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
32849 | fi |
32850 | ||
5c6fa7d2 | 32851 | |
4f14bcd8 | 32852 | |
e6cc62c6 VS |
32853 | |
32854 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32855 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32856 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 32858 | else |
e6cc62c6 VS |
32859 | |
32860 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32861 | /* confdefs.h. */ |
32862 | _ACEOF | |
32863 | cat confdefs.h >>conftest.$ac_ext | |
32864 | cat >>conftest.$ac_ext <<_ACEOF | |
32865 | /* end confdefs.h. */ | |
4f14bcd8 | 32866 | #include <pthread.h> |
e6cc62c6 VS |
32867 | int |
32868 | main () | |
32869 | { | |
4f14bcd8 | 32870 | |
7274f1c7 RL |
32871 | pthread_mutexattr_t attr; |
32872 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
32873 | |
32874 | ; | |
32875 | return 0; | |
32876 | } | |
32877 | _ACEOF | |
32878 | rm -f conftest.$ac_objext | |
32879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32880 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32881 | ac_status=$? |
32ddf007 VS |
32882 | grep -v '^ *+' conftest.er1 >conftest.err |
32883 | rm -f conftest.er1 | |
32884 | cat conftest.err >&5 | |
e6cc62c6 VS |
32885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32886 | (exit $ac_status); } && | |
e1293dcf | 32887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32889 | (eval $ac_try) 2>&5 | |
32890 | ac_status=$? | |
32891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32892 | (exit $ac_status); }; } && | |
32893 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32895 | (eval $ac_try) 2>&5 | |
32896 | ac_status=$? | |
32897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32898 | (exit $ac_status); }; }; then | |
32899 | ||
7274f1c7 | 32900 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 32901 | |
3fed1840 | 32902 | else |
e6cc62c6 VS |
32903 | echo "$as_me: failed program was:" >&5 |
32904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32905 | ||
32906 | ||
7274f1c7 | 32907 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
32908 | |
32909 | ||
247f5006 | 32910 | fi |
32ddf007 | 32911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32912 | |
e6cc62c6 VS |
32913 | fi |
32914 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32915 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 32916 | |
7274f1c7 | 32917 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 32918 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32919 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 32920 | _ACEOF |
4f14bcd8 | 32921 | |
7274f1c7 | 32922 | else |
e6cc62c6 VS |
32923 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
32924 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32925 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32927 | else | |
32928 | ||
32929 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32930 | /* confdefs.h. */ |
32931 | _ACEOF | |
32932 | cat confdefs.h >>conftest.$ac_ext | |
32933 | cat >>conftest.$ac_ext <<_ACEOF | |
32934 | /* end confdefs.h. */ | |
4f14bcd8 | 32935 | #include <pthread.h> |
e6cc62c6 VS |
32936 | int |
32937 | main () | |
32938 | { | |
4f14bcd8 | 32939 | |
7274f1c7 | 32940 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
32941 | |
32942 | ; | |
32943 | return 0; | |
32944 | } | |
32945 | _ACEOF | |
32946 | rm -f conftest.$ac_objext | |
32947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32948 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32949 | ac_status=$? |
32ddf007 VS |
32950 | grep -v '^ *+' conftest.er1 >conftest.err |
32951 | rm -f conftest.er1 | |
32952 | cat conftest.err >&5 | |
e6cc62c6 VS |
32953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32954 | (exit $ac_status); } && | |
e1293dcf | 32955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
32956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32957 | (eval $ac_try) 2>&5 | |
32958 | ac_status=$? | |
32959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32960 | (exit $ac_status); }; } && | |
32961 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32963 | (eval $ac_try) 2>&5 | |
32964 | ac_status=$? | |
32965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32966 | (exit $ac_status); }; }; then | |
32967 | ||
7274f1c7 | 32968 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 32969 | |
698dcdb6 | 32970 | else |
e6cc62c6 VS |
32971 | echo "$as_me: failed program was:" >&5 |
32972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32973 | ||
32974 | ||
7274f1c7 | 32975 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
32976 | |
32977 | ||
247f5006 | 32978 | fi |
32ddf007 | 32979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32980 | |
e6cc62c6 VS |
32981 | fi |
32982 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32983 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 32984 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 32985 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32986 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 32987 | _ACEOF |
3fed1840 | 32988 | |
7274f1c7 | 32989 | else |
e6cc62c6 VS |
32990 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
32991 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
32992 | fi |
32993 | fi | |
7274f1c7 | 32994 | fi |
3fed1840 | 32995 | |
a0b9e27f MB |
32996 | else |
32997 | if test "$wxUSE_THREADS" = "yes" ; then | |
32998 | case "${host}" in | |
32999 | *-*-mingw32* ) | |
e6cc62c6 VS |
33000 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
33001 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33002 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 33004 | else |
e6cc62c6 | 33005 | |
ca8e52b3 VZ |
33006 | CFLAGS_OLD="$CFLAGS" |
33007 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 33008 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33009 | /* confdefs.h. */ |
33010 | _ACEOF | |
33011 | cat confdefs.h >>conftest.$ac_ext | |
33012 | cat >>conftest.$ac_ext <<_ACEOF | |
33013 | /* end confdefs.h. */ | |
33014 | ||
33015 | int | |
33016 | main () | |
33017 | { | |
ca8e52b3 | 33018 | |
e6cc62c6 VS |
33019 | ; |
33020 | return 0; | |
33021 | } | |
33022 | _ACEOF | |
33023 | rm -f conftest.$ac_objext | |
33024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33025 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33026 | ac_status=$? |
32ddf007 VS |
33027 | grep -v '^ *+' conftest.er1 >conftest.err |
33028 | rm -f conftest.er1 | |
33029 | cat conftest.err >&5 | |
e6cc62c6 VS |
33030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33031 | (exit $ac_status); } && | |
e1293dcf | 33032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33034 | (eval $ac_try) 2>&5 | |
33035 | ac_status=$? | |
33036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33037 | (exit $ac_status); }; } && | |
33038 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33040 | (eval $ac_try) 2>&5 | |
33041 | ac_status=$? | |
33042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33043 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
33044 | wx_cv_cflags_mthread=yes |
33045 | else | |
e6cc62c6 VS |
33046 | echo "$as_me: failed program was:" >&5 |
33047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33048 | ||
33049 | wx_cv_cflags_mthread=no | |
33050 | ||
ca8e52b3 | 33051 | fi |
32ddf007 | 33052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 33053 | |
ca8e52b3 | 33054 | |
e6cc62c6 VS |
33055 | fi |
33056 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33057 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
33058 | |
33059 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33060 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33061 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33062 | LDFLAGS="$LDFLAGS -mthreads" | |
33063 | else | |
33064 | CFLAGS="$CFLAGS_OLD" | |
33065 | fi | |
a0b9e27f | 33066 | ;; |
73d617c9 MB |
33067 | *-pc-os2*emx ) |
33068 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33069 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33070 | LDFLAGS="$LDFLAGS -Zmt" | |
33071 | ;; | |
a0b9e27f MB |
33072 | esac |
33073 | fi | |
4f14bcd8 GD |
33074 | fi |
33075 | ||
33076 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 33077 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33078 | #define wxUSE_THREADS 1 |
e6cc62c6 | 33079 | _ACEOF |
7b6058cd | 33080 | |
8284b0c5 | 33081 | |
4f14bcd8 | 33082 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 33083 | else |
4f14bcd8 | 33084 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
33085 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
33086 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
33087 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
33088 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
33089 | echo "$as_me:$LINENO: result: yes" >&5 |
33090 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 33091 | else |
e6cc62c6 VS |
33092 | echo "$as_me:$LINENO: result: no" >&5 |
33093 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
33094 | fi |
33095 | fi | |
33096 | fi | |
33097 | ||
33098 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 33099 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33100 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 33101 | _ACEOF |
4f14bcd8 GD |
33102 | |
33103 | WXGTK12=1 | |
10f2d63a | 33104 | fi |
4f14bcd8 GD |
33105 | |
33106 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 33107 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33108 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 33109 | _ACEOF |
4f14bcd8 | 33110 | |
10f2d63a | 33111 | fi |
698dcdb6 | 33112 | |
4f14bcd8 | 33113 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 33114 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33115 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 33116 | _ACEOF |
4f14bcd8 | 33117 | |
698dcdb6 | 33118 | fi |
10f2d63a | 33119 | |
0f87e84c RR |
33120 | if test "$WXGPE" = 1 ; then |
33121 | cat >>confdefs.h <<_ACEOF | |
33122 | #define __WXGPE__ $WXGPE | |
33123 | _ACEOF | |
33124 | ||
33125 | fi | |
33126 | ||
4f14bcd8 GD |
33127 | WXDEBUG= |
33128 | ||
33129 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33130 | WXDEBUG="-g" | |
33131 | wxUSE_OPTIMISE=no | |
698dcdb6 | 33132 | fi |
4f14bcd8 GD |
33133 | |
33134 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33135 | wxUSE_DEBUG_INFO=yes | |
33136 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
33137 | fi |
33138 | ||
4f14bcd8 | 33139 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 33140 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33141 | #define WXDEBUG 1 |
e6cc62c6 | 33142 | _ACEOF |
4f14bcd8 GD |
33143 | |
33144 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 33145 | else |
4f14bcd8 GD |
33146 | if test "$wxUSE_GTK" = 1 ; then |
33147 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33148 | fi | |
33149 | fi | |
33150 | ||
33151 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 33152 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33153 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 33154 | _ACEOF |
4f14bcd8 | 33155 | |
e6cc62c6 | 33156 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33157 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 33158 | _ACEOF |
4f14bcd8 | 33159 | |
e6cc62c6 | 33160 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33161 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 33162 | _ACEOF |
4f14bcd8 GD |
33163 | |
33164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33165 | fi | |
33166 | ||
33167 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 33168 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
33169 | fi |
33170 | ||
33171 | PROFILE= | |
33172 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 33173 | PROFILE=" -pg" |
10f2d63a VZ |
33174 | fi |
33175 | ||
009fead0 VZ |
33176 | CODE_GEN_FLAGS= |
33177 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 33178 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
33179 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
33180 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 33181 | fi |
4f14bcd8 GD |
33182 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
33183 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33184 | fi | |
33185 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33186 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33187 | fi | |
1d1b75ac | 33188 | |
2b5f62a0 | 33189 | case "${host}" in |
1d1b75ac VZ |
33190 | powerpc*-*-aix* ) |
33191 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33192 | ;; | |
2b5f62a0 VZ |
33193 | *-hppa* ) |
33194 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33195 | ;; | |
1d1b75ac | 33196 | esac |
4f14bcd8 GD |
33197 | fi |
33198 | ||
af7b5345 | 33199 | OPTIMISE= |
4f14bcd8 | 33200 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
33201 | if test "$GCC" = yes ; then |
33202 | OPTIMISE="-O0" | |
33203 | fi | |
4f14bcd8 GD |
33204 | else |
33205 | if test "$GCC" = yes ; then | |
33206 | OPTIMISE="-O2" | |
af7b5345 VZ |
33207 | |
33208 | case "${host}" in | |
4f14bcd8 GD |
33209 | i586-*-*|i686-*-* ) |
33210 | OPTIMISE="${OPTIMISE} " | |
33211 | ;; | |
33212 | esac | |
33213 | else | |
33214 | OPTIMISE="-O" | |
33215 | fi | |
33216 | fi | |
33217 | ||
8d90d2f2 | 33218 | |
65d8ef1e | 33219 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 33220 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33221 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 33222 | _ACEOF |
4f14bcd8 | 33223 | |
8d90d2f2 VZ |
33224 | |
33225 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
33226 | fi |
33227 | ||
65d8ef1e | 33228 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 33229 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 33230 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 33231 | _ACEOF |
65d8ef1e VS |
33232 | |
33233 | fi | |
33234 | ||
8284b0c5 | 33235 | |
10f2d63a | 33236 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 33237 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33238 | #define wxUSE_GUI 1 |
e6cc62c6 | 33239 | _ACEOF |
10f2d63a | 33240 | |
8284b0c5 | 33241 | |
10f2d63a | 33242 | else |
e6cc62c6 | 33243 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33244 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 33245 | _ACEOF |
10f2d63a VZ |
33246 | |
33247 | fi | |
33248 | ||
8284b0c5 | 33249 | |
10f2d63a | 33250 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 33251 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33252 | #define wxUSE_UNIX 1 |
e6cc62c6 | 33253 | _ACEOF |
10f2d63a VZ |
33254 | |
33255 | fi | |
33256 | ||
8284b0c5 | 33257 | |
f93ca9fd | 33258 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
5c6fa7d2 | 33259 | |
f93ca9fd VS |
33260 | HAVE_DL_FUNCS=0 |
33261 | HAVE_SHL_FUNCS=0 | |
33262 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33263 | if test "$USE_DARWIN" = 1; then | |
33264 | HAVE_DL_FUNCS=1 | |
33265 | else | |
e6cc62c6 | 33266 | |
f93ca9fd | 33267 | for ac_func in dlopen |
83307f33 | 33268 | do |
e6cc62c6 VS |
33269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33270 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33272 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33274 | else | |
33275 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33276 | /* confdefs.h. */ |
33277 | _ACEOF | |
33278 | cat confdefs.h >>conftest.$ac_ext | |
33279 | cat >>conftest.$ac_ext <<_ACEOF | |
33280 | /* end confdefs.h. */ | |
32ddf007 VS |
33281 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33283 | #define $ac_func innocuous_$ac_func | |
33284 | ||
83307f33 | 33285 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33286 | which can conflict with char $ac_func (); below. |
33287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33288 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33289 | |
e6cc62c6 VS |
33290 | #ifdef __STDC__ |
33291 | # include <limits.h> | |
33292 | #else | |
33293 | # include <assert.h> | |
33294 | #endif | |
32ddf007 VS |
33295 | |
33296 | #undef $ac_func | |
33297 | ||
83307f33 | 33298 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33299 | #ifdef __cplusplus |
33300 | extern "C" | |
33301 | { | |
33302 | #endif | |
83307f33 | 33303 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33304 | builtin and then its argument prototype would still apply. */ |
33305 | char $ac_func (); | |
83307f33 VZ |
33306 | /* The GNU C library defines this for functions which it implements |
33307 | to always fail with ENOSYS. Some functions are actually named | |
33308 | something starting with __ and the normal name is an alias. */ | |
33309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33310 | choke me | |
33311 | #else | |
e6cc62c6 VS |
33312 | char (*f) () = $ac_func; |
33313 | #endif | |
33314 | #ifdef __cplusplus | |
33315 | } | |
83307f33 VZ |
33316 | #endif |
33317 | ||
e6cc62c6 VS |
33318 | int |
33319 | main () | |
33320 | { | |
33321 | return f != $ac_func; | |
33322 | ; | |
33323 | return 0; | |
33324 | } | |
33325 | _ACEOF | |
33326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33328 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33329 | ac_status=$? |
32ddf007 VS |
33330 | grep -v '^ *+' conftest.er1 >conftest.err |
33331 | rm -f conftest.er1 | |
33332 | cat conftest.err >&5 | |
e6cc62c6 VS |
33333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33334 | (exit $ac_status); } && | |
e1293dcf | 33335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33337 | (eval $ac_try) 2>&5 | |
33338 | ac_status=$? | |
33339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33340 | (exit $ac_status); }; } && | |
33341 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33343 | (eval $ac_try) 2>&5 | |
33344 | ac_status=$? | |
33345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33346 | (exit $ac_status); }; }; then | |
33347 | eval "$as_ac_var=yes" | |
33348 | else | |
33349 | echo "$as_me: failed program was:" >&5 | |
33350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33351 | ||
33352 | eval "$as_ac_var=no" | |
33353 | fi | |
32ddf007 VS |
33354 | rm -f conftest.err conftest.$ac_objext \ |
33355 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33356 | fi |
33357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33360 | cat >>confdefs.h <<_ACEOF | |
33361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33362 | _ACEOF | |
83307f33 | 33363 | |
f93ca9fd VS |
33364 | cat >>confdefs.h <<\_ACEOF |
33365 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33366 | _ACEOF |
e6cc62c6 | 33367 | |
f93ca9fd | 33368 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 33369 | |
360d6699 | 33370 | else |
e6cc62c6 | 33371 | |
f93ca9fd VS |
33372 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
33373 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33374 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357c8e8 | 33376 | else |
f93ca9fd VS |
33377 | ac_check_lib_save_LIBS=$LIBS |
33378 | LIBS="-ldl $LIBS" | |
33379 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33380 | /* confdefs.h. */ |
33381 | _ACEOF | |
33382 | cat confdefs.h >>conftest.$ac_ext | |
33383 | cat >>conftest.$ac_ext <<_ACEOF | |
33384 | /* end confdefs.h. */ | |
5357c8e8 | 33385 | |
f93ca9fd VS |
33386 | /* Override any gcc2 internal prototype to avoid an error. */ |
33387 | #ifdef __cplusplus | |
33388 | extern "C" | |
33389 | #endif | |
33390 | /* We use char because int might match the return type of a gcc2 | |
33391 | builtin and then its argument prototype would still apply. */ | |
33392 | char dlopen (); | |
e6cc62c6 VS |
33393 | int |
33394 | main () | |
33395 | { | |
f93ca9fd | 33396 | dlopen (); |
e6cc62c6 VS |
33397 | ; |
33398 | return 0; | |
33399 | } | |
33400 | _ACEOF | |
f93ca9fd VS |
33401 | rm -f conftest.$ac_objext conftest$ac_exeext |
33402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33403 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33404 | ac_status=$? |
32ddf007 VS |
33405 | grep -v '^ *+' conftest.er1 >conftest.err |
33406 | rm -f conftest.er1 | |
33407 | cat conftest.err >&5 | |
e6cc62c6 VS |
33408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33409 | (exit $ac_status); } && | |
e1293dcf | 33410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33412 | (eval $ac_try) 2>&5 | |
33413 | ac_status=$? | |
33414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33415 | (exit $ac_status); }; } && | |
33416 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33418 | (eval $ac_try) 2>&5 | |
33419 | ac_status=$? | |
33420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33421 | (exit $ac_status); }; }; then | |
f93ca9fd | 33422 | ac_cv_lib_dl_dlopen=yes |
360d6699 | 33423 | else |
e6cc62c6 VS |
33424 | echo "$as_me: failed program was:" >&5 |
33425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33426 | ||
f93ca9fd | 33427 | ac_cv_lib_dl_dlopen=no |
247f5006 | 33428 | fi |
32ddf007 VS |
33429 | rm -f conftest.err conftest.$ac_objext \ |
33430 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 33431 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 33432 | fi |
f93ca9fd VS |
33433 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
33434 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33435 | if test $ac_cv_lib_dl_dlopen = yes; then | |
698dcdb6 | 33436 | |
f93ca9fd VS |
33437 | cat >>confdefs.h <<\_ACEOF |
33438 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33439 | _ACEOF |
360d6699 | 33440 | |
f93ca9fd VS |
33441 | HAVE_DL_FUNCS=1 |
33442 | DL_LINK=" -ldl$DL_LINK" | |
698dcdb6 | 33443 | |
f93ca9fd | 33444 | else |
e6cc62c6 | 33445 | |
f93ca9fd VS |
33446 | |
33447 | for ac_func in shl_load | |
afc31813 | 33448 | do |
e6cc62c6 VS |
33449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33454 | else | |
33455 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33456 | /* confdefs.h. */ |
33457 | _ACEOF | |
33458 | cat confdefs.h >>conftest.$ac_ext | |
33459 | cat >>conftest.$ac_ext <<_ACEOF | |
33460 | /* end confdefs.h. */ | |
32ddf007 VS |
33461 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33462 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33463 | #define $ac_func innocuous_$ac_func | |
33464 | ||
afc31813 | 33465 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33466 | which can conflict with char $ac_func (); below. |
33467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33468 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33469 | |
e6cc62c6 VS |
33470 | #ifdef __STDC__ |
33471 | # include <limits.h> | |
33472 | #else | |
33473 | # include <assert.h> | |
33474 | #endif | |
32ddf007 VS |
33475 | |
33476 | #undef $ac_func | |
33477 | ||
afc31813 | 33478 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33479 | #ifdef __cplusplus |
33480 | extern "C" | |
33481 | { | |
33482 | #endif | |
afc31813 | 33483 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33484 | builtin and then its argument prototype would still apply. */ |
33485 | char $ac_func (); | |
afc31813 VZ |
33486 | /* The GNU C library defines this for functions which it implements |
33487 | to always fail with ENOSYS. Some functions are actually named | |
33488 | something starting with __ and the normal name is an alias. */ | |
33489 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33490 | choke me | |
33491 | #else | |
e6cc62c6 VS |
33492 | char (*f) () = $ac_func; |
33493 | #endif | |
33494 | #ifdef __cplusplus | |
33495 | } | |
afc31813 VZ |
33496 | #endif |
33497 | ||
e6cc62c6 VS |
33498 | int |
33499 | main () | |
33500 | { | |
33501 | return f != $ac_func; | |
33502 | ; | |
33503 | return 0; | |
33504 | } | |
33505 | _ACEOF | |
33506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33508 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33509 | ac_status=$? |
32ddf007 VS |
33510 | grep -v '^ *+' conftest.er1 >conftest.err |
33511 | rm -f conftest.er1 | |
33512 | cat conftest.err >&5 | |
e6cc62c6 VS |
33513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33514 | (exit $ac_status); } && | |
e1293dcf | 33515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33517 | (eval $ac_try) 2>&5 | |
33518 | ac_status=$? | |
33519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33520 | (exit $ac_status); }; } && | |
33521 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33523 | (eval $ac_try) 2>&5 | |
33524 | ac_status=$? | |
33525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33526 | (exit $ac_status); }; }; then | |
33527 | eval "$as_ac_var=yes" | |
33528 | else | |
33529 | echo "$as_me: failed program was:" >&5 | |
33530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33531 | ||
33532 | eval "$as_ac_var=no" | |
33533 | fi | |
32ddf007 VS |
33534 | rm -f conftest.err conftest.$ac_objext \ |
33535 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33536 | fi |
33537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33538 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33539 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33540 | cat >>confdefs.h <<_ACEOF | |
33541 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33542 | _ACEOF | |
afc31813 | 33543 | |
f93ca9fd VS |
33544 | cat >>confdefs.h <<\_ACEOF |
33545 | #define HAVE_SHL_LOAD 1 | |
33546 | _ACEOF | |
afc31813 | 33547 | |
f93ca9fd | 33548 | HAVE_SHL_FUNCS=1 |
5c6fa7d2 | 33549 | |
a0b9e27f | 33550 | else |
e6cc62c6 | 33551 | |
f93ca9fd VS |
33552 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 |
33553 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33554 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33556 | else | |
33557 | ac_check_lib_save_LIBS=$LIBS | |
33558 | LIBS="-lshl_load $LIBS" | |
33559 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33560 | /* confdefs.h. */ |
33561 | _ACEOF | |
33562 | cat confdefs.h >>conftest.$ac_ext | |
33563 | cat >>conftest.$ac_ext <<_ACEOF | |
33564 | /* end confdefs.h. */ | |
0470b1e6 | 33565 | |
f93ca9fd VS |
33566 | /* Override any gcc2 internal prototype to avoid an error. */ |
33567 | #ifdef __cplusplus | |
33568 | extern "C" | |
33569 | #endif | |
33570 | /* We use char because int might match the return type of a gcc2 | |
33571 | builtin and then its argument prototype would still apply. */ | |
33572 | char dld (); | |
e6cc62c6 VS |
33573 | int |
33574 | main () | |
33575 | { | |
f93ca9fd | 33576 | dld (); |
e6cc62c6 VS |
33577 | ; |
33578 | return 0; | |
33579 | } | |
33580 | _ACEOF | |
f93ca9fd VS |
33581 | rm -f conftest.$ac_objext conftest$ac_exeext |
33582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33583 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33584 | ac_status=$? |
32ddf007 VS |
33585 | grep -v '^ *+' conftest.er1 >conftest.err |
33586 | rm -f conftest.er1 | |
33587 | cat conftest.err >&5 | |
e6cc62c6 VS |
33588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33589 | (exit $ac_status); } && | |
e1293dcf | 33590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33592 | (eval $ac_try) 2>&5 | |
33593 | ac_status=$? | |
33594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33595 | (exit $ac_status); }; } && | |
33596 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33598 | (eval $ac_try) 2>&5 | |
33599 | ac_status=$? | |
33600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33601 | (exit $ac_status); }; }; then | |
f93ca9fd | 33602 | ac_cv_lib_shl_load_dld=yes |
0470b1e6 | 33603 | else |
e6cc62c6 VS |
33604 | echo "$as_me: failed program was:" >&5 |
33605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33606 | ||
f93ca9fd VS |
33607 | ac_cv_lib_shl_load_dld=no |
33608 | fi | |
32ddf007 VS |
33609 | rm -f conftest.err conftest.$ac_objext \ |
33610 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
33611 | LIBS=$ac_check_lib_save_LIBS |
33612 | fi | |
33613 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33614 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33615 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33616 | ||
33617 | HAVE_SHL_FUNCS=1 | |
33618 | DL_LINK=" -ldld$DL_LINK" | |
e6cc62c6 | 33619 | |
247f5006 | 33620 | fi |
f93ca9fd | 33621 | |
a0b9e27f | 33622 | |
e6cc62c6 | 33623 | fi |
f93ca9fd | 33624 | done |
6232543b | 33625 | |
0470b1e6 | 33626 | |
f93ca9fd VS |
33627 | fi |
33628 | ||
3fcdd07b | 33629 | |
f93ca9fd VS |
33630 | fi |
33631 | done | |
e6cc62c6 VS |
33632 | |
33633 | ||
f93ca9fd VS |
33634 | if test "$HAVE_DL_FUNCS" = 1; then |
33635 | ||
33636 | for ac_func in dlerror | |
3fcdd07b | 33637 | do |
e6cc62c6 VS |
33638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33639 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33641 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33643 | else | |
33644 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33645 | /* confdefs.h. */ |
33646 | _ACEOF | |
33647 | cat confdefs.h >>conftest.$ac_ext | |
33648 | cat >>conftest.$ac_ext <<_ACEOF | |
33649 | /* end confdefs.h. */ | |
32ddf007 VS |
33650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33652 | #define $ac_func innocuous_$ac_func | |
33653 | ||
3fcdd07b | 33654 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33655 | which can conflict with char $ac_func (); below. |
33656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33657 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33658 | |
e6cc62c6 VS |
33659 | #ifdef __STDC__ |
33660 | # include <limits.h> | |
33661 | #else | |
33662 | # include <assert.h> | |
33663 | #endif | |
32ddf007 VS |
33664 | |
33665 | #undef $ac_func | |
33666 | ||
3fcdd07b | 33667 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33668 | #ifdef __cplusplus |
33669 | extern "C" | |
33670 | { | |
33671 | #endif | |
3fcdd07b | 33672 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33673 | builtin and then its argument prototype would still apply. */ |
33674 | char $ac_func (); | |
3fcdd07b VZ |
33675 | /* The GNU C library defines this for functions which it implements |
33676 | to always fail with ENOSYS. Some functions are actually named | |
33677 | something starting with __ and the normal name is an alias. */ | |
33678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33679 | choke me | |
33680 | #else | |
e6cc62c6 VS |
33681 | char (*f) () = $ac_func; |
33682 | #endif | |
33683 | #ifdef __cplusplus | |
33684 | } | |
3fcdd07b VZ |
33685 | #endif |
33686 | ||
e6cc62c6 VS |
33687 | int |
33688 | main () | |
33689 | { | |
33690 | return f != $ac_func; | |
33691 | ; | |
33692 | return 0; | |
33693 | } | |
33694 | _ACEOF | |
33695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33697 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33698 | ac_status=$? |
32ddf007 VS |
33699 | grep -v '^ *+' conftest.er1 >conftest.err |
33700 | rm -f conftest.er1 | |
33701 | cat conftest.err >&5 | |
e6cc62c6 VS |
33702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33703 | (exit $ac_status); } && | |
e1293dcf | 33704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33706 | (eval $ac_try) 2>&5 | |
33707 | ac_status=$? | |
33708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33709 | (exit $ac_status); }; } && | |
33710 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33712 | (eval $ac_try) 2>&5 | |
33713 | ac_status=$? | |
33714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33715 | (exit $ac_status); }; }; then | |
33716 | eval "$as_ac_var=yes" | |
33717 | else | |
33718 | echo "$as_me: failed program was:" >&5 | |
33719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33720 | ||
33721 | eval "$as_ac_var=no" | |
33722 | fi | |
32ddf007 VS |
33723 | rm -f conftest.err conftest.$ac_objext \ |
33724 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33725 | fi |
33726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33728 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33729 | cat >>confdefs.h <<_ACEOF | |
33730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33731 | _ACEOF | |
f93ca9fd VS |
33732 | cat >>confdefs.h <<\_ACEOF |
33733 | #define HAVE_DLERROR 1 | |
33734 | _ACEOF | |
3fcdd07b | 33735 | |
f93ca9fd | 33736 | else |
698dcdb6 | 33737 | |
f93ca9fd VS |
33738 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
33739 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33740 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
e6cc62c6 VS |
33741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33742 | else | |
f93ca9fd VS |
33743 | ac_check_lib_save_LIBS=$LIBS |
33744 | LIBS="-ldl $LIBS" | |
33745 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33746 | /* confdefs.h. */ |
33747 | _ACEOF | |
33748 | cat confdefs.h >>conftest.$ac_ext | |
33749 | cat >>conftest.$ac_ext <<_ACEOF | |
33750 | /* end confdefs.h. */ | |
afc31813 | 33751 | |
f93ca9fd VS |
33752 | /* Override any gcc2 internal prototype to avoid an error. */ |
33753 | #ifdef __cplusplus | |
33754 | extern "C" | |
33755 | #endif | |
33756 | /* We use char because int might match the return type of a gcc2 | |
33757 | builtin and then its argument prototype would still apply. */ | |
33758 | char dlerror (); | |
e6cc62c6 VS |
33759 | int |
33760 | main () | |
33761 | { | |
f93ca9fd | 33762 | dlerror (); |
e6cc62c6 VS |
33763 | ; |
33764 | return 0; | |
33765 | } | |
33766 | _ACEOF | |
f93ca9fd VS |
33767 | rm -f conftest.$ac_objext conftest$ac_exeext |
33768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33769 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33770 | ac_status=$? |
32ddf007 VS |
33771 | grep -v '^ *+' conftest.er1 >conftest.err |
33772 | rm -f conftest.er1 | |
33773 | cat conftest.err >&5 | |
e6cc62c6 VS |
33774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33775 | (exit $ac_status); } && | |
e1293dcf | 33776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33778 | (eval $ac_try) 2>&5 | |
33779 | ac_status=$? | |
33780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33781 | (exit $ac_status); }; } && | |
33782 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33784 | (eval $ac_try) 2>&5 | |
33785 | ac_status=$? | |
33786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33787 | (exit $ac_status); }; }; then | |
f93ca9fd | 33788 | ac_cv_lib_dl_dlerror=yes |
10f2d63a | 33789 | else |
e6cc62c6 VS |
33790 | echo "$as_me: failed program was:" >&5 |
33791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33792 | ||
f93ca9fd VS |
33793 | ac_cv_lib_dl_dlerror=no |
33794 | fi | |
32ddf007 VS |
33795 | rm -f conftest.err conftest.$ac_objext \ |
33796 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
33797 | LIBS=$ac_check_lib_save_LIBS |
33798 | fi | |
33799 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33800 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33801 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33802 | cat >>confdefs.h <<\_ACEOF | |
33803 | #define HAVE_DLERROR 1 | |
33804 | _ACEOF | |
33805 | ||
33806 | fi | |
33807 | ||
33808 | ||
33809 | ||
33810 | fi | |
33811 | done | |
33812 | ||
33813 | fi | |
33814 | fi | |
33815 | ||
33816 | if test "$HAVE_DL_FUNCS" = 0; then | |
33817 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33818 | if test "$USE_UNIX" = 1; then | |
33819 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33820 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33821 | wxUSE_DYNAMIC_LOADER=no | |
33822 | wxUSE_DYNLIB_CLASS=no | |
33823 | else | |
33824 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33825 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33826 | fi | |
33827 | fi | |
33828 | fi | |
33829 | fi | |
33830 | fi | |
33831 | ||
33832 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33833 | cat >>confdefs.h <<\_ACEOF | |
33834 | #define wxUSE_DYNAMIC_LOADER 1 | |
33835 | _ACEOF | |
33836 | ||
33837 | fi | |
33838 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33839 | cat >>confdefs.h <<\_ACEOF | |
33840 | #define wxUSE_DYNLIB_CLASS 1 | |
33841 | _ACEOF | |
33842 | ||
33843 | fi | |
33844 | ||
33845 | ||
33846 | ||
33847 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33848 | if test "$wxUSE_SHARED" = "no" ; then | |
33849 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33850 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33851 | wxUSE_PLUGINS=no | |
33852 | fi | |
33853 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33854 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33855 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33856 | wxUSE_PLUGINS=no | |
33857 | fi | |
33858 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33859 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33860 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33861 | wxUSE_PLUGINS=no | |
33862 | fi | |
33863 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33864 | cat >>confdefs.h <<\_ACEOF | |
33865 | #define wxUSE_PLUGINS 1 | |
33866 | _ACEOF | |
33867 | ||
33868 | fi | |
33869 | fi | |
33870 | ||
33871 | ||
33872 | if test "$wxUSE_STL" = "yes"; then | |
33873 | cat >>confdefs.h <<\_ACEOF | |
33874 | #define wxUSE_STL 1 | |
33875 | _ACEOF | |
33876 | ||
33877 | fi | |
33878 | ||
33879 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33880 | cat >>confdefs.h <<\_ACEOF | |
33881 | #define wxUSE_APPLE_IEEE 1 | |
33882 | _ACEOF | |
33883 | ||
33884 | fi | |
33885 | ||
33886 | if test "$wxUSE_TIMER" = "yes"; then | |
33887 | cat >>confdefs.h <<\_ACEOF | |
33888 | #define wxUSE_TIMER 1 | |
33889 | _ACEOF | |
33890 | ||
33891 | fi | |
33892 | ||
33893 | WITH_PLUGIN_SDL=0 | |
002ed9af | 33894 | if test "$wxUSE_SOUND" = "yes"; then |
f93ca9fd VS |
33895 | if test "$USE_UNIX" = "1" ; then |
33896 | ||
33897 | for ac_header in sys/soundcard.h | |
33898 | do | |
33899 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33905 | fi | |
33906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33908 | else | |
33909 | # Is the header compilable? | |
33910 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33911 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 33912 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33913 | /* confdefs.h. */ |
33914 | _ACEOF | |
33915 | cat confdefs.h >>conftest.$ac_ext | |
33916 | cat >>conftest.$ac_ext <<_ACEOF | |
33917 | /* end confdefs.h. */ | |
f93ca9fd VS |
33918 | $ac_includes_default |
33919 | #include <$ac_header> | |
e6cc62c6 VS |
33920 | _ACEOF |
33921 | rm -f conftest.$ac_objext | |
33922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33923 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33924 | ac_status=$? |
32ddf007 VS |
33925 | grep -v '^ *+' conftest.er1 >conftest.err |
33926 | rm -f conftest.er1 | |
33927 | cat conftest.err >&5 | |
e6cc62c6 VS |
33928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33929 | (exit $ac_status); } && | |
e1293dcf | 33930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
33931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33932 | (eval $ac_try) 2>&5 | |
33933 | ac_status=$? | |
33934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33935 | (exit $ac_status); }; } && | |
33936 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33938 | (eval $ac_try) 2>&5 | |
33939 | ac_status=$? | |
33940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33941 | (exit $ac_status); }; }; then | |
f93ca9fd | 33942 | ac_header_compiler=yes |
10f2d63a | 33943 | else |
e6cc62c6 VS |
33944 | echo "$as_me: failed program was:" >&5 |
33945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33946 | ||
f93ca9fd | 33947 | ac_header_compiler=no |
10f2d63a | 33948 | fi |
32ddf007 | 33949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
33950 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33951 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
b089607b | 33952 | |
f93ca9fd VS |
33953 | # Is the header present? |
33954 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33955 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33956 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33957 | /* confdefs.h. */ |
33958 | _ACEOF | |
33959 | cat confdefs.h >>conftest.$ac_ext | |
33960 | cat >>conftest.$ac_ext <<_ACEOF | |
33961 | /* end confdefs.h. */ | |
f93ca9fd | 33962 | #include <$ac_header> |
e6cc62c6 | 33963 | _ACEOF |
f93ca9fd VS |
33964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
33965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
e6cc62c6 | 33966 | ac_status=$? |
f95e4495 VS |
33967 | grep -v '^ *+' conftest.er1 >conftest.err |
33968 | rm -f conftest.er1 | |
33969 | cat conftest.err >&5 | |
e6cc62c6 | 33970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd VS |
33971 | (exit $ac_status); } >/dev/null; then |
33972 | if test -s conftest.err; then | |
33973 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 33974 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
33975 | else |
33976 | ac_cpp_err= | |
33977 | fi | |
33978 | else | |
33979 | ac_cpp_err=yes | |
33980 | fi | |
33981 | if test -z "$ac_cpp_err"; then | |
33982 | ac_header_preproc=yes | |
33983 | else | |
33984 | echo "$as_me: failed program was:" >&5 | |
33985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33986 | ||
33987 | ac_header_preproc=no | |
33988 | fi | |
33989 | rm -f conftest.err conftest.$ac_ext | |
33990 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33991 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33992 | ||
33993 | # So? What about this header? | |
32ddf007 VS |
33994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33995 | yes:no: ) | |
f93ca9fd VS |
33996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
33998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34000 | ac_header_preproc=yes | |
f93ca9fd | 34001 | ;; |
32ddf007 | 34002 | no:yes:* ) |
f93ca9fd VS |
34003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
34005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
34011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
34013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
34015 | ( |
34016 | cat <<\_ASBOX | |
32ddf007 VS |
34017 | ## ----------------------------------------- ## |
34018 | ## Report this to wx-dev@lists.wxwindows.org ## | |
34019 | ## ----------------------------------------- ## | |
f93ca9fd VS |
34020 | _ASBOX |
34021 | ) | | |
34022 | sed "s/^/$as_me: WARNING: /" >&2 | |
34023 | ;; | |
34024 | esac | |
34025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34029 | else | |
32ddf007 | 34030 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
34031 | fi |
34032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34034 | ||
34035 | fi | |
34036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34037 | cat >>confdefs.h <<_ACEOF | |
34038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34039 | _ACEOF | |
34040 | ||
34041 | fi | |
34042 | ||
34043 | done | |
34044 | ||
34045 | ||
34046 | if test "$wxUSE_LIBSDL" != "no"; then | |
34047 | ||
34048 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34049 | if test "${with_sdl_prefix+set}" = set; then | |
34050 | withval="$with_sdl_prefix" | |
34051 | sdl_prefix="$withval" | |
34052 | else | |
34053 | sdl_prefix="" | |
34054 | fi; | |
34055 | ||
34056 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34057 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34058 | withval="$with_sdl_exec_prefix" | |
34059 | sdl_exec_prefix="$withval" | |
34060 | else | |
34061 | sdl_exec_prefix="" | |
34062 | fi; | |
34063 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34064 | if test "${enable_sdltest+set}" = set; then | |
34065 | enableval="$enable_sdltest" | |
34066 | ||
34067 | else | |
34068 | enable_sdltest=yes | |
34069 | fi; | |
34070 | ||
34071 | if test x$sdl_exec_prefix != x ; then | |
34072 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34073 | if test x${SDL_CONFIG+set} != xset ; then | |
34074 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34075 | fi | |
34076 | fi | |
34077 | if test x$sdl_prefix != x ; then | |
34078 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34079 | if test x${SDL_CONFIG+set} != xset ; then | |
34080 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34081 | fi | |
34082 | fi | |
34083 | ||
34084 | ||
34085 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34086 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34087 | set dummy sdl-config; ac_word=$2 | |
34088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34090 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34092 | else | |
34093 | case $SDL_CONFIG in | |
34094 | [\\/]* | ?:[\\/]*) | |
34095 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34096 | ;; | |
34097 | *) | |
34098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34099 | for as_dir in $PATH | |
34100 | do | |
34101 | IFS=$as_save_IFS | |
34102 | test -z "$as_dir" && as_dir=. | |
34103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34105 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34107 | break 2 | |
34108 | fi | |
34109 | done | |
34110 | done | |
34111 | ||
34112 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34113 | ;; | |
34114 | esac | |
34115 | fi | |
34116 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34117 | ||
34118 | if test -n "$SDL_CONFIG"; then | |
34119 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34120 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34121 | else | |
34122 | echo "$as_me:$LINENO: result: no" >&5 | |
34123 | echo "${ECHO_T}no" >&6 | |
34124 | fi | |
34125 | ||
34126 | min_sdl_version=1.2.0 | |
34127 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34128 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34129 | no_sdl="" | |
34130 | if test "$SDL_CONFIG" = "no" ; then | |
34131 | no_sdl=yes | |
34132 | else | |
34133 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34134 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34135 | ||
34136 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34137 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34138 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34139 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34140 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34141 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34142 | if test "x$enable_sdltest" = "xyes" ; then | |
34143 | ac_save_CFLAGS="$CFLAGS" | |
34144 | ac_save_LIBS="$LIBS" | |
34145 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34146 | LIBS="$LIBS $SDL_LIBS" | |
34147 | rm -f conf.sdltest | |
34148 | if test "$cross_compiling" = yes; then | |
34149 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34150 | else | |
34151 | cat >conftest.$ac_ext <<_ACEOF | |
34152 | /* confdefs.h. */ | |
34153 | _ACEOF | |
34154 | cat confdefs.h >>conftest.$ac_ext | |
34155 | cat >>conftest.$ac_ext <<_ACEOF | |
34156 | /* end confdefs.h. */ | |
34157 | ||
34158 | #include <stdio.h> | |
34159 | #include <stdlib.h> | |
34160 | #include <string.h> | |
34161 | #include "SDL.h" | |
34162 | ||
34163 | char* | |
34164 | my_strdup (char *str) | |
34165 | { | |
34166 | char *new_str; | |
34167 | ||
34168 | if (str) | |
34169 | { | |
34170 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34171 | strcpy (new_str, str); | |
34172 | } | |
34173 | else | |
34174 | new_str = NULL; | |
34175 | ||
34176 | return new_str; | |
34177 | } | |
34178 | ||
34179 | int main (int argc, char *argv[]) | |
34180 | { | |
34181 | int major, minor, micro; | |
34182 | char *tmp_version; | |
34183 | ||
34184 | /* This hangs on some systems (?) | |
34185 | system ("touch conf.sdltest"); | |
34186 | */ | |
34187 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34188 | ||
34189 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34190 | tmp_version = my_strdup("$min_sdl_version"); | |
34191 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34192 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34193 | exit(1); | |
34194 | } | |
34195 | ||
34196 | if (($sdl_major_version > major) || | |
34197 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34198 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34199 | { | |
34200 | return 0; | |
34201 | } | |
34202 | else | |
34203 | { | |
34204 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34205 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34206 | printf("*** best to upgrade to the required version.\n"); | |
34207 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34208 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34209 | printf("*** config.cache before re-running configure\n"); | |
34210 | return 1; | |
34211 | } | |
34212 | } | |
34213 | ||
34214 | ||
34215 | _ACEOF | |
34216 | rm -f conftest$ac_exeext | |
34217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34218 | (eval $ac_link) 2>&5 | |
f95e4495 VS |
34219 | ac_status=$? |
34220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f93ca9fd | 34221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e6cc62c6 VS |
34222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34223 | (eval $ac_try) 2>&5 | |
34224 | ac_status=$? | |
34225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34226 | (exit $ac_status); }; }; then | |
f93ca9fd | 34227 | : |
e6cc62c6 | 34228 | else |
f93ca9fd VS |
34229 | echo "$as_me: program exited with status $ac_status" >&5 |
34230 | echo "$as_me: failed program was:" >&5 | |
e6cc62c6 VS |
34231 | sed 's/^/| /' conftest.$ac_ext >&5 |
34232 | ||
f93ca9fd VS |
34233 | ( exit $ac_status ) |
34234 | no_sdl=yes | |
e6cc62c6 | 34235 | fi |
32ddf007 | 34236 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34237 | fi |
f93ca9fd VS |
34238 | CFLAGS="$ac_save_CFLAGS" |
34239 | LIBS="$ac_save_LIBS" | |
34240 | fi | |
34241 | fi | |
34242 | if test "x$no_sdl" = x ; then | |
34243 | echo "$as_me:$LINENO: result: yes" >&5 | |
34244 | echo "${ECHO_T}yes" >&6 | |
0e012a93 | 34245 | |
f93ca9fd VS |
34246 | EXTRALIBS_SDL="$SDL_LIBS" |
34247 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34248 | cat >>confdefs.h <<\_ACEOF | |
34249 | #define wxUSE_LIBSDL 1 | |
34250 | _ACEOF | |
34251 | ||
34252 | ||
34253 | else | |
34254 | echo "$as_me:$LINENO: result: no" >&5 | |
34255 | echo "${ECHO_T}no" >&6 | |
34256 | if test "$SDL_CONFIG" = "no" ; then | |
34257 | echo "*** The sdl-config script installed by SDL could not be found" | |
34258 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34259 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34260 | echo "*** full path to sdl-config." | |
34261 | else | |
34262 | if test -f conf.sdltest ; then | |
34263 | : | |
34264 | else | |
34265 | echo "*** Could not run SDL test program, checking why..." | |
34266 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34267 | LIBS="$LIBS $SDL_LIBS" | |
34268 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34269 | /* confdefs.h. */ |
34270 | _ACEOF | |
34271 | cat confdefs.h >>conftest.$ac_ext | |
34272 | cat >>conftest.$ac_ext <<_ACEOF | |
34273 | /* end confdefs.h. */ | |
34274 | ||
f93ca9fd VS |
34275 | #include <stdio.h> |
34276 | #include "SDL.h" | |
34277 | ||
34278 | int main(int argc, char *argv[]) | |
34279 | { return 0; } | |
34280 | #undef main | |
34281 | #define main K_and_R_C_main | |
34282 | ||
e6cc62c6 VS |
34283 | int |
34284 | main () | |
34285 | { | |
f93ca9fd | 34286 | return 0; |
e6cc62c6 VS |
34287 | ; |
34288 | return 0; | |
34289 | } | |
34290 | _ACEOF | |
34291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34293 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34294 | ac_status=$? |
32ddf007 VS |
34295 | grep -v '^ *+' conftest.er1 >conftest.err |
34296 | rm -f conftest.er1 | |
34297 | cat conftest.err >&5 | |
e6cc62c6 VS |
34298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34299 | (exit $ac_status); } && | |
e1293dcf | 34300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34302 | (eval $ac_try) 2>&5 | |
34303 | ac_status=$? | |
34304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34305 | (exit $ac_status); }; } && | |
34306 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34308 | (eval $ac_try) 2>&5 | |
34309 | ac_status=$? | |
34310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34311 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34312 | echo "*** The test program compiled, but did not run. This usually means" |
34313 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34314 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34315 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34316 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34317 | echo "*** is required on your system" | |
34318 | echo "***" | |
34319 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34320 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
e6cc62c6 VS |
34321 | else |
34322 | echo "$as_me: failed program was:" >&5 | |
34323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34324 | ||
f93ca9fd VS |
34325 | echo "*** The test program failed to compile or link. See the file config.log for the" |
34326 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34327 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34328 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
e6cc62c6 | 34329 | fi |
32ddf007 VS |
34330 | rm -f conftest.err conftest.$ac_objext \ |
34331 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34332 | CFLAGS="$ac_save_CFLAGS" |
34333 | LIBS="$ac_save_LIBS" | |
34334 | fi | |
34335 | fi | |
34336 | SDL_CFLAGS="" | |
34337 | SDL_LIBS="" | |
34338 | wxUSE_LIBSDL="no" | |
34339 | fi | |
34340 | ||
34341 | ||
34342 | rm -f conf.sdltest | |
34343 | ||
34344 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34345 | WITH_PLUGIN_SDL=1 | |
34346 | fi | |
34347 | fi | |
34348 | fi | |
34349 | ||
34350 | cat >>confdefs.h <<\_ACEOF | |
002ed9af | 34351 | #define wxUSE_SOUND 1 |
f93ca9fd VS |
34352 | _ACEOF |
34353 | ||
34354 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
e6cc62c6 | 34355 | fi |
afc31813 | 34356 | |
f93ca9fd VS |
34357 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34358 | cat >>confdefs.h <<\_ACEOF | |
34359 | #define wxUSE_CMDLINE_PARSER 1 | |
34360 | _ACEOF | |
34361 | ||
34362 | fi | |
e6cc62c6 | 34363 | |
f93ca9fd VS |
34364 | if test "$wxUSE_STOPWATCH" = "yes"; then |
34365 | cat >>confdefs.h <<\_ACEOF | |
34366 | #define wxUSE_STOPWATCH 1 | |
34367 | _ACEOF | |
e6cc62c6 | 34368 | |
6232543b | 34369 | fi |
b089607b | 34370 | |
f93ca9fd VS |
34371 | if test "$wxUSE_DATETIME" = "yes"; then |
34372 | cat >>confdefs.h <<\_ACEOF | |
34373 | #define wxUSE_DATETIME 1 | |
34374 | _ACEOF | |
e6cc62c6 | 34375 | |
f93ca9fd VS |
34376 | fi |
34377 | ||
34378 | if test "$wxUSE_FILE" = "yes"; then | |
34379 | cat >>confdefs.h <<\_ACEOF | |
34380 | #define wxUSE_FILE 1 | |
34381 | _ACEOF | |
0e012a93 | 34382 | |
1e487827 | 34383 | fi |
afc31813 | 34384 | |
f93ca9fd VS |
34385 | if test "$wxUSE_FFILE" = "yes"; then |
34386 | cat >>confdefs.h <<\_ACEOF | |
34387 | #define wxUSE_FFILE 1 | |
34388 | _ACEOF | |
34389 | ||
34390 | fi | |
34391 | ||
34392 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34393 | cat >>confdefs.h <<\_ACEOF | |
34394 | #define wxUSE_FILESYSTEM 1 | |
34395 | _ACEOF | |
34396 | ||
34397 | fi | |
34398 | ||
34399 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34400 | cat >>confdefs.h <<\_ACEOF | |
34401 | #define wxUSE_FS_ZIP 1 | |
34402 | _ACEOF | |
34403 | ||
34404 | fi | |
34405 | ||
34406 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34407 | cat >>confdefs.h <<\_ACEOF | |
34408 | #define wxUSE_ZIPSTREAM 1 | |
34409 | _ACEOF | |
34410 | ||
34411 | fi | |
34412 | ||
34413 | if test "$wxUSE_GZSTREAM" = "yes"; then | |
34414 | cat >>confdefs.h <<\_ACEOF | |
34415 | #define wxUSE_GZSTREAM 1 | |
34416 | _ACEOF | |
34417 | ||
34418 | fi | |
34419 | ||
34420 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34421 | cat >>confdefs.h <<\_ACEOF | |
34422 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34423 | _ACEOF | |
34424 | ||
34425 | fi | |
34426 | ||
34427 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34428 | cat >>confdefs.h <<\_ACEOF | |
34429 | #define wxUSE_SNGLINST_CHECKER 1 | |
34430 | _ACEOF | |
34431 | ||
34432 | fi | |
34433 | ||
34434 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34435 | cat >>confdefs.h <<\_ACEOF | |
34436 | #define wxUSE_BUSYINFO 1 | |
34437 | _ACEOF | |
34438 | ||
34439 | fi | |
34440 | ||
34441 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34442 | cat >>confdefs.h <<\_ACEOF | |
34443 | #define wxUSE_STD_IOSTREAM 1 | |
34444 | _ACEOF | |
34445 | ||
34446 | fi | |
34447 | ||
34448 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34449 | cat >>confdefs.h <<\_ACEOF | |
34450 | #define wxUSE_TEXTBUFFER 1 | |
34451 | _ACEOF | |
34452 | ||
34453 | fi | |
34454 | ||
34455 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34456 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34457 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34458 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34459 | else | |
34460 | cat >>confdefs.h <<\_ACEOF | |
34461 | #define wxUSE_TEXTFILE 1 | |
34462 | _ACEOF | |
34463 | ||
34464 | fi | |
34465 | fi | |
34466 | ||
34467 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34468 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34469 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34470 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34471 | else | |
34472 | cat >>confdefs.h <<\_ACEOF | |
34473 | #define wxUSE_CONFIG 1 | |
34474 | _ACEOF | |
34475 | ||
34476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34477 | fi | |
34478 | fi | |
34479 | ||
34480 | if test "$wxUSE_INTL" = "yes" ; then | |
34481 | if test "$wxUSE_FILE" != "yes"; then | |
34482 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34483 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34484 | else | |
34485 | cat >>confdefs.h <<\_ACEOF | |
34486 | #define wxUSE_INTL 1 | |
34487 | _ACEOF | |
34488 | ||
34489 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34490 | GUIDIST="$GUIDIST INTL_DIST" | |
34491 | fi | |
34492 | fi | |
34493 | ||
34494 | if test "$wxUSE_LOG" = "yes"; then | |
34495 | cat >>confdefs.h <<\_ACEOF | |
34496 | #define wxUSE_LOG 1 | |
34497 | _ACEOF | |
34498 | ||
34499 | ||
34500 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34501 | cat >>confdefs.h <<\_ACEOF | |
34502 | #define wxUSE_LOGGUI 1 | |
34503 | _ACEOF | |
34504 | ||
34505 | fi | |
34506 | ||
34507 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34508 | cat >>confdefs.h <<\_ACEOF | |
34509 | #define wxUSE_LOGWINDOW 1 | |
34510 | _ACEOF | |
34511 | ||
34512 | fi | |
34513 | ||
34514 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34515 | cat >>confdefs.h <<\_ACEOF | |
34516 | #define wxUSE_LOG_DIALOG 1 | |
34517 | _ACEOF | |
34518 | ||
3a922bb4 | 34519 | fi |
0feee163 | 34520 | fi |
51a9faba | 34521 | |
f93ca9fd VS |
34522 | if test "$wxUSE_LONGLONG" = "yes"; then |
34523 | cat >>confdefs.h <<\_ACEOF | |
34524 | #define wxUSE_LONGLONG 1 | |
34525 | _ACEOF | |
e6cc62c6 | 34526 | |
f93ca9fd VS |
34527 | fi |
34528 | ||
34529 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34530 | cat >>confdefs.h <<\_ACEOF | |
34531 | #define wxUSE_GEOMETRY 1 | |
e6cc62c6 | 34532 | _ACEOF |
51a9faba | 34533 | |
f93ca9fd | 34534 | fi |
e6cc62c6 | 34535 | |
f93ca9fd VS |
34536 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
34537 | cat >>confdefs.h <<\_ACEOF | |
34538 | #define wxUSE_DIALUP_MANAGER 1 | |
34539 | _ACEOF | |
51a9faba | 34540 | |
f93ca9fd VS |
34541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
34542 | fi | |
e6cc62c6 | 34543 | |
f93ca9fd VS |
34544 | if test "$wxUSE_STREAMS" = "yes" ; then |
34545 | cat >>confdefs.h <<\_ACEOF | |
34546 | #define wxUSE_STREAMS 1 | |
e6cc62c6 | 34547 | _ACEOF |
e6cc62c6 | 34548 | |
f93ca9fd | 34549 | fi |
e6cc62c6 | 34550 | |
9711d31e | 34551 | |
f93ca9fd VS |
34552 | if test "$wxUSE_DATETIME" = "yes"; then |
34553 | ||
34554 | for ac_func in strptime | |
34555 | do | |
34556 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34557 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34558 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34559 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34561 | else | |
34562 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34563 | /* confdefs.h. */ |
34564 | _ACEOF | |
34565 | cat confdefs.h >>conftest.$ac_ext | |
34566 | cat >>conftest.$ac_ext <<_ACEOF | |
34567 | /* end confdefs.h. */ | |
32ddf007 VS |
34568 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34569 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34570 | #define $ac_func innocuous_$ac_func | |
34571 | ||
f93ca9fd VS |
34572 | /* System header to define __stub macros and hopefully few prototypes, |
34573 | which can conflict with char $ac_func (); below. | |
34574 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34575 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 34576 | |
f93ca9fd VS |
34577 | #ifdef __STDC__ |
34578 | # include <limits.h> | |
34579 | #else | |
34580 | # include <assert.h> | |
34581 | #endif | |
32ddf007 VS |
34582 | |
34583 | #undef $ac_func | |
34584 | ||
f93ca9fd VS |
34585 | /* Override any gcc2 internal prototype to avoid an error. */ |
34586 | #ifdef __cplusplus | |
34587 | extern "C" | |
34588 | { | |
34589 | #endif | |
34590 | /* We use char because int might match the return type of a gcc2 | |
34591 | builtin and then its argument prototype would still apply. */ | |
34592 | char $ac_func (); | |
34593 | /* The GNU C library defines this for functions which it implements | |
34594 | to always fail with ENOSYS. Some functions are actually named | |
34595 | something starting with __ and the normal name is an alias. */ | |
34596 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34597 | choke me | |
34598 | #else | |
34599 | char (*f) () = $ac_func; | |
34600 | #endif | |
34601 | #ifdef __cplusplus | |
34602 | } | |
34603 | #endif | |
e6cc62c6 VS |
34604 | |
34605 | int | |
34606 | main () | |
34607 | { | |
f93ca9fd | 34608 | return f != $ac_func; |
e6cc62c6 VS |
34609 | ; |
34610 | return 0; | |
34611 | } | |
34612 | _ACEOF | |
f93ca9fd VS |
34613 | rm -f conftest.$ac_objext conftest$ac_exeext |
34614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34615 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34616 | ac_status=$? |
32ddf007 VS |
34617 | grep -v '^ *+' conftest.er1 >conftest.err |
34618 | rm -f conftest.er1 | |
34619 | cat conftest.err >&5 | |
e6cc62c6 VS |
34620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34621 | (exit $ac_status); } && | |
e1293dcf | 34622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34624 | (eval $ac_try) 2>&5 | |
34625 | ac_status=$? | |
34626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34627 | (exit $ac_status); }; } && | |
34628 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34630 | (eval $ac_try) 2>&5 | |
34631 | ac_status=$? | |
34632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34633 | (exit $ac_status); }; }; then | |
f93ca9fd | 34634 | eval "$as_ac_var=yes" |
afc31813 | 34635 | else |
e6cc62c6 VS |
34636 | echo "$as_me: failed program was:" >&5 |
34637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34638 | ||
f93ca9fd VS |
34639 | eval "$as_ac_var=no" |
34640 | fi | |
32ddf007 VS |
34641 | rm -f conftest.err conftest.$ac_objext \ |
34642 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34643 | fi |
34644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34645 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34646 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34647 | cat >>confdefs.h <<_ACEOF | |
34648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34649 | _ACEOF | |
34650 | ||
34651 | fi | |
34652 | done | |
34653 | ||
34654 | ||
34655 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34656 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34657 | if test "${wx_cv_var_timezone+set}" = set; then | |
34658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34659 | else | |
34660 | ||
34661 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34662 | /* confdefs.h. */ |
34663 | _ACEOF | |
34664 | cat confdefs.h >>conftest.$ac_ext | |
34665 | cat >>conftest.$ac_ext <<_ACEOF | |
34666 | /* end confdefs.h. */ | |
51a9faba | 34667 | |
f93ca9fd | 34668 | #include <time.h> |
e6cc62c6 VS |
34669 | |
34670 | int | |
34671 | main () | |
34672 | { | |
51a9faba | 34673 | |
f93ca9fd VS |
34674 | int tz; |
34675 | tz = timezone; | |
e6cc62c6 VS |
34676 | |
34677 | ; | |
34678 | return 0; | |
34679 | } | |
34680 | _ACEOF | |
34681 | rm -f conftest.$ac_objext | |
34682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34683 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34684 | ac_status=$? |
32ddf007 VS |
34685 | grep -v '^ *+' conftest.er1 >conftest.err |
34686 | rm -f conftest.er1 | |
34687 | cat conftest.err >&5 | |
e6cc62c6 VS |
34688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34689 | (exit $ac_status); } && | |
e1293dcf | 34690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34692 | (eval $ac_try) 2>&5 | |
34693 | ac_status=$? | |
34694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34695 | (exit $ac_status); }; } && | |
34696 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
34697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34698 | (eval $ac_try) 2>&5 | |
34699 | ac_status=$? | |
34700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34701 | (exit $ac_status); }; }; then | |
8284b0c5 | 34702 | |
f93ca9fd | 34703 | wx_cv_var_timezone=timezone |
dc3d889d | 34704 | |
f93ca9fd VS |
34705 | else |
34706 | echo "$as_me: failed program was:" >&5 | |
34707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
156b2523 | 34708 | |
e6cc62c6 | 34709 | |
f93ca9fd | 34710 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34711 | /* confdefs.h. */ |
34712 | _ACEOF | |
34713 | cat confdefs.h >>conftest.$ac_ext | |
34714 | cat >>conftest.$ac_ext <<_ACEOF | |
34715 | /* end confdefs.h. */ | |
f93ca9fd VS |
34716 | |
34717 | #include <time.h> | |
34718 | ||
34719 | int | |
34720 | main () | |
34721 | { | |
34722 | ||
34723 | int tz; | |
34724 | tz = _timezone; | |
34725 | ||
34726 | ; | |
34727 | return 0; | |
34728 | } | |
e6cc62c6 VS |
34729 | _ACEOF |
34730 | rm -f conftest.$ac_objext | |
34731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34732 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34733 | ac_status=$? |
32ddf007 VS |
34734 | grep -v '^ *+' conftest.er1 >conftest.err |
34735 | rm -f conftest.er1 | |
34736 | cat conftest.err >&5 | |
e6cc62c6 VS |
34737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34738 | (exit $ac_status); } && | |
e1293dcf | 34739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34741 | (eval $ac_try) 2>&5 | |
34742 | ac_status=$? | |
34743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34744 | (exit $ac_status); }; } && | |
34745 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34747 | (eval $ac_try) 2>&5 | |
34748 | ac_status=$? | |
34749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34750 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34751 | |
34752 | wx_cv_var_timezone=_timezone | |
34753 | ||
e6cc62c6 VS |
34754 | else |
34755 | echo "$as_me: failed program was:" >&5 | |
34756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34757 | ||
e6cc62c6 | 34758 | |
f93ca9fd | 34759 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34760 | /* confdefs.h. */ |
34761 | _ACEOF | |
34762 | cat confdefs.h >>conftest.$ac_ext | |
34763 | cat >>conftest.$ac_ext <<_ACEOF | |
34764 | /* end confdefs.h. */ | |
f93ca9fd VS |
34765 | |
34766 | #include <time.h> | |
34767 | ||
34768 | int | |
34769 | main () | |
34770 | { | |
34771 | ||
34772 | int tz; | |
34773 | tz = __timezone; | |
34774 | ||
34775 | ; | |
34776 | return 0; | |
34777 | } | |
e6cc62c6 | 34778 | _ACEOF |
f93ca9fd VS |
34779 | rm -f conftest.$ac_objext |
34780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34781 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34782 | ac_status=$? |
32ddf007 VS |
34783 | grep -v '^ *+' conftest.er1 >conftest.err |
34784 | rm -f conftest.er1 | |
34785 | cat conftest.err >&5 | |
e6cc62c6 | 34786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd | 34787 | (exit $ac_status); } && |
e1293dcf | 34788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34790 | (eval $ac_try) 2>&5 | |
34791 | ac_status=$? | |
34792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34793 | (exit $ac_status); }; } && | |
34794 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
34795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34796 | (eval $ac_try) 2>&5 | |
34797 | ac_status=$? | |
34798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34799 | (exit $ac_status); }; }; then | |
34800 | ||
34801 | wx_cv_var_timezone=__timezone | |
34802 | ||
e6cc62c6 VS |
34803 | else |
34804 | echo "$as_me: failed program was:" >&5 | |
34805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34806 | ||
e6cc62c6 | 34807 | |
f93ca9fd VS |
34808 | if test "$USE_DOS" = 0 ; then |
34809 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34810 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34811 | fi | |
34812 | ||
e6cc62c6 | 34813 | |
10f2d63a | 34814 | fi |
32ddf007 | 34815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 34816 | |
e6cc62c6 | 34817 | |
247f5006 | 34818 | fi |
32ddf007 | 34819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34820 | |
10f2d63a | 34821 | |
f93ca9fd | 34822 | fi |
32ddf007 | 34823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b089607b | 34824 | |
10f2d63a | 34825 | |
dc3d889d | 34826 | fi |
f93ca9fd VS |
34827 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 |
34828 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
dc3d889d | 34829 | |
f93ca9fd VS |
34830 | if test "x$wx_cv_var_timezone" != x ; then |
34831 | cat >>confdefs.h <<_ACEOF | |
34832 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34833 | _ACEOF | |
8284b0c5 | 34834 | |
f93ca9fd | 34835 | fi |
b089607b | 34836 | |
e6cc62c6 | 34837 | |
f93ca9fd | 34838 | for ac_func in localtime |
10f2d63a | 34839 | do |
e6cc62c6 VS |
34840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34845 | else | |
34846 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34847 | /* confdefs.h. */ |
34848 | _ACEOF | |
34849 | cat confdefs.h >>conftest.$ac_ext | |
34850 | cat >>conftest.$ac_ext <<_ACEOF | |
34851 | /* end confdefs.h. */ | |
32ddf007 VS |
34852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34854 | #define $ac_func innocuous_$ac_func | |
34855 | ||
10f2d63a | 34856 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34857 | which can conflict with char $ac_func (); below. |
34858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34859 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 34860 | |
e6cc62c6 VS |
34861 | #ifdef __STDC__ |
34862 | # include <limits.h> | |
34863 | #else | |
34864 | # include <assert.h> | |
34865 | #endif | |
32ddf007 VS |
34866 | |
34867 | #undef $ac_func | |
34868 | ||
10f2d63a | 34869 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34870 | #ifdef __cplusplus |
34871 | extern "C" | |
34872 | { | |
34873 | #endif | |
10f2d63a | 34874 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34875 | builtin and then its argument prototype would still apply. */ |
34876 | char $ac_func (); | |
10f2d63a VZ |
34877 | /* The GNU C library defines this for functions which it implements |
34878 | to always fail with ENOSYS. Some functions are actually named | |
34879 | something starting with __ and the normal name is an alias. */ | |
34880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34881 | choke me | |
34882 | #else | |
e6cc62c6 VS |
34883 | char (*f) () = $ac_func; |
34884 | #endif | |
34885 | #ifdef __cplusplus | |
34886 | } | |
10f2d63a VZ |
34887 | #endif |
34888 | ||
e6cc62c6 VS |
34889 | int |
34890 | main () | |
34891 | { | |
34892 | return f != $ac_func; | |
34893 | ; | |
34894 | return 0; | |
34895 | } | |
34896 | _ACEOF | |
34897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34899 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34900 | ac_status=$? |
32ddf007 VS |
34901 | grep -v '^ *+' conftest.er1 >conftest.err |
34902 | rm -f conftest.er1 | |
34903 | cat conftest.err >&5 | |
e6cc62c6 VS |
34904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34905 | (exit $ac_status); } && | |
e1293dcf | 34906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34908 | (eval $ac_try) 2>&5 | |
34909 | ac_status=$? | |
34910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34911 | (exit $ac_status); }; } && | |
34912 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34914 | (eval $ac_try) 2>&5 | |
34915 | ac_status=$? | |
34916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34917 | (exit $ac_status); }; }; then | |
34918 | eval "$as_ac_var=yes" | |
34919 | else | |
34920 | echo "$as_me: failed program was:" >&5 | |
34921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34922 | ||
34923 | eval "$as_ac_var=no" | |
34924 | fi | |
32ddf007 VS |
34925 | rm -f conftest.err conftest.$ac_objext \ |
34926 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34927 | fi |
34928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34929 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34930 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34931 | cat >>confdefs.h <<_ACEOF | |
34932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34933 | _ACEOF | |
34934 | ||
f93ca9fd VS |
34935 | fi |
34936 | done | |
e6cc62c6 | 34937 | |
e6cc62c6 | 34938 | |
f93ca9fd VS |
34939 | if test "$ac_cv_func_localtime" = "yes"; then |
34940 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34941 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34942 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
e6cc62c6 | 34943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10f2d63a | 34944 | else |
f93ca9fd VS |
34945 | |
34946 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34947 | /* confdefs.h. */ |
34948 | _ACEOF | |
34949 | cat confdefs.h >>conftest.$ac_ext | |
34950 | cat >>conftest.$ac_ext <<_ACEOF | |
34951 | /* end confdefs.h. */ | |
34952 | ||
f93ca9fd VS |
34953 | #include <time.h> |
34954 | ||
e6cc62c6 VS |
34955 | int |
34956 | main () | |
34957 | { | |
f93ca9fd VS |
34958 | |
34959 | struct tm tm; | |
34960 | tm.tm_gmtoff++; | |
34961 | ||
e6cc62c6 VS |
34962 | ; |
34963 | return 0; | |
34964 | } | |
34965 | _ACEOF | |
f93ca9fd VS |
34966 | rm -f conftest.$ac_objext |
34967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34968 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34969 | ac_status=$? |
32ddf007 VS |
34970 | grep -v '^ *+' conftest.er1 >conftest.err |
34971 | rm -f conftest.er1 | |
34972 | cat conftest.err >&5 | |
e6cc62c6 VS |
34973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34974 | (exit $ac_status); } && | |
e1293dcf | 34975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
34976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34977 | (eval $ac_try) 2>&5 | |
34978 | ac_status=$? | |
34979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34980 | (exit $ac_status); }; } && | |
34981 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34983 | (eval $ac_try) 2>&5 | |
34984 | ac_status=$? | |
34985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34986 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34987 | |
34988 | wx_cv_struct_tm_has_gmtoff=yes | |
34989 | ||
e6cc62c6 VS |
34990 | else |
34991 | echo "$as_me: failed program was:" >&5 | |
34992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34993 | ||
f93ca9fd VS |
34994 | wx_cv_struct_tm_has_gmtoff=no |
34995 | ||
e6cc62c6 | 34996 | fi |
32ddf007 | 34997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 34998 | |
e6cc62c6 | 34999 | fi |
f93ca9fd VS |
35000 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
35001 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35002 | fi | |
e6cc62c6 | 35003 | |
f93ca9fd VS |
35004 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then |
35005 | cat >>confdefs.h <<\_ACEOF | |
35006 | #define WX_GMTOFF_IN_TM 1 | |
e6cc62c6 | 35007 | _ACEOF |
10f2d63a | 35008 | |
f93ca9fd | 35009 | fi |
e6cc62c6 | 35010 | |
10f2d63a | 35011 | |
e6cc62c6 | 35012 | |
f93ca9fd | 35013 | for ac_func in gettimeofday ftime |
10f2d63a | 35014 | do |
e6cc62c6 VS |
35015 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35016 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35017 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35018 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35020 | else | |
35021 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35022 | /* confdefs.h. */ |
35023 | _ACEOF | |
35024 | cat confdefs.h >>conftest.$ac_ext | |
35025 | cat >>conftest.$ac_ext <<_ACEOF | |
35026 | /* end confdefs.h. */ | |
32ddf007 VS |
35027 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35029 | #define $ac_func innocuous_$ac_func | |
35030 | ||
10f2d63a | 35031 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
35032 | which can conflict with char $ac_func (); below. |
35033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35034 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35035 | |
e6cc62c6 VS |
35036 | #ifdef __STDC__ |
35037 | # include <limits.h> | |
35038 | #else | |
35039 | # include <assert.h> | |
35040 | #endif | |
32ddf007 VS |
35041 | |
35042 | #undef $ac_func | |
35043 | ||
10f2d63a | 35044 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35045 | #ifdef __cplusplus |
35046 | extern "C" | |
35047 | { | |
35048 | #endif | |
10f2d63a | 35049 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
35050 | builtin and then its argument prototype would still apply. */ |
35051 | char $ac_func (); | |
10f2d63a VZ |
35052 | /* The GNU C library defines this for functions which it implements |
35053 | to always fail with ENOSYS. Some functions are actually named | |
35054 | something starting with __ and the normal name is an alias. */ | |
35055 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35056 | choke me | |
35057 | #else | |
e6cc62c6 VS |
35058 | char (*f) () = $ac_func; |
35059 | #endif | |
35060 | #ifdef __cplusplus | |
35061 | } | |
10f2d63a VZ |
35062 | #endif |
35063 | ||
e6cc62c6 VS |
35064 | int |
35065 | main () | |
35066 | { | |
35067 | return f != $ac_func; | |
35068 | ; | |
35069 | return 0; | |
35070 | } | |
35071 | _ACEOF | |
35072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35074 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35075 | ac_status=$? |
32ddf007 VS |
35076 | grep -v '^ *+' conftest.er1 >conftest.err |
35077 | rm -f conftest.er1 | |
35078 | cat conftest.err >&5 | |
e6cc62c6 VS |
35079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35080 | (exit $ac_status); } && | |
e1293dcf | 35081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35083 | (eval $ac_try) 2>&5 | |
35084 | ac_status=$? | |
35085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35086 | (exit $ac_status); }; } && | |
35087 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35089 | (eval $ac_try) 2>&5 | |
35090 | ac_status=$? | |
35091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35092 | (exit $ac_status); }; }; then | |
35093 | eval "$as_ac_var=yes" | |
35094 | else | |
35095 | echo "$as_me: failed program was:" >&5 | |
35096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35097 | ||
35098 | eval "$as_ac_var=no" | |
35099 | fi | |
32ddf007 VS |
35100 | rm -f conftest.err conftest.$ac_objext \ |
35101 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35102 | fi |
35103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35105 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35106 | cat >>confdefs.h <<_ACEOF | |
35107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35108 | _ACEOF | |
f93ca9fd VS |
35109 | break |
35110 | fi | |
35111 | done | |
e6cc62c6 | 35112 | |
f93ca9fd VS |
35113 | |
35114 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35115 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35116 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35117 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35119 | else | |
35120 | ||
35121 | ||
35122 | ||
35123 | ac_ext=cc | |
35124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35128 | ||
35129 | ||
35130 | cat >conftest.$ac_ext <<_ACEOF | |
35131 | /* confdefs.h. */ | |
e6cc62c6 | 35132 | _ACEOF |
f93ca9fd VS |
35133 | cat confdefs.h >>conftest.$ac_ext |
35134 | cat >>conftest.$ac_ext <<_ACEOF | |
35135 | /* end confdefs.h. */ | |
10f2d63a | 35136 | |
f93ca9fd VS |
35137 | #include <sys/time.h> |
35138 | #include <unistd.h> | |
e6cc62c6 | 35139 | |
f93ca9fd VS |
35140 | int |
35141 | main () | |
35142 | { | |
e6cc62c6 | 35143 | |
f93ca9fd VS |
35144 | struct timeval tv; |
35145 | gettimeofday(&tv, NULL); | |
35146 | ||
35147 | ; | |
35148 | return 0; | |
35149 | } | |
35150 | _ACEOF | |
35151 | rm -f conftest.$ac_objext | |
35152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35153 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35154 | ac_status=$? |
32ddf007 VS |
35155 | grep -v '^ *+' conftest.er1 >conftest.err |
35156 | rm -f conftest.er1 | |
35157 | cat conftest.err >&5 | |
f93ca9fd VS |
35158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35159 | (exit $ac_status); } && | |
e1293dcf | 35160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35162 | (eval $ac_try) 2>&5 | |
35163 | ac_status=$? | |
35164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35165 | (exit $ac_status); }; } && | |
35166 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35168 | (eval $ac_try) 2>&5 | |
35169 | ac_status=$? | |
35170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35171 | (exit $ac_status); }; }; then | |
35172 | wx_cv_func_gettimeofday_has_2_args=yes | |
f6bcfd97 | 35173 | else |
f93ca9fd VS |
35174 | echo "$as_me: failed program was:" >&5 |
35175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35176 | ||
e6cc62c6 | 35177 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35178 | /* confdefs.h. */ |
35179 | _ACEOF | |
35180 | cat confdefs.h >>conftest.$ac_ext | |
35181 | cat >>conftest.$ac_ext <<_ACEOF | |
35182 | /* end confdefs.h. */ | |
35183 | ||
f93ca9fd VS |
35184 | #include <sys/time.h> |
35185 | #include <unistd.h> | |
35186 | ||
e6cc62c6 VS |
35187 | int |
35188 | main () | |
35189 | { | |
f93ca9fd VS |
35190 | |
35191 | struct timeval tv; | |
35192 | gettimeofday(&tv); | |
35193 | ||
e6cc62c6 VS |
35194 | ; |
35195 | return 0; | |
35196 | } | |
35197 | _ACEOF | |
f93ca9fd VS |
35198 | rm -f conftest.$ac_objext |
35199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35200 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35201 | ac_status=$? |
32ddf007 VS |
35202 | grep -v '^ *+' conftest.er1 >conftest.err |
35203 | rm -f conftest.er1 | |
35204 | cat conftest.err >&5 | |
e6cc62c6 VS |
35205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35206 | (exit $ac_status); } && | |
e1293dcf | 35207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35209 | (eval $ac_try) 2>&5 | |
35210 | ac_status=$? | |
35211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35212 | (exit $ac_status); }; } && | |
35213 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35215 | (eval $ac_try) 2>&5 | |
35216 | ac_status=$? | |
35217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35218 | (exit $ac_status); }; }; then | |
f93ca9fd | 35219 | wx_cv_func_gettimeofday_has_2_args=no |
e6cc62c6 VS |
35220 | else |
35221 | echo "$as_me: failed program was:" >&5 | |
35222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35223 | ||
f6bcfd97 | 35224 | |
f93ca9fd VS |
35225 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
35226 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35227 | wx_cv_func_gettimeofday_has_2_args=unknown | |
e6cc62c6 | 35228 | |
f6bcfd97 | 35229 | |
f93ca9fd | 35230 | fi |
32ddf007 | 35231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 35232 | |
10f2d63a | 35233 | fi |
32ddf007 | 35234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
35235 | ac_ext=c |
35236 | ac_cpp='$CPP $CPPFLAGS' | |
35237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 35240 | |
e6cc62c6 | 35241 | |
10f2d63a | 35242 | fi |
f93ca9fd VS |
35243 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
35244 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35245 | ||
35246 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35247 | cat >>confdefs.h <<\_ACEOF | |
35248 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35249 | _ACEOF | |
10f2d63a | 35250 | |
f93ca9fd VS |
35251 | fi |
35252 | fi | |
e6cc62c6 | 35253 | |
f93ca9fd | 35254 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
10f2d63a | 35255 | fi |
10f2d63a | 35256 | |
5c6fa7d2 | 35257 | |
f93ca9fd VS |
35258 | if test "$wxUSE_SOCKETS" = "yes"; then |
35259 | if test "$wxUSE_MGL" = "1"; then | |
35260 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35261 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35262 | wxUSE_SOCKETS="no" | |
35263 | fi | |
35264 | fi | |
e6cc62c6 | 35265 | |
f93ca9fd VS |
35266 | if test "$wxUSE_SOCKETS" = "yes"; then |
35267 | if test "$TOOLKIT" != "MSW"; then | |
35268 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35269 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35270 | if test "${ac_cv_func_socket+set}" = set; then | |
e6cc62c6 VS |
35271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
35272 | else | |
35273 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35274 | /* confdefs.h. */ |
35275 | _ACEOF | |
35276 | cat confdefs.h >>conftest.$ac_ext | |
35277 | cat >>conftest.$ac_ext <<_ACEOF | |
35278 | /* end confdefs.h. */ | |
32ddf007 VS |
35279 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35281 | #define socket innocuous_socket | |
35282 | ||
f6bcfd97 | 35283 | /* System header to define __stub macros and hopefully few prototypes, |
f93ca9fd | 35284 | which can conflict with char socket (); below. |
e6cc62c6 VS |
35285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
35286 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35287 | |
e6cc62c6 VS |
35288 | #ifdef __STDC__ |
35289 | # include <limits.h> | |
35290 | #else | |
35291 | # include <assert.h> | |
35292 | #endif | |
32ddf007 VS |
35293 | |
35294 | #undef socket | |
35295 | ||
f6bcfd97 | 35296 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35297 | #ifdef __cplusplus |
35298 | extern "C" | |
35299 | { | |
35300 | #endif | |
f6bcfd97 | 35301 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 35302 | builtin and then its argument prototype would still apply. */ |
f93ca9fd | 35303 | char socket (); |
f6bcfd97 BP |
35304 | /* The GNU C library defines this for functions which it implements |
35305 | to always fail with ENOSYS. Some functions are actually named | |
35306 | something starting with __ and the normal name is an alias. */ | |
f93ca9fd | 35307 | #if defined (__stub_socket) || defined (__stub___socket) |
f6bcfd97 BP |
35308 | choke me |
35309 | #else | |
f93ca9fd | 35310 | char (*f) () = socket; |
e6cc62c6 VS |
35311 | #endif |
35312 | #ifdef __cplusplus | |
35313 | } | |
f6bcfd97 BP |
35314 | #endif |
35315 | ||
e6cc62c6 VS |
35316 | int |
35317 | main () | |
35318 | { | |
f93ca9fd VS |
35319 | return f != socket; |
35320 | ; | |
35321 | return 0; | |
35322 | } | |
35323 | _ACEOF | |
35324 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35326 | (eval $ac_link) 2>conftest.er1 |
f93ca9fd | 35327 | ac_status=$? |
32ddf007 VS |
35328 | grep -v '^ *+' conftest.er1 >conftest.err |
35329 | rm -f conftest.er1 | |
35330 | cat conftest.err >&5 | |
f93ca9fd VS |
35331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35332 | (exit $ac_status); } && | |
e1293dcf | 35333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35335 | (eval $ac_try) 2>&5 | |
35336 | ac_status=$? | |
35337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35338 | (exit $ac_status); }; } && | |
35339 | { ac_try='test -s conftest$ac_exeext' | |
f93ca9fd VS |
35340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35341 | (eval $ac_try) 2>&5 | |
35342 | ac_status=$? | |
35343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35344 | (exit $ac_status); }; }; then | |
35345 | ac_cv_func_socket=yes | |
35346 | else | |
35347 | echo "$as_me: failed program was:" >&5 | |
35348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35349 | ||
35350 | ac_cv_func_socket=no | |
35351 | fi | |
32ddf007 VS |
35352 | rm -f conftest.err conftest.$ac_objext \ |
35353 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
35354 | fi |
35355 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35356 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35357 | if test $ac_cv_func_socket = yes; then | |
35358 | : | |
35359 | else | |
35360 | ||
35361 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35362 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35363 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35365 | else | |
35366 | ac_check_lib_save_LIBS=$LIBS | |
35367 | LIBS="-lsocket $LIBS" | |
35368 | cat >conftest.$ac_ext <<_ACEOF | |
35369 | /* confdefs.h. */ | |
35370 | _ACEOF | |
35371 | cat confdefs.h >>conftest.$ac_ext | |
35372 | cat >>conftest.$ac_ext <<_ACEOF | |
35373 | /* end confdefs.h. */ | |
35374 | ||
35375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35376 | #ifdef __cplusplus | |
35377 | extern "C" | |
35378 | #endif | |
35379 | /* We use char because int might match the return type of a gcc2 | |
35380 | builtin and then its argument prototype would still apply. */ | |
35381 | char socket (); | |
35382 | int | |
35383 | main () | |
35384 | { | |
35385 | socket (); | |
e6cc62c6 VS |
35386 | ; |
35387 | return 0; | |
35388 | } | |
35389 | _ACEOF | |
35390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35392 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35393 | ac_status=$? |
32ddf007 VS |
35394 | grep -v '^ *+' conftest.er1 >conftest.err |
35395 | rm -f conftest.er1 | |
35396 | cat conftest.err >&5 | |
e6cc62c6 VS |
35397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35398 | (exit $ac_status); } && | |
e1293dcf | 35399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35401 | (eval $ac_try) 2>&5 | |
35402 | ac_status=$? | |
35403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35404 | (exit $ac_status); }; } && | |
35405 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35407 | (eval $ac_try) 2>&5 | |
35408 | ac_status=$? | |
35409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35410 | (exit $ac_status); }; }; then | |
f93ca9fd | 35411 | ac_cv_lib_socket_socket=yes |
e6cc62c6 VS |
35412 | else |
35413 | echo "$as_me: failed program was:" >&5 | |
35414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35415 | ||
f93ca9fd | 35416 | ac_cv_lib_socket_socket=no |
e6cc62c6 | 35417 | fi |
32ddf007 VS |
35418 | rm -f conftest.err conftest.$ac_objext \ |
35419 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 35420 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 35421 | fi |
f93ca9fd VS |
35422 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
35423 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35424 | if test $ac_cv_lib_socket_socket = yes; then | |
35425 | if test "$INET_LINK" != " -lsocket"; then | |
35426 | INET_LINK="$INET_LINK -lsocket" | |
35427 | fi | |
35428 | else | |
35429 | ||
35430 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35431 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35432 | wxUSE_SOCKETS=no | |
35433 | ||
35434 | ||
35435 | fi | |
35436 | ||
35437 | ||
35438 | ||
35439 | fi | |
35440 | ||
35441 | fi | |
35442 | fi | |
35443 | ||
35444 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35445 | if test "$TOOLKIT" != "MSW"; then | |
35446 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
35447 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
35448 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35450 | else | |
35451 | ||
35452 | cat >conftest.$ac_ext <<_ACEOF | |
35453 | /* confdefs.h. */ | |
e6cc62c6 | 35454 | _ACEOF |
f93ca9fd VS |
35455 | cat confdefs.h >>conftest.$ac_ext |
35456 | cat >>conftest.$ac_ext <<_ACEOF | |
35457 | /* end confdefs.h. */ | |
35458 | ||
35459 | #include <sys/types.h> | |
35460 | #include <sys/socket.h> | |
f6bcfd97 | 35461 | |
f93ca9fd VS |
35462 | int |
35463 | main () | |
35464 | { | |
35465 | ||
35466 | socklen_t len; | |
35467 | getsockname(0, 0, &len); | |
35468 | ||
35469 | ; | |
35470 | return 0; | |
35471 | } | |
35472 | _ACEOF | |
35473 | rm -f conftest.$ac_objext | |
35474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35475 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35476 | ac_status=$? |
32ddf007 VS |
35477 | grep -v '^ *+' conftest.er1 >conftest.err |
35478 | rm -f conftest.er1 | |
35479 | cat conftest.err >&5 | |
f93ca9fd VS |
35480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35481 | (exit $ac_status); } && | |
e1293dcf | 35482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35484 | (eval $ac_try) 2>&5 | |
35485 | ac_status=$? | |
35486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35487 | (exit $ac_status); }; } && | |
35488 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35490 | (eval $ac_try) 2>&5 | |
35491 | ac_status=$? | |
35492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35493 | (exit $ac_status); }; }; then | |
35494 | wx_cv_type_getsockname3=socklen_t | |
f6bcfd97 | 35495 | else |
f93ca9fd VS |
35496 | echo "$as_me: failed program was:" >&5 |
35497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e012a93 | 35498 | |
f93ca9fd VS |
35499 | |
35500 | CFLAGS_OLD="$CFLAGS" | |
35501 | if test "$GCC" = yes ; then | |
35502 | CFLAGS="$CFLAGS -Werror" | |
35503 | fi | |
35504 | ||
35505 | cat >conftest.$ac_ext <<_ACEOF | |
35506 | /* confdefs.h. */ | |
35507 | _ACEOF | |
35508 | cat confdefs.h >>conftest.$ac_ext | |
35509 | cat >>conftest.$ac_ext <<_ACEOF | |
35510 | /* end confdefs.h. */ | |
35511 | ||
35512 | #include <sys/types.h> | |
35513 | #include <sys/socket.h> | |
35514 | ||
35515 | int | |
35516 | main () | |
35517 | { | |
35518 | ||
35519 | size_t len; | |
35520 | getsockname(0, 0, &len); | |
35521 | ||
35522 | ; | |
35523 | return 0; | |
35524 | } | |
35525 | _ACEOF | |
35526 | rm -f conftest.$ac_objext | |
35527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35528 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35529 | ac_status=$? |
32ddf007 VS |
35530 | grep -v '^ *+' conftest.er1 >conftest.err |
35531 | rm -f conftest.er1 | |
35532 | cat conftest.err >&5 | |
f93ca9fd VS |
35533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35534 | (exit $ac_status); } && | |
e1293dcf | 35535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35537 | (eval $ac_try) 2>&5 | |
35538 | ac_status=$? | |
35539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35540 | (exit $ac_status); }; } && | |
35541 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35543 | (eval $ac_try) 2>&5 | |
35544 | ac_status=$? | |
35545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35546 | (exit $ac_status); }; }; then | |
35547 | wx_cv_type_getsockname3=size_t | |
f6bcfd97 | 35548 | else |
f93ca9fd VS |
35549 | echo "$as_me: failed program was:" >&5 |
35550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35551 | ||
e6cc62c6 | 35552 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35553 | /* confdefs.h. */ |
35554 | _ACEOF | |
35555 | cat confdefs.h >>conftest.$ac_ext | |
35556 | cat >>conftest.$ac_ext <<_ACEOF | |
35557 | /* end confdefs.h. */ | |
35558 | ||
f93ca9fd VS |
35559 | #include <sys/types.h> |
35560 | #include <sys/socket.h> | |
35561 | ||
e6cc62c6 VS |
35562 | int |
35563 | main () | |
35564 | { | |
f93ca9fd VS |
35565 | |
35566 | int len; | |
35567 | getsockname(0, 0, &len); | |
35568 | ||
e6cc62c6 VS |
35569 | ; |
35570 | return 0; | |
35571 | } | |
35572 | _ACEOF | |
f93ca9fd VS |
35573 | rm -f conftest.$ac_objext |
35574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35575 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35576 | ac_status=$? |
32ddf007 VS |
35577 | grep -v '^ *+' conftest.er1 >conftest.err |
35578 | rm -f conftest.er1 | |
35579 | cat conftest.err >&5 | |
e6cc62c6 VS |
35580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35581 | (exit $ac_status); } && | |
e1293dcf | 35582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35584 | (eval $ac_try) 2>&5 | |
35585 | ac_status=$? | |
35586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35587 | (exit $ac_status); }; } && | |
35588 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35590 | (eval $ac_try) 2>&5 | |
35591 | ac_status=$? | |
35592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35593 | (exit $ac_status); }; }; then | |
f93ca9fd | 35594 | wx_cv_type_getsockname3=int |
e6cc62c6 VS |
35595 | else |
35596 | echo "$as_me: failed program was:" >&5 | |
35597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35598 | ||
f93ca9fd VS |
35599 | wx_cv_type_getsockname3=unknown |
35600 | ||
e6cc62c6 | 35601 | fi |
32ddf007 | 35602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35603 | |
f6bcfd97 | 35604 | fi |
32ddf007 | 35605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35606 | |
f93ca9fd | 35607 | CFLAGS="$CFLAGS_OLD" |
0e012a93 VZ |
35608 | |
35609 | ||
f6bcfd97 | 35610 | fi |
32ddf007 | 35611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35612 | |
f93ca9fd VS |
35613 | fi |
35614 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35615 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35616 | ||
35617 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35618 | wxUSE_SOCKETS=no | |
35619 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35620 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35621 | else | |
35622 | cat >>confdefs.h <<_ACEOF | |
35623 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35624 | _ACEOF | |
f6bcfd97 | 35625 | |
10f2d63a VZ |
35626 | fi |
35627 | fi | |
35628 | fi | |
35629 | ||
f93ca9fd | 35630 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 35631 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35632 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 35633 | _ACEOF |
0b9ab0bd | 35634 | |
f93ca9fd | 35635 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
1948bb32 | 35636 | fi |
f93ca9fd VS |
35637 | |
35638 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35639 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35640 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35641 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35642 | wxUSE_PROTOCOL=no | |
35643 | fi | |
35644 | fi | |
35645 | ||
35646 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 35647 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35648 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 35649 | _ACEOF |
10f2d63a | 35650 | |
f93ca9fd VS |
35651 | |
35652 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35653 | cat >>confdefs.h <<\_ACEOF | |
35654 | #define wxUSE_PROTOCOL_HTTP 1 | |
35655 | _ACEOF | |
35656 | ||
35657 | fi | |
35658 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35659 | cat >>confdefs.h <<\_ACEOF | |
35660 | #define wxUSE_PROTOCOL_FTP 1 | |
35661 | _ACEOF | |
35662 | ||
35663 | fi | |
35664 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35665 | cat >>confdefs.h <<\_ACEOF | |
35666 | #define wxUSE_PROTOCOL_FILE 1 | |
35667 | _ACEOF | |
35668 | ||
35669 | fi | |
35670 | else | |
35671 | if test "$wxUSE_FS_INET" = "yes"; then | |
35672 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35673 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35674 | wxUSE_FS_INET="no" | |
35675 | fi | |
10f2d63a VZ |
35676 | fi |
35677 | ||
f93ca9fd VS |
35678 | if test "$wxUSE_URL" = "yes"; then |
35679 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35680 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35681 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35682 | wxUSE_URL=no | |
35683 | fi | |
35684 | if test "$wxUSE_URL" = "yes"; then | |
35685 | cat >>confdefs.h <<\_ACEOF | |
35686 | #define wxUSE_URL 1 | |
35687 | _ACEOF | |
35688 | ||
35689 | fi | |
35690 | fi | |
35691 | ||
35692 | if test "$wxUSE_FS_INET" = "yes"; then | |
35693 | cat >>confdefs.h <<\_ACEOF | |
35694 | #define wxUSE_FS_INET 1 | |
35695 | _ACEOF | |
35696 | ||
35697 | fi | |
35698 | ||
35699 | ||
35700 | if test "$wxUSE_GUI" = "yes"; then | |
35701 | ||
35702 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35703 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35704 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35705 | wxUSE_JOYSTICK=no | |
35706 | fi | |
35707 | ||
35708 | if test "$TOOLKIT" != "MSW"; then | |
35709 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35710 | ||
35711 | for ac_header in linux/joystick.h | |
35712 | do | |
35713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35719 | fi | |
35720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35722 | else | |
35723 | # Is the header compilable? | |
35724 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35725 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35726 | cat >conftest.$ac_ext <<_ACEOF | |
35727 | /* confdefs.h. */ | |
35728 | _ACEOF | |
35729 | cat confdefs.h >>conftest.$ac_ext | |
35730 | cat >>conftest.$ac_ext <<_ACEOF | |
35731 | /* end confdefs.h. */ | |
35732 | $ac_includes_default | |
35733 | #include <$ac_header> | |
35734 | _ACEOF | |
35735 | rm -f conftest.$ac_objext | |
35736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35737 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35738 | ac_status=$? |
32ddf007 VS |
35739 | grep -v '^ *+' conftest.er1 >conftest.err |
35740 | rm -f conftest.er1 | |
35741 | cat conftest.err >&5 | |
f93ca9fd VS |
35742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35743 | (exit $ac_status); } && | |
e1293dcf | 35744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35746 | (eval $ac_try) 2>&5 | |
35747 | ac_status=$? | |
35748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35749 | (exit $ac_status); }; } && | |
35750 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35752 | (eval $ac_try) 2>&5 | |
35753 | ac_status=$? | |
35754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35755 | (exit $ac_status); }; }; then | |
35756 | ac_header_compiler=yes | |
35757 | else | |
35758 | echo "$as_me: failed program was:" >&5 | |
35759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35760 | ||
35761 | ac_header_compiler=no | |
35762 | fi | |
32ddf007 | 35763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
35764 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35765 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35766 | ||
35767 | # Is the header present? | |
35768 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35770 | cat >conftest.$ac_ext <<_ACEOF | |
35771 | /* confdefs.h. */ | |
35772 | _ACEOF | |
35773 | cat confdefs.h >>conftest.$ac_ext | |
35774 | cat >>conftest.$ac_ext <<_ACEOF | |
35775 | /* end confdefs.h. */ | |
35776 | #include <$ac_header> | |
35777 | _ACEOF | |
35778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35780 | ac_status=$? | |
35781 | grep -v '^ *+' conftest.er1 >conftest.err | |
35782 | rm -f conftest.er1 | |
35783 | cat conftest.err >&5 | |
35784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35785 | (exit $ac_status); } >/dev/null; then | |
35786 | if test -s conftest.err; then | |
35787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 35788 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
35789 | else |
35790 | ac_cpp_err= | |
35791 | fi | |
35792 | else | |
35793 | ac_cpp_err=yes | |
35794 | fi | |
35795 | if test -z "$ac_cpp_err"; then | |
35796 | ac_header_preproc=yes | |
35797 | else | |
35798 | echo "$as_me: failed program was:" >&5 | |
35799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35800 | ||
35801 | ac_header_preproc=no | |
35802 | fi | |
35803 | rm -f conftest.err conftest.$ac_ext | |
35804 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35805 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35806 | ||
35807 | # So? What about this header? | |
32ddf007 VS |
35808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35809 | yes:no: ) | |
f93ca9fd VS |
35810 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35811 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
35812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35813 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35814 | ac_header_preproc=yes | |
f93ca9fd | 35815 | ;; |
32ddf007 | 35816 | no:yes:* ) |
f93ca9fd VS |
35817 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35818 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
35819 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35820 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35821 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35822 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35823 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35824 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
35825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
35827 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35828 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
35829 | ( |
35830 | cat <<\_ASBOX | |
32ddf007 VS |
35831 | ## ----------------------------------------- ## |
35832 | ## Report this to wx-dev@lists.wxwindows.org ## | |
35833 | ## ----------------------------------------- ## | |
f93ca9fd VS |
35834 | _ASBOX |
35835 | ) | | |
35836 | sed "s/^/$as_me: WARNING: /" >&2 | |
35837 | ;; | |
35838 | esac | |
35839 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35843 | else | |
32ddf007 | 35844 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
35845 | fi |
35846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35848 | ||
35849 | fi | |
35850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35851 | cat >>confdefs.h <<_ACEOF | |
35852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35853 | _ACEOF | |
35854 | ||
35855 | fi | |
35856 | ||
35857 | done | |
35858 | ||
35859 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35860 | wxUSE_JOYSTICK=no | |
35861 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35862 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35863 | fi | |
35864 | fi | |
35865 | fi | |
35866 | ||
35867 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35868 | cat >>confdefs.h <<\_ACEOF | |
35869 | #define wxUSE_JOYSTICK 1 | |
35870 | _ACEOF | |
35871 | ||
35872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35873 | fi | |
35874 | fi | |
35875 | ||
35876 | ||
35877 | ||
1e6feb95 | 35878 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 35879 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35880 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 35881 | _ACEOF |
1e6feb95 VZ |
35882 | |
35883 | fi | |
35884 | ||
10f2d63a | 35885 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 35886 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35887 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 35888 | _ACEOF |
10f2d63a | 35889 | |
8284b0c5 | 35890 | |
eb854003 | 35891 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
35892 | wxUSE_UNICODE_MSLU=no |
35893 | fi | |
a72a4bfa | 35894 | |
eb854003 | 35895 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
35896 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
35897 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35898 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 35900 | else |
e6cc62c6 | 35901 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 35902 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 35903 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35904 | /* confdefs.h. */ |
35905 | _ACEOF | |
35906 | cat confdefs.h >>conftest.$ac_ext | |
35907 | cat >>conftest.$ac_ext <<_ACEOF | |
35908 | /* end confdefs.h. */ | |
a72a4bfa | 35909 | |
8284b0c5 | 35910 | |
e6cc62c6 VS |
35911 | int |
35912 | main () | |
35913 | { | |
35914 | main (); | |
35915 | ; | |
35916 | return 0; | |
35917 | } | |
35918 | _ACEOF | |
35919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35921 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35922 | ac_status=$? |
32ddf007 VS |
35923 | grep -v '^ *+' conftest.er1 >conftest.err |
35924 | rm -f conftest.er1 | |
35925 | cat conftest.err >&5 | |
e6cc62c6 VS |
35926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35927 | (exit $ac_status); } && | |
e1293dcf | 35928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
35929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35930 | (eval $ac_try) 2>&5 | |
35931 | ac_status=$? | |
35932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35933 | (exit $ac_status); }; } && | |
35934 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35936 | (eval $ac_try) 2>&5 | |
35937 | ac_status=$? | |
35938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35939 | (exit $ac_status); }; }; then | |
35940 | ac_cv_lib_unicows_main=yes | |
35941 | else | |
35942 | echo "$as_me: failed program was:" >&5 | |
35943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35944 | ||
35945 | ac_cv_lib_unicows_main=no | |
35946 | fi | |
32ddf007 VS |
35947 | rm -f conftest.err conftest.$ac_objext \ |
35948 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35949 | LIBS=$ac_check_lib_save_LIBS |
35950 | fi | |
35951 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35952 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35953 | if test $ac_cv_lib_unicows_main = yes; then | |
35954 | ||
35955 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 35956 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
35957 | _ACEOF |
35958 | ||
a72a4bfa | 35959 | |
a72a4bfa | 35960 | else |
a72a4bfa | 35961 | |
e6cc62c6 VS |
35962 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
35963 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35964 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35965 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 35966 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 35967 | |
a72a4bfa VS |
35968 | fi |
35969 | ||
35970 | fi | |
10f2d63a VZ |
35971 | fi |
35972 | ||
10f2d63a | 35973 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 35974 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35975 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 35976 | _ACEOF |
10f2d63a VZ |
35977 | |
35978 | fi | |
35979 | ||
8284b0c5 | 35980 | |
10f2d63a | 35981 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 35982 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35983 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 35984 | _ACEOF |
10f2d63a VZ |
35985 | |
35986 | fi | |
35987 | ||
e6cc62c6 | 35988 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35989 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 35990 | _ACEOF |
10f2d63a | 35991 | |
8284b0c5 | 35992 | |
e6cc62c6 | 35993 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35994 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 35995 | _ACEOF |
10f2d63a | 35996 | |
8284b0c5 MB |
35997 | |
35998 | ||
10f2d63a | 35999 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 36000 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36001 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 36002 | _ACEOF |
10f2d63a VZ |
36003 | |
36004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36005 | fi | |
36006 | ||
3879ecda | 36007 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 36008 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36009 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 36010 | _ACEOF |
10f2d63a | 36011 | |
1772d20c | 36012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
36013 | fi |
36014 | ||
36015 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 36016 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36017 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 36018 | _ACEOF |
10f2d63a VZ |
36019 | |
36020 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36021 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36022 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36023 | fi | |
36024 | fi | |
36025 | ||
36026 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 36027 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36028 | #define wxUSE_HELP 1 |
e6cc62c6 | 36029 | _ACEOF |
10f2d63a VZ |
36030 | |
36031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 36032 | |
77e13408 | 36033 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 36034 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 36035 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 36036 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 36037 | _ACEOF |
29fd3c0c | 36038 | |
3e44f09d | 36039 | fi |
3379ed37 | 36040 | fi |
031d8228 VS |
36041 | |
36042 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36043 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 36044 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 36045 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 36046 | _ACEOF |
031d8228 VS |
36047 | |
36048 | else | |
e6cc62c6 VS |
36049 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
36050 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
36051 | wxUSE_WXHTML_HELP=no |
36052 | fi | |
36053 | fi | |
10f2d63a VZ |
36054 | fi |
36055 | ||
36056 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36057 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36058 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
36059 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 36060 | else |
e6cc62c6 | 36061 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36062 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 36063 | _ACEOF |
10f2d63a VZ |
36064 | |
36065 | fi | |
36066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36067 | fi | |
36068 | ||
e6cc62c6 VS |
36069 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
36070 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36071 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36072 | { (exit 1); exit 1; }; } | |
36073 | fi | |
36074 | ||
36075 | ||
f95e4495 | 36076 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
e6cc62c6 VS |
36077 | -o "$wxUSE_CLIPBOARD" = "yes" \ |
36078 | -o "$wxUSE_OLE" = "yes" \ | |
36079 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36080 | ||
36081 | for ac_header in ole2.h | |
36082 | do | |
36083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36089 | fi | |
36090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36092 | else | |
36093 | # Is the header compilable? | |
36094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36096 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36097 | /* confdefs.h. */ |
36098 | _ACEOF | |
36099 | cat confdefs.h >>conftest.$ac_ext | |
36100 | cat >>conftest.$ac_ext <<_ACEOF | |
36101 | /* end confdefs.h. */ | |
36102 | $ac_includes_default | |
36103 | #include <$ac_header> | |
36104 | _ACEOF | |
36105 | rm -f conftest.$ac_objext | |
36106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36107 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36108 | ac_status=$? |
32ddf007 VS |
36109 | grep -v '^ *+' conftest.er1 >conftest.err |
36110 | rm -f conftest.er1 | |
36111 | cat conftest.err >&5 | |
e6cc62c6 VS |
36112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36113 | (exit $ac_status); } && | |
e1293dcf | 36114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
36115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36116 | (eval $ac_try) 2>&5 | |
36117 | ac_status=$? | |
36118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36119 | (exit $ac_status); }; } && | |
36120 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
36121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36122 | (eval $ac_try) 2>&5 | |
36123 | ac_status=$? | |
36124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36125 | (exit $ac_status); }; }; then | |
36126 | ac_header_compiler=yes | |
36127 | else | |
36128 | echo "$as_me: failed program was:" >&5 | |
36129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36130 | ||
36131 | ac_header_compiler=no | |
36132 | fi | |
32ddf007 | 36133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
36134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36135 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36136 | ||
36137 | # Is the header present? | |
36138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36140 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36141 | /* confdefs.h. */ |
36142 | _ACEOF | |
36143 | cat confdefs.h >>conftest.$ac_ext | |
36144 | cat >>conftest.$ac_ext <<_ACEOF | |
36145 | /* end confdefs.h. */ | |
36146 | #include <$ac_header> | |
36147 | _ACEOF | |
36148 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36149 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36150 | ac_status=$? | |
36151 | grep -v '^ *+' conftest.er1 >conftest.err | |
36152 | rm -f conftest.er1 | |
36153 | cat conftest.err >&5 | |
36154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36155 | (exit $ac_status); } >/dev/null; then | |
36156 | if test -s conftest.err; then | |
36157 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 36158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
36159 | else |
36160 | ac_cpp_err= | |
36161 | fi | |
36162 | else | |
36163 | ac_cpp_err=yes | |
36164 | fi | |
36165 | if test -z "$ac_cpp_err"; then | |
36166 | ac_header_preproc=yes | |
36167 | else | |
36168 | echo "$as_me: failed program was:" >&5 | |
36169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36170 | ||
36171 | ac_header_preproc=no | |
36172 | fi | |
36173 | rm -f conftest.err conftest.$ac_ext | |
36174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36175 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36176 | ||
36177 | # So? What about this header? | |
32ddf007 VS |
36178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36179 | yes:no: ) | |
e6cc62c6 VS |
36180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
36182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36184 | ac_header_preproc=yes | |
e6cc62c6 | 36185 | ;; |
32ddf007 | 36186 | no:yes:* ) |
e6cc62c6 VS |
36187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
36189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
36195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
36197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
36199 | ( |
36200 | cat <<\_ASBOX | |
32ddf007 VS |
36201 | ## ----------------------------------------- ## |
36202 | ## Report this to wx-dev@lists.wxwindows.org ## | |
36203 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
36204 | _ASBOX |
36205 | ) | | |
36206 | sed "s/^/$as_me: WARNING: /" >&2 | |
36207 | ;; | |
36208 | esac | |
36209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36213 | else | |
32ddf007 | 36214 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
36215 | fi |
36216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36218 | ||
10f2d63a | 36219 | fi |
e6cc62c6 VS |
36220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
36221 | cat >>confdefs.h <<_ACEOF | |
36222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36223 | _ACEOF | |
10f2d63a | 36224 | |
10f2d63a | 36225 | fi |
e6cc62c6 | 36226 | |
10f2d63a VZ |
36227 | done |
36228 | ||
8284b0c5 | 36229 | |
2b9bdf71 VZ |
36230 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
36231 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
36232 | |
36233 | ||
e6cc62c6 VS |
36234 | ac_ext=cc |
36235 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36236 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36237 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36238 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36239 | ||
36240 | ||
36241 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36242 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36243 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36244 | /* confdefs.h. */ |
36245 | _ACEOF | |
36246 | cat confdefs.h >>conftest.$ac_ext | |
36247 | cat >>conftest.$ac_ext <<_ACEOF | |
36248 | /* end confdefs.h. */ | |
8284b0c5 MB |
36249 | #include <windows.h> |
36250 | #include <ole2.h> | |
e6cc62c6 VS |
36251 | int |
36252 | main () | |
36253 | { | |
8284b0c5 | 36254 | |
e6cc62c6 VS |
36255 | ; |
36256 | return 0; | |
36257 | } | |
36258 | _ACEOF | |
36259 | rm -f conftest.$ac_objext | |
36260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36261 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36262 | ac_status=$? |
32ddf007 VS |
36263 | grep -v '^ *+' conftest.er1 >conftest.err |
36264 | rm -f conftest.er1 | |
36265 | cat conftest.err >&5 | |
e6cc62c6 VS |
36266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36267 | (exit $ac_status); } && | |
e1293dcf | 36268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
36269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36270 | (eval $ac_try) 2>&5 | |
36271 | ac_status=$? | |
36272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36273 | (exit $ac_status); }; } && | |
36274 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
36275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36276 | (eval $ac_try) 2>&5 | |
36277 | ac_status=$? | |
36278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36279 | (exit $ac_status); }; }; then | |
36280 | echo "$as_me:$LINENO: result: no" >&5 | |
36281 | echo "${ECHO_T}no" >&6 | |
36282 | else | |
36283 | echo "$as_me: failed program was:" >&5 | |
36284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36285 | ||
36286 | echo "$as_me:$LINENO: result: yes" >&5 | |
36287 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
36288 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
36289 | fi | |
32ddf007 | 36290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 36291 | ac_ext=c |
8284b0c5 | 36292 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
36293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
36294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 36296 | |
2b9bdf71 | 36297 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 36298 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
f95e4495 VS |
36299 | if test "$wxUSE_OLE" = "yes" ; then |
36300 | cat >>confdefs.h <<\_ACEOF | |
4f11a343 | 36301 | #define wxUSE_OLE 1 |
e6cc62c6 | 36302 | _ACEOF |
4f11a343 | 36303 | |
f95e4495 | 36304 | fi |
2b9bdf71 VZ |
36305 | fi |
36306 | ||
f95e4495 VS |
36307 | if test "$wxUSE_DATAOBJ" = "yes" ; then |
36308 | cat >>confdefs.h <<\_ACEOF | |
2b9bdf71 | 36309 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36310 | _ACEOF |
2b9bdf71 | 36311 | |
f95e4495 | 36312 | fi |
2b9bdf71 | 36313 | else |
e6cc62c6 VS |
36314 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
36315 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
36316 | |
36317 | wxUSE_CLIPBOARD=no | |
36318 | wxUSE_DRAG_AND_DROP=no | |
36319 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
36320 | wxUSE_OLE=no |
36321 | fi | |
36322 | ||
36323 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 36324 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36325 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 36326 | _ACEOF |
3bce6687 JS |
36327 | |
36328 | ||
e6cc62c6 | 36329 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36330 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 36331 | _ACEOF |
3bce6687 JS |
36332 | |
36333 | fi | |
36334 | fi | |
36335 | ||
2b9bdf71 VZ |
36336 | if test "$wxUSE_IPC" = "yes"; then |
36337 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
36338 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
36339 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
36340 | fi |
36341 | ||
e6cc62c6 | 36342 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36343 | #define wxUSE_IPC 1 |
e6cc62c6 | 36344 | _ACEOF |
2b9bdf71 VZ |
36345 | |
36346 | fi | |
36347 | ||
36348 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 36349 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36350 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
36351 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36352 | wxUSE_CLIPBOARD=no |
36353 | fi | |
36354 | ||
36355 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 36356 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36357 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 36358 | _ACEOF |
2b9bdf71 | 36359 | |
8284b0c5 | 36360 | |
e6cc62c6 | 36361 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 36362 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36363 | _ACEOF |
673f4220 | 36364 | |
6c657b52 | 36365 | fi |
2b9bdf71 VZ |
36366 | fi |
36367 | ||
36368 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36369 | if test "$wxUSE_GTK" = 1; then | |
36370 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
36371 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
36372 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
36373 | wxUSE_DRAG_AND_DROP=no |
36374 | fi | |
36375 | fi | |
36376 | ||
2b9bdf71 | 36377 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
36378 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
36379 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
36380 | wxUSE_DRAG_AND_DROP=no |
36381 | fi | |
36382 | ||
f79bd02d | 36383 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
36384 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
36385 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
36386 | wxUSE_DRAG_AND_DROP=no |
36387 | fi | |
36388 | ||
6c657b52 | 36389 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36390 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
36391 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36392 | wxUSE_DRAG_AND_DROP=no |
36393 | fi | |
36394 | ||
10f2d63a | 36395 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 36396 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36397 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 36398 | _ACEOF |
10f2d63a | 36399 | |
10f2d63a VZ |
36400 | fi |
36401 | ||
36402 | fi | |
36403 | ||
e1293dcf RL |
36404 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then |
36405 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36406 | fi | |
36407 | ||
10f2d63a | 36408 | if test "$wxUSE_SPLINES" = "yes" ; then |
e6cc62c6 | 36409 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36410 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 36411 | _ACEOF |
10f2d63a VZ |
36412 | |
36413 | fi | |
36414 | ||
8284b0c5 | 36415 | |
1e6feb95 VZ |
36416 | USES_CONTROLS=0 |
36417 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36418 | USES_CONTROLS=1 | |
36419 | fi | |
36420 | ||
10f2d63a | 36421 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 36422 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36423 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 36424 | _ACEOF |
10f2d63a | 36425 | |
1e6feb95 VZ |
36426 | USES_CONTROLS=1 |
36427 | fi | |
36428 | ||
36429 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 36430 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36431 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 36432 | _ACEOF |
1e6feb95 VZ |
36433 | |
36434 | USES_CONTROLS=1 | |
36435 | fi | |
36436 | ||
36437 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 36438 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36439 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 36440 | _ACEOF |
1e6feb95 VZ |
36441 | |
36442 | USES_CONTROLS=1 | |
36443 | fi | |
36444 | ||
36445 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 36446 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36447 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 36448 | _ACEOF |
1e6feb95 VZ |
36449 | |
36450 | USES_CONTROLS=1 | |
36451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
36452 | fi |
36453 | ||
36454 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 36455 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36456 | #define wxUSE_CARET 1 |
e6cc62c6 | 36457 | _ACEOF |
10f2d63a | 36458 | |
1e6feb95 | 36459 | USES_CONTROLS=1 |
10f2d63a VZ |
36460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
36461 | fi | |
36462 | ||
36463 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 36464 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36465 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 36466 | _ACEOF |
10f2d63a | 36467 | |
1e6feb95 | 36468 | USES_CONTROLS=1 |
10f2d63a VZ |
36469 | fi |
36470 | ||
36471 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 36472 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36473 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 36474 | _ACEOF |
10f2d63a | 36475 | |
1e6feb95 | 36476 | USES_CONTROLS=1 |
10f2d63a VZ |
36477 | fi |
36478 | ||
36479 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 36480 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36481 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 36482 | _ACEOF |
10f2d63a | 36483 | |
1e6feb95 | 36484 | USES_CONTROLS=1 |
10f2d63a VZ |
36485 | fi |
36486 | ||
36487 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 36488 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36489 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 36490 | _ACEOF |
10f2d63a | 36491 | |
1e6feb95 | 36492 | USES_CONTROLS=1 |
10f2d63a VZ |
36493 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
36494 | fi | |
36495 | ||
da494b40 | 36496 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 36497 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 36498 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 36499 | _ACEOF |
da494b40 MB |
36500 | |
36501 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36502 | fi | |
36503 | ||
10f2d63a | 36504 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 36505 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36506 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 36507 | _ACEOF |
10f2d63a | 36508 | |
1e6feb95 | 36509 | USES_CONTROLS=1 |
10f2d63a VZ |
36510 | fi |
36511 | ||
d6a55c4b | 36512 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 36513 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 36514 | #define wxUSE_GRID 1 |
e6cc62c6 | 36515 | _ACEOF |
10f2d63a | 36516 | |
1e6feb95 | 36517 | USES_CONTROLS=1 |
d6a55c4b | 36518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
36519 | fi |
36520 | ||
36521 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36522 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36523 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 36524 | _ACEOF |
10f2d63a VZ |
36525 | |
36526 | fi | |
36527 | ||
0e012a93 VZ |
36528 | if test "$wxUSE_LISTBOOK" = "yes"; then |
36529 | cat >>confdefs.h <<\_ACEOF | |
36530 | #define wxUSE_LISTBOOK 1 | |
36531 | _ACEOF | |
36532 | ||
36533 | USES_CONTROLS=1 | |
36534 | fi | |
36535 | ||
10f2d63a | 36536 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 36537 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36538 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 36539 | _ACEOF |
10f2d63a | 36540 | |
1e6feb95 | 36541 | USES_CONTROLS=1 |
10f2d63a VZ |
36542 | fi |
36543 | ||
36544 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36545 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36546 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36547 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 36548 | _ACEOF |
10f2d63a | 36549 | |
1e6feb95 | 36550 | USES_CONTROLS=1 |
10f2d63a VZ |
36551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
36552 | else | |
e6cc62c6 VS |
36553 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
36554 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
36555 | fi |
36556 | fi | |
36557 | ||
36558 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 36559 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36560 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 36561 | _ACEOF |
10f2d63a | 36562 | |
1e6feb95 | 36563 | USES_CONTROLS=1 |
10f2d63a VZ |
36564 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
36565 | fi | |
36566 | ||
24176f2c | 36567 | |
10f2d63a | 36568 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 36569 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36570 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 36571 | _ACEOF |
10f2d63a | 36572 | |
1e6feb95 | 36573 | USES_CONTROLS=1 |
10f2d63a VZ |
36574 | fi |
36575 | ||
36576 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 36577 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36578 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 36579 | _ACEOF |
10f2d63a | 36580 | |
1e6feb95 | 36581 | USES_CONTROLS=1 |
10f2d63a VZ |
36582 | fi |
36583 | ||
36584 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 36585 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36586 | #define wxUSE_SASH 1 |
e6cc62c6 | 36587 | _ACEOF |
10f2d63a VZ |
36588 | |
36589 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36590 | fi | |
36591 | ||
36592 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 36593 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36594 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 36595 | _ACEOF |
10f2d63a | 36596 | |
1e6feb95 | 36597 | USES_CONTROLS=1 |
741a9306 | 36598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
36599 | fi |
36600 | ||
36601 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 36602 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36603 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 36604 | _ACEOF |
10f2d63a | 36605 | |
1e6feb95 | 36606 | USES_CONTROLS=1 |
10f2d63a VZ |
36607 | fi |
36608 | ||
36609 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 36610 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36611 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 36612 | _ACEOF |
10f2d63a | 36613 | |
1e6feb95 | 36614 | USES_CONTROLS=1 |
10f2d63a VZ |
36615 | fi |
36616 | ||
56cfaa52 | 36617 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 36618 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 36619 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 36620 | _ACEOF |
56cfaa52 | 36621 | |
1e6feb95 | 36622 | USES_CONTROLS=1 |
56cfaa52 RR |
36623 | fi |
36624 | ||
10f2d63a | 36625 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 36626 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36627 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 36628 | _ACEOF |
10f2d63a VZ |
36629 | |
36630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36631 | fi | |
36632 | ||
36633 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 36634 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36635 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 36636 | _ACEOF |
10f2d63a | 36637 | |
1e6feb95 | 36638 | USES_CONTROLS=1 |
10f2d63a VZ |
36639 | fi |
36640 | ||
36641 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 36642 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36643 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 36644 | _ACEOF |
10f2d63a | 36645 | |
1e6feb95 VZ |
36646 | USES_CONTROLS=1 |
36647 | fi | |
36648 | ||
36649 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 36650 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36651 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 36652 | _ACEOF |
1e6feb95 VZ |
36653 | |
36654 | USES_CONTROLS=1 | |
10f2d63a VZ |
36655 | fi |
36656 | ||
36657 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 36658 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36659 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 36660 | _ACEOF |
10f2d63a | 36661 | |
89e6bf6d | 36662 | USES_CONTROLS=1 |
10f2d63a VZ |
36663 | fi |
36664 | ||
36665 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 36666 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36667 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 36668 | _ACEOF |
10f2d63a | 36669 | |
1e6feb95 | 36670 | USES_CONTROLS=1 |
698dcdb6 | 36671 | |
2286341c | 36672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
36673 | fi |
36674 | ||
36675 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 36676 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36677 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 36678 | _ACEOF |
10f2d63a VZ |
36679 | |
36680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36681 | fi | |
36682 | ||
1e6feb95 | 36683 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 36684 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36685 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 36686 | _ACEOF |
1e6feb95 VZ |
36687 | |
36688 | USES_CONTROLS=1 | |
36689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36690 | fi | |
36691 | ||
1db8dc4a | 36692 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
0f87e84c | 36693 | if test "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
36694 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
36695 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
36696 | wxUSE_TOGGLEBTN=no |
36697 | fi | |
36698 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
36699 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
36700 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
36701 | wxUSE_TOGGLEBTN=no |
36702 | fi | |
36703 | ||
36704 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 36705 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 36706 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 36707 | _ACEOF |
1db8dc4a | 36708 | |
1e6feb95 | 36709 | USES_CONTROLS=1 |
a45d7ab7 | 36710 | fi |
1db8dc4a VZ |
36711 | fi |
36712 | ||
360d6699 | 36713 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 36714 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36715 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 36716 | _ACEOF |
360d6699 VZ |
36717 | |
36718 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 36719 | USES_CONTROLS=1 |
360d6699 VZ |
36720 | fi |
36721 | ||
10f2d63a | 36722 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 36723 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36724 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 36725 | _ACEOF |
10f2d63a | 36726 | |
1e6feb95 | 36727 | USES_CONTROLS=1 |
698dcdb6 | 36728 | |
360d6699 VZ |
36729 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
36730 | wxUSE_TOOLBAR_NATIVE="yes" | |
36731 | fi | |
36732 | ||
1e6feb95 | 36733 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 36734 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36735 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 36736 | _ACEOF |
360d6699 | 36737 | |
1e6feb95 VZ |
36738 | USES_CONTROLS=1 |
36739 | fi | |
36740 | ||
36741 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
36742 | fi |
36743 | ||
10f2d63a VZ |
36744 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
36745 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
36746 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
36747 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 36748 | else |
89e6bf6d | 36749 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
36750 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
36751 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 36752 | else |
e6cc62c6 | 36753 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36754 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 36755 | _ACEOF |
10f2d63a VZ |
36756 | |
36757 | fi | |
36758 | fi | |
36759 | fi | |
36760 | ||
36761 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36762 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36763 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36764 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 36765 | _ACEOF |
10f2d63a | 36766 | |
1e6feb95 | 36767 | USES_CONTROLS=1 |
10f2d63a VZ |
36768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
36769 | else | |
e6cc62c6 VS |
36770 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
36771 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
36772 | fi |
36773 | fi | |
36774 | ||
9f41d601 | 36775 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 36776 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
36777 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
36778 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 36779 | else |
833a51f6 MB |
36780 | if test "$wxUSE_PM" = 1; then |
36781 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 36782 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
36783 | else |
36784 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 36785 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 36786 | _ACEOF |
9f41d601 | 36787 | |
8284b0c5 | 36788 | |
833a51f6 | 36789 | USES_CONTROLS=1 |
485cf710 | 36790 | fi |
6abe4b65 | 36791 | fi |
9f41d601 RR |
36792 | fi |
36793 | ||
dd964dcc | 36794 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 36795 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
36796 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
36797 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 36798 | else |
e6cc62c6 | 36799 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 36800 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 36801 | _ACEOF |
dd964dcc | 36802 | |
3c011993 | 36803 | fi |
dd964dcc VZ |
36804 | fi |
36805 | ||
1e6feb95 | 36806 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 36807 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36808 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 36809 | _ACEOF |
10f2d63a | 36810 | |
10f2d63a VZ |
36811 | fi |
36812 | ||
8284b0c5 | 36813 | |
e46d2a18 VS |
36814 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
36815 | cat >>confdefs.h <<\_ACEOF | |
36816 | #define wxUSE_ACCESSIBILITY 1 | |
36817 | _ACEOF | |
36818 | ||
36819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36820 | fi | |
1e6feb95 | 36821 | |
24fd6d87 | 36822 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 36823 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 36824 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 36825 | _ACEOF |
24fd6d87 VZ |
36826 | |
36827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36828 | fi | |
36829 | ||
e46d2a18 | 36830 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 36831 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 36832 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 36833 | _ACEOF |
7bb2947d | 36834 | |
e46d2a18 VS |
36835 | fi |
36836 | ||
36837 | USE_HTML=0 | |
36838 | if test "$wxUSE_HTML" = "yes"; then | |
36839 | cat >>confdefs.h <<\_ACEOF | |
36840 | #define wxUSE_HTML 1 | |
36841 | _ACEOF | |
36842 | ||
36843 | USE_HTML=1 | |
36844 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
36845 | fi |
36846 | ||
1e6feb95 | 36847 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 36848 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36849 | #define wxUSE_MENUS 1 |
e6cc62c6 | 36850 | _ACEOF |
10f2d63a | 36851 | |
1e6feb95 | 36852 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
36853 | fi |
36854 | ||
1e6feb95 | 36855 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 36856 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36857 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 36858 | _ACEOF |
10f2d63a | 36859 | |
10f2d63a VZ |
36860 | fi |
36861 | ||
1e6feb95 | 36862 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 36863 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36864 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 36865 | _ACEOF |
10f2d63a | 36866 | |
10f2d63a VZ |
36867 | fi |
36868 | ||
36869 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 36870 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36871 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 36872 | _ACEOF |
10f2d63a VZ |
36873 | |
36874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36875 | fi | |
36876 | ||
e46d2a18 | 36877 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 36878 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 36879 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 36880 | _ACEOF |
10f2d63a | 36881 | |
e46d2a18 VS |
36882 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
36883 | "$TOOLKIT" = "MOTIF"; then | |
36884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36885 | fi | |
10f2d63a VZ |
36886 | fi |
36887 | ||
e46d2a18 | 36888 | |
10f2d63a | 36889 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 36890 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 36891 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 36892 | _ACEOF |
703e0a69 | 36893 | |
698dcdb6 VZ |
36894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
36895 | fi | |
36896 | ||
edae8572 | 36897 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 36898 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 36899 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 36900 | _ACEOF |
edae8572 VZ |
36901 | |
36902 | fi | |
36903 | ||
e46d2a18 VS |
36904 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
36905 | LIBS=" -lunicows $LIBS" | |
36906 | fi | |
36907 | ||
36908 | ||
698dcdb6 | 36909 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 36910 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 36911 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 36912 | _ACEOF |
698dcdb6 | 36913 | |
698dcdb6 | 36914 | |
e46d2a18 VS |
36915 | if test "$wxUSE_GIF" = "yes" ; then |
36916 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36917 | #define wxUSE_GIF 1 |
e6cc62c6 | 36918 | _ACEOF |
698dcdb6 | 36919 | |
e46d2a18 | 36920 | fi |
698dcdb6 | 36921 | |
e46d2a18 VS |
36922 | if test "$wxUSE_PCX" = "yes" ; then |
36923 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36924 | #define wxUSE_PCX 1 |
e6cc62c6 | 36925 | _ACEOF |
698dcdb6 | 36926 | |
e46d2a18 | 36927 | fi |
698dcdb6 | 36928 | |
e46d2a18 VS |
36929 | if test "$wxUSE_IFF" = "yes" ; then |
36930 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 36931 | #define wxUSE_IFF 1 |
e6cc62c6 | 36932 | _ACEOF |
4b6b4dfc | 36933 | |
e46d2a18 | 36934 | fi |
4b6b4dfc | 36935 | |
e46d2a18 VS |
36936 | if test "$wxUSE_PNM" = "yes" ; then |
36937 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36938 | #define wxUSE_PNM 1 |
e6cc62c6 | 36939 | _ACEOF |
698dcdb6 | 36940 | |
e46d2a18 | 36941 | fi |
698dcdb6 | 36942 | |
e46d2a18 VS |
36943 | if test "$wxUSE_XPM" = "yes" ; then |
36944 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 36945 | #define wxUSE_XPM 1 |
e6cc62c6 | 36946 | _ACEOF |
698dcdb6 | 36947 | |
e46d2a18 | 36948 | fi |
698dcdb6 | 36949 | |
e46d2a18 VS |
36950 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
36951 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 36952 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 36953 | _ACEOF |
658974ae | 36954 | |
e46d2a18 | 36955 | fi |
a72a4bfa VS |
36956 | fi |
36957 | ||
8284b0c5 | 36958 | |
1e6feb95 | 36959 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 36960 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36961 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 36962 | _ACEOF |
1e6feb95 VZ |
36963 | |
36964 | fi | |
36965 | ||
36966 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 36967 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36968 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 36969 | _ACEOF |
1e6feb95 VZ |
36970 | |
36971 | fi | |
36972 | ||
36973 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 36974 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36975 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 36976 | _ACEOF |
1e6feb95 VZ |
36977 | |
36978 | fi | |
36979 | ||
8db37e06 | 36980 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 36981 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 36982 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 36983 | _ACEOF |
8db37e06 VZ |
36984 | |
36985 | fi | |
36986 | ||
1e6feb95 | 36987 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 36988 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36989 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 36990 | _ACEOF |
1e6feb95 VZ |
36991 | |
36992 | fi | |
36993 | ||
36994 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 36995 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
36996 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
36997 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 36998 | else |
e6cc62c6 | 36999 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37000 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 37001 | _ACEOF |
1e6feb95 | 37002 | |
1e6feb95 VZ |
37003 | fi |
37004 | fi | |
37005 | ||
37006 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 37007 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37008 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 37009 | _ACEOF |
1e6feb95 VZ |
37010 | |
37011 | fi | |
37012 | ||
37013 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 37014 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37015 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 37016 | _ACEOF |
1e6feb95 VZ |
37017 | |
37018 | fi | |
37019 | ||
37020 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37021 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37022 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
37023 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 37024 | else |
e6cc62c6 | 37025 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37026 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 37027 | _ACEOF |
1e6feb95 VZ |
37028 | |
37029 | fi | |
37030 | fi | |
37031 | ||
cbca9943 | 37032 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 37033 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 37034 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 37035 | _ACEOF |
cbca9943 VZ |
37036 | |
37037 | fi | |
37038 | ||
1e6feb95 VZ |
37039 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
37040 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37041 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
37042 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 37043 | else |
e6cc62c6 | 37044 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37045 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 37046 | _ACEOF |
1e6feb95 | 37047 | |
7b4a847f RR |
37048 | fi |
37049 | fi | |
579d8138 | 37050 | |
8284b0c5 | 37051 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 37052 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37053 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 37054 | _ACEOF |
8284b0c5 MB |
37055 | |
37056 | fi | |
37057 | ||
37058 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 37059 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37060 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 37061 | _ACEOF |
8284b0c5 MB |
37062 | |
37063 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37064 | fi | |
37065 | ||
37066 | ||
37067 | if test "$cross_compiling" = "yes"; then | |
37068 | OSINFO="\"$host\"" | |
37069 | else | |
37070 | OSINFO=`uname -s -r -m` | |
37071 | OSINFO="\"$OSINFO\"" | |
37072 | fi | |
37073 | ||
e6cc62c6 | 37074 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37075 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 37076 | _ACEOF |
8284b0c5 MB |
37077 | |
37078 | ||
37079 | ||
37080 | if test "x$prefix" != "xNONE"; then | |
37081 | wxPREFIX=$prefix | |
37082 | else | |
37083 | wxPREFIX=$ac_default_prefix | |
37084 | fi | |
37085 | ||
e6cc62c6 | 37086 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37087 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 37088 | _ACEOF |
8284b0c5 MB |
37089 | |
37090 | ||
e6cc62c6 | 37091 | top_builddir_wxconfig=`pwd` |
52c71b80 | 37092 | |
8284b0c5 MB |
37093 | |
37094 | ||
edd891e2 VS |
37095 | CORE_BASE_LIBS="net base" |
37096 | CORE_GUI_LIBS="adv core" | |
37097 | ||
37098 | if test "$wxUSE_XML" = "yes" ; then | |
37099 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37100 | fi | |
45293562 VS |
37101 | if test "$wxUSE_ODBC" != "no" ; then |
37102 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37103 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
37104 | fi |
37105 | if test "$wxUSE_HTML" = "yes" ; then | |
37106 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37107 | fi | |
37108 | ||
57e7d4ac VS |
37109 | if test "$wxUSE_GUI" != "yes"; then |
37110 | CORE_GUI_LIBS="" | |
37111 | fi | |
37112 | ||
edd891e2 VS |
37113 | |
37114 | ||
37115 | ||
37116 | ||
37117 | ||
37118 | ||
8284b0c5 MB |
37119 | |
37120 | if test "$wxUSE_MAC" = 1 ; then | |
37121 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
37122 | fi | |
ac0c4cc3 DE |
37123 | if test "$wxUSE_COCOA" = 1 ; then |
37124 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37125 | fi | |
8284b0c5 MB |
37126 | |
37127 | ||
2b5f62a0 VZ |
37128 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
37129 | ||
37130 | have_cos=0 | |
37131 | have_floor=0 | |
e6cc62c6 | 37132 | |
2b5f62a0 VZ |
37133 | for ac_func in cos |
37134 | do | |
e6cc62c6 VS |
37135 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37136 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37137 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37138 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37140 | else | |
37141 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37142 | /* confdefs.h. */ |
37143 | _ACEOF | |
37144 | cat confdefs.h >>conftest.$ac_ext | |
37145 | cat >>conftest.$ac_ext <<_ACEOF | |
37146 | /* end confdefs.h. */ | |
32ddf007 VS |
37147 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37149 | #define $ac_func innocuous_$ac_func | |
37150 | ||
2b5f62a0 | 37151 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37152 | which can conflict with char $ac_func (); below. |
37153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37154 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37155 | |
e6cc62c6 VS |
37156 | #ifdef __STDC__ |
37157 | # include <limits.h> | |
37158 | #else | |
37159 | # include <assert.h> | |
37160 | #endif | |
32ddf007 VS |
37161 | |
37162 | #undef $ac_func | |
37163 | ||
2b5f62a0 | 37164 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37165 | #ifdef __cplusplus |
37166 | extern "C" | |
37167 | { | |
37168 | #endif | |
2b5f62a0 | 37169 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37170 | builtin and then its argument prototype would still apply. */ |
37171 | char $ac_func (); | |
2b5f62a0 VZ |
37172 | /* The GNU C library defines this for functions which it implements |
37173 | to always fail with ENOSYS. Some functions are actually named | |
37174 | something starting with __ and the normal name is an alias. */ | |
37175 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37176 | choke me | |
37177 | #else | |
e6cc62c6 VS |
37178 | char (*f) () = $ac_func; |
37179 | #endif | |
37180 | #ifdef __cplusplus | |
37181 | } | |
2b5f62a0 VZ |
37182 | #endif |
37183 | ||
e6cc62c6 VS |
37184 | int |
37185 | main () | |
37186 | { | |
37187 | return f != $ac_func; | |
37188 | ; | |
37189 | return 0; | |
37190 | } | |
37191 | _ACEOF | |
37192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37194 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37195 | ac_status=$? |
32ddf007 VS |
37196 | grep -v '^ *+' conftest.er1 >conftest.err |
37197 | rm -f conftest.er1 | |
37198 | cat conftest.err >&5 | |
e6cc62c6 VS |
37199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37200 | (exit $ac_status); } && | |
e1293dcf | 37201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37203 | (eval $ac_try) 2>&5 | |
37204 | ac_status=$? | |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37206 | (exit $ac_status); }; } && | |
37207 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37209 | (eval $ac_try) 2>&5 | |
37210 | ac_status=$? | |
37211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37212 | (exit $ac_status); }; }; then | |
37213 | eval "$as_ac_var=yes" | |
37214 | else | |
37215 | echo "$as_me: failed program was:" >&5 | |
37216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37217 | ||
37218 | eval "$as_ac_var=no" | |
37219 | fi | |
32ddf007 VS |
37220 | rm -f conftest.err conftest.$ac_objext \ |
37221 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37222 | fi |
37223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37226 | cat >>confdefs.h <<_ACEOF | |
37227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37228 | _ACEOF | |
2b5f62a0 | 37229 | have_cos=1 |
2b5f62a0 VZ |
37230 | fi |
37231 | done | |
37232 | ||
e6cc62c6 | 37233 | |
2b5f62a0 VZ |
37234 | for ac_func in floor |
37235 | do | |
e6cc62c6 VS |
37236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37241 | else | |
37242 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37243 | /* confdefs.h. */ |
37244 | _ACEOF | |
37245 | cat confdefs.h >>conftest.$ac_ext | |
37246 | cat >>conftest.$ac_ext <<_ACEOF | |
37247 | /* end confdefs.h. */ | |
32ddf007 VS |
37248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37250 | #define $ac_func innocuous_$ac_func | |
37251 | ||
2b5f62a0 | 37252 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37253 | which can conflict with char $ac_func (); below. |
37254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37255 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37256 | |
e6cc62c6 VS |
37257 | #ifdef __STDC__ |
37258 | # include <limits.h> | |
37259 | #else | |
37260 | # include <assert.h> | |
37261 | #endif | |
32ddf007 VS |
37262 | |
37263 | #undef $ac_func | |
37264 | ||
2b5f62a0 | 37265 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37266 | #ifdef __cplusplus |
37267 | extern "C" | |
37268 | { | |
37269 | #endif | |
2b5f62a0 | 37270 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37271 | builtin and then its argument prototype would still apply. */ |
37272 | char $ac_func (); | |
2b5f62a0 VZ |
37273 | /* The GNU C library defines this for functions which it implements |
37274 | to always fail with ENOSYS. Some functions are actually named | |
37275 | something starting with __ and the normal name is an alias. */ | |
37276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37277 | choke me | |
37278 | #else | |
e6cc62c6 VS |
37279 | char (*f) () = $ac_func; |
37280 | #endif | |
37281 | #ifdef __cplusplus | |
37282 | } | |
2b5f62a0 VZ |
37283 | #endif |
37284 | ||
e6cc62c6 VS |
37285 | int |
37286 | main () | |
37287 | { | |
37288 | return f != $ac_func; | |
37289 | ; | |
37290 | return 0; | |
37291 | } | |
37292 | _ACEOF | |
37293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37295 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37296 | ac_status=$? |
32ddf007 VS |
37297 | grep -v '^ *+' conftest.er1 >conftest.err |
37298 | rm -f conftest.er1 | |
37299 | cat conftest.err >&5 | |
e6cc62c6 VS |
37300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37301 | (exit $ac_status); } && | |
e1293dcf | 37302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37304 | (eval $ac_try) 2>&5 | |
37305 | ac_status=$? | |
37306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37307 | (exit $ac_status); }; } && | |
37308 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37310 | (eval $ac_try) 2>&5 | |
37311 | ac_status=$? | |
37312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37313 | (exit $ac_status); }; }; then | |
37314 | eval "$as_ac_var=yes" | |
37315 | else | |
37316 | echo "$as_me: failed program was:" >&5 | |
37317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37318 | ||
37319 | eval "$as_ac_var=no" | |
37320 | fi | |
32ddf007 VS |
37321 | rm -f conftest.err conftest.$ac_objext \ |
37322 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37323 | fi |
37324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37327 | cat >>confdefs.h <<_ACEOF | |
37328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37329 | _ACEOF | |
2b5f62a0 | 37330 | have_floor=1 |
2b5f62a0 VZ |
37331 | fi |
37332 | done | |
37333 | ||
e6cc62c6 VS |
37334 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
37335 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37336 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
37337 | echo "$as_me:$LINENO: result: yes" >&5 |
37338 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37339 | else |
e6cc62c6 VS |
37340 | echo "$as_me:$LINENO: result: no" >&5 |
37341 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37342 | LIBS="$LIBS -lm" |
37343 | # use different functions to avoid configure caching | |
37344 | have_sin=0 | |
37345 | have_ceil=0 | |
e6cc62c6 VS |
37346 | |
37347 | for ac_func in sin | |
2b5f62a0 | 37348 | do |
e6cc62c6 VS |
37349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37350 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37352 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37354 | else | |
37355 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37356 | /* confdefs.h. */ |
37357 | _ACEOF | |
37358 | cat confdefs.h >>conftest.$ac_ext | |
37359 | cat >>conftest.$ac_ext <<_ACEOF | |
37360 | /* end confdefs.h. */ | |
32ddf007 VS |
37361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37363 | #define $ac_func innocuous_$ac_func | |
37364 | ||
2b5f62a0 | 37365 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37366 | which can conflict with char $ac_func (); below. |
37367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37368 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37369 | |
e6cc62c6 VS |
37370 | #ifdef __STDC__ |
37371 | # include <limits.h> | |
37372 | #else | |
37373 | # include <assert.h> | |
37374 | #endif | |
32ddf007 VS |
37375 | |
37376 | #undef $ac_func | |
37377 | ||
2b5f62a0 | 37378 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37379 | #ifdef __cplusplus |
37380 | extern "C" | |
37381 | { | |
37382 | #endif | |
2b5f62a0 | 37383 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37384 | builtin and then its argument prototype would still apply. */ |
37385 | char $ac_func (); | |
2b5f62a0 VZ |
37386 | /* The GNU C library defines this for functions which it implements |
37387 | to always fail with ENOSYS. Some functions are actually named | |
37388 | something starting with __ and the normal name is an alias. */ | |
37389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37390 | choke me | |
37391 | #else | |
e6cc62c6 VS |
37392 | char (*f) () = $ac_func; |
37393 | #endif | |
37394 | #ifdef __cplusplus | |
37395 | } | |
2b5f62a0 VZ |
37396 | #endif |
37397 | ||
e6cc62c6 VS |
37398 | int |
37399 | main () | |
37400 | { | |
37401 | return f != $ac_func; | |
37402 | ; | |
37403 | return 0; | |
37404 | } | |
37405 | _ACEOF | |
37406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37408 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37409 | ac_status=$? |
32ddf007 VS |
37410 | grep -v '^ *+' conftest.er1 >conftest.err |
37411 | rm -f conftest.er1 | |
37412 | cat conftest.err >&5 | |
e6cc62c6 VS |
37413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37414 | (exit $ac_status); } && | |
e1293dcf | 37415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37417 | (eval $ac_try) 2>&5 | |
37418 | ac_status=$? | |
37419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37420 | (exit $ac_status); }; } && | |
37421 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37423 | (eval $ac_try) 2>&5 | |
37424 | ac_status=$? | |
37425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37426 | (exit $ac_status); }; }; then | |
37427 | eval "$as_ac_var=yes" | |
37428 | else | |
37429 | echo "$as_me: failed program was:" >&5 | |
37430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37431 | ||
37432 | eval "$as_ac_var=no" | |
37433 | fi | |
32ddf007 VS |
37434 | rm -f conftest.err conftest.$ac_objext \ |
37435 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37436 | fi |
37437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37438 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37439 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37440 | cat >>confdefs.h <<_ACEOF | |
37441 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37442 | _ACEOF | |
2b5f62a0 | 37443 | have_sin=1 |
2b5f62a0 VZ |
37444 | fi |
37445 | done | |
37446 | ||
e6cc62c6 VS |
37447 | |
37448 | for ac_func in ceil | |
2b5f62a0 | 37449 | do |
e6cc62c6 VS |
37450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37451 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37453 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37455 | else | |
37456 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37457 | /* confdefs.h. */ |
37458 | _ACEOF | |
37459 | cat confdefs.h >>conftest.$ac_ext | |
37460 | cat >>conftest.$ac_ext <<_ACEOF | |
37461 | /* end confdefs.h. */ | |
32ddf007 VS |
37462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37464 | #define $ac_func innocuous_$ac_func | |
37465 | ||
2b5f62a0 | 37466 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37467 | which can conflict with char $ac_func (); below. |
37468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37469 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37470 | |
e6cc62c6 VS |
37471 | #ifdef __STDC__ |
37472 | # include <limits.h> | |
37473 | #else | |
37474 | # include <assert.h> | |
37475 | #endif | |
32ddf007 VS |
37476 | |
37477 | #undef $ac_func | |
37478 | ||
2b5f62a0 | 37479 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37480 | #ifdef __cplusplus |
37481 | extern "C" | |
37482 | { | |
37483 | #endif | |
2b5f62a0 | 37484 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37485 | builtin and then its argument prototype would still apply. */ |
37486 | char $ac_func (); | |
2b5f62a0 VZ |
37487 | /* The GNU C library defines this for functions which it implements |
37488 | to always fail with ENOSYS. Some functions are actually named | |
37489 | something starting with __ and the normal name is an alias. */ | |
37490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37491 | choke me | |
37492 | #else | |
e6cc62c6 VS |
37493 | char (*f) () = $ac_func; |
37494 | #endif | |
37495 | #ifdef __cplusplus | |
37496 | } | |
2b5f62a0 VZ |
37497 | #endif |
37498 | ||
e6cc62c6 VS |
37499 | int |
37500 | main () | |
37501 | { | |
37502 | return f != $ac_func; | |
37503 | ; | |
37504 | return 0; | |
37505 | } | |
37506 | _ACEOF | |
37507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37509 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37510 | ac_status=$? |
32ddf007 VS |
37511 | grep -v '^ *+' conftest.er1 >conftest.err |
37512 | rm -f conftest.er1 | |
37513 | cat conftest.err >&5 | |
e6cc62c6 VS |
37514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37515 | (exit $ac_status); } && | |
e1293dcf | 37516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
37517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37518 | (eval $ac_try) 2>&5 | |
37519 | ac_status=$? | |
37520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37521 | (exit $ac_status); }; } && | |
37522 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37524 | (eval $ac_try) 2>&5 | |
37525 | ac_status=$? | |
37526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37527 | (exit $ac_status); }; }; then | |
37528 | eval "$as_ac_var=yes" | |
37529 | else | |
37530 | echo "$as_me: failed program was:" >&5 | |
37531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37532 | ||
37533 | eval "$as_ac_var=no" | |
37534 | fi | |
32ddf007 VS |
37535 | rm -f conftest.err conftest.$ac_objext \ |
37536 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37537 | fi |
37538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37540 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37541 | cat >>confdefs.h <<_ACEOF | |
37542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37543 | _ACEOF | |
2b5f62a0 | 37544 | have_ceil=1 |
2b5f62a0 VZ |
37545 | fi |
37546 | done | |
37547 | ||
e6cc62c6 VS |
37548 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
37549 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37550 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
37551 | echo "$as_me:$LINENO: result: yes" >&5 |
37552 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37553 | else |
e6cc62c6 VS |
37554 | echo "$as_me:$LINENO: result: no" >&5 |
37555 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37556 | # not sure we should warn the user, crash, etc. |
37557 | fi | |
37558 | fi | |
8284b0c5 MB |
37559 | |
37560 | if test "$wxUSE_GUI" = "yes"; then | |
37561 | ||
e6cc62c6 | 37562 | |
8284b0c5 MB |
37563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
37564 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 37565 | minimal propsize rotate shaped widgets render" |
b625909c VS |
37566 | |
37567 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37568 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37569 | fi | |
8284b0c5 MB |
37570 | else |
37571 | SAMPLES_SUBDIRS="console" | |
37572 | fi | |
37573 | ||
37574 | ||
e6cc62c6 | 37575 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 37576 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 37577 | |
fddeb06b VS |
37578 | if test "$GXX" = yes ; then |
37579 | CXXWARNINGS="-Wall" | |
37580 | fi | |
37581 | ||
37582 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37583 | ||
95318f7d | 37584 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
37585 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
37586 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
37587 | |
37588 | ||
fddeb06b | 37589 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 37590 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 37591 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 37592 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 37593 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
37594 | if test "$wxUSE_GUI" = "yes"; then |
37595 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
37596 | fi | |
34b08d2c VS |
37597 | if test "$wxUSE_OPENGL" = "yes"; then |
37598 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37599 | fi | |
fddeb06b VS |
37600 | |
37601 | LDFLAGS="$LDFLAGS $PROFILE" | |
37602 | ||
8284b0c5 MB |
37603 | if test "$wxUSE_GTK" = 1; then |
37604 | WXCONFIG_INCLUDE= | |
37605 | else | |
37606 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37607 | fi | |
37608 | ||
67c13b6c VS |
37609 | WXCONFIG_EXTRALIBS="$LIBS" |
37610 | ||
37611 | if test "$wxUSE_REGEX" = "builtin" ; then | |
4996f261 | 37612 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" |
67c13b6c VS |
37613 | fi |
37614 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37615 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37616 | fi | |
37617 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37618 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37619 | fi | |
37620 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37621 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37622 | fi | |
37623 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37624 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37625 | fi | |
37626 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37627 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37628 | fi | |
37629 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37630 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37631 | fi | |
bb41dcbe VS |
37632 | if test "$wxUSE_ODBC" = "builtin" ; then |
37633 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37634 | fi | |
67c13b6c VS |
37635 | |
37636 | for i in $wxconfig_3rdparty ; do | |
37637 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37638 | done | |
37639 | ||
37640 | ||
fe0895cf VS |
37641 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
37642 | WXUNIV=1 | |
37643 | else | |
37644 | WXUNIV=0 | |
8284b0c5 MB |
37645 | fi |
37646 | ||
8284b0c5 MB |
37647 | |
37648 | ||
37649 | ||
37650 | ||
37651 | ||
37652 | ||
37653 | ||
672abd7a | 37654 | |
9747f85d VS |
37655 | if test $wxUSE_MONOLITHIC = "yes" ; then |
37656 | MONOLITHIC=1 | |
37657 | else | |
37658 | MONOLITHIC=0 | |
37659 | fi | |
8284b0c5 | 37660 | |
f93ca9fd VS |
37661 | if test $wxUSE_PLUGINS = "yes" ; then |
37662 | USE_PLUGINS=1 | |
37663 | else | |
37664 | USE_PLUGINS=0 | |
37665 | fi | |
37666 | ||
bb41dcbe VS |
37667 | if test $wxUSE_ODBC != "no" ; then |
37668 | USE_ODBC=1 | |
37669 | else | |
37670 | USE_ODBC=0 | |
37671 | fi | |
37672 | ||
029b47ad VS |
37673 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
37674 | OFFICIAL_BUILD=1 | |
37675 | else | |
37676 | OFFICIAL_BUILD=0 | |
37677 | fi | |
37678 | ||
8ee2dd05 VS |
37679 | |
37680 | ||
37681 | ||
8284b0c5 MB |
37682 | |
37683 | ||
37684 | ||
37685 | ||
37686 | ||
37687 | ||
c74dc163 | 37688 | |
34b08d2c | 37689 | |
672abd7a | 37690 | |
cf615ebb | 37691 | |
6c67131a VS |
37692 | |
37693 | ||
bb41dcbe | 37694 | |
f93ca9fd VS |
37695 | |
37696 | ||
37697 | ||
3527f29c | 37698 | |
89fe663f | 37699 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
37700 | |
37701 | ||
37702 | ||
37703 | ||
37704 | ||
ea66c762 | 37705 | |
0f1bc9c2 | 37706 | |
670ec357 VS |
37707 | |
37708 | ||
f95e4495 VS |
37709 | if test "x$BAKEFILE_HOST" = "x"; then |
37710 | BAKEFILE_HOST="${host}" | |
37711 | fi | |
37712 | ||
fe0895cf | 37713 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
37714 | |
37715 | if test -n "$ac_tool_prefix"; then | |
37716 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37717 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37720 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 37722 | else |
fe0895cf VS |
37723 | if test -n "$RANLIB"; then |
37724 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 37725 | else |
e6cc62c6 VS |
37726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37727 | for as_dir in $PATH | |
37728 | do | |
37729 | IFS=$as_save_IFS | |
37730 | test -z "$as_dir" && as_dir=. | |
37731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37733 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37735 | break 2 | |
37736 | fi | |
37737 | done | |
37738 | done | |
37739 | ||
10f2d63a | 37740 | fi |
10f2d63a | 37741 | fi |
e6cc62c6 | 37742 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 37743 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
37744 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
37745 | echo "${ECHO_T}$RANLIB" >&6 | |
37746 | else | |
37747 | echo "$as_me:$LINENO: result: no" >&5 | |
37748 | echo "${ECHO_T}no" >&6 | |
37749 | fi | |
37750 | ||
37751 | fi | |
37752 | if test -z "$ac_cv_prog_RANLIB"; then | |
37753 | ac_ct_RANLIB=$RANLIB | |
37754 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37755 | set dummy ranlib; ac_word=$2 | |
37756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37758 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37760 | else | |
37761 | if test -n "$ac_ct_RANLIB"; then | |
37762 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37763 | else | |
37764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37765 | for as_dir in $PATH | |
37766 | do | |
37767 | IFS=$as_save_IFS | |
37768 | test -z "$as_dir" && as_dir=. | |
37769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37771 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37773 | break 2 | |
37774 | fi | |
37775 | done | |
37776 | done | |
37777 | ||
37778 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37779 | fi | |
37780 | fi | |
37781 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37782 | if test -n "$ac_ct_RANLIB"; then | |
37783 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37784 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 37785 | else |
e6cc62c6 VS |
37786 | echo "$as_me:$LINENO: result: no" >&5 |
37787 | echo "${ECHO_T}no" >&6 | |
37788 | fi | |
37789 | ||
37790 | RANLIB=$ac_ct_RANLIB | |
37791 | else | |
37792 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 37793 | fi |
665bbe97 | 37794 | |
fe0895cf VS |
37795 | # Find a good install program. We prefer a C program (faster), |
37796 | # so one script is as good as another. But avoid the broken or | |
37797 | # incompatible versions: | |
37798 | # SysV /etc/install, /usr/sbin/install | |
37799 | # SunOS /usr/etc/install | |
37800 | # IRIX /sbin/install | |
37801 | # AIX /bin/install | |
e6cc62c6 | 37802 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
37803 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
37804 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37805 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 37806 | # OS/2's system install, which has a completely different semantic |
fe0895cf | 37807 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
37808 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
37809 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 37810 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
37811 | if test "${ac_cv_path_install+set}" = set; then |
37812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37813 | else | |
37814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37815 | for as_dir in $PATH | |
37816 | do | |
37817 | IFS=$as_save_IFS | |
37818 | test -z "$as_dir" && as_dir=. | |
37819 | # Account for people who put trailing slashes in PATH elements. | |
37820 | case $as_dir/ in | |
37821 | ./ | .// | /cC/* | \ | |
37822 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 37823 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
37824 | /usr/ucb/* ) ;; |
37825 | *) | |
37826 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37827 | # Don't use installbsd from OSF since it installs stuff as root | |
37828 | # by default. | |
37829 | for ac_prog in ginstall scoinst install; do | |
37830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
37831 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37832 | if test $ac_prog = install && | |
37833 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37834 | # AIX install. It has an incompatible calling convention. | |
37835 | : | |
37836 | elif test $ac_prog = install && | |
37837 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37838 | # program-specific install script used by HP pwplus--don't use. | |
37839 | : | |
37840 | else | |
37841 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37842 | break 3 | |
37843 | fi | |
37844 | fi | |
fe0895cf | 37845 | done |
e6cc62c6 VS |
37846 | done |
37847 | ;; | |
37848 | esac | |
37849 | done | |
37850 | ||
fe0895cf VS |
37851 | |
37852 | fi | |
37853 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 37854 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
37855 | else |
37856 | # As a last resort, use the slow shell script. We don't cache a | |
37857 | # path for INSTALL within a source directory, because that will | |
37858 | # break other packages using the cache if that directory is | |
37859 | # removed, or if the path is relative. | |
e6cc62c6 | 37860 | INSTALL=$ac_install_sh |
fe0895cf VS |
37861 | fi |
37862 | fi | |
e6cc62c6 VS |
37863 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
37864 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
37865 | |
37866 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37867 | # It thinks the first close brace ends the variable substitution. | |
37868 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37869 | ||
e6cc62c6 | 37870 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
37871 | |
37872 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37873 | ||
e6cc62c6 VS |
37874 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
37875 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37876 | LN_S=$as_ln_s | |
37877 | if test "$LN_S" = "ln -s"; then | |
37878 | echo "$as_me:$LINENO: result: yes" >&5 | |
37879 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 37880 | else |
e6cc62c6 VS |
37881 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
37882 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
37883 | fi |
37884 | ||
37885 | ||
e6cc62c6 VS |
37886 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
37887 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 37888 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
37889 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 37891 | else |
e6cc62c6 | 37892 | cat >conftest.make <<\_ACEOF |
fe0895cf | 37893 | all: |
e6cc62c6 VS |
37894 | @echo 'ac_maketemp="$(MAKE)"' |
37895 | _ACEOF | |
fe0895cf | 37896 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 37897 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
37898 | if test -n "$ac_maketemp"; then |
37899 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37900 | else | |
37901 | eval ac_cv_prog_make_${ac_make}_set=no | |
37902 | fi | |
e6cc62c6 | 37903 | rm -f conftest.make |
fe0895cf VS |
37904 | fi |
37905 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
37906 | echo "$as_me:$LINENO: result: yes" >&5 |
37907 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
37908 | SET_MAKE= |
37909 | else | |
e6cc62c6 VS |
37910 | echo "$as_me:$LINENO: result: no" >&5 |
37911 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37912 | SET_MAKE="MAKE=${MAKE-make}" |
37913 | fi | |
37914 | ||
e6cc62c6 VS |
37915 | |
37916 | ||
874d12cf VS |
37917 | if test -n "$ac_tool_prefix"; then |
37918 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
37919 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
37920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37922 | if test "${ac_cv_prog_AR+set}" = set; then | |
37923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37924 | else |
37925 | if test -n "$AR"; then | |
37926 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
37927 | else | |
e6cc62c6 VS |
37928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37929 | for as_dir in $PATH | |
37930 | do | |
37931 | IFS=$as_save_IFS | |
37932 | test -z "$as_dir" && as_dir=. | |
37933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 37935 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
37936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
37937 | break 2 | |
37938 | fi | |
37939 | done | |
37940 | done | |
37941 | ||
fe0895cf VS |
37942 | fi |
37943 | fi | |
e6cc62c6 | 37944 | AR=$ac_cv_prog_AR |
fe0895cf | 37945 | if test -n "$AR"; then |
e6cc62c6 VS |
37946 | echo "$as_me:$LINENO: result: $AR" >&5 |
37947 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 37948 | else |
e6cc62c6 VS |
37949 | echo "$as_me:$LINENO: result: no" >&5 |
37950 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37951 | fi |
37952 | ||
874d12cf VS |
37953 | fi |
37954 | if test -z "$ac_cv_prog_AR"; then | |
37955 | ac_ct_AR=$AR | |
37956 | # Extract the first word of "ar", so it can be a program name with args. | |
37957 | set dummy ar; ac_word=$2 | |
37958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37960 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
37961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37962 | else | |
37963 | if test -n "$ac_ct_AR"; then | |
37964 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
37965 | else | |
37966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37967 | for as_dir in $PATH | |
37968 | do | |
37969 | IFS=$as_save_IFS | |
37970 | test -z "$as_dir" && as_dir=. | |
37971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37973 | ac_cv_prog_ac_ct_AR="ar" | |
37974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37975 | break 2 | |
37976 | fi | |
37977 | done | |
37978 | done | |
37979 | ||
37980 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
37981 | fi | |
37982 | fi | |
37983 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
37984 | if test -n "$ac_ct_AR"; then | |
37985 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
37986 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
37987 | else | |
37988 | echo "$as_me:$LINENO: result: no" >&5 | |
37989 | echo "${ECHO_T}no" >&6 | |
37990 | fi | |
37991 | ||
37992 | AR=$ac_ct_AR | |
37993 | else | |
37994 | AR="$ac_cv_prog_AR" | |
37995 | fi | |
37996 | ||
37997 | if test -n "$ac_tool_prefix"; then | |
37998 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
37999 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
38000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38002 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38004 | else |
38005 | if test -n "$STRIP"; then | |
38006 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38007 | else | |
e6cc62c6 VS |
38008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38009 | for as_dir in $PATH | |
38010 | do | |
38011 | IFS=$as_save_IFS | |
38012 | test -z "$as_dir" && as_dir=. | |
38013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 38015 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
38016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
38017 | break 2 | |
38018 | fi | |
38019 | done | |
38020 | done | |
38021 | ||
fe0895cf VS |
38022 | fi |
38023 | fi | |
e6cc62c6 | 38024 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 38025 | if test -n "$STRIP"; then |
e6cc62c6 VS |
38026 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
38027 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 38028 | else |
e6cc62c6 VS |
38029 | echo "$as_me:$LINENO: result: no" >&5 |
38030 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38031 | fi |
38032 | ||
874d12cf VS |
38033 | fi |
38034 | if test -z "$ac_cv_prog_STRIP"; then | |
38035 | ac_ct_STRIP=$STRIP | |
38036 | # Extract the first word of "strip", so it can be a program name with args. | |
38037 | set dummy strip; ac_word=$2 | |
38038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38040 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38042 | else | |
38043 | if test -n "$ac_ct_STRIP"; then | |
38044 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38045 | else | |
38046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38047 | for as_dir in $PATH | |
38048 | do | |
38049 | IFS=$as_save_IFS | |
38050 | test -z "$as_dir" && as_dir=. | |
38051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38053 | ac_cv_prog_ac_ct_STRIP="strip" | |
38054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38055 | break 2 | |
38056 | fi | |
38057 | done | |
38058 | done | |
38059 | ||
38060 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38061 | fi | |
38062 | fi | |
38063 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38064 | if test -n "$ac_ct_STRIP"; then | |
38065 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38066 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38067 | else | |
38068 | echo "$as_me:$LINENO: result: no" >&5 | |
38069 | echo "${ECHO_T}no" >&6 | |
38070 | fi | |
38071 | ||
38072 | STRIP=$ac_ct_STRIP | |
38073 | else | |
38074 | STRIP="$ac_cv_prog_STRIP" | |
38075 | fi | |
38076 | ||
38077 | if test -n "$ac_tool_prefix"; then | |
38078 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38079 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38082 | if test "${ac_cv_prog_NM+set}" = set; then | |
38083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38084 | else | |
38085 | if test -n "$NM"; then | |
38086 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38087 | else | |
38088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38089 | for as_dir in $PATH | |
38090 | do | |
38091 | IFS=$as_save_IFS | |
38092 | test -z "$as_dir" && as_dir=. | |
38093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38094 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38095 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38097 | break 2 | |
38098 | fi | |
38099 | done | |
38100 | done | |
38101 | ||
38102 | fi | |
38103 | fi | |
38104 | NM=$ac_cv_prog_NM | |
38105 | if test -n "$NM"; then | |
38106 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38107 | echo "${ECHO_T}$NM" >&6 | |
38108 | else | |
38109 | echo "$as_me:$LINENO: result: no" >&5 | |
38110 | echo "${ECHO_T}no" >&6 | |
38111 | fi | |
38112 | ||
38113 | fi | |
38114 | if test -z "$ac_cv_prog_NM"; then | |
38115 | ac_ct_NM=$NM | |
38116 | # Extract the first word of "nm", so it can be a program name with args. | |
38117 | set dummy nm; ac_word=$2 | |
38118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38120 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38122 | else | |
38123 | if test -n "$ac_ct_NM"; then | |
38124 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38125 | else | |
38126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38127 | for as_dir in $PATH | |
38128 | do | |
38129 | IFS=$as_save_IFS | |
38130 | test -z "$as_dir" && as_dir=. | |
38131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38133 | ac_cv_prog_ac_ct_NM="nm" | |
38134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38135 | break 2 | |
38136 | fi | |
38137 | done | |
38138 | done | |
38139 | ||
38140 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38141 | fi | |
38142 | fi | |
38143 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38144 | if test -n "$ac_ct_NM"; then | |
38145 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38146 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38147 | else | |
38148 | echo "$as_me:$LINENO: result: no" >&5 | |
38149 | echo "${ECHO_T}no" >&6 | |
38150 | fi | |
38151 | ||
38152 | NM=$ac_ct_NM | |
38153 | else | |
38154 | NM="$ac_cv_prog_NM" | |
38155 | fi | |
38156 | ||
fe0895cf | 38157 | |
f95e4495 | 38158 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
38159 | *-hp-hpux* ) |
38160 | INSTALL_DIR="mkdir" | |
38161 | ;; | |
38162 | *) INSTALL_DIR="$INSTALL -d" | |
38163 | ;; | |
38164 | esac | |
e6cc62c6 | 38165 | |
fe0895cf | 38166 | |
6b9d41a5 | 38167 | LDFLAGS_GUI= |
f95e4495 | 38168 | case ${BAKEFILE_HOST} in |
6b9d41a5 VS |
38169 | *-*-cygwin* | *-*-mingw32* ) |
38170 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
38171 | esac | |
38172 | ||
38173 | ||
fe0895cf | 38174 | fi |
e6cc62c6 VS |
38175 | |
38176 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38177 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 38178 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 38179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 38180 | else |
e6cc62c6 | 38181 | |
fe0895cf VS |
38182 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
38183 | egrep -s GNU > /dev/null); then | |
38184 | bakefile_cv_prog_makeisgnu="yes" | |
38185 | else | |
38186 | bakefile_cv_prog_makeisgnu="no" | |
38187 | fi | |
fe0895cf | 38188 | |
e6cc62c6 | 38189 | fi |
49b0a3aa VS |
38190 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
38191 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
38192 | |
38193 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38194 | IF_GNU_MAKE="" | |
38195 | else | |
38196 | IF_GNU_MAKE="#" | |
38197 | fi | |
fe0895cf | 38198 | |
e6cc62c6 VS |
38199 | |
38200 | ||
fe0895cf VS |
38201 | PLATFORM_UNIX=0 |
38202 | PLATFORM_WIN32=0 | |
38203 | PLATFORM_MSDOS=0 | |
38204 | PLATFORM_MAC=0 | |
38205 | PLATFORM_MACOSX=0 | |
96c1699d | 38206 | PLATFORM_OS2=0 |
e6cc62c6 | 38207 | |
f95e4495 VS |
38208 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then |
38209 | case "${BAKEFILE_HOST}" in | |
38210 | *-*-cygwin* | *-*-mingw32* ) | |
38211 | PLATFORM_WIN32=1 | |
38212 | ;; | |
38213 | *-pc-msdosdjgpp ) | |
38214 | PLATFORM_MSDOS=1 | |
38215 | ;; | |
38216 | *-pc-os2_emx | *-pc-os2-emx ) | |
38217 | PLATFORM_OS2=1 | |
38218 | ;; | |
38219 | powerpc-*-darwin* ) | |
38220 | PLATFORM_MAC=1 | |
38221 | PLATFORM_MACOSX=1 | |
38222 | ;; | |
38223 | * ) | |
38224 | PLATFORM_UNIX=1 | |
38225 | ;; | |
38226 | esac | |
38227 | else | |
38228 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38229 | win32 ) | |
38230 | PLATFORM_WIN32=1 | |
38231 | ;; | |
38232 | msdos ) | |
38233 | PLATFORM_MSDOS=1 | |
38234 | ;; | |
38235 | os2 ) | |
38236 | PLATFORM_OS2=1 | |
38237 | ;; | |
38238 | darwin ) | |
38239 | PLATFORM_MAC=1 | |
38240 | PLATFORM_MACOSX=1 | |
38241 | ;; | |
38242 | unix ) | |
38243 | PLATFORM_UNIX=1 | |
38244 | ;; | |
38245 | * ) | |
38246 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38247 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38248 | { (exit 1); exit 1; }; } | |
38249 | ;; | |
38250 | esac | |
38251 | fi | |
fe0895cf | 38252 | |
fe0895cf | 38253 | |
e6cc62c6 VS |
38254 | |
38255 | ||
38256 | ||
38257 | ||
38258 | ||
38259 | ||
96c1699d | 38260 | |
fe0895cf | 38261 | SO_SUFFIX="so" |
131f235d | 38262 | SO_SUFFIX_MODULE="so" |
fe0895cf | 38263 | EXEEXT="" |
4b1f6360 | 38264 | LIBPREFIX=lib |
fe0895cf | 38265 | DLLPREFIX=lib |
131f235d | 38266 | DLLPREFIX_MODULE= |
e6cc62c6 | 38267 | |
f95e4495 | 38268 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38269 | *-hp-hpux* ) |
38270 | SO_SUFFIX="sl" | |
131f235d | 38271 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
38272 | ;; |
38273 | *-*-aix* ) | |
38274 | SO_SUFFIX="a" | |
131f235d | 38275 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
38276 | ;; |
38277 | *-*-cygwin* | *-*-mingw32* ) | |
38278 | SO_SUFFIX="dll" | |
131f235d | 38279 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
38280 | EXEEXT=".exe" |
38281 | DLLPREFIX="" | |
38282 | ;; | |
4b1f6360 VS |
38283 | *-pc-msdosdjgpp ) |
38284 | EXEEXT=".exe" | |
38285 | DLLPREFIX="" | |
38286 | ;; | |
38287 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
38288 | EXEEXT=".exe" |
38289 | DLLPREFIX="" | |
4b1f6360 | 38290 | LIBPREFIX="" |
fe0895cf VS |
38291 | ;; |
38292 | powerpc-*-darwin* ) | |
38293 | SO_SUFFIX="dylib" | |
131f235d | 38294 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
38295 | ;; |
38296 | esac | |
38297 | ||
fe0895cf | 38298 | |
e6cc62c6 VS |
38299 | |
38300 | ||
38301 | ||
38302 | ||
131f235d VS |
38303 | |
38304 | ||
4b1f6360 | 38305 | |
fe0895cf VS |
38306 | SHARED_LD_CC="\$(CC) -shared -o" |
38307 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38308 | ||
38309 | if test "x$GCC" = "xyes"; then | |
38310 | PIC_FLAG="-fPIC" | |
38311 | fi | |
38312 | ||
f95e4495 | 38313 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38314 | *-hp-hpux* ) |
38315 | if test "x$GCC" = "xyes"; then | |
38316 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38317 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38318 | else | |
38319 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38320 | ||
38321 | SHARED_LD_CC="${CC} -b -o" | |
38322 | SHARED_LD_CXX="${CXX} -b -o" | |
38323 | PIC_FLAG="+Z" | |
38324 | fi | |
38325 | ;; | |
38326 | ||
38327 | *-*-linux* ) | |
38328 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
38329 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
38330 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38331 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 38333 | else |
fe0895cf | 38334 | |
e6cc62c6 | 38335 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
38336 | /* confdefs.h. */ |
38337 | _ACEOF | |
38338 | cat confdefs.h >>conftest.$ac_ext | |
38339 | cat >>conftest.$ac_ext <<_ACEOF | |
38340 | /* end confdefs.h. */ | |
38341 | ||
38342 | int | |
38343 | main () | |
38344 | { | |
fe0895cf VS |
38345 | |
38346 | #ifndef __INTEL_COMPILER | |
38347 | #error Not icc | |
38348 | #endif | |
e6cc62c6 VS |
38349 | |
38350 | ; | |
38351 | return 0; | |
38352 | } | |
38353 | _ACEOF | |
38354 | rm -f conftest.$ac_objext | |
38355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38356 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 38357 | ac_status=$? |
32ddf007 VS |
38358 | grep -v '^ *+' conftest.er1 >conftest.err |
38359 | rm -f conftest.er1 | |
38360 | cat conftest.err >&5 | |
e6cc62c6 VS |
38361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38362 | (exit $ac_status); } && | |
e1293dcf | 38363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38365 | (eval $ac_try) 2>&5 | |
38366 | ac_status=$? | |
38367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38368 | (exit $ac_status); }; } && | |
38369 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
38370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38371 | (eval $ac_try) 2>&5 | |
38372 | ac_status=$? | |
38373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38374 | (exit $ac_status); }; }; then | |
fe0895cf VS |
38375 | bakefile_cv_prog_icc=yes |
38376 | else | |
e6cc62c6 VS |
38377 | echo "$as_me: failed program was:" >&5 |
38378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38379 | ||
38380 | bakefile_cv_prog_icc=no | |
38381 | ||
fe0895cf | 38382 | fi |
32ddf007 | 38383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 38384 | |
e6cc62c6 VS |
38385 | fi |
38386 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38387 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
38388 | if test "$bakefile_cv_prog_icc" = "yes"; then |
38389 | PIC_FLAG="-KPIC" | |
38390 | fi | |
38391 | fi | |
38392 | ;; | |
38393 | ||
38394 | *-*-solaris2* ) | |
38395 | if test "x$GCC" != xyes ; then | |
38396 | SHARED_LD_CC="${CC} -G -o" | |
38397 | SHARED_LD_CXX="${CXX} -G -o" | |
38398 | PIC_FLAG="-KPIC" | |
38399 | fi | |
38400 | ;; | |
38401 | ||
38402 | *-*-darwin* ) | |
38403 | CFLAGS="$CFLAGS -fno-common" | |
38404 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
38405 | |
38406 | ||
2a879853 | 38407 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
38408 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
38409 | if test "${wx_cv_gcc31+set}" = set; then | |
38410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38411 | else | |
38412 | ||
2a879853 | 38413 | cat >conftest.$ac_ext <<_ACEOF |
43948499 RD |
38414 | /* confdefs.h. */ |
38415 | _ACEOF | |
38416 | cat confdefs.h >>conftest.$ac_ext | |
38417 | cat >>conftest.$ac_ext <<_ACEOF | |
38418 | /* end confdefs.h. */ | |
38419 | ||
38420 | int | |
38421 | main () | |
38422 | { | |
38423 | ||
2a879853 VS |
38424 | #if (__GNUC__ < 3) || \ |
38425 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38426 | #error old gcc | |
38427 | #endif | |
43948499 RD |
38428 | |
38429 | ; | |
38430 | return 0; | |
38431 | } | |
38432 | _ACEOF | |
38433 | rm -f conftest.$ac_objext | |
38434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38435 | (eval $ac_compile) 2>conftest.er1 |
43948499 | 38436 | ac_status=$? |
32ddf007 VS |
38437 | grep -v '^ *+' conftest.er1 >conftest.err |
38438 | rm -f conftest.er1 | |
38439 | cat conftest.err >&5 | |
43948499 RD |
38440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38441 | (exit $ac_status); } && | |
e1293dcf | 38442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38444 | (eval $ac_try) 2>&5 | |
38445 | ac_status=$? | |
38446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38447 | (exit $ac_status); }; } && | |
38448 | { ac_try='test -s conftest.$ac_objext' | |
43948499 RD |
38449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38450 | (eval $ac_try) 2>&5 | |
38451 | ac_status=$? | |
38452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38453 | (exit $ac_status); }; }; then | |
38454 | ||
2a879853 | 38455 | wx_cv_gcc31=yes |
43948499 RD |
38456 | |
38457 | else | |
38458 | echo "$as_me: failed program was:" >&5 | |
38459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38460 | ||
38461 | ||
2a879853 | 38462 | wx_cv_gcc31=no |
43948499 RD |
38463 | |
38464 | ||
38465 | fi | |
32ddf007 | 38466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
38467 | |
38468 | fi | |
38469 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38470 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 38471 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 38472 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
38473 | #!/bin/sh |
38474 | #----------------------------------------------------------------------------- | |
38475 | #-- Name: distrib/mac/shared-ld-sh | |
38476 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38477 | #-- Author: Gilles Depeyrot | |
38478 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38479 | #-- Licence: any use permitted | |
38480 | #----------------------------------------------------------------------------- | |
38481 | ||
38482 | verbose=0 | |
38483 | args="" | |
38484 | objects="" | |
131f235d | 38485 | linking_flag="-dynamiclib" |
fe0895cf VS |
38486 | |
38487 | while test \${#} -gt 0; do | |
38488 | case \${1} in | |
38489 | ||
38490 | -v) | |
38491 | verbose=1 | |
38492 | ;; | |
38493 | ||
38494 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38495 | # collect these options and values | |
38496 | args="\${args} \${1} \${2}" | |
38497 | shift | |
38498 | ;; | |
38499 | ||
74500461 | 38500 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
38501 | # collect these options |
38502 | args="\${args} \${1}" | |
38503 | ;; | |
38504 | ||
131f235d VS |
38505 | -dynamiclib|-bundle) |
38506 | linking_flag="\${1}" | |
fe0895cf VS |
38507 | ;; |
38508 | ||
38509 | -*) | |
38510 | echo "shared-ld: unhandled option '\${1}'" | |
38511 | exit 1 | |
38512 | ;; | |
38513 | ||
4d264332 | 38514 | *.o | *.a | *.dylib) |
fe0895cf VS |
38515 | # collect object files |
38516 | objects="\${objects} \${1}" | |
38517 | ;; | |
38518 | ||
38519 | *) | |
38520 | echo "shared-ld: unhandled argument '\${1}'" | |
38521 | exit 1 | |
38522 | ;; | |
38523 | ||
38524 | esac | |
38525 | shift | |
38526 | done | |
38527 | ||
38528 | # | |
38529 | # Link one module containing all the others | |
38530 | # | |
38531 | if test \${verbose} = 1; then | |
38532 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
38533 | fi | |
38534 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
38535 | status=\$? | |
38536 | if test \${status} != 0; then | |
38537 | exit \${status} | |
38538 | fi | |
38539 | ||
38540 | # | |
38541 | # Link the shared library from the single module created | |
38542 | # | |
38543 | if test \${verbose} = 1; then | |
2a879853 | 38544 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 38545 | fi |
131f235d | 38546 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
38547 | status=\$? |
38548 | if test \${status} != 0; then | |
38549 | exit \${status} | |
38550 | fi | |
38551 | ||
38552 | # | |
38553 | # Remove intermediate module | |
38554 | # | |
38555 | rm -f master.\$\$.o | |
38556 | ||
38557 | exit 0 | |
38558 | EOF | |
43948499 | 38559 | chmod +x shared-ld-sh |
fe0895cf | 38560 | |
7f523214 VS |
38561 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
38562 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
38563 | SHARED_LD_CXX="$SHARED_LD_CC" |
38564 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38565 | else | |
7f523214 VS |
38566 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
38567 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38568 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38569 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
38570 | fi |
38571 | ||
fe0895cf | 38572 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 38573 | ;; |
fe0895cf VS |
38574 | |
38575 | *-*-aix* ) | |
38576 | if test "x$GCC" != "xyes"; then | |
38577 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38578 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
38579 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38581 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38583 | else |
38584 | if test -n "$AIX_CXX_LD"; then | |
38585 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38586 | else | |
e6cc62c6 VS |
38587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38588 | for as_dir in $PATH | |
38589 | do | |
38590 | IFS=$as_save_IFS | |
38591 | test -z "$as_dir" && as_dir=. | |
38592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38593 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38594 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38596 | break 2 | |
38597 | fi | |
38598 | done | |
38599 | done | |
38600 | ||
fe0895cf VS |
38601 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
38602 | fi | |
38603 | fi | |
e6cc62c6 | 38604 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 38605 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
38606 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
38607 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 38608 | else |
e6cc62c6 VS |
38609 | echo "$as_me:$LINENO: result: no" >&5 |
38610 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38611 | fi |
38612 | ||
38613 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38614 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38615 | fi | |
38616 | ;; | |
38617 | ||
38618 | *-*-beos* ) | |
38619 | SHARED_LD_CC="${LD} -shared -o" | |
38620 | SHARED_LD_CXX="${LD} -shared -o" | |
38621 | ;; | |
38622 | ||
38623 | *-*-irix* ) | |
38624 | if test "x$GCC" != "xyes"; then | |
38625 | PIC_FLAG="-KPIC" | |
38626 | fi | |
38627 | ;; | |
e6cc62c6 | 38628 | |
fe0895cf VS |
38629 | *-*-cygwin* | *-*-mingw32* ) |
38630 | PIC_FLAG="" | |
38631 | ;; | |
e6cc62c6 | 38632 | |
fe0895cf VS |
38633 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
38634 | *-*-sunos4* | \ | |
38635 | *-*-osf* | \ | |
38636 | *-*-dgux5* | \ | |
4b1f6360 | 38637 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
38638 | *-*-sysv5* ) |
38639 | ;; | |
38640 | ||
38641 | *) | |
f95e4495 VS |
38642 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
38643 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
e6cc62c6 | 38644 | { (exit 1); exit 1; }; } |
fe0895cf VS |
38645 | esac |
38646 | ||
131f235d VS |
38647 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
38648 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
38649 | fi | |
38650 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 38651 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
38652 | fi |
38653 | ||
38654 | ||
38655 | ||
fe0895cf | 38656 | |
e6cc62c6 VS |
38657 | |
38658 | ||
38659 | ||
38660 | ||
fe0895cf VS |
38661 | USE_SOVERSION=0 |
38662 | USE_SOVERLINUX=0 | |
38663 | USE_SOVERSOLARIS=0 | |
38664 | USE_SOSYMLINKS=0 | |
38665 | USE_MACVERSION=0 | |
38666 | SONAME_FLAG= | |
38667 | ||
f95e4495 | 38668 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38669 | *-*-linux* ) |
38670 | SONAME_FLAG="-Wl,-soname," | |
38671 | USE_SOVERSION=1 | |
38672 | USE_SOVERLINUX=1 | |
38673 | USE_SOSYMLINKS=1 | |
38674 | ;; | |
38675 | ||
38676 | *-*-solaris2* ) | |
38677 | SONAME_FLAG="-h " | |
38678 | USE_SOVERSION=1 | |
38679 | USE_SOVERSOLARIS=1 | |
38680 | USE_SOSYMLINKS=1 | |
38681 | ;; | |
38682 | ||
38683 | *-*-darwin* ) | |
38684 | USE_MACVERSION=1 | |
38685 | USE_SOVERSION=1 | |
38686 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 38687 | ;; |
fe0895cf VS |
38688 | esac |
38689 | ||
fe0895cf | 38690 | |
e6cc62c6 VS |
38691 | |
38692 | ||
38693 | ||
38694 | ||
38695 | ||
38696 | ||
38697 | ||
49b0a3aa VS |
38698 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
38699 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
38700 | DEPS_TRACKING=0 | |
38701 | ||
fe0895cf | 38702 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
38703 | DEPSMODE=gcc |
38704 | DEPS_TRACKING=1 | |
f95e4495 | 38705 | case "${BAKEFILE_HOST}" in |
3e5c3c83 VS |
38706 | powerpc-*-darwin* ) |
38707 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
38708 | ;; | |
38709 | * ) | |
38710 | DEPSFLAG_GCC="-MMD" | |
38711 | ;; | |
38712 | esac | |
49b0a3aa VS |
38713 | echo "$as_me:$LINENO: result: gcc" >&5 |
38714 | echo "${ECHO_T}gcc" >&6 | |
38715 | else | |
38716 | echo "$as_me:$LINENO: result: none" >&5 | |
38717 | echo "${ECHO_T}none" >&6 | |
38718 | fi | |
38719 | ||
38720 | if test $DEPS_TRACKING = 1 ; then | |
38721 | cat <<EOF >bk-deps | |
38722 | #!/bin/sh | |
38723 | ||
45842500 VS |
38724 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
38725 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
38726 | # |
38727 | # Permission is given to use this file in any way. | |
38728 | ||
38729 | DEPSMODE=$DEPSMODE | |
38730 | DEPSDIR=.deps | |
3e5c3c83 | 38731 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
38732 | |
38733 | mkdir -p \$DEPSDIR | |
38734 | ||
38735 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 38736 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
38737 | status=\${?} |
38738 | if test \${status} != 0 ; then | |
38739 | exit \${status} | |
38740 | fi | |
38741 | # move created file to the location we want it in: | |
38742 | while test \${#} -gt 0; do | |
38743 | case "\${1}" in | |
38744 | -o ) | |
38745 | shift | |
38746 | objfile=\${1} | |
38747 | ;; | |
38748 | -* ) | |
38749 | ;; | |
38750 | * ) | |
38751 | srcfile=\${1} | |
38752 | ;; | |
38753 | esac | |
38754 | shift | |
38755 | done | |
38756 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
38757 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
38758 | if test -f \$depfile ; then |
38759 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
38760 | rm -f \$depfile | |
38761 | else | |
38762 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
38763 | if test -f \$depfile ; then | |
9d0be83a | 38764 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
38765 | rm -f \$depfile |
38766 | fi | |
38767 | fi | |
49b0a3aa VS |
38768 | exit 0 |
38769 | else | |
38770 | \${*} | |
38771 | exit \${?} | |
38772 | fi | |
38773 | EOF | |
38774 | chmod +x bk-deps | |
fe0895cf | 38775 | fi |
fe0895cf | 38776 | |
e6cc62c6 VS |
38777 | |
38778 | ||
38779 | ||
fe0895cf VS |
38780 | RESCOMP= |
38781 | SETFILE= | |
38782 | ||
f95e4495 | 38783 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
38784 | *-*-cygwin* | *-*-mingw32* ) |
38785 | if test "$build" != "$host" ; then | |
38786 | RESCOMP=$host_alias-windres | |
38787 | else | |
38788 | # Extract the first word of "windres", so it can be a program name with args. | |
38789 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
38790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38792 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
38793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38794 | else |
38795 | if test -n "$RESCOMP"; then | |
38796 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
38797 | else | |
e6cc62c6 VS |
38798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38799 | for as_dir in $PATH | |
38800 | do | |
38801 | IFS=$as_save_IFS | |
38802 | test -z "$as_dir" && as_dir=. | |
38803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38805 | ac_cv_prog_RESCOMP="windres" | |
38806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38807 | break 2 | |
38808 | fi | |
38809 | done | |
38810 | done | |
38811 | ||
fe0895cf VS |
38812 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
38813 | fi | |
38814 | fi | |
e6cc62c6 | 38815 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 38816 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
38817 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
38818 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 38819 | else |
e6cc62c6 VS |
38820 | echo "$as_me:$LINENO: result: no" >&5 |
38821 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38822 | fi |
38823 | ||
38824 | fi | |
38825 | ;; | |
e6cc62c6 | 38826 | |
fe0895cf VS |
38827 | *-*-darwin* ) |
38828 | # Extract the first word of "Rez", so it can be a program name with args. | |
38829 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
38830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38832 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
38833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38834 | else |
38835 | if test -n "$RESCOMP"; then | |
38836 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
38837 | else | |
e6cc62c6 VS |
38838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38839 | for as_dir in $PATH | |
38840 | do | |
38841 | IFS=$as_save_IFS | |
38842 | test -z "$as_dir" && as_dir=. | |
38843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38845 | ac_cv_prog_RESCOMP="Rez" | |
38846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38847 | break 2 | |
38848 | fi | |
38849 | done | |
38850 | done | |
38851 | ||
fe0895cf VS |
38852 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
38853 | fi | |
38854 | fi | |
e6cc62c6 | 38855 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 38856 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
38857 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
38858 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 38859 | else |
e6cc62c6 VS |
38860 | echo "$as_me:$LINENO: result: no" >&5 |
38861 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38862 | fi |
38863 | ||
38864 | # Extract the first word of "SetFile", so it can be a program name with args. | |
38865 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
38866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38868 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
38869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38870 | else |
38871 | if test -n "$SETFILE"; then | |
38872 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
38873 | else | |
e6cc62c6 VS |
38874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38875 | for as_dir in $PATH | |
38876 | do | |
38877 | IFS=$as_save_IFS | |
38878 | test -z "$as_dir" && as_dir=. | |
38879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38881 | ac_cv_prog_SETFILE="SetFile" | |
38882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38883 | break 2 | |
38884 | fi | |
38885 | done | |
38886 | done | |
38887 | ||
fe0895cf VS |
38888 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
38889 | fi | |
38890 | fi | |
e6cc62c6 | 38891 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 38892 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
38893 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
38894 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 38895 | else |
e6cc62c6 VS |
38896 | echo "$as_me:$LINENO: result: no" >&5 |
38897 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38898 | fi |
38899 | ||
38900 | ;; | |
38901 | esac | |
38902 | ||
fe0895cf VS |
38903 | |
38904 | ||
e6cc62c6 VS |
38905 | |
38906 | ||
38907 | ||
38908 | ||
45842500 | 38909 | |
45842500 VS |
38910 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
38911 | if test "${enable_precomp_headers+set}" = set; then | |
38912 | enableval="$enable_precomp_headers" | |
38913 | bk_use_pch="$enableval" | |
38914 | fi; | |
38915 | ||
38916 | GCC_PCH=0 | |
38917 | ||
38918 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
38919 | if test "x$GCC" = "xyes"; then | |
38920 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
38921 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
38922 | cat >conftest.$ac_ext <<_ACEOF | |
45842500 VS |
38923 | /* confdefs.h. */ |
38924 | _ACEOF | |
38925 | cat confdefs.h >>conftest.$ac_ext | |
38926 | cat >>conftest.$ac_ext <<_ACEOF | |
38927 | /* end confdefs.h. */ | |
38928 | ||
38929 | int | |
38930 | main () | |
38931 | { | |
38932 | ||
8bcf2d20 VS |
38933 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
38934 | #error "no pch support" | |
38935 | #endif | |
38936 | #if (__GNUC__ < 3) | |
38937 | #error "no pch support" | |
38938 | #endif | |
38939 | #if (__GNUC__ == 3) && \ | |
38940 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
38941 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
38942 | #error "no pch support" | |
45842500 VS |
38943 | #endif |
38944 | ||
38945 | ; | |
38946 | return 0; | |
38947 | } | |
38948 | _ACEOF | |
38949 | rm -f conftest.$ac_objext | |
38950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38951 | (eval $ac_compile) 2>conftest.er1 |
45842500 | 38952 | ac_status=$? |
32ddf007 VS |
38953 | grep -v '^ *+' conftest.er1 >conftest.err |
38954 | rm -f conftest.er1 | |
38955 | cat conftest.err >&5 | |
45842500 VS |
38956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38957 | (exit $ac_status); } && | |
e1293dcf | 38958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
32ddf007 VS |
38959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38960 | (eval $ac_try) 2>&5 | |
38961 | ac_status=$? | |
38962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38963 | (exit $ac_status); }; } && | |
38964 | { ac_try='test -s conftest.$ac_objext' | |
45842500 VS |
38965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38966 | (eval $ac_try) 2>&5 | |
38967 | ac_status=$? | |
38968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38969 | (exit $ac_status); }; }; then | |
38970 | ||
38971 | echo "$as_me:$LINENO: result: yes" >&5 | |
38972 | echo "${ECHO_T}yes" >&6 | |
38973 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
38974 | GCC_PCH=1 | |
38975 | ||
38976 | else | |
38977 | echo "$as_me: failed program was:" >&5 | |
38978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38979 | ||
38980 | ||
38981 | echo "$as_me:$LINENO: result: no" >&5 | |
38982 | echo "${ECHO_T}no" >&6 | |
38983 | ||
38984 | fi | |
32ddf007 | 38985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
38986 | if test $GCC_PCH = 1 ; then |
38987 | cat <<EOF >bk-make-pch | |
38988 | #!/bin/sh | |
38989 | ||
38990 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
38991 | # script. It is used to generated precompiled headers. | |
38992 | # | |
38993 | # Permission is given to use this file in any way. | |
38994 | ||
38995 | outfile="\${1}" | |
38996 | header="\${2}" | |
38997 | shift | |
38998 | shift | |
38999 | ||
39000 | compiler= | |
39001 | headerfile= | |
39002 | while test \${#} -gt 0; do | |
39003 | case "\${1}" in | |
39004 | -I* ) | |
39005 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39006 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39007 | headerfile="\${incdir}/\${header}" | |
39008 | fi | |
39009 | ;; | |
39010 | esac | |
39011 | compiler="\${compiler} \${1}" | |
39012 | shift | |
39013 | done | |
39014 | ||
39015 | if test "x\${headerfile}" = "x" ; then | |
39016 | echo "error: can't find header \${header} in include paths" >2 | |
39017 | else | |
39018 | if test -f \${outfile} ; then | |
39019 | rm -f \${outfile} | |
39020 | else | |
39021 | mkdir -p \`dirname \${outfile}\` | |
39022 | fi | |
39023 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39024 | mkdir -p .deps | |
39025 | # can do this because gcc is >= 3.4: | |
39026 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39027 | exit \${?} | |
39028 | fi | |
39029 | EOF | |
39030 | chmod +x bk-make-pch | |
39031 | fi | |
39032 | fi | |
39033 | fi | |
39034 | ||
39035 | ||
39036 | ||
39037 | ||
39038 | ||
d78c94f2 | 39039 | COND_BUILD_DEBUG="#" |
6f628073 | 39040 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 39041 | COND_BUILD_DEBUG="" |
6f628073 VS |
39042 | fi |
39043 | ||
6c67131a VS |
39044 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
39045 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39046 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39047 | fi | |
39048 | ||
39049 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39050 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39051 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39052 | fi | |
39053 | ||
f93ca9fd VS |
39054 | COND_BUILD_DEBUG_UNICODE_0="#" |
39055 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39056 | COND_BUILD_DEBUG_UNICODE_0="" | |
39057 | fi | |
39058 | ||
39059 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39060 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39061 | COND_BUILD_DEBUG_UNICODE_1="" | |
39062 | fi | |
39063 | ||
d78c94f2 | 39064 | COND_BUILD_RELEASE="#" |
6f628073 | 39065 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 39066 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
39067 | fi |
39068 | ||
6c67131a VS |
39069 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
39070 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39071 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39072 | fi | |
39073 | ||
f93ca9fd VS |
39074 | COND_BUILD_RELEASE_UNICODE_0="#" |
39075 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39076 | COND_BUILD_RELEASE_UNICODE_0="" | |
39077 | fi | |
39078 | ||
39079 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39080 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39081 | COND_BUILD_RELEASE_UNICODE_1="" | |
39082 | fi | |
39083 | ||
6c67131a VS |
39084 | COND_DEBUG_FLAG_1="#" |
39085 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39086 | COND_DEBUG_FLAG_1="" | |
39087 | fi | |
39088 | ||
39089 | COND_DEBUG_INFO_0="#" | |
39090 | if test "x$DEBUG_INFO" = "x0" ; then | |
39091 | COND_DEBUG_INFO_0="" | |
39092 | fi | |
39093 | ||
39094 | COND_DEBUG_INFO_1="#" | |
39095 | if test "x$DEBUG_INFO" = "x1" ; then | |
39096 | COND_DEBUG_INFO_1="" | |
39097 | fi | |
39098 | ||
f95cd8fa VS |
39099 | COND_DEPS_TRACKING_0="#" |
39100 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39101 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
39102 | fi |
39103 | ||
8ee2dd05 VS |
39104 | COND_DEPS_TRACKING_1="#" |
39105 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39106 | COND_DEPS_TRACKING_1="" | |
39107 | fi | |
39108 | ||
45842500 VS |
39109 | COND_GCC_PCH_1="#" |
39110 | if test "x$GCC_PCH" = "x1" ; then | |
39111 | COND_GCC_PCH_1="" | |
39112 | fi | |
39113 | ||
6f628073 VS |
39114 | COND_MONOLITHIC_0="#" |
39115 | if test "x$MONOLITHIC" = "x0" ; then | |
39116 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
39117 | fi |
39118 | ||
6f628073 VS |
39119 | COND_MONOLITHIC_0_SHARED_0="#" |
39120 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39121 | COND_MONOLITHIC_0_SHARED_0="" | |
39122 | fi | |
39123 | ||
39124 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39125 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39126 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 39127 | fi |
e6cc62c6 | 39128 | |
8772a1a7 VS |
39129 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
39130 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39131 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39132 | fi | |
39133 | ||
250700e4 RD |
39134 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
39135 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39136 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39137 | fi | |
39138 | ||
eb69fda5 VS |
39139 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
39140 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39141 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39142 | fi | |
39143 | ||
8ee2dd05 VS |
39144 | COND_MONOLITHIC_0_SHARED_1="#" |
39145 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39146 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 39147 | fi |
e6cc62c6 | 39148 | |
6f628073 VS |
39149 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
39150 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39151 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39152 | fi | |
39153 | ||
8772a1a7 VS |
39154 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
39155 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39156 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39157 | fi | |
39158 | ||
250700e4 RD |
39159 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
39160 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39161 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39162 | fi | |
39163 | ||
eb69fda5 VS |
39164 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
39165 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39166 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39167 | fi | |
39168 | ||
f95e4495 VS |
39169 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
39170 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39171 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39172 | fi | |
39173 | ||
3af038c0 VS |
39174 | COND_MONOLITHIC_1="#" |
39175 | if test "x$MONOLITHIC" = "x1" ; then | |
39176 | COND_MONOLITHIC_1="" | |
39177 | fi | |
39178 | ||
6f628073 VS |
39179 | COND_MONOLITHIC_1_SHARED_0="#" |
39180 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39181 | COND_MONOLITHIC_1_SHARED_0="" | |
39182 | fi | |
39183 | ||
39184 | COND_MONOLITHIC_1_SHARED_1="#" | |
39185 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39186 | COND_MONOLITHIC_1_SHARED_1="" | |
39187 | fi | |
39188 | ||
3af038c0 VS |
39189 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
39190 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39191 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39192 | fi | |
39193 | ||
39194 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39195 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39196 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39197 | fi | |
39198 | ||
6f628073 VS |
39199 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
39200 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39201 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39202 | fi | |
39203 | ||
3af038c0 VS |
39204 | COND_PLATFORM_MACOSX_1="#" |
39205 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39206 | COND_PLATFORM_MACOSX_1="" | |
39207 | fi | |
39208 | ||
250700e4 RD |
39209 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
39210 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39211 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39212 | fi | |
39213 | ||
39214 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39215 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39216 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39217 | fi | |
39218 | ||
39219 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39220 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39221 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39222 | fi | |
39223 | ||
3527f29c VS |
39224 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39225 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39226 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39227 | fi | |
39228 | ||
8ee2dd05 VS |
39229 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
39230 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39231 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39232 | fi | |
39233 | ||
45842500 VS |
39234 | COND_PLATFORM_MAC_1="#" |
39235 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39236 | COND_PLATFORM_MAC_1="" | |
39237 | fi | |
39238 | ||
3d8c1de0 VS |
39239 | COND_PLATFORM_OS2_1="#" |
39240 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39241 | COND_PLATFORM_OS2_1="" | |
39242 | fi | |
39243 | ||
8772a1a7 VS |
39244 | COND_PLATFORM_UNIX_0="#" |
39245 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39246 | COND_PLATFORM_UNIX_0="" | |
39247 | fi | |
39248 | ||
3af038c0 VS |
39249 | COND_PLATFORM_UNIX_1="#" |
39250 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39251 | COND_PLATFORM_UNIX_1="" | |
39252 | fi | |
39253 | ||
3527f29c VS |
39254 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
39255 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39256 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39257 | fi | |
39258 | ||
f93ca9fd VS |
39259 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" |
39260 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39261 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39262 | fi | |
39263 | ||
3af038c0 VS |
39264 | COND_PLATFORM_WIN32_0="#" |
39265 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39266 | COND_PLATFORM_WIN32_0="" | |
39267 | fi | |
39268 | ||
39269 | COND_PLATFORM_WIN32_1="#" | |
39270 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39271 | COND_PLATFORM_WIN32_1="" | |
39272 | fi | |
39273 | ||
45842500 VS |
39274 | COND_SHARED_0="#" |
39275 | if test "x$SHARED" = "x0" ; then | |
39276 | COND_SHARED_0="" | |
39277 | fi | |
39278 | ||
250700e4 RD |
39279 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
39280 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39281 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39282 | fi | |
39283 | ||
52a5a009 VS |
39284 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39285 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39286 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39287 | fi | |
39288 | ||
39289 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39290 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39291 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39292 | fi | |
39293 | ||
39294 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39295 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39296 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39297 | fi | |
39298 | ||
39299 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
39300 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39301 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
39302 | fi | |
39303 | ||
39304 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
39305 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39306 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
39307 | fi | |
39308 | ||
39309 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
39310 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39311 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
39312 | fi | |
39313 | ||
39314 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
39315 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39316 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
39317 | fi | |
39318 | ||
45842500 VS |
39319 | COND_SHARED_1="#" |
39320 | if test "x$SHARED" = "x1" ; then | |
39321 | COND_SHARED_1="" | |
39322 | fi | |
39323 | ||
250700e4 RD |
39324 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
39325 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39326 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
39327 | fi | |
39328 | ||
6f628073 VS |
39329 | COND_TOOLKIT_COCOA="#" |
39330 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
39331 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
39332 | fi |
39333 | ||
6f628073 VS |
39334 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
39335 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39336 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39337 | fi |
39338 | ||
6f628073 VS |
39339 | COND_TOOLKIT_GTK="#" |
39340 | if test "x$TOOLKIT" = "xGTK" ; then | |
39341 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
39342 | fi |
39343 | ||
6f628073 VS |
39344 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
39345 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
39346 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
39347 | fi |
39348 | ||
6f628073 VS |
39349 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
39350 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39351 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39352 | fi |
39353 | ||
3af038c0 VS |
39354 | COND_TOOLKIT_MAC="#" |
39355 | if test "x$TOOLKIT" = "xMAC" ; then | |
39356 | COND_TOOLKIT_MAC="" | |
39357 | fi | |
39358 | ||
8772a1a7 VS |
39359 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
39360 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
39361 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
39362 | fi | |
39363 | ||
6f628073 VS |
39364 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
39365 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39366 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39367 | fi |
39368 | ||
6f628073 VS |
39369 | COND_TOOLKIT_MGL="#" |
39370 | if test "x$TOOLKIT" = "xMGL" ; then | |
39371 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
39372 | fi |
39373 | ||
6f628073 VS |
39374 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
39375 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
39376 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
39377 | fi |
39378 | ||
6f628073 VS |
39379 | COND_TOOLKIT_MOTIF="#" |
39380 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
39381 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
39382 | fi |
39383 | ||
6f628073 VS |
39384 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
39385 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
39386 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 39387 | fi |
e6cc62c6 | 39388 | |
6f628073 VS |
39389 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
39390 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39391 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39392 | fi |
39393 | ||
6f628073 VS |
39394 | COND_TOOLKIT_MSW="#" |
39395 | if test "x$TOOLKIT" = "xMSW" ; then | |
39396 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
39397 | fi |
39398 | ||
6f628073 VS |
39399 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
39400 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
39401 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 39402 | fi |
e6cc62c6 | 39403 | |
6f628073 VS |
39404 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
39405 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39406 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39407 | fi |
e6cc62c6 | 39408 | |
96c1699d VS |
39409 | COND_TOOLKIT_PM="#" |
39410 | if test "x$TOOLKIT" = "xPM" ; then | |
39411 | COND_TOOLKIT_PM="" | |
39412 | fi | |
39413 | ||
39414 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
39415 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
39416 | COND_TOOLKIT_PM_USE_GUI_1="" | |
39417 | fi | |
39418 | ||
39419 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
39420 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39421 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
39422 | fi | |
39423 | ||
6f628073 VS |
39424 | COND_TOOLKIT_X11="#" |
39425 | if test "x$TOOLKIT" = "xX11" ; then | |
39426 | COND_TOOLKIT_X11="" | |
9747f85d VS |
39427 | fi |
39428 | ||
6f628073 VS |
39429 | COND_TOOLKIT_X11_USE_GUI_1="#" |
39430 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
39431 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
39432 | fi |
39433 | ||
3af038c0 VS |
39434 | COND_UNICODE_1="#" |
39435 | if test "x$UNICODE" = "x1" ; then | |
39436 | COND_UNICODE_1="" | |
39437 | fi | |
39438 | ||
7015ef3a VZ |
39439 | COND_USE_EXCEPTIONS_0="#" |
39440 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
39441 | COND_USE_EXCEPTIONS_0="" | |
39442 | fi | |
39443 | ||
39444 | COND_USE_EXCEPTIONS_1="#" | |
39445 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
39446 | COND_USE_EXCEPTIONS_1="" | |
39447 | fi | |
39448 | ||
3af038c0 VS |
39449 | COND_USE_GUI_0="#" |
39450 | if test "x$USE_GUI" = "x0" ; then | |
39451 | COND_USE_GUI_0="" | |
39452 | fi | |
39453 | ||
39454 | COND_USE_GUI_1="#" | |
39455 | if test "x$USE_GUI" = "x1" ; then | |
39456 | COND_USE_GUI_1="" | |
39457 | fi | |
39458 | ||
e6cc62c6 | 39459 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
39460 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
39461 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39462 | fi |
e6cc62c6 VS |
39463 | |
39464 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
39465 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
39466 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
39467 | fi |
39468 | ||
66a96744 VS |
39469 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39470 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39471 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39472 | fi | |
39473 | ||
39474 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39475 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39476 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39477 | fi | |
39478 | ||
39479 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39480 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39481 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39482 | fi | |
39483 | ||
57e7d4ac VS |
39484 | COND_USE_ODBC_1="#" |
39485 | if test "x$USE_ODBC" = "x1" ; then | |
39486 | COND_USE_ODBC_1="" | |
39487 | fi | |
39488 | ||
f93ca9fd VS |
39489 | COND_USE_PLUGINS_0="#" |
39490 | if test "x$USE_PLUGINS" = "x0" ; then | |
39491 | COND_USE_PLUGINS_0="" | |
39492 | fi | |
39493 | ||
6f628073 VS |
39494 | COND_USE_SOSYMLINKS_1="#" |
39495 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
39496 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
39497 | fi |
39498 | ||
6f628073 VS |
39499 | COND_USE_SOVERLINUX_1="#" |
39500 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
39501 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
39502 | fi |
39503 | ||
6f628073 VS |
39504 | COND_USE_SOVERSION_0="#" |
39505 | if test "x$USE_SOVERSION" = "x0" ; then | |
39506 | COND_USE_SOVERSION_0="" | |
fddeb06b | 39507 | fi |
fe0895cf | 39508 | |
6f628073 VS |
39509 | COND_USE_SOVERSOLARIS_1="#" |
39510 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
39511 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 39512 | fi |
fe0895cf | 39513 | |
f93ca9fd VS |
39514 | COND_WITH_PLUGIN_SDL_1="#" |
39515 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
39516 | COND_WITH_PLUGIN_SDL_1="" | |
39517 | fi | |
39518 | ||
39519 | COND_WITH_SDL_1="#" | |
39520 | if test "x$WITH_SDL" = "x1" ; then | |
39521 | COND_WITH_SDL_1="" | |
39522 | fi | |
39523 | ||
3af038c0 VS |
39524 | COND_WXUNIV_1="#" |
39525 | if test "x$WXUNIV" = "x1" ; then | |
39526 | COND_WXUNIV_1="" | |
39527 | fi | |
39528 | ||
66a96744 VS |
39529 | COND_WXUSE_EXPAT_BUILTIN="#" |
39530 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39531 | COND_WXUSE_EXPAT_BUILTIN="" | |
39532 | fi | |
39533 | ||
02980527 VS |
39534 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
39535 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39536 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
39537 | fi | |
39538 | ||
39539 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
39540 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39541 | COND_WXUSE_LIBPNG_BUILTIN="" | |
39542 | fi | |
39543 | ||
39544 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
39545 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39546 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
39547 | fi | |
39548 | ||
39549 | COND_WXUSE_ODBC_BUILTIN="#" | |
39550 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39551 | COND_WXUSE_ODBC_BUILTIN="" | |
39552 | fi | |
39553 | ||
39554 | COND_WXUSE_REGEX_BUILTIN="#" | |
39555 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39556 | COND_WXUSE_REGEX_BUILTIN="" | |
39557 | fi | |
39558 | ||
39559 | COND_WXUSE_ZLIB_BUILTIN="#" | |
39560 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39561 | COND_WXUSE_ZLIB_BUILTIN="" | |
39562 | fi | |
39563 | ||
1772d20c | 39564 | |
fe0895cf | 39565 | |
fe0895cf | 39566 | |
fe0895cf | 39567 | |
45842500 | 39568 | if test $GCC_PCH = 1 ; then |
130711ba | 39569 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
39570 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
39571 | else | |
39572 | case "${host}" in | |
39573 | powerpc-*-darwin* ) | |
130711ba VS |
39574 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
39575 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 39576 | ;; |
45842500 VS |
39577 | esac |
39578 | fi | |
fe0895cf VS |
39579 | |
39580 | ||
fddeb06b | 39581 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
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 | ||
39672 | ||
39673 | ||
39674 | ||
39675 | ||
fe0895cf | 39676 | |
f0290fca VS |
39677 | |
39678 | ||
243f8ae5 | 39679 | |
e6cc62c6 VS |
39680 | |
39681 | ||
39682 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39683 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 39684 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
39685 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39687 | else | |
39688 | cat >conftest.make <<\_ACEOF | |
39689 | all: | |
39690 | @echo 'ac_maketemp="$(MAKE)"' | |
39691 | _ACEOF | |
39692 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39693 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39694 | if test -n "$ac_maketemp"; then | |
39695 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39696 | else | |
39697 | eval ac_cv_prog_make_${ac_make}_set=no | |
39698 | fi | |
39699 | rm -f conftest.make | |
39700 | fi | |
39701 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39702 | echo "$as_me:$LINENO: result: yes" >&5 | |
39703 | echo "${ECHO_T}yes" >&6 | |
39704 | SET_MAKE= | |
39705 | else | |
39706 | echo "$as_me:$LINENO: result: no" >&5 | |
39707 | echo "${ECHO_T}no" >&6 | |
39708 | SET_MAKE="MAKE=${MAKE-make}" | |
39709 | fi | |
39710 | ||
39711 | ||
39712 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
39713 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
39714 | fi | |
39715 | ||
39716 | ac_config_headers="$ac_config_headers setup.h" | |
39717 | ||
39718 | ||
81345eef | 39719 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
39720 | |
39721 | ||
39722 | ac_config_commands="$ac_config_commands default" | |
39723 | ||
39724 | ||
9de9b8f0 | 39725 | |
6c3e36af VZ |
39726 | if test "$wxUSE_GUI" = "yes"; then |
39727 | SUBDIRS="samples demos utils contrib" | |
39728 | else SUBDIRS="samples utils" | |
39729 | fi | |
e6cc62c6 | 39730 | |
670ec357 VS |
39731 | |
39732 | ||
39733 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
39734 | if test "${with_cppunit_prefix+set}" = set; then | |
39735 | withval="$with_cppunit_prefix" | |
39736 | cppunit_config_prefix="$withval" | |
39737 | else | |
39738 | cppunit_config_prefix="" | |
39739 | fi; | |
39740 | ||
39741 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
39742 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
39743 | withval="$with_cppunit_exec_prefix" | |
39744 | cppunit_config_exec_prefix="$withval" | |
39745 | else | |
39746 | cppunit_config_exec_prefix="" | |
39747 | fi; | |
39748 | ||
39749 | if test x$cppunit_config_exec_prefix != x ; then | |
39750 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
39751 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
39752 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
39753 | fi | |
39754 | fi | |
39755 | if test x$cppunit_config_prefix != x ; then | |
39756 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
39757 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
39758 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
39759 | fi | |
39760 | fi | |
39761 | ||
39762 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
39763 | set dummy cppunit-config; ac_word=$2 | |
39764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39766 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
39767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39768 | else | |
39769 | case $CPPUNIT_CONFIG in | |
39770 | [\\/]* | ?:[\\/]*) | |
39771 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
39772 | ;; | |
39773 | *) | |
39774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39775 | for as_dir in $PATH | |
39776 | do | |
39777 | IFS=$as_save_IFS | |
39778 | test -z "$as_dir" && as_dir=. | |
39779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39780 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39781 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39783 | break 2 | |
39784 | fi | |
39785 | done | |
39786 | done | |
39787 | ||
39788 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
39789 | ;; | |
39790 | esac | |
39791 | fi | |
39792 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
39793 | ||
39794 | if test -n "$CPPUNIT_CONFIG"; then | |
39795 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
39796 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
39797 | else | |
39798 | echo "$as_me:$LINENO: result: no" >&5 | |
39799 | echo "${ECHO_T}no" >&6 | |
39800 | fi | |
39801 | ||
39802 | cppunit_version_min=1.8.0 | |
39803 | ||
39804 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
39805 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
39806 | no_cppunit="" | |
39807 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
39808 | no_cppunit=yes | |
39809 | else | |
39810 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
39811 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
39812 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
39813 | ||
39814 | cppunit_major_version=`echo $cppunit_version | \ | |
39815 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
39816 | cppunit_minor_version=`echo $cppunit_version | \ | |
39817 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
39818 | cppunit_micro_version=`echo $cppunit_version | \ | |
39819 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
39820 | ||
39821 | cppunit_major_min=`echo $cppunit_version_min | \ | |
39822 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
39823 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
39824 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
39825 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
39826 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
39827 | ||
39828 | cppunit_version_proper=`expr \ | |
39829 | $cppunit_major_version \> $cppunit_major_min \| \ | |
39830 | $cppunit_major_version \= $cppunit_major_min \& \ | |
39831 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
39832 | $cppunit_major_version \= $cppunit_major_min \& \ | |
39833 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
39834 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
39835 | ||
39836 | if test "$cppunit_version_proper" = "1" ; then | |
39837 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
39838 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
39839 | else | |
39840 | echo "$as_me:$LINENO: result: no" >&5 | |
39841 | echo "${ECHO_T}no" >&6 | |
39842 | no_cppunit=yes | |
39843 | fi | |
39844 | fi | |
39845 | ||
39846 | if test "x$no_cppunit" = x ; then | |
39847 | SUBDIRS="$SUBDIRS tests" | |
39848 | else | |
39849 | CPPUNIT_CFLAGS="" | |
39850 | CPPUNIT_LIBS="" | |
39851 | : | |
39852 | fi | |
39853 | ||
39854 | ||
39855 | ||
39856 | ||
39857 | ||
166263e6 | 39858 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 39859 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 39860 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 39861 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
39862 | makefiles="samples/Makefile.in $makefiles" |
39863 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
39864 | if test -d $srcdir/samples/$sample; then |
39865 | makefiles="samples/$sample/Makefile.in $makefiles" | |
39866 | fi | |
39867 | done | |
39868 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
39869 | fi | |
6c3e36af | 39870 | else if test ${subdir} = "samples"; then |
8772a1a7 | 39871 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
670ec357 VS |
39872 | elif test ${subdir} = "utils"; then |
39873 | makefiles="utils/HelpGen/Makefile.in \ | |
2bf8cafb VS |
39874 | utils/HelpGen/src/Makefile.in \ |
39875 | utils/tex2rtf/Makefile.in \ | |
39876 | utils/tex2rtf/src/Makefile.in" | |
670ec357 | 39877 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
6c3e36af VZ |
39878 | fi |
39879 | fi | |
39880 | ||
9747f85d VS |
39881 | for mkin in $makefiles ; do |
39882 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
39883 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 39884 | |
9747f85d VS |
39885 | done |
39886 | fi | |
39887 | done | |
e6cc62c6 | 39888 | |
9de9b8f0 | 39889 | |
e6cc62c6 VS |
39890 | cat >confcache <<\_ACEOF |
39891 | # This file is a shell script that caches the results of configure | |
39892 | # tests run on this system so they can be shared between configure | |
39893 | # scripts and configure runs, see configure's option --config-cache. | |
39894 | # It is not useful on other systems. If it contains results you don't | |
39895 | # want to keep, you may remove or edit it. | |
39896 | # | |
39897 | # config.status only pays attention to the cache file if you give it | |
39898 | # the --recheck option to rerun configure. | |
39899 | # | |
39900 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
39901 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
39902 | # following values. | |
39903 | ||
39904 | _ACEOF | |
39905 | ||
39906 | # The following way of writing the cache mishandles newlines in values, | |
39907 | # but we know of no workaround that is simple, portable, and efficient. | |
39908 | # So, don't put newlines in cache variables' values. | |
39909 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
39910 | # and sets the high bit in the cache file unless we assign to the vars. | |
39911 | { | |
39912 | (set) 2>&1 | | |
39913 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
39914 | *ac_space=\ *) | |
39915 | # `set' does not quote correctly, so add quotes (double-quote | |
39916 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
39917 | sed -n \ | |
32ddf007 VS |
39918 | "s/'/'\\\\''/g; |
39919 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
39920 | ;; |
39921 | *) | |
39922 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
39923 | sed -n \ | |
32ddf007 | 39924 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
39925 | ;; |
39926 | esac; | |
39927 | } | | |
39928 | sed ' | |
39929 | t clear | |
39930 | : clear | |
39931 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
39932 | t end | |
39933 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
39934 | : end' >>confcache | |
39935 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
39936 | if test -w $cache_file; then | |
39937 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
39938 | cat confcache >$cache_file | |
39939 | else | |
39940 | echo "not updating unwritable cache $cache_file" | |
39941 | fi | |
39942 | fi | |
39943 | rm -f confcache | |
39944 | ||
39945 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
39946 | # Let make expand exec_prefix. | |
39947 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
39948 | ||
39949 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
39950 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
39951 | # trailing colons and then remove the whole line if VPATH becomes empty | |
39952 | # (actually we leave an empty line to preserve line numbers). | |
39953 | if test "x$srcdir" = x.; then | |
32ddf007 | 39954 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
39955 | s/:*\$(srcdir):*/:/; |
39956 | s/:*\${srcdir}:*/:/; | |
39957 | s/:*@srcdir@:*/:/; | |
32ddf007 | 39958 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 39959 | s/:*$//; |
32ddf007 | 39960 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
39961 | }' |
39962 | fi | |
39963 | ||
39964 | DEFS=-DHAVE_CONFIG_H | |
39965 | ||
39966 | ac_libobjs= | |
39967 | ac_ltlibobjs= | |
39968 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
39969 | # 1. Remove the extension, and $U if already installed. | |
39970 | ac_i=`echo "$ac_i" | | |
32ddf007 | 39971 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
39972 | # 2. Add them. |
39973 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
39974 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
39975 | done | |
39976 | LIBOBJS=$ac_libobjs | |
39977 | ||
39978 | LTLIBOBJS=$ac_ltlibobjs | |
39979 | ||
39980 | ||
39981 | ||
39982 | : ${CONFIG_STATUS=./config.status} | |
39983 | ac_clean_files_save=$ac_clean_files | |
39984 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
39985 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
39986 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
39987 | cat >$CONFIG_STATUS <<_ACEOF | |
39988 | #! $SHELL | |
39989 | # Generated by $as_me. | |
39990 | # Run this file to recreate the current configuration. | |
39991 | # Compiler output produced by configure, useful for debugging | |
39992 | # configure, is in config.log if it exists. | |
39993 | ||
39994 | debug=false | |
39995 | ac_cs_recheck=false | |
39996 | ac_cs_silent=false | |
39997 | SHELL=\${CONFIG_SHELL-$SHELL} | |
39998 | _ACEOF | |
39999 | ||
40000 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40001 | ## --------------------- ## | |
40002 | ## M4sh Initialization. ## | |
40003 | ## --------------------- ## | |
40004 | ||
40005 | # Be Bourne compatible | |
40006 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
40007 | emulate sh | |
40008 | NULLCMD=: | |
40009 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
40010 | # is contrary to our usage. Disable this feature. | |
40011 | alias -g '${1+"$@"}'='"$@"' | |
40012 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
40013 | set -o posix | |
40014 | fi | |
32ddf007 | 40015 | DUALCASE=1; export DUALCASE # for MKS sh |
e6cc62c6 VS |
40016 | |
40017 | # Support unset when possible. | |
32ddf007 | 40018 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
40019 | as_unset=unset |
40020 | else | |
40021 | as_unset=false | |
40022 | fi | |
40023 | ||
40024 | ||
40025 | # Work around bugs in pre-3.0 UWIN ksh. | |
40026 | $as_unset ENV MAIL MAILPATH | |
40027 | PS1='$ ' | |
40028 | PS2='> ' | |
40029 | PS4='+ ' | |
40030 | ||
40031 | # NLS nuisances. | |
40032 | for as_var in \ | |
40033 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
40034 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
40035 | LC_TELEPHONE LC_TIME | |
40036 | do | |
32ddf007 | 40037 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
40038 | eval $as_var=C; export $as_var |
40039 | else | |
40040 | $as_unset $as_var | |
40041 | fi | |
40042 | done | |
40043 | ||
40044 | # Required to use basename. | |
40045 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
40046 | as_expr=expr | |
40047 | else | |
40048 | as_expr=false | |
40049 | fi | |
40050 | ||
40051 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
40052 | as_basename=basename | |
40053 | else | |
40054 | as_basename=false | |
40055 | fi | |
40056 | ||
40057 | ||
40058 | # Name of the executable. | |
40059 | as_me=`$as_basename "$0" || | |
40060 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
40061 | X"$0" : 'X\(//\)$' \| \ | |
40062 | X"$0" : 'X\(/\)$' \| \ | |
40063 | . : '\(.\)' 2>/dev/null || | |
40064 | echo X/"$0" | | |
40065 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
40066 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
40067 | /^X\/\(\/\).*/{ s//\1/; q; } | |
40068 | s/.*/./; q'` | |
40069 | ||
40070 | ||
40071 | # PATH needs CR, and LINENO needs CR and PATH. | |
40072 | # Avoid depending upon Character Ranges. | |
40073 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
40074 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
40075 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40076 | as_cr_digits='0123456789' | |
40077 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
40078 | ||
40079 | # The user is always right. | |
40080 | if test "${PATH_SEPARATOR+set}" != set; then | |
40081 | echo "#! /bin/sh" >conf$$.sh | |
40082 | echo "exit 0" >>conf$$.sh | |
40083 | chmod +x conf$$.sh | |
40084 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
40085 | PATH_SEPARATOR=';' | |
40086 | else | |
40087 | PATH_SEPARATOR=: | |
40088 | fi | |
40089 | rm -f conf$$.sh | |
40090 | fi | |
40091 | ||
40092 | ||
40093 | as_lineno_1=$LINENO | |
40094 | as_lineno_2=$LINENO | |
40095 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
40096 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
40097 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
40098 | # Find who we are. Look in the path if we contain no path at all | |
40099 | # relative or not. | |
40100 | case $0 in | |
40101 | *[\\/]* ) as_myself=$0 ;; | |
40102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40103 | for as_dir in $PATH | |
40104 | do | |
40105 | IFS=$as_save_IFS | |
40106 | test -z "$as_dir" && as_dir=. | |
40107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
40108 | done | |
40109 | ||
40110 | ;; | |
40111 | esac | |
40112 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
40113 | # in which case we are not to be found in the path. | |
40114 | if test "x$as_myself" = x; then | |
40115 | as_myself=$0 | |
40116 | fi | |
40117 | if test ! -f "$as_myself"; then | |
40118 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
40119 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
40120 | { (exit 1); exit 1; }; } | |
40121 | fi | |
40122 | case $CONFIG_SHELL in | |
40123 | '') | |
40124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40125 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
40126 | do | |
40127 | IFS=$as_save_IFS | |
40128 | test -z "$as_dir" && as_dir=. | |
40129 | for as_base in sh bash ksh sh5; do | |
40130 | case $as_dir in | |
40131 | /*) | |
40132 | if ("$as_dir/$as_base" -c ' | |
40133 | as_lineno_1=$LINENO | |
40134 | as_lineno_2=$LINENO | |
40135 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
40136 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
40137 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
40138 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
40139 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
40140 | CONFIG_SHELL=$as_dir/$as_base | |
40141 | export CONFIG_SHELL | |
40142 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
40143 | fi;; | |
40144 | esac | |
40145 | done | |
40146 | done | |
40147 | ;; | |
40148 | esac | |
40149 | ||
40150 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
40151 | # uniformly replaced by the line number. The first 'sed' inserts a | |
40152 | # line-number line before each line; the second 'sed' does the real | |
40153 | # work. The second script uses 'N' to pair each line-number line | |
40154 | # with the numbered line, and appends trailing '-' during | |
40155 | # substitution so that $LINENO is not a special case at line end. | |
40156 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
40157 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
40158 | sed '=' <$as_myself | | |
40159 | sed ' | |
40160 | N | |
40161 | s,$,-, | |
40162 | : loop | |
40163 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
40164 | t loop | |
40165 | s,-$,, | |
40166 | s,^['$as_cr_digits']*\n,, | |
40167 | ' >$as_me.lineno && | |
40168 | chmod +x $as_me.lineno || | |
40169 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
40170 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
40171 | { (exit 1); exit 1; }; } | |
40172 | ||
40173 | # Don't try to exec as it changes $[0], causing all sort of problems | |
40174 | # (the dirname of $[0] is not the place where we might find the | |
40175 | # original and so on. Autoconf is especially sensible to this). | |
40176 | . ./$as_me.lineno | |
40177 | # Exit status is that of the last command. | |
40178 | exit | |
40179 | } | |
40180 | ||
40181 | ||
40182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
40183 | *c*,-n*) ECHO_N= ECHO_C=' | |
40184 | ' ECHO_T=' ' ;; | |
40185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
40186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
40187 | esac | |
40188 | ||
40189 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
40190 | as_expr=expr | |
40191 | else | |
40192 | as_expr=false | |
40193 | fi | |
40194 | ||
40195 | rm -f conf$$ conf$$.exe conf$$.file | |
40196 | echo >conf$$.file | |
40197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
40198 | # We could just check for DJGPP; but this test a) works b) is more generic | |
40199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
40200 | if test -f conf$$.exe; then | |
40201 | # Don't use ln at all; we don't have any links | |
40202 | as_ln_s='cp -p' | |
40203 | else | |
40204 | as_ln_s='ln -s' | |
40205 | fi | |
40206 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
40207 | as_ln_s=ln | |
40208 | else | |
40209 | as_ln_s='cp -p' | |
40210 | fi | |
40211 | rm -f conf$$ conf$$.exe conf$$.file | |
40212 | ||
40213 | if mkdir -p . 2>/dev/null; then | |
40214 | as_mkdir_p=: | |
40215 | else | |
32ddf007 | 40216 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
40217 | as_mkdir_p=false |
40218 | fi | |
40219 | ||
40220 | as_executable_p="test -f" | |
40221 | ||
40222 | # Sed expression to map a string onto a valid CPP name. | |
32ddf007 | 40223 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40224 | |
40225 | # Sed expression to map a string onto a valid variable name. | |
32ddf007 | 40226 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40227 | |
40228 | ||
40229 | # IFS | |
40230 | # We need space, tab and new line, in precisely that order. | |
40231 | as_nl=' | |
40232 | ' | |
40233 | IFS=" $as_nl" | |
40234 | ||
40235 | # CDPATH. | |
40236 | $as_unset CDPATH | |
40237 | ||
40238 | exec 6>&1 | |
40239 | ||
40240 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
40241 | # report actual input values of CONFIG_FILES etc. instead of their | |
40242 | # values after options handling. Logging --version etc. is OK. | |
40243 | exec 5>>config.log | |
40244 | { | |
40245 | echo | |
40246 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
40247 | ## Running $as_me. ## | |
40248 | _ASBOX | |
40249 | } >&5 | |
40250 | cat >&5 <<_CSEOF | |
40251 | ||
e46d2a18 | 40252 | This file was extended by wxWindows $as_me 2.5.1, which was |
32ddf007 | 40253 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
40254 | |
40255 | CONFIG_FILES = $CONFIG_FILES | |
40256 | CONFIG_HEADERS = $CONFIG_HEADERS | |
40257 | CONFIG_LINKS = $CONFIG_LINKS | |
40258 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
40259 | $ $0 $@ | |
40260 | ||
40261 | _CSEOF | |
40262 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
40263 | echo >&5 | |
40264 | _ACEOF | |
40265 | ||
40266 | # Files that config.status was made for. | |
40267 | if test -n "$ac_config_files"; then | |
40268 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
40269 | fi | |
40270 | ||
40271 | if test -n "$ac_config_headers"; then | |
40272 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
40273 | fi | |
40274 | ||
40275 | if test -n "$ac_config_links"; then | |
40276 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
40277 | fi | |
40278 | ||
40279 | if test -n "$ac_config_commands"; then | |
40280 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
40281 | fi | |
40282 | ||
40283 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40284 | ||
40285 | ac_cs_usage="\ | |
40286 | \`$as_me' instantiates files from templates according to the | |
40287 | current configuration. | |
40288 | ||
40289 | Usage: $0 [OPTIONS] [FILE]... | |
40290 | ||
40291 | -h, --help print this help, then exit | |
40292 | -V, --version print version number, then exit | |
40293 | -q, --quiet do not print progress messages | |
40294 | -d, --debug don't remove temporary files | |
40295 | --recheck update $as_me by reconfiguring in the same conditions | |
40296 | --file=FILE[:TEMPLATE] | |
32ddf007 | 40297 | instantiate the configuration file FILE |
e6cc62c6 | 40298 | --header=FILE[:TEMPLATE] |
32ddf007 | 40299 | instantiate the configuration header FILE |
e6cc62c6 VS |
40300 | |
40301 | Configuration files: | |
40302 | $config_files | |
40303 | ||
40304 | Configuration headers: | |
40305 | $config_headers | |
40306 | ||
40307 | Configuration commands: | |
40308 | $config_commands | |
40309 | ||
40310 | Report bugs to <bug-autoconf@gnu.org>." | |
40311 | _ACEOF | |
40312 | ||
40313 | cat >>$CONFIG_STATUS <<_ACEOF | |
40314 | ac_cs_version="\\ | |
e46d2a18 | 40315 | wxWindows config.status 2.5.1 |
32ddf007 | 40316 | configured by $0, generated by GNU Autoconf 2.59, |
e6cc62c6 VS |
40317 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
40318 | ||
32ddf007 | 40319 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
40320 | This config.status script is free software; the Free Software Foundation |
40321 | gives unlimited permission to copy, distribute and modify it." | |
40322 | srcdir=$srcdir | |
40323 | INSTALL="$INSTALL" | |
40324 | _ACEOF | |
40325 | ||
40326 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40327 | # If no file are specified by the user, then we need to provide default | |
40328 | # value. By we need to know if files were specified by the user. | |
40329 | ac_need_defaults=: | |
40330 | while test $# != 0 | |
40331 | do | |
40332 | case $1 in | |
40333 | --*=*) | |
40334 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
40335 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
40336 | ac_shift=: | |
40337 | ;; | |
40338 | -*) | |
40339 | ac_option=$1 | |
40340 | ac_optarg=$2 | |
40341 | ac_shift=shift | |
40342 | ;; | |
40343 | *) # This is not an option, so the user has probably given explicit | |
40344 | # arguments. | |
40345 | ac_option=$1 | |
40346 | ac_need_defaults=false;; | |
40347 | esac | |
40348 | ||
40349 | case $ac_option in | |
40350 | # Handling of the options. | |
40351 | _ACEOF | |
40352 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40353 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
40354 | ac_cs_recheck=: ;; | |
40355 | --version | --vers* | -V ) | |
40356 | echo "$ac_cs_version"; exit 0 ;; | |
40357 | --he | --h) | |
40358 | # Conflict between --help and --header | |
40359 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
40360 | Try \`$0 --help' for more information." >&5 | |
40361 | echo "$as_me: error: ambiguous option: $1 | |
40362 | Try \`$0 --help' for more information." >&2;} | |
40363 | { (exit 1); exit 1; }; };; | |
40364 | --help | --hel | -h ) | |
40365 | echo "$ac_cs_usage"; exit 0 ;; | |
40366 | --debug | --d* | -d ) | |
40367 | debug=: ;; | |
40368 | --file | --fil | --fi | --f ) | |
40369 | $ac_shift | |
40370 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
40371 | ac_need_defaults=false;; | |
40372 | --header | --heade | --head | --hea ) | |
40373 | $ac_shift | |
40374 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
40375 | ac_need_defaults=false;; | |
40376 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
40377 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
40378 | ac_cs_silent=: ;; | |
40379 | ||
40380 | # This is an error. | |
40381 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
40382 | Try \`$0 --help' for more information." >&5 | |
40383 | echo "$as_me: error: unrecognized option: $1 | |
40384 | Try \`$0 --help' for more information." >&2;} | |
40385 | { (exit 1); exit 1; }; } ;; | |
40386 | ||
40387 | *) ac_config_targets="$ac_config_targets $1" ;; | |
40388 | ||
40389 | esac | |
40390 | shift | |
40391 | done | |
40392 | ||
40393 | ac_configure_extra_args= | |
40394 | ||
40395 | if $ac_cs_silent; then | |
40396 | exec 6>/dev/null | |
40397 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
40398 | fi |
40399 | ||
e6cc62c6 VS |
40400 | _ACEOF |
40401 | cat >>$CONFIG_STATUS <<_ACEOF | |
40402 | if \$ac_cs_recheck; then | |
40403 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
40404 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
40405 | fi |
40406 | ||
e6cc62c6 | 40407 | _ACEOF |
fe0895cf | 40408 | |
e6cc62c6 | 40409 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 40410 | # |
e6cc62c6 | 40411 | # INIT-COMMANDS section. |
10f2d63a | 40412 | # |
10f2d63a | 40413 | |
a0b9e27f | 40414 | |
e6cc62c6 VS |
40415 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
40416 | LN_S="${LN_S}" | |
10f2d63a | 40417 | |
10f2d63a | 40418 | |
10f2d63a | 40419 | |
e6cc62c6 | 40420 | _ACEOF |
8284b0c5 | 40421 | |
52127426 | 40422 | |
247f5006 | 40423 | |
e6cc62c6 VS |
40424 | cat >>$CONFIG_STATUS <<\_ACEOF |
40425 | for ac_config_target in $ac_config_targets | |
247f5006 | 40426 | do |
e6cc62c6 VS |
40427 | case "$ac_config_target" in |
40428 | # Handling of arguments. | |
81345eef VZ |
40429 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
40430 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
40431 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 40432 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
40433 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
40434 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
40435 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
40436 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
40437 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
40438 | esac |
40439 | done | |
40440 | ||
e6cc62c6 VS |
40441 | # If the user did not use the arguments to specify the items to instantiate, |
40442 | # then the envvar interface is used. Set only those that are not. | |
40443 | # We use the long form for the default assignment because of an extremely | |
40444 | # bizarre bug on SunOS 4.1.3. | |
40445 | if $ac_need_defaults; then | |
40446 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
40447 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
40448 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
40449 | fi | |
40450 | ||
40451 | # Have a temporary directory for convenience. Make it in the build tree | |
40452 | # simply because there is no reason to put it here, and in addition, | |
40453 | # creating and moving files from /tmp can sometimes cause problems. | |
40454 | # Create a temporary directory, and hook for its removal unless debugging. | |
40455 | $debug || | |
40456 | { | |
40457 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
40458 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
40459 | } | |
247f5006 | 40460 | |
e6cc62c6 | 40461 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 40462 | |
e6cc62c6 VS |
40463 | { |
40464 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
40465 | test -n "$tmp" && test -d "$tmp" | |
40466 | } || | |
40467 | { | |
40468 | tmp=./confstat$$-$RANDOM | |
40469 | (umask 077 && mkdir $tmp) | |
40470 | } || | |
40471 | { | |
40472 | echo "$me: cannot create a temporary directory in ." >&2 | |
40473 | { (exit 1); exit 1; } | |
40474 | } | |
40475 | ||
40476 | _ACEOF | |
40477 | ||
40478 | cat >>$CONFIG_STATUS <<_ACEOF | |
40479 | ||
40480 | # | |
40481 | # CONFIG_FILES section. | |
40482 | # | |
247f5006 | 40483 | |
e6cc62c6 VS |
40484 | # No need to generate the scripts if there are no CONFIG_FILES. |
40485 | # This happens for instance when ./config.status config.h | |
40486 | if test -n "\$CONFIG_FILES"; then | |
40487 | # Protect against being on the right side of a sed subst in config.status. | |
40488 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
40489 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
40490 | s,@SHELL@,$SHELL,;t t | |
40491 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
40492 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
40493 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
40494 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
40495 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
40496 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40497 | s,@exec_prefix@,$exec_prefix,;t t | |
40498 | s,@prefix@,$prefix,;t t | |
40499 | s,@program_transform_name@,$program_transform_name,;t t | |
40500 | s,@bindir@,$bindir,;t t | |
40501 | s,@sbindir@,$sbindir,;t t | |
40502 | s,@libexecdir@,$libexecdir,;t t | |
40503 | s,@datadir@,$datadir,;t t | |
40504 | s,@sysconfdir@,$sysconfdir,;t t | |
40505 | s,@sharedstatedir@,$sharedstatedir,;t t | |
40506 | s,@localstatedir@,$localstatedir,;t t | |
40507 | s,@libdir@,$libdir,;t t | |
40508 | s,@includedir@,$includedir,;t t | |
40509 | s,@oldincludedir@,$oldincludedir,;t t | |
40510 | s,@infodir@,$infodir,;t t | |
40511 | s,@mandir@,$mandir,;t t | |
40512 | s,@build_alias@,$build_alias,;t t | |
40513 | s,@host_alias@,$host_alias,;t t | |
40514 | s,@target_alias@,$target_alias,;t t | |
40515 | s,@DEFS@,$DEFS,;t t | |
40516 | s,@ECHO_C@,$ECHO_C,;t t | |
40517 | s,@ECHO_N@,$ECHO_N,;t t | |
40518 | s,@ECHO_T@,$ECHO_T,;t t | |
40519 | s,@LIBS@,$LIBS,;t t | |
40520 | s,@build@,$build,;t t | |
40521 | s,@build_cpu@,$build_cpu,;t t | |
40522 | s,@build_vendor@,$build_vendor,;t t | |
40523 | s,@build_os@,$build_os,;t t | |
40524 | s,@host@,$host,;t t | |
40525 | s,@host_cpu@,$host_cpu,;t t | |
40526 | s,@host_vendor@,$host_vendor,;t t | |
40527 | s,@host_os@,$host_os,;t t | |
40528 | s,@target@,$target,;t t | |
40529 | s,@target_cpu@,$target_cpu,;t t | |
40530 | s,@target_vendor@,$target_vendor,;t t | |
40531 | s,@target_os@,$target_os,;t t | |
40532 | s,@CC@,$CC,;t t | |
40533 | s,@CFLAGS@,$CFLAGS,;t t | |
40534 | s,@LDFLAGS@,$LDFLAGS,;t t | |
40535 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
40536 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
40537 | s,@EXEEXT@,$EXEEXT,;t t | |
40538 | s,@OBJEXT@,$OBJEXT,;t t | |
40539 | s,@CPP@,$CPP,;t t | |
40540 | s,@EGREP@,$EGREP,;t t | |
40541 | s,@CXX@,$CXX,;t t | |
40542 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
40543 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
40544 | s,@RANLIB@,$RANLIB,;t t | |
40545 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
40546 | s,@AR@,$AR,;t t | |
40547 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
40548 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
40549 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
40550 | s,@STRIP@,$STRIP,;t t | |
40551 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
40552 | s,@LN_S@,$LN_S,;t t |
40553 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 40554 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
40555 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
40556 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
40557 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
40558 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
40559 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
40560 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
40561 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
40562 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
40563 | s,@X_LIBS@,$X_LIBS,;t t | |
40564 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
40565 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
40566 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
40567 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
40568 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
40569 | s,@RESCOMP@,$RESCOMP,;t t |
40570 | s,@DEREZ@,$DEREZ,;t t | |
40571 | s,@SETFILE@,$SETFILE,;t t | |
40572 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 | 40573 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
f93ca9fd VS |
40574 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
40575 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
40576 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
edd891e2 VS |
40577 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
40578 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
40579 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
40580 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 40581 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
40582 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
40583 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
40584 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
40585 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
40586 | s,@VENDOR@,$VENDOR,;t t |
40587 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
40588 | s,@WXUNIV@,$WXUNIV,;t t |
40589 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
f93ca9fd | 40590 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t |
e6cc62c6 | 40591 | s,@EXTRALIBS@,$EXTRALIBS,;t t |
672abd7a | 40592 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 40593 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 40594 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 40595 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 40596 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
f93ca9fd VS |
40597 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t |
40598 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
e6cc62c6 VS |
40599 | s,@UNICODE@,$UNICODE,;t t |
40600 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
40601 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
40602 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
40603 | s,@SHARED@,$SHARED,;t t |
40604 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
40605 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
40606 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 40607 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 40608 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
670ec357 VS |
40609 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t |
40610 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
e6cc62c6 VS |
40611 | s,@SET_MAKE@,$SET_MAKE,;t t |
40612 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
40613 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
40614 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
40615 | s,@NM@,$NM,;t t | |
40616 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 40617 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 40618 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
40619 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
40620 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
40621 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
40622 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
40623 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 40624 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 40625 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 40626 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 40627 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 40628 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 40629 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 40630 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
40631 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
40632 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
40633 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
40634 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
40635 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
40636 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
40637 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
40638 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
40639 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
40640 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
40641 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 40642 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 40643 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 40644 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
40645 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
40646 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
f93ca9fd VS |
40647 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t |
40648 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
d78c94f2 | 40649 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a | 40650 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
f93ca9fd VS |
40651 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t |
40652 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
6c67131a VS |
40653 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t |
40654 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
40655 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 40656 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 40657 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 40658 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 40659 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
40660 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
40661 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 40662 | 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 | 40663 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 40664 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 40665 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 40666 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 40667 | 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 | 40668 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 40669 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
f95e4495 | 40670 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
3af038c0 | 40671 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
40672 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
40673 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
40674 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
40675 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 40676 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 40677 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
40678 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
40679 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
40680 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 40681 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 40682 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 40683 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 40684 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 40685 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 40686 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 40687 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
f93ca9fd | 40688 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t |
3af038c0 VS |
40689 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
40690 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 40691 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 40692 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
40693 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40694 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40695 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
40696 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
40697 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
40698 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
40699 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 40700 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 40701 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
40702 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
40703 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
40704 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
40705 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 40706 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 40707 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 40708 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
40709 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
40710 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
40711 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
40712 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
40713 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
40714 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 40715 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
40716 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
40717 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
40718 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
40719 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
40720 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
40721 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
40722 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 40723 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
40724 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
40725 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
40726 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
40727 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
40728 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
40729 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
40730 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40731 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40732 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 40733 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
f93ca9fd | 40734 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
6f628073 VS |
40735 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
40736 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
40737 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
40738 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
f93ca9fd VS |
40739 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
40740 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
3af038c0 | 40741 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 40742 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
40743 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
40744 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
40745 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
40746 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
40747 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
40748 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
40749 | s,@PATH_IFS@,$PATH_IFS,;t t |
40750 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
40751 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
40752 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
40753 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
40754 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
40755 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
40756 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
40757 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
40758 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
40759 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
40760 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
40761 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
40762 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
40763 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
40764 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
40765 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
40766 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
40767 | s,@WX_ALL@,$WX_ALL,;t t | |
40768 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
40769 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
40770 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
40771 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
40772 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
40773 | s,@USE_GUI@,$USE_GUI,;t t | |
40774 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
40775 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
40776 | s,@TOOLKIT@,$TOOLKIT,;t t | |
40777 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
40778 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
40779 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
40780 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
40781 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
40782 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
40783 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 40784 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
40785 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
40786 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
40787 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
40788 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
40789 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
40790 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 40791 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 40792 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
40793 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
40794 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
40795 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
40796 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
40797 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
40798 | s,@GUIDIST@,$GUIDIST,;t t | |
40799 | s,@PORT_FILES@,$PORT_FILES,;t t | |
40800 | s,@DISTDIR@,$DISTDIR,;t t | |
40801 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
40802 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
40803 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
40804 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
40805 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
40806 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
40807 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
40808 | s,@RESFLAGS@,$RESFLAGS,;t t | |
40809 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
40810 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
40811 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
40812 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
40813 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
40814 | s,@MACSETFILE@,$MACSETFILE,;t t | |
40815 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
40816 | s,@GCC@,$GCC,;t t | |
243f8ae5 | 40817 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t |
e6cc62c6 VS |
40818 | s,@DLLTOOL@,$DLLTOOL,;t t |
40819 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
40820 | s,@LD@,$LD,;t t |
40821 | s,@MAKEINFO@,$MAKEINFO,;t t | |
40822 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
670ec357 | 40823 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
e6cc62c6 VS |
40824 | s,@LIBOBJS@,$LIBOBJS,;t t |
40825 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
40826 | CEOF |
40827 | ||
e6cc62c6 VS |
40828 | _ACEOF |
40829 | ||
40830 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40831 | # Split the substitutions into bite-sized pieces for seds with | |
40832 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
40833 | ac_max_sed_lines=48 | |
40834 | ac_sed_frag=1 # Number of current file. | |
40835 | ac_beg=1 # First line for current file. | |
40836 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
40837 | ac_more_lines=: | |
40838 | ac_sed_cmds= | |
40839 | while $ac_more_lines; do | |
40840 | if test $ac_beg -gt 1; then | |
40841 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 40842 | else |
e6cc62c6 VS |
40843 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
40844 | fi | |
40845 | if test ! -s $tmp/subs.frag; then | |
40846 | ac_more_lines=false | |
40847 | else | |
40848 | # The purpose of the label and of the branching condition is to | |
40849 | # speed up the sed processing (if there are no `@' at all, there | |
40850 | # is no need to browse any of the substitutions). | |
40851 | # These are the two extra sed commands mentioned above. | |
40852 | (echo ':t | |
40853 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
40854 | if test -z "$ac_sed_cmds"; then | |
32ddf007 | 40855 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 40856 | else |
32ddf007 | 40857 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
40858 | fi |
40859 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
40860 | ac_beg=$ac_end | |
40861 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 40862 | fi |
e6cc62c6 VS |
40863 | done |
40864 | if test -z "$ac_sed_cmds"; then | |
40865 | ac_sed_cmds=cat | |
10f2d63a | 40866 | fi |
e6cc62c6 | 40867 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 40868 | |
e6cc62c6 VS |
40869 | _ACEOF |
40870 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40871 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 40872 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
40873 | case $ac_file in |
40874 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
40875 | cat >$tmp/stdin |
40876 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40877 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 40878 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 40879 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 40880 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 40881 | esac |
247f5006 | 40882 | |
e6cc62c6 VS |
40883 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
40884 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
40885 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
40886 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
40887 | X"$ac_file" : 'X\(//\)$' \| \ | |
40888 | X"$ac_file" : 'X\(/\)' \| \ | |
40889 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40890 | echo X"$ac_file" | |
40891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40893 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40894 | /^X\(\/\).*/{ s//\1/; q; } | |
40895 | s/.*/./; q'` | |
40896 | { if $as_mkdir_p; then | |
40897 | mkdir -p "$ac_dir" | |
a0b9e27f | 40898 | else |
e6cc62c6 VS |
40899 | as_dir="$ac_dir" |
40900 | as_dirs= | |
40901 | while test ! -d "$as_dir"; do | |
40902 | as_dirs="$as_dir $as_dirs" | |
40903 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
40905 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40906 | X"$as_dir" : 'X\(//\)$' \| \ | |
40907 | X"$as_dir" : 'X\(/\)' \| \ | |
40908 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40909 | echo X"$as_dir" | |
40910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40911 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40912 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40913 | /^X\(\/\).*/{ s//\1/; q; } | |
40914 | s/.*/./; q'` | |
40915 | done | |
40916 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40917 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40918 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40919 | { (exit 1); exit 1; }; }; } | |
40920 | ||
40921 | ac_builddir=. | |
40922 | ||
40923 | if test "$ac_dir" != .; then | |
40924 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40925 | # A "../" for each directory in $ac_dir_suffix. | |
40926 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40927 | else | |
40928 | ac_dir_suffix= ac_top_builddir= | |
40929 | fi | |
247f5006 | 40930 | |
e6cc62c6 VS |
40931 | case $srcdir in |
40932 | .) # No --srcdir option. We are building in place. | |
40933 | ac_srcdir=. | |
40934 | if test -z "$ac_top_builddir"; then | |
40935 | ac_top_srcdir=. | |
40936 | else | |
40937 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40938 | fi ;; | |
40939 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40940 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40941 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 40942 | *) # Relative path. |
e6cc62c6 VS |
40943 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
40944 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40945 | esac | |
32ddf007 VS |
40946 | |
40947 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
40948 | # the directories may not exist. | |
40949 | case `pwd` in | |
40950 | .) ac_abs_builddir="$ac_dir";; | |
40951 | *) | |
40952 | case "$ac_dir" in | |
40953 | .) ac_abs_builddir=`pwd`;; | |
40954 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
40955 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
40956 | esac;; | |
40957 | esac | |
40958 | case $ac_abs_builddir in | |
40959 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40960 | *) | |
40961 | case ${ac_top_builddir}. in | |
40962 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
40963 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40964 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
40965 | esac;; | |
40966 | esac | |
40967 | case $ac_abs_builddir in | |
40968 | .) ac_abs_srcdir=$ac_srcdir;; | |
40969 | *) | |
40970 | case $ac_srcdir in | |
40971 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
40972 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40973 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
40974 | esac;; | |
40975 | esac | |
40976 | case $ac_abs_builddir in | |
40977 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40978 | *) | |
40979 | case $ac_top_srcdir in | |
40980 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
40981 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40982 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
40983 | esac;; | |
40984 | esac | |
10f2d63a | 40985 | |
247f5006 | 40986 | |
e6cc62c6 VS |
40987 | case $INSTALL in |
40988 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
40989 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 40990 | esac |
247f5006 | 40991 | |
e6cc62c6 VS |
40992 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
40993 | # use $as_me), people would be surprised to read: | |
40994 | # /* config.h. Generated by config.status. */ | |
40995 | if test x"$ac_file" = x-; then | |
40996 | configure_input= | |
40997 | else | |
40998 | configure_input="$ac_file. " | |
40999 | fi | |
41000 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
32ddf007 | 41001 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
41002 | |
41003 | # First look for the input files in the build tree, otherwise in the | |
41004 | # src tree. | |
41005 | ac_file_inputs=`IFS=: | |
41006 | for f in $ac_file_in; do | |
41007 | case $f in | |
41008 | -) echo $tmp/stdin ;; | |
41009 | [\\/$]*) | |
32ddf007 VS |
41010 | # Absolute (can't be DOS-style, as IFS=:) |
41011 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41012 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41013 | { (exit 1); exit 1; }; } | |
32ddf007 | 41014 | echo "$f";; |
e6cc62c6 | 41015 | *) # Relative |
32ddf007 VS |
41016 | if test -f "$f"; then |
41017 | # Build tree | |
41018 | echo "$f" | |
41019 | elif test -f "$srcdir/$f"; then | |
41020 | # Source tree | |
41021 | echo "$srcdir/$f" | |
41022 | else | |
41023 | # /dev/null tree | |
41024 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41025 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41026 | { (exit 1); exit 1; }; } | |
32ddf007 | 41027 | fi;; |
e6cc62c6 VS |
41028 | esac |
41029 | done` || { (exit 1); exit 1; } | |
e1293dcf RL |
41030 | |
41031 | if test x"$ac_file" != x-; then | |
41032 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
41033 | echo "$as_me: creating $ac_file" >&6;} | |
41034 | rm -f "$ac_file" | |
41035 | fi | |
e6cc62c6 VS |
41036 | _ACEOF |
41037 | cat >>$CONFIG_STATUS <<_ACEOF | |
41038 | sed "$ac_vpsub | |
41039 | $extrasub | |
41040 | _ACEOF | |
41041 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41042 | :t | |
41043 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
41044 | s,@configure_input@,$configure_input,;t t | |
41045 | s,@srcdir@,$ac_srcdir,;t t | |
41046 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
41047 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
41048 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
41049 | s,@builddir@,$ac_builddir,;t t | |
41050 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
41051 | s,@top_builddir@,$ac_top_builddir,;t t | |
41052 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
41053 | s,@INSTALL@,$ac_INSTALL,;t t | |
41054 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
41055 | rm -f $tmp/stdin | |
41056 | if test x"$ac_file" != x-; then | |
41057 | mv $tmp/out $ac_file | |
41058 | else | |
41059 | cat $tmp/out | |
41060 | rm -f $tmp/out | |
41061 | fi | |
41062 | ||
41063 | done | |
41064 | _ACEOF | |
41065 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41066 | ||
41067 | # | |
41068 | # CONFIG_HEADER section. | |
41069 | # | |
10f2d63a VZ |
41070 | |
41071 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
41072 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
41073 | # | |
41074 | # ac_d sets the value in "#define NAME VALUE" lines. | |
32ddf007 VS |
41075 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
41076 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
41077 | ac_dC=' ' |
41078 | ac_dD=',;t' | |
41079 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
32ddf007 | 41080 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 41081 | ac_uB='$,\1#\2define\3' |
10f2d63a | 41082 | ac_uC=' ' |
e6cc62c6 VS |
41083 | ac_uD=',;t' |
41084 | ||
41085 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 41086 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
41087 | case $ac_file in |
41088 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
41089 | cat >$tmp/stdin |
41090 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41091 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 41092 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 41093 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 41094 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
41095 | esac |
41096 | ||
e6cc62c6 VS |
41097 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
41098 | echo "$as_me: creating $ac_file" >&6;} | |
41099 | ||
41100 | # First look for the input files in the build tree, otherwise in the | |
41101 | # src tree. | |
41102 | ac_file_inputs=`IFS=: | |
41103 | for f in $ac_file_in; do | |
41104 | case $f in | |
41105 | -) echo $tmp/stdin ;; | |
41106 | [\\/$]*) | |
32ddf007 VS |
41107 | # Absolute (can't be DOS-style, as IFS=:) |
41108 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41109 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41110 | { (exit 1); exit 1; }; } | |
32ddf007 VS |
41111 | # Do quote $f, to prevent DOS paths from being IFS'd. |
41112 | echo "$f";; | |
e6cc62c6 | 41113 | *) # Relative |
32ddf007 VS |
41114 | if test -f "$f"; then |
41115 | # Build tree | |
41116 | echo "$f" | |
41117 | elif test -f "$srcdir/$f"; then | |
41118 | # Source tree | |
41119 | echo "$srcdir/$f" | |
41120 | else | |
41121 | # /dev/null tree | |
41122 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41123 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41124 | { (exit 1); exit 1; }; } | |
32ddf007 | 41125 | fi;; |
e6cc62c6 VS |
41126 | esac |
41127 | done` || { (exit 1); exit 1; } | |
41128 | # Remove the trailing spaces. | |
32ddf007 | 41129 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
41130 | |
41131 | _ACEOF | |
41132 | ||
41133 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
41134 | # `conftest.undefs', that substitutes the proper values into | |
41135 | # config.h.in to produce config.h. The first handles `#define' | |
41136 | # templates, and the second `#undef' templates. | |
41137 | # And first: Protect against being on the right side of a sed subst in | |
41138 | # config.status. Protect against being in an unquoted here document | |
41139 | # in config.status. | |
41140 | rm -f conftest.defines conftest.undefs | |
41141 | # Using a here document instead of a string reduces the quoting nightmare. | |
41142 | # Putting comments in sed scripts is not portable. | |
41143 | # | |
41144 | # `end' is used to avoid that the second main sed command (meant for | |
41145 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
41146 | # See the Autoconf documentation for `clear'. | |
41147 | cat >confdef2sed.sed <<\_ACEOF | |
41148 | s/[\\&,]/\\&/g | |
41149 | s,[\\$`],\\&,g | |
41150 | t clear | |
41151 | : clear | |
32ddf007 | 41152 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 41153 | t end |
32ddf007 | 41154 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
41155 | : end |
41156 | _ACEOF | |
41157 | # If some macros were called several times there might be several times | |
41158 | # the same #defines, which is useless. Nevertheless, we may not want to | |
41159 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
41160 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
41161 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
41162 | rm -f confdef2sed.sed | |
10f2d63a VZ |
41163 | |
41164 | # This sed command replaces #undef with comments. This is necessary, for | |
41165 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
41166 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 41167 | cat >>conftest.undefs <<\_ACEOF |
32ddf007 | 41168 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
41169 | _ACEOF |
41170 | ||
41171 | # Break up conftest.defines because some shells have a limit on the size | |
41172 | # of here documents, and old seds have small limits too (100 cmds). | |
41173 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
32ddf007 | 41174 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
41175 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
41176 | echo ' :' >>$CONFIG_STATUS | |
41177 | rm -f conftest.tail | |
41178 | while grep . conftest.defines >/dev/null | |
41179 | do | |
41180 | # Write a limited-size here document to $tmp/defines.sed. | |
41181 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
41182 | # Speed up: don't consider the non `#define' lines. | |
32ddf007 | 41183 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41184 | # Work around the forget-to-reset-the-flag bug. |
41185 | echo 't clr' >>$CONFIG_STATUS | |
41186 | echo ': clr' >>$CONFIG_STATUS | |
41187 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
41188 | echo 'CEOF | |
41189 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
41190 | rm -f $tmp/in | |
41191 | mv $tmp/out $tmp/in | |
41192 | ' >>$CONFIG_STATUS | |
41193 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
41194 | rm -f conftest.defines | |
41195 | mv conftest.tail conftest.defines | |
41196 | done | |
41197 | rm -f conftest.defines | |
41198 | echo ' fi # grep' >>$CONFIG_STATUS | |
41199 | echo >>$CONFIG_STATUS | |
10f2d63a | 41200 | |
e6cc62c6 VS |
41201 | # Break up conftest.undefs because some shells have a limit on the size |
41202 | # of here documents, and old seds have small limits too (100 cmds). | |
41203 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 41204 | rm -f conftest.tail |
e6cc62c6 | 41205 | while grep . conftest.undefs >/dev/null |
10f2d63a | 41206 | do |
e6cc62c6 VS |
41207 | # Write a limited-size here document to $tmp/undefs.sed. |
41208 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
41209 | # Speed up: don't consider the non `#undef' | |
32ddf007 | 41210 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41211 | # Work around the forget-to-reset-the-flag bug. |
41212 | echo 't clr' >>$CONFIG_STATUS | |
41213 | echo ': clr' >>$CONFIG_STATUS | |
41214 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 41215 | echo 'CEOF |
e6cc62c6 VS |
41216 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
41217 | rm -f $tmp/in | |
41218 | mv $tmp/out $tmp/in | |
41219 | ' >>$CONFIG_STATUS | |
41220 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
41221 | rm -f conftest.undefs | |
41222 | mv conftest.tail conftest.undefs | |
10f2d63a | 41223 | done |
e6cc62c6 VS |
41224 | rm -f conftest.undefs |
41225 | ||
41226 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41227 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
41228 | # use $as_me), people would be surprised to read: | |
41229 | # /* config.h. Generated by config.status. */ | |
41230 | if test x"$ac_file" = x-; then | |
41231 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 41232 | else |
e6cc62c6 | 41233 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 41234 | fi |
e6cc62c6 VS |
41235 | cat $tmp/in >>$tmp/config.h |
41236 | rm -f $tmp/in | |
41237 | if test x"$ac_file" != x-; then | |
41238 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
41239 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
41240 | echo "$as_me: $ac_file is unchanged" >&6;} | |
41241 | else | |
41242 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
41243 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41244 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
41245 | X"$ac_file" : 'X\(//\)$' \| \ | |
41246 | X"$ac_file" : 'X\(/\)' \| \ | |
41247 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41248 | echo X"$ac_file" | |
41249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41250 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41251 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41252 | /^X\(\/\).*/{ s//\1/; q; } | |
41253 | s/.*/./; q'` | |
41254 | { if $as_mkdir_p; then | |
41255 | mkdir -p "$ac_dir" | |
41256 | else | |
41257 | as_dir="$ac_dir" | |
41258 | as_dirs= | |
41259 | while test ! -d "$as_dir"; do | |
41260 | as_dirs="$as_dir $as_dirs" | |
41261 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41262 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41263 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41264 | X"$as_dir" : 'X\(//\)$' \| \ | |
41265 | X"$as_dir" : 'X\(/\)' \| \ | |
41266 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41267 | echo X"$as_dir" | |
41268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41269 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41270 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41271 | /^X\(\/\).*/{ s//\1/; q; } | |
41272 | s/.*/./; q'` | |
41273 | done | |
41274 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41275 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41276 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41277 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 41278 | |
e6cc62c6 VS |
41279 | rm -f $ac_file |
41280 | mv $tmp/config.h $ac_file | |
41281 | fi | |
41282 | else | |
41283 | cat $tmp/config.h | |
41284 | rm -f $tmp/config.h | |
41285 | fi | |
41286 | done | |
41287 | _ACEOF | |
41288 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 41289 | |
e6cc62c6 VS |
41290 | # |
41291 | # CONFIG_COMMANDS section. | |
41292 | # | |
41293 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
41294 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
41295 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41296 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
41297 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41298 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
41299 | X"$ac_dest" : 'X\(//\)$' \| \ | |
41300 | X"$ac_dest" : 'X\(/\)' \| \ | |
41301 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41302 | echo X"$ac_dest" | |
41303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41304 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41305 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41306 | /^X\(\/\).*/{ s//\1/; q; } | |
41307 | s/.*/./; q'` | |
32ddf007 VS |
41308 | { if $as_mkdir_p; then |
41309 | mkdir -p "$ac_dir" | |
41310 | else | |
41311 | as_dir="$ac_dir" | |
41312 | as_dirs= | |
41313 | while test ! -d "$as_dir"; do | |
41314 | as_dirs="$as_dir $as_dirs" | |
41315 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41316 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
41317 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
41318 | X"$as_dir" : 'X\(//\)$' \| \ | |
41319 | X"$as_dir" : 'X\(/\)' \| \ | |
41320 | . : '\(.\)' 2>/dev/null || | |
41321 | echo X"$as_dir" | | |
41322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41323 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41324 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41325 | /^X\(\/\).*/{ s//\1/; q; } | |
41326 | s/.*/./; q'` | |
41327 | done | |
41328 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41329 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41330 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41331 | { (exit 1); exit 1; }; }; } | |
41332 | ||
e6cc62c6 VS |
41333 | ac_builddir=. |
41334 | ||
41335 | if test "$ac_dir" != .; then | |
41336 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41337 | # A "../" for each directory in $ac_dir_suffix. | |
41338 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41339 | else | |
41340 | ac_dir_suffix= ac_top_builddir= | |
41341 | fi | |
41342 | ||
41343 | case $srcdir in | |
41344 | .) # No --srcdir option. We are building in place. | |
41345 | ac_srcdir=. | |
41346 | if test -z "$ac_top_builddir"; then | |
41347 | ac_top_srcdir=. | |
41348 | else | |
41349 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41350 | fi ;; | |
41351 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41352 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41353 | ac_top_srcdir=$srcdir ;; | |
41354 | *) # Relative path. | |
41355 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41356 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41357 | esac | |
32ddf007 VS |
41358 | |
41359 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41360 | # the directories may not exist. | |
41361 | case `pwd` in | |
41362 | .) ac_abs_builddir="$ac_dir";; | |
41363 | *) | |
41364 | case "$ac_dir" in | |
41365 | .) ac_abs_builddir=`pwd`;; | |
41366 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41367 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41368 | esac;; | |
41369 | esac | |
41370 | case $ac_abs_builddir in | |
41371 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41372 | *) | |
41373 | case ${ac_top_builddir}. in | |
41374 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41375 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41376 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41377 | esac;; | |
41378 | esac | |
41379 | case $ac_abs_builddir in | |
41380 | .) ac_abs_srcdir=$ac_srcdir;; | |
41381 | *) | |
41382 | case $ac_srcdir in | |
41383 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41384 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41385 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41386 | esac;; | |
41387 | esac | |
41388 | case $ac_abs_builddir in | |
41389 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41390 | *) | |
41391 | case $ac_top_srcdir in | |
41392 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41393 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41394 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41395 | esac;; | |
41396 | esac | |
e6cc62c6 VS |
41397 | |
41398 | ||
41399 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
41400 | echo "$as_me: executing $ac_dest commands" >&6;} | |
41401 | case $ac_dest in | |
41402 | default ) | |
652d930d | 41403 | if test ! -h wx-config; then |
991a5759 | 41404 | chmod +x wx-config |
3a922bb4 RL |
41405 | mv wx-config wx${TOOLCHAIN_NAME}-config |
41406 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 41407 | fi |
665bbe97 | 41408 | |
00cf1208 RR |
41409 | if test ! -d lib; then |
41410 | mkdir lib | |
41411 | fi | |
41412 | if test ! -d lib/wx; then | |
41413 | mkdir lib/wx | |
41414 | fi | |
41415 | if test ! -d lib/wx/include; then | |
41416 | mkdir lib/wx/include | |
41417 | fi | |
3a922bb4 RL |
41418 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
41419 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 41420 | fi |
3a922bb4 RL |
41421 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
41422 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
41423 | fi |
41424 | if test -f setup.h; then | |
3a922bb4 | 41425 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 41426 | fi |
e6cc62c6 VS |
41427 | ;; |
41428 | esac | |
41429 | done | |
41430 | _ACEOF | |
2224580a | 41431 | |
e6cc62c6 | 41432 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 41433 | |
e6cc62c6 VS |
41434 | { (exit 0); exit 0; } |
41435 | _ACEOF | |
41436 | chmod +x $CONFIG_STATUS | |
41437 | ac_clean_files=$ac_clean_files_save | |
41438 | ||
41439 | ||
41440 | # configure is writing to config.log, and then calls config.status. | |
41441 | # config.status does its own redirection, appending to config.log. | |
41442 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
41443 | # by configure, so config.status won't be able to write to it; its | |
41444 | # output is simply discarded. So we exec the FD to /dev/null, | |
41445 | # effectively closing config.log, so it can be properly (re)opened and | |
41446 | # appended to by config.status. When coming back to configure, we | |
41447 | # need to make the FD available again. | |
41448 | if test "$no_create" != yes; then | |
41449 | ac_cs_success=: | |
41450 | ac_config_status_args= | |
41451 | test "$silent" = yes && | |
41452 | ac_config_status_args="$ac_config_status_args --quiet" | |
41453 | exec 5>/dev/null | |
41454 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
41455 | exec 5>>config.log | |
41456 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
41457 | # would make configure fail if this is the last instruction. | |
41458 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
41459 | fi |
41460 | ||
672abd7a VS |
41461 | # |
41462 | # CONFIG_SUBDIRS section. | |
41463 | # | |
41464 | if test "$no_recursion" != yes; then | |
41465 | ||
41466 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
41467 | ac_sub_configure_args= | |
41468 | ac_prev= | |
41469 | for ac_arg in $ac_configure_args; do | |
41470 | if test -n "$ac_prev"; then | |
41471 | ac_prev= | |
41472 | continue | |
41473 | fi | |
41474 | case $ac_arg in | |
41475 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
41476 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
41477 | ac_prev=cache_file ;; | |
41478 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
41479 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
41480 | | --c=*) | |
41481 | ;; | |
41482 | --config-cache | -C) | |
41483 | ;; | |
41484 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
41485 | ac_prev=srcdir ;; | |
41486 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
41487 | ;; | |
41488 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
41489 | ac_prev=prefix ;; | |
41490 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
41491 | ;; | |
41492 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
41493 | esac | |
41494 | done | |
41495 | ||
41496 | # Always prepend --prefix to ensure using the same prefix | |
41497 | # in subdir configurations. | |
41498 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
41499 | ||
41500 | ac_popdir=`pwd` | |
41501 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
41502 | ||
41503 | # Do not complain, so a configure script can configure whichever | |
41504 | # parts of a large source tree are present. | |
41505 | test -d $srcdir/$ac_dir || continue | |
41506 | ||
41507 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
41508 | echo "$as_me: configuring in $ac_dir" >&6;} | |
41509 | { if $as_mkdir_p; then | |
41510 | mkdir -p "$ac_dir" | |
41511 | else | |
41512 | as_dir="$ac_dir" | |
41513 | as_dirs= | |
41514 | while test ! -d "$as_dir"; do | |
41515 | as_dirs="$as_dir $as_dirs" | |
41516 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41517 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41518 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41519 | X"$as_dir" : 'X\(//\)$' \| \ | |
41520 | X"$as_dir" : 'X\(/\)' \| \ | |
41521 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
41522 | echo X"$as_dir" | |
41523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41524 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41525 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41526 | /^X\(\/\).*/{ s//\1/; q; } | |
41527 | s/.*/./; q'` | |
41528 | done | |
41529 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41530 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41531 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41532 | { (exit 1); exit 1; }; }; } | |
41533 | ||
41534 | ac_builddir=. | |
41535 | ||
41536 | if test "$ac_dir" != .; then | |
41537 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41538 | # A "../" for each directory in $ac_dir_suffix. | |
41539 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41540 | else | |
41541 | ac_dir_suffix= ac_top_builddir= | |
41542 | fi | |
41543 | ||
41544 | case $srcdir in | |
41545 | .) # No --srcdir option. We are building in place. | |
41546 | ac_srcdir=. | |
41547 | if test -z "$ac_top_builddir"; then | |
41548 | ac_top_srcdir=. | |
41549 | else | |
41550 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41551 | fi ;; | |
41552 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41553 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41554 | ac_top_srcdir=$srcdir ;; | |
41555 | *) # Relative path. | |
41556 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41557 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41558 | esac | |
32ddf007 VS |
41559 | |
41560 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41561 | # the directories may not exist. | |
41562 | case `pwd` in | |
41563 | .) ac_abs_builddir="$ac_dir";; | |
41564 | *) | |
41565 | case "$ac_dir" in | |
41566 | .) ac_abs_builddir=`pwd`;; | |
41567 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41568 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41569 | esac;; | |
41570 | esac | |
41571 | case $ac_abs_builddir in | |
41572 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41573 | *) | |
41574 | case ${ac_top_builddir}. in | |
41575 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41576 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41577 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41578 | esac;; | |
41579 | esac | |
41580 | case $ac_abs_builddir in | |
41581 | .) ac_abs_srcdir=$ac_srcdir;; | |
41582 | *) | |
41583 | case $ac_srcdir in | |
41584 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41585 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41586 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41587 | esac;; | |
41588 | esac | |
41589 | case $ac_abs_builddir in | |
41590 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41591 | *) | |
41592 | case $ac_top_srcdir in | |
41593 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41594 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41595 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41596 | esac;; | |
41597 | esac | |
672abd7a VS |
41598 | |
41599 | ||
41600 | cd $ac_dir | |
41601 | ||
41602 | # Check for guested configure; otherwise get Cygnus style configure. | |
41603 | if test -f $ac_srcdir/configure.gnu; then | |
41604 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
41605 | elif test -f $ac_srcdir/configure; then | |
41606 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
41607 | elif test -f $ac_srcdir/configure.in; then | |
41608 | ac_sub_configure=$ac_configure | |
41609 | else | |
41610 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
41611 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
41612 | ac_sub_configure= | |
41613 | fi | |
41614 | ||
41615 | # The recursion is here. | |
41616 | if test -n "$ac_sub_configure"; then | |
41617 | # Make the cache file name correct relative to the subdirectory. | |
41618 | case $cache_file in | |
41619 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
41620 | *) # Relative path. | |
32ddf007 | 41621 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
41622 | esac |
41623 | ||
41624 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
41625 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
41626 | # The eval makes quoting arguments work. | |
41627 | eval $ac_sub_configure $ac_sub_configure_args \ | |
32ddf007 VS |
41628 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
41629 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
41630 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
41631 | { (exit 1); exit 1; }; } | |
41632 | fi | |
41633 | ||
e1293dcf | 41634 | cd "$ac_popdir" |
672abd7a VS |
41635 | done |
41636 | fi | |
41637 | ||
8284b0c5 | 41638 | |
2b5f62a0 VZ |
41639 | echo |
41640 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
41641 | echo "" | |
89fe663f | 41642 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 41643 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
41644 | |
41645 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
41646 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
41647 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
41648 | ||
0c98a14e | 41649 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
41650 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
41651 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 41652 | |
2b5f62a0 VZ |
41653 | echo " Which libraries should wxWindows use?" |
41654 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
41655 | echo " png ${wxUSE_LIBPNG-none}" | |
41656 | echo " regex ${wxUSE_REGEX}" | |
41657 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
41658 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
41659 | echo " xpm ${wxUSE_LIBXPM-none}" | |
41660 | fi | |
2b5f62a0 | 41661 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 41662 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 41663 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 41664 | echo " libmspack ${wxUSE_LIBMSPACK}" |
f93ca9fd | 41665 | echo " sdl ${wxUSE_LIBSDL}" |
2b5f62a0 VZ |
41666 | |
41667 | echo "" | |
41668 |