]>
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. | |
f95e4495 | 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 | # | |
f95e4495 | 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 | |
f95e4495 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
fe0895cf | 26 | |
e6cc62c6 | 27 | # Support unset when possible. |
f95e4495 | 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 | |
f95e4495 | 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 | |
f95e4495 | 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. |
f95e4495 | 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. |
f95e4495 | 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" |
f95e4495 | 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 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 EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT 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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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 DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 317 | ac_subst_files='' |
10f2d63a VZ |
318 | |
319 | # Initialize some variables set by options. | |
e6cc62c6 VS |
320 | ac_init_help= |
321 | ac_init_version=false | |
10f2d63a VZ |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
e6cc62c6 | 324 | cache_file=/dev/null |
10f2d63a | 325 | exec_prefix=NONE |
10f2d63a | 326 | no_create= |
10f2d63a VZ |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
10f2d63a VZ |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
e6cc62c6 VS |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
10f2d63a VZ |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
10f2d63a VZ |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
e6cc62c6 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
e6cc62c6 | 371 | case $ac_option in |
10f2d63a VZ |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 376 | bindir=$ac_optarg ;; |
10f2d63a VZ |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 379 | ac_prev=build_alias ;; |
10f2d63a | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 381 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
10f2d63a VZ |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
e6cc62c6 | 397 | datadir=$ac_optarg ;; |
10f2d63a VZ |
398 | |
399 | -disable-* | --disable-*) | |
e6cc62c6 | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 401 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
407 | |
408 | -enable-* | --enable-*) | |
e6cc62c6 | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 410 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
417 | *) ac_optarg=yes ;; |
418 | esac | |
e6cc62c6 | 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 428 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
e6cc62c6 VS |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
10f2d63a VZ |
440 | |
441 | -host | --host | --hos | --ho) | |
e6cc62c6 | 442 | ac_prev=host_alias ;; |
10f2d63a | 443 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 444 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 451 | includedir=$ac_optarg ;; |
10f2d63a VZ |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 456 | infodir=$ac_optarg ;; |
10f2d63a VZ |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 461 | libdir=$ac_optarg ;; |
10f2d63a VZ |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 468 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 477 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 482 | mandir=$ac_optarg ;; |
10f2d63a VZ |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 489 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 503 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 508 | prefix=$ac_optarg ;; |
10f2d63a VZ |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 515 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 522 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 539 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
e6cc62c6 | 549 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
e6cc62c6 | 560 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 565 | site=$ac_optarg ;; |
10f2d63a VZ |
566 | |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 570 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 577 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 580 | ac_prev=target_alias ;; |
10f2d63a | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 582 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
e6cc62c6 VS |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
10f2d63a VZ |
589 | |
590 | -with-* | --with-*) | |
e6cc62c6 | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 592 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
10f2d63a | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
599 | *) ac_optarg=yes ;; |
600 | esac | |
e6cc62c6 | 601 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
602 | |
603 | -without-* | --without-*) | |
e6cc62c6 | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 605 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 621 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 628 | x_libraries=$ac_optarg ;; |
10f2d63a | 629 | |
e6cc62c6 VS |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
633 | ;; |
634 | ||
e6cc62c6 VS |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
10f2d63a | 645 | *) |
e6cc62c6 VS |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
a0b9e27f | 660 | fi |
a0b9e27f | 661 | |
e6cc62c6 VS |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
8284b0c5 | 672 | |
e6cc62c6 VS |
673 | # Be sure to have absolute paths. |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
f95e4495 | 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\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 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 | |
f95e4495 | 822 | [$ac_default_prefix] |
e6cc62c6 | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
f95e4495 | 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 | |
9747f85d | 871 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
872 | --enable-universal use wxWindows GUI controls instead of native ones |
873 | --enable-nanox use NanoX | |
874 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
875 | --enable-shared create shared library code | |
e6cc62c6 VS |
876 | --enable-optimise create optimised code |
877 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 878 | --enable-stl use STL for containers |
e6cc62c6 VS |
879 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
880 | --enable-debug_info create code with debugging information | |
881 | --enable-debug_gdb create code with extra GDB debugging information | |
882 | --enable-debug_cntxt use wxDebugContext | |
883 | --enable-mem_tracing create code with memory tracing | |
884 | --enable-profile create code with profiling information | |
885 | --enable-no_rtti create code without RTTI information | |
886 | --enable-no_exceptions create code without C++ exceptions handling | |
887 | --enable-permissive compile code disregarding strict ANSI | |
888 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
889 | --enable-compat22 enable wxWindows 2.2 compatibility |
890 | --disable-compat24 disable wxWindows 2.4 compatibility | |
891 | --enable-rpath=DIR output the rpath flag from wx-config | |
892 | --enable-intl use internationalization system | |
893 | --enable-config use wxConfig (and derived) classes | |
894 | --enable-protocols use wxProtocol and derived classes | |
895 | --enable-ftp use wxFTP (requires wxProtocol | |
896 | --enable-http use wxHTTP (requires wxProtocol | |
897 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
898 | --enable-sockets use socket/network classes | |
e46d2a18 | 899 | --enable-ole use OLE classes (Win32 only) |
e6cc62c6 VS |
900 | --enable-dataobj use data object classes |
901 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e46d2a18 VS |
902 | --enable-apple_ieee use the Apple IEEE codec |
903 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
e6cc62c6 VS |
904 | --enable-cmdline use wxCmdLineParser class |
905 | --enable-datetime use wxDateTime class | |
e6cc62c6 | 906 | --enable-dialupman use dialup network classes |
e6cc62c6 VS |
907 | --enable-dynlib use wxLibrary class for DLL loading |
908 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
e46d2a18 VS |
909 | --enable-exceptions build exception-safe library |
910 | --enable-ffile use wxFFile class | |
911 | --enable-file use wxFile class | |
912 | --enable-filesystem use virtual file systems classes | |
913 | --enable-fontmap use font encodings conversion classes | |
914 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
915 | --enable-fs_zip use virtual ZIP filesystems | |
e6cc62c6 VS |
916 | --enable-geometry use geometry class |
917 | --enable-log use logging system | |
e46d2a18 VS |
918 | --enable-longlong use wxLongLong class |
919 | --enable-mimetype use wxMimeTypesManager | |
920 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
921 | --enable-snglinst use wxSingleInstanceChecker class | |
e6cc62c6 | 922 | --enable-streams use wxStream etc classes |
e46d2a18 VS |
923 | --enable-std_iostreams use standard C++ stream classes |
924 | --enable-stopwatch use wxStopWatch class | |
925 | --enable-sysoptions use wxSystemOptions | |
e6cc62c6 VS |
926 | --enable-textbuf use wxTextBuffer class |
927 | --enable-textfile use wxTextFile class | |
e46d2a18 | 928 | --enable-timer use wxTimer class |
e6cc62c6 | 929 | --enable-unicode compile wxString with Unicode support |
e46d2a18 | 930 | --enable-wave use wxWave class |
e6cc62c6 | 931 | --enable-wxprintfv use wxWindows implementation of vprintf() |
e6cc62c6 | 932 | --enable-zipstream use wxZipInputStream |
7015ef3a | 933 | --enable-gzstream use wxGzipInputStream |
e6cc62c6 VS |
934 | --enable-url use wxURL class |
935 | --enable-protocol use wxProtocol class | |
936 | --enable-protocol-http HTTP support in wxProtocol | |
937 | --enable-protocol-ftp FTP support in wxProtocol | |
938 | --enable-protocol-file FILE support in wxProtocol | |
939 | --enable-threads use threads | |
940 | --enable-docview use document view architecture | |
941 | --enable-help use help subsystem | |
942 | --enable-mshtmlhelp use MS HTML Help (win32) | |
943 | --enable-html use wxHTML sub-library | |
944 | --enable-htmlhelp use wxHTML-based help | |
945 | --enable-constraints use layout-constraints system | |
946 | --enable-printarch use printing architecture | |
947 | --enable-mdi use multiple document interface architecture | |
948 | --enable-loggui use standard GUI logger | |
949 | --enable-logwin use wxLogWindow | |
950 | --enable-logdialog use wxLogDialog | |
951 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
952 | --enable-prologio not available; see contrib | |
953 | --enable-resources not available; see contrib | |
954 | --enable-clipboard use wxClipboard class | |
955 | --enable-dnd use Drag'n'Drop classes | |
956 | --enable-metafile use win32 metafiles | |
957 | --enable-controls use all usual controls | |
958 | --enable-accel use accelerators | |
959 | --enable-button use wxButton class | |
960 | --enable-bmpbutton use wxBitmapButton class | |
961 | --enable-calendar use wxCalendarCtrl class | |
962 | --enable-caret use wxCaret class | |
963 | --enable-checkbox use wxCheckBox class | |
964 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
965 | --enable-choice use wxChoice class | |
966 | --enable-combobox use wxComboBox class | |
967 | --enable-display use wxDisplay class | |
968 | --enable-gauge use wxGauge class | |
969 | --enable-grid use wxGrid class | |
970 | --enable-imaglist use wxImageList class | |
0e012a93 | 971 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
972 | --enable-listbox use wxListBox class |
973 | --enable-listctrl use wxListCtrl class | |
974 | --enable-notebook use wxNotebook class | |
975 | --enable-radiobox use wxRadioBox class | |
976 | --enable-radiobtn use wxRadioButton class | |
977 | --enable-sash use wxSashWindow class | |
978 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
979 | --enable-slider use wxSlider class | |
980 | --enable-spinbtn use wxSpinButton class | |
981 | --enable-spinctrl use wxSpinCtrl class | |
982 | --enable-splitter use wxSplitterWindow class | |
983 | --enable-statbmp use wxStaticBitmap class | |
984 | --enable-statbox use wxStaticBox class | |
985 | --enable-statline use wxStaticLine class | |
986 | --enable-stattext use wxStaticText class | |
987 | --enable-statusbar use wxStatusBar class | |
988 | --enable-tabdialog use wxTabControl class | |
989 | --enable-textctrl use wxTextCtrl class | |
990 | --enable-togglebtn use wxToggleButton class | |
991 | --enable-toolbar use wxToolBar class | |
992 | --enable-tbarnative use native wxToolBar class | |
993 | --enable-tbarsmpl use wxToolBarSimple class | |
994 | --enable-treectrl use wxTreeCtrl class | |
995 | --enable-tipwindow use wxTipWindow class | |
996 | --enable-popupwin use wxPopUpWindow class | |
997 | --enable-commondlg use all common dialogs | |
998 | --enable-choicedlg use wxChoiceDialog | |
999 | --enable-coldlg use wxColourDialog | |
1000 | --enable-filedlg use wxFileDialog | |
1001 | --enable-finddlg use wxFindReplaceDialog | |
1002 | --enable-fontdlg use wxFontDialog | |
1003 | --enable-dirdlg use wxDirDialog | |
1004 | --enable-msgdlg use wxMessageDialog | |
1005 | --enable-numberdlg use wxNumberEntryDialog | |
1006 | --enable-splash use wxSplashScreen | |
1007 | --enable-textdlg use wxTextDialog | |
1008 | --enable-tipdlg use startup tips | |
1009 | --enable-progressdlg use wxProgressDialog | |
1010 | --enable-wizarddlg use wxWizard | |
1011 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1012 | --enable-miniframe use wxMiniFrame class | |
1013 | --enable-tooltips use wxToolTip class | |
1014 | --enable-splines use spline drawing code | |
1015 | --enable-validators use wxValidator and derived classes | |
1016 | --enable-busyinfo use wxBusyInfo | |
1017 | --enable-joystick use wxJoystick (Linux only) | |
1018 | --enable-metafiles use wxMetaFile (Windows only) | |
1019 | --enable-dragimage use wxDragImage | |
1020 | --enable-accessibility enable accessibility support | |
1021 | --enable-palette use wxPalette class | |
1022 | --enable-image use wxImage class | |
1023 | --enable-gif use gif images (GIF file format) | |
1024 | --enable-pcx use pcx images (PCX file format) | |
1025 | --enable-iff use iff images (IFF file format) | |
1026 | --enable-pnm use pnm images (PNM file format) | |
1027 | --enable-xpm use xpm images (XPM file format) | |
1028 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1029 | --enable-official_build official build of wxWindows (win32 DLL only) |
1030 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1031 | --disable-largefile omit support for large files |
1032 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1033 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1034 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1035 | |
1036 | Optional Packages: | |
1037 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1038 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1039 | --with-gtk use GTK+ | |
1040 | --with-motif use Motif/Lesstif | |
1041 | --with-mac use Mac OS X | |
1042 | --with-cocoa use Cocoa | |
1043 | --with-wine use Wine | |
1044 | --with-msw use MS-Windows | |
1045 | --with-pm use OS/2 Presentation Manager | |
1046 | --with-mgl use SciTech MGL | |
1047 | --with-microwin use MicroWindows | |
1048 | --with-x11 use X11 | |
1049 | --with-libpng use libpng (PNG image format) | |
1050 | --with-libjpeg use libjpeg (JPEG file format) | |
1051 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1052 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1053 | --with-libmspack use libmspack (CHM help files loading) |
e6cc62c6 VS |
1054 | --with-opengl use OpenGL (or Mesa) |
1055 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1056 | --with-regex enable support for wxRegEx class | |
1057 | --with-zlib use zlib for LZW compression | |
1058 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1059 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1060 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1061 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1062 | --with-x use the X Window System | |
1063 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1064 | ||
1065 | Some influential environment variables: | |
1066 | CC C compiler command | |
1067 | CFLAGS C compiler flags | |
1068 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1069 | nonstandard directory <lib dir> | |
1070 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1071 | headers in a nonstandard directory <include dir> | |
1072 | CPP C preprocessor | |
1073 | CXX C++ compiler command | |
1074 | CXXFLAGS C++ compiler flags | |
1075 | CXXCPP C++ preprocessor | |
1076 | ||
1077 | Use these variables to override the choices made by `configure' or to help | |
1078 | it to find libraries and programs with nonstandard names/locations. | |
1079 | ||
1080 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1081 | _ACEOF | |
1082 | fi | |
1083 | ||
1084 | if test "$ac_init_help" = "recursive"; then | |
1085 | # If there are subdirs, report their specific --help. | |
1086 | ac_popdir=`pwd` | |
1087 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1088 | test -d $ac_dir || continue | |
1089 | ac_builddir=. | |
1090 | ||
1091 | if test "$ac_dir" != .; then | |
1092 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1093 | # A "../" for each directory in $ac_dir_suffix. | |
1094 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1095 | else | |
1096 | ac_dir_suffix= ac_top_builddir= | |
1097 | fi | |
1098 | ||
1099 | case $srcdir in | |
1100 | .) # No --srcdir option. We are building in place. | |
1101 | ac_srcdir=. | |
1102 | if test -z "$ac_top_builddir"; then | |
1103 | ac_top_srcdir=. | |
1104 | else | |
1105 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1106 | fi ;; | |
1107 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1108 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1109 | ac_top_srcdir=$srcdir ;; | |
1110 | *) # Relative path. | |
1111 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1112 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1113 | esac | |
f95e4495 VS |
1114 | |
1115 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1116 | # the directories may not exist. | |
1117 | case `pwd` in | |
1118 | .) ac_abs_builddir="$ac_dir";; | |
1119 | *) | |
1120 | case "$ac_dir" in | |
1121 | .) ac_abs_builddir=`pwd`;; | |
1122 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1123 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1124 | esac;; | |
1125 | esac | |
1126 | case $ac_abs_builddir in | |
1127 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1128 | *) | |
1129 | case ${ac_top_builddir}. in | |
1130 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1131 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1132 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1133 | esac;; | |
1134 | esac | |
1135 | case $ac_abs_builddir in | |
1136 | .) ac_abs_srcdir=$ac_srcdir;; | |
1137 | *) | |
1138 | case $ac_srcdir in | |
1139 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1140 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1141 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1142 | esac;; | |
1143 | esac | |
1144 | case $ac_abs_builddir in | |
1145 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1146 | *) | |
1147 | case $ac_top_srcdir in | |
1148 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1149 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1150 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1151 | esac;; | |
1152 | esac | |
e6cc62c6 VS |
1153 | |
1154 | cd $ac_dir | |
1155 | # Check for guested configure; otherwise get Cygnus style configure. | |
1156 | if test -f $ac_srcdir/configure.gnu; then | |
1157 | echo | |
1158 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1159 | elif test -f $ac_srcdir/configure; then | |
1160 | echo | |
1161 | $SHELL $ac_srcdir/configure --help=recursive | |
1162 | elif test -f $ac_srcdir/configure.ac || | |
f95e4495 | 1163 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1164 | echo |
1165 | $ac_configure --help | |
1166 | else | |
1167 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1168 | fi | |
1169 | cd $ac_popdir | |
1170 | done | |
1171 | fi | |
8284b0c5 | 1172 | |
e6cc62c6 VS |
1173 | test -n "$ac_init_help" && exit 0 |
1174 | if $ac_init_version; then | |
1175 | cat <<\_ACEOF | |
e46d2a18 | 1176 | wxWindows configure 2.5.1 |
f95e4495 | 1177 | generated by GNU Autoconf 2.59 |
10f2d63a | 1178 | |
f95e4495 | 1179 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
1180 | This configure script is free software; the Free Software Foundation |
1181 | gives unlimited permission to copy, distribute and modify it. | |
1182 | _ACEOF | |
1183 | exit 0 | |
7c66a493 | 1184 | fi |
e6cc62c6 VS |
1185 | exec 5>config.log |
1186 | cat >&5 <<_ACEOF | |
1187 | This file contains any messages produced by compilers while | |
1188 | running configure, to aid debugging if configure makes a mistake. | |
1189 | ||
e46d2a18 | 1190 | It was created by wxWindows $as_me 2.5.1, which was |
f95e4495 | 1191 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
1192 | |
1193 | $ $0 $@ | |
1194 | ||
1195 | _ACEOF | |
1196 | { | |
1197 | cat <<_ASUNAME | |
1198 | ## --------- ## | |
1199 | ## Platform. ## | |
1200 | ## --------- ## | |
1201 | ||
1202 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1203 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1204 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1205 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1206 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1207 | ||
1208 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1209 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1210 | ||
1211 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1212 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1213 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1214 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1215 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1216 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1217 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1218 | ||
1219 | _ASUNAME | |
1220 | ||
1221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1222 | for as_dir in $PATH | |
1223 | do | |
1224 | IFS=$as_save_IFS | |
1225 | test -z "$as_dir" && as_dir=. | |
1226 | echo "PATH: $as_dir" | |
1227 | done | |
1228 | ||
1229 | } >&5 | |
1230 | ||
1231 | cat >&5 <<_ACEOF | |
1232 | ||
1233 | ||
1234 | ## ----------- ## | |
1235 | ## Core tests. ## | |
1236 | ## ----------- ## | |
1237 | ||
1238 | _ACEOF | |
1239 | ||
1240 | ||
1241 | # Keep a trace of the command line. | |
1242 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1243 | # Strip out --silent because we don't want to record it for future runs. | |
1244 | # Also quote any args containing shell meta-characters. | |
1245 | # Make two passes to allow for proper duplicate-argument suppression. | |
1246 | ac_configure_args= | |
1247 | ac_configure_args0= | |
1248 | ac_configure_args1= | |
1249 | ac_sep= | |
1250 | ac_must_keep_next=false | |
1251 | for ac_pass in 1 2 | |
1252 | do | |
1253 | for ac_arg | |
1254 | do | |
1255 | case $ac_arg in | |
1256 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1257 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1258 | | -silent | --silent | --silen | --sile | --sil) | |
1259 | continue ;; | |
1260 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1261 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1262 | esac | |
1263 | case $ac_pass in | |
1264 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1265 | 2) | |
1266 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1267 | if test $ac_must_keep_next = true; then | |
f95e4495 | 1268 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1269 | else |
f95e4495 VS |
1270 | case $ac_arg in |
1271 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1272 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1273 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1274 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1275 | case "$ac_configure_args0 " in | |
1276 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1277 | esac | |
1278 | ;; | |
1279 | -* ) ac_must_keep_next=true ;; | |
1280 | esac | |
e6cc62c6 VS |
1281 | fi |
1282 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1283 | # Get rid of the leading space. | |
1284 | ac_sep=" " | |
1285 | ;; | |
1286 | esac | |
1287 | done | |
1288 | done | |
1289 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1290 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1291 | ||
1292 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1293 | # config.log. We remove comments because anyway the quotes in there | |
1294 | # would cause problems or look ugly. | |
1295 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1296 | # such as our DU 5.0 friend, will then `close' the trap. | |
1297 | trap 'exit_status=$? | |
1298 | # Save into config.log some information that might help in debugging. | |
1299 | { | |
1300 | echo | |
1301 | ||
1302 | cat <<\_ASBOX | |
1303 | ## ---------------- ## | |
1304 | ## Cache variables. ## | |
1305 | ## ---------------- ## | |
1306 | _ASBOX | |
1307 | echo | |
1308 | # The following way of writing the cache mishandles newlines in values, | |
1309 | { | |
1310 | (set) 2>&1 | | |
1311 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1312 | *ac_space=\ *) | |
1313 | sed -n \ | |
f95e4495 VS |
1314 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1316 | ;; |
1317 | *) | |
1318 | sed -n \ | |
f95e4495 | 1319 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1320 | ;; |
1321 | esac; | |
1322 | } | |
1323 | echo | |
1324 | ||
1325 | cat <<\_ASBOX | |
1326 | ## ----------------- ## | |
1327 | ## Output variables. ## | |
1328 | ## ----------------- ## | |
1329 | _ASBOX | |
1330 | echo | |
1331 | for ac_var in $ac_subst_vars | |
1332 | do | |
1333 | eval ac_val=$`echo $ac_var` | |
1334 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1335 | done | sort | |
1336 | echo | |
1337 | ||
1338 | if test -n "$ac_subst_files"; then | |
1339 | cat <<\_ASBOX | |
1340 | ## ------------- ## | |
1341 | ## Output files. ## | |
1342 | ## ------------- ## | |
1343 | _ASBOX | |
1344 | echo | |
1345 | for ac_var in $ac_subst_files | |
1346 | do | |
1347 | eval ac_val=$`echo $ac_var` | |
f95e4495 | 1348 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1349 | done | sort |
1350 | echo | |
1351 | fi | |
1352 | ||
1353 | if test -s confdefs.h; then | |
1354 | cat <<\_ASBOX | |
1355 | ## ----------- ## | |
1356 | ## confdefs.h. ## | |
1357 | ## ----------- ## | |
1358 | _ASBOX | |
1359 | echo | |
1360 | sed "/^$/d" confdefs.h | sort | |
1361 | echo | |
1362 | fi | |
1363 | test "$ac_signal" != 0 && | |
1364 | echo "$as_me: caught signal $ac_signal" | |
1365 | echo "$as_me: exit $exit_status" | |
1366 | } >&5 | |
f95e4495 | 1367 | rm -f core *.core && |
e6cc62c6 VS |
1368 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1369 | exit $exit_status | |
1370 | ' 0 | |
1371 | for ac_signal in 1 2 13 15; do | |
1372 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1373 | done | |
1374 | ac_signal=0 | |
1375 | ||
1376 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1377 | rm -rf conftest* confdefs.h | |
1378 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1379 | echo >confdefs.h | |
1380 | ||
1381 | # Predefined preprocessor variables. | |
1382 | ||
1383 | cat >>confdefs.h <<_ACEOF | |
1384 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1385 | _ACEOF | |
1386 | ||
1387 | ||
1388 | cat >>confdefs.h <<_ACEOF | |
1389 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1390 | _ACEOF | |
1391 | ||
1392 | ||
1393 | cat >>confdefs.h <<_ACEOF | |
1394 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1395 | _ACEOF | |
1396 | ||
1397 | ||
1398 | cat >>confdefs.h <<_ACEOF | |
1399 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1400 | _ACEOF | |
1401 | ||
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | # Let the site file select an alternate cache file if it wants to. | |
1409 | # Prefer explicitly selected file to automatically selected ones. | |
1410 | if test -z "$CONFIG_SITE"; then | |
1411 | if test "x$prefix" != xNONE; then | |
1412 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1413 | else | |
1414 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1415 | fi | |
1416 | fi | |
1417 | for ac_site_file in $CONFIG_SITE; do | |
1418 | if test -r "$ac_site_file"; then | |
1419 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1420 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1421 | sed 's/^/| /' "$ac_site_file" >&5 | |
1422 | . "$ac_site_file" | |
1423 | fi | |
1424 | done | |
1425 | ||
1426 | if test -r "$cache_file"; then | |
1427 | # Some versions of bash will fail to source /dev/null (special | |
1428 | # files actually), so we avoid doing that. | |
1429 | if test -f "$cache_file"; then | |
1430 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1431 | echo "$as_me: loading cache $cache_file" >&6;} | |
1432 | case $cache_file in | |
1433 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1434 | *) . ./$cache_file;; | |
1435 | esac | |
1436 | fi | |
1437 | else | |
1438 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1439 | echo "$as_me: creating cache $cache_file" >&6;} | |
1440 | >$cache_file | |
1441 | fi | |
1442 | ||
1443 | # Check that the precious variables saved in the cache have kept the same | |
1444 | # value. | |
1445 | ac_cache_corrupted=false | |
1446 | for ac_var in `(set) 2>&1 | | |
f95e4495 | 1447 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1448 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1449 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1450 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1451 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1452 | case $ac_old_set,$ac_new_set in | |
1453 | set,) | |
1454 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1455 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1456 | ac_cache_corrupted=: ;; | |
1457 | ,set) | |
1458 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1459 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1460 | ac_cache_corrupted=: ;; | |
1461 | ,);; | |
1462 | *) | |
1463 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
f95e4495 | 1464 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1465 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
f95e4495 | 1466 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1467 | echo "$as_me: former value: $ac_old_val" >&2;} |
f95e4495 | 1468 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1469 | echo "$as_me: current value: $ac_new_val" >&2;} |
f95e4495 | 1470 | ac_cache_corrupted=: |
e6cc62c6 VS |
1471 | fi;; |
1472 | esac | |
1473 | # Pass precious variables to config.status. | |
1474 | if test "$ac_new_set" = set; then | |
1475 | case $ac_new_val in | |
1476 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1477 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1478 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1479 | esac | |
1480 | case " $ac_configure_args " in | |
1481 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1482 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1483 | esac | |
1484 | fi | |
1485 | done | |
1486 | if $ac_cache_corrupted; then | |
1487 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1488 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1489 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1490 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1491 | { (exit 1); exit 1; }; } | |
1492 | fi | |
1493 | ||
1494 | ac_ext=c | |
1495 | ac_cpp='$CPP $CPPFLAGS' | |
1496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
698dcdb6 | 1516 | |
8284b0c5 | 1517 | |
7c66a493 | 1518 | |
a0b9e27f MB |
1519 | |
1520 | ||
a0b9e27f | 1521 | |
a0b9e27f | 1522 | |
a0b9e27f | 1523 | |
a0b9e27f | 1524 | |
a0b9e27f | 1525 | |
a0b9e27f | 1526 | |
e6cc62c6 VS |
1527 | |
1528 | ||
1529 | ac_aux_dir= | |
1530 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1531 | if test -f $ac_dir/install-sh; then | |
1532 | ac_aux_dir=$ac_dir | |
1533 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1534 | break | |
1535 | elif test -f $ac_dir/install.sh; then | |
1536 | ac_aux_dir=$ac_dir | |
1537 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1538 | break | |
1539 | elif test -f $ac_dir/shtool; then | |
1540 | ac_aux_dir=$ac_dir | |
1541 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1542 | break | |
1543 | fi | |
1544 | done | |
1545 | if test -z "$ac_aux_dir"; then | |
1546 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1547 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1548 | { (exit 1); exit 1; }; } | |
1549 | fi | |
1550 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1551 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1552 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1553 | ||
1554 | # Make sure we can run config.sub. | |
1555 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1556 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1557 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1558 | { (exit 1); exit 1; }; } | |
1559 | ||
1560 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1561 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1562 | if test "${ac_cv_build+set}" = set; then | |
1563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1564 | else | |
1565 | ac_cv_build_alias=$build_alias | |
1566 | test -z "$ac_cv_build_alias" && | |
1567 | ac_cv_build_alias=`$ac_config_guess` | |
1568 | test -z "$ac_cv_build_alias" && | |
1569 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1570 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1571 | { (exit 1); exit 1; }; } | |
1572 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1573 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1574 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1575 | { (exit 1); exit 1; }; } | |
1576 | ||
1577 | fi | |
1578 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1579 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1580 | build=$ac_cv_build | |
1581 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1582 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1583 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1584 | ||
1585 | ||
1586 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1587 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1588 | if test "${ac_cv_host+set}" = set; then | |
1589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1590 | else | |
1591 | ac_cv_host_alias=$host_alias | |
1592 | test -z "$ac_cv_host_alias" && | |
1593 | ac_cv_host_alias=$ac_cv_build_alias | |
1594 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1595 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1596 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1597 | { (exit 1); exit 1; }; } | |
1598 | ||
1599 | fi | |
1600 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1601 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1602 | host=$ac_cv_host | |
1603 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1604 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1605 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1606 | ||
1607 | ||
1608 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1609 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1610 | if test "${ac_cv_target+set}" = set; then | |
1611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1612 | else | |
1613 | ac_cv_target_alias=$target_alias | |
1614 | test "x$ac_cv_target_alias" = "x" && | |
1615 | ac_cv_target_alias=$ac_cv_host_alias | |
1616 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1617 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1618 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1619 | { (exit 1); exit 1; }; } | |
1620 | ||
1621 | fi | |
1622 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1623 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1624 | target=$ac_cv_target | |
1625 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1626 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1627 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1628 | ||
1629 | ||
1630 | # The aliases save the names the user supplied, while $host etc. | |
1631 | # will get canonicalized. | |
1632 | test -n "$target_alias" && | |
7c66a493 VZ |
1633 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1634 | NONENONEs,x,x, && | |
1635 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1636 | |
1637 | ||
a0b9e27f | 1638 | |
10f2d63a | 1639 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1640 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1641 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1642 | |
10f2d63a | 1643 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1644 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1645 | |
978f1259 RL |
1646 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1647 | ||
7015ef3a | 1648 | WX_CURRENT=1 |
6426998c RL |
1649 | WX_REVISION=0 |
1650 | WX_AGE=0 | |
1651 | ||
8284b0c5 MB |
1652 | |
1653 | ||
10f2d63a | 1654 | USE_UNIX=1 |
73d617c9 | 1655 | USE_OS2=0 |
10f2d63a | 1656 | USE_WIN32=0 |
f9bc1684 | 1657 | USE_DOS=0 |
b12915c1 | 1658 | USE_BEOS=0 |
1216f52d | 1659 | USE_MAC=0 |
b12915c1 | 1660 | |
10f2d63a | 1661 | USE_AIX= |
fe0895cf VS |
1662 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1663 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1664 | USE_LINUX= |
f6bcfd97 | 1665 | USE_NETBSD= |
89e3b3e4 | 1666 | USE_OPENBSD= |
fe0895cf VS |
1667 | USE_OSF= USE_SGI= |
1668 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1669 | USE_ULTRIX= |
89e3b3e4 VZ |
1670 | USE_UNIXWARE= |
1671 | ||
1672 | USE_ALPHA= | |
10f2d63a | 1673 | |
ab9b9eab VZ |
1674 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1675 | ||
ac0c4cc3 | 1676 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1677 | |
ac0c4cc3 | 1678 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1679 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1680 | DEFAULT_wxUSE_MAC=0 |
1681 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1682 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1683 | DEFAULT_wxUSE_MOTIF=0 |
1684 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1685 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1686 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1687 | |
ac0c4cc3 | 1688 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1689 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1690 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1691 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1692 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1693 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1694 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1695 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1696 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1697 | |
d6a55c4b | 1698 | PROGRAM_EXT= |
3a922bb4 | 1699 | SO_SUFFIX=so |
fe0895cf | 1700 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1701 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1702 | |
10f2d63a VZ |
1703 | case "${host}" in |
1704 | *-hp-hpux* ) | |
1705 | USE_HPUX=1 | |
1706 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1707 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1708 | SO_SUFFIX=sl |
e6cc62c6 | 1709 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1710 | #define __HPUX__ 1 |
e6cc62c6 | 1711 | _ACEOF |
10f2d63a VZ |
1712 | |
1713 | ;; | |
1714 | *-*-linux* ) | |
1715 | USE_LINUX=1 | |
e6cc62c6 | 1716 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1717 | #define __LINUX__ 1 |
e6cc62c6 | 1718 | _ACEOF |
10f2d63a VZ |
1719 | |
1720 | TMP=`uname -m` | |
1721 | if test "x$TMP" = "xalpha"; then | |
1722 | USE_ALPHA=1 | |
e6cc62c6 | 1723 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1724 | #define __ALPHA__ 1 |
e6cc62c6 | 1725 | _ACEOF |
fe0895cf VS |
1726 | |
1727 | fi | |
1728 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1729 | ;; | |
1730 | *-*-gnu* ) | |
1731 | USE_GNU=1 | |
e6cc62c6 | 1732 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1733 | #define __GNU__ 1 |
e6cc62c6 | 1734 | _ACEOF |
fe0895cf VS |
1735 | |
1736 | TMP=`uname -m` | |
1737 | if test "x$TMP" = "xalpha"; then | |
1738 | USE_ALPHA=1 | |
e6cc62c6 | 1739 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1740 | #define __ALPHA__ 1 |
e6cc62c6 | 1741 | _ACEOF |
10f2d63a VZ |
1742 | |
1743 | fi | |
1744 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1745 | ;; | |
1746 | *-*-irix5* | *-*-irix6* ) | |
1747 | USE_SGI=1 | |
1748 | USE_SVR4=1 | |
e6cc62c6 | 1749 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1750 | #define __SGI__ 1 |
e6cc62c6 | 1751 | _ACEOF |
10f2d63a | 1752 | |
e6cc62c6 | 1753 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1754 | #define __SVR4__ 1 |
e6cc62c6 | 1755 | _ACEOF |
10f2d63a VZ |
1756 | |
1757 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1758 | ;; | |
1759 | *-*-solaris2* ) | |
1760 | USE_SUN=1 | |
1761 | USE_SOLARIS=1 | |
1762 | USE_SVR4=1 | |
e6cc62c6 | 1763 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1764 | #define __SUN__ 1 |
e6cc62c6 | 1765 | _ACEOF |
10f2d63a | 1766 | |
e6cc62c6 | 1767 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1768 | #define __SOLARIS__ 1 |
e6cc62c6 | 1769 | _ACEOF |
10f2d63a | 1770 | |
e6cc62c6 | 1771 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1772 | #define __SVR4__ 1 |
e6cc62c6 | 1773 | _ACEOF |
10f2d63a VZ |
1774 | |
1775 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1776 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1777 | ;; |
1778 | *-*-sunos4* ) | |
1779 | USE_SUN=1 | |
1780 | USE_SUNOS=1 | |
1781 | USE_BSD=1 | |
e6cc62c6 | 1782 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1783 | #define __SUN__ 1 |
e6cc62c6 | 1784 | _ACEOF |
10f2d63a | 1785 | |
e6cc62c6 | 1786 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1787 | #define __SUNOS__ 1 |
e6cc62c6 | 1788 | _ACEOF |
10f2d63a | 1789 | |
e6cc62c6 | 1790 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1791 | #define __BSD__ 1 |
e6cc62c6 | 1792 | _ACEOF |
10f2d63a VZ |
1793 | |
1794 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1795 | ;; | |
f6bcfd97 | 1796 | *-*-freebsd*) |
10f2d63a VZ |
1797 | USE_BSD=1 |
1798 | USE_FREEBSD=1 | |
e6cc62c6 | 1799 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1800 | #define __FREEBSD__ 1 |
e6cc62c6 | 1801 | _ACEOF |
10f2d63a | 1802 | |
e6cc62c6 | 1803 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1804 | #define __BSD__ 1 |
e6cc62c6 | 1805 | _ACEOF |
95c8801c VS |
1806 | |
1807 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1808 | ;; | |
1809 | *-*-openbsd*) | |
1810 | USE_BSD=1 | |
1811 | USE_OPENBSD=1 | |
e6cc62c6 | 1812 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1813 | #define __OPENBSD__ 1 |
e6cc62c6 | 1814 | _ACEOF |
95c8801c | 1815 | |
e6cc62c6 | 1816 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1817 | #define __BSD__ 1 |
e6cc62c6 | 1818 | _ACEOF |
f6bcfd97 BP |
1819 | |
1820 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1821 | ;; | |
1822 | *-*-netbsd*) | |
1823 | USE_BSD=1 | |
1824 | USE_NETBSD=1 | |
e6cc62c6 | 1825 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1826 | #define __NETBSD__ 1 |
e6cc62c6 | 1827 | _ACEOF |
f6bcfd97 | 1828 | |
e6cc62c6 | 1829 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1830 | #define __BSD__ 1 |
e6cc62c6 | 1831 | _ACEOF |
10f2d63a VZ |
1832 | |
1833 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1834 | ;; | |
1835 | *-*-osf* ) | |
1836 | USE_ALPHA=1 | |
1837 | USE_OSF=1 | |
e6cc62c6 | 1838 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1839 | #define __ALPHA__ 1 |
e6cc62c6 | 1840 | _ACEOF |
10f2d63a | 1841 | |
e6cc62c6 | 1842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1843 | #define __OSF__ 1 |
e6cc62c6 | 1844 | _ACEOF |
10f2d63a VZ |
1845 | |
1846 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1847 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1848 | ;; |
1849 | *-*-dgux5* ) | |
1850 | USE_ALPHA=1 | |
1851 | USE_SVR4=1 | |
e6cc62c6 | 1852 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1853 | #define __ALPHA__ 1 |
e6cc62c6 | 1854 | _ACEOF |
10f2d63a | 1855 | |
e6cc62c6 | 1856 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1857 | #define __SVR4__ 1 |
e6cc62c6 | 1858 | _ACEOF |
10f2d63a VZ |
1859 | |
1860 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1861 | ;; | |
1862 | *-*-sysv5* ) | |
1863 | USE_SYSV=1 | |
1864 | USE_SVR4=1 | |
e6cc62c6 | 1865 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1866 | #define __SYSV__ 1 |
e6cc62c6 | 1867 | _ACEOF |
10f2d63a | 1868 | |
e6cc62c6 | 1869 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1870 | #define __SVR4__ 1 |
e6cc62c6 | 1871 | _ACEOF |
10f2d63a VZ |
1872 | |
1873 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1874 | ;; | |
1875 | *-*-aix* ) | |
1876 | USE_AIX=1 | |
1877 | USE_SYSV=1 | |
1878 | USE_SVR4=1 | |
2b5f62a0 | 1879 | SO_SUFFIX=a |
e6cc62c6 | 1880 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1881 | #define __AIX__ 1 |
e6cc62c6 | 1882 | _ACEOF |
10f2d63a | 1883 | |
e6cc62c6 | 1884 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1885 | #define __SYSV__ 1 |
e6cc62c6 | 1886 | _ACEOF |
10f2d63a | 1887 | |
e6cc62c6 | 1888 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1889 | #define __SVR4__ 1 |
e6cc62c6 | 1890 | _ACEOF |
10f2d63a VZ |
1891 | |
1892 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1893 | ;; | |
1894 | ||
89e3b3e4 VZ |
1895 | *-*-*UnixWare*) |
1896 | USE_SYSV=1 | |
1897 | USE_SVR4=1 | |
1898 | USE_UNIXWARE=1 | |
e6cc62c6 | 1899 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1900 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1901 | _ACEOF |
89e3b3e4 VZ |
1902 | |
1903 | ;; | |
1904 | ||
1c8183e2 | 1905 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1906 | SO_SUFFIX=dll |
cf27ef00 | 1907 | PROGRAM_EXT=".exe" |
7b7a7637 | 1908 | RESCOMP=windres |
10f2d63a VZ |
1909 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1910 | ;; | |
1911 | ||
f9bc1684 VS |
1912 | *-pc-msdosdjgpp ) |
1913 | USE_UNIX=0 | |
1914 | USE_DOS=1 | |
e6cc62c6 | 1915 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1916 | #define __DOS__ 1 |
e6cc62c6 | 1917 | _ACEOF |
f9bc1684 VS |
1918 | |
1919 | PROGRAM_EXT=".exe" | |
1920 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1921 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1922 | ;; |
1923 | ||
6fa882bd | 1924 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1925 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1926 | #define __EMX__ 1 |
e6cc62c6 | 1927 | _ACEOF |
10f2d63a | 1928 | |
73d617c9 | 1929 | USE_OS2=1 |
7015ef3a VZ |
1930 | cat >>confdefs.h <<\_ACEOF |
1931 | #define __OS2__ 1 | |
1932 | _ACEOF | |
1933 | ||
cf27ef00 | 1934 | PROGRAM_EXT=".exe" |
e07802fc | 1935 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1936 | CXX=gcc |
73d617c9 | 1937 | LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals" |
d5fc095c VS |
1938 | ac_executable_extensions=".exe" |
1939 | export ac_executable_extensions | |
1940 | ac_save_IFS="$IFS" | |
e46d2a18 | 1941 | IFS='\\' |
d5fc095c VS |
1942 | ac_TEMP_PATH= |
1943 | for ac_dir in $PATH; do | |
1944 | IFS=$ac_save_IFS | |
1945 | if test -z "$ac_TEMP_PATH"; then | |
1946 | ac_TEMP_PATH="$ac_dir" | |
1947 | else | |
1948 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1949 | fi | |
1950 | done | |
1951 | export PATH="$ac_TEMP_PATH" | |
1952 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1953 | ;; |
1954 | ||
d08b457b GD |
1955 | powerpc-*-darwin* ) |
1956 | USE_BSD=1 | |
f11bdd03 | 1957 | USE_DARWIN=1 |
3a922bb4 | 1958 | SO_SUFFIX=dylib |
e6cc62c6 | 1959 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1960 | #define __BSD__ 1 |
e6cc62c6 | 1961 | _ACEOF |
b4085ce6 | 1962 | |
e6cc62c6 | 1963 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1964 | #define __DARWIN__ 1 |
e6cc62c6 | 1965 | _ACEOF |
d08b457b | 1966 | |
e6cc62c6 | 1967 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1968 | #define __POWERPC__ 1 |
e6cc62c6 | 1969 | _ACEOF |
82d43113 | 1970 | |
e6cc62c6 | 1971 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1972 | #define TARGET_CARBON 1 |
e6cc62c6 | 1973 | _ACEOF |
b4085ce6 GD |
1974 | |
1975 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1976 | ;; | |
1977 | ||
b12915c1 VZ |
1978 | *-*-beos* ) |
1979 | USE_BEOS=1 | |
e6cc62c6 | 1980 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1981 | #define __BEOS__ 1 |
e6cc62c6 | 1982 | _ACEOF |
b12915c1 VZ |
1983 | |
1984 | ;; | |
1985 | ||
10f2d63a | 1986 | *) |
e6cc62c6 VS |
1987 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1988 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1989 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1990 | esac |
1991 | ||
8284b0c5 MB |
1992 | |
1993 | ||
1994 | ||
1995 | wx_arg_cache_file="configarg.cache" | |
1996 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1997 | rm -f ${wx_arg_cache_file}.tmp |
1998 | touch ${wx_arg_cache_file}.tmp | |
1999 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 2000 | |
10f2d63a VZ |
2001 | |
2002 | DEBUG_CONFIGURE=0 | |
2003 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 2004 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2005 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2006 | |
d8356fa3 VZ |
2007 | DEFAULT_wxUSE_NANOX=no |
2008 | ||
10f2d63a VZ |
2009 | DEFAULT_wxUSE_THREADS=yes |
2010 | ||
2011 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 2012 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
2013 | DEFAULT_wxUSE_PROFILE=no |
2014 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2015 | DEFAULT_wxUSE_NO_RTTI=no |
2016 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2017 | DEFAULT_wxUSE_PERMISSIVE=no |
2018 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2019 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2020 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2021 | DEFAULT_wxUSE_MEM_TRACING=no | |
2022 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2023 | DEFAULT_wxUSE_DMALLOC=no | |
2024 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2025 | ||
e46d2a18 | 2026 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 2027 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2028 | DEFAULT_wxUSE_LOGWINDOW=no |
2029 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2030 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2031 | |
2032 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2033 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2034 | |
3e44f09d | 2035 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2036 | DEFAULT_wxUSE_XML=no |
2037 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2038 | DEFAULT_wxUSE_ZLIB=no |
2039 | DEFAULT_wxUSE_LIBPNG=no | |
2040 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2041 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2042 | DEFAULT_wxUSE_LIBXPM=no |
10f2d63a | 2043 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2044 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2045 | |
eb4efbdc | 2046 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2047 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2048 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2049 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2050 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2051 | DEFAULT_wxUSE_TIMER=no |
2052 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2053 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2054 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2055 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2056 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
2057 | DEFAULT_wxUSE_WAVE=no |
2058 | DEFAULT_wxUSE_INTL=no | |
2059 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2060 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2061 | DEFAULT_wxUSE_STREAMS=no |
2062 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2063 | DEFAULT_wxUSE_OLE=no |
2064 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2065 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2066 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2067 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2068 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2069 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2070 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2071 | |
2072 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2073 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2074 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2075 | ||
10f2d63a VZ |
2076 | DEFAULT_wxUSE_CLIPBOARD=no |
2077 | DEFAULT_wxUSE_TOOLTIPS=no | |
2078 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2079 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2080 | DEFAULT_wxUSE_SPLINES=no |
2081 | ||
2082 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2083 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2084 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2085 | ||
10f2d63a VZ |
2086 | DEFAULT_wxUSE_RESOURCES=no |
2087 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2088 | DEFAULT_wxUSE_IPC=no | |
2089 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2090 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2091 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2092 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2093 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2094 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2095 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2096 | DEFAULT_wxUSE_PROTOCOL=no | |
2097 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2098 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2099 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2100 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2101 | |
10f2d63a | 2102 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2103 | DEFAULT_wxUSE_CHOICEDLG=no |
2104 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2105 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2106 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2107 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2108 | DEFAULT_wxUSE_FONTDLG=no |
2109 | DEFAULT_wxUSE_MSGDLG=no | |
2110 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2111 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2112 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2113 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2114 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2115 | DEFAULT_wxUSE_WIZARDDLG=no |
2116 | ||
1e6feb95 | 2117 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2118 | DEFAULT_wxUSE_MINIFRAME=no |
2119 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2120 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2121 | DEFAULT_wxUSE_FS_INET=no |
2122 | DEFAULT_wxUSE_FS_ZIP=no | |
2123 | DEFAULT_wxUSE_BUSYINFO=no | |
2124 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2125 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2126 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2127 | |
2128 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2129 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2130 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2131 | DEFAULT_wxUSE_CALCTRL=no |
2132 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2133 | DEFAULT_wxUSE_CHECKBOX=no |
2134 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2135 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2136 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2137 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2138 | DEFAULT_wxUSE_GAUGE=no |
2139 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2140 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2141 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2142 | DEFAULT_wxUSE_LISTBOX=no |
2143 | DEFAULT_wxUSE_LISTCTRL=no | |
2144 | DEFAULT_wxUSE_NOTEBOOK=no | |
2145 | DEFAULT_wxUSE_RADIOBOX=no | |
2146 | DEFAULT_wxUSE_RADIOBTN=no | |
2147 | DEFAULT_wxUSE_SASH=no | |
2148 | DEFAULT_wxUSE_SCROLLBAR=no | |
2149 | DEFAULT_wxUSE_SLIDER=no | |
2150 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2151 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2152 | DEFAULT_wxUSE_SPLITTER=no |
2153 | DEFAULT_wxUSE_STATBMP=no | |
2154 | DEFAULT_wxUSE_STATBOX=no | |
2155 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2156 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2157 | DEFAULT_wxUSE_STATUSBAR=yes |
2158 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2159 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2160 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2161 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2162 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2163 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2164 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2165 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2166 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2167 | |
2168 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2169 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2170 | DEFAULT_wxUSE_WCSRTOMBS=no |
2171 | ||
edae8572 | 2172 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2173 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2174 | DEFAULT_wxUSE_GIF=no |
2175 | DEFAULT_wxUSE_PCX=no | |
2176 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2177 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2178 | DEFAULT_wxUSE_XPM=no |
658974ae | 2179 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2180 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2181 | |
e9e0dc15 | 2182 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2183 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2184 | else |
1e6feb95 | 2185 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2186 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2187 | |
d8356fa3 VZ |
2188 | DEFAULT_wxUSE_NANOX=no |
2189 | ||
10f2d63a VZ |
2190 | DEFAULT_wxUSE_THREADS=yes |
2191 | ||
2192 | DEFAULT_wxUSE_SHARED=yes | |
2193 | DEFAULT_wxUSE_OPTIMISE=yes | |
2194 | DEFAULT_wxUSE_PROFILE=no | |
2195 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2196 | DEFAULT_wxUSE_NO_RTTI=no |
2197 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2198 | DEFAULT_wxUSE_PERMISSIVE=no |
2199 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2200 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2201 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2202 | DEFAULT_wxUSE_MEM_TRACING=no | |
2203 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2204 | DEFAULT_wxUSE_DMALLOC=no | |
2205 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2206 | ||
e46d2a18 | 2207 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2208 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2209 | DEFAULT_wxUSE_LOGWINDOW=yes |
2210 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2211 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2212 | |
2213 | DEFAULT_wxUSE_GUI=yes | |
2214 | ||
aa2d9ecc | 2215 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2216 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2217 | DEFAULT_wxUSE_EXPAT=yes |
2218 | DEFAULT_wxUSE_ZLIB=yes | |
2219 | DEFAULT_wxUSE_LIBPNG=yes | |
2220 | DEFAULT_wxUSE_LIBJPEG=yes | |
2221 | DEFAULT_wxUSE_LIBTIFF=yes | |
2222 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2223 | DEFAULT_wxUSE_LIBMSPACK=yes |
16b52fa1 | 2224 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2225 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2226 | |
eb4efbdc | 2227 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2228 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2229 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2230 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2231 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2232 | DEFAULT_wxUSE_TIMER=yes |
2233 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2234 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2235 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2236 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2237 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2238 | DEFAULT_wxUSE_WAVE=no |
2239 | DEFAULT_wxUSE_INTL=yes | |
2240 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2241 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2242 | DEFAULT_wxUSE_STREAMS=yes |
2243 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2244 | DEFAULT_wxUSE_OLE=yes |
2245 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2246 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2247 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2248 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2249 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2250 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2251 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2252 | |
2253 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2254 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2255 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2256 | ||
10f2d63a VZ |
2257 | DEFAULT_wxUSE_CLIPBOARD=yes |
2258 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2259 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2260 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2261 | DEFAULT_wxUSE_SPLINES=yes |
2262 | ||
2263 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2264 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2265 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2266 | ||
2b5f62a0 | 2267 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2268 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2269 | DEFAULT_wxUSE_IPC=yes | |
2270 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2271 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2272 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2273 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2274 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2275 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2276 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2277 | DEFAULT_wxUSE_PROTOCOL=yes |
2278 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2279 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2280 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2281 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2282 | |
2283 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2284 | DEFAULT_wxUSE_CHOICEDLG=yes |
2285 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2286 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2287 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2288 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2289 | DEFAULT_wxUSE_FONTDLG=yes |
2290 | DEFAULT_wxUSE_MSGDLG=yes | |
2291 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2292 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2293 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2294 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2295 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2296 | DEFAULT_wxUSE_WIZARDDLG=yes |
2297 | ||
1e6feb95 | 2298 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2299 | DEFAULT_wxUSE_MINIFRAME=yes |
2300 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2301 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2302 | DEFAULT_wxUSE_FS_INET=yes |
2303 | DEFAULT_wxUSE_FS_ZIP=yes | |
2304 | DEFAULT_wxUSE_BUSYINFO=yes | |
2305 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2306 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2307 | DEFAULT_wxUSE_VALIDATORS=yes |
2308 | ||
2309 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2310 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2311 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2312 | DEFAULT_wxUSE_CALCTRL=yes |
2313 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2314 | DEFAULT_wxUSE_CHECKBOX=yes |
2315 | DEFAULT_wxUSE_CHECKLST=yes | |
2316 | DEFAULT_wxUSE_CHOICE=yes | |
2317 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2318 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2319 | DEFAULT_wxUSE_GAUGE=yes |
2320 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2321 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2322 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2323 | DEFAULT_wxUSE_LISTBOX=yes |
2324 | DEFAULT_wxUSE_LISTCTRL=yes | |
2325 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2326 | DEFAULT_wxUSE_RADIOBOX=yes | |
2327 | DEFAULT_wxUSE_RADIOBTN=yes | |
2328 | DEFAULT_wxUSE_SASH=yes | |
2329 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2330 | DEFAULT_wxUSE_SLIDER=yes | |
2331 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2332 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2333 | DEFAULT_wxUSE_SPLITTER=yes |
2334 | DEFAULT_wxUSE_STATBMP=yes | |
2335 | DEFAULT_wxUSE_STATBOX=yes | |
2336 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2337 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2338 | DEFAULT_wxUSE_STATUSBAR=yes |
2339 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2340 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2341 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2342 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2343 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2344 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2345 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2346 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2347 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2348 | |
2349 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2350 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2351 | DEFAULT_wxUSE_WCSRTOMBS=no |
2352 | ||
edae8572 | 2353 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2354 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2355 | DEFAULT_wxUSE_GIF=yes |
2356 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2357 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2358 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2359 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2360 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2361 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2362 | |
e9e0dc15 | 2363 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2364 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2365 | fi |
2366 | ||
8284b0c5 MB |
2367 | |
2368 | ||
10f2d63a | 2369 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2370 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2371 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2372 | has_toolkit_in_cache=1 |
2373 | eval "DEFAULT_$LINE" | |
2374 | eval "CACHE_$toolkit=1" | |
2375 | fi | |
2376 | done | |
2377 | ||
8284b0c5 MB |
2378 | |
2379 | ||
5005acfe | 2380 | enablestring= |
e6cc62c6 VS |
2381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2382 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2383 | no_cache=0 |
2384 | # Check whether --enable-gui or --disable-gui was given. | |
2385 | if test "${enable_gui+set}" = set; then | |
2386 | enableval="$enable_gui" | |
e6cc62c6 | 2387 | |
10f2d63a VZ |
2388 | if test "$enableval" = yes; then |
2389 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2390 | else | |
2391 | ac_cv_use_gui='wxUSE_GUI=no' | |
2392 | fi | |
e6cc62c6 | 2393 | |
10f2d63a | 2394 | else |
e6cc62c6 | 2395 | |
10f2d63a VZ |
2396 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2397 | if test "x$LINE" != x ; then | |
2398 | eval "DEFAULT_$LINE" | |
2399 | else | |
2400 | no_cache=1 | |
2401 | fi | |
2402 | ||
2403 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2404 | |
e6cc62c6 | 2405 | fi; |
10f2d63a VZ |
2406 | |
2407 | eval "$ac_cv_use_gui" | |
2408 | if test "$no_cache" != 1; then | |
2409 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2410 | fi | |
2411 | ||
2412 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2413 | echo "$as_me:$LINENO: result: yes" >&5 |
2414 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2415 | else |
e6cc62c6 VS |
2416 | echo "$as_me:$LINENO: result: no" >&5 |
2417 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2418 | fi |
e6cc62c6 | 2419 | |
10f2d63a | 2420 | |
9747f85d VS |
2421 | enablestring= |
2422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2423 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2424 | no_cache=0 | |
2425 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2426 | if test "${enable_monolithic+set}" = set; then | |
2427 | enableval="$enable_monolithic" | |
2428 | ||
2429 | if test "$enableval" = yes; then | |
2430 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2431 | else | |
2432 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2433 | fi | |
2434 | ||
2435 | else | |
2436 | ||
2437 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2438 | if test "x$LINE" != x ; then | |
2439 | eval "DEFAULT_$LINE" | |
2440 | else | |
2441 | no_cache=1 | |
2442 | fi | |
2443 | ||
2444 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2445 | ||
2446 | fi; | |
2447 | ||
2448 | eval "$ac_cv_use_monolithic" | |
2449 | if test "$no_cache" != 1; then | |
2450 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2451 | fi | |
2452 | ||
2453 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2454 | echo "$as_me:$LINENO: result: yes" >&5 | |
2455 | echo "${ECHO_T}yes" >&6 | |
2456 | else | |
2457 | echo "$as_me:$LINENO: result: no" >&5 | |
2458 | echo "${ECHO_T}no" >&6 | |
2459 | fi | |
2460 | ||
2461 | ||
b12915c1 | 2462 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2463 | |
8284b0c5 | 2464 | |
5005acfe | 2465 | enablestring= |
e6cc62c6 VS |
2466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2467 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2468 | no_cache=0 |
2469 | # Check whether --enable-universal or --disable-universal was given. | |
2470 | if test "${enable_universal+set}" = set; then | |
2471 | enableval="$enable_universal" | |
e6cc62c6 | 2472 | |
1e6feb95 VZ |
2473 | if test "$enableval" = yes; then |
2474 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2475 | else | |
2476 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2477 | fi | |
e6cc62c6 | 2478 | |
1e6feb95 | 2479 | else |
e6cc62c6 | 2480 | |
1e6feb95 VZ |
2481 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2482 | if test "x$LINE" != x ; then | |
2483 | eval "DEFAULT_$LINE" | |
2484 | else | |
2485 | no_cache=1 | |
2486 | fi | |
2487 | ||
2488 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2489 | |
e6cc62c6 | 2490 | fi; |
1e6feb95 VZ |
2491 | |
2492 | eval "$ac_cv_use_universal" | |
2493 | if test "$no_cache" != 1; then | |
2494 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2495 | fi | |
2496 | ||
2497 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2498 | echo "$as_me:$LINENO: result: yes" >&5 |
2499 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2500 | else |
e6cc62c6 VS |
2501 | echo "$as_me:$LINENO: result: no" >&5 |
2502 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2503 | fi |
e6cc62c6 VS |
2504 | |
2505 | ||
10f2d63a VZ |
2506 | # Check whether --with-gtk or --without-gtk was given. |
2507 | if test "${with_gtk+set}" = set; then | |
2508 | withval="$with_gtk" | |
2509 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2510 | fi; |
10f2d63a VZ |
2511 | |
2512 | # Check whether --with-motif or --without-motif was given. | |
2513 | if test "${with_motif+set}" = set; then | |
2514 | withval="$with_motif" | |
2515 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2516 | fi; |
10f2d63a | 2517 | |
b4085ce6 GD |
2518 | # Check whether --with-mac or --without-mac was given. |
2519 | if test "${with_mac+set}" = set; then | |
2520 | withval="$with_mac" | |
2521 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2522 | fi; |
b4085ce6 | 2523 | |
ac0c4cc3 DE |
2524 | # Check whether --with-cocoa or --without-cocoa was given. |
2525 | if test "${with_cocoa+set}" = set; then | |
2526 | withval="$with_cocoa" | |
2527 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2528 | fi; |
ac0c4cc3 | 2529 | |
10f2d63a VZ |
2530 | # Check whether --with-wine or --without-wine was given. |
2531 | if test "${with_wine+set}" = set; then | |
2532 | withval="$with_wine" | |
89e6bf6d | 2533 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2534 | fi; |
10f2d63a | 2535 | |
77e13408 RL |
2536 | # Check whether --with-msw or --without-msw was given. |
2537 | if test "${with_msw+set}" = set; then | |
2538 | withval="$with_msw" | |
b4efce5e | 2539 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2540 | fi; |
10f2d63a | 2541 | |
e07802fc VZ |
2542 | # Check whether --with-pm or --without-pm was given. |
2543 | if test "${with_pm+set}" = set; then | |
2544 | withval="$with_pm" | |
2545 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2546 | fi; |
698dcdb6 | 2547 | |
1e6feb95 VZ |
2548 | # Check whether --with-mgl or --without-mgl was given. |
2549 | if test "${with_mgl+set}" = set; then | |
2550 | withval="$with_mgl" | |
6c657b52 | 2551 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2552 | fi; |
1e6feb95 | 2553 | |
1725144d RR |
2554 | # Check whether --with-microwin or --without-microwin was given. |
2555 | if test "${with_microwin+set}" = set; then | |
2556 | withval="$with_microwin" | |
2557 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2558 | fi; |
1725144d | 2559 | |
f79bd02d JS |
2560 | # Check whether --with-x11 or --without-x11 was given. |
2561 | if test "${with_x11+set}" = set; then | |
2562 | withval="$with_x11" | |
3c011993 | 2563 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2564 | fi; |
a0b9e27f | 2565 | |
5005acfe | 2566 | enablestring= |
e6cc62c6 VS |
2567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2568 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2569 | no_cache=0 |
ba875e66 VZ |
2570 | # Check whether --enable-nanox or --disable-nanox was given. |
2571 | if test "${enable_nanox+set}" = set; then | |
2572 | enableval="$enable_nanox" | |
e6cc62c6 | 2573 | |
d8356fa3 | 2574 | if test "$enableval" = yes; then |
ba875e66 | 2575 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2576 | else |
ba875e66 | 2577 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2578 | fi |
e6cc62c6 | 2579 | |
d8356fa3 | 2580 | else |
e6cc62c6 | 2581 | |
d8356fa3 VZ |
2582 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
ba875e66 | 2589 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2590 | |
e6cc62c6 | 2591 | fi; |
d8356fa3 | 2592 | |
ba875e66 | 2593 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2594 | if test "$no_cache" != 1; then |
ba875e66 | 2595 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2596 | fi |
2597 | ||
2598 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2599 | echo "$as_me:$LINENO: result: yes" >&5 |
2600 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2601 | else |
e6cc62c6 VS |
2602 | echo "$as_me:$LINENO: result: no" >&5 |
2603 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2604 | fi |
e6cc62c6 | 2605 | |
8284b0c5 | 2606 | |
d74f4b5a | 2607 | |
5005acfe | 2608 | enablestring= |
e6cc62c6 VS |
2609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2610 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2611 | no_cache=0 |
2612 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2613 | if test "${enable_gtk2+set}" = set; then |
2614 | enableval="$enable_gtk2" | |
e6cc62c6 | 2615 | |
d74f4b5a VZ |
2616 | if test "$enableval" = yes; then |
2617 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2618 | else | |
2619 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2620 | fi | |
e6cc62c6 | 2621 | |
10f2d63a | 2622 | else |
e6cc62c6 | 2623 | |
d74f4b5a VZ |
2624 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2625 | if test "x$LINE" != x ; then | |
2626 | eval "DEFAULT_$LINE" | |
2627 | else | |
2628 | no_cache=1 | |
2629 | fi | |
2630 | ||
2631 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2632 | |
e6cc62c6 | 2633 | fi; |
328a083c | 2634 | |
d74f4b5a VZ |
2635 | eval "$ac_cv_use_gtk2" |
2636 | if test "$no_cache" != 1; then | |
2637 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2638 | fi | |
2639 | ||
2640 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2641 | echo "$as_me:$LINENO: result: yes" >&5 |
2642 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2643 | else |
e6cc62c6 VS |
2644 | echo "$as_me:$LINENO: result: no" >&5 |
2645 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2646 | fi |
d74f4b5a | 2647 | |
5c6fa7d2 | 2648 | |
e6cc62c6 VS |
2649 | |
2650 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2651 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2652 | no_cache=0 |
e6cc62c6 VS |
2653 | |
2654 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2655 | if test "${with_libpng+set}" = set; then |
2656 | withval="$with_libpng" | |
e6cc62c6 | 2657 | |
10f2d63a | 2658 | if test "$withval" = yes; then |
b12915c1 | 2659 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2660 | elif test "$withval" = no; then |
b12915c1 | 2661 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2662 | elif test "$withval" = sys; then |
2663 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2664 | elif test "$withval" = builtin; then |
2665 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2666 | else |
e6cc62c6 VS |
2667 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2668 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2669 | { (exit 1); exit 1; }; } | |
10f2d63a | 2670 | fi |
e6cc62c6 | 2671 | |
10f2d63a | 2672 | else |
e6cc62c6 | 2673 | |
b12915c1 | 2674 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2675 | if test "x$LINE" != x ; then |
2676 | eval "DEFAULT_$LINE" | |
2677 | else | |
2678 | no_cache=1 | |
2679 | fi | |
2680 | ||
b12915c1 | 2681 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2682 | |
e6cc62c6 | 2683 | fi; |
10f2d63a | 2684 | |
b12915c1 | 2685 | eval "$ac_cv_use_libpng" |
10f2d63a | 2686 | if test "$no_cache" != 1; then |
b12915c1 | 2687 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2688 | fi |
2689 | ||
b12915c1 | 2690 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2691 | echo "$as_me:$LINENO: result: yes" >&5 |
2692 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2693 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2694 | echo "$as_me:$LINENO: result: no" >&5 |
2695 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2696 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2697 | echo "$as_me:$LINENO: result: system version" >&5 |
2698 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2699 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2700 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2701 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2702 | else |
e6cc62c6 VS |
2703 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2704 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2705 | { (exit 1); exit 1; }; } | |
10f2d63a | 2706 | fi |
10f2d63a | 2707 | |
e6cc62c6 VS |
2708 | |
2709 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2710 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2711 | no_cache=0 |
e6cc62c6 VS |
2712 | |
2713 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2714 | if test "${with_libjpeg+set}" = set; then |
2715 | withval="$with_libjpeg" | |
e6cc62c6 | 2716 | |
10f2d63a | 2717 | if test "$withval" = yes; then |
b12915c1 | 2718 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2719 | elif test "$withval" = no; then |
b12915c1 | 2720 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2721 | elif test "$withval" = sys; then |
2722 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2723 | elif test "$withval" = builtin; then |
2724 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2725 | else |
e6cc62c6 VS |
2726 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2727 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2728 | { (exit 1); exit 1; }; } | |
10f2d63a | 2729 | fi |
e6cc62c6 | 2730 | |
10f2d63a | 2731 | else |
e6cc62c6 | 2732 | |
b12915c1 | 2733 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2734 | if test "x$LINE" != x ; then |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
b12915c1 | 2740 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2741 | |
e6cc62c6 | 2742 | fi; |
10f2d63a | 2743 | |
b12915c1 | 2744 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2745 | if test "$no_cache" != 1; then |
b12915c1 | 2746 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2747 | fi |
2748 | ||
b12915c1 | 2749 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2750 | echo "$as_me:$LINENO: result: yes" >&5 |
2751 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2752 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2753 | echo "$as_me:$LINENO: result: no" >&5 |
2754 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2755 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2756 | echo "$as_me:$LINENO: result: system version" >&5 |
2757 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2758 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2759 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2760 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2761 | else |
e6cc62c6 VS |
2762 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2763 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2764 | { (exit 1); exit 1; }; } | |
10f2d63a | 2765 | fi |
10f2d63a | 2766 | |
e6cc62c6 VS |
2767 | |
2768 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2769 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2770 | no_cache=0 |
e6cc62c6 VS |
2771 | |
2772 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2773 | if test "${with_libtiff+set}" = set; then |
2774 | withval="$with_libtiff" | |
e6cc62c6 | 2775 | |
10f2d63a | 2776 | if test "$withval" = yes; then |
b12915c1 | 2777 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2778 | elif test "$withval" = no; then |
b12915c1 | 2779 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2780 | elif test "$withval" = sys; then |
2781 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2782 | elif test "$withval" = builtin; then |
2783 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2784 | else |
e6cc62c6 VS |
2785 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2786 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2787 | { (exit 1); exit 1; }; } | |
10f2d63a | 2788 | fi |
e6cc62c6 | 2789 | |
10f2d63a | 2790 | else |
e6cc62c6 | 2791 | |
b12915c1 | 2792 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2793 | if test "x$LINE" != x ; then |
2794 | eval "DEFAULT_$LINE" | |
2795 | else | |
2796 | no_cache=1 | |
2797 | fi | |
2798 | ||
b12915c1 | 2799 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2800 | |
e6cc62c6 | 2801 | fi; |
10f2d63a | 2802 | |
b12915c1 | 2803 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2804 | if test "$no_cache" != 1; then |
b12915c1 | 2805 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2806 | fi |
2807 | ||
b12915c1 | 2808 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2809 | echo "$as_me:$LINENO: result: yes" >&5 |
2810 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2811 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2812 | echo "$as_me:$LINENO: result: no" >&5 |
2813 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2814 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2815 | echo "$as_me:$LINENO: result: system version" >&5 |
2816 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2817 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2818 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2819 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2820 | else |
e6cc62c6 VS |
2821 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2822 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2823 | { (exit 1); exit 1; }; } | |
10f2d63a | 2824 | fi |
10f2d63a | 2825 | |
e6cc62c6 | 2826 | |
89fe663f VZ |
2827 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2828 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2829 | no_cache=0 | |
2830 | ||
2831 | # Check whether --with-libxpm or --without-libxpm was given. | |
2832 | if test "${with_libxpm+set}" = set; then | |
2833 | withval="$with_libxpm" | |
2834 | ||
2835 | if test "$withval" = yes; then | |
2836 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2837 | elif test "$withval" = no; then | |
2838 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2839 | elif test "$withval" = sys; then | |
2840 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2841 | elif test "$withval" = builtin; then | |
2842 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2843 | else | |
2844 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2845 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2846 | { (exit 1); exit 1; }; } | |
2847 | fi | |
2848 | ||
2849 | else | |
2850 | ||
2851 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2852 | if test "x$LINE" != x ; then | |
2853 | eval "DEFAULT_$LINE" | |
2854 | else | |
2855 | no_cache=1 | |
2856 | fi | |
2857 | ||
2858 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2859 | ||
2860 | fi; | |
2861 | ||
2862 | eval "$ac_cv_use_libxpm" | |
2863 | if test "$no_cache" != 1; then | |
2864 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2865 | fi | |
2866 | ||
2867 | if test "$wxUSE_LIBXPM" = yes; then | |
2868 | echo "$as_me:$LINENO: result: yes" >&5 | |
2869 | echo "${ECHO_T}yes" >&6 | |
2870 | elif test "$wxUSE_LIBXPM" = no; then | |
2871 | echo "$as_me:$LINENO: result: no" >&5 | |
2872 | echo "${ECHO_T}no" >&6 | |
2873 | elif test "$wxUSE_LIBXPM" = sys; then | |
2874 | echo "$as_me:$LINENO: result: system version" >&5 | |
2875 | echo "${ECHO_T}system version" >&6 | |
2876 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2877 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2878 | echo "${ECHO_T}builtin version" >&6 | |
2879 | else | |
2880 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2881 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2882 | { (exit 1); exit 1; }; } | |
2883 | fi | |
2884 | ||
2885 | ||
3527f29c VS |
2886 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2887 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2888 | no_cache=0 | |
2889 | ||
2890 | # Check whether --with-libmspack or --without-libmspack was given. | |
2891 | if test "${with_libmspack+set}" = set; then | |
2892 | withval="$with_libmspack" | |
2893 | ||
2894 | if test "$withval" = yes; then | |
2895 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2896 | else | |
2897 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2898 | fi | |
2899 | ||
2900 | else | |
2901 | ||
2902 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2910 | ||
2911 | fi; | |
2912 | ||
2913 | eval "$ac_cv_use_libmspack" | |
2914 | if test "$no_cache" != 1; then | |
2915 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
2916 | fi | |
2917 | ||
2918 | if test "$wxUSE_LIBMSPACK" = yes; then | |
2919 | echo "$as_me:$LINENO: result: yes" >&5 | |
2920 | echo "${ECHO_T}yes" >&6 | |
2921 | else | |
2922 | echo "$as_me:$LINENO: result: no" >&5 | |
2923 | echo "${ECHO_T}no" >&6 | |
2924 | fi | |
2925 | ||
2926 | ||
e6cc62c6 VS |
2927 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
2928 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2929 | no_cache=0 |
e6cc62c6 VS |
2930 | |
2931 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2932 | if test "${with_opengl+set}" = set; then |
2933 | withval="$with_opengl" | |
e6cc62c6 | 2934 | |
10f2d63a | 2935 | if test "$withval" = yes; then |
b12915c1 | 2936 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2937 | else |
b12915c1 | 2938 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2939 | fi |
e6cc62c6 | 2940 | |
10f2d63a | 2941 | else |
e6cc62c6 | 2942 | |
b12915c1 | 2943 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2944 | if test "x$LINE" != x ; then |
2945 | eval "DEFAULT_$LINE" | |
2946 | else | |
2947 | no_cache=1 | |
2948 | fi | |
2949 | ||
b12915c1 | 2950 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2951 | |
e6cc62c6 | 2952 | fi; |
10f2d63a | 2953 | |
b12915c1 | 2954 | eval "$ac_cv_use_opengl" |
10f2d63a | 2955 | if test "$no_cache" != 1; then |
b12915c1 | 2956 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2957 | fi |
2958 | ||
b12915c1 | 2959 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2960 | echo "$as_me:$LINENO: result: yes" >&5 |
2961 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2962 | else |
e6cc62c6 VS |
2963 | echo "$as_me:$LINENO: result: no" >&5 |
2964 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2965 | fi |
e6cc62c6 | 2966 | |
10f2d63a | 2967 | |
b12915c1 VZ |
2968 | fi |
2969 | ||
5c6fa7d2 | 2970 | |
e6cc62c6 VS |
2971 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2972 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2973 | no_cache=0 |
e6cc62c6 VS |
2974 | |
2975 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2976 | if test "${with_dmalloc+set}" = set; then |
2977 | withval="$with_dmalloc" | |
e6cc62c6 | 2978 | |
c7a2bf27 | 2979 | if test "$withval" = yes; then |
b12915c1 | 2980 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2981 | else |
b12915c1 | 2982 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2983 | fi |
e6cc62c6 | 2984 | |
c7a2bf27 | 2985 | else |
e6cc62c6 | 2986 | |
b12915c1 | 2987 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2988 | if test "x$LINE" != x ; then |
2989 | eval "DEFAULT_$LINE" | |
2990 | else | |
2991 | no_cache=1 | |
2992 | fi | |
2993 | ||
b12915c1 | 2994 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2995 | |
e6cc62c6 | 2996 | fi; |
c7a2bf27 | 2997 | |
b12915c1 | 2998 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2999 | if test "$no_cache" != 1; then |
b12915c1 | 3000 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
3001 | fi |
3002 | ||
b12915c1 | 3003 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3004 | echo "$as_me:$LINENO: result: yes" >&5 |
3005 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3006 | else |
e6cc62c6 VS |
3007 | echo "$as_me:$LINENO: result: no" >&5 |
3008 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3009 | fi |
c7a2bf27 | 3010 | |
e6cc62c6 VS |
3011 | |
3012 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3013 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3014 | no_cache=0 |
e6cc62c6 VS |
3015 | |
3016 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3017 | if test "${with_regex+set}" = set; then |
3018 | withval="$with_regex" | |
e6cc62c6 | 3019 | |
3e44f09d VZ |
3020 | if test "$withval" = yes; then |
3021 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3022 | elif test "$withval" = no; then | |
3023 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3024 | elif test "$withval" = sys; then | |
3025 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3026 | elif test "$withval" = builtin; then |
3027 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3028 | else |
e6cc62c6 VS |
3029 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3030 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3031 | { (exit 1); exit 1; }; } | |
3e44f09d | 3032 | fi |
e6cc62c6 | 3033 | |
3e44f09d | 3034 | else |
e6cc62c6 | 3035 | |
3e44f09d VZ |
3036 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3044 | |
e6cc62c6 | 3045 | fi; |
3e44f09d VZ |
3046 | |
3047 | eval "$ac_cv_use_regex" | |
3048 | if test "$no_cache" != 1; then | |
3049 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3050 | fi | |
3051 | ||
3052 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3053 | echo "$as_me:$LINENO: result: yes" >&5 |
3054 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3055 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3056 | echo "$as_me:$LINENO: result: no" >&5 |
3057 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3058 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3059 | echo "$as_me:$LINENO: result: system version" >&5 |
3060 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3061 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3062 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3063 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3064 | else |
e6cc62c6 VS |
3065 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3066 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3067 | { (exit 1); exit 1; }; } | |
3e44f09d | 3068 | fi |
3e44f09d | 3069 | |
e6cc62c6 VS |
3070 | |
3071 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3072 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3073 | no_cache=0 |
e6cc62c6 VS |
3074 | |
3075 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3076 | if test "${with_zlib+set}" = set; then |
3077 | withval="$with_zlib" | |
e6cc62c6 | 3078 | |
10f2d63a | 3079 | if test "$withval" = yes; then |
b12915c1 | 3080 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3081 | elif test "$withval" = no; then |
b12915c1 | 3082 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3083 | elif test "$withval" = sys; then |
3084 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3085 | elif test "$withval" = builtin; then |
3086 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3087 | else |
e6cc62c6 VS |
3088 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3089 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3090 | { (exit 1); exit 1; }; } | |
10f2d63a | 3091 | fi |
e6cc62c6 | 3092 | |
10f2d63a | 3093 | else |
e6cc62c6 | 3094 | |
b12915c1 | 3095 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3096 | if test "x$LINE" != x ; then |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
b12915c1 | 3102 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3103 | |
e6cc62c6 | 3104 | fi; |
10f2d63a | 3105 | |
b12915c1 | 3106 | eval "$ac_cv_use_zlib" |
10f2d63a | 3107 | if test "$no_cache" != 1; then |
b12915c1 | 3108 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3109 | fi |
3110 | ||
b12915c1 | 3111 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3112 | echo "$as_me:$LINENO: result: yes" >&5 |
3113 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3114 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3115 | echo "$as_me:$LINENO: result: no" >&5 |
3116 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3117 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3118 | echo "$as_me:$LINENO: result: system version" >&5 |
3119 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3120 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3121 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3122 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3123 | else |
e6cc62c6 VS |
3124 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3125 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3126 | { (exit 1); exit 1; }; } | |
10f2d63a | 3127 | fi |
10f2d63a | 3128 | |
e6cc62c6 VS |
3129 | |
3130 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3131 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3132 | no_cache=0 |
e6cc62c6 VS |
3133 | |
3134 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3135 | if test "${with_odbc+set}" = set; then |
3136 | withval="$with_odbc" | |
e6cc62c6 | 3137 | |
10f2d63a VZ |
3138 | if test "$withval" = yes; then |
3139 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3140 | elif test "$withval" = no; then |
10f2d63a | 3141 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3142 | elif test "$withval" = sys; then |
3143 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3144 | elif test "$withval" = builtin; then | |
3145 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3146 | else | |
e6cc62c6 VS |
3147 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3148 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3149 | { (exit 1); exit 1; }; } | |
10f2d63a | 3150 | fi |
e6cc62c6 | 3151 | |
10f2d63a | 3152 | else |
e6cc62c6 | 3153 | |
10f2d63a VZ |
3154 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3155 | if test "x$LINE" != x ; then | |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
3161 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3162 | |
e6cc62c6 | 3163 | fi; |
10f2d63a VZ |
3164 | |
3165 | eval "$ac_cv_use_odbc" | |
3166 | if test "$no_cache" != 1; then | |
3167 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3168 | fi | |
3169 | ||
3170 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3171 | echo "$as_me:$LINENO: result: yes" >&5 |
3172 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3173 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3174 | echo "$as_me:$LINENO: result: no" >&5 |
3175 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3176 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3177 | echo "$as_me:$LINENO: result: system version" >&5 |
3178 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3179 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3180 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3181 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3182 | else |
e6cc62c6 VS |
3183 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3184 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3185 | { (exit 1); exit 1; }; } | |
10f2d63a | 3186 | fi |
e6cc62c6 | 3187 | |
52127426 | 3188 | |
672abd7a VS |
3189 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3190 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3191 | no_cache=0 | |
3192 | ||
3193 | # Check whether --with-expat or --without-expat was given. | |
3194 | if test "${with_expat+set}" = set; then | |
3195 | withval="$with_expat" | |
3196 | ||
3197 | if test "$withval" = yes; then | |
3198 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3199 | elif test "$withval" = no; then | |
3200 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3201 | elif test "$withval" = sys; then | |
3202 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3203 | elif test "$withval" = builtin; then | |
3204 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3205 | else | |
3206 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3207 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3208 | { (exit 1); exit 1; }; } | |
3209 | fi | |
3210 | ||
3211 | else | |
3212 | ||
3213 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3214 | if test "x$LINE" != x ; then | |
3215 | eval "DEFAULT_$LINE" | |
3216 | else | |
3217 | no_cache=1 | |
3218 | fi | |
3219 | ||
3220 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3221 | ||
3222 | fi; | |
3223 | ||
3224 | eval "$ac_cv_use_expat" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_EXPAT" = yes; then | |
3230 | echo "$as_me:$LINENO: result: yes" >&5 | |
3231 | echo "${ECHO_T}yes" >&6 | |
3232 | elif test "$wxUSE_EXPAT" = no; then | |
3233 | echo "$as_me:$LINENO: result: no" >&5 | |
3234 | echo "${ECHO_T}no" >&6 | |
3235 | elif test "$wxUSE_EXPAT" = sys; then | |
3236 | echo "$as_me:$LINENO: result: system version" >&5 | |
3237 | echo "${ECHO_T}system version" >&6 | |
3238 | elif test "$wxUSE_EXPAT" = builtin; then | |
3239 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3240 | echo "${ECHO_T}builtin version" >&6 | |
3241 | else | |
3242 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3243 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3244 | { (exit 1); exit 1; }; } | |
3245 | fi | |
3246 | ||
3247 | ||
8284b0c5 MB |
3248 | |
3249 | ||
5005acfe | 3250 | enablestring= |
e6cc62c6 VS |
3251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3252 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3253 | no_cache=0 |
3254 | # Check whether --enable-shared or --disable-shared was given. | |
3255 | if test "${enable_shared+set}" = set; then | |
3256 | enableval="$enable_shared" | |
e6cc62c6 | 3257 | |
10f2d63a VZ |
3258 | if test "$enableval" = yes; then |
3259 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3260 | else | |
3261 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3262 | fi | |
e6cc62c6 | 3263 | |
10f2d63a | 3264 | else |
e6cc62c6 | 3265 | |
10f2d63a VZ |
3266 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3267 | if test "x$LINE" != x ; then | |
3268 | eval "DEFAULT_$LINE" | |
3269 | else | |
3270 | no_cache=1 | |
3271 | fi | |
3272 | ||
3273 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3274 | |
e6cc62c6 | 3275 | fi; |
10f2d63a VZ |
3276 | |
3277 | eval "$ac_cv_use_shared" | |
3278 | if test "$no_cache" != 1; then | |
3279 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3280 | fi | |
3281 | ||
3282 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3283 | echo "$as_me:$LINENO: result: yes" >&5 |
3284 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3285 | else |
e6cc62c6 VS |
3286 | echo "$as_me:$LINENO: result: no" >&5 |
3287 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3288 | fi |
e6cc62c6 | 3289 | |
10f2d63a | 3290 | |
5005acfe | 3291 | enablestring= |
e6cc62c6 VS |
3292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3293 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3294 | no_cache=0 |
3295 | # Check whether --enable-optimise or --disable-optimise was given. | |
3296 | if test "${enable_optimise+set}" = set; then | |
3297 | enableval="$enable_optimise" | |
e6cc62c6 | 3298 | |
10f2d63a VZ |
3299 | if test "$enableval" = yes; then |
3300 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3301 | else | |
3302 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3303 | fi | |
e6cc62c6 | 3304 | |
10f2d63a | 3305 | else |
e6cc62c6 | 3306 | |
10f2d63a VZ |
3307 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3308 | if test "x$LINE" != x ; then | |
3309 | eval "DEFAULT_$LINE" | |
3310 | else | |
3311 | no_cache=1 | |
3312 | fi | |
3313 | ||
3314 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3315 | |
e6cc62c6 | 3316 | fi; |
10f2d63a VZ |
3317 | |
3318 | eval "$ac_cv_use_optimise" | |
3319 | if test "$no_cache" != 1; then | |
3320 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3321 | fi | |
3322 | ||
3323 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3324 | echo "$as_me:$LINENO: result: yes" >&5 |
3325 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3326 | else |
e6cc62c6 VS |
3327 | echo "$as_me:$LINENO: result: no" >&5 |
3328 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3329 | fi |
e6cc62c6 | 3330 | |
10f2d63a | 3331 | |
5005acfe | 3332 | enablestring= |
e6cc62c6 VS |
3333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3334 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3335 | no_cache=0 |
3336 | # Check whether --enable-debug or --disable-debug was given. | |
3337 | if test "${enable_debug+set}" = set; then | |
3338 | enableval="$enable_debug" | |
e6cc62c6 | 3339 | |
10f2d63a VZ |
3340 | if test "$enableval" = yes; then |
3341 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3342 | else | |
3343 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3344 | fi | |
e6cc62c6 | 3345 | |
10f2d63a | 3346 | else |
e6cc62c6 | 3347 | |
10f2d63a VZ |
3348 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3349 | if test "x$LINE" != x ; then | |
3350 | eval "DEFAULT_$LINE" | |
3351 | else | |
3352 | no_cache=1 | |
3353 | fi | |
3354 | ||
3355 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3356 | |
e6cc62c6 | 3357 | fi; |
10f2d63a VZ |
3358 | |
3359 | eval "$ac_cv_use_debug" | |
3360 | if test "$no_cache" != 1; then | |
3361 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3362 | fi | |
3363 | ||
3364 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3365 | echo "$as_me:$LINENO: result: yes" >&5 |
3366 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3367 | else |
e6cc62c6 VS |
3368 | echo "$as_me:$LINENO: result: no" >&5 |
3369 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3370 | fi |
e6cc62c6 | 3371 | |
52127426 | 3372 | |
df5168c4 MB |
3373 | enablestring= |
3374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3375 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3376 | no_cache=0 | |
3377 | # Check whether --enable-stl or --disable-stl was given. | |
3378 | if test "${enable_stl+set}" = set; then | |
3379 | enableval="$enable_stl" | |
3380 | ||
3381 | if test "$enableval" = yes; then | |
3382 | ac_cv_use_stl='wxUSE_STL=yes' | |
3383 | else | |
3384 | ac_cv_use_stl='wxUSE_STL=no' | |
3385 | fi | |
3386 | ||
3387 | else | |
3388 | ||
3389 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3390 | if test "x$LINE" != x ; then | |
3391 | eval "DEFAULT_$LINE" | |
3392 | else | |
3393 | no_cache=1 | |
3394 | fi | |
3395 | ||
3396 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3397 | ||
3398 | fi; | |
3399 | ||
3400 | eval "$ac_cv_use_stl" | |
3401 | if test "$no_cache" != 1; then | |
3402 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3403 | fi | |
3404 | ||
3405 | if test "$wxUSE_STL" = yes; then | |
3406 | echo "$as_me:$LINENO: result: yes" >&5 | |
3407 | echo "${ECHO_T}yes" >&6 | |
3408 | else | |
3409 | echo "$as_me:$LINENO: result: no" >&5 | |
3410 | echo "${ECHO_T}no" >&6 | |
3411 | fi | |
3412 | ||
3413 | ||
10f2d63a VZ |
3414 | if test "$wxUSE_DEBUG" = "yes"; then |
3415 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3416 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3417 | BUILD=debug |
10f2d63a VZ |
3418 | elif test "$wxUSE_DEBUG" = "no"; then |
3419 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3420 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3421 | BUILD=release |
10f2d63a VZ |
3422 | fi |
3423 | ||
8284b0c5 | 3424 | |
5005acfe | 3425 | enablestring= |
e6cc62c6 VS |
3426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3427 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3428 | no_cache=0 |
3429 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3430 | if test "${enable_debug_flag+set}" = set; then | |
3431 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3432 | |
10f2d63a VZ |
3433 | if test "$enableval" = yes; then |
3434 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3435 | else | |
3436 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3437 | fi | |
e6cc62c6 | 3438 | |
10f2d63a | 3439 | else |
e6cc62c6 | 3440 | |
10f2d63a VZ |
3441 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3449 | |
e6cc62c6 | 3450 | fi; |
10f2d63a VZ |
3451 | |
3452 | eval "$ac_cv_use_debug_flag" | |
3453 | if test "$no_cache" != 1; then | |
3454 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3455 | fi | |
3456 | ||
3457 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3458 | echo "$as_me:$LINENO: result: yes" >&5 |
3459 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3460 | else |
e6cc62c6 VS |
3461 | echo "$as_me:$LINENO: result: no" >&5 |
3462 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3463 | fi |
e6cc62c6 | 3464 | |
10f2d63a | 3465 | |
5005acfe | 3466 | enablestring= |
e6cc62c6 VS |
3467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3468 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3469 | no_cache=0 |
3470 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3471 | if test "${enable_debug_info+set}" = set; then | |
3472 | enableval="$enable_debug_info" | |
e6cc62c6 | 3473 | |
10f2d63a VZ |
3474 | if test "$enableval" = yes; then |
3475 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3476 | else | |
3477 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3478 | fi | |
e6cc62c6 | 3479 | |
10f2d63a | 3480 | else |
e6cc62c6 | 3481 | |
10f2d63a VZ |
3482 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3483 | if test "x$LINE" != x ; then | |
3484 | eval "DEFAULT_$LINE" | |
3485 | else | |
3486 | no_cache=1 | |
3487 | fi | |
3488 | ||
3489 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3490 | |
e6cc62c6 | 3491 | fi; |
10f2d63a VZ |
3492 | |
3493 | eval "$ac_cv_use_debug_info" | |
3494 | if test "$no_cache" != 1; then | |
3495 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3496 | fi | |
3497 | ||
3498 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3499 | echo "$as_me:$LINENO: result: yes" >&5 |
3500 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3501 | else |
e6cc62c6 VS |
3502 | echo "$as_me:$LINENO: result: no" >&5 |
3503 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3504 | fi |
e6cc62c6 | 3505 | |
10f2d63a | 3506 | |
5005acfe | 3507 | enablestring= |
e6cc62c6 VS |
3508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3509 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3512 | if test "${enable_debug_gdb+set}" = set; then | |
3513 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3514 | |
10f2d63a VZ |
3515 | if test "$enableval" = yes; then |
3516 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3517 | else | |
3518 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3519 | fi | |
e6cc62c6 | 3520 | |
10f2d63a | 3521 | else |
e6cc62c6 | 3522 | |
10f2d63a VZ |
3523 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3531 | |
e6cc62c6 | 3532 | fi; |
10f2d63a VZ |
3533 | |
3534 | eval "$ac_cv_use_debug_gdb" | |
3535 | if test "$no_cache" != 1; then | |
3536 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3537 | fi | |
3538 | ||
3539 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3540 | echo "$as_me:$LINENO: result: yes" >&5 |
3541 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3542 | else |
e6cc62c6 VS |
3543 | echo "$as_me:$LINENO: result: no" >&5 |
3544 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3545 | fi |
e6cc62c6 | 3546 | |
10f2d63a | 3547 | |
5005acfe | 3548 | enablestring= |
e6cc62c6 VS |
3549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3550 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3551 | no_cache=0 |
3552 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3553 | if test "${enable_debug_cntxt+set}" = set; then | |
3554 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3555 | |
10f2d63a VZ |
3556 | if test "$enableval" = yes; then |
3557 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3558 | else | |
3559 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3560 | fi | |
e6cc62c6 | 3561 | |
10f2d63a | 3562 | else |
e6cc62c6 | 3563 | |
10f2d63a VZ |
3564 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3565 | if test "x$LINE" != x ; then | |
3566 | eval "DEFAULT_$LINE" | |
3567 | else | |
3568 | no_cache=1 | |
3569 | fi | |
3570 | ||
3571 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3572 | |
e6cc62c6 | 3573 | fi; |
10f2d63a VZ |
3574 | |
3575 | eval "$ac_cv_use_debug_cntxt" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3581 | echo "$as_me:$LINENO: result: yes" >&5 |
3582 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3583 | else |
e6cc62c6 VS |
3584 | echo "$as_me:$LINENO: result: no" >&5 |
3585 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3586 | fi |
e6cc62c6 | 3587 | |
10f2d63a | 3588 | |
5005acfe | 3589 | enablestring= |
e6cc62c6 VS |
3590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3591 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3592 | no_cache=0 |
3593 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3594 | if test "${enable_mem_tracing+set}" = set; then | |
3595 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3596 | |
10f2d63a VZ |
3597 | if test "$enableval" = yes; then |
3598 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3599 | else | |
3600 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3601 | fi | |
e6cc62c6 | 3602 | |
10f2d63a | 3603 | else |
e6cc62c6 | 3604 | |
10f2d63a VZ |
3605 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3606 | if test "x$LINE" != x ; then | |
3607 | eval "DEFAULT_$LINE" | |
3608 | else | |
3609 | no_cache=1 | |
3610 | fi | |
3611 | ||
3612 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3613 | |
e6cc62c6 | 3614 | fi; |
10f2d63a VZ |
3615 | |
3616 | eval "$ac_cv_use_mem_tracing" | |
3617 | if test "$no_cache" != 1; then | |
3618 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3619 | fi | |
3620 | ||
3621 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3622 | echo "$as_me:$LINENO: result: yes" >&5 |
3623 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3624 | else |
e6cc62c6 VS |
3625 | echo "$as_me:$LINENO: result: no" >&5 |
3626 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3627 | fi |
e6cc62c6 | 3628 | |
10f2d63a | 3629 | |
5005acfe | 3630 | enablestring= |
e6cc62c6 VS |
3631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3632 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3633 | no_cache=0 |
3634 | # Check whether --enable-profile or --disable-profile was given. | |
3635 | if test "${enable_profile+set}" = set; then | |
3636 | enableval="$enable_profile" | |
e6cc62c6 | 3637 | |
10f2d63a VZ |
3638 | if test "$enableval" = yes; then |
3639 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3640 | else | |
3641 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3642 | fi | |
e6cc62c6 | 3643 | |
10f2d63a | 3644 | else |
e6cc62c6 | 3645 | |
10f2d63a VZ |
3646 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3647 | if test "x$LINE" != x ; then | |
3648 | eval "DEFAULT_$LINE" | |
3649 | else | |
3650 | no_cache=1 | |
3651 | fi | |
3652 | ||
3653 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3654 | |
e6cc62c6 | 3655 | fi; |
10f2d63a VZ |
3656 | |
3657 | eval "$ac_cv_use_profile" | |
3658 | if test "$no_cache" != 1; then | |
3659 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3660 | fi | |
3661 | ||
3662 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3663 | echo "$as_me:$LINENO: result: yes" >&5 |
3664 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3665 | else |
e6cc62c6 VS |
3666 | echo "$as_me:$LINENO: result: no" >&5 |
3667 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3668 | fi |
e6cc62c6 | 3669 | |
10f2d63a | 3670 | |
5005acfe | 3671 | enablestring= |
e6cc62c6 VS |
3672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3673 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3674 | no_cache=0 |
3675 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3676 | if test "${enable_no_rtti+set}" = set; then | |
3677 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3678 | |
10f2d63a VZ |
3679 | if test "$enableval" = yes; then |
3680 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3681 | else | |
3682 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3683 | fi | |
e6cc62c6 | 3684 | |
10f2d63a | 3685 | else |
e6cc62c6 | 3686 | |
10f2d63a VZ |
3687 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3688 | if test "x$LINE" != x ; then | |
3689 | eval "DEFAULT_$LINE" | |
3690 | else | |
3691 | no_cache=1 | |
3692 | fi | |
3693 | ||
3694 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3695 | |
e6cc62c6 | 3696 | fi; |
10f2d63a VZ |
3697 | |
3698 | eval "$ac_cv_use_no_rtti" | |
3699 | if test "$no_cache" != 1; then | |
3700 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3701 | fi | |
3702 | ||
3703 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3704 | echo "$as_me:$LINENO: result: yes" >&5 |
3705 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3706 | else |
e6cc62c6 VS |
3707 | echo "$as_me:$LINENO: result: no" >&5 |
3708 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3709 | fi |
e6cc62c6 | 3710 | |
10f2d63a | 3711 | |
5005acfe | 3712 | enablestring= |
e6cc62c6 VS |
3713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3714 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3715 | no_cache=0 |
3716 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3717 | if test "${enable_no_exceptions+set}" = set; then | |
3718 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3719 | |
10f2d63a VZ |
3720 | if test "$enableval" = yes; then |
3721 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3722 | else | |
3723 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3724 | fi | |
e6cc62c6 | 3725 | |
10f2d63a | 3726 | else |
e6cc62c6 | 3727 | |
10f2d63a VZ |
3728 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3729 | if test "x$LINE" != x ; then | |
3730 | eval "DEFAULT_$LINE" | |
3731 | else | |
3732 | no_cache=1 | |
3733 | fi | |
3734 | ||
3735 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3736 | |
e6cc62c6 | 3737 | fi; |
10f2d63a VZ |
3738 | |
3739 | eval "$ac_cv_use_no_exceptions" | |
3740 | if test "$no_cache" != 1; then | |
3741 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3742 | fi | |
3743 | ||
3744 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3745 | echo "$as_me:$LINENO: result: yes" >&5 |
3746 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3747 | else |
e6cc62c6 VS |
3748 | echo "$as_me:$LINENO: result: no" >&5 |
3749 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3750 | fi |
e6cc62c6 | 3751 | |
10f2d63a | 3752 | |
5005acfe | 3753 | enablestring= |
e6cc62c6 VS |
3754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3755 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3756 | no_cache=0 |
3757 | # Check whether --enable-permissive or --disable-permissive was given. | |
3758 | if test "${enable_permissive+set}" = set; then | |
3759 | enableval="$enable_permissive" | |
e6cc62c6 | 3760 | |
10f2d63a VZ |
3761 | if test "$enableval" = yes; then |
3762 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3763 | else | |
3764 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3765 | fi | |
e6cc62c6 | 3766 | |
10f2d63a | 3767 | else |
e6cc62c6 | 3768 | |
10f2d63a VZ |
3769 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3770 | if test "x$LINE" != x ; then | |
3771 | eval "DEFAULT_$LINE" | |
3772 | else | |
3773 | no_cache=1 | |
3774 | fi | |
3775 | ||
3776 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3777 | |
e6cc62c6 | 3778 | fi; |
10f2d63a VZ |
3779 | |
3780 | eval "$ac_cv_use_permissive" | |
3781 | if test "$no_cache" != 1; then | |
3782 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3783 | fi | |
3784 | ||
3785 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3786 | echo "$as_me:$LINENO: result: yes" >&5 |
3787 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3788 | else |
e6cc62c6 VS |
3789 | echo "$as_me:$LINENO: result: no" >&5 |
3790 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3791 | fi |
e6cc62c6 | 3792 | |
10f2d63a | 3793 | |
5005acfe | 3794 | enablestring= |
e6cc62c6 VS |
3795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3796 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3797 | no_cache=0 |
3798 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3799 | if test "${enable_no_deps+set}" = set; then | |
3800 | enableval="$enable_no_deps" | |
e6cc62c6 | 3801 | |
10f2d63a VZ |
3802 | if test "$enableval" = yes; then |
3803 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3804 | else | |
3805 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3806 | fi | |
e6cc62c6 | 3807 | |
10f2d63a | 3808 | else |
e6cc62c6 | 3809 | |
10f2d63a VZ |
3810 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3818 | |
e6cc62c6 | 3819 | fi; |
10f2d63a VZ |
3820 | |
3821 | eval "$ac_cv_use_no_deps" | |
3822 | if test "$no_cache" != 1; then | |
3823 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3824 | fi | |
3825 | ||
3826 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3827 | echo "$as_me:$LINENO: result: yes" >&5 |
3828 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3829 | else |
e6cc62c6 VS |
3830 | echo "$as_me:$LINENO: result: no" >&5 |
3831 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3832 | fi |
e6cc62c6 | 3833 | |
52127426 | 3834 | |
8284b0c5 | 3835 | |
65d8ef1e | 3836 | enablestring= |
e6cc62c6 VS |
3837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3838 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3839 | no_cache=0 |
3840 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3841 | if test "${enable_compat22+set}" = set; then | |
3842 | enableval="$enable_compat22" | |
e6cc62c6 | 3843 | |
54276ccf VZ |
3844 | if test "$enableval" = yes; then |
3845 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3846 | else | |
3847 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3848 | fi | |
e6cc62c6 | 3849 | |
54276ccf | 3850 | else |
e6cc62c6 | 3851 | |
54276ccf VZ |
3852 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3853 | if test "x$LINE" != x ; then | |
3854 | eval "DEFAULT_$LINE" | |
3855 | else | |
3856 | no_cache=1 | |
3857 | fi | |
3858 | ||
3859 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3860 | |
e6cc62c6 | 3861 | fi; |
54276ccf VZ |
3862 | |
3863 | eval "$ac_cv_use_compat22" | |
3864 | if test "$no_cache" != 1; then | |
3865 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3866 | fi | |
3867 | ||
3868 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3869 | echo "$as_me:$LINENO: result: yes" >&5 |
3870 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3871 | else |
e6cc62c6 VS |
3872 | echo "$as_me:$LINENO: result: no" >&5 |
3873 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3874 | fi |
e6cc62c6 | 3875 | |
54276ccf | 3876 | |
65d8ef1e | 3877 | enablestring=disable |
e6cc62c6 VS |
3878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3879 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3880 | no_cache=0 |
3881 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3882 | if test "${enable_compat24+set}" = set; then | |
3883 | enableval="$enable_compat24" | |
e6cc62c6 | 3884 | |
65d8ef1e VS |
3885 | if test "$enableval" = yes; then |
3886 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3887 | else | |
3888 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3889 | fi | |
e6cc62c6 | 3890 | |
65d8ef1e | 3891 | else |
e6cc62c6 | 3892 | |
65d8ef1e VS |
3893 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3894 | if test "x$LINE" != x ; then | |
3895 | eval "DEFAULT_$LINE" | |
3896 | else | |
3897 | no_cache=1 | |
3898 | fi | |
3899 | ||
3900 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3901 | |
e6cc62c6 | 3902 | fi; |
65d8ef1e VS |
3903 | |
3904 | eval "$ac_cv_use_compat24" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3910 | echo "$as_me:$LINENO: result: yes" >&5 |
3911 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3912 | else |
e6cc62c6 VS |
3913 | echo "$as_me:$LINENO: result: no" >&5 |
3914 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3915 | fi |
e6cc62c6 | 3916 | |
65d8ef1e | 3917 | |
3bd8fb5f RD |
3918 | # Check whether --enable-rpath or --disable-rpath was given. |
3919 | if test "${enable_rpath+set}" = set; then | |
3920 | enableval="$enable_rpath" | |
3921 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3922 | fi; |
3bd8fb5f RD |
3923 | |
3924 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3925 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3926 | fi | |
3927 | ||
8284b0c5 MB |
3928 | |
3929 | ||
3930 | ||
5005acfe | 3931 | enablestring= |
e6cc62c6 VS |
3932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3933 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3934 | no_cache=0 |
3935 | # Check whether --enable-intl or --disable-intl was given. | |
3936 | if test "${enable_intl+set}" = set; then | |
3937 | enableval="$enable_intl" | |
e6cc62c6 | 3938 | |
10f2d63a VZ |
3939 | if test "$enableval" = yes; then |
3940 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3941 | else | |
3942 | ac_cv_use_intl='wxUSE_INTL=no' | |
3943 | fi | |
e6cc62c6 | 3944 | |
10f2d63a | 3945 | else |
e6cc62c6 | 3946 | |
10f2d63a VZ |
3947 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3948 | if test "x$LINE" != x ; then | |
3949 | eval "DEFAULT_$LINE" | |
3950 | else | |
3951 | no_cache=1 | |
3952 | fi | |
3953 | ||
3954 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3955 | |
e6cc62c6 | 3956 | fi; |
10f2d63a VZ |
3957 | |
3958 | eval "$ac_cv_use_intl" | |
3959 | if test "$no_cache" != 1; then | |
3960 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3961 | fi | |
3962 | ||
3963 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3964 | echo "$as_me:$LINENO: result: yes" >&5 |
3965 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3966 | else |
e6cc62c6 VS |
3967 | echo "$as_me:$LINENO: result: no" >&5 |
3968 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3969 | fi |
e6cc62c6 | 3970 | |
10f2d63a | 3971 | |
5005acfe | 3972 | enablestring= |
e6cc62c6 VS |
3973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3974 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3975 | no_cache=0 |
3976 | # Check whether --enable-config or --disable-config was given. | |
3977 | if test "${enable_config+set}" = set; then | |
3978 | enableval="$enable_config" | |
e6cc62c6 | 3979 | |
10f2d63a VZ |
3980 | if test "$enableval" = yes; then |
3981 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3982 | else | |
3983 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3984 | fi | |
e6cc62c6 | 3985 | |
10f2d63a | 3986 | else |
e6cc62c6 | 3987 | |
10f2d63a VZ |
3988 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3989 | if test "x$LINE" != x ; then | |
3990 | eval "DEFAULT_$LINE" | |
3991 | else | |
3992 | no_cache=1 | |
3993 | fi | |
3994 | ||
3995 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3996 | |
e6cc62c6 | 3997 | fi; |
10f2d63a VZ |
3998 | |
3999 | eval "$ac_cv_use_config" | |
4000 | if test "$no_cache" != 1; then | |
4001 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4002 | fi | |
4003 | ||
4004 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4005 | echo "$as_me:$LINENO: result: yes" >&5 |
4006 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4007 | else |
e6cc62c6 VS |
4008 | echo "$as_me:$LINENO: result: no" >&5 |
4009 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4010 | fi |
e6cc62c6 | 4011 | |
52127426 | 4012 | |
8284b0c5 | 4013 | |
5005acfe | 4014 | enablestring= |
e6cc62c6 VS |
4015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4016 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4017 | no_cache=0 |
4018 | # Check whether --enable-protocols or --disable-protocols was given. | |
4019 | if test "${enable_protocols+set}" = set; then | |
4020 | enableval="$enable_protocols" | |
e6cc62c6 | 4021 | |
a1622950 VZ |
4022 | if test "$enableval" = yes; then |
4023 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4024 | else | |
4025 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4026 | fi | |
e6cc62c6 | 4027 | |
a1622950 | 4028 | else |
e6cc62c6 | 4029 | |
a1622950 VZ |
4030 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4031 | if test "x$LINE" != x ; then | |
4032 | eval "DEFAULT_$LINE" | |
4033 | else | |
4034 | no_cache=1 | |
4035 | fi | |
4036 | ||
4037 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4038 | |
e6cc62c6 | 4039 | fi; |
a1622950 VZ |
4040 | |
4041 | eval "$ac_cv_use_protocols" | |
4042 | if test "$no_cache" != 1; then | |
4043 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4044 | fi | |
4045 | ||
4046 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4047 | echo "$as_me:$LINENO: result: yes" >&5 |
4048 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4049 | else |
e6cc62c6 VS |
4050 | echo "$as_me:$LINENO: result: no" >&5 |
4051 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4052 | fi |
e6cc62c6 | 4053 | |
a1622950 | 4054 | |
5005acfe | 4055 | enablestring= |
e6cc62c6 VS |
4056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4057 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4058 | no_cache=0 |
4059 | # Check whether --enable-ftp or --disable-ftp was given. | |
4060 | if test "${enable_ftp+set}" = set; then | |
4061 | enableval="$enable_ftp" | |
e6cc62c6 | 4062 | |
a1622950 VZ |
4063 | if test "$enableval" = yes; then |
4064 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4065 | else | |
4066 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4067 | fi | |
e6cc62c6 | 4068 | |
a1622950 | 4069 | else |
e6cc62c6 | 4070 | |
a1622950 VZ |
4071 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4072 | if test "x$LINE" != x ; then | |
4073 | eval "DEFAULT_$LINE" | |
4074 | else | |
4075 | no_cache=1 | |
4076 | fi | |
4077 | ||
4078 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4079 | |
e6cc62c6 | 4080 | fi; |
a1622950 VZ |
4081 | |
4082 | eval "$ac_cv_use_ftp" | |
4083 | if test "$no_cache" != 1; then | |
4084 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4085 | fi | |
4086 | ||
4087 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4088 | echo "$as_me:$LINENO: result: yes" >&5 |
4089 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4090 | else |
e6cc62c6 VS |
4091 | echo "$as_me:$LINENO: result: no" >&5 |
4092 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4093 | fi |
e6cc62c6 | 4094 | |
a1622950 | 4095 | |
5005acfe | 4096 | enablestring= |
e6cc62c6 VS |
4097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4098 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4099 | no_cache=0 |
4100 | # Check whether --enable-http or --disable-http was given. | |
4101 | if test "${enable_http+set}" = set; then | |
4102 | enableval="$enable_http" | |
e6cc62c6 | 4103 | |
a1622950 VZ |
4104 | if test "$enableval" = yes; then |
4105 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4106 | else | |
4107 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4108 | fi | |
e6cc62c6 | 4109 | |
a1622950 | 4110 | else |
e6cc62c6 | 4111 | |
a1622950 VZ |
4112 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4113 | if test "x$LINE" != x ; then | |
4114 | eval "DEFAULT_$LINE" | |
4115 | else | |
4116 | no_cache=1 | |
4117 | fi | |
4118 | ||
4119 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4120 | |
e6cc62c6 | 4121 | fi; |
a1622950 VZ |
4122 | |
4123 | eval "$ac_cv_use_http" | |
4124 | if test "$no_cache" != 1; then | |
4125 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4126 | fi | |
4127 | ||
4128 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4129 | echo "$as_me:$LINENO: result: yes" >&5 |
4130 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4131 | else |
e6cc62c6 VS |
4132 | echo "$as_me:$LINENO: result: no" >&5 |
4133 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4134 | fi |
e6cc62c6 | 4135 | |
a1622950 | 4136 | |
5005acfe | 4137 | enablestring= |
e6cc62c6 VS |
4138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4139 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4140 | no_cache=0 |
4141 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4142 | if test "${enable_fileproto+set}" = set; then | |
4143 | enableval="$enable_fileproto" | |
e6cc62c6 | 4144 | |
a1622950 VZ |
4145 | if test "$enableval" = yes; then |
4146 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4147 | else | |
4148 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4149 | fi | |
e6cc62c6 | 4150 | |
a1622950 | 4151 | else |
e6cc62c6 | 4152 | |
a1622950 VZ |
4153 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4154 | if test "x$LINE" != x ; then | |
4155 | eval "DEFAULT_$LINE" | |
4156 | else | |
4157 | no_cache=1 | |
4158 | fi | |
4159 | ||
4160 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4161 | |
e6cc62c6 | 4162 | fi; |
a1622950 VZ |
4163 | |
4164 | eval "$ac_cv_use_fileproto" | |
4165 | if test "$no_cache" != 1; then | |
4166 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4167 | fi | |
4168 | ||
4169 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4170 | echo "$as_me:$LINENO: result: yes" >&5 |
4171 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4172 | else |
e6cc62c6 VS |
4173 | echo "$as_me:$LINENO: result: no" >&5 |
4174 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4175 | fi |
e6cc62c6 | 4176 | |
a1622950 | 4177 | |
5005acfe | 4178 | enablestring= |
e6cc62c6 VS |
4179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4180 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4181 | no_cache=0 |
4182 | # Check whether --enable-sockets or --disable-sockets was given. | |
4183 | if test "${enable_sockets+set}" = set; then | |
4184 | enableval="$enable_sockets" | |
e6cc62c6 | 4185 | |
10f2d63a VZ |
4186 | if test "$enableval" = yes; then |
4187 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4188 | else | |
4189 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4190 | fi | |
e6cc62c6 | 4191 | |
10f2d63a | 4192 | else |
e6cc62c6 | 4193 | |
10f2d63a VZ |
4194 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4195 | if test "x$LINE" != x ; then | |
4196 | eval "DEFAULT_$LINE" | |
4197 | else | |
4198 | no_cache=1 | |
4199 | fi | |
4200 | ||
4201 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4202 | |
e6cc62c6 | 4203 | fi; |
10f2d63a VZ |
4204 | |
4205 | eval "$ac_cv_use_sockets" | |
4206 | if test "$no_cache" != 1; then | |
4207 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4208 | fi | |
4209 | ||
4210 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4211 | echo "$as_me:$LINENO: result: yes" >&5 |
4212 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4213 | else |
e6cc62c6 VS |
4214 | echo "$as_me:$LINENO: result: no" >&5 |
4215 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4216 | fi |
e6cc62c6 | 4217 | |
8284b0c5 | 4218 | |
5005acfe | 4219 | enablestring= |
e6cc62c6 VS |
4220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4221 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4222 | no_cache=0 |
4223 | # Check whether --enable-ole or --disable-ole was given. | |
4224 | if test "${enable_ole+set}" = set; then | |
4225 | enableval="$enable_ole" | |
e6cc62c6 | 4226 | |
3bce6687 JS |
4227 | if test "$enableval" = yes; then |
4228 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4229 | else | |
4230 | ac_cv_use_ole='wxUSE_OLE=no' | |
4231 | fi | |
e6cc62c6 | 4232 | |
3bce6687 | 4233 | else |
e6cc62c6 | 4234 | |
3bce6687 JS |
4235 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4236 | if test "x$LINE" != x ; then | |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
4242 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4243 | |
e6cc62c6 | 4244 | fi; |
3bce6687 JS |
4245 | |
4246 | eval "$ac_cv_use_ole" | |
4247 | if test "$no_cache" != 1; then | |
4248 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4249 | fi | |
4250 | ||
4251 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4252 | echo "$as_me:$LINENO: result: yes" >&5 |
4253 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4254 | else |
e6cc62c6 VS |
4255 | echo "$as_me:$LINENO: result: no" >&5 |
4256 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4257 | fi |
e6cc62c6 | 4258 | |
3bce6687 | 4259 | |
5005acfe | 4260 | enablestring= |
e6cc62c6 VS |
4261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4262 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4263 | no_cache=0 |
4264 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4265 | if test "${enable_dataobj+set}" = set; then | |
4266 | enableval="$enable_dataobj" | |
e6cc62c6 | 4267 | |
3bce6687 JS |
4268 | if test "$enableval" = yes; then |
4269 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4270 | else | |
4271 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4272 | fi | |
e6cc62c6 | 4273 | |
3bce6687 | 4274 | else |
e6cc62c6 | 4275 | |
3bce6687 JS |
4276 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4277 | if test "x$LINE" != x ; then | |
4278 | eval "DEFAULT_$LINE" | |
4279 | else | |
4280 | no_cache=1 | |
4281 | fi | |
4282 | ||
4283 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4284 | |
e6cc62c6 | 4285 | fi; |
3bce6687 JS |
4286 | |
4287 | eval "$ac_cv_use_dataobj" | |
4288 | if test "$no_cache" != 1; then | |
4289 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4290 | fi | |
4291 | ||
4292 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4293 | echo "$as_me:$LINENO: result: yes" >&5 |
4294 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4295 | else |
e6cc62c6 VS |
4296 | echo "$as_me:$LINENO: result: no" >&5 |
4297 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4298 | fi |
e6cc62c6 | 4299 | |
3bce6687 | 4300 | |
52127426 | 4301 | |
5005acfe | 4302 | enablestring= |
e6cc62c6 VS |
4303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4304 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4305 | no_cache=0 |
eb4efbdc VZ |
4306 | # Check whether --enable-ipc or --disable-ipc was given. |
4307 | if test "${enable_ipc+set}" = set; then | |
4308 | enableval="$enable_ipc" | |
e6cc62c6 | 4309 | |
10f2d63a | 4310 | if test "$enableval" = yes; then |
eb4efbdc | 4311 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4312 | else |
eb4efbdc | 4313 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4314 | fi |
e6cc62c6 | 4315 | |
10f2d63a | 4316 | else |
e6cc62c6 | 4317 | |
eb4efbdc | 4318 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4319 | if test "x$LINE" != x ; then |
4320 | eval "DEFAULT_$LINE" | |
4321 | else | |
4322 | no_cache=1 | |
4323 | fi | |
4324 | ||
eb4efbdc | 4325 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4326 | |
e6cc62c6 | 4327 | fi; |
10f2d63a | 4328 | |
eb4efbdc | 4329 | eval "$ac_cv_use_ipc" |
10f2d63a | 4330 | if test "$no_cache" != 1; then |
eb4efbdc | 4331 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4332 | fi |
4333 | ||
eb4efbdc | 4334 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4335 | echo "$as_me:$LINENO: result: yes" >&5 |
4336 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4337 | else |
e6cc62c6 VS |
4338 | echo "$as_me:$LINENO: result: no" >&5 |
4339 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4340 | fi |
e6cc62c6 | 4341 | |
52127426 | 4342 | |
8284b0c5 | 4343 | |
5005acfe | 4344 | enablestring= |
e46d2a18 VS |
4345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4346 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4347 | no_cache=0 |
e46d2a18 VS |
4348 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4349 | if test "${enable_apple_ieee+set}" = set; then | |
4350 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4351 | |
10f2d63a | 4352 | if test "$enableval" = yes; then |
e46d2a18 | 4353 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4354 | else |
e46d2a18 | 4355 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4356 | fi |
e6cc62c6 | 4357 | |
10f2d63a | 4358 | else |
e6cc62c6 | 4359 | |
e46d2a18 | 4360 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4361 | if test "x$LINE" != x ; then |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
e46d2a18 | 4367 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4368 | |
e6cc62c6 | 4369 | fi; |
10f2d63a | 4370 | |
e46d2a18 | 4371 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4372 | if test "$no_cache" != 1; then |
e46d2a18 | 4373 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4374 | fi |
4375 | ||
e46d2a18 | 4376 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4377 | echo "$as_me:$LINENO: result: yes" >&5 |
4378 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4379 | else |
e6cc62c6 VS |
4380 | echo "$as_me:$LINENO: result: no" >&5 |
4381 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4382 | fi |
e6cc62c6 | 4383 | |
10f2d63a | 4384 | |
5005acfe | 4385 | enablestring= |
e46d2a18 VS |
4386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4387 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4388 | no_cache=0 |
e46d2a18 VS |
4389 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4390 | if test "${enable_catch_segvs+set}" = set; then | |
4391 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4392 | |
10f2d63a | 4393 | if test "$enableval" = yes; then |
e46d2a18 | 4394 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4395 | else |
e46d2a18 | 4396 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4397 | fi |
e6cc62c6 | 4398 | |
10f2d63a | 4399 | else |
e6cc62c6 | 4400 | |
e46d2a18 | 4401 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4402 | if test "x$LINE" != x ; then |
4403 | eval "DEFAULT_$LINE" | |
4404 | else | |
4405 | no_cache=1 | |
4406 | fi | |
4407 | ||
e46d2a18 | 4408 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4409 | |
e6cc62c6 | 4410 | fi; |
10f2d63a | 4411 | |
e46d2a18 | 4412 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4413 | if test "$no_cache" != 1; then |
e46d2a18 | 4414 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4415 | fi |
4416 | ||
e46d2a18 | 4417 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4418 | echo "$as_me:$LINENO: result: yes" >&5 |
4419 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4420 | else |
e6cc62c6 VS |
4421 | echo "$as_me:$LINENO: result: no" >&5 |
4422 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4423 | fi |
e6cc62c6 | 4424 | |
10f2d63a | 4425 | |
5005acfe | 4426 | enablestring= |
e46d2a18 VS |
4427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4428 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4429 | no_cache=0 |
e46d2a18 VS |
4430 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4431 | if test "${enable_cmdline+set}" = set; then | |
4432 | enableval="$enable_cmdline" | |
e6cc62c6 | 4433 | |
10f2d63a | 4434 | if test "$enableval" = yes; then |
e46d2a18 | 4435 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4436 | else |
e46d2a18 | 4437 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4438 | fi |
e6cc62c6 | 4439 | |
10f2d63a | 4440 | else |
e6cc62c6 | 4441 | |
e46d2a18 | 4442 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4443 | if test "x$LINE" != x ; then |
4444 | eval "DEFAULT_$LINE" | |
4445 | else | |
4446 | no_cache=1 | |
4447 | fi | |
4448 | ||
e46d2a18 | 4449 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4450 | |
e6cc62c6 | 4451 | fi; |
10f2d63a | 4452 | |
e46d2a18 | 4453 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4454 | if test "$no_cache" != 1; then |
e46d2a18 | 4455 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4456 | fi |
4457 | ||
e46d2a18 | 4458 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4459 | echo "$as_me:$LINENO: result: yes" >&5 |
4460 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4461 | else |
e6cc62c6 VS |
4462 | echo "$as_me:$LINENO: result: no" >&5 |
4463 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4464 | fi |
e6cc62c6 | 4465 | |
10f2d63a | 4466 | |
5005acfe | 4467 | enablestring= |
e46d2a18 VS |
4468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4469 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4470 | no_cache=0 |
e46d2a18 VS |
4471 | # Check whether --enable-datetime or --disable-datetime was given. |
4472 | if test "${enable_datetime+set}" = set; then | |
4473 | enableval="$enable_datetime" | |
e6cc62c6 | 4474 | |
10f2d63a | 4475 | if test "$enableval" = yes; then |
e46d2a18 | 4476 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4477 | else |
e46d2a18 | 4478 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4479 | fi |
e6cc62c6 | 4480 | |
10f2d63a | 4481 | else |
e6cc62c6 | 4482 | |
e46d2a18 | 4483 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4484 | if test "x$LINE" != x ; then |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
e46d2a18 | 4490 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4491 | |
e6cc62c6 | 4492 | fi; |
10f2d63a | 4493 | |
e46d2a18 | 4494 | eval "$ac_cv_use_datetime" |
10f2d63a | 4495 | if test "$no_cache" != 1; then |
e46d2a18 | 4496 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4497 | fi |
4498 | ||
e46d2a18 | 4499 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4500 | echo "$as_me:$LINENO: result: yes" >&5 |
4501 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4502 | else |
e6cc62c6 VS |
4503 | echo "$as_me:$LINENO: result: no" >&5 |
4504 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4505 | fi |
e6cc62c6 | 4506 | |
10f2d63a | 4507 | |
5005acfe | 4508 | enablestring= |
e46d2a18 VS |
4509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4510 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4511 | no_cache=0 |
e46d2a18 VS |
4512 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4513 | if test "${enable_dialupman+set}" = set; then | |
4514 | enableval="$enable_dialupman" | |
e6cc62c6 | 4515 | |
10f2d63a | 4516 | if test "$enableval" = yes; then |
e46d2a18 | 4517 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4518 | else |
e46d2a18 | 4519 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4520 | fi |
e6cc62c6 | 4521 | |
10f2d63a | 4522 | else |
e6cc62c6 | 4523 | |
e46d2a18 | 4524 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4525 | if test "x$LINE" != x ; then |
4526 | eval "DEFAULT_$LINE" | |
4527 | else | |
4528 | no_cache=1 | |
4529 | fi | |
4530 | ||
e46d2a18 | 4531 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4532 | |
e6cc62c6 | 4533 | fi; |
10f2d63a | 4534 | |
e46d2a18 | 4535 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4536 | if test "$no_cache" != 1; then |
e46d2a18 | 4537 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4538 | fi |
4539 | ||
e46d2a18 | 4540 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4541 | echo "$as_me:$LINENO: result: yes" >&5 |
4542 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4543 | else |
e6cc62c6 VS |
4544 | echo "$as_me:$LINENO: result: no" >&5 |
4545 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4546 | fi |
e6cc62c6 | 4547 | |
10f2d63a | 4548 | |
5005acfe | 4549 | enablestring= |
e6cc62c6 VS |
4550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4551 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4552 | no_cache=0 |
4553 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4554 | if test "${enable_dynlib+set}" = set; then | |
4555 | enableval="$enable_dynlib" | |
e6cc62c6 | 4556 | |
10f2d63a VZ |
4557 | if test "$enableval" = yes; then |
4558 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4559 | else | |
4560 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4561 | fi | |
e6cc62c6 | 4562 | |
10f2d63a | 4563 | else |
e6cc62c6 | 4564 | |
10f2d63a VZ |
4565 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4566 | if test "x$LINE" != x ; then | |
4567 | eval "DEFAULT_$LINE" | |
4568 | else | |
4569 | no_cache=1 | |
4570 | fi | |
4571 | ||
4572 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4573 | |
e6cc62c6 | 4574 | fi; |
10f2d63a VZ |
4575 | |
4576 | eval "$ac_cv_use_dynlib" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4582 | echo "$as_me:$LINENO: result: yes" >&5 |
4583 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4584 | else |
e6cc62c6 VS |
4585 | echo "$as_me:$LINENO: result: no" >&5 |
4586 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4587 | fi |
e6cc62c6 | 4588 | |
10f2d63a | 4589 | |
5005acfe | 4590 | enablestring= |
e6cc62c6 VS |
4591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4592 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4593 | no_cache=0 |
4594 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4595 | if test "${enable_dynamicloader+set}" = set; then | |
4596 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4597 | |
0b9ab0bd RL |
4598 | if test "$enableval" = yes; then |
4599 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4600 | else | |
4601 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4602 | fi | |
e6cc62c6 | 4603 | |
0b9ab0bd | 4604 | else |
e6cc62c6 | 4605 | |
0b9ab0bd RL |
4606 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4607 | if test "x$LINE" != x ; then | |
4608 | eval "DEFAULT_$LINE" | |
4609 | else | |
4610 | no_cache=1 | |
4611 | fi | |
4612 | ||
4613 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4614 | |
e6cc62c6 | 4615 | fi; |
0b9ab0bd RL |
4616 | |
4617 | eval "$ac_cv_use_dynamicloader" | |
4618 | if test "$no_cache" != 1; then | |
4619 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4620 | fi | |
4621 | ||
4622 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4623 | echo "$as_me:$LINENO: result: yes" >&5 |
4624 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4625 | else |
e6cc62c6 VS |
4626 | echo "$as_me:$LINENO: result: no" >&5 |
4627 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4628 | fi |
e6cc62c6 | 4629 | |
0b9ab0bd | 4630 | |
5005acfe | 4631 | enablestring= |
e46d2a18 VS |
4632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4633 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4634 | no_cache=0 |
e46d2a18 VS |
4635 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4636 | if test "${enable_exceptions+set}" = set; then | |
4637 | enableval="$enable_exceptions" | |
e6cc62c6 | 4638 | |
10f2d63a | 4639 | if test "$enableval" = yes; then |
e46d2a18 | 4640 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4641 | else |
e46d2a18 | 4642 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4643 | fi |
e6cc62c6 | 4644 | |
10f2d63a | 4645 | else |
e6cc62c6 | 4646 | |
e46d2a18 | 4647 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4648 | if test "x$LINE" != x ; then |
4649 | eval "DEFAULT_$LINE" | |
4650 | else | |
4651 | no_cache=1 | |
4652 | fi | |
4653 | ||
e46d2a18 | 4654 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4655 | |
e6cc62c6 | 4656 | fi; |
10f2d63a | 4657 | |
e46d2a18 | 4658 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4659 | if test "$no_cache" != 1; then |
e46d2a18 | 4660 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4661 | fi |
4662 | ||
e46d2a18 | 4663 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4664 | echo "$as_me:$LINENO: result: yes" >&5 |
4665 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4666 | else |
e6cc62c6 VS |
4667 | echo "$as_me:$LINENO: result: no" >&5 |
4668 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4669 | fi |
e6cc62c6 | 4670 | |
10f2d63a | 4671 | |
5005acfe | 4672 | enablestring= |
e46d2a18 VS |
4673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4674 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4675 | no_cache=0 |
e46d2a18 VS |
4676 | # Check whether --enable-ffile or --disable-ffile was given. |
4677 | if test "${enable_ffile+set}" = set; then | |
4678 | enableval="$enable_ffile" | |
e6cc62c6 | 4679 | |
e8f65ba6 | 4680 | if test "$enableval" = yes; then |
e46d2a18 | 4681 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4682 | else |
e46d2a18 | 4683 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4684 | fi |
e6cc62c6 | 4685 | |
e8f65ba6 | 4686 | else |
e6cc62c6 | 4687 | |
e46d2a18 | 4688 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4689 | if test "x$LINE" != x ; then |
4690 | eval "DEFAULT_$LINE" | |
4691 | else | |
4692 | no_cache=1 | |
4693 | fi | |
4694 | ||
e46d2a18 | 4695 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4696 | |
e6cc62c6 | 4697 | fi; |
e8f65ba6 | 4698 | |
e46d2a18 | 4699 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4700 | if test "$no_cache" != 1; then |
e46d2a18 | 4701 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4702 | fi |
4703 | ||
e46d2a18 | 4704 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4705 | echo "$as_me:$LINENO: result: yes" >&5 |
4706 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4707 | else |
e6cc62c6 VS |
4708 | echo "$as_me:$LINENO: result: no" >&5 |
4709 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4710 | fi |
e6cc62c6 | 4711 | |
e8f65ba6 | 4712 | |
5005acfe | 4713 | enablestring= |
e46d2a18 VS |
4714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4715 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4716 | no_cache=0 |
e46d2a18 VS |
4717 | # Check whether --enable-file or --disable-file was given. |
4718 | if test "${enable_file+set}" = set; then | |
4719 | enableval="$enable_file" | |
e6cc62c6 | 4720 | |
10f2d63a | 4721 | if test "$enableval" = yes; then |
e46d2a18 | 4722 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4723 | else |
e46d2a18 | 4724 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4725 | fi |
e6cc62c6 | 4726 | |
10f2d63a | 4727 | else |
e6cc62c6 | 4728 | |
e46d2a18 | 4729 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4730 | if test "x$LINE" != x ; then |
4731 | eval "DEFAULT_$LINE" | |
4732 | else | |
4733 | no_cache=1 | |
4734 | fi | |
4735 | ||
e46d2a18 | 4736 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4737 | |
e6cc62c6 | 4738 | fi; |
10f2d63a | 4739 | |
e46d2a18 | 4740 | eval "$ac_cv_use_file" |
10f2d63a | 4741 | if test "$no_cache" != 1; then |
e46d2a18 | 4742 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4743 | fi |
4744 | ||
e46d2a18 | 4745 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4746 | echo "$as_me:$LINENO: result: yes" >&5 |
4747 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4748 | else |
e6cc62c6 VS |
4749 | echo "$as_me:$LINENO: result: no" >&5 |
4750 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4751 | fi |
e6cc62c6 | 4752 | |
10f2d63a | 4753 | |
5005acfe | 4754 | enablestring= |
e46d2a18 VS |
4755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4756 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4757 | no_cache=0 |
e46d2a18 VS |
4758 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4759 | if test "${enable_filesystem+set}" = set; then | |
4760 | enableval="$enable_filesystem" | |
e6cc62c6 | 4761 | |
10f2d63a | 4762 | if test "$enableval" = yes; then |
e46d2a18 | 4763 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4764 | else |
e46d2a18 | 4765 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4766 | fi |
e6cc62c6 | 4767 | |
10f2d63a | 4768 | else |
e6cc62c6 | 4769 | |
e46d2a18 | 4770 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4771 | if test "x$LINE" != x ; then |
4772 | eval "DEFAULT_$LINE" | |
4773 | else | |
4774 | no_cache=1 | |
4775 | fi | |
4776 | ||
e46d2a18 | 4777 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4778 | |
e6cc62c6 | 4779 | fi; |
10f2d63a | 4780 | |
e46d2a18 | 4781 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4782 | if test "$no_cache" != 1; then |
e46d2a18 | 4783 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4784 | fi |
4785 | ||
e46d2a18 | 4786 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4787 | echo "$as_me:$LINENO: result: yes" >&5 |
4788 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4789 | else |
e6cc62c6 VS |
4790 | echo "$as_me:$LINENO: result: no" >&5 |
4791 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4792 | fi |
e6cc62c6 | 4793 | |
10f2d63a | 4794 | |
5005acfe | 4795 | enablestring= |
e46d2a18 VS |
4796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4797 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4798 | no_cache=0 |
e46d2a18 VS |
4799 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4800 | if test "${enable_fontmap+set}" = set; then | |
4801 | enableval="$enable_fontmap" | |
e6cc62c6 | 4802 | |
10f2d63a | 4803 | if test "$enableval" = yes; then |
e46d2a18 | 4804 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4805 | else |
e46d2a18 | 4806 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4807 | fi |
e6cc62c6 | 4808 | |
10f2d63a | 4809 | else |
e6cc62c6 | 4810 | |
e46d2a18 | 4811 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4812 | if test "x$LINE" != x ; then |
4813 | eval "DEFAULT_$LINE" | |
4814 | else | |
4815 | no_cache=1 | |
4816 | fi | |
4817 | ||
e46d2a18 | 4818 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4819 | |
e6cc62c6 | 4820 | fi; |
10f2d63a | 4821 | |
e46d2a18 | 4822 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4823 | if test "$no_cache" != 1; then |
e46d2a18 | 4824 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4825 | fi |
4826 | ||
e46d2a18 | 4827 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4828 | echo "$as_me:$LINENO: result: yes" >&5 |
4829 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4830 | else |
e6cc62c6 VS |
4831 | echo "$as_me:$LINENO: result: no" >&5 |
4832 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4833 | fi |
e6cc62c6 | 4834 | |
10f2d63a | 4835 | |
5005acfe | 4836 | enablestring= |
e46d2a18 VS |
4837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4838 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4839 | no_cache=0 |
e46d2a18 VS |
4840 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4841 | if test "${enable_fs_inet+set}" = set; then | |
4842 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4843 | |
10f2d63a | 4844 | if test "$enableval" = yes; then |
e46d2a18 | 4845 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4846 | else |
e46d2a18 | 4847 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4848 | fi |
e6cc62c6 | 4849 | |
10f2d63a | 4850 | else |
e6cc62c6 | 4851 | |
e46d2a18 | 4852 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4853 | if test "x$LINE" != x ; then |
4854 | eval "DEFAULT_$LINE" | |
4855 | else | |
4856 | no_cache=1 | |
4857 | fi | |
4858 | ||
e46d2a18 | 4859 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4860 | |
e6cc62c6 | 4861 | fi; |
10f2d63a | 4862 | |
e46d2a18 | 4863 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4864 | if test "$no_cache" != 1; then |
e46d2a18 | 4865 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4866 | fi |
4867 | ||
e46d2a18 | 4868 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
4869 | echo "$as_me:$LINENO: result: yes" >&5 |
4870 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4871 | else |
e6cc62c6 VS |
4872 | echo "$as_me:$LINENO: result: no" >&5 |
4873 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4874 | fi |
e6cc62c6 | 4875 | |
10f2d63a | 4876 | |
5005acfe | 4877 | enablestring= |
e46d2a18 VS |
4878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
4879 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 4880 | no_cache=0 |
e46d2a18 VS |
4881 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
4882 | if test "${enable_fs_zip+set}" = set; then | |
4883 | enableval="$enable_fs_zip" | |
e6cc62c6 | 4884 | |
a3a584a7 | 4885 | if test "$enableval" = yes; then |
e46d2a18 | 4886 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 4887 | else |
e46d2a18 | 4888 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 4889 | fi |
e6cc62c6 | 4890 | |
a3a584a7 | 4891 | else |
e6cc62c6 | 4892 | |
e46d2a18 | 4893 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
4894 | if test "x$LINE" != x ; then |
4895 | eval "DEFAULT_$LINE" | |
4896 | else | |
4897 | no_cache=1 | |
4898 | fi | |
4899 | ||
e46d2a18 | 4900 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 4901 | |
e6cc62c6 | 4902 | fi; |
a3a584a7 | 4903 | |
e46d2a18 | 4904 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 4905 | if test "$no_cache" != 1; then |
e46d2a18 | 4906 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
4907 | fi |
4908 | ||
e46d2a18 | 4909 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
4910 | echo "$as_me:$LINENO: result: yes" >&5 |
4911 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4912 | else |
e6cc62c6 VS |
4913 | echo "$as_me:$LINENO: result: no" >&5 |
4914 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4915 | fi |
e6cc62c6 | 4916 | |
a3a584a7 | 4917 | |
5005acfe | 4918 | enablestring= |
e46d2a18 VS |
4919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4920 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 4921 | no_cache=0 |
e46d2a18 VS |
4922 | # Check whether --enable-geometry or --disable-geometry was given. |
4923 | if test "${enable_geometry+set}" = set; then | |
4924 | enableval="$enable_geometry" | |
e6cc62c6 | 4925 | |
10f2d63a | 4926 | if test "$enableval" = yes; then |
e46d2a18 | 4927 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 4928 | else |
e46d2a18 | 4929 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 4930 | fi |
e6cc62c6 | 4931 | |
10f2d63a | 4932 | else |
e6cc62c6 | 4933 | |
e46d2a18 | 4934 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
4935 | if test "x$LINE" != x ; then |
4936 | eval "DEFAULT_$LINE" | |
4937 | else | |
4938 | no_cache=1 | |
4939 | fi | |
4940 | ||
e46d2a18 | 4941 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 4942 | |
e6cc62c6 | 4943 | fi; |
10f2d63a | 4944 | |
e46d2a18 | 4945 | eval "$ac_cv_use_geometry" |
10f2d63a | 4946 | if test "$no_cache" != 1; then |
e46d2a18 | 4947 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4948 | fi |
4949 | ||
e46d2a18 | 4950 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
4951 | echo "$as_me:$LINENO: result: yes" >&5 |
4952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4953 | else |
e6cc62c6 VS |
4954 | echo "$as_me:$LINENO: result: no" >&5 |
4955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4956 | fi |
e6cc62c6 | 4957 | |
10f2d63a | 4958 | |
5005acfe | 4959 | enablestring= |
e46d2a18 VS |
4960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4961 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 4962 | no_cache=0 |
e46d2a18 VS |
4963 | # Check whether --enable-log or --disable-log was given. |
4964 | if test "${enable_log+set}" = set; then | |
4965 | enableval="$enable_log" | |
e6cc62c6 | 4966 | |
10f2d63a | 4967 | if test "$enableval" = yes; then |
e46d2a18 | 4968 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 4969 | else |
e46d2a18 | 4970 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 4971 | fi |
e6cc62c6 | 4972 | |
10f2d63a | 4973 | else |
e6cc62c6 | 4974 | |
e46d2a18 | 4975 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
4976 | if test "x$LINE" != x ; then |
4977 | eval "DEFAULT_$LINE" | |
4978 | else | |
4979 | no_cache=1 | |
4980 | fi | |
4981 | ||
e46d2a18 | 4982 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 4983 | |
e6cc62c6 | 4984 | fi; |
10f2d63a | 4985 | |
e46d2a18 | 4986 | eval "$ac_cv_use_log" |
10f2d63a | 4987 | if test "$no_cache" != 1; then |
e46d2a18 | 4988 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4989 | fi |
4990 | ||
e46d2a18 | 4991 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
4992 | echo "$as_me:$LINENO: result: yes" >&5 |
4993 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4994 | else |
e6cc62c6 VS |
4995 | echo "$as_me:$LINENO: result: no" >&5 |
4996 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4997 | fi |
e6cc62c6 | 4998 | |
10f2d63a | 4999 | |
5005acfe | 5000 | enablestring= |
e46d2a18 VS |
5001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
5002 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5003 | no_cache=0 |
e46d2a18 VS |
5004 | # Check whether --enable-longlong or --disable-longlong was given. |
5005 | if test "${enable_longlong+set}" = set; then | |
5006 | enableval="$enable_longlong" | |
e6cc62c6 | 5007 | |
1e6feb95 | 5008 | if test "$enableval" = yes; then |
e46d2a18 | 5009 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5010 | else |
e46d2a18 | 5011 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5012 | fi |
e6cc62c6 | 5013 | |
1e6feb95 | 5014 | else |
e6cc62c6 | 5015 | |
e46d2a18 | 5016 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5017 | if test "x$LINE" != x ; then |
5018 | eval "DEFAULT_$LINE" | |
5019 | else | |
5020 | no_cache=1 | |
5021 | fi | |
5022 | ||
e46d2a18 | 5023 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5024 | |
e6cc62c6 | 5025 | fi; |
1e6feb95 | 5026 | |
e46d2a18 | 5027 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5028 | if test "$no_cache" != 1; then |
e46d2a18 | 5029 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5030 | fi |
5031 | ||
e46d2a18 VS |
5032 | if test "$wxUSE_LONGLONG" = yes; then |
5033 | echo "$as_me:$LINENO: result: yes" >&5 | |
5034 | echo "${ECHO_T}yes" >&6 | |
5035 | else | |
5036 | echo "$as_me:$LINENO: result: no" >&5 | |
5037 | echo "${ECHO_T}no" >&6 | |
5038 | fi | |
5039 | ||
5040 | ||
5041 | enablestring= | |
5042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5043 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5044 | no_cache=0 | |
5045 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5046 | if test "${enable_mimetype+set}" = set; then | |
5047 | enableval="$enable_mimetype" | |
5048 | ||
5049 | if test "$enableval" = yes; then | |
5050 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5051 | else | |
5052 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5053 | fi | |
5054 | ||
5055 | else | |
5056 | ||
5057 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5058 | if test "x$LINE" != x ; then | |
5059 | eval "DEFAULT_$LINE" | |
5060 | else | |
5061 | no_cache=1 | |
5062 | fi | |
5063 | ||
5064 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5065 | ||
5066 | fi; | |
5067 | ||
5068 | eval "$ac_cv_use_mimetype" | |
5069 | if test "$no_cache" != 1; then | |
5070 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5071 | fi | |
5072 | ||
5073 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5074 | echo "$as_me:$LINENO: result: yes" >&5 |
5075 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5076 | else |
e6cc62c6 VS |
5077 | echo "$as_me:$LINENO: result: no" >&5 |
5078 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5079 | fi |
e6cc62c6 | 5080 | |
1e6feb95 | 5081 | |
5005acfe | 5082 | enablestring= |
e6cc62c6 VS |
5083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5084 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5085 | no_cache=0 |
5086 | # Check whether --enable-mslu or --disable-mslu was given. | |
5087 | if test "${enable_mslu+set}" = set; then | |
5088 | enableval="$enable_mslu" | |
e6cc62c6 | 5089 | |
a72a4bfa VS |
5090 | if test "$enableval" = yes; then |
5091 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5092 | else | |
5093 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5094 | fi | |
e6cc62c6 | 5095 | |
a72a4bfa | 5096 | else |
e6cc62c6 | 5097 | |
a72a4bfa VS |
5098 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5099 | if test "x$LINE" != x ; then | |
5100 | eval "DEFAULT_$LINE" | |
5101 | else | |
5102 | no_cache=1 | |
5103 | fi | |
5104 | ||
5105 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5106 | |
e6cc62c6 | 5107 | fi; |
a72a4bfa VS |
5108 | |
5109 | eval "$ac_cv_use_mslu" | |
5110 | if test "$no_cache" != 1; then | |
5111 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5112 | fi | |
5113 | ||
5114 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5115 | echo "$as_me:$LINENO: result: yes" >&5 |
5116 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5117 | else |
e6cc62c6 VS |
5118 | echo "$as_me:$LINENO: result: no" >&5 |
5119 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5120 | fi |
e6cc62c6 | 5121 | |
a72a4bfa | 5122 | |
5005acfe | 5123 | enablestring= |
e46d2a18 VS |
5124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5125 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5126 | no_cache=0 |
e46d2a18 VS |
5127 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5128 | if test "${enable_snglinst+set}" = set; then | |
5129 | enableval="$enable_snglinst" | |
e6cc62c6 | 5130 | |
1e6feb95 | 5131 | if test "$enableval" = yes; then |
e46d2a18 | 5132 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5133 | else |
e46d2a18 | 5134 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5135 | fi |
e6cc62c6 | 5136 | |
10f2d63a | 5137 | else |
e6cc62c6 | 5138 | |
e46d2a18 | 5139 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5140 | if test "x$LINE" != x ; then |
5141 | eval "DEFAULT_$LINE" | |
5142 | else | |
5143 | no_cache=1 | |
5144 | fi | |
5145 | ||
e46d2a18 | 5146 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5147 | |
e6cc62c6 | 5148 | fi; |
10f2d63a | 5149 | |
e46d2a18 | 5150 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5151 | if test "$no_cache" != 1; then |
e46d2a18 | 5152 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5153 | fi |
5154 | ||
e46d2a18 VS |
5155 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5156 | echo "$as_me:$LINENO: result: yes" >&5 | |
5157 | echo "${ECHO_T}yes" >&6 | |
5158 | else | |
5159 | echo "$as_me:$LINENO: result: no" >&5 | |
5160 | echo "${ECHO_T}no" >&6 | |
5161 | fi | |
5162 | ||
5163 | ||
5164 | enablestring= | |
5165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5166 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5167 | no_cache=0 | |
5168 | # Check whether --enable-streams or --disable-streams was given. | |
5169 | if test "${enable_streams+set}" = set; then | |
5170 | enableval="$enable_streams" | |
5171 | ||
5172 | if test "$enableval" = yes; then | |
5173 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5174 | else | |
5175 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5176 | fi | |
5177 | ||
5178 | else | |
5179 | ||
5180 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5181 | if test "x$LINE" != x ; then | |
5182 | eval "DEFAULT_$LINE" | |
5183 | else | |
5184 | no_cache=1 | |
5185 | fi | |
5186 | ||
5187 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5188 | ||
5189 | fi; | |
5190 | ||
5191 | eval "$ac_cv_use_streams" | |
5192 | if test "$no_cache" != 1; then | |
5193 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5194 | fi | |
5195 | ||
5196 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5197 | echo "$as_me:$LINENO: result: yes" >&5 |
5198 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5199 | else |
e6cc62c6 VS |
5200 | echo "$as_me:$LINENO: result: no" >&5 |
5201 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5202 | fi |
e6cc62c6 | 5203 | |
10f2d63a | 5204 | |
5005acfe | 5205 | enablestring= |
e6cc62c6 VS |
5206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5207 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5208 | no_cache=0 |
5209 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5210 | if test "${enable_std_iostreams+set}" = set; then | |
5211 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5212 | |
10f2d63a VZ |
5213 | if test "$enableval" = yes; then |
5214 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5215 | else | |
5216 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5217 | fi | |
e6cc62c6 | 5218 | |
10f2d63a | 5219 | else |
e6cc62c6 | 5220 | |
10f2d63a VZ |
5221 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5222 | if test "x$LINE" != x ; then | |
5223 | eval "DEFAULT_$LINE" | |
5224 | else | |
5225 | no_cache=1 | |
5226 | fi | |
5227 | ||
5228 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5229 | |
e6cc62c6 | 5230 | fi; |
10f2d63a VZ |
5231 | |
5232 | eval "$ac_cv_use_std_iostreams" | |
5233 | if test "$no_cache" != 1; then | |
5234 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5235 | fi | |
5236 | ||
5237 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5238 | echo "$as_me:$LINENO: result: yes" >&5 |
5239 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5240 | else |
e6cc62c6 VS |
5241 | echo "$as_me:$LINENO: result: no" >&5 |
5242 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5243 | fi |
e6cc62c6 | 5244 | |
10f2d63a | 5245 | |
5005acfe | 5246 | enablestring= |
e46d2a18 VS |
5247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5248 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5249 | no_cache=0 |
e46d2a18 VS |
5250 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5251 | if test "${enable_stopwatch+set}" = set; then | |
5252 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5253 | |
24528b0c | 5254 | if test "$enableval" = yes; then |
e46d2a18 | 5255 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5256 | else |
e46d2a18 | 5257 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5258 | fi |
e6cc62c6 | 5259 | |
24528b0c | 5260 | else |
e6cc62c6 | 5261 | |
e46d2a18 | 5262 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5263 | if test "x$LINE" != x ; then |
5264 | eval "DEFAULT_$LINE" | |
5265 | else | |
5266 | no_cache=1 | |
5267 | fi | |
5268 | ||
e46d2a18 | 5269 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5270 | |
e6cc62c6 | 5271 | fi; |
24528b0c | 5272 | |
e46d2a18 | 5273 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5274 | if test "$no_cache" != 1; then |
e46d2a18 | 5275 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5276 | fi |
5277 | ||
e46d2a18 | 5278 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5279 | echo "$as_me:$LINENO: result: yes" >&5 |
5280 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5281 | else |
e6cc62c6 VS |
5282 | echo "$as_me:$LINENO: result: no" >&5 |
5283 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5284 | fi |
e6cc62c6 | 5285 | |
24528b0c | 5286 | |
5005acfe | 5287 | enablestring= |
e46d2a18 VS |
5288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5289 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5290 | no_cache=0 |
e46d2a18 VS |
5291 | # Check whether --enable-system_options or --disable-system_options was given. |
5292 | if test "${enable_system_options+set}" = set; then | |
5293 | enableval="$enable_system_options" | |
e6cc62c6 | 5294 | |
10f2d63a | 5295 | if test "$enableval" = yes; then |
e46d2a18 | 5296 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5297 | else |
e46d2a18 | 5298 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5299 | fi |
e6cc62c6 | 5300 | |
10f2d63a | 5301 | else |
e6cc62c6 | 5302 | |
e46d2a18 | 5303 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5304 | if test "x$LINE" != x ; then |
5305 | eval "DEFAULT_$LINE" | |
5306 | else | |
5307 | no_cache=1 | |
5308 | fi | |
5309 | ||
e46d2a18 | 5310 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5311 | |
e6cc62c6 | 5312 | fi; |
10f2d63a | 5313 | |
e46d2a18 | 5314 | eval "$ac_cv_use_system_options" |
10f2d63a | 5315 | if test "$no_cache" != 1; then |
e46d2a18 | 5316 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5317 | fi |
5318 | ||
e46d2a18 | 5319 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5320 | echo "$as_me:$LINENO: result: yes" >&5 |
5321 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5322 | else |
e6cc62c6 VS |
5323 | echo "$as_me:$LINENO: result: no" >&5 |
5324 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5325 | fi |
e6cc62c6 | 5326 | |
10f2d63a | 5327 | |
5005acfe | 5328 | enablestring= |
e46d2a18 VS |
5329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5330 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5331 | no_cache=0 |
e46d2a18 VS |
5332 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5333 | if test "${enable_textbuf+set}" = set; then | |
5334 | enableval="$enable_textbuf" | |
e6cc62c6 | 5335 | |
10f2d63a | 5336 | if test "$enableval" = yes; then |
e46d2a18 | 5337 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5338 | else |
e46d2a18 | 5339 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5340 | fi |
e6cc62c6 | 5341 | |
10f2d63a | 5342 | else |
e6cc62c6 | 5343 | |
e46d2a18 | 5344 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5345 | if test "x$LINE" != x ; then |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
e46d2a18 | 5351 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5352 | |
e6cc62c6 | 5353 | fi; |
10f2d63a | 5354 | |
e46d2a18 | 5355 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5356 | if test "$no_cache" != 1; then |
e46d2a18 | 5357 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5358 | fi |
5359 | ||
e46d2a18 | 5360 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5361 | echo "$as_me:$LINENO: result: yes" >&5 |
5362 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5363 | else |
e6cc62c6 VS |
5364 | echo "$as_me:$LINENO: result: no" >&5 |
5365 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5366 | fi |
e6cc62c6 | 5367 | |
10f2d63a | 5368 | |
5005acfe | 5369 | enablestring= |
e46d2a18 VS |
5370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5371 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5372 | no_cache=0 |
e46d2a18 VS |
5373 | # Check whether --enable-textfile or --disable-textfile was given. |
5374 | if test "${enable_textfile+set}" = set; then | |
5375 | enableval="$enable_textfile" | |
e6cc62c6 | 5376 | |
10f2d63a | 5377 | if test "$enableval" = yes; then |
e46d2a18 | 5378 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5379 | else |
e46d2a18 | 5380 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5381 | fi |
e6cc62c6 | 5382 | |
10f2d63a | 5383 | else |
e6cc62c6 | 5384 | |
e46d2a18 | 5385 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5386 | if test "x$LINE" != x ; then |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
e46d2a18 | 5392 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5393 | |
e6cc62c6 | 5394 | fi; |
10f2d63a | 5395 | |
e46d2a18 | 5396 | eval "$ac_cv_use_textfile" |
10f2d63a | 5397 | if test "$no_cache" != 1; then |
e46d2a18 | 5398 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5399 | fi |
5400 | ||
e46d2a18 | 5401 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5402 | echo "$as_me:$LINENO: result: yes" >&5 |
5403 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5404 | else |
e6cc62c6 VS |
5405 | echo "$as_me:$LINENO: result: no" >&5 |
5406 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5407 | fi |
e6cc62c6 | 5408 | |
8284b0c5 | 5409 | |
5005acfe | 5410 | enablestring= |
e46d2a18 VS |
5411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5412 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5413 | no_cache=0 |
e46d2a18 VS |
5414 | # Check whether --enable-timer or --disable-timer was given. |
5415 | if test "${enable_timer+set}" = set; then | |
5416 | enableval="$enable_timer" | |
e6cc62c6 | 5417 | |
eb4efbdc | 5418 | if test "$enableval" = yes; then |
e46d2a18 | 5419 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5420 | else |
e46d2a18 | 5421 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5422 | fi |
e6cc62c6 | 5423 | |
eb4efbdc | 5424 | else |
e6cc62c6 | 5425 | |
e46d2a18 | 5426 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5427 | if test "x$LINE" != x ; then |
5428 | eval "DEFAULT_$LINE" | |
5429 | else | |
5430 | no_cache=1 | |
5431 | fi | |
5432 | ||
e46d2a18 | 5433 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5434 | |
e6cc62c6 | 5435 | fi; |
eb4efbdc | 5436 | |
e46d2a18 | 5437 | eval "$ac_cv_use_timer" |
eb4efbdc | 5438 | if test "$no_cache" != 1; then |
e46d2a18 | 5439 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5440 | fi |
5441 | ||
e46d2a18 | 5442 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5443 | echo "$as_me:$LINENO: result: yes" >&5 |
5444 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5445 | else |
e6cc62c6 VS |
5446 | echo "$as_me:$LINENO: result: no" >&5 |
5447 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5448 | fi |
e6cc62c6 | 5449 | |
eb4efbdc | 5450 | |
5005acfe | 5451 | enablestring= |
e46d2a18 VS |
5452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5453 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5454 | no_cache=0 |
e46d2a18 VS |
5455 | # Check whether --enable-unicode or --disable-unicode was given. |
5456 | if test "${enable_unicode+set}" = set; then | |
5457 | enableval="$enable_unicode" | |
e6cc62c6 | 5458 | |
4f3c5f06 | 5459 | if test "$enableval" = yes; then |
e46d2a18 | 5460 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5461 | else |
e46d2a18 | 5462 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5463 | fi |
e6cc62c6 | 5464 | |
4f3c5f06 | 5465 | else |
e6cc62c6 | 5466 | |
e46d2a18 | 5467 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5468 | if test "x$LINE" != x ; then |
5469 | eval "DEFAULT_$LINE" | |
5470 | else | |
5471 | no_cache=1 | |
5472 | fi | |
5473 | ||
e46d2a18 | 5474 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5475 | |
e6cc62c6 | 5476 | fi; |
4f3c5f06 | 5477 | |
e46d2a18 | 5478 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5479 | if test "$no_cache" != 1; then |
e46d2a18 | 5480 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5481 | fi |
5482 | ||
e46d2a18 | 5483 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5484 | echo "$as_me:$LINENO: result: yes" >&5 |
5485 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5486 | else |
e6cc62c6 VS |
5487 | echo "$as_me:$LINENO: result: no" >&5 |
5488 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5489 | fi |
e6cc62c6 | 5490 | |
52127426 | 5491 | |
e46d2a18 VS |
5492 | enablestring= |
5493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 | |
5494 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
5495 | no_cache=0 | |
5496 | # Check whether --enable-wave or --disable-wave was given. | |
5497 | if test "${enable_wave+set}" = set; then | |
5498 | enableval="$enable_wave" | |
5499 | ||
5500 | if test "$enableval" = yes; then | |
5501 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
5502 | else | |
5503 | ac_cv_use_wave='wxUSE_WAVE=no' | |
5504 | fi | |
5505 | ||
5506 | else | |
5507 | ||
5508 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
5516 | ||
5517 | fi; | |
5518 | ||
5519 | eval "$ac_cv_use_wave" | |
5520 | if test "$no_cache" != 1; then | |
5521 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
5522 | fi | |
5523 | ||
5524 | if test "$wxUSE_WAVE" = yes; then | |
5525 | echo "$as_me:$LINENO: result: yes" >&5 | |
5526 | echo "${ECHO_T}yes" >&6 | |
5527 | else | |
5528 | echo "$as_me:$LINENO: result: no" >&5 | |
5529 | echo "${ECHO_T}no" >&6 | |
5530 | fi | |
5531 | ||
8284b0c5 | 5532 | |
5005acfe | 5533 | enablestring= |
e46d2a18 VS |
5534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5535 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5536 | no_cache=0 |
e46d2a18 VS |
5537 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5538 | if test "${enable_wxprintfv+set}" = set; then | |
5539 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5540 | |
1e6feb95 | 5541 | if test "$enableval" = yes; then |
e46d2a18 | 5542 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5543 | else |
e46d2a18 | 5544 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5545 | fi |
e6cc62c6 | 5546 | |
1e6feb95 | 5547 | else |
e6cc62c6 | 5548 | |
e46d2a18 | 5549 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5550 | if test "x$LINE" != x ; then |
5551 | eval "DEFAULT_$LINE" | |
5552 | else | |
5553 | no_cache=1 | |
5554 | fi | |
5555 | ||
e46d2a18 | 5556 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5557 | |
e6cc62c6 | 5558 | fi; |
1e6feb95 | 5559 | |
e46d2a18 | 5560 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5561 | if test "$no_cache" != 1; then |
e46d2a18 | 5562 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5563 | fi |
5564 | ||
e46d2a18 | 5565 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5566 | echo "$as_me:$LINENO: result: yes" >&5 |
5567 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5568 | else |
e6cc62c6 VS |
5569 | echo "$as_me:$LINENO: result: no" >&5 |
5570 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5571 | fi |
e6cc62c6 | 5572 | |
1e6feb95 | 5573 | |
5005acfe | 5574 | enablestring= |
e46d2a18 VS |
5575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5576 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5577 | no_cache=0 |
e46d2a18 VS |
5578 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5579 | if test "${enable_zipstream+set}" = set; then | |
5580 | enableval="$enable_zipstream" | |
e6cc62c6 | 5581 | |
3e44f09d | 5582 | if test "$enableval" = yes; then |
e46d2a18 | 5583 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5584 | else |
e46d2a18 | 5585 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5586 | fi |
e6cc62c6 | 5587 | |
3e44f09d | 5588 | else |
e6cc62c6 | 5589 | |
e46d2a18 | 5590 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5591 | if test "x$LINE" != x ; then |
5592 | eval "DEFAULT_$LINE" | |
5593 | else | |
5594 | no_cache=1 | |
5595 | fi | |
5596 | ||
e46d2a18 | 5597 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5598 | |
e6cc62c6 | 5599 | fi; |
3e44f09d | 5600 | |
e46d2a18 | 5601 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5602 | if test "$no_cache" != 1; then |
e46d2a18 | 5603 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5604 | fi |
5605 | ||
e46d2a18 | 5606 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5607 | echo "$as_me:$LINENO: result: yes" >&5 |
5608 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5609 | else |
e6cc62c6 VS |
5610 | echo "$as_me:$LINENO: result: no" >&5 |
5611 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5612 | fi |
e6cc62c6 | 5613 | |
8284b0c5 | 5614 | |
7015ef3a VZ |
5615 | enablestring= |
5616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5617 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5618 | no_cache=0 | |
5619 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5620 | if test "${enable_gzstream+set}" = set; then | |
5621 | enableval="$enable_gzstream" | |
5622 | ||
5623 | if test "$enableval" = yes; then | |
5624 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5625 | else | |
5626 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5627 | fi | |
5628 | ||
5629 | else | |
5630 | ||
5631 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5632 | if test "x$LINE" != x ; then | |
5633 | eval "DEFAULT_$LINE" | |
5634 | else | |
5635 | no_cache=1 | |
5636 | fi | |
5637 | ||
5638 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5639 | ||
5640 | fi; | |
5641 | ||
5642 | eval "$ac_cv_use_gzstream" | |
5643 | if test "$no_cache" != 1; then | |
5644 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5645 | fi | |
5646 | ||
5647 | if test "$wxUSE_GZSTREAM" = yes; then | |
5648 | echo "$as_me:$LINENO: result: yes" >&5 | |
5649 | echo "${ECHO_T}yes" >&6 | |
5650 | else | |
5651 | echo "$as_me:$LINENO: result: no" >&5 | |
5652 | echo "${ECHO_T}no" >&6 | |
5653 | fi | |
5654 | ||
5655 | ||
52127426 | 5656 | |
5005acfe | 5657 | enablestring= |
e6cc62c6 VS |
5658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5659 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5660 | no_cache=0 |
5661 | # Check whether --enable-url or --disable-url was given. | |
5662 | if test "${enable_url+set}" = set; then | |
5663 | enableval="$enable_url" | |
e6cc62c6 | 5664 | |
4cdb0ab0 VS |
5665 | if test "$enableval" = yes; then |
5666 | ac_cv_use_url='wxUSE_URL=yes' | |
5667 | else | |
5668 | ac_cv_use_url='wxUSE_URL=no' | |
5669 | fi | |
e6cc62c6 | 5670 | |
4cdb0ab0 | 5671 | else |
e6cc62c6 | 5672 | |
4cdb0ab0 VS |
5673 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5674 | if test "x$LINE" != x ; then | |
5675 | eval "DEFAULT_$LINE" | |
5676 | else | |
5677 | no_cache=1 | |
5678 | fi | |
5679 | ||
5680 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5681 | |
e6cc62c6 | 5682 | fi; |
4cdb0ab0 VS |
5683 | |
5684 | eval "$ac_cv_use_url" | |
5685 | if test "$no_cache" != 1; then | |
5686 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5687 | fi | |
5688 | ||
5689 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5690 | echo "$as_me:$LINENO: result: yes" >&5 |
5691 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5692 | else |
e6cc62c6 VS |
5693 | echo "$as_me:$LINENO: result: no" >&5 |
5694 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5695 | fi |
e6cc62c6 | 5696 | |
4cdb0ab0 | 5697 | |
5005acfe | 5698 | enablestring= |
e6cc62c6 VS |
5699 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5700 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5701 | no_cache=0 |
5702 | # Check whether --enable-protocol or --disable-protocol was given. | |
5703 | if test "${enable_protocol+set}" = set; then | |
5704 | enableval="$enable_protocol" | |
e6cc62c6 | 5705 | |
4cdb0ab0 VS |
5706 | if test "$enableval" = yes; then |
5707 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5708 | else | |
5709 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5710 | fi | |
e6cc62c6 | 5711 | |
4cdb0ab0 | 5712 | else |
e6cc62c6 | 5713 | |
4cdb0ab0 VS |
5714 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5715 | if test "x$LINE" != x ; then | |
5716 | eval "DEFAULT_$LINE" | |
5717 | else | |
5718 | no_cache=1 | |
5719 | fi | |
5720 | ||
5721 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5722 | |
e6cc62c6 | 5723 | fi; |
4cdb0ab0 VS |
5724 | |
5725 | eval "$ac_cv_use_protocol" | |
5726 | if test "$no_cache" != 1; then | |
5727 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5728 | fi | |
5729 | ||
5730 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5731 | echo "$as_me:$LINENO: result: yes" >&5 |
5732 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5733 | else |
e6cc62c6 VS |
5734 | echo "$as_me:$LINENO: result: no" >&5 |
5735 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5736 | fi |
e6cc62c6 | 5737 | |
4cdb0ab0 | 5738 | |
5005acfe | 5739 | enablestring= |
e6cc62c6 VS |
5740 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5741 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5742 | no_cache=0 |
5743 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5744 | if test "${enable_protocol_http+set}" = set; then | |
5745 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5746 | |
4cdb0ab0 VS |
5747 | if test "$enableval" = yes; then |
5748 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5749 | else | |
5750 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5751 | fi | |
e6cc62c6 | 5752 | |
4cdb0ab0 | 5753 | else |
e6cc62c6 | 5754 | |
4cdb0ab0 VS |
5755 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5756 | if test "x$LINE" != x ; then | |
5757 | eval "DEFAULT_$LINE" | |
5758 | else | |
5759 | no_cache=1 | |
5760 | fi | |
5761 | ||
5762 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5763 | |
e6cc62c6 | 5764 | fi; |
4cdb0ab0 VS |
5765 | |
5766 | eval "$ac_cv_use_protocol_http" | |
5767 | if test "$no_cache" != 1; then | |
5768 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5769 | fi | |
5770 | ||
5771 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5772 | echo "$as_me:$LINENO: result: yes" >&5 |
5773 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5774 | else |
e6cc62c6 VS |
5775 | echo "$as_me:$LINENO: result: no" >&5 |
5776 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5777 | fi |
e6cc62c6 | 5778 | |
4cdb0ab0 | 5779 | |
5005acfe | 5780 | enablestring= |
e6cc62c6 VS |
5781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5782 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5783 | no_cache=0 |
5784 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5785 | if test "${enable_protocol_ftp+set}" = set; then | |
5786 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5787 | |
4cdb0ab0 VS |
5788 | if test "$enableval" = yes; then |
5789 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5790 | else | |
5791 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5792 | fi | |
e6cc62c6 | 5793 | |
4cdb0ab0 | 5794 | else |
e6cc62c6 | 5795 | |
4cdb0ab0 VS |
5796 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5797 | if test "x$LINE" != x ; then | |
5798 | eval "DEFAULT_$LINE" | |
5799 | else | |
5800 | no_cache=1 | |
5801 | fi | |
5802 | ||
5803 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5804 | |
e6cc62c6 | 5805 | fi; |
4cdb0ab0 VS |
5806 | |
5807 | eval "$ac_cv_use_protocol_ftp" | |
5808 | if test "$no_cache" != 1; then | |
5809 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5810 | fi | |
5811 | ||
5812 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5813 | echo "$as_me:$LINENO: result: yes" >&5 |
5814 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5815 | else |
e6cc62c6 VS |
5816 | echo "$as_me:$LINENO: result: no" >&5 |
5817 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5818 | fi |
e6cc62c6 | 5819 | |
4cdb0ab0 | 5820 | |
5005acfe | 5821 | enablestring= |
e6cc62c6 VS |
5822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5823 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5824 | no_cache=0 |
5825 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5826 | if test "${enable_protocol_file+set}" = set; then | |
5827 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5828 | |
4cdb0ab0 VS |
5829 | if test "$enableval" = yes; then |
5830 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5831 | else | |
5832 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5833 | fi | |
e6cc62c6 | 5834 | |
4cdb0ab0 | 5835 | else |
e6cc62c6 | 5836 | |
4cdb0ab0 VS |
5837 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5838 | if test "x$LINE" != x ; then | |
5839 | eval "DEFAULT_$LINE" | |
5840 | else | |
5841 | no_cache=1 | |
5842 | fi | |
5843 | ||
5844 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5845 | |
e6cc62c6 | 5846 | fi; |
4cdb0ab0 VS |
5847 | |
5848 | eval "$ac_cv_use_protocol_file" | |
5849 | if test "$no_cache" != 1; then | |
5850 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5851 | fi | |
5852 | ||
5853 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5854 | echo "$as_me:$LINENO: result: yes" >&5 |
5855 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5856 | else |
e6cc62c6 VS |
5857 | echo "$as_me:$LINENO: result: no" >&5 |
5858 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5859 | fi |
e6cc62c6 | 5860 | |
52127426 | 5861 | |
8284b0c5 MB |
5862 | |
5863 | ||
5864 | ||
5005acfe | 5865 | enablestring= |
e6cc62c6 VS |
5866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5867 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5868 | no_cache=0 |
5869 | # Check whether --enable-threads or --disable-threads was given. | |
5870 | if test "${enable_threads+set}" = set; then | |
5871 | enableval="$enable_threads" | |
e6cc62c6 | 5872 | |
10f2d63a VZ |
5873 | if test "$enableval" = yes; then |
5874 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5875 | else | |
5876 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5877 | fi | |
e6cc62c6 | 5878 | |
10f2d63a | 5879 | else |
e6cc62c6 | 5880 | |
10f2d63a VZ |
5881 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5882 | if test "x$LINE" != x ; then | |
5883 | eval "DEFAULT_$LINE" | |
5884 | else | |
5885 | no_cache=1 | |
5886 | fi | |
5887 | ||
5888 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5889 | |
e6cc62c6 | 5890 | fi; |
10f2d63a VZ |
5891 | |
5892 | eval "$ac_cv_use_threads" | |
5893 | if test "$no_cache" != 1; then | |
5894 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5895 | fi | |
5896 | ||
5897 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5898 | echo "$as_me:$LINENO: result: yes" >&5 |
5899 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5900 | else |
e6cc62c6 VS |
5901 | echo "$as_me:$LINENO: result: no" >&5 |
5902 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5903 | fi |
e6cc62c6 | 5904 | |
10f2d63a | 5905 | |
b12915c1 VZ |
5906 | if test "$wxUSE_GUI" = "yes"; then |
5907 | ||
8284b0c5 MB |
5908 | |
5909 | ||
5005acfe | 5910 | enablestring= |
e6cc62c6 VS |
5911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5912 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5913 | no_cache=0 |
5914 | # Check whether --enable-docview or --disable-docview was given. | |
5915 | if test "${enable_docview+set}" = set; then | |
5916 | enableval="$enable_docview" | |
e6cc62c6 | 5917 | |
10f2d63a VZ |
5918 | if test "$enableval" = yes; then |
5919 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5920 | else | |
5921 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5922 | fi | |
e6cc62c6 | 5923 | |
10f2d63a | 5924 | else |
e6cc62c6 | 5925 | |
10f2d63a VZ |
5926 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5934 | |
e6cc62c6 | 5935 | fi; |
10f2d63a VZ |
5936 | |
5937 | eval "$ac_cv_use_docview" | |
5938 | if test "$no_cache" != 1; then | |
5939 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5940 | fi | |
5941 | ||
5942 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5943 | echo "$as_me:$LINENO: result: yes" >&5 |
5944 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5945 | else |
e6cc62c6 VS |
5946 | echo "$as_me:$LINENO: result: no" >&5 |
5947 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5948 | fi |
e6cc62c6 | 5949 | |
10f2d63a | 5950 | |
5005acfe | 5951 | enablestring= |
e6cc62c6 VS |
5952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5953 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5954 | no_cache=0 |
5955 | # Check whether --enable-help or --disable-help was given. | |
5956 | if test "${enable_help+set}" = set; then | |
5957 | enableval="$enable_help" | |
e6cc62c6 | 5958 | |
10f2d63a VZ |
5959 | if test "$enableval" = yes; then |
5960 | ac_cv_use_help='wxUSE_HELP=yes' | |
5961 | else | |
5962 | ac_cv_use_help='wxUSE_HELP=no' | |
5963 | fi | |
e6cc62c6 | 5964 | |
10f2d63a | 5965 | else |
e6cc62c6 | 5966 | |
10f2d63a VZ |
5967 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5975 | |
e6cc62c6 | 5976 | fi; |
10f2d63a VZ |
5977 | |
5978 | eval "$ac_cv_use_help" | |
5979 | if test "$no_cache" != 1; then | |
5980 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5981 | fi | |
5982 | ||
5983 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5984 | echo "$as_me:$LINENO: result: yes" >&5 |
5985 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5986 | else |
e6cc62c6 VS |
5987 | echo "$as_me:$LINENO: result: no" >&5 |
5988 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5989 | fi |
e6cc62c6 | 5990 | |
10f2d63a | 5991 | |
5005acfe | 5992 | enablestring= |
e6cc62c6 VS |
5993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5994 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5995 | no_cache=0 |
5996 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5997 | if test "${enable_mshtmlhelp+set}" = set; then | |
5998 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5999 | |
29fd3c0c VS |
6000 | if test "$enableval" = yes; then |
6001 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6002 | else | |
6003 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6004 | fi | |
e6cc62c6 | 6005 | |
29fd3c0c | 6006 | else |
e6cc62c6 | 6007 | |
29fd3c0c VS |
6008 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6009 | if test "x$LINE" != x ; then | |
6010 | eval "DEFAULT_$LINE" | |
6011 | else | |
6012 | no_cache=1 | |
6013 | fi | |
6014 | ||
6015 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6016 | |
e6cc62c6 | 6017 | fi; |
29fd3c0c VS |
6018 | |
6019 | eval "$ac_cv_use_mshtmlhelp" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6025 | echo "$as_me:$LINENO: result: yes" >&5 |
6026 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6027 | else |
e6cc62c6 VS |
6028 | echo "$as_me:$LINENO: result: no" >&5 |
6029 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6030 | fi |
e6cc62c6 | 6031 | |
29fd3c0c | 6032 | |
5005acfe | 6033 | enablestring= |
e6cc62c6 VS |
6034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6035 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6036 | no_cache=0 |
6037 | # Check whether --enable-html or --disable-html was given. | |
6038 | if test "${enable_html+set}" = set; then | |
6039 | enableval="$enable_html" | |
e6cc62c6 | 6040 | |
3379ed37 VZ |
6041 | if test "$enableval" = yes; then |
6042 | ac_cv_use_html='wxUSE_HTML=yes' | |
6043 | else | |
6044 | ac_cv_use_html='wxUSE_HTML=no' | |
6045 | fi | |
e6cc62c6 | 6046 | |
3379ed37 | 6047 | else |
e6cc62c6 | 6048 | |
3379ed37 VZ |
6049 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6050 | if test "x$LINE" != x ; then | |
6051 | eval "DEFAULT_$LINE" | |
6052 | else | |
6053 | no_cache=1 | |
6054 | fi | |
6055 | ||
6056 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6057 | |
e6cc62c6 | 6058 | fi; |
3379ed37 VZ |
6059 | |
6060 | eval "$ac_cv_use_html" | |
6061 | if test "$no_cache" != 1; then | |
6062 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6063 | fi | |
6064 | ||
6065 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6066 | echo "$as_me:$LINENO: result: yes" >&5 |
6067 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6068 | else |
e6cc62c6 VS |
6069 | echo "$as_me:$LINENO: result: no" >&5 |
6070 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6071 | fi |
e6cc62c6 | 6072 | |
3379ed37 | 6073 | |
5005acfe | 6074 | enablestring= |
e6cc62c6 VS |
6075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6076 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6077 | no_cache=0 |
6078 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6079 | if test "${enable_htmlhelp+set}" = set; then | |
6080 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6081 | |
3379ed37 VZ |
6082 | if test "$enableval" = yes; then |
6083 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6084 | else | |
6085 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6086 | fi | |
e6cc62c6 | 6087 | |
3379ed37 | 6088 | else |
e6cc62c6 | 6089 | |
3379ed37 VZ |
6090 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6091 | if test "x$LINE" != x ; then | |
6092 | eval "DEFAULT_$LINE" | |
6093 | else | |
6094 | no_cache=1 | |
6095 | fi | |
6096 | ||
6097 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6098 | |
e6cc62c6 | 6099 | fi; |
3379ed37 VZ |
6100 | |
6101 | eval "$ac_cv_use_htmlhelp" | |
6102 | if test "$no_cache" != 1; then | |
6103 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6104 | fi | |
6105 | ||
6106 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6107 | echo "$as_me:$LINENO: result: yes" >&5 |
6108 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6109 | else |
e6cc62c6 VS |
6110 | echo "$as_me:$LINENO: result: no" >&5 |
6111 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6112 | fi |
e6cc62c6 | 6113 | |
3379ed37 | 6114 | |
5005acfe | 6115 | enablestring= |
e6cc62c6 VS |
6116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6117 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6118 | no_cache=0 |
6119 | # Check whether --enable-constraints or --disable-constraints was given. | |
6120 | if test "${enable_constraints+set}" = set; then | |
6121 | enableval="$enable_constraints" | |
e6cc62c6 | 6122 | |
10f2d63a VZ |
6123 | if test "$enableval" = yes; then |
6124 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6125 | else | |
6126 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6127 | fi | |
e6cc62c6 | 6128 | |
10f2d63a | 6129 | else |
e6cc62c6 | 6130 | |
10f2d63a VZ |
6131 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6132 | if test "x$LINE" != x ; then | |
6133 | eval "DEFAULT_$LINE" | |
6134 | else | |
6135 | no_cache=1 | |
6136 | fi | |
6137 | ||
6138 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6139 | |
e6cc62c6 | 6140 | fi; |
10f2d63a VZ |
6141 | |
6142 | eval "$ac_cv_use_constraints" | |
6143 | if test "$no_cache" != 1; then | |
6144 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6145 | fi | |
6146 | ||
6147 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6148 | echo "$as_me:$LINENO: result: yes" >&5 |
6149 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6150 | else |
e6cc62c6 VS |
6151 | echo "$as_me:$LINENO: result: no" >&5 |
6152 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6153 | fi |
e6cc62c6 | 6154 | |
10f2d63a | 6155 | |
5005acfe | 6156 | enablestring= |
e6cc62c6 VS |
6157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6158 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6159 | no_cache=0 |
6160 | # Check whether --enable-printarch or --disable-printarch was given. | |
6161 | if test "${enable_printarch+set}" = set; then | |
6162 | enableval="$enable_printarch" | |
e6cc62c6 | 6163 | |
10f2d63a VZ |
6164 | if test "$enableval" = yes; then |
6165 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6166 | else | |
6167 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6168 | fi | |
e6cc62c6 | 6169 | |
10f2d63a | 6170 | else |
e6cc62c6 | 6171 | |
10f2d63a VZ |
6172 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6173 | if test "x$LINE" != x ; then | |
6174 | eval "DEFAULT_$LINE" | |
6175 | else | |
6176 | no_cache=1 | |
6177 | fi | |
6178 | ||
6179 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6180 | |
e6cc62c6 | 6181 | fi; |
10f2d63a VZ |
6182 | |
6183 | eval "$ac_cv_use_printarch" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6189 | echo "$as_me:$LINENO: result: yes" >&5 |
6190 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6191 | else |
e6cc62c6 VS |
6192 | echo "$as_me:$LINENO: result: no" >&5 |
6193 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6194 | fi |
e6cc62c6 | 6195 | |
10f2d63a | 6196 | |
5005acfe | 6197 | enablestring= |
e6cc62c6 VS |
6198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6199 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6200 | no_cache=0 |
6201 | # Check whether --enable-mdi or --disable-mdi was given. | |
6202 | if test "${enable_mdi+set}" = set; then | |
6203 | enableval="$enable_mdi" | |
e6cc62c6 | 6204 | |
10f2d63a VZ |
6205 | if test "$enableval" = yes; then |
6206 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6207 | else | |
6208 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6209 | fi | |
e6cc62c6 | 6210 | |
10f2d63a | 6211 | else |
e6cc62c6 | 6212 | |
10f2d63a VZ |
6213 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6214 | if test "x$LINE" != x ; then | |
6215 | eval "DEFAULT_$LINE" | |
6216 | else | |
6217 | no_cache=1 | |
6218 | fi | |
6219 | ||
6220 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6221 | |
e6cc62c6 | 6222 | fi; |
10f2d63a VZ |
6223 | |
6224 | eval "$ac_cv_use_mdi" | |
6225 | if test "$no_cache" != 1; then | |
6226 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6227 | fi | |
6228 | ||
6229 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6230 | echo "$as_me:$LINENO: result: yes" >&5 |
6231 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6232 | else |
e6cc62c6 VS |
6233 | echo "$as_me:$LINENO: result: no" >&5 |
6234 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6235 | fi |
e6cc62c6 | 6236 | |
698dcdb6 | 6237 | |
5005acfe | 6238 | enablestring= |
e6cc62c6 VS |
6239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6240 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6241 | no_cache=0 |
6242 | # Check whether --enable-loggui or --disable-loggui was given. | |
6243 | if test "${enable_loggui+set}" = set; then | |
6244 | enableval="$enable_loggui" | |
e6cc62c6 | 6245 | |
1e6feb95 VZ |
6246 | if test "$enableval" = yes; then |
6247 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6248 | else | |
6249 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6250 | fi | |
e6cc62c6 | 6251 | |
1e6feb95 | 6252 | else |
e6cc62c6 | 6253 | |
1e6feb95 VZ |
6254 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6255 | if test "x$LINE" != x ; then | |
6256 | eval "DEFAULT_$LINE" | |
6257 | else | |
6258 | no_cache=1 | |
6259 | fi | |
6260 | ||
6261 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6262 | |
e6cc62c6 | 6263 | fi; |
1e6feb95 VZ |
6264 | |
6265 | eval "$ac_cv_use_loggui" | |
6266 | if test "$no_cache" != 1; then | |
6267 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6268 | fi | |
6269 | ||
6270 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6271 | echo "$as_me:$LINENO: result: yes" >&5 |
6272 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6273 | else |
e6cc62c6 VS |
6274 | echo "$as_me:$LINENO: result: no" >&5 |
6275 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6276 | fi |
e6cc62c6 | 6277 | |
1e6feb95 | 6278 | |
5005acfe | 6279 | enablestring= |
e6cc62c6 VS |
6280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6281 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6282 | no_cache=0 |
6283 | # Check whether --enable-logwin or --disable-logwin was given. | |
6284 | if test "${enable_logwin+set}" = set; then | |
6285 | enableval="$enable_logwin" | |
e6cc62c6 | 6286 | |
1e6feb95 VZ |
6287 | if test "$enableval" = yes; then |
6288 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6289 | else | |
6290 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6291 | fi | |
e6cc62c6 | 6292 | |
1e6feb95 | 6293 | else |
e6cc62c6 | 6294 | |
1e6feb95 VZ |
6295 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6296 | if test "x$LINE" != x ; then | |
6297 | eval "DEFAULT_$LINE" | |
6298 | else | |
6299 | no_cache=1 | |
6300 | fi | |
6301 | ||
6302 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6303 | |
e6cc62c6 | 6304 | fi; |
1e6feb95 VZ |
6305 | |
6306 | eval "$ac_cv_use_logwin" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6312 | echo "$as_me:$LINENO: result: yes" >&5 |
6313 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6314 | else |
e6cc62c6 VS |
6315 | echo "$as_me:$LINENO: result: no" >&5 |
6316 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6317 | fi |
e6cc62c6 | 6318 | |
1e6feb95 | 6319 | |
5005acfe | 6320 | enablestring= |
e6cc62c6 VS |
6321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6322 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6323 | no_cache=0 |
6324 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6325 | if test "${enable_logdialog+set}" = set; then | |
6326 | enableval="$enable_logdialog" | |
e6cc62c6 | 6327 | |
69d27ff7 MB |
6328 | if test "$enableval" = yes; then |
6329 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6330 | else | |
6331 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6332 | fi | |
e6cc62c6 | 6333 | |
69d27ff7 | 6334 | else |
e6cc62c6 | 6335 | |
69d27ff7 MB |
6336 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6337 | if test "x$LINE" != x ; then | |
6338 | eval "DEFAULT_$LINE" | |
6339 | else | |
6340 | no_cache=1 | |
6341 | fi | |
6342 | ||
6343 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6344 | |
e6cc62c6 | 6345 | fi; |
69d27ff7 MB |
6346 | |
6347 | eval "$ac_cv_use_logdialog" | |
6348 | if test "$no_cache" != 1; then | |
6349 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6350 | fi | |
6351 | ||
6352 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6353 | echo "$as_me:$LINENO: result: yes" >&5 |
6354 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6355 | else |
e6cc62c6 VS |
6356 | echo "$as_me:$LINENO: result: no" >&5 |
6357 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6358 | fi |
e6cc62c6 | 6359 | |
8284b0c5 | 6360 | |
52127426 | 6361 | |
5005acfe | 6362 | enablestring= |
e6cc62c6 VS |
6363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6364 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6365 | no_cache=0 |
6366 | # Check whether --enable-postscript or --disable-postscript was given. | |
6367 | if test "${enable_postscript+set}" = set; then | |
6368 | enableval="$enable_postscript" | |
e6cc62c6 | 6369 | |
10f2d63a VZ |
6370 | if test "$enableval" = yes; then |
6371 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6372 | else | |
6373 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6374 | fi | |
e6cc62c6 | 6375 | |
10f2d63a | 6376 | else |
e6cc62c6 | 6377 | |
10f2d63a VZ |
6378 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6379 | if test "x$LINE" != x ; then | |
6380 | eval "DEFAULT_$LINE" | |
6381 | else | |
6382 | no_cache=1 | |
6383 | fi | |
6384 | ||
6385 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6386 | |
e6cc62c6 | 6387 | fi; |
10f2d63a VZ |
6388 | |
6389 | eval "$ac_cv_use_postscript" | |
6390 | if test "$no_cache" != 1; then | |
6391 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6392 | fi | |
6393 | ||
6394 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6395 | echo "$as_me:$LINENO: result: yes" >&5 |
6396 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6397 | else |
e6cc62c6 VS |
6398 | echo "$as_me:$LINENO: result: no" >&5 |
6399 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6400 | fi |
e6cc62c6 | 6401 | |
8284b0c5 MB |
6402 | |
6403 | ||
52127426 | 6404 | |
8284b0c5 | 6405 | |
5005acfe | 6406 | enablestring= |
e6cc62c6 VS |
6407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6408 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6409 | no_cache=0 |
3c907f20 VZ |
6410 | # Check whether --enable-prologio or --disable-prologio was given. |
6411 | if test "${enable_prologio+set}" = set; then | |
6412 | enableval="$enable_prologio" | |
e6cc62c6 | 6413 | |
10f2d63a | 6414 | if test "$enableval" = yes; then |
3c907f20 | 6415 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6416 | else |
3c907f20 | 6417 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6418 | fi |
e6cc62c6 | 6419 | |
10f2d63a | 6420 | else |
e6cc62c6 | 6421 | |
3c907f20 | 6422 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6423 | if test "x$LINE" != x ; then |
6424 | eval "DEFAULT_$LINE" | |
6425 | else | |
6426 | no_cache=1 | |
6427 | fi | |
6428 | ||
3c907f20 | 6429 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6430 | |
e6cc62c6 | 6431 | fi; |
10f2d63a | 6432 | |
3c907f20 | 6433 | eval "$ac_cv_use_prologio" |
10f2d63a | 6434 | if test "$no_cache" != 1; then |
3c907f20 | 6435 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6436 | fi |
6437 | ||
3c907f20 | 6438 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6439 | echo "$as_me:$LINENO: result: yes" >&5 |
6440 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6441 | else |
e6cc62c6 VS |
6442 | echo "$as_me:$LINENO: result: no" >&5 |
6443 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6444 | fi |
e6cc62c6 | 6445 | |
8284b0c5 | 6446 | |
5005acfe | 6447 | enablestring= |
e6cc62c6 VS |
6448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6449 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6450 | no_cache=0 |
3c907f20 VZ |
6451 | # Check whether --enable-resources or --disable-resources was given. |
6452 | if test "${enable_resources+set}" = set; then | |
6453 | enableval="$enable_resources" | |
e6cc62c6 | 6454 | |
10f2d63a | 6455 | if test "$enableval" = yes; then |
3c907f20 | 6456 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6457 | else |
3c907f20 | 6458 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6459 | fi |
e6cc62c6 | 6460 | |
10f2d63a | 6461 | else |
e6cc62c6 | 6462 | |
3c907f20 | 6463 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6464 | if test "x$LINE" != x ; then |
6465 | eval "DEFAULT_$LINE" | |
6466 | else | |
6467 | no_cache=1 | |
6468 | fi | |
6469 | ||
3c907f20 | 6470 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6471 | |
e6cc62c6 | 6472 | fi; |
10f2d63a | 6473 | |
3c907f20 | 6474 | eval "$ac_cv_use_resources" |
10f2d63a | 6475 | if test "$no_cache" != 1; then |
3c907f20 | 6476 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6477 | fi |
6478 | ||
3c907f20 | 6479 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6480 | echo "$as_me:$LINENO: result: yes" >&5 |
6481 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6482 | else |
e6cc62c6 VS |
6483 | echo "$as_me:$LINENO: result: no" >&5 |
6484 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6485 | fi |
e6cc62c6 | 6486 | |
8284b0c5 MB |
6487 | |
6488 | ||
52127426 | 6489 | |
5005acfe | 6490 | enablestring= |
e6cc62c6 VS |
6491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6492 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6493 | no_cache=0 |
6494 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6495 | if test "${enable_clipboard+set}" = set; then | |
6496 | enableval="$enable_clipboard" | |
e6cc62c6 | 6497 | |
10f2d63a VZ |
6498 | if test "$enableval" = yes; then |
6499 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6500 | else | |
6501 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6502 | fi | |
e6cc62c6 | 6503 | |
10f2d63a | 6504 | else |
e6cc62c6 | 6505 | |
10f2d63a VZ |
6506 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6507 | if test "x$LINE" != x ; then | |
6508 | eval "DEFAULT_$LINE" | |
6509 | else | |
6510 | no_cache=1 | |
6511 | fi | |
6512 | ||
6513 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6514 | |
e6cc62c6 | 6515 | fi; |
10f2d63a VZ |
6516 | |
6517 | eval "$ac_cv_use_clipboard" | |
6518 | if test "$no_cache" != 1; then | |
6519 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6520 | fi | |
6521 | ||
6522 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6523 | echo "$as_me:$LINENO: result: yes" >&5 |
6524 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6525 | else |
e6cc62c6 VS |
6526 | echo "$as_me:$LINENO: result: no" >&5 |
6527 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6528 | fi |
e6cc62c6 | 6529 | |
10f2d63a | 6530 | |
5005acfe | 6531 | enablestring= |
e6cc62c6 VS |
6532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6533 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6534 | no_cache=0 |
6535 | # Check whether --enable-dnd or --disable-dnd was given. | |
6536 | if test "${enable_dnd+set}" = set; then | |
6537 | enableval="$enable_dnd" | |
e6cc62c6 | 6538 | |
10f2d63a VZ |
6539 | if test "$enableval" = yes; then |
6540 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6541 | else | |
6542 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6543 | fi | |
e6cc62c6 | 6544 | |
10f2d63a | 6545 | else |
e6cc62c6 | 6546 | |
10f2d63a VZ |
6547 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6548 | if test "x$LINE" != x ; then | |
6549 | eval "DEFAULT_$LINE" | |
6550 | else | |
6551 | no_cache=1 | |
6552 | fi | |
6553 | ||
6554 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6555 | |
e6cc62c6 | 6556 | fi; |
10f2d63a VZ |
6557 | |
6558 | eval "$ac_cv_use_dnd" | |
6559 | if test "$no_cache" != 1; then | |
6560 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6561 | fi | |
6562 | ||
6563 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6564 | echo "$as_me:$LINENO: result: yes" >&5 |
6565 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6566 | else |
e6cc62c6 VS |
6567 | echo "$as_me:$LINENO: result: no" >&5 |
6568 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6569 | fi |
e6cc62c6 | 6570 | |
10f2d63a | 6571 | |
5005acfe | 6572 | enablestring= |
e6cc62c6 VS |
6573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6574 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6575 | no_cache=0 |
6576 | # Check whether --enable-metafile or --disable-metafile was given. | |
6577 | if test "${enable_metafile+set}" = set; then | |
6578 | enableval="$enable_metafile" | |
e6cc62c6 | 6579 | |
b64f0a5f RL |
6580 | if test "$enableval" = yes; then |
6581 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6582 | else | |
6583 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6584 | fi | |
e6cc62c6 | 6585 | |
b64f0a5f | 6586 | else |
e6cc62c6 | 6587 | |
b64f0a5f RL |
6588 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6589 | if test "x$LINE" != x ; then | |
6590 | eval "DEFAULT_$LINE" | |
6591 | else | |
6592 | no_cache=1 | |
6593 | fi | |
6594 | ||
6595 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6596 | |
e6cc62c6 | 6597 | fi; |
b64f0a5f RL |
6598 | |
6599 | eval "$ac_cv_use_metafile" | |
6600 | if test "$no_cache" != 1; then | |
6601 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6602 | fi | |
6603 | ||
6604 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6605 | echo "$as_me:$LINENO: result: yes" >&5 |
6606 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6607 | else |
e6cc62c6 VS |
6608 | echo "$as_me:$LINENO: result: no" >&5 |
6609 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6610 | fi |
e6cc62c6 | 6611 | |
52127426 | 6612 | |
8284b0c5 | 6613 | |
52127426 | 6614 | |
8284b0c5 | 6615 | |
5005acfe | 6616 | enablestring= |
e6cc62c6 VS |
6617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6618 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6619 | no_cache=0 |
6620 | # Check whether --enable-controls or --disable-controls was given. | |
6621 | if test "${enable_controls+set}" = set; then | |
6622 | enableval="$enable_controls" | |
e6cc62c6 | 6623 | |
10f2d63a VZ |
6624 | if test "$enableval" = yes; then |
6625 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6626 | else | |
6627 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6628 | fi | |
e6cc62c6 | 6629 | |
10f2d63a | 6630 | else |
e6cc62c6 | 6631 | |
10f2d63a VZ |
6632 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6633 | if test "x$LINE" != x ; then | |
6634 | eval "DEFAULT_$LINE" | |
6635 | else | |
6636 | no_cache=1 | |
6637 | fi | |
6638 | ||
6639 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6640 | |
e6cc62c6 | 6641 | fi; |
10f2d63a VZ |
6642 | |
6643 | eval "$ac_cv_use_controls" | |
6644 | if test "$no_cache" != 1; then | |
6645 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6646 | fi | |
6647 | ||
6648 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6649 | echo "$as_me:$LINENO: result: yes" >&5 |
6650 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6651 | else |
e6cc62c6 VS |
6652 | echo "$as_me:$LINENO: result: no" >&5 |
6653 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6654 | fi |
e6cc62c6 | 6655 | |
10f2d63a VZ |
6656 | |
6657 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6658 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6659 | DEFAULT_wxUSE_BMPBUTTON=yes |
6660 | DEFAULT_wxUSE_BUTTON=yes | |
6661 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6662 | DEFAULT_wxUSE_CARET=yes |
6663 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6664 | DEFAULT_wxUSE_CHECKBOX=yes |
6665 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6666 | DEFAULT_wxUSE_CHOICE=yes | |
6667 | DEFAULT_wxUSE_GAUGE=yes | |
6668 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6669 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6670 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6671 | DEFAULT_wxUSE_LISTBOX=yes |
6672 | DEFAULT_wxUSE_LISTCTRL=yes | |
6673 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6674 | DEFAULT_wxUSE_RADIOBOX=yes | |
6675 | DEFAULT_wxUSE_RADIOBTN=yes | |
6676 | DEFAULT_wxUSE_SASH=yes | |
6677 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6678 | DEFAULT_wxUSE_SLIDER=yes | |
6679 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6680 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6681 | DEFAULT_wxUSE_SPLITTER=yes |
6682 | DEFAULT_wxUSE_STATBMP=yes | |
6683 | DEFAULT_wxUSE_STATBOX=yes | |
6684 | DEFAULT_wxUSE_STATLINE=yes | |
6685 | DEFAULT_wxUSE_STATUSBAR=yes | |
6686 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6687 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6688 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6689 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6690 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6691 | DEFAULT_wxUSE_TOOLTIPS=yes |
6692 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6693 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6694 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6695 | elif test "$wxUSE_CONTROLS" = "no"; then |
6696 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6697 | DEFAULT_wxUSE_BMPBUTTON=no |
6698 | DEFAULT_wxUSE_BUTTON=no | |
6699 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6700 | DEFAULT_wxUSE_CARET=no |
6701 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6702 | DEFAULT_wxUSE_CHECKBOX=no |
6703 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6704 | DEFAULT_wxUSE_CHOICE=no | |
6705 | DEFAULT_wxUSE_GAUGE=no | |
6706 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6707 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6708 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6709 | DEFAULT_wxUSE_LISTBOX=no |
6710 | DEFAULT_wxUSE_LISTCTRL=no | |
6711 | DEFAULT_wxUSE_NOTEBOOK=no | |
6712 | DEFAULT_wxUSE_RADIOBOX=no | |
6713 | DEFAULT_wxUSE_RADIOBTN=no | |
6714 | DEFAULT_wxUSE_SASH=no | |
6715 | DEFAULT_wxUSE_SCROLLBAR=no | |
6716 | DEFAULT_wxUSE_SLIDER=no | |
6717 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6718 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6719 | DEFAULT_wxUSE_SPLITTER=no |
6720 | DEFAULT_wxUSE_STATBMP=no | |
6721 | DEFAULT_wxUSE_STATBOX=no | |
6722 | DEFAULT_wxUSE_STATLINE=no | |
6723 | DEFAULT_wxUSE_STATUSBAR=no | |
6724 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6725 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6726 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6727 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6728 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6729 | DEFAULT_wxUSE_TOOLTIPS=no |
6730 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6731 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6732 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6733 | fi |
6734 | ||
ac0c4cc3 DE |
6735 | ## FIXME: This is a blatant hack |
6736 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6737 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6738 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6739 | # Generic notebook requires tab dialog |
6740 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6741 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6742 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6743 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6744 | fi |
6745 | ||
8284b0c5 | 6746 | |
5005acfe | 6747 | enablestring= |
e6cc62c6 VS |
6748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6749 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6750 | no_cache=0 |
6751 | # Check whether --enable-accel or --disable-accel was given. | |
6752 | if test "${enable_accel+set}" = set; then | |
6753 | enableval="$enable_accel" | |
e6cc62c6 | 6754 | |
10f2d63a VZ |
6755 | if test "$enableval" = yes; then |
6756 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6757 | else | |
6758 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6759 | fi | |
e6cc62c6 | 6760 | |
10f2d63a | 6761 | else |
e6cc62c6 | 6762 | |
10f2d63a VZ |
6763 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6764 | if test "x$LINE" != x ; then | |
6765 | eval "DEFAULT_$LINE" | |
6766 | else | |
6767 | no_cache=1 | |
6768 | fi | |
6769 | ||
6770 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6771 | |
e6cc62c6 | 6772 | fi; |
10f2d63a VZ |
6773 | |
6774 | eval "$ac_cv_use_accel" | |
6775 | if test "$no_cache" != 1; then | |
6776 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6777 | fi | |
6778 | ||
6779 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6780 | echo "$as_me:$LINENO: result: yes" >&5 |
6781 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6782 | else |
e6cc62c6 VS |
6783 | echo "$as_me:$LINENO: result: no" >&5 |
6784 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6785 | fi |
e6cc62c6 | 6786 | |
10f2d63a | 6787 | |
5005acfe | 6788 | enablestring= |
e6cc62c6 VS |
6789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6790 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6791 | no_cache=0 |
1e6feb95 VZ |
6792 | # Check whether --enable-button or --disable-button was given. |
6793 | if test "${enable_button+set}" = set; then | |
6794 | enableval="$enable_button" | |
e6cc62c6 | 6795 | |
10f2d63a | 6796 | if test "$enableval" = yes; then |
1e6feb95 | 6797 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6798 | else |
1e6feb95 | 6799 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6800 | fi |
e6cc62c6 | 6801 | |
10f2d63a | 6802 | else |
e6cc62c6 | 6803 | |
1e6feb95 | 6804 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6805 | if test "x$LINE" != x ; then |
6806 | eval "DEFAULT_$LINE" | |
6807 | else | |
6808 | no_cache=1 | |
6809 | fi | |
6810 | ||
1e6feb95 | 6811 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6812 | |
e6cc62c6 | 6813 | fi; |
10f2d63a | 6814 | |
1e6feb95 | 6815 | eval "$ac_cv_use_button" |
10f2d63a | 6816 | if test "$no_cache" != 1; then |
1e6feb95 | 6817 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6818 | fi |
6819 | ||
1e6feb95 | 6820 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6821 | echo "$as_me:$LINENO: result: yes" >&5 |
6822 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6823 | else |
e6cc62c6 VS |
6824 | echo "$as_me:$LINENO: result: no" >&5 |
6825 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6826 | fi |
e6cc62c6 | 6827 | |
10f2d63a | 6828 | |
5005acfe | 6829 | enablestring= |
e6cc62c6 VS |
6830 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6831 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6832 | no_cache=0 |
6833 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6834 | if test "${enable_bmpbutton+set}" = set; then | |
6835 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6836 | |
10f2d63a VZ |
6837 | if test "$enableval" = yes; then |
6838 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6839 | else | |
6840 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6841 | fi | |
e6cc62c6 | 6842 | |
10f2d63a | 6843 | else |
e6cc62c6 | 6844 | |
10f2d63a VZ |
6845 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6846 | if test "x$LINE" != x ; then | |
6847 | eval "DEFAULT_$LINE" | |
6848 | else | |
6849 | no_cache=1 | |
6850 | fi | |
6851 | ||
6852 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6853 | |
e6cc62c6 | 6854 | fi; |
10f2d63a VZ |
6855 | |
6856 | eval "$ac_cv_use_bmpbutton" | |
6857 | if test "$no_cache" != 1; then | |
6858 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6859 | fi | |
6860 | ||
6861 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6862 | echo "$as_me:$LINENO: result: yes" >&5 |
6863 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6864 | else |
e6cc62c6 VS |
6865 | echo "$as_me:$LINENO: result: no" >&5 |
6866 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6867 | fi |
e6cc62c6 | 6868 | |
10f2d63a | 6869 | |
5005acfe | 6870 | enablestring= |
e6cc62c6 VS |
6871 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6872 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6873 | no_cache=0 |
6874 | # Check whether --enable-calendar or --disable-calendar was given. | |
6875 | if test "${enable_calendar+set}" = set; then | |
6876 | enableval="$enable_calendar" | |
e6cc62c6 | 6877 | |
1e6feb95 VZ |
6878 | if test "$enableval" = yes; then |
6879 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6880 | else | |
6881 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6882 | fi | |
e6cc62c6 | 6883 | |
1e6feb95 | 6884 | else |
e6cc62c6 | 6885 | |
1e6feb95 VZ |
6886 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6887 | if test "x$LINE" != x ; then | |
6888 | eval "DEFAULT_$LINE" | |
6889 | else | |
6890 | no_cache=1 | |
6891 | fi | |
6892 | ||
6893 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6894 | |
e6cc62c6 | 6895 | fi; |
1e6feb95 VZ |
6896 | |
6897 | eval "$ac_cv_use_calendar" | |
6898 | if test "$no_cache" != 1; then | |
6899 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6900 | fi | |
6901 | ||
6902 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6903 | echo "$as_me:$LINENO: result: yes" >&5 |
6904 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6905 | else |
e6cc62c6 VS |
6906 | echo "$as_me:$LINENO: result: no" >&5 |
6907 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6908 | fi |
e6cc62c6 | 6909 | |
1e6feb95 | 6910 | |
5005acfe | 6911 | enablestring= |
e6cc62c6 VS |
6912 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6913 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6914 | no_cache=0 |
6915 | # Check whether --enable-caret or --disable-caret was given. | |
6916 | if test "${enable_caret+set}" = set; then | |
6917 | enableval="$enable_caret" | |
e6cc62c6 | 6918 | |
1e6feb95 VZ |
6919 | if test "$enableval" = yes; then |
6920 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6921 | else | |
6922 | ac_cv_use_caret='wxUSE_CARET=no' | |
6923 | fi | |
e6cc62c6 | 6924 | |
1e6feb95 | 6925 | else |
e6cc62c6 | 6926 | |
1e6feb95 VZ |
6927 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6928 | if test "x$LINE" != x ; then | |
6929 | eval "DEFAULT_$LINE" | |
6930 | else | |
6931 | no_cache=1 | |
6932 | fi | |
6933 | ||
6934 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6935 | |
e6cc62c6 | 6936 | fi; |
1e6feb95 VZ |
6937 | |
6938 | eval "$ac_cv_use_caret" | |
6939 | if test "$no_cache" != 1; then | |
6940 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6941 | fi | |
6942 | ||
6943 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6944 | echo "$as_me:$LINENO: result: yes" >&5 |
6945 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6946 | else |
e6cc62c6 VS |
6947 | echo "$as_me:$LINENO: result: no" >&5 |
6948 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6949 | fi |
e6cc62c6 | 6950 | |
1e6feb95 | 6951 | |
5005acfe | 6952 | enablestring= |
e6cc62c6 VS |
6953 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6954 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6955 | no_cache=0 |
6956 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6957 | if test "${enable_checkbox+set}" = set; then | |
6958 | enableval="$enable_checkbox" | |
e6cc62c6 | 6959 | |
10f2d63a VZ |
6960 | if test "$enableval" = yes; then |
6961 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6962 | else | |
6963 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6964 | fi | |
e6cc62c6 | 6965 | |
10f2d63a | 6966 | else |
e6cc62c6 | 6967 | |
10f2d63a VZ |
6968 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6969 | if test "x$LINE" != x ; then | |
6970 | eval "DEFAULT_$LINE" | |
6971 | else | |
6972 | no_cache=1 | |
6973 | fi | |
6974 | ||
6975 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6976 | |
e6cc62c6 | 6977 | fi; |
10f2d63a VZ |
6978 | |
6979 | eval "$ac_cv_use_checkbox" | |
6980 | if test "$no_cache" != 1; then | |
6981 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6982 | fi | |
6983 | ||
6984 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6985 | echo "$as_me:$LINENO: result: yes" >&5 |
6986 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6987 | else |
e6cc62c6 VS |
6988 | echo "$as_me:$LINENO: result: no" >&5 |
6989 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6990 | fi |
e6cc62c6 | 6991 | |
10f2d63a | 6992 | |
5005acfe | 6993 | enablestring= |
e6cc62c6 VS |
6994 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6995 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6996 | no_cache=0 |
6997 | # Check whether --enable-checklst or --disable-checklst was given. | |
6998 | if test "${enable_checklst+set}" = set; then | |
6999 | enableval="$enable_checklst" | |
e6cc62c6 | 7000 | |
10f2d63a VZ |
7001 | if test "$enableval" = yes; then |
7002 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7003 | else | |
7004 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7005 | fi | |
e6cc62c6 | 7006 | |
10f2d63a | 7007 | else |
e6cc62c6 | 7008 | |
10f2d63a VZ |
7009 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7010 | if test "x$LINE" != x ; then | |
7011 | eval "DEFAULT_$LINE" | |
7012 | else | |
7013 | no_cache=1 | |
7014 | fi | |
7015 | ||
7016 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7017 | |
e6cc62c6 | 7018 | fi; |
10f2d63a VZ |
7019 | |
7020 | eval "$ac_cv_use_checklst" | |
7021 | if test "$no_cache" != 1; then | |
7022 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7023 | fi | |
7024 | ||
7025 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7026 | echo "$as_me:$LINENO: result: yes" >&5 |
7027 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7028 | else |
e6cc62c6 VS |
7029 | echo "$as_me:$LINENO: result: no" >&5 |
7030 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7031 | fi |
e6cc62c6 | 7032 | |
10f2d63a | 7033 | |
5005acfe | 7034 | enablestring= |
e6cc62c6 VS |
7035 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7036 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7037 | no_cache=0 |
7038 | # Check whether --enable-choice or --disable-choice was given. | |
7039 | if test "${enable_choice+set}" = set; then | |
7040 | enableval="$enable_choice" | |
e6cc62c6 | 7041 | |
10f2d63a VZ |
7042 | if test "$enableval" = yes; then |
7043 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7044 | else | |
7045 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7046 | fi | |
e6cc62c6 | 7047 | |
10f2d63a | 7048 | else |
e6cc62c6 | 7049 | |
10f2d63a VZ |
7050 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7051 | if test "x$LINE" != x ; then | |
7052 | eval "DEFAULT_$LINE" | |
7053 | else | |
7054 | no_cache=1 | |
7055 | fi | |
7056 | ||
7057 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7058 | |
e6cc62c6 | 7059 | fi; |
10f2d63a VZ |
7060 | |
7061 | eval "$ac_cv_use_choice" | |
7062 | if test "$no_cache" != 1; then | |
7063 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7064 | fi | |
7065 | ||
7066 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7067 | echo "$as_me:$LINENO: result: yes" >&5 |
7068 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7069 | else |
e6cc62c6 VS |
7070 | echo "$as_me:$LINENO: result: no" >&5 |
7071 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7072 | fi |
e6cc62c6 | 7073 | |
10f2d63a | 7074 | |
5005acfe | 7075 | enablestring= |
e6cc62c6 VS |
7076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7077 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7078 | no_cache=0 |
7079 | # Check whether --enable-combobox or --disable-combobox was given. | |
7080 | if test "${enable_combobox+set}" = set; then | |
7081 | enableval="$enable_combobox" | |
e6cc62c6 | 7082 | |
10f2d63a VZ |
7083 | if test "$enableval" = yes; then |
7084 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7085 | else | |
7086 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7087 | fi | |
e6cc62c6 | 7088 | |
10f2d63a | 7089 | else |
e6cc62c6 | 7090 | |
10f2d63a VZ |
7091 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7092 | if test "x$LINE" != x ; then | |
7093 | eval "DEFAULT_$LINE" | |
7094 | else | |
7095 | no_cache=1 | |
7096 | fi | |
7097 | ||
7098 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7099 | |
e6cc62c6 | 7100 | fi; |
10f2d63a VZ |
7101 | |
7102 | eval "$ac_cv_use_combobox" | |
7103 | if test "$no_cache" != 1; then | |
7104 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7105 | fi | |
7106 | ||
7107 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7108 | echo "$as_me:$LINENO: result: yes" >&5 |
7109 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7110 | else |
e6cc62c6 VS |
7111 | echo "$as_me:$LINENO: result: no" >&5 |
7112 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7113 | fi |
e6cc62c6 | 7114 | |
10f2d63a | 7115 | |
da494b40 | 7116 | enablestring= |
e6cc62c6 VS |
7117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7118 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7119 | no_cache=0 |
7120 | # Check whether --enable-display or --disable-display was given. | |
7121 | if test "${enable_display+set}" = set; then | |
7122 | enableval="$enable_display" | |
e6cc62c6 | 7123 | |
da494b40 MB |
7124 | if test "$enableval" = yes; then |
7125 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7126 | else | |
7127 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7128 | fi | |
e6cc62c6 | 7129 | |
da494b40 | 7130 | else |
e6cc62c6 | 7131 | |
da494b40 MB |
7132 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7133 | if test "x$LINE" != x ; then | |
7134 | eval "DEFAULT_$LINE" | |
7135 | else | |
7136 | no_cache=1 | |
7137 | fi | |
7138 | ||
7139 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7140 | |
e6cc62c6 | 7141 | fi; |
da494b40 MB |
7142 | |
7143 | eval "$ac_cv_use_display" | |
7144 | if test "$no_cache" != 1; then | |
7145 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7146 | fi | |
7147 | ||
7148 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7149 | echo "$as_me:$LINENO: result: yes" >&5 |
7150 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7151 | else |
e6cc62c6 VS |
7152 | echo "$as_me:$LINENO: result: no" >&5 |
7153 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7154 | fi |
e6cc62c6 | 7155 | |
da494b40 | 7156 | |
5005acfe | 7157 | enablestring= |
e6cc62c6 VS |
7158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7159 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7160 | no_cache=0 |
7161 | # Check whether --enable-gauge or --disable-gauge was given. | |
7162 | if test "${enable_gauge+set}" = set; then | |
7163 | enableval="$enable_gauge" | |
e6cc62c6 | 7164 | |
10f2d63a VZ |
7165 | if test "$enableval" = yes; then |
7166 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7167 | else | |
7168 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7169 | fi | |
e6cc62c6 | 7170 | |
10f2d63a | 7171 | else |
e6cc62c6 | 7172 | |
10f2d63a VZ |
7173 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7174 | if test "x$LINE" != x ; then | |
7175 | eval "DEFAULT_$LINE" | |
7176 | else | |
7177 | no_cache=1 | |
7178 | fi | |
7179 | ||
7180 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7181 | |
e6cc62c6 | 7182 | fi; |
10f2d63a VZ |
7183 | |
7184 | eval "$ac_cv_use_gauge" | |
7185 | if test "$no_cache" != 1; then | |
7186 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7187 | fi | |
7188 | ||
7189 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7190 | echo "$as_me:$LINENO: result: yes" >&5 |
7191 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7192 | else |
e6cc62c6 VS |
7193 | echo "$as_me:$LINENO: result: no" >&5 |
7194 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7195 | fi |
e6cc62c6 | 7196 | |
10f2d63a | 7197 | |
5005acfe | 7198 | enablestring= |
e6cc62c6 VS |
7199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7200 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7201 | no_cache=0 |
7202 | # Check whether --enable-grid or --disable-grid was given. | |
7203 | if test "${enable_grid+set}" = set; then | |
7204 | enableval="$enable_grid" | |
e6cc62c6 | 7205 | |
10f2d63a VZ |
7206 | if test "$enableval" = yes; then |
7207 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7208 | else | |
7209 | ac_cv_use_grid='wxUSE_GRID=no' | |
7210 | fi | |
e6cc62c6 | 7211 | |
10f2d63a | 7212 | else |
e6cc62c6 | 7213 | |
10f2d63a VZ |
7214 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7215 | if test "x$LINE" != x ; then | |
7216 | eval "DEFAULT_$LINE" | |
7217 | else | |
7218 | no_cache=1 | |
7219 | fi | |
7220 | ||
7221 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7222 | |
e6cc62c6 | 7223 | fi; |
10f2d63a VZ |
7224 | |
7225 | eval "$ac_cv_use_grid" | |
7226 | if test "$no_cache" != 1; then | |
7227 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7228 | fi | |
7229 | ||
7230 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7231 | echo "$as_me:$LINENO: result: yes" >&5 |
7232 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7233 | else |
e6cc62c6 VS |
7234 | echo "$as_me:$LINENO: result: no" >&5 |
7235 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7236 | fi |
e6cc62c6 | 7237 | |
10f2d63a | 7238 | |
5005acfe | 7239 | enablestring= |
e6cc62c6 VS |
7240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7241 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7242 | no_cache=0 |
7243 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7244 | if test "${enable_imaglist+set}" = set; then | |
7245 | enableval="$enable_imaglist" | |
e6cc62c6 | 7246 | |
10f2d63a VZ |
7247 | if test "$enableval" = yes; then |
7248 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7249 | else | |
7250 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7251 | fi | |
e6cc62c6 | 7252 | |
10f2d63a | 7253 | else |
e6cc62c6 | 7254 | |
10f2d63a VZ |
7255 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7256 | if test "x$LINE" != x ; then | |
7257 | eval "DEFAULT_$LINE" | |
7258 | else | |
7259 | no_cache=1 | |
7260 | fi | |
7261 | ||
7262 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7263 | |
e6cc62c6 | 7264 | fi; |
10f2d63a VZ |
7265 | |
7266 | eval "$ac_cv_use_imaglist" | |
7267 | if test "$no_cache" != 1; then | |
7268 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7269 | fi | |
7270 | ||
7271 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7272 | echo "$as_me:$LINENO: result: yes" >&5 |
7273 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7274 | else |
e6cc62c6 VS |
7275 | echo "$as_me:$LINENO: result: no" >&5 |
7276 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7277 | fi |
e6cc62c6 | 7278 | |
10f2d63a | 7279 | |
0e012a93 VZ |
7280 | enablestring= |
7281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7282 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7283 | no_cache=0 | |
7284 | # Check whether --enable-listbook or --disable-listbook was given. | |
7285 | if test "${enable_listbook+set}" = set; then | |
7286 | enableval="$enable_listbook" | |
7287 | ||
7288 | if test "$enableval" = yes; then | |
7289 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7290 | else | |
7291 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7292 | fi | |
7293 | ||
7294 | else | |
7295 | ||
7296 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7297 | if test "x$LINE" != x ; then | |
7298 | eval "DEFAULT_$LINE" | |
7299 | else | |
7300 | no_cache=1 | |
7301 | fi | |
7302 | ||
7303 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7304 | ||
7305 | fi; | |
7306 | ||
7307 | eval "$ac_cv_use_listbook" | |
7308 | if test "$no_cache" != 1; then | |
7309 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7310 | fi | |
7311 | ||
7312 | if test "$wxUSE_LISTBOOK" = yes; then | |
7313 | echo "$as_me:$LINENO: result: yes" >&5 | |
7314 | echo "${ECHO_T}yes" >&6 | |
7315 | else | |
7316 | echo "$as_me:$LINENO: result: no" >&5 | |
7317 | echo "${ECHO_T}no" >&6 | |
7318 | fi | |
7319 | ||
7320 | ||
5005acfe | 7321 | enablestring= |
e6cc62c6 VS |
7322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7323 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7324 | no_cache=0 |
7325 | # Check whether --enable-listbox or --disable-listbox was given. | |
7326 | if test "${enable_listbox+set}" = set; then | |
7327 | enableval="$enable_listbox" | |
e6cc62c6 | 7328 | |
10f2d63a VZ |
7329 | if test "$enableval" = yes; then |
7330 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7331 | else | |
7332 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7333 | fi | |
e6cc62c6 | 7334 | |
10f2d63a | 7335 | else |
e6cc62c6 | 7336 | |
10f2d63a VZ |
7337 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7338 | if test "x$LINE" != x ; then | |
7339 | eval "DEFAULT_$LINE" | |
7340 | else | |
7341 | no_cache=1 | |
7342 | fi | |
7343 | ||
7344 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7345 | |
e6cc62c6 | 7346 | fi; |
10f2d63a VZ |
7347 | |
7348 | eval "$ac_cv_use_listbox" | |
7349 | if test "$no_cache" != 1; then | |
7350 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7351 | fi | |
7352 | ||
7353 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7354 | echo "$as_me:$LINENO: result: yes" >&5 |
7355 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7356 | else |
e6cc62c6 VS |
7357 | echo "$as_me:$LINENO: result: no" >&5 |
7358 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7359 | fi |
e6cc62c6 | 7360 | |
10f2d63a | 7361 | |
5005acfe | 7362 | enablestring= |
e6cc62c6 VS |
7363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7364 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7365 | no_cache=0 |
7366 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7367 | if test "${enable_listctrl+set}" = set; then | |
7368 | enableval="$enable_listctrl" | |
e6cc62c6 | 7369 | |
10f2d63a VZ |
7370 | if test "$enableval" = yes; then |
7371 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7372 | else | |
7373 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7374 | fi | |
e6cc62c6 | 7375 | |
10f2d63a | 7376 | else |
e6cc62c6 | 7377 | |
10f2d63a VZ |
7378 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7379 | if test "x$LINE" != x ; then | |
7380 | eval "DEFAULT_$LINE" | |
7381 | else | |
7382 | no_cache=1 | |
7383 | fi | |
7384 | ||
7385 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7386 | |
e6cc62c6 | 7387 | fi; |
10f2d63a VZ |
7388 | |
7389 | eval "$ac_cv_use_listctrl" | |
7390 | if test "$no_cache" != 1; then | |
7391 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7392 | fi | |
7393 | ||
7394 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7395 | echo "$as_me:$LINENO: result: yes" >&5 |
7396 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7397 | else |
e6cc62c6 VS |
7398 | echo "$as_me:$LINENO: result: no" >&5 |
7399 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7400 | fi |
e6cc62c6 | 7401 | |
10f2d63a | 7402 | |
5005acfe | 7403 | enablestring= |
e6cc62c6 VS |
7404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7405 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7406 | no_cache=0 |
7407 | # Check whether --enable-notebook or --disable-notebook was given. | |
7408 | if test "${enable_notebook+set}" = set; then | |
7409 | enableval="$enable_notebook" | |
e6cc62c6 | 7410 | |
10f2d63a VZ |
7411 | if test "$enableval" = yes; then |
7412 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7413 | else | |
7414 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7415 | fi | |
e6cc62c6 | 7416 | |
10f2d63a | 7417 | else |
e6cc62c6 | 7418 | |
10f2d63a VZ |
7419 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7420 | if test "x$LINE" != x ; then | |
7421 | eval "DEFAULT_$LINE" | |
7422 | else | |
7423 | no_cache=1 | |
7424 | fi | |
7425 | ||
7426 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7427 | |
e6cc62c6 | 7428 | fi; |
10f2d63a VZ |
7429 | |
7430 | eval "$ac_cv_use_notebook" | |
7431 | if test "$no_cache" != 1; then | |
7432 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7433 | fi | |
7434 | ||
7435 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7436 | echo "$as_me:$LINENO: result: yes" >&5 |
7437 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7438 | else |
e6cc62c6 VS |
7439 | echo "$as_me:$LINENO: result: no" >&5 |
7440 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7441 | fi |
e6cc62c6 | 7442 | |
10f2d63a | 7443 | |
5005acfe | 7444 | enablestring= |
e6cc62c6 VS |
7445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7446 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7447 | no_cache=0 |
7448 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7449 | if test "${enable_radiobox+set}" = set; then | |
7450 | enableval="$enable_radiobox" | |
e6cc62c6 | 7451 | |
10f2d63a VZ |
7452 | if test "$enableval" = yes; then |
7453 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7454 | else | |
7455 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7456 | fi | |
e6cc62c6 | 7457 | |
10f2d63a | 7458 | else |
e6cc62c6 | 7459 | |
10f2d63a VZ |
7460 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7461 | if test "x$LINE" != x ; then | |
7462 | eval "DEFAULT_$LINE" | |
7463 | else | |
7464 | no_cache=1 | |
7465 | fi | |
7466 | ||
7467 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7468 | |
e6cc62c6 | 7469 | fi; |
10f2d63a VZ |
7470 | |
7471 | eval "$ac_cv_use_radiobox" | |
7472 | if test "$no_cache" != 1; then | |
7473 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7474 | fi | |
7475 | ||
7476 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7477 | echo "$as_me:$LINENO: result: yes" >&5 |
7478 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7479 | else |
e6cc62c6 VS |
7480 | echo "$as_me:$LINENO: result: no" >&5 |
7481 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7482 | fi |
e6cc62c6 | 7483 | |
10f2d63a | 7484 | |
5005acfe | 7485 | enablestring= |
e6cc62c6 VS |
7486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7487 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7488 | no_cache=0 |
7489 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7490 | if test "${enable_radiobtn+set}" = set; then | |
7491 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7492 | |
10f2d63a VZ |
7493 | if test "$enableval" = yes; then |
7494 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7495 | else | |
7496 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7497 | fi | |
e6cc62c6 | 7498 | |
10f2d63a | 7499 | else |
e6cc62c6 | 7500 | |
10f2d63a VZ |
7501 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7502 | if test "x$LINE" != x ; then | |
7503 | eval "DEFAULT_$LINE" | |
7504 | else | |
7505 | no_cache=1 | |
7506 | fi | |
7507 | ||
7508 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7509 | |
e6cc62c6 | 7510 | fi; |
10f2d63a VZ |
7511 | |
7512 | eval "$ac_cv_use_radiobtn" | |
7513 | if test "$no_cache" != 1; then | |
7514 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7515 | fi | |
7516 | ||
7517 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7518 | echo "$as_me:$LINENO: result: yes" >&5 |
7519 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7520 | else |
e6cc62c6 VS |
7521 | echo "$as_me:$LINENO: result: no" >&5 |
7522 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7523 | fi |
e6cc62c6 | 7524 | |
10f2d63a | 7525 | |
5005acfe | 7526 | enablestring= |
e6cc62c6 VS |
7527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7528 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7529 | no_cache=0 |
7530 | # Check whether --enable-sash or --disable-sash was given. | |
7531 | if test "${enable_sash+set}" = set; then | |
7532 | enableval="$enable_sash" | |
e6cc62c6 | 7533 | |
10f2d63a VZ |
7534 | if test "$enableval" = yes; then |
7535 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7536 | else | |
7537 | ac_cv_use_sash='wxUSE_SASH=no' | |
7538 | fi | |
e6cc62c6 | 7539 | |
10f2d63a | 7540 | else |
e6cc62c6 | 7541 | |
10f2d63a VZ |
7542 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7543 | if test "x$LINE" != x ; then | |
7544 | eval "DEFAULT_$LINE" | |
7545 | else | |
7546 | no_cache=1 | |
7547 | fi | |
7548 | ||
7549 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7550 | |
e6cc62c6 | 7551 | fi; |
10f2d63a VZ |
7552 | |
7553 | eval "$ac_cv_use_sash" | |
7554 | if test "$no_cache" != 1; then | |
7555 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7556 | fi | |
7557 | ||
7558 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7559 | echo "$as_me:$LINENO: result: yes" >&5 |
7560 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7561 | else |
e6cc62c6 VS |
7562 | echo "$as_me:$LINENO: result: no" >&5 |
7563 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7564 | fi |
e6cc62c6 | 7565 | |
10f2d63a | 7566 | |
5005acfe | 7567 | enablestring= |
e6cc62c6 VS |
7568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7569 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7570 | no_cache=0 |
7571 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7572 | if test "${enable_scrollbar+set}" = set; then | |
7573 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7574 | |
10f2d63a VZ |
7575 | if test "$enableval" = yes; then |
7576 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7577 | else | |
7578 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7579 | fi | |
e6cc62c6 | 7580 | |
10f2d63a | 7581 | else |
e6cc62c6 | 7582 | |
10f2d63a VZ |
7583 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7584 | if test "x$LINE" != x ; then | |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
7590 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7591 | |
e6cc62c6 | 7592 | fi; |
10f2d63a VZ |
7593 | |
7594 | eval "$ac_cv_use_scrollbar" | |
7595 | if test "$no_cache" != 1; then | |
7596 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7597 | fi | |
7598 | ||
7599 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7600 | echo "$as_me:$LINENO: result: yes" >&5 |
7601 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7602 | else |
e6cc62c6 VS |
7603 | echo "$as_me:$LINENO: result: no" >&5 |
7604 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7605 | fi |
e6cc62c6 | 7606 | |
10f2d63a | 7607 | |
5005acfe | 7608 | enablestring= |
e6cc62c6 VS |
7609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7610 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7611 | no_cache=0 |
7612 | # Check whether --enable-slider or --disable-slider was given. | |
7613 | if test "${enable_slider+set}" = set; then | |
7614 | enableval="$enable_slider" | |
e6cc62c6 | 7615 | |
10f2d63a VZ |
7616 | if test "$enableval" = yes; then |
7617 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7618 | else | |
7619 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7620 | fi | |
e6cc62c6 | 7621 | |
10f2d63a | 7622 | else |
e6cc62c6 | 7623 | |
10f2d63a VZ |
7624 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7625 | if test "x$LINE" != x ; then | |
7626 | eval "DEFAULT_$LINE" | |
7627 | else | |
7628 | no_cache=1 | |
7629 | fi | |
7630 | ||
7631 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7632 | |
e6cc62c6 | 7633 | fi; |
10f2d63a VZ |
7634 | |
7635 | eval "$ac_cv_use_slider" | |
7636 | if test "$no_cache" != 1; then | |
7637 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7638 | fi | |
7639 | ||
7640 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7641 | echo "$as_me:$LINENO: result: yes" >&5 |
7642 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7643 | else |
e6cc62c6 VS |
7644 | echo "$as_me:$LINENO: result: no" >&5 |
7645 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7646 | fi |
e6cc62c6 | 7647 | |
10f2d63a | 7648 | |
5005acfe | 7649 | enablestring= |
e6cc62c6 VS |
7650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7651 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7652 | no_cache=0 |
7653 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7654 | if test "${enable_spinbtn+set}" = set; then | |
7655 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7656 | |
10f2d63a VZ |
7657 | if test "$enableval" = yes; then |
7658 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7659 | else | |
7660 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7661 | fi | |
e6cc62c6 | 7662 | |
10f2d63a | 7663 | else |
e6cc62c6 | 7664 | |
10f2d63a VZ |
7665 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7666 | if test "x$LINE" != x ; then | |
7667 | eval "DEFAULT_$LINE" | |
7668 | else | |
7669 | no_cache=1 | |
7670 | fi | |
7671 | ||
7672 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7673 | |
e6cc62c6 | 7674 | fi; |
10f2d63a VZ |
7675 | |
7676 | eval "$ac_cv_use_spinbtn" | |
7677 | if test "$no_cache" != 1; then | |
7678 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7679 | fi | |
7680 | ||
7681 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7682 | echo "$as_me:$LINENO: result: yes" >&5 |
7683 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7684 | else |
e6cc62c6 VS |
7685 | echo "$as_me:$LINENO: result: no" >&5 |
7686 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7687 | fi |
e6cc62c6 | 7688 | |
10f2d63a | 7689 | |
5005acfe | 7690 | enablestring= |
e6cc62c6 VS |
7691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7692 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7693 | no_cache=0 |
7694 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7695 | if test "${enable_spinctrl+set}" = set; then | |
7696 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7697 | |
56cfaa52 RR |
7698 | if test "$enableval" = yes; then |
7699 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7700 | else | |
7701 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7702 | fi | |
e6cc62c6 | 7703 | |
56cfaa52 | 7704 | else |
e6cc62c6 | 7705 | |
56cfaa52 RR |
7706 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7707 | if test "x$LINE" != x ; then | |
7708 | eval "DEFAULT_$LINE" | |
7709 | else | |
7710 | no_cache=1 | |
7711 | fi | |
7712 | ||
7713 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7714 | |
e6cc62c6 | 7715 | fi; |
56cfaa52 RR |
7716 | |
7717 | eval "$ac_cv_use_spinctrl" | |
7718 | if test "$no_cache" != 1; then | |
7719 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7720 | fi | |
7721 | ||
7722 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7723 | echo "$as_me:$LINENO: result: yes" >&5 |
7724 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7725 | else |
e6cc62c6 VS |
7726 | echo "$as_me:$LINENO: result: no" >&5 |
7727 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7728 | fi |
e6cc62c6 | 7729 | |
56cfaa52 | 7730 | |
5005acfe | 7731 | enablestring= |
e6cc62c6 VS |
7732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7733 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7734 | no_cache=0 |
7735 | # Check whether --enable-splitter or --disable-splitter was given. | |
7736 | if test "${enable_splitter+set}" = set; then | |
7737 | enableval="$enable_splitter" | |
e6cc62c6 | 7738 | |
10f2d63a VZ |
7739 | if test "$enableval" = yes; then |
7740 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7741 | else | |
7742 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7743 | fi | |
e6cc62c6 | 7744 | |
10f2d63a | 7745 | else |
e6cc62c6 | 7746 | |
10f2d63a VZ |
7747 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7748 | if test "x$LINE" != x ; then | |
7749 | eval "DEFAULT_$LINE" | |
7750 | else | |
7751 | no_cache=1 | |
7752 | fi | |
7753 | ||
7754 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7755 | |
e6cc62c6 | 7756 | fi; |
10f2d63a VZ |
7757 | |
7758 | eval "$ac_cv_use_splitter" | |
7759 | if test "$no_cache" != 1; then | |
7760 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7761 | fi | |
7762 | ||
7763 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7764 | echo "$as_me:$LINENO: result: yes" >&5 |
7765 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7766 | else |
e6cc62c6 VS |
7767 | echo "$as_me:$LINENO: result: no" >&5 |
7768 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7769 | fi |
e6cc62c6 | 7770 | |
10f2d63a | 7771 | |
5005acfe | 7772 | enablestring= |
e6cc62c6 VS |
7773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7774 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7775 | no_cache=0 |
7776 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7777 | if test "${enable_statbmp+set}" = set; then | |
7778 | enableval="$enable_statbmp" | |
e6cc62c6 | 7779 | |
10f2d63a VZ |
7780 | if test "$enableval" = yes; then |
7781 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7782 | else | |
7783 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7784 | fi | |
e6cc62c6 | 7785 | |
10f2d63a | 7786 | else |
e6cc62c6 | 7787 | |
10f2d63a VZ |
7788 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7789 | if test "x$LINE" != x ; then | |
7790 | eval "DEFAULT_$LINE" | |
7791 | else | |
7792 | no_cache=1 | |
7793 | fi | |
7794 | ||
7795 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7796 | |
e6cc62c6 | 7797 | fi; |
10f2d63a VZ |
7798 | |
7799 | eval "$ac_cv_use_statbmp" | |
7800 | if test "$no_cache" != 1; then | |
7801 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7802 | fi | |
7803 | ||
7804 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7805 | echo "$as_me:$LINENO: result: yes" >&5 |
7806 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7807 | else |
e6cc62c6 VS |
7808 | echo "$as_me:$LINENO: result: no" >&5 |
7809 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7810 | fi |
e6cc62c6 | 7811 | |
10f2d63a | 7812 | |
5005acfe | 7813 | enablestring= |
e6cc62c6 VS |
7814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7815 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7816 | no_cache=0 |
7817 | # Check whether --enable-statbox or --disable-statbox was given. | |
7818 | if test "${enable_statbox+set}" = set; then | |
7819 | enableval="$enable_statbox" | |
e6cc62c6 | 7820 | |
10f2d63a VZ |
7821 | if test "$enableval" = yes; then |
7822 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7823 | else | |
7824 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7825 | fi | |
e6cc62c6 | 7826 | |
10f2d63a | 7827 | else |
e6cc62c6 | 7828 | |
10f2d63a VZ |
7829 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7830 | if test "x$LINE" != x ; then | |
7831 | eval "DEFAULT_$LINE" | |
7832 | else | |
7833 | no_cache=1 | |
7834 | fi | |
7835 | ||
7836 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7837 | |
e6cc62c6 | 7838 | fi; |
10f2d63a VZ |
7839 | |
7840 | eval "$ac_cv_use_statbox" | |
7841 | if test "$no_cache" != 1; then | |
7842 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7843 | fi | |
7844 | ||
7845 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7846 | echo "$as_me:$LINENO: result: yes" >&5 |
7847 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7848 | else |
e6cc62c6 VS |
7849 | echo "$as_me:$LINENO: result: no" >&5 |
7850 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7851 | fi |
e6cc62c6 | 7852 | |
10f2d63a | 7853 | |
5005acfe | 7854 | enablestring= |
e6cc62c6 VS |
7855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7856 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7857 | no_cache=0 |
7858 | # Check whether --enable-statline or --disable-statline was given. | |
7859 | if test "${enable_statline+set}" = set; then | |
7860 | enableval="$enable_statline" | |
e6cc62c6 | 7861 | |
10f2d63a VZ |
7862 | if test "$enableval" = yes; then |
7863 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7864 | else | |
7865 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7866 | fi | |
e6cc62c6 | 7867 | |
10f2d63a | 7868 | else |
e6cc62c6 | 7869 | |
10f2d63a VZ |
7870 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7871 | if test "x$LINE" != x ; then | |
7872 | eval "DEFAULT_$LINE" | |
7873 | else | |
7874 | no_cache=1 | |
7875 | fi | |
7876 | ||
7877 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7878 | |
e6cc62c6 | 7879 | fi; |
10f2d63a VZ |
7880 | |
7881 | eval "$ac_cv_use_statline" | |
7882 | if test "$no_cache" != 1; then | |
7883 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7884 | fi | |
7885 | ||
7886 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7887 | echo "$as_me:$LINENO: result: yes" >&5 |
7888 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7889 | else |
e6cc62c6 VS |
7890 | echo "$as_me:$LINENO: result: no" >&5 |
7891 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7892 | fi |
e6cc62c6 | 7893 | |
10f2d63a | 7894 | |
5005acfe | 7895 | enablestring= |
e6cc62c6 VS |
7896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7897 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7898 | no_cache=0 |
7899 | # Check whether --enable-stattext or --disable-stattext was given. | |
7900 | if test "${enable_stattext+set}" = set; then | |
7901 | enableval="$enable_stattext" | |
e6cc62c6 | 7902 | |
1e6feb95 VZ |
7903 | if test "$enableval" = yes; then |
7904 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7905 | else | |
7906 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7907 | fi | |
e6cc62c6 | 7908 | |
1e6feb95 | 7909 | else |
e6cc62c6 | 7910 | |
1e6feb95 VZ |
7911 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7912 | if test "x$LINE" != x ; then | |
7913 | eval "DEFAULT_$LINE" | |
7914 | else | |
7915 | no_cache=1 | |
7916 | fi | |
7917 | ||
7918 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7919 | |
e6cc62c6 | 7920 | fi; |
1e6feb95 VZ |
7921 | |
7922 | eval "$ac_cv_use_stattext" | |
7923 | if test "$no_cache" != 1; then | |
7924 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7925 | fi | |
7926 | ||
7927 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7928 | echo "$as_me:$LINENO: result: yes" >&5 |
7929 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7930 | else |
e6cc62c6 VS |
7931 | echo "$as_me:$LINENO: result: no" >&5 |
7932 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7933 | fi |
e6cc62c6 | 7934 | |
1e6feb95 | 7935 | |
5005acfe | 7936 | enablestring= |
e6cc62c6 VS |
7937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7938 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7939 | no_cache=0 |
7940 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7941 | if test "${enable_statusbar+set}" = set; then | |
7942 | enableval="$enable_statusbar" | |
e6cc62c6 | 7943 | |
10f2d63a VZ |
7944 | if test "$enableval" = yes; then |
7945 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7946 | else | |
7947 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7948 | fi | |
e6cc62c6 | 7949 | |
10f2d63a | 7950 | else |
e6cc62c6 | 7951 | |
10f2d63a VZ |
7952 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7953 | if test "x$LINE" != x ; then | |
7954 | eval "DEFAULT_$LINE" | |
7955 | else | |
7956 | no_cache=1 | |
7957 | fi | |
7958 | ||
7959 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7960 | |
e6cc62c6 | 7961 | fi; |
10f2d63a VZ |
7962 | |
7963 | eval "$ac_cv_use_statusbar" | |
7964 | if test "$no_cache" != 1; then | |
7965 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7966 | fi | |
7967 | ||
7968 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7969 | echo "$as_me:$LINENO: result: yes" >&5 |
7970 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7971 | else |
e6cc62c6 VS |
7972 | echo "$as_me:$LINENO: result: no" >&5 |
7973 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7974 | fi |
e6cc62c6 | 7975 | |
10f2d63a | 7976 | |
5005acfe | 7977 | enablestring= |
e6cc62c6 VS |
7978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7979 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7980 | no_cache=0 |
7981 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7982 | if test "${enable_tabdialog+set}" = set; then | |
7983 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7984 | |
10f2d63a VZ |
7985 | if test "$enableval" = yes; then |
7986 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7987 | else | |
7988 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7989 | fi | |
e6cc62c6 | 7990 | |
10f2d63a | 7991 | else |
e6cc62c6 | 7992 | |
10f2d63a VZ |
7993 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7994 | if test "x$LINE" != x ; then | |
7995 | eval "DEFAULT_$LINE" | |
7996 | else | |
7997 | no_cache=1 | |
7998 | fi | |
7999 | ||
8000 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 8001 | |
e6cc62c6 | 8002 | fi; |
10f2d63a VZ |
8003 | |
8004 | eval "$ac_cv_use_tabdialog" | |
8005 | if test "$no_cache" != 1; then | |
8006 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8007 | fi | |
8008 | ||
8009 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8010 | echo "$as_me:$LINENO: result: yes" >&5 |
8011 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8012 | else |
e6cc62c6 VS |
8013 | echo "$as_me:$LINENO: result: no" >&5 |
8014 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8015 | fi |
e6cc62c6 | 8016 | |
10f2d63a | 8017 | |
5005acfe | 8018 | enablestring= |
e6cc62c6 VS |
8019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8020 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8021 | no_cache=0 |
8022 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8023 | if test "${enable_textctrl+set}" = set; then | |
8024 | enableval="$enable_textctrl" | |
e6cc62c6 | 8025 | |
1e6feb95 VZ |
8026 | if test "$enableval" = yes; then |
8027 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8028 | else | |
8029 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8030 | fi | |
e6cc62c6 | 8031 | |
1e6feb95 | 8032 | else |
e6cc62c6 | 8033 | |
1e6feb95 VZ |
8034 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8035 | if test "x$LINE" != x ; then | |
8036 | eval "DEFAULT_$LINE" | |
8037 | else | |
8038 | no_cache=1 | |
8039 | fi | |
8040 | ||
8041 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8042 | |
e6cc62c6 | 8043 | fi; |
1e6feb95 VZ |
8044 | |
8045 | eval "$ac_cv_use_textctrl" | |
8046 | if test "$no_cache" != 1; then | |
8047 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8048 | fi | |
8049 | ||
8050 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8051 | echo "$as_me:$LINENO: result: yes" >&5 |
8052 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8053 | else |
e6cc62c6 VS |
8054 | echo "$as_me:$LINENO: result: no" >&5 |
8055 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8056 | fi |
e6cc62c6 | 8057 | |
1e6feb95 | 8058 | |
5005acfe | 8059 | enablestring= |
e6cc62c6 VS |
8060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8061 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8062 | no_cache=0 |
8063 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8064 | if test "${enable_togglebtn+set}" = set; then | |
8065 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8066 | |
1db8dc4a VZ |
8067 | if test "$enableval" = yes; then |
8068 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8069 | else | |
8070 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8071 | fi | |
e6cc62c6 | 8072 | |
1db8dc4a | 8073 | else |
e6cc62c6 | 8074 | |
1db8dc4a VZ |
8075 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8076 | if test "x$LINE" != x ; then | |
8077 | eval "DEFAULT_$LINE" | |
8078 | else | |
8079 | no_cache=1 | |
8080 | fi | |
8081 | ||
8082 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8083 | |
e6cc62c6 | 8084 | fi; |
1db8dc4a VZ |
8085 | |
8086 | eval "$ac_cv_use_togglebtn" | |
8087 | if test "$no_cache" != 1; then | |
8088 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8089 | fi | |
8090 | ||
8091 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8092 | echo "$as_me:$LINENO: result: yes" >&5 |
8093 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8094 | else |
e6cc62c6 VS |
8095 | echo "$as_me:$LINENO: result: no" >&5 |
8096 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8097 | fi |
e6cc62c6 | 8098 | |
1db8dc4a | 8099 | |
5005acfe | 8100 | enablestring= |
e6cc62c6 VS |
8101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8102 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8103 | no_cache=0 |
8104 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8105 | if test "${enable_toolbar+set}" = set; then | |
8106 | enableval="$enable_toolbar" | |
e6cc62c6 | 8107 | |
10f2d63a VZ |
8108 | if test "$enableval" = yes; then |
8109 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8110 | else | |
8111 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8112 | fi | |
e6cc62c6 | 8113 | |
10f2d63a | 8114 | else |
e6cc62c6 | 8115 | |
10f2d63a VZ |
8116 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8117 | if test "x$LINE" != x ; then | |
8118 | eval "DEFAULT_$LINE" | |
8119 | else | |
8120 | no_cache=1 | |
8121 | fi | |
8122 | ||
8123 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8124 | |
e6cc62c6 | 8125 | fi; |
10f2d63a VZ |
8126 | |
8127 | eval "$ac_cv_use_toolbar" | |
8128 | if test "$no_cache" != 1; then | |
8129 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8130 | fi | |
8131 | ||
8132 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8133 | echo "$as_me:$LINENO: result: yes" >&5 |
8134 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8135 | else |
e6cc62c6 VS |
8136 | echo "$as_me:$LINENO: result: no" >&5 |
8137 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8138 | fi |
e6cc62c6 | 8139 | |
10f2d63a | 8140 | |
5005acfe | 8141 | enablestring= |
e6cc62c6 VS |
8142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8143 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8144 | no_cache=0 |
8145 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8146 | if test "${enable_tbarnative+set}" = set; then | |
8147 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8148 | |
360d6699 VZ |
8149 | if test "$enableval" = yes; then |
8150 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8151 | else | |
8152 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8153 | fi | |
e6cc62c6 | 8154 | |
360d6699 | 8155 | else |
e6cc62c6 | 8156 | |
360d6699 VZ |
8157 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8158 | if test "x$LINE" != x ; then | |
8159 | eval "DEFAULT_$LINE" | |
8160 | else | |
8161 | no_cache=1 | |
8162 | fi | |
8163 | ||
8164 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8165 | |
e6cc62c6 | 8166 | fi; |
360d6699 VZ |
8167 | |
8168 | eval "$ac_cv_use_tbarnative" | |
8169 | if test "$no_cache" != 1; then | |
8170 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8171 | fi | |
8172 | ||
8173 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8174 | echo "$as_me:$LINENO: result: yes" >&5 |
8175 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8176 | else |
e6cc62c6 VS |
8177 | echo "$as_me:$LINENO: result: no" >&5 |
8178 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8179 | fi |
e6cc62c6 | 8180 | |
360d6699 | 8181 | |
5005acfe | 8182 | enablestring= |
e6cc62c6 VS |
8183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8184 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8185 | no_cache=0 |
8186 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8187 | if test "${enable_tbarsmpl+set}" = set; then | |
8188 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8189 | |
360d6699 VZ |
8190 | if test "$enableval" = yes; then |
8191 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8192 | else | |
8193 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8194 | fi | |
e6cc62c6 | 8195 | |
360d6699 | 8196 | else |
e6cc62c6 | 8197 | |
360d6699 VZ |
8198 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8199 | if test "x$LINE" != x ; then | |
8200 | eval "DEFAULT_$LINE" | |
8201 | else | |
8202 | no_cache=1 | |
8203 | fi | |
8204 | ||
8205 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8206 | |
e6cc62c6 | 8207 | fi; |
360d6699 VZ |
8208 | |
8209 | eval "$ac_cv_use_tbarsmpl" | |
8210 | if test "$no_cache" != 1; then | |
8211 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8212 | fi | |
8213 | ||
8214 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8215 | echo "$as_me:$LINENO: result: yes" >&5 |
8216 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8217 | else |
e6cc62c6 VS |
8218 | echo "$as_me:$LINENO: result: no" >&5 |
8219 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8220 | fi |
e6cc62c6 | 8221 | |
360d6699 | 8222 | |
5005acfe | 8223 | enablestring= |
e6cc62c6 VS |
8224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8225 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8226 | no_cache=0 |
8227 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8228 | if test "${enable_treectrl+set}" = set; then | |
8229 | enableval="$enable_treectrl" | |
e6cc62c6 | 8230 | |
10f2d63a VZ |
8231 | if test "$enableval" = yes; then |
8232 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8233 | else | |
8234 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8235 | fi | |
e6cc62c6 | 8236 | |
10f2d63a | 8237 | else |
e6cc62c6 | 8238 | |
10f2d63a VZ |
8239 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8240 | if test "x$LINE" != x ; then | |
8241 | eval "DEFAULT_$LINE" | |
8242 | else | |
8243 | no_cache=1 | |
8244 | fi | |
8245 | ||
8246 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8247 | |
e6cc62c6 | 8248 | fi; |
10f2d63a | 8249 | |
1e6feb95 VZ |
8250 | eval "$ac_cv_use_treectrl" |
8251 | if test "$no_cache" != 1; then | |
8252 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8253 | fi | |
8254 | ||
8255 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8256 | echo "$as_me:$LINENO: result: yes" >&5 |
8257 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8258 | else |
e6cc62c6 VS |
8259 | echo "$as_me:$LINENO: result: no" >&5 |
8260 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8261 | fi |
e6cc62c6 | 8262 | |
1e6feb95 | 8263 | |
5005acfe | 8264 | enablestring= |
e6cc62c6 VS |
8265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8266 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8267 | no_cache=0 |
8268 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8269 | if test "${enable_tipwindow+set}" = set; then | |
8270 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8271 | |
9926e4a4 VZ |
8272 | if test "$enableval" = yes; then |
8273 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8274 | else | |
8275 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8276 | fi | |
e6cc62c6 | 8277 | |
9926e4a4 | 8278 | else |
e6cc62c6 | 8279 | |
9926e4a4 VZ |
8280 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8281 | if test "x$LINE" != x ; then | |
8282 | eval "DEFAULT_$LINE" | |
8283 | else | |
8284 | no_cache=1 | |
8285 | fi | |
8286 | ||
8287 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8288 | |
e6cc62c6 | 8289 | fi; |
9926e4a4 VZ |
8290 | |
8291 | eval "$ac_cv_use_tipwindow" | |
8292 | if test "$no_cache" != 1; then | |
8293 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8294 | fi | |
8295 | ||
8296 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8297 | echo "$as_me:$LINENO: result: yes" >&5 |
8298 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8299 | else |
e6cc62c6 VS |
8300 | echo "$as_me:$LINENO: result: no" >&5 |
8301 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8302 | fi |
e6cc62c6 | 8303 | |
9926e4a4 | 8304 | |
5005acfe | 8305 | enablestring= |
e6cc62c6 VS |
8306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8307 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8308 | no_cache=0 |
8309 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8310 | if test "${enable_popupwin+set}" = set; then | |
8311 | enableval="$enable_popupwin" | |
e6cc62c6 | 8312 | |
9f41d601 RR |
8313 | if test "$enableval" = yes; then |
8314 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8315 | else | |
8316 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8317 | fi | |
e6cc62c6 | 8318 | |
9f41d601 | 8319 | else |
e6cc62c6 | 8320 | |
9f41d601 RR |
8321 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8322 | if test "x$LINE" != x ; then | |
8323 | eval "DEFAULT_$LINE" | |
8324 | else | |
8325 | no_cache=1 | |
8326 | fi | |
8327 | ||
8328 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8329 | |
e6cc62c6 | 8330 | fi; |
9f41d601 RR |
8331 | |
8332 | eval "$ac_cv_use_popupwin" | |
8333 | if test "$no_cache" != 1; then | |
8334 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8335 | fi | |
8336 | ||
8337 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8338 | echo "$as_me:$LINENO: result: yes" >&5 |
8339 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8340 | else |
e6cc62c6 VS |
8341 | echo "$as_me:$LINENO: result: no" >&5 |
8342 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8343 | fi |
e6cc62c6 | 8344 | |
52127426 | 8345 | |
8284b0c5 MB |
8346 | |
8347 | ||
5005acfe | 8348 | enablestring= |
e6cc62c6 VS |
8349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8350 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8351 | no_cache=0 |
8352 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8353 | if test "${enable_commondlg+set}" = set; then | |
8354 | enableval="$enable_commondlg" | |
e6cc62c6 | 8355 | |
1e6feb95 VZ |
8356 | if test "$enableval" = yes; then |
8357 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8358 | else | |
8359 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8360 | fi | |
e6cc62c6 | 8361 | |
1e6feb95 | 8362 | else |
e6cc62c6 | 8363 | |
1e6feb95 VZ |
8364 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8365 | if test "x$LINE" != x ; then | |
8366 | eval "DEFAULT_$LINE" | |
8367 | else | |
8368 | no_cache=1 | |
8369 | fi | |
8370 | ||
8371 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8372 | |
e6cc62c6 | 8373 | fi; |
1e6feb95 VZ |
8374 | |
8375 | eval "$ac_cv_use_commondlg" | |
8376 | if test "$no_cache" != 1; then | |
8377 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8378 | fi | |
8379 | ||
8380 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8381 | echo "$as_me:$LINENO: result: yes" >&5 |
8382 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8383 | else |
e6cc62c6 VS |
8384 | echo "$as_me:$LINENO: result: no" >&5 |
8385 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8386 | fi |
e6cc62c6 | 8387 | |
1e6feb95 | 8388 | |
5005acfe | 8389 | enablestring= |
e6cc62c6 VS |
8390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8391 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8392 | no_cache=0 |
8393 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8394 | if test "${enable_choicedlg+set}" = set; then | |
8395 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8396 | |
1e6feb95 VZ |
8397 | if test "$enableval" = yes; then |
8398 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8399 | else | |
8400 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8401 | fi | |
e6cc62c6 | 8402 | |
1e6feb95 | 8403 | else |
e6cc62c6 | 8404 | |
1e6feb95 VZ |
8405 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8406 | if test "x$LINE" != x ; then | |
8407 | eval "DEFAULT_$LINE" | |
8408 | else | |
8409 | no_cache=1 | |
8410 | fi | |
8411 | ||
8412 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8413 | |
e6cc62c6 | 8414 | fi; |
1e6feb95 VZ |
8415 | |
8416 | eval "$ac_cv_use_choicedlg" | |
8417 | if test "$no_cache" != 1; then | |
8418 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8419 | fi | |
8420 | ||
8421 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8422 | echo "$as_me:$LINENO: result: yes" >&5 |
8423 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8424 | else |
e6cc62c6 VS |
8425 | echo "$as_me:$LINENO: result: no" >&5 |
8426 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8427 | fi |
e6cc62c6 | 8428 | |
1e6feb95 | 8429 | |
5005acfe | 8430 | enablestring= |
e6cc62c6 VS |
8431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8432 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8433 | no_cache=0 |
8434 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8435 | if test "${enable_coldlg+set}" = set; then | |
8436 | enableval="$enable_coldlg" | |
e6cc62c6 | 8437 | |
1e6feb95 VZ |
8438 | if test "$enableval" = yes; then |
8439 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8440 | else | |
8441 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8442 | fi | |
e6cc62c6 | 8443 | |
1e6feb95 | 8444 | else |
e6cc62c6 | 8445 | |
1e6feb95 VZ |
8446 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8447 | if test "x$LINE" != x ; then | |
8448 | eval "DEFAULT_$LINE" | |
8449 | else | |
8450 | no_cache=1 | |
8451 | fi | |
8452 | ||
8453 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8454 | |
e6cc62c6 | 8455 | fi; |
1e6feb95 VZ |
8456 | |
8457 | eval "$ac_cv_use_coldlg" | |
8458 | if test "$no_cache" != 1; then | |
8459 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8460 | fi | |
8461 | ||
8462 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8463 | echo "$as_me:$LINENO: result: yes" >&5 |
8464 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8465 | else |
e6cc62c6 VS |
8466 | echo "$as_me:$LINENO: result: no" >&5 |
8467 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8468 | fi |
e6cc62c6 | 8469 | |
1e6feb95 | 8470 | |
5005acfe | 8471 | enablestring= |
e6cc62c6 VS |
8472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8473 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8474 | no_cache=0 |
8475 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8476 | if test "${enable_filedlg+set}" = set; then | |
8477 | enableval="$enable_filedlg" | |
e6cc62c6 | 8478 | |
1e6feb95 VZ |
8479 | if test "$enableval" = yes; then |
8480 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8481 | else | |
8482 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8483 | fi | |
e6cc62c6 | 8484 | |
1e6feb95 | 8485 | else |
e6cc62c6 | 8486 | |
1e6feb95 VZ |
8487 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8488 | if test "x$LINE" != x ; then | |
8489 | eval "DEFAULT_$LINE" | |
8490 | else | |
8491 | no_cache=1 | |
8492 | fi | |
8493 | ||
8494 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8495 | |
e6cc62c6 | 8496 | fi; |
1e6feb95 VZ |
8497 | |
8498 | eval "$ac_cv_use_filedlg" | |
8499 | if test "$no_cache" != 1; then | |
8500 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8501 | fi | |
8502 | ||
8503 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8504 | echo "$as_me:$LINENO: result: yes" >&5 |
8505 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8506 | else |
e6cc62c6 VS |
8507 | echo "$as_me:$LINENO: result: no" >&5 |
8508 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8509 | fi |
e6cc62c6 | 8510 | |
1e6feb95 | 8511 | |
5005acfe | 8512 | enablestring= |
e6cc62c6 VS |
8513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8514 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8515 | no_cache=0 |
69d27ff7 MB |
8516 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8517 | if test "${enable_finddlg+set}" = set; then | |
8518 | enableval="$enable_finddlg" | |
e6cc62c6 | 8519 | |
8db37e06 | 8520 | if test "$enableval" = yes; then |
69d27ff7 | 8521 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8522 | else |
69d27ff7 | 8523 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8524 | fi |
e6cc62c6 | 8525 | |
8db37e06 | 8526 | else |
e6cc62c6 | 8527 | |
8db37e06 VZ |
8528 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8529 | if test "x$LINE" != x ; then | |
8530 | eval "DEFAULT_$LINE" | |
8531 | else | |
8532 | no_cache=1 | |
8533 | fi | |
8534 | ||
69d27ff7 | 8535 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8536 | |
e6cc62c6 | 8537 | fi; |
8db37e06 | 8538 | |
69d27ff7 | 8539 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8540 | if test "$no_cache" != 1; then |
69d27ff7 | 8541 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8542 | fi |
8543 | ||
8544 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8545 | echo "$as_me:$LINENO: result: yes" >&5 |
8546 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8547 | else |
e6cc62c6 VS |
8548 | echo "$as_me:$LINENO: result: no" >&5 |
8549 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8550 | fi |
e6cc62c6 | 8551 | |
8db37e06 | 8552 | |
5005acfe | 8553 | enablestring= |
e6cc62c6 VS |
8554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8555 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8556 | no_cache=0 |
8557 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8558 | if test "${enable_fontdlg+set}" = set; then | |
8559 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8560 | |
1e6feb95 VZ |
8561 | if test "$enableval" = yes; then |
8562 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8563 | else | |
8564 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8565 | fi | |
e6cc62c6 | 8566 | |
1e6feb95 | 8567 | else |
e6cc62c6 | 8568 | |
1e6feb95 VZ |
8569 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8570 | if test "x$LINE" != x ; then | |
8571 | eval "DEFAULT_$LINE" | |
8572 | else | |
8573 | no_cache=1 | |
8574 | fi | |
8575 | ||
8576 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8577 | |
e6cc62c6 | 8578 | fi; |
1e6feb95 VZ |
8579 | |
8580 | eval "$ac_cv_use_fontdlg" | |
8581 | if test "$no_cache" != 1; then | |
8582 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8583 | fi | |
8584 | ||
8585 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8586 | echo "$as_me:$LINENO: result: yes" >&5 |
8587 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8588 | else |
e6cc62c6 VS |
8589 | echo "$as_me:$LINENO: result: no" >&5 |
8590 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8591 | fi |
e6cc62c6 | 8592 | |
1e6feb95 | 8593 | |
5005acfe | 8594 | enablestring= |
e6cc62c6 VS |
8595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8596 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8597 | no_cache=0 |
8598 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8599 | if test "${enable_dirdlg+set}" = set; then | |
8600 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8601 | |
1e6feb95 VZ |
8602 | if test "$enableval" = yes; then |
8603 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8604 | else | |
8605 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8606 | fi | |
e6cc62c6 | 8607 | |
1e6feb95 | 8608 | else |
e6cc62c6 | 8609 | |
1e6feb95 VZ |
8610 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8611 | if test "x$LINE" != x ; then | |
8612 | eval "DEFAULT_$LINE" | |
8613 | else | |
8614 | no_cache=1 | |
8615 | fi | |
8616 | ||
8617 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8618 | |
e6cc62c6 | 8619 | fi; |
1e6feb95 VZ |
8620 | |
8621 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8622 | if test "$no_cache" != 1; then |
1e6feb95 | 8623 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8624 | fi |
8625 | ||
1e6feb95 | 8626 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8627 | echo "$as_me:$LINENO: result: yes" >&5 |
8628 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8629 | else |
e6cc62c6 VS |
8630 | echo "$as_me:$LINENO: result: no" >&5 |
8631 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8632 | fi |
e6cc62c6 | 8633 | |
698dcdb6 | 8634 | |
5005acfe | 8635 | enablestring= |
e6cc62c6 VS |
8636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8637 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8638 | no_cache=0 |
1e6feb95 VZ |
8639 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8640 | if test "${enable_msgdlg+set}" = set; then | |
8641 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8642 | |
10f2d63a | 8643 | if test "$enableval" = yes; then |
1e6feb95 | 8644 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8645 | else |
1e6feb95 | 8646 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8647 | fi |
e6cc62c6 | 8648 | |
10f2d63a | 8649 | else |
e6cc62c6 | 8650 | |
1e6feb95 | 8651 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8652 | if test "x$LINE" != x ; then |
8653 | eval "DEFAULT_$LINE" | |
8654 | else | |
8655 | no_cache=1 | |
8656 | fi | |
8657 | ||
1e6feb95 | 8658 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8659 | |
e6cc62c6 | 8660 | fi; |
10f2d63a | 8661 | |
1e6feb95 | 8662 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8663 | if test "$no_cache" != 1; then |
1e6feb95 | 8664 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8665 | fi |
8666 | ||
1e6feb95 | 8667 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8668 | echo "$as_me:$LINENO: result: yes" >&5 |
8669 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8670 | else |
e6cc62c6 VS |
8671 | echo "$as_me:$LINENO: result: no" >&5 |
8672 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8673 | fi |
e6cc62c6 | 8674 | |
10f2d63a | 8675 | |
5005acfe | 8676 | enablestring= |
e6cc62c6 VS |
8677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8678 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8679 | no_cache=0 |
1e6feb95 VZ |
8680 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8681 | if test "${enable_numberdlg+set}" = set; then | |
8682 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8683 | |
10f2d63a | 8684 | if test "$enableval" = yes; then |
1e6feb95 | 8685 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8686 | else |
1e6feb95 | 8687 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8688 | fi |
e6cc62c6 | 8689 | |
10f2d63a | 8690 | else |
e6cc62c6 | 8691 | |
1e6feb95 | 8692 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8693 | if test "x$LINE" != x ; then |
8694 | eval "DEFAULT_$LINE" | |
8695 | else | |
8696 | no_cache=1 | |
8697 | fi | |
8698 | ||
1e6feb95 | 8699 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8700 | |
e6cc62c6 | 8701 | fi; |
10f2d63a | 8702 | |
1e6feb95 | 8703 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8704 | if test "$no_cache" != 1; then |
1e6feb95 | 8705 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8706 | fi |
8707 | ||
1e6feb95 | 8708 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8709 | echo "$as_me:$LINENO: result: yes" >&5 |
8710 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8711 | else |
e6cc62c6 VS |
8712 | echo "$as_me:$LINENO: result: no" >&5 |
8713 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8714 | fi |
e6cc62c6 | 8715 | |
10f2d63a | 8716 | |
5005acfe | 8717 | enablestring= |
e6cc62c6 VS |
8718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8719 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8720 | no_cache=0 |
8721 | # Check whether --enable-splash or --disable-splash was given. | |
8722 | if test "${enable_splash+set}" = set; then | |
8723 | enableval="$enable_splash" | |
e6cc62c6 | 8724 | |
cbca9943 VZ |
8725 | if test "$enableval" = yes; then |
8726 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8727 | else | |
8728 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8729 | fi | |
e6cc62c6 | 8730 | |
cbca9943 | 8731 | else |
e6cc62c6 | 8732 | |
cbca9943 VZ |
8733 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8734 | if test "x$LINE" != x ; then | |
8735 | eval "DEFAULT_$LINE" | |
8736 | else | |
8737 | no_cache=1 | |
8738 | fi | |
8739 | ||
8740 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8741 | |
e6cc62c6 | 8742 | fi; |
cbca9943 VZ |
8743 | |
8744 | eval "$ac_cv_use_splash" | |
8745 | if test "$no_cache" != 1; then | |
8746 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8747 | fi | |
8748 | ||
8749 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8750 | echo "$as_me:$LINENO: result: yes" >&5 |
8751 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8752 | else |
e6cc62c6 VS |
8753 | echo "$as_me:$LINENO: result: no" >&5 |
8754 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8755 | fi |
e6cc62c6 | 8756 | |
cbca9943 | 8757 | |
5005acfe | 8758 | enablestring= |
e6cc62c6 VS |
8759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8760 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8761 | no_cache=0 |
8762 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8763 | if test "${enable_textdlg+set}" = set; then | |
8764 | enableval="$enable_textdlg" | |
e6cc62c6 | 8765 | |
10f2d63a VZ |
8766 | if test "$enableval" = yes; then |
8767 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8768 | else | |
8769 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8770 | fi | |
e6cc62c6 | 8771 | |
10f2d63a | 8772 | else |
e6cc62c6 | 8773 | |
10f2d63a VZ |
8774 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8775 | if test "x$LINE" != x ; then | |
8776 | eval "DEFAULT_$LINE" | |
8777 | else | |
8778 | no_cache=1 | |
8779 | fi | |
8780 | ||
8781 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8782 | |
e6cc62c6 | 8783 | fi; |
10f2d63a VZ |
8784 | |
8785 | eval "$ac_cv_use_textdlg" | |
8786 | if test "$no_cache" != 1; then | |
8787 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8788 | fi | |
8789 | ||
8790 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8791 | echo "$as_me:$LINENO: result: yes" >&5 |
8792 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8793 | else |
e6cc62c6 VS |
8794 | echo "$as_me:$LINENO: result: no" >&5 |
8795 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8796 | fi |
e6cc62c6 | 8797 | |
10f2d63a | 8798 | |
5005acfe | 8799 | enablestring= |
e6cc62c6 VS |
8800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8801 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8802 | no_cache=0 |
8803 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8804 | if test "${enable_tipdlg+set}" = set; then | |
8805 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8806 | |
10f2d63a VZ |
8807 | if test "$enableval" = yes; then |
8808 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8809 | else | |
8810 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8811 | fi | |
e6cc62c6 | 8812 | |
10f2d63a | 8813 | else |
e6cc62c6 | 8814 | |
10f2d63a VZ |
8815 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8816 | if test "x$LINE" != x ; then | |
8817 | eval "DEFAULT_$LINE" | |
8818 | else | |
8819 | no_cache=1 | |
8820 | fi | |
8821 | ||
8822 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8823 | |
e6cc62c6 | 8824 | fi; |
10f2d63a VZ |
8825 | |
8826 | eval "$ac_cv_use_tipdlg" | |
8827 | if test "$no_cache" != 1; then | |
8828 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8829 | fi | |
8830 | ||
8831 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8832 | echo "$as_me:$LINENO: result: yes" >&5 |
8833 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8834 | else |
e6cc62c6 VS |
8835 | echo "$as_me:$LINENO: result: no" >&5 |
8836 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8837 | fi |
e6cc62c6 | 8838 | |
10f2d63a | 8839 | |
5005acfe | 8840 | enablestring= |
e6cc62c6 VS |
8841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8842 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8843 | no_cache=0 |
8844 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8845 | if test "${enable_progressdlg+set}" = set; then | |
8846 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8847 | |
10f2d63a VZ |
8848 | if test "$enableval" = yes; then |
8849 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8850 | else | |
8851 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8852 | fi | |
e6cc62c6 | 8853 | |
10f2d63a | 8854 | else |
e6cc62c6 | 8855 | |
10f2d63a VZ |
8856 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8857 | if test "x$LINE" != x ; then | |
8858 | eval "DEFAULT_$LINE" | |
8859 | else | |
8860 | no_cache=1 | |
8861 | fi | |
8862 | ||
8863 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8864 | |
e6cc62c6 | 8865 | fi; |
10f2d63a VZ |
8866 | |
8867 | eval "$ac_cv_use_progressdlg" | |
8868 | if test "$no_cache" != 1; then | |
8869 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8870 | fi | |
8871 | ||
8872 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8873 | echo "$as_me:$LINENO: result: yes" >&5 |
8874 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8875 | else |
e6cc62c6 VS |
8876 | echo "$as_me:$LINENO: result: no" >&5 |
8877 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8878 | fi |
e6cc62c6 | 8879 | |
10f2d63a | 8880 | |
5005acfe | 8881 | enablestring= |
e6cc62c6 VS |
8882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8883 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8884 | no_cache=0 |
8885 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8886 | if test "${enable_wizarddlg+set}" = set; then | |
8887 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8888 | |
b1f5d087 VZ |
8889 | if test "$enableval" = yes; then |
8890 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8891 | else | |
8892 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8893 | fi | |
e6cc62c6 | 8894 | |
b1f5d087 | 8895 | else |
e6cc62c6 | 8896 | |
b1f5d087 VZ |
8897 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8898 | if test "x$LINE" != x ; then | |
8899 | eval "DEFAULT_$LINE" | |
8900 | else | |
8901 | no_cache=1 | |
8902 | fi | |
8903 | ||
8904 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8905 | |
e6cc62c6 | 8906 | fi; |
b1f5d087 VZ |
8907 | |
8908 | eval "$ac_cv_use_wizarddlg" | |
8909 | if test "$no_cache" != 1; then | |
8910 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8911 | fi | |
8912 | ||
8913 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8914 | echo "$as_me:$LINENO: result: yes" >&5 |
8915 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8916 | else |
e6cc62c6 VS |
8917 | echo "$as_me:$LINENO: result: no" >&5 |
8918 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8919 | fi |
e6cc62c6 | 8920 | |
8284b0c5 MB |
8921 | |
8922 | ||
52127426 | 8923 | |
5005acfe | 8924 | enablestring= |
e6cc62c6 VS |
8925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8926 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8927 | no_cache=0 |
8928 | # Check whether --enable-menus or --disable-menus was given. | |
8929 | if test "${enable_menus+set}" = set; then | |
8930 | enableval="$enable_menus" | |
e6cc62c6 | 8931 | |
1e6feb95 VZ |
8932 | if test "$enableval" = yes; then |
8933 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8934 | else | |
8935 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8936 | fi | |
e6cc62c6 | 8937 | |
1e6feb95 | 8938 | else |
e6cc62c6 | 8939 | |
1e6feb95 VZ |
8940 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8941 | if test "x$LINE" != x ; then | |
8942 | eval "DEFAULT_$LINE" | |
8943 | else | |
8944 | no_cache=1 | |
8945 | fi | |
8946 | ||
8947 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8948 | |
e6cc62c6 | 8949 | fi; |
1e6feb95 VZ |
8950 | |
8951 | eval "$ac_cv_use_menus" | |
8952 | if test "$no_cache" != 1; then | |
8953 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8954 | fi | |
8955 | ||
8956 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8957 | echo "$as_me:$LINENO: result: yes" >&5 |
8958 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8959 | else |
e6cc62c6 VS |
8960 | echo "$as_me:$LINENO: result: no" >&5 |
8961 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8962 | fi |
e6cc62c6 | 8963 | |
1e6feb95 | 8964 | |
5005acfe | 8965 | enablestring= |
e6cc62c6 VS |
8966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8967 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8968 | no_cache=0 |
8969 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8970 | if test "${enable_miniframe+set}" = set; then | |
8971 | enableval="$enable_miniframe" | |
e6cc62c6 | 8972 | |
10f2d63a VZ |
8973 | if test "$enableval" = yes; then |
8974 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8975 | else | |
8976 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8977 | fi | |
e6cc62c6 | 8978 | |
10f2d63a | 8979 | else |
e6cc62c6 | 8980 | |
10f2d63a VZ |
8981 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8982 | if test "x$LINE" != x ; then | |
8983 | eval "DEFAULT_$LINE" | |
8984 | else | |
8985 | no_cache=1 | |
8986 | fi | |
8987 | ||
8988 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8989 | |
e6cc62c6 | 8990 | fi; |
10f2d63a VZ |
8991 | |
8992 | eval "$ac_cv_use_miniframe" | |
8993 | if test "$no_cache" != 1; then | |
8994 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8995 | fi | |
8996 | ||
8997 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8998 | echo "$as_me:$LINENO: result: yes" >&5 |
8999 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9000 | else |
e6cc62c6 VS |
9001 | echo "$as_me:$LINENO: result: no" >&5 |
9002 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9003 | fi |
e6cc62c6 | 9004 | |
10f2d63a | 9005 | |
5005acfe | 9006 | enablestring= |
e6cc62c6 VS |
9007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9008 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9009 | no_cache=0 |
9010 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9011 | if test "${enable_tooltips+set}" = set; then | |
9012 | enableval="$enable_tooltips" | |
e6cc62c6 | 9013 | |
10f2d63a VZ |
9014 | if test "$enableval" = yes; then |
9015 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9016 | else | |
9017 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9018 | fi | |
e6cc62c6 | 9019 | |
10f2d63a | 9020 | else |
e6cc62c6 | 9021 | |
10f2d63a VZ |
9022 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9023 | if test "x$LINE" != x ; then | |
9024 | eval "DEFAULT_$LINE" | |
9025 | else | |
9026 | no_cache=1 | |
9027 | fi | |
9028 | ||
9029 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9030 | |
e6cc62c6 | 9031 | fi; |
10f2d63a VZ |
9032 | |
9033 | eval "$ac_cv_use_tooltips" | |
9034 | if test "$no_cache" != 1; then | |
9035 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9036 | fi | |
9037 | ||
9038 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9039 | echo "$as_me:$LINENO: result: yes" >&5 |
9040 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9041 | else |
e6cc62c6 VS |
9042 | echo "$as_me:$LINENO: result: no" >&5 |
9043 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9044 | fi |
e6cc62c6 | 9045 | |
10f2d63a | 9046 | |
5005acfe | 9047 | enablestring= |
e6cc62c6 VS |
9048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9049 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9050 | no_cache=0 |
9051 | # Check whether --enable-splines or --disable-splines was given. | |
9052 | if test "${enable_splines+set}" = set; then | |
9053 | enableval="$enable_splines" | |
e6cc62c6 | 9054 | |
10f2d63a VZ |
9055 | if test "$enableval" = yes; then |
9056 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9057 | else | |
9058 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9059 | fi | |
e6cc62c6 | 9060 | |
10f2d63a | 9061 | else |
e6cc62c6 | 9062 | |
10f2d63a VZ |
9063 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9064 | if test "x$LINE" != x ; then | |
9065 | eval "DEFAULT_$LINE" | |
9066 | else | |
9067 | no_cache=1 | |
9068 | fi | |
9069 | ||
9070 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9071 | |
e6cc62c6 | 9072 | fi; |
10f2d63a VZ |
9073 | |
9074 | eval "$ac_cv_use_splines" | |
9075 | if test "$no_cache" != 1; then | |
9076 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9077 | fi | |
9078 | ||
9079 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9080 | echo "$as_me:$LINENO: result: yes" >&5 |
9081 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9082 | else |
e6cc62c6 VS |
9083 | echo "$as_me:$LINENO: result: no" >&5 |
9084 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9085 | fi |
e6cc62c6 | 9086 | |
10f2d63a | 9087 | |
5005acfe | 9088 | enablestring= |
e6cc62c6 VS |
9089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9090 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9091 | no_cache=0 |
9092 | # Check whether --enable-validators or --disable-validators was given. | |
9093 | if test "${enable_validators+set}" = set; then | |
9094 | enableval="$enable_validators" | |
e6cc62c6 | 9095 | |
10f2d63a VZ |
9096 | if test "$enableval" = yes; then |
9097 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9098 | else | |
9099 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9100 | fi | |
e6cc62c6 | 9101 | |
10f2d63a | 9102 | else |
e6cc62c6 | 9103 | |
10f2d63a VZ |
9104 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9105 | if test "x$LINE" != x ; then | |
9106 | eval "DEFAULT_$LINE" | |
9107 | else | |
9108 | no_cache=1 | |
9109 | fi | |
9110 | ||
9111 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9112 | |
e6cc62c6 | 9113 | fi; |
10f2d63a VZ |
9114 | |
9115 | eval "$ac_cv_use_validators" | |
9116 | if test "$no_cache" != 1; then | |
9117 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9118 | fi | |
9119 | ||
9120 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9121 | echo "$as_me:$LINENO: result: yes" >&5 |
9122 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9123 | else |
e6cc62c6 VS |
9124 | echo "$as_me:$LINENO: result: no" >&5 |
9125 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9126 | fi |
e6cc62c6 | 9127 | |
10f2d63a | 9128 | |
5005acfe | 9129 | enablestring= |
e6cc62c6 VS |
9130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9131 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9132 | no_cache=0 |
9133 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9134 | if test "${enable_busyinfo+set}" = set; then | |
9135 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9136 | |
10f2d63a VZ |
9137 | if test "$enableval" = yes; then |
9138 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9139 | else | |
9140 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9141 | fi | |
e6cc62c6 | 9142 | |
10f2d63a | 9143 | else |
e6cc62c6 | 9144 | |
10f2d63a VZ |
9145 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9146 | if test "x$LINE" != x ; then | |
9147 | eval "DEFAULT_$LINE" | |
9148 | else | |
9149 | no_cache=1 | |
9150 | fi | |
9151 | ||
9152 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9153 | |
e6cc62c6 | 9154 | fi; |
10f2d63a VZ |
9155 | |
9156 | eval "$ac_cv_use_busyinfo" | |
9157 | if test "$no_cache" != 1; then | |
9158 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9159 | fi | |
9160 | ||
9161 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9162 | echo "$as_me:$LINENO: result: yes" >&5 |
9163 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9164 | else |
e6cc62c6 VS |
9165 | echo "$as_me:$LINENO: result: no" >&5 |
9166 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9167 | fi |
e6cc62c6 | 9168 | |
10f2d63a | 9169 | |
5005acfe | 9170 | enablestring= |
e6cc62c6 VS |
9171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9172 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9173 | no_cache=0 |
9174 | # Check whether --enable-joystick or --disable-joystick was given. | |
9175 | if test "${enable_joystick+set}" = set; then | |
9176 | enableval="$enable_joystick" | |
e6cc62c6 | 9177 | |
f6bcfd97 BP |
9178 | if test "$enableval" = yes; then |
9179 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9180 | else | |
9181 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9182 | fi | |
e6cc62c6 | 9183 | |
f6bcfd97 | 9184 | else |
e6cc62c6 | 9185 | |
f6bcfd97 BP |
9186 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9187 | if test "x$LINE" != x ; then | |
9188 | eval "DEFAULT_$LINE" | |
9189 | else | |
9190 | no_cache=1 | |
9191 | fi | |
9192 | ||
9193 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9194 | |
e6cc62c6 | 9195 | fi; |
f6bcfd97 BP |
9196 | |
9197 | eval "$ac_cv_use_joystick" | |
9198 | if test "$no_cache" != 1; then | |
9199 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9200 | fi | |
9201 | ||
9202 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9203 | echo "$as_me:$LINENO: result: yes" >&5 |
9204 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9205 | else |
e6cc62c6 VS |
9206 | echo "$as_me:$LINENO: result: no" >&5 |
9207 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9208 | fi |
e6cc62c6 | 9209 | |
698dcdb6 | 9210 | |
5005acfe | 9211 | enablestring= |
e6cc62c6 VS |
9212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9213 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9214 | no_cache=0 |
9215 | # Check whether --enable-metafile or --disable-metafile was given. | |
9216 | if test "${enable_metafile+set}" = set; then | |
9217 | enableval="$enable_metafile" | |
e6cc62c6 | 9218 | |
1e6feb95 VZ |
9219 | if test "$enableval" = yes; then |
9220 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9221 | else | |
9222 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9223 | fi | |
e6cc62c6 | 9224 | |
1e6feb95 | 9225 | else |
e6cc62c6 | 9226 | |
1e6feb95 VZ |
9227 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9228 | if test "x$LINE" != x ; then | |
9229 | eval "DEFAULT_$LINE" | |
9230 | else | |
9231 | no_cache=1 | |
9232 | fi | |
9233 | ||
9234 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9235 | |
e6cc62c6 | 9236 | fi; |
1e6feb95 VZ |
9237 | |
9238 | eval "$ac_cv_use_metafile" | |
9239 | if test "$no_cache" != 1; then | |
9240 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9241 | fi | |
9242 | ||
9243 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9244 | echo "$as_me:$LINENO: result: yes" >&5 |
9245 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9246 | else |
e6cc62c6 VS |
9247 | echo "$as_me:$LINENO: result: no" >&5 |
9248 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9249 | fi |
e6cc62c6 | 9250 | |
1e6feb95 | 9251 | |
5005acfe | 9252 | enablestring= |
e6cc62c6 VS |
9253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9254 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9255 | no_cache=0 |
9256 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9257 | if test "${enable_dragimage+set}" = set; then | |
9258 | enableval="$enable_dragimage" | |
e6cc62c6 | 9259 | |
24fd6d87 VZ |
9260 | if test "$enableval" = yes; then |
9261 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9262 | else | |
9263 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9264 | fi | |
e6cc62c6 | 9265 | |
24fd6d87 | 9266 | else |
e6cc62c6 | 9267 | |
24fd6d87 VZ |
9268 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9269 | if test "x$LINE" != x ; then | |
9270 | eval "DEFAULT_$LINE" | |
9271 | else | |
9272 | no_cache=1 | |
9273 | fi | |
9274 | ||
9275 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9276 | |
e6cc62c6 | 9277 | fi; |
24fd6d87 VZ |
9278 | |
9279 | eval "$ac_cv_use_dragimage" | |
9280 | if test "$no_cache" != 1; then | |
9281 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9282 | fi | |
9283 | ||
9284 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9285 | echo "$as_me:$LINENO: result: yes" >&5 |
9286 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9287 | else |
e6cc62c6 VS |
9288 | echo "$as_me:$LINENO: result: no" >&5 |
9289 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9290 | fi |
e6cc62c6 | 9291 | |
52127426 | 9292 | |
7bb2947d | 9293 | enablestring= |
e6cc62c6 VS |
9294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9295 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9296 | no_cache=0 |
9297 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9298 | if test "${enable_accessibility+set}" = set; then | |
9299 | enableval="$enable_accessibility" | |
e6cc62c6 | 9300 | |
7bb2947d MB |
9301 | if test "$enableval" = yes; then |
9302 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9303 | else | |
9304 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9305 | fi | |
e6cc62c6 | 9306 | |
7bb2947d | 9307 | else |
e6cc62c6 | 9308 | |
7bb2947d MB |
9309 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9310 | if test "x$LINE" != x ; then | |
9311 | eval "DEFAULT_$LINE" | |
9312 | else | |
9313 | no_cache=1 | |
9314 | fi | |
9315 | ||
9316 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9317 | |
e6cc62c6 | 9318 | fi; |
7bb2947d MB |
9319 | |
9320 | eval "$ac_cv_use_accessibility" | |
9321 | if test "$no_cache" != 1; then | |
9322 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9323 | fi | |
9324 | ||
9325 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9326 | echo "$as_me:$LINENO: result: yes" >&5 |
9327 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9328 | else |
e6cc62c6 VS |
9329 | echo "$as_me:$LINENO: result: no" >&5 |
9330 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9331 | fi |
e6cc62c6 | 9332 | |
7bb2947d | 9333 | |
8284b0c5 MB |
9334 | |
9335 | ||
5005acfe | 9336 | enablestring= |
e6cc62c6 VS |
9337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9338 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9339 | no_cache=0 |
9340 | # Check whether --enable-palette or --disable-palette was given. | |
9341 | if test "${enable_palette+set}" = set; then | |
9342 | enableval="$enable_palette" | |
e6cc62c6 | 9343 | |
edae8572 VZ |
9344 | if test "$enableval" = yes; then |
9345 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9346 | else | |
9347 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9348 | fi | |
e6cc62c6 | 9349 | |
edae8572 | 9350 | else |
e6cc62c6 | 9351 | |
edae8572 VZ |
9352 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9353 | if test "x$LINE" != x ; then | |
9354 | eval "DEFAULT_$LINE" | |
9355 | else | |
9356 | no_cache=1 | |
9357 | fi | |
9358 | ||
9359 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9360 | |
e6cc62c6 | 9361 | fi; |
edae8572 VZ |
9362 | |
9363 | eval "$ac_cv_use_palette" | |
9364 | if test "$no_cache" != 1; then | |
9365 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9366 | fi | |
9367 | ||
9368 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9369 | echo "$as_me:$LINENO: result: yes" >&5 |
9370 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9371 | else |
e6cc62c6 VS |
9372 | echo "$as_me:$LINENO: result: no" >&5 |
9373 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9374 | fi |
e6cc62c6 | 9375 | |
edae8572 | 9376 | |
5005acfe | 9377 | enablestring= |
e6cc62c6 VS |
9378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9379 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9380 | no_cache=0 |
9381 | # Check whether --enable-image or --disable-image was given. | |
9382 | if test "${enable_image+set}" = set; then | |
9383 | enableval="$enable_image" | |
e6cc62c6 | 9384 | |
0046ff7c VS |
9385 | if test "$enableval" = yes; then |
9386 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9387 | else | |
9388 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9389 | fi | |
e6cc62c6 | 9390 | |
0046ff7c | 9391 | else |
e6cc62c6 | 9392 | |
0046ff7c VS |
9393 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9394 | if test "x$LINE" != x ; then | |
9395 | eval "DEFAULT_$LINE" | |
9396 | else | |
9397 | no_cache=1 | |
9398 | fi | |
9399 | ||
9400 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9401 | |
e6cc62c6 | 9402 | fi; |
0046ff7c VS |
9403 | |
9404 | eval "$ac_cv_use_image" | |
9405 | if test "$no_cache" != 1; then | |
9406 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9407 | fi | |
9408 | ||
9409 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9410 | echo "$as_me:$LINENO: result: yes" >&5 |
9411 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9412 | else |
e6cc62c6 VS |
9413 | echo "$as_me:$LINENO: result: no" >&5 |
9414 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9415 | fi |
e6cc62c6 | 9416 | |
0046ff7c | 9417 | |
5005acfe | 9418 | enablestring= |
e6cc62c6 VS |
9419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9420 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9421 | no_cache=0 |
9422 | # Check whether --enable-gif or --disable-gif was given. | |
9423 | if test "${enable_gif+set}" = set; then | |
9424 | enableval="$enable_gif" | |
e6cc62c6 | 9425 | |
10f2d63a VZ |
9426 | if test "$enableval" = yes; then |
9427 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9428 | else | |
9429 | ac_cv_use_gif='wxUSE_GIF=no' | |
9430 | fi | |
e6cc62c6 | 9431 | |
10f2d63a | 9432 | else |
e6cc62c6 | 9433 | |
10f2d63a VZ |
9434 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9435 | if test "x$LINE" != x ; then | |
9436 | eval "DEFAULT_$LINE" | |
9437 | else | |
9438 | no_cache=1 | |
9439 | fi | |
9440 | ||
9441 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9442 | |
e6cc62c6 | 9443 | fi; |
10f2d63a VZ |
9444 | |
9445 | eval "$ac_cv_use_gif" | |
9446 | if test "$no_cache" != 1; then | |
9447 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9448 | fi | |
9449 | ||
9450 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9451 | echo "$as_me:$LINENO: result: yes" >&5 |
9452 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9453 | else |
e6cc62c6 VS |
9454 | echo "$as_me:$LINENO: result: no" >&5 |
9455 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9456 | fi |
e6cc62c6 | 9457 | |
10f2d63a | 9458 | |
5005acfe | 9459 | enablestring= |
e6cc62c6 VS |
9460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9461 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9462 | no_cache=0 |
9463 | # Check whether --enable-pcx or --disable-pcx was given. | |
9464 | if test "${enable_pcx+set}" = set; then | |
9465 | enableval="$enable_pcx" | |
e6cc62c6 | 9466 | |
10f2d63a VZ |
9467 | if test "$enableval" = yes; then |
9468 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9469 | else | |
9470 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9471 | fi | |
e6cc62c6 | 9472 | |
10f2d63a | 9473 | else |
e6cc62c6 | 9474 | |
10f2d63a VZ |
9475 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9476 | if test "x$LINE" != x ; then | |
9477 | eval "DEFAULT_$LINE" | |
9478 | else | |
9479 | no_cache=1 | |
9480 | fi | |
9481 | ||
9482 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9483 | |
e6cc62c6 | 9484 | fi; |
10f2d63a VZ |
9485 | |
9486 | eval "$ac_cv_use_pcx" | |
9487 | if test "$no_cache" != 1; then | |
9488 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9489 | fi | |
9490 | ||
9491 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9492 | echo "$as_me:$LINENO: result: yes" >&5 |
9493 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9494 | else |
e6cc62c6 VS |
9495 | echo "$as_me:$LINENO: result: no" >&5 |
9496 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9497 | fi |
e6cc62c6 | 9498 | |
10f2d63a | 9499 | |
5005acfe | 9500 | enablestring= |
e6cc62c6 VS |
9501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9502 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9503 | no_cache=0 |
9504 | # Check whether --enable-iff or --disable-iff was given. | |
9505 | if test "${enable_iff+set}" = set; then | |
9506 | enableval="$enable_iff" | |
e6cc62c6 | 9507 | |
4b6b4dfc RR |
9508 | if test "$enableval" = yes; then |
9509 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9510 | else | |
9511 | ac_cv_use_iff='wxUSE_IFF=no' | |
9512 | fi | |
e6cc62c6 | 9513 | |
4b6b4dfc | 9514 | else |
e6cc62c6 | 9515 | |
4b6b4dfc RR |
9516 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9517 | if test "x$LINE" != x ; then | |
9518 | eval "DEFAULT_$LINE" | |
9519 | else | |
9520 | no_cache=1 | |
9521 | fi | |
9522 | ||
9523 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9524 | |
e6cc62c6 | 9525 | fi; |
4b6b4dfc RR |
9526 | |
9527 | eval "$ac_cv_use_iff" | |
9528 | if test "$no_cache" != 1; then | |
9529 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9530 | fi | |
9531 | ||
9532 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9533 | echo "$as_me:$LINENO: result: yes" >&5 |
9534 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9535 | else |
e6cc62c6 VS |
9536 | echo "$as_me:$LINENO: result: no" >&5 |
9537 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9538 | fi |
e6cc62c6 | 9539 | |
4b6b4dfc | 9540 | |
5005acfe | 9541 | enablestring= |
e6cc62c6 VS |
9542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9543 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9544 | no_cache=0 |
9545 | # Check whether --enable-pnm or --disable-pnm was given. | |
9546 | if test "${enable_pnm+set}" = set; then | |
9547 | enableval="$enable_pnm" | |
e6cc62c6 | 9548 | |
10f2d63a VZ |
9549 | if test "$enableval" = yes; then |
9550 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9551 | else | |
9552 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9553 | fi | |
e6cc62c6 | 9554 | |
10f2d63a | 9555 | else |
e6cc62c6 | 9556 | |
10f2d63a VZ |
9557 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9558 | if test "x$LINE" != x ; then | |
9559 | eval "DEFAULT_$LINE" | |
9560 | else | |
9561 | no_cache=1 | |
9562 | fi | |
9563 | ||
9564 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9565 | |
e6cc62c6 | 9566 | fi; |
10f2d63a VZ |
9567 | |
9568 | eval "$ac_cv_use_pnm" | |
9569 | if test "$no_cache" != 1; then | |
9570 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9571 | fi | |
9572 | ||
9573 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9574 | echo "$as_me:$LINENO: result: yes" >&5 |
9575 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9576 | else |
e6cc62c6 VS |
9577 | echo "$as_me:$LINENO: result: no" >&5 |
9578 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9579 | fi |
e6cc62c6 | 9580 | |
10f2d63a | 9581 | |
5005acfe | 9582 | enablestring= |
e6cc62c6 VS |
9583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9584 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9585 | no_cache=0 |
69d27ff7 MB |
9586 | # Check whether --enable-xpm or --disable-xpm was given. |
9587 | if test "${enable_xpm+set}" = set; then | |
9588 | enableval="$enable_xpm" | |
e6cc62c6 | 9589 | |
0046ff7c | 9590 | if test "$enableval" = yes; then |
69d27ff7 | 9591 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9592 | else |
69d27ff7 | 9593 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9594 | fi |
e6cc62c6 | 9595 | |
0046ff7c | 9596 | else |
e6cc62c6 | 9597 | |
0046ff7c VS |
9598 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9599 | if test "x$LINE" != x ; then | |
9600 | eval "DEFAULT_$LINE" | |
9601 | else | |
9602 | no_cache=1 | |
9603 | fi | |
9604 | ||
69d27ff7 | 9605 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9606 | |
e6cc62c6 | 9607 | fi; |
0046ff7c | 9608 | |
69d27ff7 | 9609 | eval "$ac_cv_use_xpm" |
0046ff7c | 9610 | if test "$no_cache" != 1; then |
69d27ff7 | 9611 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9612 | fi |
9613 | ||
9614 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9615 | echo "$as_me:$LINENO: result: yes" >&5 |
9616 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9617 | else |
e6cc62c6 VS |
9618 | echo "$as_me:$LINENO: result: no" >&5 |
9619 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9620 | fi |
e6cc62c6 | 9621 | |
0046ff7c | 9622 | |
5005acfe | 9623 | enablestring= |
e6cc62c6 VS |
9624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9625 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9626 | no_cache=0 |
c7206e64 VS |
9627 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9628 | if test "${enable_ico_cur+set}" = set; then | |
9629 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9630 | |
658974ae | 9631 | if test "$enableval" = yes; then |
c7206e64 | 9632 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9633 | else |
c7206e64 | 9634 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9635 | fi |
e6cc62c6 | 9636 | |
658974ae | 9637 | else |
e6cc62c6 | 9638 | |
658974ae VS |
9639 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9640 | if test "x$LINE" != x ; then | |
9641 | eval "DEFAULT_$LINE" | |
9642 | else | |
9643 | no_cache=1 | |
9644 | fi | |
9645 | ||
c7206e64 | 9646 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9647 | |
e6cc62c6 | 9648 | fi; |
658974ae | 9649 | |
c7206e64 | 9650 | eval "$ac_cv_use_ico_cur" |
658974ae | 9651 | if test "$no_cache" != 1; then |
c7206e64 | 9652 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9653 | fi |
9654 | ||
9655 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9656 | echo "$as_me:$LINENO: result: yes" >&5 |
9657 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9658 | else |
e6cc62c6 VS |
9659 | echo "$as_me:$LINENO: result: no" >&5 |
9660 | echo "${ECHO_T}no" >&6 | |
658974ae | 9661 | fi |
e6cc62c6 | 9662 | |
658974ae | 9663 | |
b12915c1 VZ |
9664 | fi |
9665 | ||
029b47ad VS |
9666 | |
9667 | ||
9668 | enablestring= | |
9669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9670 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9671 | no_cache=0 | |
9672 | # Check whether --enable-official_build or --disable-official_build was given. | |
9673 | if test "${enable_official_build+set}" = set; then | |
9674 | enableval="$enable_official_build" | |
9675 | ||
9676 | if test "$enableval" = yes; then | |
9677 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9678 | else | |
9679 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9680 | fi | |
9681 | ||
9682 | else | |
9683 | ||
9684 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9685 | if test "x$LINE" != x ; then | |
9686 | eval "DEFAULT_$LINE" | |
9687 | else | |
9688 | no_cache=1 | |
9689 | fi | |
9690 | ||
9691 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9692 | ||
9693 | fi; | |
9694 | ||
9695 | eval "$ac_cv_use_official_build" | |
9696 | if test "$no_cache" != 1; then | |
9697 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9698 | fi | |
9699 | ||
9700 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9701 | echo "$as_me:$LINENO: result: yes" >&5 | |
9702 | echo "${ECHO_T}yes" >&6 | |
9703 | else | |
9704 | echo "$as_me:$LINENO: result: no" >&5 | |
9705 | echo "${ECHO_T}no" >&6 | |
9706 | fi | |
9707 | ||
9708 | # Check whether --enable-vendor or --disable-vendor was given. | |
9709 | if test "${enable_vendor+set}" = set; then | |
9710 | enableval="$enable_vendor" | |
9711 | VENDOR="$enableval" | |
9712 | fi; | |
9713 | if test "x$VENDOR" = "x"; then | |
9714 | VENDOR="custom" | |
9715 | fi | |
9716 | ||
d558c907 VS |
9717 | case "${host}" in |
9718 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9719 | PATH_IFS=';' |
d558c907 VS |
9720 | ;; |
9721 | *) | |
9722 | PATH_IFS=':' | |
d558c907 VS |
9723 | ;; |
9724 | esac | |
9725 | ||
8284b0c5 MB |
9726 | |
9727 | ||
10f2d63a VZ |
9728 | echo "saving argument cache $wx_arg_cache_file" |
9729 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9730 | |
8284b0c5 | 9731 | |
e6cc62c6 VS |
9732 | |
9733 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9734 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9735 | |
9736 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9737 | if test "$wxUSE_WINE" = "yes"; then | |
9738 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9739 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9740 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9741 | wxUSE_SHARED=no |
89e6bf6d | 9742 | fi |
10f2d63a VZ |
9743 | |
9744 | if test "$wxUSE_GUI" = "yes"; then | |
9745 | ||
3a922bb4 | 9746 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9747 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9748 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9749 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9750 | fi |
b12915c1 | 9751 | |
3a922bb4 RL |
9752 | if test "$TOOLKIT_GIVEN" = 1; then |
9753 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9754 | var=wxUSE_$toolkit | |
9755 | eval "value=\$${var}" | |
9756 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9757 | done | |
10f2d63a | 9758 | else |
3a922bb4 RL |
9759 | for toolkit in `echo $ALL_TOOLKITS`; do |
9760 | if test "$has_toolkit_in_cache" != 1; then | |
9761 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9762 | else | |
9763 | var=DEFAULT_wxUSE_$toolkit | |
9764 | fi | |
9765 | eval "wxUSE_$toolkit=\$${var}" | |
9766 | done | |
10f2d63a | 9767 | fi |
10f2d63a | 9768 | |
ac0c4cc3 DE |
9769 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9770 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9771 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9772 | |
d558c907 | 9773 | case "${host}" in |
6fa882bd | 9774 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9775 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9776 | esac |
10f2d63a | 9777 | |
3a922bb4 RL |
9778 | case "$NUM_TOOLKITS" in |
9779 | 1) | |
9780 | ;; | |
9781 | 0) | |
e6cc62c6 VS |
9782 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9783 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9784 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9785 | ;; |
9786 | *) | |
e6cc62c6 VS |
9787 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9788 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9789 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9790 | esac |
10f2d63a | 9791 | |
3a922bb4 RL |
9792 | for toolkit in `echo $ALL_TOOLKITS`; do |
9793 | var=wxUSE_$toolkit | |
9794 | eval "value=\$${var}" | |
9795 | if test "x$value" != x; then | |
9796 | cache_var=CACHE_$toolkit | |
9797 | eval "cache=\$${cache_var}" | |
9798 | if test "$cache" = 1; then | |
9799 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9800 | fi | |
9801 | if test "$value" = 1; then | |
89fe663f | 9802 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9803 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9804 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9805 | fi |
9806 | fi | |
9807 | done | |
10f2d63a | 9808 | else |
9de9b8f0 VZ |
9809 | if test "x$host_alias" != "x"; then |
9810 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9811 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9812 | else |
9813 | echo "$as_me:$LINENO: result: base only" >&5 | |
9814 | echo "${ECHO_T}base only" >&6 | |
9815 | fi | |
10f2d63a VZ |
9816 | fi |
9817 | ||
43d99b6d VS |
9818 | wants_win32=0 |
9819 | doesnt_want_win32=0 | |
17234b26 MB |
9820 | case "${host}" in |
9821 | *-*-cygwin*) | |
9822 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9823 | wants_win32=1 |
9824 | else | |
9825 | doesnt_want_win32=1 | |
17234b26 MB |
9826 | fi |
9827 | ;; | |
9828 | *-*-mingw*) | |
43d99b6d | 9829 | wants_win32=1 |
17234b26 MB |
9830 | ;; |
9831 | esac | |
9832 | ||
89e6bf6d VZ |
9833 | if test "$wxUSE_WINE" = "yes"; then |
9834 | wants_win32=1 | |
9835 | CC=winegcc | |
9836 | CXX=wineg++ | |
9837 | RESCOMP=wrc | |
30f2fa6c | 9838 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9839 | fi |
9840 | ||
43d99b6d | 9841 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9842 | USE_UNIX=0 |
9843 | USE_WIN32=1 | |
e6cc62c6 | 9844 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9845 | #define __WIN32__ 1 |
e6cc62c6 | 9846 | _ACEOF |
17234b26 | 9847 | |
e6cc62c6 | 9848 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9849 | #define __WIN95__ 1 |
e6cc62c6 | 9850 | _ACEOF |
17234b26 | 9851 | |
e6cc62c6 | 9852 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9853 | #define __WINDOWS__ 1 |
e6cc62c6 | 9854 | _ACEOF |
17234b26 | 9855 | |
e6cc62c6 | 9856 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9857 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9858 | _ACEOF |
17234b26 | 9859 | |
e6cc62c6 | 9860 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9861 | #define STRICT 1 |
e6cc62c6 | 9862 | _ACEOF |
17234b26 | 9863 | |
e6cc62c6 | 9864 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9865 | #define WINVER 0x0400 |
e6cc62c6 | 9866 | _ACEOF |
17234b26 | 9867 | |
43d99b6d VS |
9868 | fi |
9869 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9870 | USE_UNIX=1 |
9871 | USE_WIN32=0 | |
9872 | fi | |
9873 | ||
9874 | if test "$USE_UNIX" = 1 ; then | |
9875 | wxUSE_UNIX=yes | |
e6cc62c6 | 9876 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9877 | #define __UNIX__ 1 |
e6cc62c6 | 9878 | _ACEOF |
17234b26 MB |
9879 | |
9880 | fi | |
9881 | ||
8284b0c5 | 9882 | |
e6cc62c6 | 9883 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9884 | # This file is a shell script that caches the results of configure |
9885 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9886 | # scripts and configure runs, see configure's option --config-cache. |
9887 | # It is not useful on other systems. If it contains results you don't | |
9888 | # want to keep, you may remove or edit it. | |
10f2d63a | 9889 | # |
e6cc62c6 VS |
9890 | # config.status only pays attention to the cache file if you give it |
9891 | # the --recheck option to rerun configure. | |
10f2d63a | 9892 | # |
e6cc62c6 VS |
9893 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9894 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9895 | # following values. | |
9896 | ||
9897 | _ACEOF | |
9898 | ||
10f2d63a VZ |
9899 | # The following way of writing the cache mishandles newlines in values, |
9900 | # but we know of no workaround that is simple, portable, and efficient. | |
9901 | # So, don't put newlines in cache variables' values. | |
9902 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9903 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9904 | { |
9905 | (set) 2>&1 | | |
9906 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9907 | *ac_space=\ *) | |
9908 | # `set' does not quote correctly, so add quotes (double-quote | |
9909 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9910 | sed -n \ | |
f95e4495 VS |
9911 | "s/'/'\\\\''/g; |
9912 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
9913 | ;; |
9914 | *) | |
9915 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9916 | sed -n \ | |
f95e4495 | 9917 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
9918 | ;; |
9919 | esac; | |
9920 | } | | |
9921 | sed ' | |
9922 | t clear | |
9923 | : clear | |
9924 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9925 | t end | |
9926 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9927 | : end' >>confcache | |
9928 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9929 | if test -w $cache_file; then |
e6cc62c6 VS |
9930 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9931 | cat confcache >$cache_file | |
10f2d63a VZ |
9932 | else |
9933 | echo "not updating unwritable cache $cache_file" | |
9934 | fi | |
9935 | fi | |
9936 | rm -f confcache | |
9937 | ||
e59890c3 | 9938 | if test "$build" != "$host" ; then |
9d353d4a | 9939 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9940 | CC=$host_alias-gcc |
9941 | CXX=$host_alias-c++ | |
9942 | AR=$host_alias-ar | |
9943 | RANLIB=$host_alias-ranlib | |
9944 | DLLTOOL=$host_alias-dlltool | |
9945 | RESCOMP=$host_alias-windres | |
9946 | LD=$host_alias-ld | |
9947 | NM=$host_alias-nm | |
9948 | STRIP=$host_alias-strip | |
9949 | else | |
e6cc62c6 VS |
9950 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9951 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9952 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9953 | fi |
10f2d63a VZ |
9954 | fi |
9955 | ||
ec603395 | 9956 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9957 | ac_ext=c |
9958 | ac_cpp='$CPP $CPPFLAGS' | |
9959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9962 | if test -n "$ac_tool_prefix"; then | |
9963 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9964 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9967 | if test "${ac_cv_prog_CC+set}" = set; then | |
9968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9969 | else | |
9970 | if test -n "$CC"; then | |
9971 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9972 | else | |
9973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9974 | for as_dir in $PATH | |
9975 | do | |
9976 | IFS=$as_save_IFS | |
9977 | test -z "$as_dir" && as_dir=. | |
9978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9980 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9982 | break 2 | |
9983 | fi | |
9984 | done | |
9985 | done | |
9986 | ||
9987 | fi | |
9988 | fi | |
9989 | CC=$ac_cv_prog_CC | |
9990 | if test -n "$CC"; then | |
9991 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9992 | echo "${ECHO_T}$CC" >&6 | |
9993 | else | |
9994 | echo "$as_me:$LINENO: result: no" >&5 | |
9995 | echo "${ECHO_T}no" >&6 | |
9996 | fi | |
9997 | ||
9998 | fi | |
9999 | if test -z "$ac_cv_prog_CC"; then | |
10000 | ac_ct_CC=$CC | |
10001 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 10002 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
10003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10005 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10007 | else | |
10008 | if test -n "$ac_ct_CC"; then | |
10009 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10010 | else | |
10011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10012 | for as_dir in $PATH | |
10013 | do | |
10014 | IFS=$as_save_IFS | |
10015 | test -z "$as_dir" && as_dir=. | |
10016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10018 | ac_cv_prog_ac_ct_CC="gcc" | |
10019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10020 | break 2 | |
10021 | fi | |
10022 | done | |
10023 | done | |
10024 | ||
10025 | fi | |
10026 | fi | |
10027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10028 | if test -n "$ac_ct_CC"; then | |
10029 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10030 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10031 | else | |
10032 | echo "$as_me:$LINENO: result: no" >&5 | |
10033 | echo "${ECHO_T}no" >&6 | |
10034 | fi | |
10035 | ||
10036 | CC=$ac_ct_CC | |
10037 | else | |
10038 | CC="$ac_cv_prog_CC" | |
10039 | fi | |
10040 | ||
10041 | if test -z "$CC"; then | |
10042 | if test -n "$ac_tool_prefix"; then | |
10043 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10044 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10047 | if test "${ac_cv_prog_CC+set}" = set; then | |
10048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10049 | else |
10050 | if test -n "$CC"; then | |
10051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10052 | else |
e6cc62c6 VS |
10053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10054 | for as_dir in $PATH | |
10055 | do | |
10056 | IFS=$as_save_IFS | |
10057 | test -z "$as_dir" && as_dir=. | |
10058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10060 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10062 | break 2 | |
10063 | fi | |
10064 | done | |
10065 | done | |
10066 | ||
10f2d63a | 10067 | fi |
6232543b | 10068 | fi |
e6cc62c6 | 10069 | CC=$ac_cv_prog_CC |
6232543b | 10070 | if test -n "$CC"; then |
e6cc62c6 VS |
10071 | echo "$as_me:$LINENO: result: $CC" >&5 |
10072 | echo "${ECHO_T}$CC" >&6 | |
10073 | else | |
10074 | echo "$as_me:$LINENO: result: no" >&5 | |
10075 | echo "${ECHO_T}no" >&6 | |
10076 | fi | |
10077 | ||
10078 | fi | |
10079 | if test -z "$ac_cv_prog_CC"; then | |
10080 | ac_ct_CC=$CC | |
10081 | # Extract the first word of "cc", so it can be a program name with args. | |
10082 | set dummy cc; ac_word=$2 | |
10083 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10085 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10087 | else | |
10088 | if test -n "$ac_ct_CC"; then | |
10089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10090 | else | |
10091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10092 | for as_dir in $PATH | |
10093 | do | |
10094 | IFS=$as_save_IFS | |
10095 | test -z "$as_dir" && as_dir=. | |
10096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10098 | ac_cv_prog_ac_ct_CC="cc" | |
10099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10100 | break 2 | |
10101 | fi | |
10102 | done | |
10103 | done | |
10104 | ||
10105 | fi | |
10106 | fi | |
10107 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10108 | if test -n "$ac_ct_CC"; then | |
10109 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10110 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10111 | else | |
10112 | echo "$as_me:$LINENO: result: no" >&5 | |
10113 | echo "${ECHO_T}no" >&6 | |
10114 | fi | |
10115 | ||
10116 | CC=$ac_ct_CC | |
247f5006 | 10117 | else |
e6cc62c6 | 10118 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10119 | fi |
10120 | ||
e6cc62c6 | 10121 | fi |
5c6fa7d2 RR |
10122 | if test -z "$CC"; then |
10123 | # Extract the first word of "cc", so it can be a program name with args. | |
10124 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10127 | if test "${ac_cv_prog_CC+set}" = set; then | |
10128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10129 | else |
10130 | if test -n "$CC"; then | |
10131 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10132 | else | |
10133 | ac_prog_rejected=no | |
e6cc62c6 VS |
10134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10135 | for as_dir in $PATH | |
10136 | do | |
10137 | IFS=$as_save_IFS | |
10138 | test -z "$as_dir" && as_dir=. | |
10139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10141 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10142 | ac_prog_rejected=yes | |
10143 | continue | |
10144 | fi | |
10145 | ac_cv_prog_CC="cc" | |
10146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10147 | break 2 | |
10148 | fi | |
10149 | done | |
10150 | done | |
10151 | ||
328a083c RR |
10152 | if test $ac_prog_rejected = yes; then |
10153 | # We found a bogon in the path, so make sure we never use it. | |
10154 | set dummy $ac_cv_prog_CC | |
10155 | shift | |
e6cc62c6 | 10156 | if test $# != 0; then |
328a083c | 10157 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10158 | # However, it has the same basename, so the bogon will be chosen |
10159 | # first if we set CC to just the basename; use the full file name. | |
10160 | shift | |
e6cc62c6 | 10161 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10162 | fi |
1e487827 VS |
10163 | fi |
10164 | fi | |
10165 | fi | |
e6cc62c6 | 10166 | CC=$ac_cv_prog_CC |
1e487827 | 10167 | if test -n "$CC"; then |
e6cc62c6 VS |
10168 | echo "$as_me:$LINENO: result: $CC" >&5 |
10169 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10170 | else |
e6cc62c6 VS |
10171 | echo "$as_me:$LINENO: result: no" >&5 |
10172 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10173 | fi |
1e487827 | 10174 | |
e6cc62c6 VS |
10175 | fi |
10176 | if test -z "$CC"; then | |
10177 | if test -n "$ac_tool_prefix"; then | |
10178 | for ac_prog in cl | |
10179 | do | |
10180 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10181 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10184 | if test "${ac_cv_prog_CC+set}" = set; then | |
10185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10186 | else |
10187 | if test -n "$CC"; then | |
10188 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10189 | else | |
e6cc62c6 VS |
10190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10191 | for as_dir in $PATH | |
10192 | do | |
10193 | IFS=$as_save_IFS | |
10194 | test -z "$as_dir" && as_dir=. | |
10195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10197 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10199 | break 2 | |
10200 | fi | |
10201 | done | |
10202 | done | |
10203 | ||
f09359cf VS |
10204 | fi |
10205 | fi | |
e6cc62c6 | 10206 | CC=$ac_cv_prog_CC |
f09359cf | 10207 | if test -n "$CC"; then |
e6cc62c6 VS |
10208 | echo "$as_me:$LINENO: result: $CC" >&5 |
10209 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10210 | else |
e6cc62c6 VS |
10211 | echo "$as_me:$LINENO: result: no" >&5 |
10212 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10213 | fi |
1e487827 | 10214 | |
e6cc62c6 VS |
10215 | test -n "$CC" && break |
10216 | done | |
10217 | fi | |
10218 | if test -z "$CC"; then | |
10219 | ac_ct_CC=$CC | |
10220 | for ac_prog in cl | |
10221 | do | |
10222 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10223 | set dummy $ac_prog; ac_word=$2 | |
10224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10226 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10228 | else | |
10229 | if test -n "$ac_ct_CC"; then | |
10230 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10231 | else | |
10232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10233 | for as_dir in $PATH | |
10234 | do | |
10235 | IFS=$as_save_IFS | |
10236 | test -z "$as_dir" && as_dir=. | |
10237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10239 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10241 | break 2 | |
10242 | fi | |
10243 | done | |
10244 | done | |
f09359cf | 10245 | |
e6cc62c6 VS |
10246 | fi |
10247 | fi | |
10248 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10249 | if test -n "$ac_ct_CC"; then | |
10250 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10251 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10252 | else | |
10253 | echo "$as_me:$LINENO: result: no" >&5 | |
10254 | echo "${ECHO_T}no" >&6 | |
10255 | fi | |
f09359cf | 10256 | |
e6cc62c6 VS |
10257 | test -n "$ac_ct_CC" && break |
10258 | done | |
247f5006 | 10259 | |
e6cc62c6 VS |
10260 | CC=$ac_ct_CC |
10261 | fi | |
10262 | ||
10263 | fi | |
10264 | ||
10265 | ||
10266 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10267 | See \`config.log' for more details." >&5 | |
10268 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10269 | See \`config.log' for more details." >&2;} | |
10270 | { (exit 1); exit 1; }; } | |
10271 | ||
10272 | # Provide some information about the compiler. | |
10273 | echo "$as_me:$LINENO:" \ | |
10274 | "checking for C compiler version" >&5 | |
10275 | ac_compiler=`set X $ac_compile; echo $2` | |
10276 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10277 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10278 | ac_status=$? | |
10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10280 | (exit $ac_status); } | |
10281 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10282 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10283 | ac_status=$? | |
10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10285 | (exit $ac_status); } | |
10286 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10287 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10288 | ac_status=$? | |
10289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10290 | (exit $ac_status); } | |
10291 | ||
10292 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10293 | /* confdefs.h. */ |
10294 | _ACEOF | |
10295 | cat confdefs.h >>conftest.$ac_ext | |
10296 | cat >>conftest.$ac_ext <<_ACEOF | |
10297 | /* end confdefs.h. */ | |
10298 | ||
10299 | int | |
10300 | main () | |
10301 | { | |
247f5006 | 10302 | |
e6cc62c6 VS |
10303 | ; |
10304 | return 0; | |
10305 | } | |
10306 | _ACEOF | |
10307 | ac_clean_files_save=$ac_clean_files | |
10308 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10309 | # Try to create an executable without -o first, disregard a.out. | |
10310 | # It will help us diagnose broken compilers, and finding out an intuition | |
10311 | # of exeext. | |
f95e4495 VS |
10312 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10313 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
e6cc62c6 VS |
10314 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10315 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10316 | (eval $ac_link_default) 2>&5 | |
10317 | ac_status=$? | |
10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10319 | (exit $ac_status); }; then | |
10320 | # Find the output, starting from the most likely. This scheme is | |
10321 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10322 | # resort. | |
10323 | ||
10324 | # Be careful to initialize this variable, since it used to be cached. | |
10325 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10326 | ac_cv_exeext= | |
10327 | # b.out is created by i960 compilers. | |
10328 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10329 | do | |
10330 | test -f "$ac_file" || continue | |
10331 | case $ac_file in | |
10332 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
f95e4495 | 10333 | ;; |
e6cc62c6 | 10334 | conftest.$ac_ext ) |
f95e4495 VS |
10335 | # This is the source file. |
10336 | ;; | |
e6cc62c6 | 10337 | [ab].out ) |
f95e4495 VS |
10338 | # We found the default executable, but exeext='' is most |
10339 | # certainly right. | |
10340 | break;; | |
e6cc62c6 | 10341 | *.* ) |
f95e4495 VS |
10342 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10343 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10344 | # but it would be cool to find out if it's true. Does anybody | |
10345 | # maintain Libtool? --akim. | |
10346 | export ac_cv_exeext | |
10347 | break;; | |
e6cc62c6 | 10348 | * ) |
f95e4495 | 10349 | break;; |
e6cc62c6 VS |
10350 | esac |
10351 | done | |
10352 | else | |
10353 | echo "$as_me: failed program was:" >&5 | |
10354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10355 | ||
10356 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10357 | See \`config.log' for more details." >&5 | |
10358 | echo "$as_me: error: C compiler cannot create executables | |
10359 | See \`config.log' for more details." >&2;} | |
10360 | { (exit 77); exit 77; }; } | |
10361 | fi | |
10362 | ||
10363 | ac_exeext=$ac_cv_exeext | |
10364 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10365 | echo "${ECHO_T}$ac_file" >&6 | |
10366 | ||
10367 | # Check the compiler produces executables we can run. If not, either | |
10368 | # the compiler is broken, or we cross compile. | |
10369 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10370 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10371 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10372 | # If not cross compiling, check that we can run a simple program. | |
10373 | if test "$cross_compiling" != yes; then | |
10374 | if { ac_try='./$ac_file' | |
10375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10376 | (eval $ac_try) 2>&5 | |
10377 | ac_status=$? | |
10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10379 | (exit $ac_status); }; }; then | |
10380 | cross_compiling=no | |
698dcdb6 | 10381 | else |
e6cc62c6 VS |
10382 | if test "$cross_compiling" = maybe; then |
10383 | cross_compiling=yes | |
10384 | else | |
10385 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10386 | If you meant to cross compile, use \`--host'. | |
10387 | See \`config.log' for more details." >&5 | |
10388 | echo "$as_me: error: cannot run C compiled programs. | |
10389 | If you meant to cross compile, use \`--host'. | |
10390 | See \`config.log' for more details." >&2;} | |
10391 | { (exit 1); exit 1; }; } | |
10392 | fi | |
698dcdb6 | 10393 | fi |
52127426 | 10394 | fi |
e6cc62c6 VS |
10395 | echo "$as_me:$LINENO: result: yes" >&5 |
10396 | echo "${ECHO_T}yes" >&6 | |
10397 | ||
10398 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10399 | ac_clean_files=$ac_clean_files_save | |
10400 | # Check the compiler produces executables we can run. If not, either | |
10401 | # the compiler is broken, or we cross compile. | |
10402 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10403 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10404 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10405 | echo "${ECHO_T}$cross_compiling" >&6 | |
10406 | ||
10407 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10408 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10410 | (eval $ac_link) 2>&5 | |
10411 | ac_status=$? | |
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10413 | (exit $ac_status); }; then | |
10414 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10415 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10416 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10417 | # `rm'. | |
10418 | for ac_file in conftest.exe conftest conftest.*; do | |
10419 | test -f "$ac_file" || continue | |
10420 | case $ac_file in | |
10421 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10422 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
f95e4495 VS |
10423 | export ac_cv_exeext |
10424 | break;; | |
e6cc62c6 VS |
10425 | * ) break;; |
10426 | esac | |
10427 | done | |
5c6fa7d2 | 10428 | else |
e6cc62c6 VS |
10429 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10430 | See \`config.log' for more details." >&5 | |
10431 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10432 | See \`config.log' for more details." >&2;} | |
10433 | { (exit 1); exit 1; }; } | |
10434 | fi | |
10435 | ||
10436 | rm -f conftest$ac_cv_exeext | |
10437 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10438 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10439 | ||
10440 | rm -f conftest.$ac_ext | |
10441 | EXEEXT=$ac_cv_exeext | |
10442 | ac_exeext=$EXEEXT | |
10443 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10444 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10445 | if test "${ac_cv_objext+set}" = set; then | |
10446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10447 | else | |
10448 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10449 | /* confdefs.h. */ |
10450 | _ACEOF | |
10451 | cat confdefs.h >>conftest.$ac_ext | |
10452 | cat >>conftest.$ac_ext <<_ACEOF | |
10453 | /* end confdefs.h. */ | |
10454 | ||
10455 | int | |
10456 | main () | |
10457 | { | |
f09359cf | 10458 | |
e6cc62c6 VS |
10459 | ; |
10460 | return 0; | |
10461 | } | |
10462 | _ACEOF | |
10463 | rm -f conftest.o conftest.obj | |
10464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10465 | (eval $ac_compile) 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; then | |
10469 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10470 | case $ac_file in | |
10471 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10472 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10473 | break;; | |
10474 | esac | |
10475 | done | |
a0b9e27f | 10476 | else |
e6cc62c6 VS |
10477 | echo "$as_me: failed program was:" >&5 |
10478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10479 | ||
10480 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10481 | See \`config.log' for more details." >&5 | |
10482 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10483 | See \`config.log' for more details." >&2;} | |
10484 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10485 | fi |
247f5006 | 10486 | |
e6cc62c6 VS |
10487 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10488 | fi | |
10489 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10490 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10491 | OBJEXT=$ac_cv_objext | |
10492 | ac_objext=$OBJEXT | |
10493 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10494 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10495 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10497 | else |
e6cc62c6 | 10498 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10499 | /* confdefs.h. */ |
10500 | _ACEOF | |
10501 | cat confdefs.h >>conftest.$ac_ext | |
10502 | cat >>conftest.$ac_ext <<_ACEOF | |
10503 | /* end confdefs.h. */ | |
10504 | ||
10505 | int | |
10506 | main () | |
10507 | { | |
10508 | #ifndef __GNUC__ | |
10509 | choke me | |
10510 | #endif | |
10511 | ||
10512 | ; | |
10513 | return 0; | |
10514 | } | |
10515 | _ACEOF | |
10516 | rm -f conftest.$ac_objext | |
10517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10518 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10519 | ac_status=$? |
f95e4495 VS |
10520 | grep -v '^ *+' conftest.er1 >conftest.err |
10521 | rm -f conftest.er1 | |
10522 | cat conftest.err >&5 | |
e6cc62c6 VS |
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10524 | (exit $ac_status); } && | |
f95e4495 VS |
10525 | { ac_try='test -z "$ac_c_werror_flag" |
10526 | || test ! -s conftest.err' | |
10527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10528 | (eval $ac_try) 2>&5 | |
10529 | ac_status=$? | |
10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10531 | (exit $ac_status); }; } && | |
10532 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10534 | (eval $ac_try) 2>&5 | |
10535 | ac_status=$? | |
10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10537 | (exit $ac_status); }; }; then | |
10538 | ac_compiler_gnu=yes | |
10539 | else | |
10540 | echo "$as_me: failed program was:" >&5 | |
10541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10542 | ||
10543 | ac_compiler_gnu=no | |
10544 | fi | |
f95e4495 | 10545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10546 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10547 | ||
10548 | fi | |
10549 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10550 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10551 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10552 | ac_test_CFLAGS=${CFLAGS+set} | |
10553 | ac_save_CFLAGS=$CFLAGS | |
10554 | CFLAGS="-g" | |
10555 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10556 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10557 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10559 | else | |
10560 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10561 | /* confdefs.h. */ |
10562 | _ACEOF | |
10563 | cat confdefs.h >>conftest.$ac_ext | |
10564 | cat >>conftest.$ac_ext <<_ACEOF | |
10565 | /* end confdefs.h. */ | |
10566 | ||
10567 | int | |
10568 | main () | |
10569 | { | |
10570 | ||
10571 | ; | |
10572 | return 0; | |
10573 | } | |
10574 | _ACEOF | |
10575 | rm -f conftest.$ac_objext | |
10576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10577 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10578 | ac_status=$? |
f95e4495 VS |
10579 | grep -v '^ *+' conftest.er1 >conftest.err |
10580 | rm -f conftest.er1 | |
10581 | cat conftest.err >&5 | |
e6cc62c6 VS |
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10583 | (exit $ac_status); } && | |
f95e4495 VS |
10584 | { ac_try='test -z "$ac_c_werror_flag" |
10585 | || test ! -s conftest.err' | |
10586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10587 | (eval $ac_try) 2>&5 | |
10588 | ac_status=$? | |
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10590 | (exit $ac_status); }; } && | |
10591 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10593 | (eval $ac_try) 2>&5 | |
10594 | ac_status=$? | |
10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10596 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10597 | ac_cv_prog_cc_g=yes |
10598 | else | |
e6cc62c6 VS |
10599 | echo "$as_me: failed program was:" >&5 |
10600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10601 | |
e6cc62c6 | 10602 | ac_cv_prog_cc_g=no |
10f2d63a | 10603 | fi |
f95e4495 | 10604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10605 | fi |
10606 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10607 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10608 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10609 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10610 | elif test $ac_cv_prog_cc_g = yes; then |
10611 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10612 | CFLAGS="-g -O2" |
10613 | else | |
f09359cf | 10614 | CFLAGS="-g" |
10f2d63a | 10615 | fi |
5c0a20c3 | 10616 | else |
f09359cf VS |
10617 | if test "$GCC" = yes; then |
10618 | CFLAGS="-O2" | |
10619 | else | |
10620 | CFLAGS= | |
10621 | fi | |
10f2d63a | 10622 | fi |
e6cc62c6 VS |
10623 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10624 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10625 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10627 | else | |
10628 | ac_cv_prog_cc_stdc=no | |
10629 | ac_save_CC=$CC | |
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 | #include <stdarg.h> | |
10637 | #include <stdio.h> | |
10638 | #include <sys/types.h> | |
10639 | #include <sys/stat.h> | |
10640 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10641 | struct buf { int x; }; | |
10642 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10643 | static char *e (p, i) | |
10644 | char **p; | |
10645 | int i; | |
10646 | { | |
10647 | return p[i]; | |
10648 | } | |
10649 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10650 | { | |
10651 | char *s; | |
10652 | va_list v; | |
10653 | va_start (v,p); | |
10654 | s = g (p, va_arg (v,int)); | |
10655 | va_end (v); | |
10656 | return s; | |
10657 | } | |
f95e4495 VS |
10658 | |
10659 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10660 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10661 | These don't provoke an error unfortunately, instead are silently treated | |
10662 | as 'x'. The following induces an error, until -std1 is added to get | |
10663 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10664 | array size at least. It's necessary to write '\x00'==0 to get something | |
10665 | that's true only with -std1. */ | |
10666 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10667 | ||
e6cc62c6 VS |
10668 | int test (int i, double x); |
10669 | struct s1 {int (*f) (int a);}; | |
10670 | struct s2 {int (*f) (double a);}; | |
10671 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10672 | int argc; | |
10673 | char **argv; | |
10674 | int | |
10675 | main () | |
10676 | { | |
10677 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10678 | ; | |
10679 | return 0; | |
10680 | } | |
10681 | _ACEOF | |
10682 | # Don't try gcc -ansi; that turns off useful extensions and | |
10683 | # breaks some systems' header files. | |
10684 | # AIX -qlanglvl=ansi | |
10685 | # Ultrix and OSF/1 -std1 | |
10686 | # HP-UX 10.20 and later -Ae | |
10687 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10688 | # SVR4 -Xc -D__EXTENSIONS__ | |
10689 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10690 | do | |
10691 | CC="$ac_save_CC $ac_arg" | |
10692 | rm -f conftest.$ac_objext | |
10693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10694 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10695 | ac_status=$? |
f95e4495 VS |
10696 | grep -v '^ *+' conftest.er1 >conftest.err |
10697 | rm -f conftest.er1 | |
10698 | cat conftest.err >&5 | |
e6cc62c6 VS |
10699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10700 | (exit $ac_status); } && | |
f95e4495 VS |
10701 | { ac_try='test -z "$ac_c_werror_flag" |
10702 | || test ! -s conftest.err' | |
10703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10704 | (eval $ac_try) 2>&5 | |
10705 | ac_status=$? | |
10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10707 | (exit $ac_status); }; } && | |
10708 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10710 | (eval $ac_try) 2>&5 | |
10711 | ac_status=$? | |
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10713 | (exit $ac_status); }; }; then | |
10714 | ac_cv_prog_cc_stdc=$ac_arg | |
10715 | break | |
10716 | else | |
10717 | echo "$as_me: failed program was:" >&5 | |
10718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10719 | ||
10720 | fi | |
f95e4495 | 10721 | rm -f conftest.err conftest.$ac_objext |
e6cc62c6 VS |
10722 | done |
10723 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10724 | CC=$ac_save_CC | |
10725 | ||
10726 | fi | |
10727 | ||
10728 | case "x$ac_cv_prog_cc_stdc" in | |
10729 | x|xno) | |
10730 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10731 | echo "${ECHO_T}none needed" >&6 ;; | |
10732 | *) | |
10733 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10734 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10735 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10736 | esac | |
10737 | ||
10738 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10739 | # in C++ we need to declare it. In case someone uses the same compiler | |
10740 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10741 | # the declaration of exit, since it's the most demanding environment. | |
10742 | cat >conftest.$ac_ext <<_ACEOF | |
10743 | #ifndef __cplusplus | |
10744 | choke me | |
10745 | #endif | |
10746 | _ACEOF | |
10747 | rm -f conftest.$ac_objext | |
10748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10749 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10750 | ac_status=$? |
f95e4495 VS |
10751 | grep -v '^ *+' conftest.er1 >conftest.err |
10752 | rm -f conftest.er1 | |
10753 | cat conftest.err >&5 | |
e6cc62c6 VS |
10754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10755 | (exit $ac_status); } && | |
f95e4495 VS |
10756 | { ac_try='test -z "$ac_c_werror_flag" |
10757 | || test ! -s conftest.err' | |
10758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10759 | (eval $ac_try) 2>&5 | |
10760 | ac_status=$? | |
10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10762 | (exit $ac_status); }; } && | |
10763 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10765 | (eval $ac_try) 2>&5 | |
10766 | ac_status=$? | |
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10768 | (exit $ac_status); }; }; then | |
10769 | for ac_declaration in \ | |
f95e4495 | 10770 | '' \ |
e6cc62c6 VS |
10771 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10772 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10773 | 'extern "C" void exit (int) throw ();' \ | |
10774 | 'extern "C" void exit (int);' \ | |
10775 | 'void exit (int);' | |
10776 | do | |
10777 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10778 | /* confdefs.h. */ |
10779 | _ACEOF | |
10780 | cat confdefs.h >>conftest.$ac_ext | |
10781 | cat >>conftest.$ac_ext <<_ACEOF | |
10782 | /* end confdefs.h. */ | |
09d3439c | 10783 | $ac_declaration |
f95e4495 | 10784 | #include <stdlib.h> |
e6cc62c6 VS |
10785 | int |
10786 | main () | |
10787 | { | |
10788 | exit (42); | |
10789 | ; | |
10790 | return 0; | |
10791 | } | |
10792 | _ACEOF | |
10793 | rm -f conftest.$ac_objext | |
10794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10795 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10796 | ac_status=$? |
f95e4495 VS |
10797 | grep -v '^ *+' conftest.er1 >conftest.err |
10798 | rm -f conftest.er1 | |
10799 | cat conftest.err >&5 | |
e6cc62c6 VS |
10800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10801 | (exit $ac_status); } && | |
f95e4495 VS |
10802 | { ac_try='test -z "$ac_c_werror_flag" |
10803 | || test ! -s conftest.err' | |
10804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10805 | (eval $ac_try) 2>&5 | |
10806 | ac_status=$? | |
10807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10808 | (exit $ac_status); }; } && | |
10809 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10811 | (eval $ac_try) 2>&5 | |
10812 | ac_status=$? | |
10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10814 | (exit $ac_status); }; }; then | |
10815 | : | |
10816 | else | |
10817 | echo "$as_me: failed program was:" >&5 | |
10818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10819 | ||
10820 | continue | |
10821 | fi | |
f95e4495 | 10822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10823 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10824 | /* confdefs.h. */ |
10825 | _ACEOF | |
10826 | cat confdefs.h >>conftest.$ac_ext | |
10827 | cat >>conftest.$ac_ext <<_ACEOF | |
10828 | /* end confdefs.h. */ | |
10829 | $ac_declaration | |
10830 | int | |
10831 | main () | |
10832 | { | |
10833 | exit (42); | |
10834 | ; | |
10835 | return 0; | |
10836 | } | |
10837 | _ACEOF | |
10838 | rm -f conftest.$ac_objext | |
10839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 10840 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10841 | ac_status=$? |
f95e4495 VS |
10842 | grep -v '^ *+' conftest.er1 >conftest.err |
10843 | rm -f conftest.er1 | |
10844 | cat conftest.err >&5 | |
e6cc62c6 VS |
10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10846 | (exit $ac_status); } && | |
f95e4495 VS |
10847 | { ac_try='test -z "$ac_c_werror_flag" |
10848 | || test ! -s conftest.err' | |
10849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10850 | (eval $ac_try) 2>&5 | |
10851 | ac_status=$? | |
10852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10853 | (exit $ac_status); }; } && | |
10854 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10856 | (eval $ac_try) 2>&5 | |
10857 | ac_status=$? | |
10858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10859 | (exit $ac_status); }; }; then | |
10860 | break | |
10861 | else | |
10862 | echo "$as_me: failed program was:" >&5 | |
10863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10864 | ||
10865 | fi | |
f95e4495 | 10866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10867 | done |
10868 | rm -f conftest* | |
10869 | if test -n "$ac_declaration"; then | |
10870 | echo '#ifdef __cplusplus' >>confdefs.h | |
10871 | echo $ac_declaration >>confdefs.h | |
10872 | echo '#endif' >>confdefs.h | |
10873 | fi | |
10874 | ||
10875 | else | |
10876 | echo "$as_me: failed program was:" >&5 | |
10877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10878 | ||
10879 | fi | |
f95e4495 | 10880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10881 | ac_ext=c |
10882 | ac_cpp='$CPP $CPPFLAGS' | |
10883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10886 | |
10887 | ||
e6cc62c6 VS |
10888 | |
10889 | ac_ext=c | |
10890 | ac_cpp='$CPP $CPPFLAGS' | |
10891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10894 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10895 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10896 | # On Suns, sometimes $CPP names a directory. |
10897 | if test -n "$CPP" && test -d "$CPP"; then | |
10898 | CPP= | |
10899 | fi | |
10900 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10901 | if test "${ac_cv_prog_CPP+set}" = set; then |
10902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10903 | else | |
10904 | # Double quotes because CPP needs to be expanded | |
10905 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10906 | do | |
10907 | ac_preproc_ok=false | |
10908 | for ac_c_preproc_warn_flag in '' yes | |
10909 | do | |
10910 | # Use a header file that comes with gcc, so configuring glibc | |
10911 | # with a fresh cross-compiler works. | |
10912 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10913 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10914 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10915 | # not just through cpp. "Syntax error" is here to catch this case. |
10916 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10917 | /* confdefs.h. */ |
10918 | _ACEOF | |
10919 | cat confdefs.h >>conftest.$ac_ext | |
10920 | cat >>conftest.$ac_ext <<_ACEOF | |
10921 | /* end confdefs.h. */ | |
10922 | #ifdef __STDC__ | |
10923 | # include <limits.h> | |
10924 | #else | |
10925 | # include <assert.h> | |
10926 | #endif | |
f95e4495 | 10927 | Syntax error |
e6cc62c6 VS |
10928 | _ACEOF |
10929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10931 | ac_status=$? | |
10932 | grep -v '^ *+' conftest.er1 >conftest.err | |
10933 | rm -f conftest.er1 | |
10934 | cat conftest.err >&5 | |
10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10936 | (exit $ac_status); } >/dev/null; then | |
10937 | if test -s conftest.err; then | |
10938 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 10939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
10940 | else |
10941 | ac_cpp_err= | |
10942 | fi | |
10f2d63a | 10943 | else |
e6cc62c6 VS |
10944 | ac_cpp_err=yes |
10945 | fi | |
10946 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10947 | : |
247f5006 | 10948 | else |
e6cc62c6 VS |
10949 | echo "$as_me: failed program was:" >&5 |
10950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10951 | ||
10952 | # Broken: fails on valid input. | |
10953 | continue | |
10954 | fi | |
10955 | rm -f conftest.err conftest.$ac_ext | |
10956 | ||
10957 | # OK, works on sane cases. Now check whether non-existent headers | |
10958 | # can be detected and how. | |
10959 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10960 | /* confdefs.h. */ |
10961 | _ACEOF | |
10962 | cat confdefs.h >>conftest.$ac_ext | |
10963 | cat >>conftest.$ac_ext <<_ACEOF | |
10964 | /* end confdefs.h. */ | |
10965 | #include <ac_nonexistent.h> | |
10966 | _ACEOF | |
10967 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10968 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10969 | ac_status=$? | |
10970 | grep -v '^ *+' conftest.er1 >conftest.err | |
10971 | rm -f conftest.er1 | |
10972 | cat conftest.err >&5 | |
10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10974 | (exit $ac_status); } >/dev/null; then | |
10975 | if test -s conftest.err; then | |
10976 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 10977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
10978 | else |
10979 | ac_cpp_err= | |
10980 | fi | |
10f2d63a | 10981 | else |
e6cc62c6 | 10982 | ac_cpp_err=yes |
579d8138 | 10983 | fi |
e6cc62c6 VS |
10984 | if test -z "$ac_cpp_err"; then |
10985 | # Broken: success on invalid input. | |
10986 | continue | |
10987 | else | |
10988 | echo "$as_me: failed program was:" >&5 | |
10989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10990 | ||
10991 | # Passes both tests. | |
10992 | ac_preproc_ok=: | |
10993 | break | |
52127426 | 10994 | fi |
e6cc62c6 VS |
10995 | rm -f conftest.err conftest.$ac_ext |
10996 | ||
10997 | done | |
10998 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10999 | rm -f conftest.err conftest.$ac_ext | |
11000 | if $ac_preproc_ok; then | |
11001 | break | |
8284b0c5 | 11002 | fi |
e6cc62c6 VS |
11003 | |
11004 | done | |
11005 | ac_cv_prog_CPP=$CPP | |
11006 | ||
11007 | fi | |
11008 | CPP=$ac_cv_prog_CPP | |
11009 | else | |
11010 | ac_cv_prog_CPP=$CPP | |
11011 | fi | |
11012 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11013 | echo "${ECHO_T}$CPP" >&6 | |
11014 | ac_preproc_ok=false | |
11015 | for ac_c_preproc_warn_flag in '' yes | |
11016 | do | |
11017 | # Use a header file that comes with gcc, so configuring glibc | |
11018 | # with a fresh cross-compiler works. | |
11019 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11020 | # <limits.h> exists even on freestanding compilers. | |
11021 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11022 | # not just through cpp. "Syntax error" is here to catch this case. | |
11023 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11024 | /* confdefs.h. */ |
11025 | _ACEOF | |
11026 | cat confdefs.h >>conftest.$ac_ext | |
11027 | cat >>conftest.$ac_ext <<_ACEOF | |
11028 | /* end confdefs.h. */ | |
11029 | #ifdef __STDC__ | |
11030 | # include <limits.h> | |
11031 | #else | |
11032 | # include <assert.h> | |
11033 | #endif | |
f95e4495 | 11034 | Syntax error |
e6cc62c6 VS |
11035 | _ACEOF |
11036 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11037 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11038 | ac_status=$? | |
11039 | grep -v '^ *+' conftest.er1 >conftest.err | |
11040 | rm -f conftest.er1 | |
11041 | cat conftest.err >&5 | |
11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11043 | (exit $ac_status); } >/dev/null; then | |
11044 | if test -s conftest.err; then | |
11045 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 11046 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11047 | else |
11048 | ac_cpp_err= | |
11049 | fi | |
11050 | else | |
11051 | ac_cpp_err=yes | |
11052 | fi | |
11053 | if test -z "$ac_cpp_err"; then | |
11054 | : | |
11055 | else | |
11056 | echo "$as_me: failed program was:" >&5 | |
11057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11058 | ||
11059 | # Broken: fails on valid input. | |
11060 | continue | |
11061 | fi | |
11062 | rm -f conftest.err conftest.$ac_ext | |
11063 | ||
11064 | # OK, works on sane cases. Now check whether non-existent headers | |
11065 | # can be detected and how. | |
11066 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11067 | /* confdefs.h. */ |
11068 | _ACEOF | |
11069 | cat confdefs.h >>conftest.$ac_ext | |
11070 | cat >>conftest.$ac_ext <<_ACEOF | |
11071 | /* end confdefs.h. */ | |
11072 | #include <ac_nonexistent.h> | |
11073 | _ACEOF | |
11074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11076 | ac_status=$? | |
11077 | grep -v '^ *+' conftest.er1 >conftest.err | |
11078 | rm -f conftest.er1 | |
11079 | cat conftest.err >&5 | |
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11081 | (exit $ac_status); } >/dev/null; then | |
11082 | if test -s conftest.err; then | |
11083 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 11084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11085 | else |
11086 | ac_cpp_err= | |
11087 | fi | |
11088 | else | |
11089 | ac_cpp_err=yes | |
11090 | fi | |
11091 | if test -z "$ac_cpp_err"; then | |
11092 | # Broken: success on invalid input. | |
11093 | continue | |
11094 | else | |
11095 | echo "$as_me: failed program was:" >&5 | |
11096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11097 | ||
11098 | # Passes both tests. | |
11099 | ac_preproc_ok=: | |
11100 | break | |
a0b9e27f | 11101 | fi |
e6cc62c6 VS |
11102 | rm -f conftest.err conftest.$ac_ext |
11103 | ||
11104 | done | |
11105 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11106 | rm -f conftest.err conftest.$ac_ext | |
11107 | if $ac_preproc_ok; then | |
11108 | : | |
11109 | else | |
11110 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11111 | See \`config.log' for more details." >&5 | |
11112 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11113 | See \`config.log' for more details." >&2;} | |
11114 | { (exit 1); exit 1; }; } | |
11115 | fi | |
11116 | ||
11117 | ac_ext=c | |
11118 | ac_cpp='$CPP $CPPFLAGS' | |
11119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11122 | ||
11123 | ||
11124 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11125 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11126 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11128 | else |
e6cc62c6 VS |
11129 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11130 | then ac_cv_prog_egrep='grep -E' | |
11131 | else ac_cv_prog_egrep='egrep' | |
11132 | fi | |
10f2d63a | 11133 | fi |
e6cc62c6 VS |
11134 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11135 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11136 | EGREP=$ac_cv_prog_egrep | |
11137 | ||
10f2d63a | 11138 | |
e6cc62c6 VS |
11139 | if test $ac_cv_c_compiler_gnu = yes; then |
11140 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11141 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11142 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11144 | else |
11145 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11146 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11147 | /* confdefs.h. */ |
11148 | _ACEOF | |
11149 | cat confdefs.h >>conftest.$ac_ext | |
11150 | cat >>conftest.$ac_ext <<_ACEOF | |
11151 | /* end confdefs.h. */ | |
10f2d63a VZ |
11152 | #include <sgtty.h> |
11153 | Autoconf TIOCGETP | |
e6cc62c6 | 11154 | _ACEOF |
10f2d63a | 11155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11156 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11157 | ac_cv_prog_gcc_traditional=yes |
11158 | else | |
10f2d63a VZ |
11159 | ac_cv_prog_gcc_traditional=no |
11160 | fi | |
11161 | rm -f conftest* | |
11162 | ||
8284b0c5 | 11163 | |
10f2d63a | 11164 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11165 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11166 | /* confdefs.h. */ |
11167 | _ACEOF | |
11168 | cat confdefs.h >>conftest.$ac_ext | |
11169 | cat >>conftest.$ac_ext <<_ACEOF | |
11170 | /* end confdefs.h. */ | |
10f2d63a VZ |
11171 | #include <termio.h> |
11172 | Autoconf TCGETA | |
e6cc62c6 | 11173 | _ACEOF |
10f2d63a | 11174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11175 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11176 | ac_cv_prog_gcc_traditional=yes |
11177 | fi | |
11178 | rm -f conftest* | |
11179 | ||
11180 | fi | |
11181 | fi | |
e6cc62c6 VS |
11182 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11183 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11184 | if test $ac_cv_prog_gcc_traditional = yes; then |
11185 | CC="$CC -traditional" | |
11186 | fi | |
11187 | fi | |
11188 | ||
8284b0c5 MB |
11189 | |
11190 | ||
e6cc62c6 VS |
11191 | |
11192 | ac_ext=cc | |
1e487827 | 11193 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11197 | |
698dcdb6 | 11198 | |
ec603395 | 11199 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11200 | ac_ext=cc |
11201 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11205 | if test -n "$ac_tool_prefix"; then | |
11206 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11207 | do | |
11208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11212 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11214 | else |
11215 | if test -n "$CXX"; then | |
11216 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11217 | else | |
e6cc62c6 VS |
11218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11219 | for as_dir in $PATH | |
11220 | do | |
11221 | IFS=$as_save_IFS | |
11222 | test -z "$as_dir" && as_dir=. | |
11223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11225 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11227 | break 2 | |
11228 | fi | |
11229 | done | |
11230 | done | |
11231 | ||
10f2d63a VZ |
11232 | fi |
11233 | fi | |
e6cc62c6 | 11234 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11235 | if test -n "$CXX"; then |
e6cc62c6 VS |
11236 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11237 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11238 | else |
e6cc62c6 VS |
11239 | echo "$as_me:$LINENO: result: no" >&5 |
11240 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11241 | fi |
11242 | ||
e6cc62c6 VS |
11243 | test -n "$CXX" && break |
11244 | done | |
11245 | fi | |
11246 | if test -z "$CXX"; then | |
11247 | ac_ct_CXX=$CXX | |
11248 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11249 | do | |
11250 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11251 | set dummy $ac_prog; ac_word=$2 | |
11252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11254 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11256 | else | |
11257 | if test -n "$ac_ct_CXX"; then | |
11258 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11259 | else | |
11260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11261 | for as_dir in $PATH | |
11262 | do | |
11263 | IFS=$as_save_IFS | |
11264 | test -z "$as_dir" && as_dir=. | |
11265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11267 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11269 | break 2 | |
11270 | fi | |
11271 | done | |
10f2d63a | 11272 | done |
a0b9e27f | 11273 | |
8284b0c5 | 11274 | fi |
a0b9e27f | 11275 | fi |
e6cc62c6 VS |
11276 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11277 | if test -n "$ac_ct_CXX"; then | |
11278 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11279 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11280 | else | |
11281 | echo "$as_me:$LINENO: result: no" >&5 | |
11282 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11283 | fi |
10f2d63a | 11284 | |
e6cc62c6 VS |
11285 | test -n "$ac_ct_CXX" && break |
11286 | done | |
11287 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11288 | ||
11289 | CXX=$ac_ct_CXX | |
11290 | fi | |
11291 | ||
11292 | ||
11293 | # Provide some information about the compiler. | |
11294 | echo "$as_me:$LINENO:" \ | |
11295 | "checking for C++ compiler version" >&5 | |
11296 | ac_compiler=`set X $ac_compile; echo $2` | |
11297 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11298 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11299 | ac_status=$? | |
11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11301 | (exit $ac_status); } | |
11302 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11303 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11304 | ac_status=$? | |
11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11306 | (exit $ac_status); } | |
11307 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11308 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11309 | ac_status=$? | |
11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11311 | (exit $ac_status); } | |
11312 | ||
11313 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11314 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11315 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11317 | else | |
11318 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11319 | /* confdefs.h. */ |
11320 | _ACEOF | |
11321 | cat confdefs.h >>conftest.$ac_ext | |
11322 | cat >>conftest.$ac_ext <<_ACEOF | |
11323 | /* end confdefs.h. */ | |
11324 | ||
11325 | int | |
11326 | main () | |
11327 | { | |
11328 | #ifndef __GNUC__ | |
11329 | choke me | |
11330 | #endif | |
10f2d63a | 11331 | |
e6cc62c6 VS |
11332 | ; |
11333 | return 0; | |
11334 | } | |
11335 | _ACEOF | |
11336 | rm -f conftest.$ac_objext | |
11337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 11338 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11339 | ac_status=$? |
f95e4495 VS |
11340 | grep -v '^ *+' conftest.er1 >conftest.err |
11341 | rm -f conftest.er1 | |
11342 | cat conftest.err >&5 | |
e6cc62c6 VS |
11343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11344 | (exit $ac_status); } && | |
f95e4495 VS |
11345 | { ac_try='test -z "$ac_cxx_werror_flag" |
11346 | || test ! -s conftest.err' | |
11347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11348 | (eval $ac_try) 2>&5 | |
11349 | ac_status=$? | |
11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11351 | (exit $ac_status); }; } && | |
11352 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11354 | (eval $ac_try) 2>&5 | |
11355 | ac_status=$? | |
11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11357 | (exit $ac_status); }; }; then | |
11358 | ac_compiler_gnu=yes | |
11359 | else | |
11360 | echo "$as_me: failed program was:" >&5 | |
11361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11362 | ||
11363 | ac_compiler_gnu=no | |
11364 | fi | |
f95e4495 | 11365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11366 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11367 | ||
11368 | fi | |
11369 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11370 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11371 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11372 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11373 | ac_save_CXXFLAGS=$CXXFLAGS | |
11374 | CXXFLAGS="-g" | |
11375 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11376 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11377 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11379 | else | |
11380 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11381 | /* confdefs.h. */ |
11382 | _ACEOF | |
11383 | cat confdefs.h >>conftest.$ac_ext | |
11384 | cat >>conftest.$ac_ext <<_ACEOF | |
11385 | /* end confdefs.h. */ | |
11386 | ||
11387 | int | |
11388 | main () | |
11389 | { | |
f09359cf | 11390 | |
e6cc62c6 VS |
11391 | ; |
11392 | return 0; | |
11393 | } | |
11394 | _ACEOF | |
11395 | rm -f conftest.$ac_objext | |
11396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 11397 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11398 | ac_status=$? |
f95e4495 VS |
11399 | grep -v '^ *+' conftest.er1 >conftest.err |
11400 | rm -f conftest.er1 | |
11401 | cat conftest.err >&5 | |
e6cc62c6 VS |
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11403 | (exit $ac_status); } && | |
f95e4495 VS |
11404 | { ac_try='test -z "$ac_cxx_werror_flag" |
11405 | || test ! -s conftest.err' | |
11406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11407 | (eval $ac_try) 2>&5 | |
11408 | ac_status=$? | |
11409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11410 | (exit $ac_status); }; } && | |
11411 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11413 | (eval $ac_try) 2>&5 | |
11414 | ac_status=$? | |
11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11416 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11417 | ac_cv_prog_cxx_g=yes |
11418 | else | |
e6cc62c6 VS |
11419 | echo "$as_me: failed program was:" >&5 |
11420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11421 | |
e6cc62c6 | 11422 | ac_cv_prog_cxx_g=no |
10f2d63a | 11423 | fi |
f95e4495 | 11424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11425 | fi |
11426 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11427 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11428 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11429 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11430 | elif test $ac_cv_prog_cxx_g = yes; then |
11431 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11432 | CXXFLAGS="-g -O2" |
11433 | else | |
f09359cf | 11434 | CXXFLAGS="-g" |
10f2d63a | 11435 | fi |
5c0a20c3 | 11436 | else |
f09359cf VS |
11437 | if test "$GXX" = yes; then |
11438 | CXXFLAGS="-O2" | |
11439 | else | |
11440 | CXXFLAGS= | |
11441 | fi | |
10f2d63a | 11442 | fi |
e6cc62c6 | 11443 | for ac_declaration in \ |
f95e4495 | 11444 | '' \ |
e6cc62c6 VS |
11445 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11446 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11447 | 'extern "C" void exit (int) throw ();' \ | |
11448 | 'extern "C" void exit (int);' \ | |
11449 | 'void exit (int);' | |
11450 | do | |
11451 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11452 | /* confdefs.h. */ |
11453 | _ACEOF | |
11454 | cat confdefs.h >>conftest.$ac_ext | |
11455 | cat >>conftest.$ac_ext <<_ACEOF | |
11456 | /* end confdefs.h. */ | |
09d3439c | 11457 | $ac_declaration |
f95e4495 | 11458 | #include <stdlib.h> |
e6cc62c6 VS |
11459 | int |
11460 | main () | |
11461 | { | |
11462 | exit (42); | |
11463 | ; | |
11464 | return 0; | |
11465 | } | |
11466 | _ACEOF | |
11467 | rm -f conftest.$ac_objext | |
11468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 11469 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11470 | ac_status=$? |
f95e4495 VS |
11471 | grep -v '^ *+' conftest.er1 >conftest.err |
11472 | rm -f conftest.er1 | |
11473 | cat conftest.err >&5 | |
e6cc62c6 VS |
11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11475 | (exit $ac_status); } && | |
f95e4495 VS |
11476 | { ac_try='test -z "$ac_cxx_werror_flag" |
11477 | || test ! -s conftest.err' | |
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); }; } && | |
11483 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11485 | (eval $ac_try) 2>&5 | |
11486 | ac_status=$? | |
11487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11488 | (exit $ac_status); }; }; then | |
11489 | : | |
11490 | else | |
11491 | echo "$as_me: failed program was:" >&5 | |
11492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11493 | ||
11494 | continue | |
11495 | fi | |
f95e4495 | 11496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11497 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11498 | /* confdefs.h. */ |
11499 | _ACEOF | |
11500 | cat confdefs.h >>conftest.$ac_ext | |
11501 | cat >>conftest.$ac_ext <<_ACEOF | |
11502 | /* end confdefs.h. */ | |
11503 | $ac_declaration | |
11504 | int | |
11505 | main () | |
11506 | { | |
11507 | exit (42); | |
11508 | ; | |
11509 | return 0; | |
11510 | } | |
11511 | _ACEOF | |
11512 | rm -f conftest.$ac_objext | |
11513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 11514 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11515 | ac_status=$? |
f95e4495 VS |
11516 | grep -v '^ *+' conftest.er1 >conftest.err |
11517 | rm -f conftest.er1 | |
11518 | cat conftest.err >&5 | |
e6cc62c6 VS |
11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11520 | (exit $ac_status); } && | |
f95e4495 VS |
11521 | { ac_try='test -z "$ac_cxx_werror_flag" |
11522 | || test ! -s conftest.err' | |
11523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11524 | (eval $ac_try) 2>&5 | |
11525 | ac_status=$? | |
11526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11527 | (exit $ac_status); }; } && | |
11528 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11530 | (eval $ac_try) 2>&5 | |
11531 | ac_status=$? | |
11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11533 | (exit $ac_status); }; }; then | |
11534 | break | |
11535 | else | |
11536 | echo "$as_me: failed program was:" >&5 | |
11537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11538 | ||
11539 | fi | |
f95e4495 | 11540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11541 | done |
11542 | rm -f conftest* | |
11543 | if test -n "$ac_declaration"; then | |
11544 | echo '#ifdef __cplusplus' >>confdefs.h | |
11545 | echo $ac_declaration >>confdefs.h | |
11546 | echo '#endif' >>confdefs.h | |
11547 | fi | |
11548 | ||
11549 | ac_ext=cc | |
11550 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11551 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11552 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11553 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11554 | |
11555 | ||
10f2d63a | 11556 | ac_ext=c |
10f2d63a | 11557 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11561 | |
11562 | ||
e6cc62c6 VS |
11563 | if test -n "$ac_tool_prefix"; then |
11564 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11565 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11568 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11570 | else |
11571 | if test -n "$RANLIB"; then | |
11572 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11573 | else | |
e6cc62c6 VS |
11574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11575 | for as_dir in $PATH | |
11576 | do | |
11577 | IFS=$as_save_IFS | |
11578 | test -z "$as_dir" && as_dir=. | |
11579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11581 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11583 | break 2 | |
11584 | fi | |
11585 | done | |
11586 | done | |
11587 | ||
10f2d63a VZ |
11588 | fi |
11589 | fi | |
e6cc62c6 | 11590 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11591 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11592 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11593 | echo "${ECHO_T}$RANLIB" >&6 | |
11594 | else | |
11595 | echo "$as_me:$LINENO: result: no" >&5 | |
11596 | echo "${ECHO_T}no" >&6 | |
11597 | fi | |
11598 | ||
11599 | fi | |
11600 | if test -z "$ac_cv_prog_RANLIB"; then | |
11601 | ac_ct_RANLIB=$RANLIB | |
11602 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11603 | set dummy ranlib; ac_word=$2 | |
11604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11606 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11608 | else |
e6cc62c6 VS |
11609 | if test -n "$ac_ct_RANLIB"; then |
11610 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11611 | else | |
11612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11613 | for as_dir in $PATH | |
11614 | do | |
11615 | IFS=$as_save_IFS | |
11616 | test -z "$as_dir" && as_dir=. | |
11617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11619 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11621 | break 2 | |
11622 | fi | |
11623 | done | |
11624 | done | |
11625 | ||
11626 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11627 | fi | |
11628 | fi | |
11629 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11630 | if test -n "$ac_ct_RANLIB"; then | |
11631 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11632 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11633 | else | |
11634 | echo "$as_me:$LINENO: result: no" >&5 | |
11635 | echo "${ECHO_T}no" >&6 | |
11636 | fi | |
11637 | ||
11638 | RANLIB=$ac_ct_RANLIB | |
11639 | else | |
11640 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11641 | fi |
11642 | ||
10f2d63a VZ |
11643 | |
11644 | # Extract the first word of "ar", so it can be a program name with args. | |
11645 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11648 | if test "${ac_cv_prog_AR+set}" = set; then | |
11649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11650 | else |
11651 | if test -n "$AR"; then | |
11652 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11653 | else | |
e6cc62c6 VS |
11654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11655 | for as_dir in $PATH | |
11656 | do | |
11657 | IFS=$as_save_IFS | |
11658 | test -z "$as_dir" && as_dir=. | |
11659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11661 | ac_cv_prog_AR="ar" | |
11662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11663 | break 2 | |
11664 | fi | |
11665 | done | |
11666 | done | |
11667 | ||
10f2d63a VZ |
11668 | fi |
11669 | fi | |
e6cc62c6 | 11670 | AR=$ac_cv_prog_AR |
10f2d63a | 11671 | if test -n "$AR"; then |
e6cc62c6 VS |
11672 | echo "$as_me:$LINENO: result: $AR" >&5 |
11673 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11674 | else |
e6cc62c6 VS |
11675 | echo "$as_me:$LINENO: result: no" >&5 |
11676 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11677 | fi |
11678 | ||
911740e7 VS |
11679 | if test "x$AR" = "x" ; then |
11680 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11681 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11682 | { (exit 1); exit 1; }; } | |
11683 | fi | |
8284b0c5 | 11684 | |
6054113a | 11685 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11686 | # so one script is as good as another. But avoid the broken or |
11687 | # incompatible versions: | |
11688 | # SysV /etc/install, /usr/sbin/install | |
11689 | # SunOS /usr/etc/install | |
11690 | # IRIX /sbin/install | |
11691 | # AIX /bin/install | |
e6cc62c6 | 11692 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11693 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11694 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11695 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
f95e4495 | 11696 | # OS/2's system install, which has a completely different semantic |
10f2d63a | 11697 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
11698 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11699 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11700 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11701 | if test "${ac_cv_path_install+set}" = set; then |
11702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11703 | else | |
11704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11705 | for as_dir in $PATH | |
11706 | do | |
11707 | IFS=$as_save_IFS | |
11708 | test -z "$as_dir" && as_dir=. | |
11709 | # Account for people who put trailing slashes in PATH elements. | |
11710 | case $as_dir/ in | |
11711 | ./ | .// | /cC/* | \ | |
11712 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
f95e4495 | 11713 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
11714 | /usr/ucb/* ) ;; |
11715 | *) | |
11716 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11717 | # Don't use installbsd from OSF since it installs stuff as root | |
11718 | # by default. | |
11719 | for ac_prog in ginstall scoinst install; do | |
11720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f95e4495 VS |
11721 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11722 | if test $ac_prog = install && | |
11723 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11724 | # AIX install. It has an incompatible calling convention. | |
11725 | : | |
11726 | elif test $ac_prog = install && | |
11727 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11728 | # program-specific install script used by HP pwplus--don't use. | |
11729 | : | |
11730 | else | |
11731 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11732 | break 3 | |
11733 | fi | |
11734 | fi | |
10f2d63a | 11735 | done |
e6cc62c6 VS |
11736 | done |
11737 | ;; | |
11738 | esac | |
11739 | done | |
11740 | ||
10f2d63a VZ |
11741 | |
11742 | fi | |
11743 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11744 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11745 | else |
11746 | # As a last resort, use the slow shell script. We don't cache a | |
11747 | # path for INSTALL within a source directory, because that will | |
11748 | # break other packages using the cache if that directory is | |
11749 | # removed, or if the path is relative. | |
e6cc62c6 | 11750 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11751 | fi |
11752 | fi | |
e6cc62c6 VS |
11753 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11754 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11755 | |
11756 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11757 | # It thinks the first close brace ends the variable substitution. | |
11758 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11759 | ||
e6cc62c6 | 11760 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11761 | |
10f2d63a VZ |
11762 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11763 | ||
8284b0c5 | 11764 | |
1d1b75ac VZ |
11765 | case ${INSTALL} in |
11766 | /* ) # Absolute | |
11767 | ;; | |
4f5a7f74 VZ |
11768 | ?:* ) # Drive letter, considered as absolute. |
11769 | ;; | |
3bd8fb5f | 11770 | *) |
1d1b75ac VZ |
11771 | INSTALL=`pwd`/${INSTALL} ;; |
11772 | esac | |
11773 | ||
4f5a7f74 VZ |
11774 | case ${host} in |
11775 | *-hp-hpux* ) | |
11776 | INSTALL_DIR="mkdir" | |
11777 | ;; | |
11778 | ||
11779 | *) INSTALL_DIR="$INSTALL -d" | |
11780 | ;; | |
11781 | esac | |
11782 | ||
8284b0c5 | 11783 | |
6054113a GD |
11784 | case "${host}" in |
11785 | ||
b5853384 | 11786 | powerpc-*-darwin* ) |
eb99ae0b GD |
11787 | INSTALL_PROGRAM="cp -fp" |
11788 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11789 | ;; |
11790 | *) | |
11791 | ;; | |
d6853540 | 11792 | esac |
698dcdb6 | 11793 | |
10f2d63a VZ |
11794 | # Extract the first word of "strip", so it can be a program name with args. |
11795 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11798 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11800 | else |
11801 | if test -n "$STRIP"; then | |
11802 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11803 | else | |
e6cc62c6 VS |
11804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11805 | for as_dir in $PATH | |
11806 | do | |
11807 | IFS=$as_save_IFS | |
11808 | test -z "$as_dir" && as_dir=. | |
11809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11811 | ac_cv_prog_STRIP="strip" | |
11812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11813 | break 2 | |
11814 | fi | |
11815 | done | |
11816 | done | |
11817 | ||
10f2d63a VZ |
11818 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11819 | fi | |
11820 | fi | |
e6cc62c6 | 11821 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11822 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11823 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11824 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11825 | else |
e6cc62c6 VS |
11826 | echo "$as_me:$LINENO: result: no" >&5 |
11827 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11828 | fi |
11829 | ||
5c6fa7d2 | 11830 | |
e6cc62c6 VS |
11831 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11832 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11833 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11835 | else |
e6cc62c6 | 11836 | |
414eab6d | 11837 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11838 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11839 | wx_cv_prog_makeisgnu="yes" |
11840 | else | |
11841 | wx_cv_prog_makeisgnu="no" | |
11842 | fi | |
11843 | ||
11844 | fi | |
e6cc62c6 VS |
11845 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11846 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11847 | |
11848 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11849 | IF_GNU_MAKE="" | |
11850 | else | |
11851 | IF_GNU_MAKE="#" | |
11852 | fi | |
11853 | ||
8284b0c5 MB |
11854 | |
11855 | ||
414eab6d | 11856 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11857 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11858 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11859 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11861 | else |
e6cc62c6 | 11862 | |
10f2d63a VZ |
11863 | cat - << EOF > confMake |
11864 | check : file | |
11865 | cp \$? \$@ | |
11866 | cp \$? final_file | |
11867 | EOF | |
11868 | ||
11869 | if test ! -d sub ; then | |
11870 | mkdir sub | |
11871 | fi | |
11872 | echo dummy > sub/file | |
f6bcfd97 | 11873 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11874 | RESULT=$? |
11875 | rm -f sub/file check final_file confMake | |
11876 | rmdir sub | |
11877 | if test "$RESULT" = 0; then | |
04e7a216 | 11878 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11879 | else |
04e7a216 VZ |
11880 | wx_cv_prog_makevpath="no" |
11881 | fi | |
11882 | ||
11883 | fi | |
e6cc62c6 VS |
11884 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11885 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11886 | |
11887 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11888 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11889 | You need a make-utility that is able to use the variable |
11890 | VPATH correctly. | |
11891 | If your version of make does not support VPATH correctly, | |
11892 | please install GNU-make (possibly as gmake), and start | |
11893 | configure with the following command: | |
11894 | export MAKE=gmake; ./configure for sh-type shells | |
11895 | setenv MAKE gmake; ./configure for csh-type shells | |
11896 | Also please do remember to use gmake in this case every time | |
11897 | you are trying to compile. | |
e6cc62c6 VS |
11898 | " >&5 |
11899 | echo "$as_me: error: | |
11900 | You need a make-utility that is able to use the variable | |
11901 | VPATH correctly. | |
11902 | If your version of make does not support VPATH correctly, | |
11903 | please install GNU-make (possibly as gmake), and start | |
11904 | configure with the following command: | |
11905 | export MAKE=gmake; ./configure for sh-type shells | |
11906 | setenv MAKE gmake; ./configure for csh-type shells | |
11907 | Also please do remember to use gmake in this case every time | |
11908 | you are trying to compile. | |
11909 | " >&2;} | |
11910 | { (exit 1); exit 1; }; } | |
11911 | fi fi | |
e6cc62c6 VS |
11912 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11913 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11914 | LN_S=$as_ln_s | |
11915 | if test "$LN_S" = "ln -s"; then | |
11916 | echo "$as_me:$LINENO: result: yes" >&5 | |
11917 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11918 | else |
e6cc62c6 VS |
11919 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11920 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11921 | fi |
5c6fa7d2 | 11922 | |
247f5006 | 11923 | |
2b5f62a0 VZ |
11924 | case "${host}" in |
11925 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11926 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11927 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11928 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11929 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11931 | else |
e6cc62c6 | 11932 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11933 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 11934 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11935 | /* confdefs.h. */ |
11936 | _ACEOF | |
11937 | cat confdefs.h >>conftest.$ac_ext | |
11938 | cat >>conftest.$ac_ext <<_ACEOF | |
11939 | /* end confdefs.h. */ | |
11940 | ||
2b5f62a0 | 11941 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11942 | #ifdef __cplusplus |
11943 | extern "C" | |
11944 | #endif | |
2b5f62a0 | 11945 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11946 | builtin and then its argument prototype would still apply. */ |
11947 | char drand48 (); | |
11948 | int | |
11949 | main () | |
11950 | { | |
11951 | drand48 (); | |
11952 | ; | |
11953 | return 0; | |
11954 | } | |
11955 | _ACEOF | |
11956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 11958 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 11959 | ac_status=$? |
f95e4495 VS |
11960 | grep -v '^ *+' conftest.er1 >conftest.err |
11961 | rm -f conftest.er1 | |
11962 | cat conftest.err >&5 | |
e6cc62c6 VS |
11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11964 | (exit $ac_status); } && | |
f95e4495 VS |
11965 | { ac_try='test -z "$ac_c_werror_flag" |
11966 | || test ! -s conftest.err' | |
11967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11968 | (eval $ac_try) 2>&5 | |
11969 | ac_status=$? | |
11970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11971 | (exit $ac_status); }; } && | |
11972 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
11973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11974 | (eval $ac_try) 2>&5 | |
11975 | ac_status=$? | |
11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11977 | (exit $ac_status); }; }; then | |
11978 | ac_cv_lib_cExt_drand48=yes | |
11979 | else | |
11980 | echo "$as_me: failed program was:" >&5 | |
11981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11982 | ||
11983 | ac_cv_lib_cExt_drand48=no | |
11984 | fi | |
f95e4495 VS |
11985 | rm -f conftest.err conftest.$ac_objext \ |
11986 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
11987 | LIBS=$ac_check_lib_save_LIBS |
11988 | fi | |
11989 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11990 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11991 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11992 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11993 | fi |
11994 | ||
11995 | else | |
11996 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11997 | fi | |
73d617c9 MB |
11998 | echo "$as_me:$LINENO: checking for gcc 3 or later" >&5 |
11999 | echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6 | |
12000 | if test "${wx_cv_gcc3+set}" = set; then | |
12001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12002 | else | |
12003 | ||
12004 | cat >conftest.$ac_ext <<_ACEOF | |
73d617c9 MB |
12005 | /* confdefs.h. */ |
12006 | _ACEOF | |
12007 | cat confdefs.h >>conftest.$ac_ext | |
12008 | cat >>conftest.$ac_ext <<_ACEOF | |
12009 | /* end confdefs.h. */ | |
3527f29c | 12010 | |
73d617c9 MB |
12011 | int |
12012 | main () | |
12013 | { | |
12014 | ||
12015 | #if (__GNUC__ < 3) | |
12016 | #error old gcc | |
12017 | #endif | |
12018 | ||
12019 | ; | |
12020 | return 0; | |
12021 | } | |
12022 | _ACEOF | |
12023 | rm -f conftest.$ac_objext | |
12024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12025 | (eval $ac_compile) 2>conftest.er1 |
73d617c9 | 12026 | ac_status=$? |
f95e4495 VS |
12027 | grep -v '^ *+' conftest.er1 >conftest.err |
12028 | rm -f conftest.er1 | |
12029 | cat conftest.err >&5 | |
73d617c9 MB |
12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12031 | (exit $ac_status); } && | |
f95e4495 VS |
12032 | { ac_try='test -z "$ac_c_werror_flag" |
12033 | || test ! -s conftest.err' | |
12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12035 | (eval $ac_try) 2>&5 | |
12036 | ac_status=$? | |
12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12038 | (exit $ac_status); }; } && | |
12039 | { ac_try='test -s conftest.$ac_objext' | |
73d617c9 MB |
12040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12041 | (eval $ac_try) 2>&5 | |
12042 | ac_status=$? | |
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12044 | (exit $ac_status); }; }; then | |
12045 | ||
12046 | wx_cv_gcc3=yes | |
12047 | ||
12048 | else | |
12049 | echo "$as_me: failed program was:" >&5 | |
12050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12051 | ||
12052 | ||
12053 | wx_cv_gcc3=no | |
12054 | ||
12055 | ||
12056 | fi | |
f95e4495 | 12057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
73d617c9 MB |
12058 | |
12059 | fi | |
12060 | echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5 | |
12061 | echo "${ECHO_T}$wx_cv_gcc3" >&6 | |
12062 | if test "$wx_cv_gcc3" = "no"; then | |
12063 | LIBS="$LIBS -lstdcpp" | |
12064 | else | |
12065 | LIBS="$LIBS -lstdcxx" | |
12066 | fi | |
2b5f62a0 VZ |
12067 | ;; |
12068 | esac | |
12069 | ||
a0b9e27f | 12070 | |
01aa5863 VS |
12071 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
12072 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
12073 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
12074 | if test "${ac_cv_header_strings_h+set}" = set; then | |
12075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12076 | else | |
12077 | ac_cv_header_strings_h=no | |
12078 | fi | |
12079 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
12080 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
12081 | if test "$ac_cv_header_strings_h" = "no"; then | |
12082 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
12083 | echo "${ECHO_T}forced no into cache" >&6 | |
12084 | else | |
12085 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
12086 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
12087 | fi | |
12088 | fi | |
12089 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
12090 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12091 | if test "${ac_cv_header_stdc+set}" = set; then | |
12092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12093 | else | |
12094 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12095 | /* confdefs.h. */ |
12096 | _ACEOF | |
12097 | cat confdefs.h >>conftest.$ac_ext | |
12098 | cat >>conftest.$ac_ext <<_ACEOF | |
12099 | /* end confdefs.h. */ | |
12100 | #include <stdlib.h> | |
12101 | #include <stdarg.h> | |
12102 | #include <string.h> | |
12103 | #include <float.h> | |
247f5006 | 12104 | |
e6cc62c6 VS |
12105 | int |
12106 | main () | |
12107 | { | |
90dd450c | 12108 | |
e6cc62c6 VS |
12109 | ; |
12110 | return 0; | |
12111 | } | |
12112 | _ACEOF | |
12113 | rm -f conftest.$ac_objext | |
12114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12115 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12116 | ac_status=$? |
f95e4495 VS |
12117 | grep -v '^ *+' conftest.er1 >conftest.err |
12118 | rm -f conftest.er1 | |
12119 | cat conftest.err >&5 | |
e6cc62c6 VS |
12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12121 | (exit $ac_status); } && | |
f95e4495 VS |
12122 | { ac_try='test -z "$ac_c_werror_flag" |
12123 | || test ! -s conftest.err' | |
12124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12125 | (eval $ac_try) 2>&5 | |
12126 | ac_status=$? | |
12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12128 | (exit $ac_status); }; } && | |
12129 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12131 | (eval $ac_try) 2>&5 | |
12132 | ac_status=$? | |
12133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12134 | (exit $ac_status); }; }; then | |
12135 | ac_cv_header_stdc=yes | |
8284b0c5 | 12136 | else |
e6cc62c6 VS |
12137 | echo "$as_me: failed program was:" >&5 |
12138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12139 | ||
12140 | ac_cv_header_stdc=no | |
21d1c967 | 12141 | fi |
f95e4495 | 12142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12143 | |
e6cc62c6 VS |
12144 | if test $ac_cv_header_stdc = yes; then |
12145 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12146 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12147 | /* confdefs.h. */ |
12148 | _ACEOF | |
12149 | cat confdefs.h >>conftest.$ac_ext | |
12150 | cat >>conftest.$ac_ext <<_ACEOF | |
12151 | /* end confdefs.h. */ | |
12152 | #include <string.h> | |
12153 | ||
12154 | _ACEOF | |
12155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12156 | $EGREP "memchr" >/dev/null 2>&1; then | |
12157 | : | |
12158 | else | |
12159 | ac_cv_header_stdc=no | |
3a922bb4 | 12160 | fi |
a0b9e27f | 12161 | rm -f conftest* |
e6cc62c6 | 12162 | |
90dd450c | 12163 | fi |
e6cc62c6 VS |
12164 | |
12165 | if test $ac_cv_header_stdc = yes; then | |
12166 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12167 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12168 | /* confdefs.h. */ |
12169 | _ACEOF | |
12170 | cat confdefs.h >>conftest.$ac_ext | |
12171 | cat >>conftest.$ac_ext <<_ACEOF | |
12172 | /* end confdefs.h. */ | |
12173 | #include <stdlib.h> | |
12174 | ||
12175 | _ACEOF | |
12176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12177 | $EGREP "free" >/dev/null 2>&1; then | |
12178 | : | |
a0b9e27f | 12179 | else |
e6cc62c6 | 12180 | ac_cv_header_stdc=no |
21d1c967 | 12181 | fi |
e6cc62c6 | 12182 | rm -f conftest* |
247f5006 VZ |
12183 | |
12184 | fi | |
e6cc62c6 VS |
12185 | |
12186 | if test $ac_cv_header_stdc = yes; then | |
12187 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12188 | if test "$cross_compiling" = yes; then | |
12189 | : | |
12190 | else | |
12191 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12192 | /* confdefs.h. */ |
12193 | _ACEOF | |
12194 | cat confdefs.h >>conftest.$ac_ext | |
12195 | cat >>conftest.$ac_ext <<_ACEOF | |
12196 | /* end confdefs.h. */ | |
12197 | #include <ctype.h> | |
12198 | #if ((' ' & 0x0FF) == 0x020) | |
12199 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12200 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12201 | #else | |
12202 | # define ISLOWER(c) \ | |
f95e4495 VS |
12203 | (('a' <= (c) && (c) <= 'i') \ |
12204 | || ('j' <= (c) && (c) <= 'r') \ | |
12205 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12206 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12207 | #endif | |
12208 | ||
12209 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12210 | int | |
12211 | main () | |
12212 | { | |
12213 | int i; | |
12214 | for (i = 0; i < 256; i++) | |
12215 | if (XOR (islower (i), ISLOWER (i)) | |
f95e4495 | 12216 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12217 | exit(2); |
12218 | exit (0); | |
12219 | } | |
12220 | _ACEOF | |
12221 | rm -f conftest$ac_exeext | |
12222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12223 | (eval $ac_link) 2>&5 | |
12224 | ac_status=$? | |
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12228 | (eval $ac_try) 2>&5 | |
12229 | ac_status=$? | |
12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12231 | (exit $ac_status); }; }; then | |
12232 | : | |
a0b9e27f | 12233 | else |
e6cc62c6 VS |
12234 | echo "$as_me: program exited with status $ac_status" >&5 |
12235 | echo "$as_me: failed program was:" >&5 | |
12236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12237 | ||
12238 | ( exit $ac_status ) | |
12239 | ac_cv_header_stdc=no | |
12240 | fi | |
f95e4495 | 12241 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12242 | fi |
12243 | fi | |
12244 | fi | |
12245 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12246 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12247 | if test $ac_cv_header_stdc = yes; then | |
12248 | ||
12249 | cat >>confdefs.h <<\_ACEOF | |
12250 | #define STDC_HEADERS 1 | |
12251 | _ACEOF | |
12252 | ||
a0b9e27f | 12253 | fi |
e6cc62c6 VS |
12254 | |
12255 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
f95e4495 | 12266 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12267 | do |
12268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12273 | else | |
12274 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12275 | /* confdefs.h. */ |
12276 | _ACEOF | |
12277 | cat confdefs.h >>conftest.$ac_ext | |
12278 | cat >>conftest.$ac_ext <<_ACEOF | |
12279 | /* end confdefs.h. */ | |
12280 | $ac_includes_default | |
12281 | ||
12282 | #include <$ac_header> | |
12283 | _ACEOF | |
12284 | rm -f conftest.$ac_objext | |
12285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12286 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12287 | ac_status=$? |
f95e4495 VS |
12288 | grep -v '^ *+' conftest.er1 >conftest.err |
12289 | rm -f conftest.er1 | |
12290 | cat conftest.err >&5 | |
e6cc62c6 VS |
12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12292 | (exit $ac_status); } && | |
f95e4495 VS |
12293 | { ac_try='test -z "$ac_c_werror_flag" |
12294 | || test ! -s conftest.err' | |
12295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12296 | (eval $ac_try) 2>&5 | |
12297 | ac_status=$? | |
12298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12299 | (exit $ac_status); }; } && | |
12300 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12302 | (eval $ac_try) 2>&5 | |
12303 | ac_status=$? | |
12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12305 | (exit $ac_status); }; }; then | |
12306 | eval "$as_ac_Header=yes" | |
12307 | else | |
12308 | echo "$as_me: failed program was:" >&5 | |
12309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12310 | ||
12311 | eval "$as_ac_Header=no" | |
12312 | fi | |
f95e4495 | 12313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12314 | fi |
12315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12317 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12318 | cat >>confdefs.h <<_ACEOF | |
12319 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12320 | _ACEOF | |
12321 | ||
12322 | fi | |
12323 | ||
a0b9e27f | 12324 | done |
90dd450c | 12325 | |
e6cc62c6 VS |
12326 | |
12327 | ||
12328 | for ac_header in strings.h | |
21d1c967 | 12329 | do |
e6cc62c6 VS |
12330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12336 | fi | |
12337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12339 | else | |
12340 | # Is the header compilable? | |
12341 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12342 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12343 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12344 | /* confdefs.h. */ |
12345 | _ACEOF | |
12346 | cat confdefs.h >>conftest.$ac_ext | |
12347 | cat >>conftest.$ac_ext <<_ACEOF | |
12348 | /* end confdefs.h. */ | |
12349 | $ac_includes_default | |
12350 | #include <$ac_header> | |
12351 | _ACEOF | |
12352 | rm -f conftest.$ac_objext | |
12353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12354 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12355 | ac_status=$? |
f95e4495 VS |
12356 | grep -v '^ *+' conftest.er1 >conftest.err |
12357 | rm -f conftest.er1 | |
12358 | cat conftest.err >&5 | |
e6cc62c6 VS |
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12360 | (exit $ac_status); } && | |
f95e4495 VS |
12361 | { ac_try='test -z "$ac_c_werror_flag" |
12362 | || test ! -s conftest.err' | |
12363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12364 | (eval $ac_try) 2>&5 | |
12365 | ac_status=$? | |
12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12367 | (exit $ac_status); }; } && | |
12368 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12370 | (eval $ac_try) 2>&5 | |
12371 | ac_status=$? | |
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 | (exit $ac_status); }; }; then | |
12374 | ac_header_compiler=yes | |
12375 | else | |
12376 | echo "$as_me: failed program was:" >&5 | |
12377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12378 | ||
12379 | ac_header_compiler=no | |
12380 | fi | |
f95e4495 | 12381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12382 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12383 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12384 | ||
12385 | # Is the header present? | |
12386 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12388 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12389 | /* confdefs.h. */ |
12390 | _ACEOF | |
12391 | cat confdefs.h >>conftest.$ac_ext | |
12392 | cat >>conftest.$ac_ext <<_ACEOF | |
12393 | /* end confdefs.h. */ | |
12394 | #include <$ac_header> | |
12395 | _ACEOF | |
12396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12398 | ac_status=$? | |
12399 | grep -v '^ *+' conftest.er1 >conftest.err | |
12400 | rm -f conftest.er1 | |
12401 | cat conftest.err >&5 | |
12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12403 | (exit $ac_status); } >/dev/null; then | |
12404 | if test -s conftest.err; then | |
12405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 12406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12407 | else |
12408 | ac_cpp_err= | |
12409 | fi | |
12410 | else | |
12411 | ac_cpp_err=yes | |
12412 | fi | |
12413 | if test -z "$ac_cpp_err"; then | |
12414 | ac_header_preproc=yes | |
12415 | else | |
12416 | echo "$as_me: failed program was:" >&5 | |
12417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12418 | ||
12419 | ac_header_preproc=no | |
12420 | fi | |
12421 | rm -f conftest.err conftest.$ac_ext | |
12422 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12423 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12424 | ||
12425 | # So? What about this header? | |
f95e4495 VS |
12426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12427 | yes:no: ) | |
e6cc62c6 VS |
12428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
12430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12432 | ac_header_preproc=yes | |
e6cc62c6 | 12433 | ;; |
f95e4495 | 12434 | no:yes:* ) |
e6cc62c6 VS |
12435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
12437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
12445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12447 | ( |
12448 | cat <<\_ASBOX | |
f95e4495 VS |
12449 | ## ----------------------------------------- ## |
12450 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12451 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12452 | _ASBOX |
12453 | ) | | |
12454 | sed "s/^/$as_me: WARNING: /" >&2 | |
12455 | ;; | |
12456 | esac | |
12457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12461 | else | |
f95e4495 | 12462 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 12463 | fi |
e6cc62c6 VS |
12464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12466 | ||
a0b9e27f | 12467 | fi |
e6cc62c6 VS |
12468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12469 | cat >>confdefs.h <<_ACEOF | |
12470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12471 | _ACEOF | |
12472 | ||
12473 | fi | |
12474 | ||
12475 | done | |
12476 | ||
e6cc62c6 VS |
12477 | |
12478 | ||
12479 | for ac_header in stdlib.h | |
12480 | do | |
12481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12487 | fi | |
12488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12490 | else | |
12491 | # Is the header compilable? | |
12492 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12494 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12495 | /* confdefs.h. */ |
12496 | _ACEOF | |
12497 | cat confdefs.h >>conftest.$ac_ext | |
12498 | cat >>conftest.$ac_ext <<_ACEOF | |
12499 | /* end confdefs.h. */ | |
12500 | $ac_includes_default | |
12501 | #include <$ac_header> | |
12502 | _ACEOF | |
12503 | rm -f conftest.$ac_objext | |
12504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12505 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12506 | ac_status=$? |
f95e4495 VS |
12507 | grep -v '^ *+' conftest.er1 >conftest.err |
12508 | rm -f conftest.er1 | |
12509 | cat conftest.err >&5 | |
e6cc62c6 VS |
12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12511 | (exit $ac_status); } && | |
f95e4495 VS |
12512 | { ac_try='test -z "$ac_c_werror_flag" |
12513 | || test ! -s conftest.err' | |
12514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12515 | (eval $ac_try) 2>&5 | |
12516 | ac_status=$? | |
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12518 | (exit $ac_status); }; } && | |
12519 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12521 | (eval $ac_try) 2>&5 | |
12522 | ac_status=$? | |
12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12524 | (exit $ac_status); }; }; then | |
12525 | ac_header_compiler=yes | |
12526 | else | |
12527 | echo "$as_me: failed program was:" >&5 | |
12528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12529 | ||
12530 | ac_header_compiler=no | |
12531 | fi | |
f95e4495 | 12532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12534 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12535 | ||
12536 | # Is the header present? | |
12537 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12538 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12539 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12540 | /* confdefs.h. */ |
12541 | _ACEOF | |
12542 | cat confdefs.h >>conftest.$ac_ext | |
12543 | cat >>conftest.$ac_ext <<_ACEOF | |
12544 | /* end confdefs.h. */ | |
12545 | #include <$ac_header> | |
12546 | _ACEOF | |
12547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12549 | ac_status=$? | |
12550 | grep -v '^ *+' conftest.er1 >conftest.err | |
12551 | rm -f conftest.er1 | |
12552 | cat conftest.err >&5 | |
12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 | (exit $ac_status); } >/dev/null; then | |
12555 | if test -s conftest.err; then | |
12556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 12557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12558 | else |
12559 | ac_cpp_err= | |
12560 | fi | |
12561 | else | |
12562 | ac_cpp_err=yes | |
12563 | fi | |
12564 | if test -z "$ac_cpp_err"; then | |
12565 | ac_header_preproc=yes | |
12566 | else | |
12567 | echo "$as_me: failed program was:" >&5 | |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12569 | ||
12570 | ac_header_preproc=no | |
12571 | fi | |
12572 | rm -f conftest.err conftest.$ac_ext | |
12573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12574 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12575 | ||
12576 | # So? What about this header? | |
f95e4495 VS |
12577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12578 | yes:no: ) | |
e6cc62c6 VS |
12579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12580 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
12581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12582 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12583 | ac_header_preproc=yes | |
e6cc62c6 | 12584 | ;; |
f95e4495 | 12585 | no:yes:* ) |
e6cc62c6 VS |
12586 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12587 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
12588 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12589 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12590 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12591 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12592 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12593 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12595 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
12596 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12597 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12598 | ( |
12599 | cat <<\_ASBOX | |
f95e4495 VS |
12600 | ## ----------------------------------------- ## |
12601 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12602 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12603 | _ASBOX |
12604 | ) | | |
12605 | sed "s/^/$as_me: WARNING: /" >&2 | |
12606 | ;; | |
12607 | esac | |
12608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12612 | else |
f95e4495 | 12613 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12614 | fi |
12615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12617 | ||
21d1c967 | 12618 | fi |
e6cc62c6 VS |
12619 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12620 | cat >>confdefs.h <<_ACEOF | |
12621 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12622 | _ACEOF | |
12623 | ||
12624 | fi | |
12625 | ||
21d1c967 | 12626 | done |
4f14bcd8 | 12627 | |
5c6fa7d2 | 12628 | |
e6cc62c6 | 12629 | for ac_header in malloc.h |
21d1c967 | 12630 | do |
e6cc62c6 VS |
12631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12637 | fi | |
12638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12640 | else | |
12641 | # Is the header compilable? | |
12642 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12643 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12644 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12645 | /* confdefs.h. */ |
12646 | _ACEOF | |
12647 | cat confdefs.h >>conftest.$ac_ext | |
12648 | cat >>conftest.$ac_ext <<_ACEOF | |
12649 | /* end confdefs.h. */ | |
12650 | $ac_includes_default | |
12651 | #include <$ac_header> | |
12652 | _ACEOF | |
12653 | rm -f conftest.$ac_objext | |
12654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12655 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12656 | ac_status=$? |
f95e4495 VS |
12657 | grep -v '^ *+' conftest.er1 >conftest.err |
12658 | rm -f conftest.er1 | |
12659 | cat conftest.err >&5 | |
e6cc62c6 VS |
12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12661 | (exit $ac_status); } && | |
f95e4495 VS |
12662 | { ac_try='test -z "$ac_c_werror_flag" |
12663 | || test ! -s conftest.err' | |
12664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12665 | (eval $ac_try) 2>&5 | |
12666 | ac_status=$? | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); }; } && | |
12669 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12671 | (eval $ac_try) 2>&5 | |
12672 | ac_status=$? | |
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12674 | (exit $ac_status); }; }; then | |
12675 | ac_header_compiler=yes | |
12676 | else | |
12677 | echo "$as_me: failed program was:" >&5 | |
12678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12679 | ||
12680 | ac_header_compiler=no | |
12681 | fi | |
f95e4495 | 12682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12685 | ||
12686 | # Is the header present? | |
12687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12689 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12690 | /* confdefs.h. */ |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
12695 | #include <$ac_header> | |
12696 | _ACEOF | |
12697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12699 | ac_status=$? | |
12700 | grep -v '^ *+' conftest.er1 >conftest.err | |
12701 | rm -f conftest.er1 | |
12702 | cat conftest.err >&5 | |
12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12704 | (exit $ac_status); } >/dev/null; then | |
12705 | if test -s conftest.err; then | |
12706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 12707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12708 | else |
12709 | ac_cpp_err= | |
12710 | fi | |
12711 | else | |
12712 | ac_cpp_err=yes | |
12713 | fi | |
12714 | if test -z "$ac_cpp_err"; then | |
12715 | ac_header_preproc=yes | |
12716 | else | |
12717 | echo "$as_me: failed program was:" >&5 | |
12718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12719 | ||
12720 | ac_header_preproc=no | |
12721 | fi | |
12722 | rm -f conftest.err conftest.$ac_ext | |
12723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12725 | ||
12726 | # So? What about this header? | |
f95e4495 VS |
12727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12728 | yes:no: ) | |
e6cc62c6 VS |
12729 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12730 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
12731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12732 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12733 | ac_header_preproc=yes | |
e6cc62c6 | 12734 | ;; |
f95e4495 | 12735 | no:yes:* ) |
e6cc62c6 VS |
12736 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12737 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
12738 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12739 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12740 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12741 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12743 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12747 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12748 | ( |
12749 | cat <<\_ASBOX | |
f95e4495 VS |
12750 | ## ----------------------------------------- ## |
12751 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12752 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12753 | _ASBOX |
12754 | ) | | |
12755 | sed "s/^/$as_me: WARNING: /" >&2 | |
12756 | ;; | |
12757 | esac | |
12758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12762 | else | |
f95e4495 | 12763 | eval "$as_ac_Header=\$ac_header_preproc" |
d4158b5d | 12764 | fi |
e6cc62c6 VS |
12765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12767 | ||
21d1c967 | 12768 | fi |
e6cc62c6 VS |
12769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12770 | cat >>confdefs.h <<_ACEOF | |
12771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12772 | _ACEOF | |
12773 | ||
12774 | fi | |
12775 | ||
12776 | done | |
12777 | ||
12778 | ||
12779 | for ac_header in unistd.h | |
12780 | do | |
12781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12787 | fi | |
12788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12790 | else | |
12791 | # Is the header compilable? | |
12792 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12793 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12794 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12795 | /* confdefs.h. */ |
12796 | _ACEOF | |
12797 | cat confdefs.h >>conftest.$ac_ext | |
12798 | cat >>conftest.$ac_ext <<_ACEOF | |
12799 | /* end confdefs.h. */ | |
12800 | $ac_includes_default | |
12801 | #include <$ac_header> | |
12802 | _ACEOF | |
12803 | rm -f conftest.$ac_objext | |
12804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12805 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12806 | ac_status=$? |
f95e4495 VS |
12807 | grep -v '^ *+' conftest.er1 >conftest.err |
12808 | rm -f conftest.er1 | |
12809 | cat conftest.err >&5 | |
e6cc62c6 VS |
12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12811 | (exit $ac_status); } && | |
f95e4495 VS |
12812 | { ac_try='test -z "$ac_c_werror_flag" |
12813 | || test ! -s conftest.err' | |
12814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12815 | (eval $ac_try) 2>&5 | |
12816 | ac_status=$? | |
12817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12818 | (exit $ac_status); }; } && | |
12819 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12821 | (eval $ac_try) 2>&5 | |
12822 | ac_status=$? | |
12823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12824 | (exit $ac_status); }; }; then | |
12825 | ac_header_compiler=yes | |
12826 | else | |
12827 | echo "$as_me: failed program was:" >&5 | |
12828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12829 | ||
12830 | ac_header_compiler=no | |
12831 | fi | |
f95e4495 | 12832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12833 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12834 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12835 | ||
12836 | # Is the header present? | |
12837 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12838 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12839 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12840 | /* confdefs.h. */ |
12841 | _ACEOF | |
12842 | cat confdefs.h >>conftest.$ac_ext | |
12843 | cat >>conftest.$ac_ext <<_ACEOF | |
12844 | /* end confdefs.h. */ | |
12845 | #include <$ac_header> | |
12846 | _ACEOF | |
12847 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12848 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12849 | ac_status=$? | |
12850 | grep -v '^ *+' conftest.er1 >conftest.err | |
12851 | rm -f conftest.er1 | |
12852 | cat conftest.err >&5 | |
12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12854 | (exit $ac_status); } >/dev/null; then | |
12855 | if test -s conftest.err; then | |
12856 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 12857 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12858 | else |
12859 | ac_cpp_err= | |
12860 | fi | |
a0b9e27f | 12861 | else |
e6cc62c6 VS |
12862 | ac_cpp_err=yes |
12863 | fi | |
12864 | if test -z "$ac_cpp_err"; then | |
12865 | ac_header_preproc=yes | |
12866 | else | |
12867 | echo "$as_me: failed program was:" >&5 | |
12868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12869 | ||
12870 | ac_header_preproc=no | |
12871 | fi | |
12872 | rm -f conftest.err conftest.$ac_ext | |
12873 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12874 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12875 | ||
12876 | # So? What about this header? | |
f95e4495 VS |
12877 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12878 | yes:no: ) | |
e6cc62c6 VS |
12879 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12880 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
12881 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12882 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12883 | ac_header_preproc=yes | |
e6cc62c6 | 12884 | ;; |
f95e4495 | 12885 | no:yes:* ) |
e6cc62c6 VS |
12886 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12887 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12889 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12890 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12891 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12893 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12895 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
12896 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12897 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12898 | ( |
12899 | cat <<\_ASBOX | |
f95e4495 VS |
12900 | ## ----------------------------------------- ## |
12901 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12902 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12903 | _ASBOX |
12904 | ) | | |
12905 | sed "s/^/$as_me: WARNING: /" >&2 | |
12906 | ;; | |
12907 | esac | |
12908 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12912 | else | |
f95e4495 | 12913 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12914 | fi |
12915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12916 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12917 | ||
12918 | fi | |
12919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12920 | cat >>confdefs.h <<_ACEOF | |
12921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12922 | _ACEOF | |
12923 | ||
d4158b5d | 12924 | fi |
e6cc62c6 | 12925 | |
21d1c967 | 12926 | done |
f6bcfd97 | 12927 | |
e6cc62c6 VS |
12928 | |
12929 | for ac_header in wchar.h | |
12930 | do | |
12931 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12937 | fi | |
12938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12939 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12940 | else | |
12941 | # Is the header compilable? | |
12942 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12943 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12944 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12945 | /* confdefs.h. */ |
12946 | _ACEOF | |
12947 | cat confdefs.h >>conftest.$ac_ext | |
12948 | cat >>conftest.$ac_ext <<_ACEOF | |
12949 | /* end confdefs.h. */ | |
12950 | $ac_includes_default | |
12951 | #include <$ac_header> | |
12952 | _ACEOF | |
12953 | rm -f conftest.$ac_objext | |
12954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 12955 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12956 | ac_status=$? |
f95e4495 VS |
12957 | grep -v '^ *+' conftest.er1 >conftest.err |
12958 | rm -f conftest.er1 | |
12959 | cat conftest.err >&5 | |
e6cc62c6 VS |
12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12961 | (exit $ac_status); } && | |
f95e4495 VS |
12962 | { ac_try='test -z "$ac_c_werror_flag" |
12963 | || test ! -s conftest.err' | |
12964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12965 | (eval $ac_try) 2>&5 | |
12966 | ac_status=$? | |
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12968 | (exit $ac_status); }; } && | |
12969 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12971 | (eval $ac_try) 2>&5 | |
12972 | ac_status=$? | |
12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12974 | (exit $ac_status); }; }; then | |
12975 | ac_header_compiler=yes | |
12976 | else | |
12977 | echo "$as_me: failed program was:" >&5 | |
12978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12979 | ||
12980 | ac_header_compiler=no | |
12981 | fi | |
f95e4495 | 12982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12985 | ||
12986 | # Is the header present? | |
12987 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12988 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12989 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12990 | /* confdefs.h. */ |
12991 | _ACEOF | |
12992 | cat confdefs.h >>conftest.$ac_ext | |
12993 | cat >>conftest.$ac_ext <<_ACEOF | |
12994 | /* end confdefs.h. */ | |
12995 | #include <$ac_header> | |
12996 | _ACEOF | |
12997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12999 | ac_status=$? | |
13000 | grep -v '^ *+' conftest.er1 >conftest.err | |
13001 | rm -f conftest.er1 | |
13002 | cat conftest.err >&5 | |
13003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13004 | (exit $ac_status); } >/dev/null; then | |
13005 | if test -s conftest.err; then | |
13006 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 13007 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13008 | else |
13009 | ac_cpp_err= | |
13010 | fi | |
13011 | else | |
13012 | ac_cpp_err=yes | |
13013 | fi | |
13014 | if test -z "$ac_cpp_err"; then | |
13015 | ac_header_preproc=yes | |
13016 | else | |
13017 | echo "$as_me: failed program was:" >&5 | |
13018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13019 | ||
13020 | ac_header_preproc=no | |
13021 | fi | |
13022 | rm -f conftest.err conftest.$ac_ext | |
13023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13025 | ||
13026 | # So? What about this header? | |
f95e4495 VS |
13027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13028 | yes:no: ) | |
e6cc62c6 VS |
13029 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13030 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
13031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13032 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13033 | ac_header_preproc=yes | |
e6cc62c6 | 13034 | ;; |
f95e4495 | 13035 | no:yes:* ) |
e6cc62c6 VS |
13036 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13037 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
13038 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13039 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13040 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13041 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13042 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13043 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
13046 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13047 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13048 | ( |
13049 | cat <<\_ASBOX | |
f95e4495 VS |
13050 | ## ----------------------------------------- ## |
13051 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13052 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13053 | _ASBOX |
13054 | ) | | |
13055 | sed "s/^/$as_me: WARNING: /" >&2 | |
13056 | ;; | |
13057 | esac | |
13058 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13059 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13062 | else | |
f95e4495 | 13063 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13064 | fi |
13065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13066 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13067 | ||
90dd450c | 13068 | fi |
e6cc62c6 VS |
13069 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13070 | cat >>confdefs.h <<_ACEOF | |
13071 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13072 | _ACEOF | |
13073 | ||
13074 | fi | |
13075 | ||
13076 | done | |
90dd450c | 13077 | |
e6cc62c6 VS |
13078 | |
13079 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13080 | ||
13081 | for ac_header in wcstr.h | |
21d1c967 | 13082 | do |
e6cc62c6 VS |
13083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13089 | fi | |
13090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13092 | else | |
13093 | # Is the header compilable? | |
13094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13096 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13097 | /* confdefs.h. */ |
13098 | _ACEOF | |
13099 | cat confdefs.h >>conftest.$ac_ext | |
13100 | cat >>conftest.$ac_ext <<_ACEOF | |
13101 | /* end confdefs.h. */ | |
13102 | $ac_includes_default | |
13103 | #include <$ac_header> | |
13104 | _ACEOF | |
13105 | rm -f conftest.$ac_objext | |
13106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13107 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13108 | ac_status=$? |
f95e4495 VS |
13109 | grep -v '^ *+' conftest.er1 >conftest.err |
13110 | rm -f conftest.er1 | |
13111 | cat conftest.err >&5 | |
e6cc62c6 VS |
13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13113 | (exit $ac_status); } && | |
f95e4495 VS |
13114 | { ac_try='test -z "$ac_c_werror_flag" |
13115 | || test ! -s conftest.err' | |
13116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13117 | (eval $ac_try) 2>&5 | |
13118 | ac_status=$? | |
13119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13120 | (exit $ac_status); }; } && | |
13121 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13123 | (eval $ac_try) 2>&5 | |
13124 | ac_status=$? | |
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13126 | (exit $ac_status); }; }; then | |
13127 | ac_header_compiler=yes | |
13128 | else | |
13129 | echo "$as_me: failed program was:" >&5 | |
13130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13131 | ||
13132 | ac_header_compiler=no | |
13133 | fi | |
f95e4495 | 13134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13136 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13137 | ||
13138 | # Is the header present? | |
13139 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13140 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13141 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13142 | /* confdefs.h. */ |
13143 | _ACEOF | |
13144 | cat confdefs.h >>conftest.$ac_ext | |
13145 | cat >>conftest.$ac_ext <<_ACEOF | |
13146 | /* end confdefs.h. */ | |
13147 | #include <$ac_header> | |
13148 | _ACEOF | |
13149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13151 | ac_status=$? | |
13152 | grep -v '^ *+' conftest.er1 >conftest.err | |
13153 | rm -f conftest.er1 | |
13154 | cat conftest.err >&5 | |
13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13156 | (exit $ac_status); } >/dev/null; then | |
13157 | if test -s conftest.err; then | |
13158 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 13159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13160 | else |
13161 | ac_cpp_err= | |
13162 | fi | |
13163 | else | |
13164 | ac_cpp_err=yes | |
13165 | fi | |
13166 | if test -z "$ac_cpp_err"; then | |
13167 | ac_header_preproc=yes | |
13168 | else | |
13169 | echo "$as_me: failed program was:" >&5 | |
13170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13171 | ||
13172 | ac_header_preproc=no | |
13173 | fi | |
13174 | rm -f conftest.err conftest.$ac_ext | |
13175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13176 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13177 | ||
13178 | # So? What about this header? | |
f95e4495 VS |
13179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13180 | yes:no: ) | |
e6cc62c6 VS |
13181 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13182 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
13183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13184 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13185 | ac_header_preproc=yes | |
e6cc62c6 | 13186 | ;; |
f95e4495 | 13187 | no:yes:* ) |
e6cc62c6 VS |
13188 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13191 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13192 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13193 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13194 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13195 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13197 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
13198 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13199 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13200 | ( |
13201 | cat <<\_ASBOX | |
f95e4495 VS |
13202 | ## ----------------------------------------- ## |
13203 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13204 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13205 | _ASBOX |
13206 | ) | | |
13207 | sed "s/^/$as_me: WARNING: /" >&2 | |
13208 | ;; | |
13209 | esac | |
13210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13214 | else | |
f95e4495 | 13215 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13216 | fi |
e6cc62c6 VS |
13217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13219 | ||
4f14bcd8 | 13220 | fi |
e6cc62c6 VS |
13221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13222 | cat >>confdefs.h <<_ACEOF | |
13223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13224 | _ACEOF | |
13225 | ||
13226 | fi | |
13227 | ||
13228 | done | |
13229 | ||
13230 | fi | |
13231 | ||
13232 | ||
13233 | for ac_header in fnmatch.h | |
13234 | do | |
13235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13241 | fi | |
13242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13244 | else | |
13245 | # Is the header compilable? | |
13246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13248 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13249 | /* confdefs.h. */ |
13250 | _ACEOF | |
13251 | cat confdefs.h >>conftest.$ac_ext | |
13252 | cat >>conftest.$ac_ext <<_ACEOF | |
13253 | /* end confdefs.h. */ | |
13254 | $ac_includes_default | |
13255 | #include <$ac_header> | |
13256 | _ACEOF | |
13257 | rm -f conftest.$ac_objext | |
13258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13259 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13260 | ac_status=$? |
f95e4495 VS |
13261 | grep -v '^ *+' conftest.er1 >conftest.err |
13262 | rm -f conftest.er1 | |
13263 | cat conftest.err >&5 | |
e6cc62c6 VS |
13264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13265 | (exit $ac_status); } && | |
f95e4495 VS |
13266 | { ac_try='test -z "$ac_c_werror_flag" |
13267 | || test ! -s conftest.err' | |
13268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13269 | (eval $ac_try) 2>&5 | |
13270 | ac_status=$? | |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13272 | (exit $ac_status); }; } && | |
13273 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13275 | (eval $ac_try) 2>&5 | |
13276 | ac_status=$? | |
13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13278 | (exit $ac_status); }; }; then | |
13279 | ac_header_compiler=yes | |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | ac_header_compiler=no | |
13285 | fi | |
f95e4495 | 13286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13289 | ||
13290 | # Is the header present? | |
13291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13293 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13294 | /* confdefs.h. */ |
13295 | _ACEOF | |
13296 | cat confdefs.h >>conftest.$ac_ext | |
13297 | cat >>conftest.$ac_ext <<_ACEOF | |
13298 | /* end confdefs.h. */ | |
13299 | #include <$ac_header> | |
13300 | _ACEOF | |
13301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13303 | ac_status=$? | |
13304 | grep -v '^ *+' conftest.er1 >conftest.err | |
13305 | rm -f conftest.er1 | |
13306 | cat conftest.err >&5 | |
13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13308 | (exit $ac_status); } >/dev/null; then | |
13309 | if test -s conftest.err; then | |
13310 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 13311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13312 | else |
13313 | ac_cpp_err= | |
13314 | fi | |
13315 | else | |
13316 | ac_cpp_err=yes | |
13317 | fi | |
13318 | if test -z "$ac_cpp_err"; then | |
13319 | ac_header_preproc=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | ac_header_preproc=no | |
13325 | fi | |
13326 | rm -f conftest.err conftest.$ac_ext | |
13327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13329 | ||
13330 | # So? What about this header? | |
f95e4495 VS |
13331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13332 | yes:no: ) | |
e6cc62c6 VS |
13333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
13335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13337 | ac_header_preproc=yes | |
e6cc62c6 | 13338 | ;; |
f95e4495 | 13339 | no:yes:* ) |
e6cc62c6 VS |
13340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
13350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13352 | ( |
13353 | cat <<\_ASBOX | |
f95e4495 VS |
13354 | ## ----------------------------------------- ## |
13355 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13356 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13357 | _ASBOX |
13358 | ) | | |
13359 | sed "s/^/$as_me: WARNING: /" >&2 | |
13360 | ;; | |
13361 | esac | |
13362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13366 | else |
f95e4495 | 13367 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13368 | fi |
13369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13371 | ||
21d1c967 | 13372 | fi |
e6cc62c6 VS |
13373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13374 | cat >>confdefs.h <<_ACEOF | |
13375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13376 | _ACEOF | |
13377 | ||
13378 | fi | |
13379 | ||
21d1c967 | 13380 | done |
90dd450c | 13381 | |
5c6fa7d2 | 13382 | |
a0b9e27f | 13383 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13384 | |
13385 | for ac_func in fnmatch | |
21d1c967 | 13386 | do |
e6cc62c6 VS |
13387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13390 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13392 | else | |
13393 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13394 | /* confdefs.h. */ |
13395 | _ACEOF | |
13396 | cat confdefs.h >>conftest.$ac_ext | |
13397 | cat >>conftest.$ac_ext <<_ACEOF | |
13398 | /* end confdefs.h. */ | |
f95e4495 VS |
13399 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13401 | #define $ac_func innocuous_$ac_func | |
13402 | ||
a0b9e27f | 13403 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13404 | which can conflict with char $ac_func (); below. |
13405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13406 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 13407 | |
e6cc62c6 VS |
13408 | #ifdef __STDC__ |
13409 | # include <limits.h> | |
13410 | #else | |
13411 | # include <assert.h> | |
13412 | #endif | |
f95e4495 VS |
13413 | |
13414 | #undef $ac_func | |
13415 | ||
a0b9e27f | 13416 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13417 | #ifdef __cplusplus |
13418 | extern "C" | |
13419 | { | |
13420 | #endif | |
a0b9e27f | 13421 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13422 | builtin and then its argument prototype would still apply. */ |
13423 | char $ac_func (); | |
a0b9e27f MB |
13424 | /* The GNU C library defines this for functions which it implements |
13425 | to always fail with ENOSYS. Some functions are actually named | |
13426 | something starting with __ and the normal name is an alias. */ | |
13427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13428 | choke me | |
13429 | #else | |
e6cc62c6 VS |
13430 | char (*f) () = $ac_func; |
13431 | #endif | |
13432 | #ifdef __cplusplus | |
13433 | } | |
a0b9e27f MB |
13434 | #endif |
13435 | ||
e6cc62c6 VS |
13436 | int |
13437 | main () | |
13438 | { | |
13439 | return f != $ac_func; | |
13440 | ; | |
13441 | return 0; | |
13442 | } | |
13443 | _ACEOF | |
13444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 13446 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 13447 | ac_status=$? |
f95e4495 VS |
13448 | grep -v '^ *+' conftest.er1 >conftest.err |
13449 | rm -f conftest.er1 | |
13450 | cat conftest.err >&5 | |
e6cc62c6 VS |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13452 | (exit $ac_status); } && | |
f95e4495 VS |
13453 | { ac_try='test -z "$ac_c_werror_flag" |
13454 | || test ! -s conftest.err' | |
13455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13456 | (eval $ac_try) 2>&5 | |
13457 | ac_status=$? | |
13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13459 | (exit $ac_status); }; } && | |
13460 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
13461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13462 | (eval $ac_try) 2>&5 | |
13463 | ac_status=$? | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); }; }; then | |
13466 | eval "$as_ac_var=yes" | |
13467 | else | |
13468 | echo "$as_me: failed program was:" >&5 | |
13469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13470 | ||
13471 | eval "$as_ac_var=no" | |
13472 | fi | |
f95e4495 VS |
13473 | rm -f conftest.err conftest.$ac_objext \ |
13474 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
13475 | fi |
13476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13478 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13479 | cat >>confdefs.h <<_ACEOF | |
13480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13481 | _ACEOF | |
32832908 | 13482 | |
21d1c967 GD |
13483 | fi |
13484 | done | |
90dd450c | 13485 | |
a0b9e27f | 13486 | fi |
90dd450c | 13487 | |
e6cc62c6 VS |
13488 | |
13489 | for ac_header in langinfo.h | |
21d1c967 | 13490 | do |
e6cc62c6 VS |
13491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13497 | fi | |
13498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13500 | else | |
13501 | # Is the header compilable? | |
13502 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13503 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13504 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13505 | /* confdefs.h. */ |
13506 | _ACEOF | |
13507 | cat confdefs.h >>conftest.$ac_ext | |
13508 | cat >>conftest.$ac_ext <<_ACEOF | |
13509 | /* end confdefs.h. */ | |
13510 | $ac_includes_default | |
13511 | #include <$ac_header> | |
13512 | _ACEOF | |
13513 | rm -f conftest.$ac_objext | |
13514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13515 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13516 | ac_status=$? |
f95e4495 VS |
13517 | grep -v '^ *+' conftest.er1 >conftest.err |
13518 | rm -f conftest.er1 | |
13519 | cat conftest.err >&5 | |
e6cc62c6 VS |
13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13521 | (exit $ac_status); } && | |
f95e4495 VS |
13522 | { ac_try='test -z "$ac_c_werror_flag" |
13523 | || test ! -s conftest.err' | |
13524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13525 | (eval $ac_try) 2>&5 | |
13526 | ac_status=$? | |
13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13528 | (exit $ac_status); }; } && | |
13529 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13531 | (eval $ac_try) 2>&5 | |
13532 | ac_status=$? | |
13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13534 | (exit $ac_status); }; }; then | |
13535 | ac_header_compiler=yes | |
13536 | else | |
13537 | echo "$as_me: failed program was:" >&5 | |
13538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13539 | ||
13540 | ac_header_compiler=no | |
13541 | fi | |
f95e4495 | 13542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13544 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13545 | ||
13546 | # Is the header present? | |
13547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13549 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13550 | /* confdefs.h. */ |
13551 | _ACEOF | |
13552 | cat confdefs.h >>conftest.$ac_ext | |
13553 | cat >>conftest.$ac_ext <<_ACEOF | |
13554 | /* end confdefs.h. */ | |
13555 | #include <$ac_header> | |
13556 | _ACEOF | |
13557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13559 | ac_status=$? | |
13560 | grep -v '^ *+' conftest.er1 >conftest.err | |
13561 | rm -f conftest.er1 | |
13562 | cat conftest.err >&5 | |
13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13564 | (exit $ac_status); } >/dev/null; then | |
13565 | if test -s conftest.err; then | |
13566 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 13567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13568 | else |
13569 | ac_cpp_err= | |
13570 | fi | |
13571 | else | |
13572 | ac_cpp_err=yes | |
13573 | fi | |
13574 | if test -z "$ac_cpp_err"; then | |
13575 | ac_header_preproc=yes | |
13576 | else | |
13577 | echo "$as_me: failed program was:" >&5 | |
13578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13579 | ||
13580 | ac_header_preproc=no | |
13581 | fi | |
13582 | rm -f conftest.err conftest.$ac_ext | |
13583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13584 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13585 | ||
13586 | # So? What about this header? | |
f95e4495 VS |
13587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13588 | yes:no: ) | |
e6cc62c6 VS |
13589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
13591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13593 | ac_header_preproc=yes | |
e6cc62c6 | 13594 | ;; |
f95e4495 | 13595 | no:yes:* ) |
e6cc62c6 VS |
13596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
13598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
13606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13608 | ( |
13609 | cat <<\_ASBOX | |
f95e4495 VS |
13610 | ## ----------------------------------------- ## |
13611 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13612 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13613 | _ASBOX |
13614 | ) | | |
13615 | sed "s/^/$as_me: WARNING: /" >&2 | |
13616 | ;; | |
13617 | esac | |
13618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13622 | else | |
f95e4495 | 13623 | eval "$as_ac_Header=\$ac_header_preproc" |
90dd450c | 13624 | fi |
e6cc62c6 VS |
13625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13627 | ||
4f14bcd8 | 13628 | fi |
e6cc62c6 VS |
13629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13630 | cat >>confdefs.h <<_ACEOF | |
13631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13632 | _ACEOF | |
13633 | ||
21d1c967 | 13634 | fi |
e6cc62c6 | 13635 | |
21d1c967 | 13636 | done |
3a922bb4 | 13637 | |
8284b0c5 | 13638 | |
4f5a7f74 VZ |
13639 | case "${host}" in |
13640 | *-pc-os2_emx | *-pc-os2-emx ) | |
13641 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13642 | LIBS="$LIBS -lintl" | |
13643 | fi | |
13644 | ;; | |
13645 | esac | |
1542ea39 | 13646 | |
a0b9e27f | 13647 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13648 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13649 | |
eb69fda5 | 13650 | for ac_header in X11/Xlib.h |
21d1c967 | 13651 | do |
e6cc62c6 VS |
13652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13654 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13658 | fi | |
13659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13661 | else | |
13662 | # Is the header compilable? | |
13663 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13664 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13665 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13666 | /* confdefs.h. */ |
13667 | _ACEOF | |
13668 | cat confdefs.h >>conftest.$ac_ext | |
13669 | cat >>conftest.$ac_ext <<_ACEOF | |
13670 | /* end confdefs.h. */ | |
13671 | $ac_includes_default | |
13672 | #include <$ac_header> | |
13673 | _ACEOF | |
13674 | rm -f conftest.$ac_objext | |
13675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13676 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13677 | ac_status=$? |
f95e4495 VS |
13678 | grep -v '^ *+' conftest.er1 >conftest.err |
13679 | rm -f conftest.er1 | |
13680 | cat conftest.err >&5 | |
e6cc62c6 VS |
13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13682 | (exit $ac_status); } && | |
f95e4495 VS |
13683 | { ac_try='test -z "$ac_c_werror_flag" |
13684 | || test ! -s conftest.err' | |
13685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13686 | (eval $ac_try) 2>&5 | |
13687 | ac_status=$? | |
13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13689 | (exit $ac_status); }; } && | |
13690 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13692 | (eval $ac_try) 2>&5 | |
13693 | ac_status=$? | |
13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13695 | (exit $ac_status); }; }; then | |
13696 | ac_header_compiler=yes | |
13697 | else | |
13698 | echo "$as_me: failed program was:" >&5 | |
13699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13700 | ||
13701 | ac_header_compiler=no | |
13702 | fi | |
f95e4495 | 13703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13704 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13705 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13706 | ||
13707 | # Is the header present? | |
13708 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13710 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13711 | /* confdefs.h. */ |
13712 | _ACEOF | |
13713 | cat confdefs.h >>conftest.$ac_ext | |
13714 | cat >>conftest.$ac_ext <<_ACEOF | |
13715 | /* end confdefs.h. */ | |
13716 | #include <$ac_header> | |
13717 | _ACEOF | |
13718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13720 | ac_status=$? | |
13721 | grep -v '^ *+' conftest.er1 >conftest.err | |
13722 | rm -f conftest.er1 | |
13723 | cat conftest.err >&5 | |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); } >/dev/null; then | |
13726 | if test -s conftest.err; then | |
13727 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 13728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13729 | else |
13730 | ac_cpp_err= | |
13731 | fi | |
13732 | else | |
13733 | ac_cpp_err=yes | |
13734 | fi | |
13735 | if test -z "$ac_cpp_err"; then | |
13736 | ac_header_preproc=yes | |
13737 | else | |
13738 | echo "$as_me: failed program was:" >&5 | |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13740 | ||
13741 | ac_header_preproc=no | |
13742 | fi | |
13743 | rm -f conftest.err conftest.$ac_ext | |
13744 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13745 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13746 | ||
13747 | # So? What about this header? | |
f95e4495 VS |
13748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13749 | yes:no: ) | |
e6cc62c6 VS |
13750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13751 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
13752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13753 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13754 | ac_header_preproc=yes | |
e6cc62c6 | 13755 | ;; |
f95e4495 | 13756 | no:yes:* ) |
e6cc62c6 VS |
13757 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13758 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
13759 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13760 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13761 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13762 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13763 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13764 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13766 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
13767 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13768 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13769 | ( |
13770 | cat <<\_ASBOX | |
f95e4495 VS |
13771 | ## ----------------------------------------- ## |
13772 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13773 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13774 | _ASBOX |
13775 | ) | | |
13776 | sed "s/^/$as_me: WARNING: /" >&2 | |
13777 | ;; | |
13778 | esac | |
13779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13783 | else | |
f95e4495 | 13784 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13785 | fi |
e6cc62c6 VS |
13786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13788 | ||
90dd450c | 13789 | fi |
e6cc62c6 VS |
13790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13791 | cat >>confdefs.h <<_ACEOF | |
13792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13793 | _ACEOF | |
13794 | ||
247f5006 | 13795 | fi |
e6cc62c6 | 13796 | |
eb69fda5 VS |
13797 | done |
13798 | ||
13799 | ||
13800 | for ac_header in X11/XKBlib.h | |
13801 | do | |
13802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13807 | else | |
13808 | cat >conftest.$ac_ext <<_ACEOF | |
eb69fda5 VS |
13809 | /* confdefs.h. */ |
13810 | _ACEOF | |
13811 | cat confdefs.h >>conftest.$ac_ext | |
13812 | cat >>conftest.$ac_ext <<_ACEOF | |
13813 | /* end confdefs.h. */ | |
13814 | ||
13815 | #if HAVE_X11_XLIB_H | |
13816 | #include <X11/Xlib.h> | |
13817 | #endif | |
13818 | ||
13819 | ||
13820 | #include <$ac_header> | |
13821 | _ACEOF | |
13822 | rm -f conftest.$ac_objext | |
13823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13824 | (eval $ac_compile) 2>conftest.er1 |
eb69fda5 | 13825 | ac_status=$? |
f95e4495 VS |
13826 | grep -v '^ *+' conftest.er1 >conftest.err |
13827 | rm -f conftest.er1 | |
13828 | cat conftest.err >&5 | |
eb69fda5 VS |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13830 | (exit $ac_status); } && | |
f95e4495 VS |
13831 | { ac_try='test -z "$ac_c_werror_flag" |
13832 | || test ! -s conftest.err' | |
13833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13834 | (eval $ac_try) 2>&5 | |
13835 | ac_status=$? | |
13836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13837 | (exit $ac_status); }; } && | |
13838 | { ac_try='test -s conftest.$ac_objext' | |
eb69fda5 VS |
13839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13840 | (eval $ac_try) 2>&5 | |
13841 | ac_status=$? | |
13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13843 | (exit $ac_status); }; }; then | |
13844 | eval "$as_ac_Header=yes" | |
13845 | else | |
13846 | echo "$as_me: failed program was:" >&5 | |
13847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13848 | ||
13849 | eval "$as_ac_Header=no" | |
13850 | fi | |
f95e4495 | 13851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
13852 | fi |
13853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13854 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13856 | cat >>confdefs.h <<_ACEOF | |
13857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13858 | _ACEOF | |
13859 | ||
13860 | fi | |
13861 | ||
247f5006 VZ |
13862 | done |
13863 | ||
a0b9e27f MB |
13864 | fi |
13865 | fi | |
247f5006 | 13866 | |
247f5006 | 13867 | |
e6cc62c6 VS |
13868 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13869 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13870 | if test "${ac_cv_c_const+set}" = set; then | |
13871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13872 | else | |
13873 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13874 | /* confdefs.h. */ |
13875 | _ACEOF | |
13876 | cat confdefs.h >>conftest.$ac_ext | |
13877 | cat >>conftest.$ac_ext <<_ACEOF | |
13878 | /* end confdefs.h. */ | |
13879 | ||
13880 | int | |
13881 | main () | |
13882 | { | |
13883 | /* FIXME: Include the comments suggested by Paul. */ | |
13884 | #ifndef __cplusplus | |
13885 | /* Ultrix mips cc rejects this. */ | |
13886 | typedef int charset[2]; | |
13887 | const charset x; | |
13888 | /* SunOS 4.1.1 cc rejects this. */ | |
13889 | char const *const *ccp; | |
13890 | char **p; | |
13891 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13892 | struct point {int x, y;}; | |
13893 | static struct point const zero = {0,0}; | |
13894 | /* AIX XL C 1.02.0.0 rejects this. | |
13895 | It does not let you subtract one const X* pointer from another in | |
13896 | an arm of an if-expression whose if-part is not a constant | |
13897 | expression */ | |
13898 | const char *g = "string"; | |
13899 | ccp = &g + (g ? g-g : 0); | |
13900 | /* HPUX 7.0 cc rejects these. */ | |
13901 | ++ccp; | |
13902 | p = (char**) ccp; | |
13903 | ccp = (char const *const *) p; | |
13904 | { /* SCO 3.2v4 cc rejects this. */ | |
13905 | char *t; | |
13906 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13907 | ||
13908 | *t++ = 0; | |
13909 | } | |
13910 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13911 | int x[] = {25, 17}; | |
13912 | const int *foo = &x[0]; | |
13913 | ++foo; | |
13914 | } | |
13915 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13916 | typedef const int *iptr; | |
13917 | iptr p = 0; | |
13918 | ++p; | |
13919 | } | |
13920 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13921 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13922 | struct s { int j; const int *ap[3]; }; | |
13923 | struct s *b; b->j = 5; | |
13924 | } | |
13925 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13926 | const int foo = 10; | |
13927 | } | |
13928 | #endif | |
13929 | ||
13930 | ; | |
13931 | return 0; | |
13932 | } | |
13933 | _ACEOF | |
13934 | rm -f conftest.$ac_objext | |
13935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13936 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13937 | ac_status=$? |
f95e4495 VS |
13938 | grep -v '^ *+' conftest.er1 >conftest.err |
13939 | rm -f conftest.er1 | |
13940 | cat conftest.err >&5 | |
e6cc62c6 VS |
13941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13942 | (exit $ac_status); } && | |
f95e4495 VS |
13943 | { ac_try='test -z "$ac_c_werror_flag" |
13944 | || test ! -s conftest.err' | |
13945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13946 | (eval $ac_try) 2>&5 | |
13947 | ac_status=$? | |
13948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13949 | (exit $ac_status); }; } && | |
13950 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13952 | (eval $ac_try) 2>&5 | |
13953 | ac_status=$? | |
13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13955 | (exit $ac_status); }; }; then | |
a0b9e27f | 13956 | ac_cv_c_const=yes |
247f5006 | 13957 | else |
e6cc62c6 VS |
13958 | echo "$as_me: failed program was:" >&5 |
13959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13960 | ||
13961 | ac_cv_c_const=no | |
247f5006 | 13962 | fi |
f95e4495 | 13963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13964 | fi |
e6cc62c6 VS |
13965 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13966 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13967 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13968 | |
13969 | cat >>confdefs.h <<\_ACEOF | |
13970 | #define const | |
13971 | _ACEOF | |
10f2d63a | 13972 | |
90dd450c | 13973 | fi |
81809c07 | 13974 | |
e6cc62c6 VS |
13975 | echo "$as_me:$LINENO: checking for inline" >&5 |
13976 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13977 | if test "${ac_cv_c_inline+set}" = set; then | |
13978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13979 | else |
a0b9e27f MB |
13980 | ac_cv_c_inline=no |
13981 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 13982 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
13983 | /* confdefs.h. */ |
13984 | _ACEOF | |
13985 | cat confdefs.h >>conftest.$ac_ext | |
13986 | cat >>conftest.$ac_ext <<_ACEOF | |
13987 | /* end confdefs.h. */ | |
13988 | #ifndef __cplusplus | |
13989 | typedef int foo_t; | |
13990 | static $ac_kw foo_t static_foo () {return 0; } | |
13991 | $ac_kw foo_t foo () {return 0; } | |
13992 | #endif | |
a0b9e27f | 13993 | |
e6cc62c6 VS |
13994 | _ACEOF |
13995 | rm -f conftest.$ac_objext | |
13996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 13997 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13998 | ac_status=$? |
f95e4495 VS |
13999 | grep -v '^ *+' conftest.er1 >conftest.err |
14000 | rm -f conftest.er1 | |
14001 | cat conftest.err >&5 | |
e6cc62c6 VS |
14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14003 | (exit $ac_status); } && | |
f95e4495 VS |
14004 | { ac_try='test -z "$ac_c_werror_flag" |
14005 | || test ! -s conftest.err' | |
14006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14007 | (eval $ac_try) 2>&5 | |
14008 | ac_status=$? | |
14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14010 | (exit $ac_status); }; } && | |
14011 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14013 | (eval $ac_try) 2>&5 | |
14014 | ac_status=$? | |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14016 | (exit $ac_status); }; }; then | |
a0b9e27f | 14017 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 14018 | else |
e6cc62c6 VS |
14019 | echo "$as_me: failed program was:" >&5 |
14020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14021 | ||
247f5006 | 14022 | fi |
f95e4495 | 14023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 14024 | done |
247f5006 VZ |
14025 | |
14026 | fi | |
e6cc62c6 VS |
14027 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14028 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
f95e4495 VS |
14029 | |
14030 | ||
e6cc62c6 | 14031 | case $ac_cv_c_inline in |
a0b9e27f | 14032 | inline | yes) ;; |
f95e4495 VS |
14033 | *) |
14034 | case $ac_cv_c_inline in | |
14035 | no) ac_val=;; | |
14036 | *) ac_val=$ac_cv_c_inline;; | |
14037 | esac | |
14038 | cat >>confdefs.h <<_ACEOF | |
14039 | #ifndef __cplusplus | |
14040 | #define inline $ac_val | |
14041 | #endif | |
09d3439c | 14042 | _ACEOF |
f95e4495 | 14043 | ;; |
a0b9e27f | 14044 | esac |
247f5006 | 14045 | |
247f5006 | 14046 | |
e6cc62c6 VS |
14047 | echo "$as_me:$LINENO: checking for char" >&5 |
14048 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14049 | if test "${ac_cv_type_char+set}" = set; then | |
14050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14051 | else | |
14052 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14053 | /* confdefs.h. */ |
14054 | _ACEOF | |
14055 | cat confdefs.h >>conftest.$ac_ext | |
14056 | cat >>conftest.$ac_ext <<_ACEOF | |
14057 | /* end confdefs.h. */ | |
14058 | $ac_includes_default | |
14059 | int | |
14060 | main () | |
14061 | { | |
14062 | if ((char *) 0) | |
14063 | return 0; | |
14064 | if (sizeof (char)) | |
14065 | return 0; | |
14066 | ; | |
14067 | return 0; | |
14068 | } | |
14069 | _ACEOF | |
14070 | rm -f conftest.$ac_objext | |
14071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14072 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14073 | ac_status=$? |
f95e4495 VS |
14074 | grep -v '^ *+' conftest.er1 >conftest.err |
14075 | rm -f conftest.er1 | |
14076 | cat conftest.err >&5 | |
e6cc62c6 VS |
14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14078 | (exit $ac_status); } && | |
f95e4495 VS |
14079 | { ac_try='test -z "$ac_c_werror_flag" |
14080 | || test ! -s conftest.err' | |
14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14082 | (eval $ac_try) 2>&5 | |
14083 | ac_status=$? | |
14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14085 | (exit $ac_status); }; } && | |
14086 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14088 | (eval $ac_try) 2>&5 | |
14089 | ac_status=$? | |
14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14091 | (exit $ac_status); }; }; then | |
14092 | ac_cv_type_char=yes | |
14093 | else | |
14094 | echo "$as_me: failed program was:" >&5 | |
14095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14096 | ||
14097 | ac_cv_type_char=no | |
14098 | fi | |
f95e4495 | 14099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14100 | fi |
14101 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14102 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14103 | ||
14104 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14105 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14106 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14108 | else | |
14109 | if test "$ac_cv_type_char" = yes; then | |
14110 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14111 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14112 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14113 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 14114 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
14115 | # Depending upon the size, compute the lo and hi bounds. |
14116 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14117 | /* confdefs.h. */ |
14118 | _ACEOF | |
14119 | cat confdefs.h >>conftest.$ac_ext | |
14120 | cat >>conftest.$ac_ext <<_ACEOF | |
14121 | /* end confdefs.h. */ | |
14122 | $ac_includes_default | |
14123 | int | |
14124 | main () | |
14125 | { | |
14126 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14127 | test_array [0] = 0 | |
14128 | ||
14129 | ; | |
14130 | return 0; | |
14131 | } | |
14132 | _ACEOF | |
14133 | rm -f conftest.$ac_objext | |
14134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14135 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14136 | ac_status=$? |
f95e4495 VS |
14137 | grep -v '^ *+' conftest.er1 >conftest.err |
14138 | rm -f conftest.er1 | |
14139 | cat conftest.err >&5 | |
e6cc62c6 VS |
14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14141 | (exit $ac_status); } && | |
f95e4495 VS |
14142 | { ac_try='test -z "$ac_c_werror_flag" |
14143 | || test ! -s conftest.err' | |
14144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14145 | (eval $ac_try) 2>&5 | |
14146 | ac_status=$? | |
14147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14148 | (exit $ac_status); }; } && | |
14149 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14151 | (eval $ac_try) 2>&5 | |
14152 | ac_status=$? | |
14153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14154 | (exit $ac_status); }; }; then | |
14155 | ac_lo=0 ac_mid=0 | |
14156 | while :; do | |
14157 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14158 | /* confdefs.h. */ |
14159 | _ACEOF | |
14160 | cat confdefs.h >>conftest.$ac_ext | |
14161 | cat >>conftest.$ac_ext <<_ACEOF | |
14162 | /* end confdefs.h. */ | |
14163 | $ac_includes_default | |
14164 | int | |
14165 | main () | |
14166 | { | |
14167 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14168 | test_array [0] = 0 | |
14169 | ||
14170 | ; | |
14171 | return 0; | |
14172 | } | |
14173 | _ACEOF | |
14174 | rm -f conftest.$ac_objext | |
14175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14176 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14177 | ac_status=$? |
f95e4495 VS |
14178 | grep -v '^ *+' conftest.er1 >conftest.err |
14179 | rm -f conftest.er1 | |
14180 | cat conftest.err >&5 | |
e6cc62c6 VS |
14181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14182 | (exit $ac_status); } && | |
f95e4495 VS |
14183 | { ac_try='test -z "$ac_c_werror_flag" |
14184 | || test ! -s conftest.err' | |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; } && | |
14190 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); }; }; then | |
14196 | ac_hi=$ac_mid; break | |
14197 | else | |
14198 | echo "$as_me: failed program was:" >&5 | |
14199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14200 | ||
14201 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
14202 | if test $ac_lo -le $ac_mid; then |
14203 | ac_lo= ac_hi= | |
14204 | break | |
14205 | fi | |
14206 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 14207 | fi |
f95e4495 | 14208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14209 | done |
a0b9e27f | 14210 | else |
e6cc62c6 VS |
14211 | echo "$as_me: failed program was:" >&5 |
14212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14213 | ||
14214 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14215 | /* confdefs.h. */ |
14216 | _ACEOF | |
14217 | cat confdefs.h >>conftest.$ac_ext | |
14218 | cat >>conftest.$ac_ext <<_ACEOF | |
14219 | /* end confdefs.h. */ | |
14220 | $ac_includes_default | |
14221 | int | |
14222 | main () | |
14223 | { | |
14224 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14225 | test_array [0] = 0 | |
14226 | ||
14227 | ; | |
14228 | return 0; | |
14229 | } | |
14230 | _ACEOF | |
14231 | rm -f conftest.$ac_objext | |
14232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14233 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14234 | ac_status=$? |
f95e4495 VS |
14235 | grep -v '^ *+' conftest.er1 >conftest.err |
14236 | rm -f conftest.er1 | |
14237 | cat conftest.err >&5 | |
e6cc62c6 VS |
14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14239 | (exit $ac_status); } && | |
f95e4495 VS |
14240 | { ac_try='test -z "$ac_c_werror_flag" |
14241 | || test ! -s conftest.err' | |
14242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14243 | (eval $ac_try) 2>&5 | |
14244 | ac_status=$? | |
14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14246 | (exit $ac_status); }; } && | |
14247 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14249 | (eval $ac_try) 2>&5 | |
14250 | ac_status=$? | |
14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14252 | (exit $ac_status); }; }; then | |
14253 | ac_hi=-1 ac_mid=-1 | |
14254 | while :; do | |
14255 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14256 | /* confdefs.h. */ |
14257 | _ACEOF | |
14258 | cat confdefs.h >>conftest.$ac_ext | |
14259 | cat >>conftest.$ac_ext <<_ACEOF | |
14260 | /* end confdefs.h. */ | |
14261 | $ac_includes_default | |
14262 | int | |
14263 | main () | |
14264 | { | |
14265 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14266 | test_array [0] = 0 | |
14267 | ||
14268 | ; | |
14269 | return 0; | |
14270 | } | |
14271 | _ACEOF | |
14272 | rm -f conftest.$ac_objext | |
14273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14274 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14275 | ac_status=$? |
f95e4495 VS |
14276 | grep -v '^ *+' conftest.er1 >conftest.err |
14277 | rm -f conftest.er1 | |
14278 | cat conftest.err >&5 | |
e6cc62c6 VS |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14280 | (exit $ac_status); } && | |
f95e4495 VS |
14281 | { ac_try='test -z "$ac_c_werror_flag" |
14282 | || test ! -s conftest.err' | |
14283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14284 | (eval $ac_try) 2>&5 | |
14285 | ac_status=$? | |
14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14287 | (exit $ac_status); }; } && | |
14288 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14290 | (eval $ac_try) 2>&5 | |
14291 | ac_status=$? | |
14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14293 | (exit $ac_status); }; }; then | |
14294 | ac_lo=$ac_mid; break | |
14295 | else | |
14296 | echo "$as_me: failed program was:" >&5 | |
14297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14298 | ||
14299 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
14300 | if test $ac_mid -le $ac_hi; then |
14301 | ac_lo= ac_hi= | |
14302 | break | |
14303 | fi | |
14304 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14305 | fi |
f95e4495 | 14306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14307 | done |
14308 | else | |
14309 | echo "$as_me: failed program was:" >&5 | |
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14311 | ||
14312 | ac_lo= ac_hi= | |
14313 | fi | |
f95e4495 | 14314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14315 | fi |
f95e4495 | 14316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14317 | # Binary search between lo and hi bounds. |
14318 | while test "x$ac_lo" != "x$ac_hi"; do | |
14319 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14320 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14321 | /* confdefs.h. */ |
14322 | _ACEOF | |
14323 | cat confdefs.h >>conftest.$ac_ext | |
14324 | cat >>conftest.$ac_ext <<_ACEOF | |
14325 | /* end confdefs.h. */ | |
14326 | $ac_includes_default | |
14327 | int | |
14328 | main () | |
14329 | { | |
14330 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14331 | test_array [0] = 0 | |
14332 | ||
14333 | ; | |
14334 | return 0; | |
14335 | } | |
14336 | _ACEOF | |
14337 | rm -f conftest.$ac_objext | |
14338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14339 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14340 | ac_status=$? |
f95e4495 VS |
14341 | grep -v '^ *+' conftest.er1 >conftest.err |
14342 | rm -f conftest.er1 | |
14343 | cat conftest.err >&5 | |
e6cc62c6 VS |
14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14345 | (exit $ac_status); } && | |
f95e4495 VS |
14346 | { ac_try='test -z "$ac_c_werror_flag" |
14347 | || test ! -s conftest.err' | |
14348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14349 | (eval $ac_try) 2>&5 | |
14350 | ac_status=$? | |
14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14352 | (exit $ac_status); }; } && | |
14353 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14355 | (eval $ac_try) 2>&5 | |
14356 | ac_status=$? | |
14357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14358 | (exit $ac_status); }; }; then | |
14359 | ac_hi=$ac_mid | |
14360 | else | |
14361 | echo "$as_me: failed program was:" >&5 | |
14362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14363 | ||
14364 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14365 | fi | |
f95e4495 | 14366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14367 | done |
14368 | case $ac_lo in | |
14369 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14370 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14371 | See \`config.log' for more details." >&5 | |
14372 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14373 | See \`config.log' for more details." >&2;} | |
14374 | { (exit 1); exit 1; }; } ;; | |
14375 | esac | |
14376 | else | |
14377 | if test "$cross_compiling" = yes; then | |
14378 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14379 | See \`config.log' for more details." >&5 | |
14380 | echo "$as_me: error: cannot run test program while cross compiling | |
14381 | See \`config.log' for more details." >&2;} | |
14382 | { (exit 1); exit 1; }; } | |
14383 | else | |
14384 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14385 | /* confdefs.h. */ |
14386 | _ACEOF | |
14387 | cat confdefs.h >>conftest.$ac_ext | |
14388 | cat >>conftest.$ac_ext <<_ACEOF | |
14389 | /* end confdefs.h. */ | |
14390 | $ac_includes_default | |
14391 | long longval () { return (long) (sizeof (char)); } | |
14392 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14393 | #include <stdio.h> |
e6cc62c6 VS |
14394 | #include <stdlib.h> |
14395 | int | |
14396 | main () | |
247f5006 | 14397 | { |
e6cc62c6 VS |
14398 | |
14399 | FILE *f = fopen ("conftest.val", "w"); | |
14400 | if (! f) | |
14401 | exit (1); | |
14402 | if (((long) (sizeof (char))) < 0) | |
14403 | { | |
14404 | long i = longval (); | |
14405 | if (i != ((long) (sizeof (char)))) | |
14406 | exit (1); | |
14407 | fprintf (f, "%ld\n", i); | |
14408 | } | |
14409 | else | |
14410 | { | |
14411 | unsigned long i = ulongval (); | |
14412 | if (i != ((long) (sizeof (char)))) | |
14413 | exit (1); | |
14414 | fprintf (f, "%lu\n", i); | |
14415 | } | |
14416 | exit (ferror (f) || fclose (f) != 0); | |
14417 | ||
14418 | ; | |
14419 | return 0; | |
52127426 | 14420 | } |
e6cc62c6 VS |
14421 | _ACEOF |
14422 | rm -f conftest$ac_exeext | |
14423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14424 | (eval $ac_link) 2>&5 | |
14425 | ac_status=$? | |
14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14429 | (eval $ac_try) 2>&5 | |
14430 | ac_status=$? | |
14431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14432 | (exit $ac_status); }; }; then | |
14433 | ac_cv_sizeof_char=`cat conftest.val` | |
14434 | else | |
14435 | echo "$as_me: program exited with status $ac_status" >&5 | |
14436 | echo "$as_me: failed program was:" >&5 | |
14437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14438 | ||
14439 | ( exit $ac_status ) | |
14440 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14441 | See \`config.log' for more details." >&5 | |
14442 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14443 | See \`config.log' for more details." >&2;} | |
14444 | { (exit 1); exit 1; }; } | |
14445 | fi | |
f95e4495 | 14446 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14447 | fi |
14448 | fi | |
14449 | rm -f conftest.val | |
247f5006 | 14450 | else |
a0b9e27f | 14451 | ac_cv_sizeof_char=0 |
247f5006 | 14452 | fi |
247f5006 | 14453 | fi |
e6cc62c6 VS |
14454 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14455 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14456 | cat >>confdefs.h <<_ACEOF | |
14457 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14458 | _ACEOF | |
14459 | ||
14460 | ||
14461 | echo "$as_me:$LINENO: checking for short" >&5 | |
14462 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14463 | if test "${ac_cv_type_short+set}" = set; then | |
14464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14465 | else | |
14466 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14467 | /* confdefs.h. */ |
14468 | _ACEOF | |
14469 | cat confdefs.h >>conftest.$ac_ext | |
14470 | cat >>conftest.$ac_ext <<_ACEOF | |
14471 | /* end confdefs.h. */ | |
14472 | $ac_includes_default | |
14473 | int | |
14474 | main () | |
14475 | { | |
14476 | if ((short *) 0) | |
14477 | return 0; | |
14478 | if (sizeof (short)) | |
14479 | return 0; | |
14480 | ; | |
14481 | return 0; | |
14482 | } | |
14483 | _ACEOF | |
14484 | rm -f conftest.$ac_objext | |
14485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14486 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14487 | ac_status=$? |
f95e4495 VS |
14488 | grep -v '^ *+' conftest.er1 >conftest.err |
14489 | rm -f conftest.er1 | |
14490 | cat conftest.err >&5 | |
e6cc62c6 VS |
14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14492 | (exit $ac_status); } && | |
f95e4495 VS |
14493 | { ac_try='test -z "$ac_c_werror_flag" |
14494 | || test ! -s conftest.err' | |
14495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14496 | (eval $ac_try) 2>&5 | |
14497 | ac_status=$? | |
14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14499 | (exit $ac_status); }; } && | |
14500 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14502 | (eval $ac_try) 2>&5 | |
14503 | ac_status=$? | |
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14505 | (exit $ac_status); }; }; then | |
14506 | ac_cv_type_short=yes | |
14507 | else | |
14508 | echo "$as_me: failed program was:" >&5 | |
14509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14510 | ||
14511 | ac_cv_type_short=no | |
14512 | fi | |
f95e4495 | 14513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14514 | fi |
14515 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14516 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14517 | ||
14518 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14519 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14520 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14522 | else | |
14523 | if test "$ac_cv_type_short" = yes; then | |
14524 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14525 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14526 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14527 | # This bug is HP SR number 8606223364. | |
14528 | if test "$cross_compiling" = yes; then | |
14529 | # Depending upon the size, compute the lo and hi bounds. | |
14530 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14531 | /* confdefs.h. */ |
14532 | _ACEOF | |
14533 | cat confdefs.h >>conftest.$ac_ext | |
14534 | cat >>conftest.$ac_ext <<_ACEOF | |
14535 | /* end confdefs.h. */ | |
14536 | $ac_includes_default | |
14537 | int | |
14538 | main () | |
14539 | { | |
14540 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14541 | test_array [0] = 0 | |
247f5006 | 14542 | |
e6cc62c6 VS |
14543 | ; |
14544 | return 0; | |
14545 | } | |
14546 | _ACEOF | |
14547 | rm -f conftest.$ac_objext | |
14548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14549 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14550 | ac_status=$? |
f95e4495 VS |
14551 | grep -v '^ *+' conftest.er1 >conftest.err |
14552 | rm -f conftest.er1 | |
14553 | cat conftest.err >&5 | |
e6cc62c6 VS |
14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14555 | (exit $ac_status); } && | |
f95e4495 VS |
14556 | { ac_try='test -z "$ac_c_werror_flag" |
14557 | || test ! -s conftest.err' | |
14558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14559 | (eval $ac_try) 2>&5 | |
14560 | ac_status=$? | |
14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14562 | (exit $ac_status); }; } && | |
14563 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14565 | (eval $ac_try) 2>&5 | |
14566 | ac_status=$? | |
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14568 | (exit $ac_status); }; }; then | |
14569 | ac_lo=0 ac_mid=0 | |
14570 | while :; do | |
14571 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14572 | /* confdefs.h. */ |
14573 | _ACEOF | |
14574 | cat confdefs.h >>conftest.$ac_ext | |
14575 | cat >>conftest.$ac_ext <<_ACEOF | |
14576 | /* end confdefs.h. */ | |
14577 | $ac_includes_default | |
14578 | int | |
14579 | main () | |
14580 | { | |
14581 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14582 | test_array [0] = 0 | |
14583 | ||
14584 | ; | |
14585 | return 0; | |
14586 | } | |
14587 | _ACEOF | |
14588 | rm -f conftest.$ac_objext | |
14589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14590 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14591 | ac_status=$? |
f95e4495 VS |
14592 | grep -v '^ *+' conftest.er1 >conftest.err |
14593 | rm -f conftest.er1 | |
14594 | cat conftest.err >&5 | |
e6cc62c6 VS |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14596 | (exit $ac_status); } && | |
f95e4495 VS |
14597 | { ac_try='test -z "$ac_c_werror_flag" |
14598 | || test ! -s conftest.err' | |
14599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14600 | (eval $ac_try) 2>&5 | |
14601 | ac_status=$? | |
14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14603 | (exit $ac_status); }; } && | |
14604 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14606 | (eval $ac_try) 2>&5 | |
14607 | ac_status=$? | |
14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14609 | (exit $ac_status); }; }; then | |
14610 | ac_hi=$ac_mid; break | |
14611 | else | |
14612 | echo "$as_me: failed program was:" >&5 | |
14613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14614 | ||
14615 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
14616 | if test $ac_lo -le $ac_mid; then |
14617 | ac_lo= ac_hi= | |
14618 | break | |
14619 | fi | |
14620 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14621 | fi |
f95e4495 | 14622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14623 | done |
14624 | else | |
14625 | echo "$as_me: failed program was:" >&5 | |
14626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14627 | ||
14628 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14629 | /* confdefs.h. */ |
14630 | _ACEOF | |
14631 | cat confdefs.h >>conftest.$ac_ext | |
14632 | cat >>conftest.$ac_ext <<_ACEOF | |
14633 | /* end confdefs.h. */ | |
14634 | $ac_includes_default | |
14635 | int | |
14636 | main () | |
14637 | { | |
14638 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14639 | test_array [0] = 0 | |
247f5006 | 14640 | |
e6cc62c6 VS |
14641 | ; |
14642 | return 0; | |
14643 | } | |
14644 | _ACEOF | |
14645 | rm -f conftest.$ac_objext | |
14646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14647 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14648 | ac_status=$? |
f95e4495 VS |
14649 | grep -v '^ *+' conftest.er1 >conftest.err |
14650 | rm -f conftest.er1 | |
14651 | cat conftest.err >&5 | |
e6cc62c6 VS |
14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14653 | (exit $ac_status); } && | |
f95e4495 VS |
14654 | { ac_try='test -z "$ac_c_werror_flag" |
14655 | || test ! -s conftest.err' | |
14656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14657 | (eval $ac_try) 2>&5 | |
14658 | ac_status=$? | |
14659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14660 | (exit $ac_status); }; } && | |
14661 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14663 | (eval $ac_try) 2>&5 | |
14664 | ac_status=$? | |
14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14666 | (exit $ac_status); }; }; then | |
14667 | ac_hi=-1 ac_mid=-1 | |
14668 | while :; do | |
14669 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14670 | /* confdefs.h. */ |
14671 | _ACEOF | |
14672 | cat confdefs.h >>conftest.$ac_ext | |
14673 | cat >>conftest.$ac_ext <<_ACEOF | |
14674 | /* end confdefs.h. */ | |
14675 | $ac_includes_default | |
14676 | int | |
14677 | main () | |
14678 | { | |
14679 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14680 | test_array [0] = 0 | |
247f5006 | 14681 | |
e6cc62c6 VS |
14682 | ; |
14683 | return 0; | |
14684 | } | |
14685 | _ACEOF | |
14686 | rm -f conftest.$ac_objext | |
14687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14688 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14689 | ac_status=$? |
f95e4495 VS |
14690 | grep -v '^ *+' conftest.er1 >conftest.err |
14691 | rm -f conftest.er1 | |
14692 | cat conftest.err >&5 | |
e6cc62c6 VS |
14693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14694 | (exit $ac_status); } && | |
f95e4495 VS |
14695 | { ac_try='test -z "$ac_c_werror_flag" |
14696 | || test ! -s conftest.err' | |
14697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14698 | (eval $ac_try) 2>&5 | |
14699 | ac_status=$? | |
14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 | (exit $ac_status); }; } && | |
14702 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14704 | (eval $ac_try) 2>&5 | |
14705 | ac_status=$? | |
14706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14707 | (exit $ac_status); }; }; then | |
14708 | ac_lo=$ac_mid; break | |
14709 | else | |
14710 | echo "$as_me: failed program was:" >&5 | |
14711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14712 | ||
14713 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
14714 | if test $ac_mid -le $ac_hi; then |
14715 | ac_lo= ac_hi= | |
14716 | break | |
14717 | fi | |
14718 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14719 | fi |
f95e4495 | 14720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14721 | done |
247f5006 | 14722 | else |
e6cc62c6 VS |
14723 | echo "$as_me: failed program was:" >&5 |
14724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14725 | ||
14726 | ac_lo= ac_hi= | |
14727 | fi | |
f95e4495 | 14728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14729 | fi |
f95e4495 | 14730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14731 | # Binary search between lo and hi bounds. |
14732 | while test "x$ac_lo" != "x$ac_hi"; do | |
14733 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14734 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14735 | /* confdefs.h. */ |
14736 | _ACEOF | |
14737 | cat confdefs.h >>conftest.$ac_ext | |
14738 | cat >>conftest.$ac_ext <<_ACEOF | |
14739 | /* end confdefs.h. */ | |
14740 | $ac_includes_default | |
14741 | int | |
14742 | main () | |
14743 | { | |
14744 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14745 | test_array [0] = 0 | |
14746 | ||
14747 | ; | |
14748 | return 0; | |
14749 | } | |
14750 | _ACEOF | |
14751 | rm -f conftest.$ac_objext | |
14752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14753 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14754 | ac_status=$? |
f95e4495 VS |
14755 | grep -v '^ *+' conftest.er1 >conftest.err |
14756 | rm -f conftest.er1 | |
14757 | cat conftest.err >&5 | |
e6cc62c6 VS |
14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14759 | (exit $ac_status); } && | |
f95e4495 VS |
14760 | { ac_try='test -z "$ac_c_werror_flag" |
14761 | || test ! -s conftest.err' | |
14762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14763 | (eval $ac_try) 2>&5 | |
14764 | ac_status=$? | |
14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14766 | (exit $ac_status); }; } && | |
14767 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14769 | (eval $ac_try) 2>&5 | |
14770 | ac_status=$? | |
14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14772 | (exit $ac_status); }; }; then | |
14773 | ac_hi=$ac_mid | |
14774 | else | |
14775 | echo "$as_me: failed program was:" >&5 | |
14776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14777 | ||
14778 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14779 | fi | |
f95e4495 | 14780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14781 | done |
14782 | case $ac_lo in | |
14783 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14784 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14785 | See \`config.log' for more details." >&5 | |
14786 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14787 | See \`config.log' for more details." >&2;} | |
14788 | { (exit 1); exit 1; }; } ;; | |
14789 | esac | |
247f5006 | 14790 | else |
e6cc62c6 VS |
14791 | if test "$cross_compiling" = yes; then |
14792 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14793 | See \`config.log' for more details." >&5 | |
14794 | echo "$as_me: error: cannot run test program while cross compiling | |
14795 | See \`config.log' for more details." >&2;} | |
14796 | { (exit 1); exit 1; }; } | |
14797 | else | |
14798 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14799 | /* confdefs.h. */ |
14800 | _ACEOF | |
14801 | cat confdefs.h >>conftest.$ac_ext | |
14802 | cat >>conftest.$ac_ext <<_ACEOF | |
14803 | /* end confdefs.h. */ | |
14804 | $ac_includes_default | |
14805 | long longval () { return (long) (sizeof (short)); } | |
14806 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14807 | #include <stdio.h> |
e6cc62c6 VS |
14808 | #include <stdlib.h> |
14809 | int | |
14810 | main () | |
a0b9e27f | 14811 | { |
e6cc62c6 VS |
14812 | |
14813 | FILE *f = fopen ("conftest.val", "w"); | |
14814 | if (! f) | |
14815 | exit (1); | |
14816 | if (((long) (sizeof (short))) < 0) | |
14817 | { | |
14818 | long i = longval (); | |
14819 | if (i != ((long) (sizeof (short)))) | |
14820 | exit (1); | |
14821 | fprintf (f, "%ld\n", i); | |
14822 | } | |
14823 | else | |
14824 | { | |
14825 | unsigned long i = ulongval (); | |
14826 | if (i != ((long) (sizeof (short)))) | |
14827 | exit (1); | |
14828 | fprintf (f, "%lu\n", i); | |
14829 | } | |
14830 | exit (ferror (f) || fclose (f) != 0); | |
14831 | ||
14832 | ; | |
14833 | return 0; | |
a0b9e27f | 14834 | } |
e6cc62c6 VS |
14835 | _ACEOF |
14836 | rm -f conftest$ac_exeext | |
14837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14838 | (eval $ac_link) 2>&5 | |
14839 | ac_status=$? | |
14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14843 | (eval $ac_try) 2>&5 | |
14844 | ac_status=$? | |
14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14846 | (exit $ac_status); }; }; then | |
14847 | ac_cv_sizeof_short=`cat conftest.val` | |
14848 | else | |
14849 | echo "$as_me: program exited with status $ac_status" >&5 | |
14850 | echo "$as_me: failed program was:" >&5 | |
14851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14852 | ||
14853 | ( exit $ac_status ) | |
14854 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14855 | See \`config.log' for more details." >&5 | |
14856 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14857 | See \`config.log' for more details." >&2;} | |
14858 | { (exit 1); exit 1; }; } | |
14859 | fi | |
f95e4495 | 14860 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14861 | fi |
14862 | fi | |
14863 | rm -f conftest.val | |
247f5006 | 14864 | else |
a0b9e27f | 14865 | ac_cv_sizeof_short=0 |
247f5006 | 14866 | fi |
247f5006 | 14867 | fi |
e6cc62c6 VS |
14868 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14869 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14870 | cat >>confdefs.h <<_ACEOF | |
14871 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14872 | _ACEOF | |
14873 | ||
14874 | ||
14875 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14876 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14877 | if test "${ac_cv_type_void_p+set}" = set; then | |
14878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14879 | else | |
14880 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14881 | /* confdefs.h. */ |
14882 | _ACEOF | |
14883 | cat confdefs.h >>conftest.$ac_ext | |
14884 | cat >>conftest.$ac_ext <<_ACEOF | |
14885 | /* end confdefs.h. */ | |
14886 | $ac_includes_default | |
14887 | int | |
14888 | main () | |
14889 | { | |
14890 | if ((void * *) 0) | |
14891 | return 0; | |
14892 | if (sizeof (void *)) | |
14893 | return 0; | |
14894 | ; | |
14895 | return 0; | |
14896 | } | |
14897 | _ACEOF | |
14898 | rm -f conftest.$ac_objext | |
14899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14900 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14901 | ac_status=$? |
f95e4495 VS |
14902 | grep -v '^ *+' conftest.er1 >conftest.err |
14903 | rm -f conftest.er1 | |
14904 | cat conftest.err >&5 | |
e6cc62c6 VS |
14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14906 | (exit $ac_status); } && | |
f95e4495 VS |
14907 | { ac_try='test -z "$ac_c_werror_flag" |
14908 | || test ! -s conftest.err' | |
14909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14910 | (eval $ac_try) 2>&5 | |
14911 | ac_status=$? | |
14912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14913 | (exit $ac_status); }; } && | |
14914 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
14920 | ac_cv_type_void_p=yes | |
14921 | else | |
14922 | echo "$as_me: failed program was:" >&5 | |
14923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14924 | ||
14925 | ac_cv_type_void_p=no | |
14926 | fi | |
f95e4495 | 14927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14928 | fi |
14929 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14930 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14931 | ||
14932 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14933 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14934 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14936 | else | |
14937 | if test "$ac_cv_type_void_p" = yes; then | |
14938 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14939 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14940 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14941 | # This bug is HP SR number 8606223364. | |
14942 | if test "$cross_compiling" = yes; then | |
14943 | # Depending upon the size, compute the lo and hi bounds. | |
14944 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14945 | /* confdefs.h. */ |
14946 | _ACEOF | |
14947 | cat confdefs.h >>conftest.$ac_ext | |
14948 | cat >>conftest.$ac_ext <<_ACEOF | |
14949 | /* end confdefs.h. */ | |
14950 | $ac_includes_default | |
14951 | int | |
14952 | main () | |
14953 | { | |
14954 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14955 | test_array [0] = 0 | |
14956 | ||
14957 | ; | |
14958 | return 0; | |
14959 | } | |
14960 | _ACEOF | |
14961 | rm -f conftest.$ac_objext | |
14962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 14963 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14964 | ac_status=$? |
f95e4495 VS |
14965 | grep -v '^ *+' conftest.er1 >conftest.err |
14966 | rm -f conftest.er1 | |
14967 | cat conftest.err >&5 | |
e6cc62c6 VS |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14969 | (exit $ac_status); } && | |
f95e4495 VS |
14970 | { ac_try='test -z "$ac_c_werror_flag" |
14971 | || test ! -s conftest.err' | |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; } && | |
14977 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14979 | (eval $ac_try) 2>&5 | |
14980 | ac_status=$? | |
14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14982 | (exit $ac_status); }; }; then | |
14983 | ac_lo=0 ac_mid=0 | |
14984 | while :; do | |
14985 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14986 | /* confdefs.h. */ |
14987 | _ACEOF | |
14988 | cat confdefs.h >>conftest.$ac_ext | |
14989 | cat >>conftest.$ac_ext <<_ACEOF | |
14990 | /* end confdefs.h. */ | |
14991 | $ac_includes_default | |
14992 | int | |
14993 | main () | |
14994 | { | |
14995 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14996 | test_array [0] = 0 | |
247f5006 | 14997 | |
e6cc62c6 VS |
14998 | ; |
14999 | return 0; | |
15000 | } | |
15001 | _ACEOF | |
15002 | rm -f conftest.$ac_objext | |
15003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15004 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15005 | ac_status=$? |
f95e4495 VS |
15006 | grep -v '^ *+' conftest.er1 >conftest.err |
15007 | rm -f conftest.er1 | |
15008 | cat conftest.err >&5 | |
e6cc62c6 VS |
15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15010 | (exit $ac_status); } && | |
f95e4495 VS |
15011 | { ac_try='test -z "$ac_c_werror_flag" |
15012 | || test ! -s conftest.err' | |
15013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15014 | (eval $ac_try) 2>&5 | |
15015 | ac_status=$? | |
15016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15017 | (exit $ac_status); }; } && | |
15018 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15020 | (eval $ac_try) 2>&5 | |
15021 | ac_status=$? | |
15022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15023 | (exit $ac_status); }; }; then | |
15024 | ac_hi=$ac_mid; break | |
15025 | else | |
15026 | echo "$as_me: failed program was:" >&5 | |
15027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15028 | ||
15029 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
15030 | if test $ac_lo -le $ac_mid; then |
15031 | ac_lo= ac_hi= | |
15032 | break | |
15033 | fi | |
15034 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15035 | fi |
f95e4495 | 15036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15037 | done |
15038 | else | |
15039 | echo "$as_me: failed program was:" >&5 | |
15040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15041 | ||
15042 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15043 | /* confdefs.h. */ |
15044 | _ACEOF | |
15045 | cat confdefs.h >>conftest.$ac_ext | |
15046 | cat >>conftest.$ac_ext <<_ACEOF | |
15047 | /* end confdefs.h. */ | |
15048 | $ac_includes_default | |
15049 | int | |
15050 | main () | |
15051 | { | |
15052 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15053 | test_array [0] = 0 | |
247f5006 | 15054 | |
e6cc62c6 VS |
15055 | ; |
15056 | return 0; | |
15057 | } | |
15058 | _ACEOF | |
15059 | rm -f conftest.$ac_objext | |
15060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15061 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15062 | ac_status=$? |
f95e4495 VS |
15063 | grep -v '^ *+' conftest.er1 >conftest.err |
15064 | rm -f conftest.er1 | |
15065 | cat conftest.err >&5 | |
e6cc62c6 VS |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15067 | (exit $ac_status); } && | |
f95e4495 VS |
15068 | { ac_try='test -z "$ac_c_werror_flag" |
15069 | || test ! -s conftest.err' | |
15070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15071 | (eval $ac_try) 2>&5 | |
15072 | ac_status=$? | |
15073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15074 | (exit $ac_status); }; } && | |
15075 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15077 | (eval $ac_try) 2>&5 | |
15078 | ac_status=$? | |
15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15080 | (exit $ac_status); }; }; then | |
15081 | ac_hi=-1 ac_mid=-1 | |
15082 | while :; do | |
15083 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15084 | /* confdefs.h. */ |
15085 | _ACEOF | |
15086 | cat confdefs.h >>conftest.$ac_ext | |
15087 | cat >>conftest.$ac_ext <<_ACEOF | |
15088 | /* end confdefs.h. */ | |
15089 | $ac_includes_default | |
15090 | int | |
15091 | main () | |
15092 | { | |
15093 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15094 | test_array [0] = 0 | |
247f5006 | 15095 | |
e6cc62c6 VS |
15096 | ; |
15097 | return 0; | |
15098 | } | |
15099 | _ACEOF | |
15100 | rm -f conftest.$ac_objext | |
15101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15102 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15103 | ac_status=$? |
f95e4495 VS |
15104 | grep -v '^ *+' conftest.er1 >conftest.err |
15105 | rm -f conftest.er1 | |
15106 | cat conftest.err >&5 | |
e6cc62c6 VS |
15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15108 | (exit $ac_status); } && | |
f95e4495 VS |
15109 | { ac_try='test -z "$ac_c_werror_flag" |
15110 | || test ! -s conftest.err' | |
15111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15112 | (eval $ac_try) 2>&5 | |
15113 | ac_status=$? | |
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15115 | (exit $ac_status); }; } && | |
15116 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15118 | (eval $ac_try) 2>&5 | |
15119 | ac_status=$? | |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15121 | (exit $ac_status); }; }; then | |
15122 | ac_lo=$ac_mid; break | |
15123 | else | |
15124 | echo "$as_me: failed program was:" >&5 | |
15125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15126 | ||
15127 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
15128 | if test $ac_mid -le $ac_hi; then |
15129 | ac_lo= ac_hi= | |
15130 | break | |
15131 | fi | |
15132 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15133 | fi |
f95e4495 | 15134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15135 | done |
a0b9e27f | 15136 | else |
e6cc62c6 VS |
15137 | echo "$as_me: failed program was:" >&5 |
15138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15139 | ||
15140 | ac_lo= ac_hi= | |
15141 | fi | |
f95e4495 | 15142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15143 | fi |
f95e4495 | 15144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15145 | # Binary search between lo and hi bounds. |
15146 | while test "x$ac_lo" != "x$ac_hi"; do | |
15147 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15148 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15149 | /* confdefs.h. */ |
15150 | _ACEOF | |
15151 | cat confdefs.h >>conftest.$ac_ext | |
15152 | cat >>conftest.$ac_ext <<_ACEOF | |
15153 | /* end confdefs.h. */ | |
15154 | $ac_includes_default | |
15155 | int | |
15156 | main () | |
15157 | { | |
15158 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15159 | test_array [0] = 0 | |
15160 | ||
15161 | ; | |
15162 | return 0; | |
15163 | } | |
15164 | _ACEOF | |
15165 | rm -f conftest.$ac_objext | |
15166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15167 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15168 | ac_status=$? |
f95e4495 VS |
15169 | grep -v '^ *+' conftest.er1 >conftest.err |
15170 | rm -f conftest.er1 | |
15171 | cat conftest.err >&5 | |
e6cc62c6 VS |
15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15173 | (exit $ac_status); } && | |
f95e4495 VS |
15174 | { ac_try='test -z "$ac_c_werror_flag" |
15175 | || test ! -s conftest.err' | |
15176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15177 | (eval $ac_try) 2>&5 | |
15178 | ac_status=$? | |
15179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15180 | (exit $ac_status); }; } && | |
15181 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15183 | (eval $ac_try) 2>&5 | |
15184 | ac_status=$? | |
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15186 | (exit $ac_status); }; }; then | |
15187 | ac_hi=$ac_mid | |
15188 | else | |
15189 | echo "$as_me: failed program was:" >&5 | |
15190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15191 | ||
15192 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15193 | fi | |
f95e4495 | 15194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15195 | done |
15196 | case $ac_lo in | |
15197 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15198 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15199 | See \`config.log' for more details." >&5 | |
15200 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15201 | See \`config.log' for more details." >&2;} | |
15202 | { (exit 1); exit 1; }; } ;; | |
15203 | esac | |
247f5006 | 15204 | else |
e6cc62c6 VS |
15205 | if test "$cross_compiling" = yes; then |
15206 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15207 | See \`config.log' for more details." >&5 | |
15208 | echo "$as_me: error: cannot run test program while cross compiling | |
15209 | See \`config.log' for more details." >&2;} | |
15210 | { (exit 1); exit 1; }; } | |
15211 | else | |
15212 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15213 | /* confdefs.h. */ |
15214 | _ACEOF | |
15215 | cat confdefs.h >>conftest.$ac_ext | |
15216 | cat >>conftest.$ac_ext <<_ACEOF | |
15217 | /* end confdefs.h. */ | |
15218 | $ac_includes_default | |
15219 | long longval () { return (long) (sizeof (void *)); } | |
15220 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 15221 | #include <stdio.h> |
e6cc62c6 VS |
15222 | #include <stdlib.h> |
15223 | int | |
15224 | main () | |
247f5006 | 15225 | { |
e6cc62c6 VS |
15226 | |
15227 | FILE *f = fopen ("conftest.val", "w"); | |
15228 | if (! f) | |
15229 | exit (1); | |
15230 | if (((long) (sizeof (void *))) < 0) | |
15231 | { | |
15232 | long i = longval (); | |
15233 | if (i != ((long) (sizeof (void *)))) | |
15234 | exit (1); | |
15235 | fprintf (f, "%ld\n", i); | |
15236 | } | |
15237 | else | |
15238 | { | |
15239 | unsigned long i = ulongval (); | |
15240 | if (i != ((long) (sizeof (void *)))) | |
15241 | exit (1); | |
15242 | fprintf (f, "%lu\n", i); | |
15243 | } | |
15244 | exit (ferror (f) || fclose (f) != 0); | |
15245 | ||
15246 | ; | |
15247 | return 0; | |
5c6fa7d2 | 15248 | } |
e6cc62c6 VS |
15249 | _ACEOF |
15250 | rm -f conftest$ac_exeext | |
15251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15252 | (eval $ac_link) 2>&5 | |
15253 | ac_status=$? | |
15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15257 | (eval $ac_try) 2>&5 | |
15258 | ac_status=$? | |
15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15260 | (exit $ac_status); }; }; then | |
15261 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15262 | else | |
15263 | echo "$as_me: program exited with status $ac_status" >&5 | |
15264 | echo "$as_me: failed program was:" >&5 | |
15265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15266 | ||
15267 | ( exit $ac_status ) | |
15268 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15269 | See \`config.log' for more details." >&5 | |
15270 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15271 | See \`config.log' for more details." >&2;} | |
15272 | { (exit 1); exit 1; }; } | |
15273 | fi | |
f95e4495 | 15274 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15275 | fi |
15276 | fi | |
15277 | rm -f conftest.val | |
a0b9e27f | 15278 | else |
a0b9e27f MB |
15279 | ac_cv_sizeof_void_p=0 |
15280 | fi | |
a0b9e27f | 15281 | fi |
e6cc62c6 VS |
15282 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15283 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15284 | cat >>confdefs.h <<_ACEOF | |
15285 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15286 | _ACEOF | |
15287 | ||
15288 | ||
15289 | echo "$as_me:$LINENO: checking for int" >&5 | |
15290 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15291 | if test "${ac_cv_type_int+set}" = set; then | |
15292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15293 | else | |
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 | if ((int *) 0) | |
15305 | return 0; | |
15306 | if (sizeof (int)) | |
15307 | return 0; | |
15308 | ; | |
15309 | return 0; | |
15310 | } | |
15311 | _ACEOF | |
15312 | rm -f conftest.$ac_objext | |
15313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15314 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15315 | ac_status=$? |
f95e4495 VS |
15316 | grep -v '^ *+' conftest.er1 >conftest.err |
15317 | rm -f conftest.er1 | |
15318 | cat conftest.err >&5 | |
e6cc62c6 VS |
15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15320 | (exit $ac_status); } && | |
f95e4495 VS |
15321 | { ac_try='test -z "$ac_c_werror_flag" |
15322 | || test ! -s conftest.err' | |
15323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15324 | (eval $ac_try) 2>&5 | |
15325 | ac_status=$? | |
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15327 | (exit $ac_status); }; } && | |
15328 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15330 | (eval $ac_try) 2>&5 | |
15331 | ac_status=$? | |
15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15333 | (exit $ac_status); }; }; then | |
15334 | ac_cv_type_int=yes | |
15335 | else | |
15336 | echo "$as_me: failed program was:" >&5 | |
15337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15338 | ||
15339 | ac_cv_type_int=no | |
15340 | fi | |
f95e4495 | 15341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15342 | fi |
15343 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15344 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15345 | ||
15346 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15347 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15348 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15350 | else | |
15351 | if test "$ac_cv_type_int" = yes; then | |
15352 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15353 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15354 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15355 | # This bug is HP SR number 8606223364. | |
15356 | if test "$cross_compiling" = yes; then | |
15357 | # Depending upon the size, compute the lo and hi bounds. | |
15358 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15359 | /* confdefs.h. */ |
15360 | _ACEOF | |
15361 | cat confdefs.h >>conftest.$ac_ext | |
15362 | cat >>conftest.$ac_ext <<_ACEOF | |
15363 | /* end confdefs.h. */ | |
15364 | $ac_includes_default | |
15365 | int | |
15366 | main () | |
15367 | { | |
15368 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15369 | test_array [0] = 0 | |
8284b0c5 | 15370 | |
e6cc62c6 VS |
15371 | ; |
15372 | return 0; | |
15373 | } | |
15374 | _ACEOF | |
15375 | rm -f conftest.$ac_objext | |
15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15377 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15378 | ac_status=$? |
f95e4495 VS |
15379 | grep -v '^ *+' conftest.er1 >conftest.err |
15380 | rm -f conftest.er1 | |
15381 | cat conftest.err >&5 | |
e6cc62c6 VS |
15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15383 | (exit $ac_status); } && | |
f95e4495 VS |
15384 | { ac_try='test -z "$ac_c_werror_flag" |
15385 | || test ! -s conftest.err' | |
15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15387 | (eval $ac_try) 2>&5 | |
15388 | ac_status=$? | |
15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15390 | (exit $ac_status); }; } && | |
15391 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; }; then | |
15397 | ac_lo=0 ac_mid=0 | |
15398 | while :; do | |
15399 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15400 | /* confdefs.h. */ |
15401 | _ACEOF | |
15402 | cat confdefs.h >>conftest.$ac_ext | |
15403 | cat >>conftest.$ac_ext <<_ACEOF | |
15404 | /* end confdefs.h. */ | |
15405 | $ac_includes_default | |
15406 | int | |
15407 | main () | |
15408 | { | |
15409 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15410 | test_array [0] = 0 | |
15411 | ||
15412 | ; | |
15413 | return 0; | |
15414 | } | |
15415 | _ACEOF | |
15416 | rm -f conftest.$ac_objext | |
15417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15418 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15419 | ac_status=$? |
f95e4495 VS |
15420 | grep -v '^ *+' conftest.er1 >conftest.err |
15421 | rm -f conftest.er1 | |
15422 | cat conftest.err >&5 | |
e6cc62c6 VS |
15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15424 | (exit $ac_status); } && | |
f95e4495 VS |
15425 | { ac_try='test -z "$ac_c_werror_flag" |
15426 | || test ! -s conftest.err' | |
15427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15428 | (eval $ac_try) 2>&5 | |
15429 | ac_status=$? | |
15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15431 | (exit $ac_status); }; } && | |
15432 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15434 | (eval $ac_try) 2>&5 | |
15435 | ac_status=$? | |
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15437 | (exit $ac_status); }; }; then | |
15438 | ac_hi=$ac_mid; break | |
15439 | else | |
15440 | echo "$as_me: failed program was:" >&5 | |
15441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15442 | ||
15443 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
15444 | if test $ac_lo -le $ac_mid; then |
15445 | ac_lo= ac_hi= | |
15446 | break | |
15447 | fi | |
15448 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15449 | fi |
f95e4495 | 15450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15451 | done |
15452 | else | |
15453 | echo "$as_me: failed program was:" >&5 | |
15454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15455 | ||
15456 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15457 | /* confdefs.h. */ |
15458 | _ACEOF | |
15459 | cat confdefs.h >>conftest.$ac_ext | |
15460 | cat >>conftest.$ac_ext <<_ACEOF | |
15461 | /* end confdefs.h. */ | |
15462 | $ac_includes_default | |
15463 | int | |
15464 | main () | |
15465 | { | |
15466 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15467 | test_array [0] = 0 | |
247f5006 | 15468 | |
e6cc62c6 VS |
15469 | ; |
15470 | return 0; | |
15471 | } | |
15472 | _ACEOF | |
15473 | rm -f conftest.$ac_objext | |
15474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15475 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15476 | ac_status=$? |
f95e4495 VS |
15477 | grep -v '^ *+' conftest.er1 >conftest.err |
15478 | rm -f conftest.er1 | |
15479 | cat conftest.err >&5 | |
e6cc62c6 VS |
15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15481 | (exit $ac_status); } && | |
f95e4495 VS |
15482 | { ac_try='test -z "$ac_c_werror_flag" |
15483 | || test ! -s conftest.err' | |
15484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15485 | (eval $ac_try) 2>&5 | |
15486 | ac_status=$? | |
15487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15488 | (exit $ac_status); }; } && | |
15489 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15491 | (eval $ac_try) 2>&5 | |
15492 | ac_status=$? | |
15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15494 | (exit $ac_status); }; }; then | |
15495 | ac_hi=-1 ac_mid=-1 | |
15496 | while :; do | |
15497 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15498 | /* confdefs.h. */ |
15499 | _ACEOF | |
15500 | cat confdefs.h >>conftest.$ac_ext | |
15501 | cat >>conftest.$ac_ext <<_ACEOF | |
15502 | /* end confdefs.h. */ | |
15503 | $ac_includes_default | |
15504 | int | |
15505 | main () | |
15506 | { | |
15507 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15508 | test_array [0] = 0 | |
247f5006 | 15509 | |
e6cc62c6 VS |
15510 | ; |
15511 | return 0; | |
15512 | } | |
15513 | _ACEOF | |
15514 | rm -f conftest.$ac_objext | |
15515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15516 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15517 | ac_status=$? |
f95e4495 VS |
15518 | grep -v '^ *+' conftest.er1 >conftest.err |
15519 | rm -f conftest.er1 | |
15520 | cat conftest.err >&5 | |
e6cc62c6 VS |
15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15522 | (exit $ac_status); } && | |
f95e4495 VS |
15523 | { ac_try='test -z "$ac_c_werror_flag" |
15524 | || test ! -s conftest.err' | |
15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15526 | (eval $ac_try) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); }; } && | |
15530 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15532 | (eval $ac_try) 2>&5 | |
15533 | ac_status=$? | |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15535 | (exit $ac_status); }; }; then | |
15536 | ac_lo=$ac_mid; break | |
15537 | else | |
15538 | echo "$as_me: failed program was:" >&5 | |
15539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15540 | ||
15541 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
15542 | if test $ac_mid -le $ac_hi; then |
15543 | ac_lo= ac_hi= | |
15544 | break | |
15545 | fi | |
15546 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15547 | fi |
f95e4495 | 15548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15549 | done |
247f5006 | 15550 | else |
e6cc62c6 VS |
15551 | echo "$as_me: failed program was:" >&5 |
15552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15553 | ||
15554 | ac_lo= ac_hi= | |
15555 | fi | |
f95e4495 | 15556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15557 | fi |
f95e4495 | 15558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15559 | # Binary search between lo and hi bounds. |
15560 | while test "x$ac_lo" != "x$ac_hi"; do | |
15561 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15562 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15563 | /* confdefs.h. */ |
15564 | _ACEOF | |
15565 | cat confdefs.h >>conftest.$ac_ext | |
15566 | cat >>conftest.$ac_ext <<_ACEOF | |
15567 | /* end confdefs.h. */ | |
15568 | $ac_includes_default | |
15569 | int | |
15570 | main () | |
15571 | { | |
15572 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15573 | test_array [0] = 0 | |
15574 | ||
15575 | ; | |
15576 | return 0; | |
15577 | } | |
15578 | _ACEOF | |
15579 | rm -f conftest.$ac_objext | |
15580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15581 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15582 | ac_status=$? |
f95e4495 VS |
15583 | grep -v '^ *+' conftest.er1 >conftest.err |
15584 | rm -f conftest.er1 | |
15585 | cat conftest.err >&5 | |
e6cc62c6 VS |
15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15587 | (exit $ac_status); } && | |
f95e4495 VS |
15588 | { ac_try='test -z "$ac_c_werror_flag" |
15589 | || test ! -s conftest.err' | |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; } && | |
15595 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15597 | (eval $ac_try) 2>&5 | |
15598 | ac_status=$? | |
15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15600 | (exit $ac_status); }; }; then | |
15601 | ac_hi=$ac_mid | |
15602 | else | |
15603 | echo "$as_me: failed program was:" >&5 | |
15604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15605 | ||
15606 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15607 | fi | |
f95e4495 | 15608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15609 | done |
15610 | case $ac_lo in | |
15611 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15612 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15613 | See \`config.log' for more details." >&5 | |
15614 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15615 | See \`config.log' for more details." >&2;} | |
15616 | { (exit 1); exit 1; }; } ;; | |
15617 | esac | |
a0b9e27f | 15618 | else |
e6cc62c6 VS |
15619 | if test "$cross_compiling" = yes; then |
15620 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15621 | See \`config.log' for more details." >&5 | |
15622 | echo "$as_me: error: cannot run test program while cross compiling | |
15623 | See \`config.log' for more details." >&2;} | |
15624 | { (exit 1); exit 1; }; } | |
15625 | else | |
15626 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15627 | /* confdefs.h. */ |
15628 | _ACEOF | |
15629 | cat confdefs.h >>conftest.$ac_ext | |
15630 | cat >>conftest.$ac_ext <<_ACEOF | |
15631 | /* end confdefs.h. */ | |
15632 | $ac_includes_default | |
15633 | long longval () { return (long) (sizeof (int)); } | |
15634 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15635 | #include <stdio.h> |
e6cc62c6 VS |
15636 | #include <stdlib.h> |
15637 | int | |
15638 | main () | |
247f5006 | 15639 | { |
e6cc62c6 VS |
15640 | |
15641 | FILE *f = fopen ("conftest.val", "w"); | |
15642 | if (! f) | |
15643 | exit (1); | |
15644 | if (((long) (sizeof (int))) < 0) | |
15645 | { | |
15646 | long i = longval (); | |
15647 | if (i != ((long) (sizeof (int)))) | |
15648 | exit (1); | |
15649 | fprintf (f, "%ld\n", i); | |
15650 | } | |
15651 | else | |
15652 | { | |
15653 | unsigned long i = ulongval (); | |
15654 | if (i != ((long) (sizeof (int)))) | |
15655 | exit (1); | |
15656 | fprintf (f, "%lu\n", i); | |
15657 | } | |
15658 | exit (ferror (f) || fclose (f) != 0); | |
15659 | ||
15660 | ; | |
15661 | return 0; | |
247f5006 | 15662 | } |
e6cc62c6 VS |
15663 | _ACEOF |
15664 | rm -f conftest$ac_exeext | |
15665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15666 | (eval $ac_link) 2>&5 | |
15667 | ac_status=$? | |
15668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15671 | (eval $ac_try) 2>&5 | |
15672 | ac_status=$? | |
15673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15674 | (exit $ac_status); }; }; then | |
15675 | ac_cv_sizeof_int=`cat conftest.val` | |
15676 | else | |
15677 | echo "$as_me: program exited with status $ac_status" >&5 | |
15678 | echo "$as_me: failed program was:" >&5 | |
15679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15680 | ||
15681 | ( exit $ac_status ) | |
15682 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15683 | See \`config.log' for more details." >&5 | |
15684 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15685 | See \`config.log' for more details." >&2;} | |
15686 | { (exit 1); exit 1; }; } | |
15687 | fi | |
f95e4495 | 15688 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15689 | fi |
15690 | fi | |
15691 | rm -f conftest.val | |
6f72b082 | 15692 | else |
a0b9e27f | 15693 | ac_cv_sizeof_int=0 |
21d1c967 | 15694 | fi |
698dcdb6 | 15695 | fi |
e6cc62c6 VS |
15696 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15697 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15698 | cat >>confdefs.h <<_ACEOF | |
15699 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15700 | _ACEOF | |
15701 | ||
15702 | ||
15703 | echo "$as_me:$LINENO: checking for long" >&5 | |
15704 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15705 | if test "${ac_cv_type_long+set}" = set; then | |
15706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15707 | else | |
15708 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15709 | /* confdefs.h. */ |
15710 | _ACEOF | |
15711 | cat confdefs.h >>conftest.$ac_ext | |
15712 | cat >>conftest.$ac_ext <<_ACEOF | |
15713 | /* end confdefs.h. */ | |
15714 | $ac_includes_default | |
15715 | int | |
15716 | main () | |
15717 | { | |
15718 | if ((long *) 0) | |
15719 | return 0; | |
15720 | if (sizeof (long)) | |
15721 | return 0; | |
15722 | ; | |
15723 | return 0; | |
15724 | } | |
15725 | _ACEOF | |
15726 | rm -f conftest.$ac_objext | |
15727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15728 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15729 | ac_status=$? |
f95e4495 VS |
15730 | grep -v '^ *+' conftest.er1 >conftest.err |
15731 | rm -f conftest.er1 | |
15732 | cat conftest.err >&5 | |
e6cc62c6 VS |
15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15734 | (exit $ac_status); } && | |
f95e4495 VS |
15735 | { ac_try='test -z "$ac_c_werror_flag" |
15736 | || test ! -s conftest.err' | |
15737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15738 | (eval $ac_try) 2>&5 | |
15739 | ac_status=$? | |
15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15741 | (exit $ac_status); }; } && | |
15742 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15744 | (eval $ac_try) 2>&5 | |
15745 | ac_status=$? | |
15746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15747 | (exit $ac_status); }; }; then | |
15748 | ac_cv_type_long=yes | |
15749 | else | |
15750 | echo "$as_me: failed program was:" >&5 | |
15751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15752 | ||
15753 | ac_cv_type_long=no | |
15754 | fi | |
f95e4495 | 15755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15756 | fi |
15757 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15758 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15759 | ||
15760 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15761 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15762 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15764 | else | |
15765 | if test "$ac_cv_type_long" = yes; then | |
15766 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15767 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15768 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15769 | # This bug is HP SR number 8606223364. | |
15770 | if test "$cross_compiling" = yes; then | |
15771 | # Depending upon the size, compute the lo and hi bounds. | |
15772 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15773 | /* confdefs.h. */ |
15774 | _ACEOF | |
15775 | cat confdefs.h >>conftest.$ac_ext | |
15776 | cat >>conftest.$ac_ext <<_ACEOF | |
15777 | /* end confdefs.h. */ | |
15778 | $ac_includes_default | |
15779 | int | |
15780 | main () | |
15781 | { | |
15782 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15783 | test_array [0] = 0 | |
15784 | ||
15785 | ; | |
15786 | return 0; | |
15787 | } | |
15788 | _ACEOF | |
15789 | rm -f conftest.$ac_objext | |
15790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15791 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15792 | ac_status=$? |
f95e4495 VS |
15793 | grep -v '^ *+' conftest.er1 >conftest.err |
15794 | rm -f conftest.er1 | |
15795 | cat conftest.err >&5 | |
e6cc62c6 VS |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15797 | (exit $ac_status); } && | |
f95e4495 VS |
15798 | { ac_try='test -z "$ac_c_werror_flag" |
15799 | || test ! -s conftest.err' | |
15800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15801 | (eval $ac_try) 2>&5 | |
15802 | ac_status=$? | |
15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15804 | (exit $ac_status); }; } && | |
15805 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15807 | (eval $ac_try) 2>&5 | |
15808 | ac_status=$? | |
15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15810 | (exit $ac_status); }; }; then | |
15811 | ac_lo=0 ac_mid=0 | |
15812 | while :; do | |
15813 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15814 | /* confdefs.h. */ |
15815 | _ACEOF | |
15816 | cat confdefs.h >>conftest.$ac_ext | |
15817 | cat >>conftest.$ac_ext <<_ACEOF | |
15818 | /* end confdefs.h. */ | |
15819 | $ac_includes_default | |
15820 | int | |
15821 | main () | |
15822 | { | |
15823 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15824 | test_array [0] = 0 | |
4f14bcd8 | 15825 | |
e6cc62c6 VS |
15826 | ; |
15827 | return 0; | |
15828 | } | |
15829 | _ACEOF | |
15830 | rm -f conftest.$ac_objext | |
15831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15832 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15833 | ac_status=$? |
f95e4495 VS |
15834 | grep -v '^ *+' conftest.er1 >conftest.err |
15835 | rm -f conftest.er1 | |
15836 | cat conftest.err >&5 | |
e6cc62c6 VS |
15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15838 | (exit $ac_status); } && | |
f95e4495 VS |
15839 | { ac_try='test -z "$ac_c_werror_flag" |
15840 | || test ! -s conftest.err' | |
15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15842 | (eval $ac_try) 2>&5 | |
15843 | ac_status=$? | |
15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15845 | (exit $ac_status); }; } && | |
15846 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15848 | (eval $ac_try) 2>&5 | |
15849 | ac_status=$? | |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15851 | (exit $ac_status); }; }; then | |
15852 | ac_hi=$ac_mid; break | |
15853 | else | |
15854 | echo "$as_me: failed program was:" >&5 | |
15855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15856 | ||
15857 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
15858 | if test $ac_lo -le $ac_mid; then |
15859 | ac_lo= ac_hi= | |
15860 | break | |
15861 | fi | |
15862 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15863 | fi |
f95e4495 | 15864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15865 | done |
15866 | else | |
15867 | echo "$as_me: failed program was:" >&5 | |
15868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15869 | ||
15870 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15871 | /* confdefs.h. */ |
15872 | _ACEOF | |
15873 | cat confdefs.h >>conftest.$ac_ext | |
15874 | cat >>conftest.$ac_ext <<_ACEOF | |
15875 | /* end confdefs.h. */ | |
15876 | $ac_includes_default | |
15877 | int | |
15878 | main () | |
15879 | { | |
15880 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15881 | test_array [0] = 0 | |
4f14bcd8 | 15882 | |
e6cc62c6 VS |
15883 | ; |
15884 | return 0; | |
15885 | } | |
15886 | _ACEOF | |
15887 | rm -f conftest.$ac_objext | |
15888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15889 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15890 | ac_status=$? |
f95e4495 VS |
15891 | grep -v '^ *+' conftest.er1 >conftest.err |
15892 | rm -f conftest.er1 | |
15893 | cat conftest.err >&5 | |
e6cc62c6 VS |
15894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15895 | (exit $ac_status); } && | |
f95e4495 VS |
15896 | { ac_try='test -z "$ac_c_werror_flag" |
15897 | || test ! -s conftest.err' | |
15898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15899 | (eval $ac_try) 2>&5 | |
15900 | ac_status=$? | |
15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15902 | (exit $ac_status); }; } && | |
15903 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15905 | (eval $ac_try) 2>&5 | |
15906 | ac_status=$? | |
15907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15908 | (exit $ac_status); }; }; then | |
15909 | ac_hi=-1 ac_mid=-1 | |
15910 | while :; do | |
15911 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15912 | /* confdefs.h. */ |
15913 | _ACEOF | |
15914 | cat confdefs.h >>conftest.$ac_ext | |
15915 | cat >>conftest.$ac_ext <<_ACEOF | |
15916 | /* end confdefs.h. */ | |
15917 | $ac_includes_default | |
15918 | int | |
15919 | main () | |
15920 | { | |
15921 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15922 | test_array [0] = 0 | |
5c6fa7d2 | 15923 | |
e6cc62c6 VS |
15924 | ; |
15925 | return 0; | |
15926 | } | |
15927 | _ACEOF | |
15928 | rm -f conftest.$ac_objext | |
15929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15930 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15931 | ac_status=$? |
f95e4495 VS |
15932 | grep -v '^ *+' conftest.er1 >conftest.err |
15933 | rm -f conftest.er1 | |
15934 | cat conftest.err >&5 | |
e6cc62c6 VS |
15935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15936 | (exit $ac_status); } && | |
f95e4495 VS |
15937 | { ac_try='test -z "$ac_c_werror_flag" |
15938 | || test ! -s conftest.err' | |
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); }; } && | |
15944 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15946 | (eval $ac_try) 2>&5 | |
15947 | ac_status=$? | |
15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15949 | (exit $ac_status); }; }; then | |
15950 | ac_lo=$ac_mid; break | |
15951 | else | |
15952 | echo "$as_me: failed program was:" >&5 | |
15953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15954 | ||
15955 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
15956 | if test $ac_mid -le $ac_hi; then |
15957 | ac_lo= ac_hi= | |
15958 | break | |
15959 | fi | |
15960 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15961 | fi |
f95e4495 | 15962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15963 | done |
247f5006 | 15964 | else |
e6cc62c6 VS |
15965 | echo "$as_me: failed program was:" >&5 |
15966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15967 | ||
15968 | ac_lo= ac_hi= | |
15969 | fi | |
f95e4495 | 15970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15971 | fi |
f95e4495 | 15972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15973 | # Binary search between lo and hi bounds. |
15974 | while test "x$ac_lo" != "x$ac_hi"; do | |
15975 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15976 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15977 | /* confdefs.h. */ |
15978 | _ACEOF | |
15979 | cat confdefs.h >>conftest.$ac_ext | |
15980 | cat >>conftest.$ac_ext <<_ACEOF | |
15981 | /* end confdefs.h. */ | |
15982 | $ac_includes_default | |
15983 | int | |
15984 | main () | |
15985 | { | |
15986 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15987 | test_array [0] = 0 | |
15988 | ||
15989 | ; | |
15990 | return 0; | |
15991 | } | |
15992 | _ACEOF | |
15993 | rm -f conftest.$ac_objext | |
15994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 15995 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15996 | ac_status=$? |
f95e4495 VS |
15997 | grep -v '^ *+' conftest.er1 >conftest.err |
15998 | rm -f conftest.er1 | |
15999 | cat conftest.err >&5 | |
e6cc62c6 VS |
16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16001 | (exit $ac_status); } && | |
f95e4495 VS |
16002 | { ac_try='test -z "$ac_c_werror_flag" |
16003 | || test ! -s conftest.err' | |
16004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16005 | (eval $ac_try) 2>&5 | |
16006 | ac_status=$? | |
16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16008 | (exit $ac_status); }; } && | |
16009 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16011 | (eval $ac_try) 2>&5 | |
16012 | ac_status=$? | |
16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16014 | (exit $ac_status); }; }; then | |
16015 | ac_hi=$ac_mid | |
16016 | else | |
16017 | echo "$as_me: failed program was:" >&5 | |
16018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16019 | ||
16020 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16021 | fi | |
f95e4495 | 16022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16023 | done |
16024 | case $ac_lo in | |
16025 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16026 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16027 | See \`config.log' for more details." >&5 | |
16028 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16029 | See \`config.log' for more details." >&2;} | |
16030 | { (exit 1); exit 1; }; } ;; | |
16031 | esac | |
247f5006 | 16032 | else |
e6cc62c6 VS |
16033 | if test "$cross_compiling" = yes; then |
16034 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16035 | See \`config.log' for more details." >&5 | |
16036 | echo "$as_me: error: cannot run test program while cross compiling | |
16037 | See \`config.log' for more details." >&2;} | |
16038 | { (exit 1); exit 1; }; } | |
16039 | else | |
16040 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16041 | /* confdefs.h. */ |
16042 | _ACEOF | |
16043 | cat confdefs.h >>conftest.$ac_ext | |
16044 | cat >>conftest.$ac_ext <<_ACEOF | |
16045 | /* end confdefs.h. */ | |
16046 | $ac_includes_default | |
16047 | long longval () { return (long) (sizeof (long)); } | |
16048 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 16049 | #include <stdio.h> |
e6cc62c6 VS |
16050 | #include <stdlib.h> |
16051 | int | |
16052 | main () | |
247f5006 | 16053 | { |
e6cc62c6 VS |
16054 | |
16055 | FILE *f = fopen ("conftest.val", "w"); | |
16056 | if (! f) | |
16057 | exit (1); | |
16058 | if (((long) (sizeof (long))) < 0) | |
16059 | { | |
16060 | long i = longval (); | |
16061 | if (i != ((long) (sizeof (long)))) | |
16062 | exit (1); | |
16063 | fprintf (f, "%ld\n", i); | |
16064 | } | |
16065 | else | |
16066 | { | |
16067 | unsigned long i = ulongval (); | |
16068 | if (i != ((long) (sizeof (long)))) | |
16069 | exit (1); | |
16070 | fprintf (f, "%lu\n", i); | |
16071 | } | |
16072 | exit (ferror (f) || fclose (f) != 0); | |
16073 | ||
16074 | ; | |
16075 | return 0; | |
247f5006 | 16076 | } |
e6cc62c6 VS |
16077 | _ACEOF |
16078 | rm -f conftest$ac_exeext | |
16079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16080 | (eval $ac_link) 2>&5 | |
16081 | ac_status=$? | |
16082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16083 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16085 | (eval $ac_try) 2>&5 | |
16086 | ac_status=$? | |
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16088 | (exit $ac_status); }; }; then | |
16089 | ac_cv_sizeof_long=`cat conftest.val` | |
16090 | else | |
16091 | echo "$as_me: program exited with status $ac_status" >&5 | |
16092 | echo "$as_me: failed program was:" >&5 | |
16093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16094 | ||
16095 | ( exit $ac_status ) | |
16096 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16097 | See \`config.log' for more details." >&5 | |
16098 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16099 | See \`config.log' for more details." >&2;} | |
16100 | { (exit 1); exit 1; }; } | |
16101 | fi | |
f95e4495 | 16102 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16103 | fi |
16104 | fi | |
16105 | rm -f conftest.val | |
247f5006 | 16106 | else |
a0b9e27f | 16107 | ac_cv_sizeof_long=0 |
247f5006 | 16108 | fi |
247f5006 | 16109 | fi |
e6cc62c6 VS |
16110 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16111 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16112 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 16113 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 16114 | _ACEOF |
247f5006 | 16115 | |
a0b9e27f MB |
16116 | |
16117 | ||
16118 | case "${host}" in | |
16119 | arm-*-linux* ) | |
e6cc62c6 VS |
16120 | echo "$as_me:$LINENO: checking for long long" >&5 |
16121 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16122 | if test "${ac_cv_type_long_long+set}" = set; then | |
16123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16124 | else | |
16125 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16126 | /* confdefs.h. */ |
16127 | _ACEOF | |
16128 | cat confdefs.h >>conftest.$ac_ext | |
16129 | cat >>conftest.$ac_ext <<_ACEOF | |
16130 | /* end confdefs.h. */ | |
16131 | $ac_includes_default | |
16132 | int | |
16133 | main () | |
16134 | { | |
16135 | if ((long long *) 0) | |
16136 | return 0; | |
16137 | if (sizeof (long long)) | |
16138 | return 0; | |
16139 | ; | |
16140 | return 0; | |
16141 | } | |
16142 | _ACEOF | |
16143 | rm -f conftest.$ac_objext | |
16144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16145 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16146 | ac_status=$? |
f95e4495 VS |
16147 | grep -v '^ *+' conftest.er1 >conftest.err |
16148 | rm -f conftest.er1 | |
16149 | cat conftest.err >&5 | |
e6cc62c6 VS |
16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16151 | (exit $ac_status); } && | |
f95e4495 VS |
16152 | { ac_try='test -z "$ac_c_werror_flag" |
16153 | || test ! -s conftest.err' | |
16154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16155 | (eval $ac_try) 2>&5 | |
16156 | ac_status=$? | |
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; } && | |
16159 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16161 | (eval $ac_try) 2>&5 | |
16162 | ac_status=$? | |
16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16164 | (exit $ac_status); }; }; then | |
16165 | ac_cv_type_long_long=yes | |
16166 | else | |
16167 | echo "$as_me: failed program was:" >&5 | |
16168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16169 | ||
16170 | ac_cv_type_long_long=no | |
16171 | fi | |
f95e4495 | 16172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16173 | fi |
16174 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16175 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16176 | ||
16177 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16178 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16179 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16181 | else | |
16182 | if test "$ac_cv_type_long_long" = yes; then | |
16183 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16184 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16185 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16186 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16187 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16188 | # Depending upon the size, compute the lo and hi bounds. |
16189 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16190 | /* confdefs.h. */ |
16191 | _ACEOF | |
16192 | cat confdefs.h >>conftest.$ac_ext | |
16193 | cat >>conftest.$ac_ext <<_ACEOF | |
16194 | /* end confdefs.h. */ | |
16195 | $ac_includes_default | |
16196 | int | |
16197 | main () | |
16198 | { | |
16199 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16200 | test_array [0] = 0 | |
16201 | ||
16202 | ; | |
16203 | return 0; | |
16204 | } | |
16205 | _ACEOF | |
16206 | rm -f conftest.$ac_objext | |
16207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16208 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16209 | ac_status=$? |
f95e4495 VS |
16210 | grep -v '^ *+' conftest.er1 >conftest.err |
16211 | rm -f conftest.er1 | |
16212 | cat conftest.err >&5 | |
e6cc62c6 VS |
16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16214 | (exit $ac_status); } && | |
f95e4495 VS |
16215 | { ac_try='test -z "$ac_c_werror_flag" |
16216 | || test ! -s conftest.err' | |
16217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16218 | (eval $ac_try) 2>&5 | |
16219 | ac_status=$? | |
16220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16221 | (exit $ac_status); }; } && | |
16222 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16224 | (eval $ac_try) 2>&5 | |
16225 | ac_status=$? | |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16227 | (exit $ac_status); }; }; then | |
16228 | ac_lo=0 ac_mid=0 | |
16229 | while :; do | |
16230 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16231 | /* confdefs.h. */ |
16232 | _ACEOF | |
16233 | cat confdefs.h >>conftest.$ac_ext | |
16234 | cat >>conftest.$ac_ext <<_ACEOF | |
16235 | /* end confdefs.h. */ | |
16236 | $ac_includes_default | |
16237 | int | |
16238 | main () | |
16239 | { | |
16240 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16241 | test_array [0] = 0 | |
16242 | ||
16243 | ; | |
16244 | return 0; | |
16245 | } | |
16246 | _ACEOF | |
16247 | rm -f conftest.$ac_objext | |
16248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16249 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16250 | ac_status=$? |
f95e4495 VS |
16251 | grep -v '^ *+' conftest.er1 >conftest.err |
16252 | rm -f conftest.er1 | |
16253 | cat conftest.err >&5 | |
e6cc62c6 VS |
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16255 | (exit $ac_status); } && | |
f95e4495 VS |
16256 | { ac_try='test -z "$ac_c_werror_flag" |
16257 | || test ! -s conftest.err' | |
16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16259 | (eval $ac_try) 2>&5 | |
16260 | ac_status=$? | |
16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16262 | (exit $ac_status); }; } && | |
16263 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16265 | (eval $ac_try) 2>&5 | |
16266 | ac_status=$? | |
16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16268 | (exit $ac_status); }; }; then | |
16269 | ac_hi=$ac_mid; break | |
16270 | else | |
16271 | echo "$as_me: failed program was:" >&5 | |
16272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16273 | ||
16274 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
16275 | if test $ac_lo -le $ac_mid; then |
16276 | ac_lo= ac_hi= | |
16277 | break | |
16278 | fi | |
16279 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16280 | fi |
f95e4495 | 16281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16282 | done |
16283 | else | |
16284 | echo "$as_me: failed program was:" >&5 | |
16285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16286 | ||
16287 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16288 | /* confdefs.h. */ |
16289 | _ACEOF | |
16290 | cat confdefs.h >>conftest.$ac_ext | |
16291 | cat >>conftest.$ac_ext <<_ACEOF | |
16292 | /* end confdefs.h. */ | |
16293 | $ac_includes_default | |
16294 | int | |
16295 | main () | |
16296 | { | |
16297 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16298 | test_array [0] = 0 | |
16299 | ||
16300 | ; | |
16301 | return 0; | |
16302 | } | |
16303 | _ACEOF | |
16304 | rm -f conftest.$ac_objext | |
16305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16306 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16307 | ac_status=$? |
f95e4495 VS |
16308 | grep -v '^ *+' conftest.er1 >conftest.err |
16309 | rm -f conftest.er1 | |
16310 | cat conftest.err >&5 | |
e6cc62c6 VS |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16312 | (exit $ac_status); } && | |
f95e4495 VS |
16313 | { ac_try='test -z "$ac_c_werror_flag" |
16314 | || test ! -s conftest.err' | |
16315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16316 | (eval $ac_try) 2>&5 | |
16317 | ac_status=$? | |
16318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16319 | (exit $ac_status); }; } && | |
16320 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16322 | (eval $ac_try) 2>&5 | |
16323 | ac_status=$? | |
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16325 | (exit $ac_status); }; }; then | |
16326 | ac_hi=-1 ac_mid=-1 | |
16327 | while :; do | |
16328 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16329 | /* confdefs.h. */ |
16330 | _ACEOF | |
16331 | cat confdefs.h >>conftest.$ac_ext | |
16332 | cat >>conftest.$ac_ext <<_ACEOF | |
16333 | /* end confdefs.h. */ | |
16334 | $ac_includes_default | |
16335 | int | |
16336 | main () | |
16337 | { | |
16338 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16339 | test_array [0] = 0 | |
16340 | ||
16341 | ; | |
16342 | return 0; | |
16343 | } | |
16344 | _ACEOF | |
16345 | rm -f conftest.$ac_objext | |
16346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16347 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16348 | ac_status=$? |
f95e4495 VS |
16349 | grep -v '^ *+' conftest.er1 >conftest.err |
16350 | rm -f conftest.er1 | |
16351 | cat conftest.err >&5 | |
e6cc62c6 VS |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16353 | (exit $ac_status); } && | |
f95e4495 VS |
16354 | { ac_try='test -z "$ac_c_werror_flag" |
16355 | || test ! -s conftest.err' | |
16356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16357 | (eval $ac_try) 2>&5 | |
16358 | ac_status=$? | |
16359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16360 | (exit $ac_status); }; } && | |
16361 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16363 | (eval $ac_try) 2>&5 | |
16364 | ac_status=$? | |
16365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16366 | (exit $ac_status); }; }; then | |
16367 | ac_lo=$ac_mid; break | |
16368 | else | |
16369 | echo "$as_me: failed program was:" >&5 | |
16370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16371 | ||
16372 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
16373 | if test $ac_mid -le $ac_hi; then |
16374 | ac_lo= ac_hi= | |
16375 | break | |
16376 | fi | |
16377 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16378 | fi |
f95e4495 | 16379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16380 | done |
16381 | else | |
16382 | echo "$as_me: failed program was:" >&5 | |
16383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16384 | ||
16385 | ac_lo= ac_hi= | |
16386 | fi | |
f95e4495 | 16387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16388 | fi |
f95e4495 | 16389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16390 | # Binary search between lo and hi bounds. |
16391 | while test "x$ac_lo" != "x$ac_hi"; do | |
16392 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16393 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16394 | /* confdefs.h. */ |
16395 | _ACEOF | |
16396 | cat confdefs.h >>conftest.$ac_ext | |
16397 | cat >>conftest.$ac_ext <<_ACEOF | |
16398 | /* end confdefs.h. */ | |
16399 | $ac_includes_default | |
16400 | int | |
16401 | main () | |
16402 | { | |
16403 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16404 | test_array [0] = 0 | |
16405 | ||
16406 | ; | |
16407 | return 0; | |
16408 | } | |
16409 | _ACEOF | |
16410 | rm -f conftest.$ac_objext | |
16411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16412 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16413 | ac_status=$? |
f95e4495 VS |
16414 | grep -v '^ *+' conftest.er1 >conftest.err |
16415 | rm -f conftest.er1 | |
16416 | cat conftest.err >&5 | |
e6cc62c6 VS |
16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16418 | (exit $ac_status); } && | |
f95e4495 VS |
16419 | { ac_try='test -z "$ac_c_werror_flag" |
16420 | || test ! -s conftest.err' | |
16421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16422 | (eval $ac_try) 2>&5 | |
16423 | ac_status=$? | |
16424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16425 | (exit $ac_status); }; } && | |
16426 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16428 | (eval $ac_try) 2>&5 | |
16429 | ac_status=$? | |
16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16431 | (exit $ac_status); }; }; then | |
16432 | ac_hi=$ac_mid | |
16433 | else | |
16434 | echo "$as_me: failed program was:" >&5 | |
16435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16436 | ||
16437 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16438 | fi | |
f95e4495 | 16439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16440 | done |
16441 | case $ac_lo in | |
16442 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16443 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16444 | See \`config.log' for more details." >&5 | |
16445 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16446 | See \`config.log' for more details." >&2;} | |
16447 | { (exit 1); exit 1; }; } ;; | |
16448 | esac | |
a0b9e27f | 16449 | else |
e6cc62c6 VS |
16450 | if test "$cross_compiling" = yes; then |
16451 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16452 | See \`config.log' for more details." >&5 | |
16453 | echo "$as_me: error: cannot run test program while cross compiling | |
16454 | See \`config.log' for more details." >&2;} | |
16455 | { (exit 1); exit 1; }; } | |
16456 | else | |
16457 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16458 | /* confdefs.h. */ |
16459 | _ACEOF | |
16460 | cat confdefs.h >>conftest.$ac_ext | |
16461 | cat >>conftest.$ac_ext <<_ACEOF | |
16462 | /* end confdefs.h. */ | |
16463 | $ac_includes_default | |
16464 | long longval () { return (long) (sizeof (long long)); } | |
16465 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 16466 | #include <stdio.h> |
e6cc62c6 VS |
16467 | #include <stdlib.h> |
16468 | int | |
16469 | main () | |
247f5006 | 16470 | { |
e6cc62c6 VS |
16471 | |
16472 | FILE *f = fopen ("conftest.val", "w"); | |
16473 | if (! f) | |
16474 | exit (1); | |
16475 | if (((long) (sizeof (long long))) < 0) | |
16476 | { | |
16477 | long i = longval (); | |
16478 | if (i != ((long) (sizeof (long long)))) | |
16479 | exit (1); | |
16480 | fprintf (f, "%ld\n", i); | |
16481 | } | |
16482 | else | |
16483 | { | |
16484 | unsigned long i = ulongval (); | |
16485 | if (i != ((long) (sizeof (long long)))) | |
16486 | exit (1); | |
16487 | fprintf (f, "%lu\n", i); | |
16488 | } | |
16489 | exit (ferror (f) || fclose (f) != 0); | |
16490 | ||
16491 | ; | |
16492 | return 0; | |
247f5006 | 16493 | } |
e6cc62c6 VS |
16494 | _ACEOF |
16495 | rm -f conftest$ac_exeext | |
16496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16497 | (eval $ac_link) 2>&5 | |
16498 | ac_status=$? | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16502 | (eval $ac_try) 2>&5 | |
16503 | ac_status=$? | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); }; }; then | |
16506 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16507 | else | |
16508 | echo "$as_me: program exited with status $ac_status" >&5 | |
16509 | echo "$as_me: failed program was:" >&5 | |
16510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16511 | ||
16512 | ( exit $ac_status ) | |
16513 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16514 | See \`config.log' for more details." >&5 | |
16515 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16516 | See \`config.log' for more details." >&2;} | |
16517 | { (exit 1); exit 1; }; } | |
16518 | fi | |
f95e4495 | 16519 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16520 | fi |
16521 | fi | |
16522 | rm -f conftest.val | |
7b4a847f | 16523 | else |
a0b9e27f | 16524 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
16525 | fi |
16526 | fi | |
e6cc62c6 VS |
16527 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16528 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16529 | cat >>confdefs.h <<_ACEOF | |
16530 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16531 | _ACEOF | |
16532 | ||
16533 | ||
16534 | ;; | |
16535 | *-hp-hpux* ) | |
16536 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16537 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16538 | if test "${ac_cv_type_long_long+set}" = set; then | |
16539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16540 | else | |
16541 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16542 | /* confdefs.h. */ |
16543 | _ACEOF | |
16544 | cat confdefs.h >>conftest.$ac_ext | |
16545 | cat >>conftest.$ac_ext <<_ACEOF | |
16546 | /* end confdefs.h. */ | |
16547 | $ac_includes_default | |
16548 | int | |
16549 | main () | |
16550 | { | |
16551 | if ((long long *) 0) | |
16552 | return 0; | |
16553 | if (sizeof (long long)) | |
16554 | return 0; | |
16555 | ; | |
16556 | return 0; | |
16557 | } | |
16558 | _ACEOF | |
16559 | rm -f conftest.$ac_objext | |
16560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16561 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16562 | ac_status=$? |
f95e4495 VS |
16563 | grep -v '^ *+' conftest.er1 >conftest.err |
16564 | rm -f conftest.er1 | |
16565 | cat conftest.err >&5 | |
e6cc62c6 VS |
16566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16567 | (exit $ac_status); } && | |
f95e4495 VS |
16568 | { ac_try='test -z "$ac_c_werror_flag" |
16569 | || test ! -s conftest.err' | |
16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16571 | (eval $ac_try) 2>&5 | |
16572 | ac_status=$? | |
16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16574 | (exit $ac_status); }; } && | |
16575 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16577 | (eval $ac_try) 2>&5 | |
16578 | ac_status=$? | |
16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16580 | (exit $ac_status); }; }; then | |
16581 | ac_cv_type_long_long=yes | |
16582 | else | |
16583 | echo "$as_me: failed program was:" >&5 | |
16584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16585 | ||
16586 | ac_cv_type_long_long=no | |
16587 | fi | |
f95e4495 | 16588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16589 | fi |
16590 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16591 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16592 | ||
16593 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16594 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16595 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16597 | else | |
16598 | if test "$ac_cv_type_long_long" = yes; then | |
16599 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16600 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16601 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16602 | # This bug is HP SR number 8606223364. | |
16603 | if test "$cross_compiling" = yes; then | |
16604 | # Depending upon the size, compute the lo and hi bounds. | |
16605 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16606 | /* confdefs.h. */ |
16607 | _ACEOF | |
16608 | cat confdefs.h >>conftest.$ac_ext | |
16609 | cat >>conftest.$ac_ext <<_ACEOF | |
16610 | /* end confdefs.h. */ | |
16611 | $ac_includes_default | |
16612 | int | |
16613 | main () | |
16614 | { | |
16615 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16616 | test_array [0] = 0 | |
16617 | ||
16618 | ; | |
16619 | return 0; | |
16620 | } | |
16621 | _ACEOF | |
16622 | rm -f conftest.$ac_objext | |
16623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16624 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16625 | ac_status=$? |
f95e4495 VS |
16626 | grep -v '^ *+' conftest.er1 >conftest.err |
16627 | rm -f conftest.er1 | |
16628 | cat conftest.err >&5 | |
e6cc62c6 VS |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16630 | (exit $ac_status); } && | |
f95e4495 VS |
16631 | { ac_try='test -z "$ac_c_werror_flag" |
16632 | || test ! -s conftest.err' | |
16633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16634 | (eval $ac_try) 2>&5 | |
16635 | ac_status=$? | |
16636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16637 | (exit $ac_status); }; } && | |
16638 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16640 | (eval $ac_try) 2>&5 | |
16641 | ac_status=$? | |
16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16643 | (exit $ac_status); }; }; then | |
16644 | ac_lo=0 ac_mid=0 | |
16645 | while :; do | |
16646 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16647 | /* confdefs.h. */ |
16648 | _ACEOF | |
16649 | cat confdefs.h >>conftest.$ac_ext | |
16650 | cat >>conftest.$ac_ext <<_ACEOF | |
16651 | /* end confdefs.h. */ | |
16652 | $ac_includes_default | |
16653 | int | |
16654 | main () | |
16655 | { | |
16656 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16657 | test_array [0] = 0 | |
8284b0c5 | 16658 | |
e6cc62c6 VS |
16659 | ; |
16660 | return 0; | |
16661 | } | |
16662 | _ACEOF | |
16663 | rm -f conftest.$ac_objext | |
16664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16665 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16666 | ac_status=$? |
f95e4495 VS |
16667 | grep -v '^ *+' conftest.er1 >conftest.err |
16668 | rm -f conftest.er1 | |
16669 | cat conftest.err >&5 | |
e6cc62c6 VS |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16671 | (exit $ac_status); } && | |
f95e4495 VS |
16672 | { ac_try='test -z "$ac_c_werror_flag" |
16673 | || test ! -s conftest.err' | |
16674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16675 | (eval $ac_try) 2>&5 | |
16676 | ac_status=$? | |
16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16678 | (exit $ac_status); }; } && | |
16679 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16681 | (eval $ac_try) 2>&5 | |
16682 | ac_status=$? | |
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16684 | (exit $ac_status); }; }; then | |
16685 | ac_hi=$ac_mid; break | |
16686 | else | |
16687 | echo "$as_me: failed program was:" >&5 | |
16688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16689 | ||
16690 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
16691 | if test $ac_lo -le $ac_mid; then |
16692 | ac_lo= ac_hi= | |
16693 | break | |
16694 | fi | |
16695 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16696 | fi |
f95e4495 | 16697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16698 | done |
16699 | else | |
16700 | echo "$as_me: failed program was:" >&5 | |
16701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16702 | ||
16703 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16704 | /* confdefs.h. */ |
16705 | _ACEOF | |
16706 | cat confdefs.h >>conftest.$ac_ext | |
16707 | cat >>conftest.$ac_ext <<_ACEOF | |
16708 | /* end confdefs.h. */ | |
16709 | $ac_includes_default | |
16710 | int | |
16711 | main () | |
16712 | { | |
16713 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16714 | test_array [0] = 0 | |
a0b9e27f | 16715 | |
e6cc62c6 VS |
16716 | ; |
16717 | return 0; | |
16718 | } | |
16719 | _ACEOF | |
16720 | rm -f conftest.$ac_objext | |
16721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16722 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16723 | ac_status=$? |
f95e4495 VS |
16724 | grep -v '^ *+' conftest.er1 >conftest.err |
16725 | rm -f conftest.er1 | |
16726 | cat conftest.err >&5 | |
e6cc62c6 VS |
16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16728 | (exit $ac_status); } && | |
f95e4495 VS |
16729 | { ac_try='test -z "$ac_c_werror_flag" |
16730 | || test ! -s conftest.err' | |
16731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16732 | (eval $ac_try) 2>&5 | |
16733 | ac_status=$? | |
16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16735 | (exit $ac_status); }; } && | |
16736 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16738 | (eval $ac_try) 2>&5 | |
16739 | ac_status=$? | |
16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16741 | (exit $ac_status); }; }; then | |
16742 | ac_hi=-1 ac_mid=-1 | |
16743 | while :; do | |
16744 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16745 | /* confdefs.h. */ |
16746 | _ACEOF | |
16747 | cat confdefs.h >>conftest.$ac_ext | |
16748 | cat >>conftest.$ac_ext <<_ACEOF | |
16749 | /* end confdefs.h. */ | |
16750 | $ac_includes_default | |
16751 | int | |
16752 | main () | |
16753 | { | |
16754 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16755 | test_array [0] = 0 | |
a0b9e27f | 16756 | |
e6cc62c6 VS |
16757 | ; |
16758 | return 0; | |
16759 | } | |
16760 | _ACEOF | |
16761 | rm -f conftest.$ac_objext | |
16762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16763 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16764 | ac_status=$? |
f95e4495 VS |
16765 | grep -v '^ *+' conftest.er1 >conftest.err |
16766 | rm -f conftest.er1 | |
16767 | cat conftest.err >&5 | |
e6cc62c6 VS |
16768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16769 | (exit $ac_status); } && | |
f95e4495 VS |
16770 | { ac_try='test -z "$ac_c_werror_flag" |
16771 | || test ! -s conftest.err' | |
16772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16773 | (eval $ac_try) 2>&5 | |
16774 | ac_status=$? | |
16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16776 | (exit $ac_status); }; } && | |
16777 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; }; then | |
16783 | ac_lo=$ac_mid; break | |
16784 | else | |
16785 | echo "$as_me: failed program was:" >&5 | |
16786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16787 | ||
16788 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
16789 | if test $ac_mid -le $ac_hi; then |
16790 | ac_lo= ac_hi= | |
16791 | break | |
16792 | fi | |
16793 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16794 | fi |
f95e4495 | 16795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16796 | done |
8284b0c5 | 16797 | else |
e6cc62c6 VS |
16798 | echo "$as_me: failed program was:" >&5 |
16799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16800 | ||
16801 | ac_lo= ac_hi= | |
16802 | fi | |
f95e4495 | 16803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16804 | fi |
f95e4495 | 16805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16806 | # Binary search between lo and hi bounds. |
16807 | while test "x$ac_lo" != "x$ac_hi"; do | |
16808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16809 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16810 | /* confdefs.h. */ |
16811 | _ACEOF | |
16812 | cat confdefs.h >>conftest.$ac_ext | |
16813 | cat >>conftest.$ac_ext <<_ACEOF | |
16814 | /* end confdefs.h. */ | |
16815 | $ac_includes_default | |
16816 | int | |
16817 | main () | |
16818 | { | |
16819 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16820 | test_array [0] = 0 | |
16821 | ||
16822 | ; | |
16823 | return 0; | |
16824 | } | |
16825 | _ACEOF | |
16826 | rm -f conftest.$ac_objext | |
16827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16828 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16829 | ac_status=$? |
f95e4495 VS |
16830 | grep -v '^ *+' conftest.er1 >conftest.err |
16831 | rm -f conftest.er1 | |
16832 | cat conftest.err >&5 | |
e6cc62c6 VS |
16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16834 | (exit $ac_status); } && | |
f95e4495 VS |
16835 | { ac_try='test -z "$ac_c_werror_flag" |
16836 | || test ! -s conftest.err' | |
16837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16838 | (eval $ac_try) 2>&5 | |
16839 | ac_status=$? | |
16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16841 | (exit $ac_status); }; } && | |
16842 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16844 | (eval $ac_try) 2>&5 | |
16845 | ac_status=$? | |
16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16847 | (exit $ac_status); }; }; then | |
16848 | ac_hi=$ac_mid | |
16849 | else | |
16850 | echo "$as_me: failed program was:" >&5 | |
16851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16852 | ||
16853 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16854 | fi | |
f95e4495 | 16855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16856 | done |
16857 | case $ac_lo in | |
16858 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16859 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16860 | See \`config.log' for more details." >&5 | |
16861 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16862 | See \`config.log' for more details." >&2;} | |
16863 | { (exit 1); exit 1; }; } ;; | |
16864 | esac | |
8284b0c5 | 16865 | else |
e6cc62c6 VS |
16866 | if test "$cross_compiling" = yes; then |
16867 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16868 | See \`config.log' for more details." >&5 | |
16869 | echo "$as_me: error: cannot run test program while cross compiling | |
16870 | See \`config.log' for more details." >&2;} | |
16871 | { (exit 1); exit 1; }; } | |
16872 | else | |
16873 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16874 | /* confdefs.h. */ |
16875 | _ACEOF | |
16876 | cat confdefs.h >>conftest.$ac_ext | |
16877 | cat >>conftest.$ac_ext <<_ACEOF | |
16878 | /* end confdefs.h. */ | |
16879 | $ac_includes_default | |
16880 | long longval () { return (long) (sizeof (long long)); } | |
16881 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16882 | #include <stdio.h> |
e6cc62c6 VS |
16883 | #include <stdlib.h> |
16884 | int | |
16885 | main () | |
8284b0c5 | 16886 | { |
e6cc62c6 VS |
16887 | |
16888 | FILE *f = fopen ("conftest.val", "w"); | |
16889 | if (! f) | |
16890 | exit (1); | |
16891 | if (((long) (sizeof (long long))) < 0) | |
16892 | { | |
16893 | long i = longval (); | |
16894 | if (i != ((long) (sizeof (long long)))) | |
16895 | exit (1); | |
16896 | fprintf (f, "%ld\n", i); | |
16897 | } | |
16898 | else | |
16899 | { | |
16900 | unsigned long i = ulongval (); | |
16901 | if (i != ((long) (sizeof (long long)))) | |
16902 | exit (1); | |
16903 | fprintf (f, "%lu\n", i); | |
16904 | } | |
16905 | exit (ferror (f) || fclose (f) != 0); | |
16906 | ||
16907 | ; | |
16908 | return 0; | |
8284b0c5 | 16909 | } |
e6cc62c6 VS |
16910 | _ACEOF |
16911 | rm -f conftest$ac_exeext | |
16912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16913 | (eval $ac_link) 2>&5 | |
16914 | ac_status=$? | |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16916 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16918 | (eval $ac_try) 2>&5 | |
16919 | ac_status=$? | |
16920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16921 | (exit $ac_status); }; }; then | |
16922 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16923 | else | |
16924 | echo "$as_me: program exited with status $ac_status" >&5 | |
16925 | echo "$as_me: failed program was:" >&5 | |
16926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16927 | ||
16928 | ( exit $ac_status ) | |
16929 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16930 | See \`config.log' for more details." >&5 | |
16931 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16932 | See \`config.log' for more details." >&2;} | |
16933 | { (exit 1); exit 1; }; } | |
16934 | fi | |
f95e4495 | 16935 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16936 | fi |
16937 | fi | |
16938 | rm -f conftest.val | |
5c6fa7d2 RR |
16939 | else |
16940 | ac_cv_sizeof_long_long=0 | |
52127426 | 16941 | fi |
4f57cf11 | 16942 | fi |
e6cc62c6 VS |
16943 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16944 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16945 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16946 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16947 | _ACEOF |
4f57cf11 GD |
16948 | |
16949 | ||
16950 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16951 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16952 | fi | |
16953 | ;; | |
16954 | * ) | |
e6cc62c6 VS |
16955 | echo "$as_me:$LINENO: checking for long long" >&5 |
16956 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16957 | if test "${ac_cv_type_long_long+set}" = set; then | |
16958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16959 | else | |
16960 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16961 | /* confdefs.h. */ |
16962 | _ACEOF | |
16963 | cat confdefs.h >>conftest.$ac_ext | |
16964 | cat >>conftest.$ac_ext <<_ACEOF | |
16965 | /* end confdefs.h. */ | |
16966 | $ac_includes_default | |
16967 | int | |
16968 | main () | |
16969 | { | |
16970 | if ((long long *) 0) | |
16971 | return 0; | |
16972 | if (sizeof (long long)) | |
16973 | return 0; | |
16974 | ; | |
16975 | return 0; | |
16976 | } | |
16977 | _ACEOF | |
16978 | rm -f conftest.$ac_objext | |
16979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 16980 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16981 | ac_status=$? |
f95e4495 VS |
16982 | grep -v '^ *+' conftest.er1 >conftest.err |
16983 | rm -f conftest.er1 | |
16984 | cat conftest.err >&5 | |
e6cc62c6 VS |
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16986 | (exit $ac_status); } && | |
f95e4495 VS |
16987 | { ac_try='test -z "$ac_c_werror_flag" |
16988 | || test ! -s conftest.err' | |
16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16990 | (eval $ac_try) 2>&5 | |
16991 | ac_status=$? | |
16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16993 | (exit $ac_status); }; } && | |
16994 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16996 | (eval $ac_try) 2>&5 | |
16997 | ac_status=$? | |
16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16999 | (exit $ac_status); }; }; then | |
17000 | ac_cv_type_long_long=yes | |
17001 | else | |
17002 | echo "$as_me: failed program was:" >&5 | |
17003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17004 | ||
17005 | ac_cv_type_long_long=no | |
17006 | fi | |
f95e4495 | 17007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17008 | fi |
17009 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17010 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17011 | ||
17012 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17013 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17014 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17016 | else | |
17017 | if test "$ac_cv_type_long_long" = yes; then | |
17018 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17019 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17020 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17021 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 17022 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
17023 | # Depending upon the size, compute the lo and hi bounds. |
17024 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17025 | /* confdefs.h. */ |
17026 | _ACEOF | |
17027 | cat confdefs.h >>conftest.$ac_ext | |
17028 | cat >>conftest.$ac_ext <<_ACEOF | |
17029 | /* end confdefs.h. */ | |
17030 | $ac_includes_default | |
17031 | int | |
17032 | main () | |
17033 | { | |
17034 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17035 | test_array [0] = 0 | |
17036 | ||
17037 | ; | |
17038 | return 0; | |
17039 | } | |
17040 | _ACEOF | |
17041 | rm -f conftest.$ac_objext | |
17042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17043 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17044 | ac_status=$? |
f95e4495 VS |
17045 | grep -v '^ *+' conftest.er1 >conftest.err |
17046 | rm -f conftest.er1 | |
17047 | cat conftest.err >&5 | |
e6cc62c6 VS |
17048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17049 | (exit $ac_status); } && | |
f95e4495 VS |
17050 | { ac_try='test -z "$ac_c_werror_flag" |
17051 | || test ! -s conftest.err' | |
17052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17053 | (eval $ac_try) 2>&5 | |
17054 | ac_status=$? | |
17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17056 | (exit $ac_status); }; } && | |
17057 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; }; then | |
17063 | ac_lo=0 ac_mid=0 | |
17064 | while :; do | |
17065 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17066 | /* confdefs.h. */ |
17067 | _ACEOF | |
17068 | cat confdefs.h >>conftest.$ac_ext | |
17069 | cat >>conftest.$ac_ext <<_ACEOF | |
17070 | /* end confdefs.h. */ | |
17071 | $ac_includes_default | |
17072 | int | |
17073 | main () | |
17074 | { | |
17075 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17076 | test_array [0] = 0 | |
17077 | ||
17078 | ; | |
17079 | return 0; | |
17080 | } | |
17081 | _ACEOF | |
17082 | rm -f conftest.$ac_objext | |
17083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17084 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17085 | ac_status=$? |
f95e4495 VS |
17086 | grep -v '^ *+' conftest.er1 >conftest.err |
17087 | rm -f conftest.er1 | |
17088 | cat conftest.err >&5 | |
e6cc62c6 VS |
17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17090 | (exit $ac_status); } && | |
f95e4495 VS |
17091 | { ac_try='test -z "$ac_c_werror_flag" |
17092 | || test ! -s conftest.err' | |
17093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17094 | (eval $ac_try) 2>&5 | |
17095 | ac_status=$? | |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17097 | (exit $ac_status); }; } && | |
17098 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17100 | (eval $ac_try) 2>&5 | |
17101 | ac_status=$? | |
17102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17103 | (exit $ac_status); }; }; then | |
17104 | ac_hi=$ac_mid; break | |
17105 | else | |
17106 | echo "$as_me: failed program was:" >&5 | |
17107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17108 | ||
17109 | ac_lo=`expr $ac_mid + 1` | |
f95e4495 VS |
17110 | if test $ac_lo -le $ac_mid; then |
17111 | ac_lo= ac_hi= | |
17112 | break | |
17113 | fi | |
17114 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 17115 | fi |
f95e4495 | 17116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17117 | done |
17118 | else | |
17119 | echo "$as_me: failed program was:" >&5 | |
17120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17121 | ||
17122 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17123 | /* confdefs.h. */ |
17124 | _ACEOF | |
17125 | cat confdefs.h >>conftest.$ac_ext | |
17126 | cat >>conftest.$ac_ext <<_ACEOF | |
17127 | /* end confdefs.h. */ | |
17128 | $ac_includes_default | |
17129 | int | |
17130 | main () | |
17131 | { | |
17132 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17133 | test_array [0] = 0 | |
17134 | ||
17135 | ; | |
17136 | return 0; | |
17137 | } | |
17138 | _ACEOF | |
17139 | rm -f conftest.$ac_objext | |
17140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17141 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17142 | ac_status=$? |
f95e4495 VS |
17143 | grep -v '^ *+' conftest.er1 >conftest.err |
17144 | rm -f conftest.er1 | |
17145 | cat conftest.err >&5 | |
e6cc62c6 VS |
17146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17147 | (exit $ac_status); } && | |
f95e4495 VS |
17148 | { ac_try='test -z "$ac_c_werror_flag" |
17149 | || test ! -s conftest.err' | |
17150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17151 | (eval $ac_try) 2>&5 | |
17152 | ac_status=$? | |
17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17154 | (exit $ac_status); }; } && | |
17155 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
17161 | ac_hi=-1 ac_mid=-1 | |
17162 | while :; do | |
17163 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17164 | /* confdefs.h. */ |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
17169 | $ac_includes_default | |
17170 | int | |
17171 | main () | |
17172 | { | |
17173 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17174 | test_array [0] = 0 | |
17175 | ||
17176 | ; | |
17177 | return 0; | |
17178 | } | |
17179 | _ACEOF | |
17180 | rm -f conftest.$ac_objext | |
17181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17182 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17183 | ac_status=$? |
f95e4495 VS |
17184 | grep -v '^ *+' conftest.er1 >conftest.err |
17185 | rm -f conftest.er1 | |
17186 | cat conftest.err >&5 | |
e6cc62c6 VS |
17187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17188 | (exit $ac_status); } && | |
f95e4495 VS |
17189 | { ac_try='test -z "$ac_c_werror_flag" |
17190 | || test ! -s conftest.err' | |
17191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17192 | (eval $ac_try) 2>&5 | |
17193 | ac_status=$? | |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17195 | (exit $ac_status); }; } && | |
17196 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17198 | (eval $ac_try) 2>&5 | |
17199 | ac_status=$? | |
17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17201 | (exit $ac_status); }; }; then | |
17202 | ac_lo=$ac_mid; break | |
17203 | else | |
17204 | echo "$as_me: failed program was:" >&5 | |
17205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17206 | ||
17207 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
f95e4495 VS |
17208 | if test $ac_mid -le $ac_hi; then |
17209 | ac_lo= ac_hi= | |
17210 | break | |
17211 | fi | |
17212 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17213 | fi |
f95e4495 | 17214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17215 | done |
4f57cf11 | 17216 | else |
e6cc62c6 VS |
17217 | echo "$as_me: failed program was:" >&5 |
17218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17219 | ||
17220 | ac_lo= ac_hi= | |
17221 | fi | |
f95e4495 | 17222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17223 | fi |
f95e4495 | 17224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17225 | # Binary search between lo and hi bounds. |
17226 | while test "x$ac_lo" != "x$ac_hi"; do | |
17227 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17228 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17229 | /* confdefs.h. */ |
17230 | _ACEOF | |
17231 | cat confdefs.h >>conftest.$ac_ext | |
17232 | cat >>conftest.$ac_ext <<_ACEOF | |
17233 | /* end confdefs.h. */ | |
17234 | $ac_includes_default | |
17235 | int | |
17236 | main () | |
17237 | { | |
17238 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17239 | test_array [0] = 0 | |
17240 | ||
17241 | ; | |
17242 | return 0; | |
17243 | } | |
17244 | _ACEOF | |
17245 | rm -f conftest.$ac_objext | |
17246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17247 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17248 | ac_status=$? |
f95e4495 VS |
17249 | grep -v '^ *+' conftest.er1 >conftest.err |
17250 | rm -f conftest.er1 | |
17251 | cat conftest.err >&5 | |
e6cc62c6 VS |
17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17253 | (exit $ac_status); } && | |
f95e4495 VS |
17254 | { ac_try='test -z "$ac_c_werror_flag" |
17255 | || test ! -s conftest.err' | |
17256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17257 | (eval $ac_try) 2>&5 | |
17258 | ac_status=$? | |
17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17260 | (exit $ac_status); }; } && | |
17261 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17263 | (eval $ac_try) 2>&5 | |
17264 | ac_status=$? | |
17265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17266 | (exit $ac_status); }; }; then | |
17267 | ac_hi=$ac_mid | |
17268 | else | |
17269 | echo "$as_me: failed program was:" >&5 | |
17270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17271 | ||
17272 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17273 | fi | |
f95e4495 | 17274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17275 | done |
17276 | case $ac_lo in | |
17277 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17278 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17279 | See \`config.log' for more details." >&5 | |
17280 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17281 | See \`config.log' for more details." >&2;} | |
17282 | { (exit 1); exit 1; }; } ;; | |
17283 | esac | |
17284 | else | |
17285 | if test "$cross_compiling" = yes; then | |
17286 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17287 | See \`config.log' for more details." >&5 | |
17288 | echo "$as_me: error: cannot run test program while cross compiling | |
17289 | See \`config.log' for more details." >&2;} | |
17290 | { (exit 1); exit 1; }; } | |
17291 | else | |
17292 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17293 | /* confdefs.h. */ |
17294 | _ACEOF | |
17295 | cat confdefs.h >>conftest.$ac_ext | |
17296 | cat >>conftest.$ac_ext <<_ACEOF | |
17297 | /* end confdefs.h. */ | |
17298 | $ac_includes_default | |
17299 | long longval () { return (long) (sizeof (long long)); } | |
17300 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17301 | #include <stdio.h> |
e6cc62c6 VS |
17302 | #include <stdlib.h> |
17303 | int | |
17304 | main () | |
4f57cf11 | 17305 | { |
e6cc62c6 VS |
17306 | |
17307 | FILE *f = fopen ("conftest.val", "w"); | |
17308 | if (! f) | |
17309 | exit (1); | |
17310 | if (((long) (sizeof (long long))) < 0) | |
17311 | { | |
17312 | long i = longval (); | |
17313 | if (i != ((long) (sizeof (long long)))) | |
17314 | exit (1); | |
17315 | fprintf (f, "%ld\n", i); | |
17316 | } | |
17317 | else | |
17318 | { | |
17319 | unsigned long i = ulongval (); | |
17320 | if (i != ((long) (sizeof (long long)))) | |
17321 | exit (1); | |
17322 | fprintf (f, "%lu\n", i); | |
17323 | } | |
17324 | exit (ferror (f) || fclose (f) != 0); | |
17325 | ||
17326 | ; | |
17327 | return 0; | |
4f57cf11 | 17328 | } |
e6cc62c6 VS |
17329 | _ACEOF |
17330 | rm -f conftest$ac_exeext | |
17331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17332 | (eval $ac_link) 2>&5 | |
17333 | ac_status=$? | |
17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17337 | (eval $ac_try) 2>&5 | |
17338 | ac_status=$? | |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17340 | (exit $ac_status); }; }; then | |
17341 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17342 | else | |
17343 | echo "$as_me: program exited with status $ac_status" >&5 | |
17344 | echo "$as_me: failed program was:" >&5 | |
17345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17346 | ||
17347 | ( exit $ac_status ) | |
17348 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17349 | See \`config.log' for more details." >&5 | |
17350 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17351 | See \`config.log' for more details." >&2;} | |
17352 | { (exit 1); exit 1; }; } | |
17353 | fi | |
f95e4495 | 17354 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17355 | fi |
17356 | fi | |
17357 | rm -f conftest.val | |
4f57cf11 | 17358 | else |
4f57cf11 GD |
17359 | ac_cv_sizeof_long_long=0 |
17360 | fi | |
7b4a847f | 17361 | fi |
e6cc62c6 VS |
17362 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17363 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17364 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17365 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17366 | _ACEOF |
9e691f46 | 17367 | |
8284b0c5 | 17368 | |
21d1c967 GD |
17369 | esac |
17370 | ||
e6cc62c6 VS |
17371 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17372 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17373 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17375 | else |
e6cc62c6 | 17376 | |
21d1c967 | 17377 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17378 | |
2b5f62a0 VZ |
17379 | case "${host}" in |
17380 | *-pc-msdosdjgpp ) | |
17381 | wx_cv_sizeof_wchar_t=0 | |
17382 | ;; | |
17383 | * ) | |
17384 | wx_cv_sizeof_wchar_t=4 | |
17385 | ;; | |
17386 | esac | |
e6cc62c6 VS |
17387 | |
17388 | ||
6f72b082 | 17389 | else |
e6cc62c6 | 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. */ | |
21d1c967 | 17396 | |
2b5f62a0 VZ |
17397 | /* DJGPP only has fake wchar_t: */ |
17398 | #ifdef __DJGPP__ | |
17399 | # error "fake wchar_t" | |
17400 | #endif | |
21d1c967 GD |
17401 | #ifdef HAVE_WCHAR_H |
17402 | # ifdef __CYGWIN__ | |
17403 | # include <stddef.h> | |
17404 | # endif | |
17405 | # include <wchar.h> | |
17406 | #endif | |
17407 | #ifdef HAVE_STDLIB_H | |
17408 | # include <stdlib.h> | |
17409 | #endif | |
17410 | #include <stdio.h> | |
17411 | int main() | |
17412 | { | |
17413 | FILE *f=fopen("conftestval", "w"); | |
17414 | if (!f) exit(1); | |
17415 | fprintf(f, "%i", sizeof(wchar_t)); | |
17416 | exit(0); | |
17417 | } | |
e6cc62c6 VS |
17418 | |
17419 | _ACEOF | |
17420 | rm -f conftest$ac_exeext | |
17421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17422 | (eval $ac_link) 2>&5 | |
17423 | ac_status=$? | |
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17427 | (eval $ac_try) 2>&5 | |
17428 | ac_status=$? | |
17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17430 | (exit $ac_status); }; }; then | |
21d1c967 | 17431 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 17432 | else |
e6cc62c6 VS |
17433 | echo "$as_me: program exited with status $ac_status" >&5 |
17434 | echo "$as_me: failed program was:" >&5 | |
17435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17436 | ||
17437 | ( exit $ac_status ) | |
17438 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 17439 | fi |
f95e4495 | 17440 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 17441 | fi |
6f72b082 | 17442 | |
3f345b47 | 17443 | fi |
e6cc62c6 VS |
17444 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
17445 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 17446 | |
e6cc62c6 | 17447 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17448 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 17449 | _ACEOF |
90dd450c | 17450 | |
8284b0c5 | 17451 | |
21d1c967 GD |
17452 | # Check whether --enable-largefile or --disable-largefile was given. |
17453 | if test "${enable_largefile+set}" = set; then | |
17454 | enableval="$enable_largefile" | |
3f345b47 | 17455 | |
e6cc62c6 | 17456 | fi; |
21d1c967 GD |
17457 | if test "$enable_largefile" != no; then |
17458 | wx_largefile=no | |
e6cc62c6 VS |
17459 | |
17460 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17461 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17462 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17464 | else | |
17465 | ||
17466 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17467 | /* confdefs.h. */ |
17468 | _ACEOF | |
17469 | cat confdefs.h >>conftest.$ac_ext | |
17470 | cat >>conftest.$ac_ext <<_ACEOF | |
17471 | /* end confdefs.h. */ | |
21d1c967 GD |
17472 | #define _FILE_OFFSET_BITS 64 |
17473 | #include <sys/types.h> | |
e6cc62c6 VS |
17474 | int |
17475 | main () | |
17476 | { | |
21d1c967 GD |
17477 | typedef struct { |
17478 | unsigned int field: sizeof(off_t) == 8; | |
17479 | } wxlf; | |
17480 | ||
e6cc62c6 VS |
17481 | ; |
17482 | return 0; | |
17483 | } | |
17484 | _ACEOF | |
17485 | rm -f conftest.$ac_objext | |
17486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17487 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17488 | ac_status=$? |
f95e4495 VS |
17489 | grep -v '^ *+' conftest.er1 >conftest.err |
17490 | rm -f conftest.er1 | |
17491 | cat conftest.err >&5 | |
e6cc62c6 VS |
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17493 | (exit $ac_status); } && | |
f95e4495 VS |
17494 | { ac_try='test -z "$ac_c_werror_flag" |
17495 | || test ! -s conftest.err' | |
17496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17497 | (eval $ac_try) 2>&5 | |
17498 | ac_status=$? | |
17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17500 | (exit $ac_status); }; } && | |
17501 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17503 | (eval $ac_try) 2>&5 | |
17504 | ac_status=$? | |
17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17506 | (exit $ac_status); }; }; then | |
21d1c967 | 17507 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 17508 | else |
e6cc62c6 VS |
17509 | echo "$as_me: failed program was:" >&5 |
17510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17511 | ||
17512 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 17513 | fi |
f95e4495 | 17514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17515 | |
a0b9e27f | 17516 | |
e6cc62c6 VS |
17517 | fi |
17518 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
17519 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
17520 | |
17521 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
17522 | wx_largefile=yes | |
e6cc62c6 | 17523 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17524 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 17525 | _ACEOF |
21d1c967 GD |
17526 | |
17527 | fi | |
17528 | ||
17529 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
17530 | |
17531 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
17532 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
17533 | if test "${ac_cv_sys_large_files+set}" = set; then | |
17534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17535 | else | |
17536 | ||
17537 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17538 | /* confdefs.h. */ |
17539 | _ACEOF | |
17540 | cat confdefs.h >>conftest.$ac_ext | |
17541 | cat >>conftest.$ac_ext <<_ACEOF | |
17542 | /* end confdefs.h. */ | |
21d1c967 GD |
17543 | #define _LARGE_FILES 1 |
17544 | #include <sys/types.h> | |
e6cc62c6 VS |
17545 | int |
17546 | main () | |
17547 | { | |
21d1c967 GD |
17548 | typedef struct { |
17549 | unsigned int field: sizeof(off_t) == 8; | |
17550 | } wxlf; | |
17551 | ||
e6cc62c6 VS |
17552 | ; |
17553 | return 0; | |
17554 | } | |
17555 | _ACEOF | |
17556 | rm -f conftest.$ac_objext | |
17557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17558 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17559 | ac_status=$? |
f95e4495 VS |
17560 | grep -v '^ *+' conftest.er1 >conftest.err |
17561 | rm -f conftest.er1 | |
17562 | cat conftest.err >&5 | |
e6cc62c6 VS |
17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17564 | (exit $ac_status); } && | |
f95e4495 VS |
17565 | { ac_try='test -z "$ac_c_werror_flag" |
17566 | || test ! -s conftest.err' | |
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 | |
21d1c967 | 17578 | ac_cv_sys_large_files=1 |
f6bcfd97 | 17579 | else |
e6cc62c6 VS |
17580 | echo "$as_me: failed program was:" >&5 |
17581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17582 | ||
17583 | ac_cv_sys_large_files=no | |
247f5006 | 17584 | fi |
f95e4495 | 17585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17586 | |
e6cc62c6 VS |
17587 | |
17588 | fi | |
17589 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
17590 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 17591 | |
21d1c967 GD |
17592 | if test "$ac_cv_sys_large_files" != no; then |
17593 | wx_largefile=yes | |
e6cc62c6 | 17594 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17595 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 17596 | _ACEOF |
90dd450c | 17597 | |
90dd450c VZ |
17598 | fi |
17599 | ||
90dd450c | 17600 | fi |
90dd450c | 17601 | |
e6cc62c6 VS |
17602 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
17603 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 17604 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 17605 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17606 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 17607 | _ACEOF |
90dd450c | 17608 | |
90dd450c | 17609 | fi |
e6cc62c6 VS |
17610 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
17611 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 17612 | fi |
90dd450c | 17613 | |
8284b0c5 | 17614 | |
f02444d0 | 17615 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
17616 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
17617 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 17618 | else |
e26c13cf | 17619 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 17620 | fi |
e26c13cf | 17621 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
17622 | fi |
17623 | ||
e6cc62c6 VS |
17624 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
17625 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
17626 | if test "${ac_cv_c_bigendian+set}" = set; then | |
17627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 17628 | else |
21d1c967 GD |
17629 | ac_cv_c_bigendian=unknown |
17630 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 17631 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17632 | /* confdefs.h. */ |
17633 | _ACEOF | |
17634 | cat confdefs.h >>conftest.$ac_ext | |
17635 | cat >>conftest.$ac_ext <<_ACEOF | |
17636 | /* end confdefs.h. */ | |
21d1c967 GD |
17637 | #include <sys/types.h> |
17638 | #include <sys/param.h> | |
e6cc62c6 VS |
17639 | int |
17640 | main () | |
17641 | { | |
21d1c967 GD |
17642 | |
17643 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
17644 | bogus endian macros | |
17645 | #endif | |
e6cc62c6 VS |
17646 | ; |
17647 | return 0; | |
17648 | } | |
17649 | _ACEOF | |
17650 | rm -f conftest.$ac_objext | |
17651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17652 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17653 | ac_status=$? |
f95e4495 VS |
17654 | grep -v '^ *+' conftest.er1 >conftest.err |
17655 | rm -f conftest.er1 | |
17656 | cat conftest.err >&5 | |
e6cc62c6 VS |
17657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17658 | (exit $ac_status); } && | |
f95e4495 VS |
17659 | { ac_try='test -z "$ac_c_werror_flag" |
17660 | || test ! -s conftest.err' | |
17661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17662 | (eval $ac_try) 2>&5 | |
17663 | ac_status=$? | |
17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17665 | (exit $ac_status); }; } && | |
17666 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17668 | (eval $ac_try) 2>&5 | |
17669 | ac_status=$? | |
17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17671 | (exit $ac_status); }; }; then | |
21d1c967 | 17672 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 17673 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17674 | /* confdefs.h. */ |
17675 | _ACEOF | |
17676 | cat confdefs.h >>conftest.$ac_ext | |
17677 | cat >>conftest.$ac_ext <<_ACEOF | |
17678 | /* end confdefs.h. */ | |
21d1c967 GD |
17679 | #include <sys/types.h> |
17680 | #include <sys/param.h> | |
e6cc62c6 VS |
17681 | int |
17682 | main () | |
17683 | { | |
21d1c967 GD |
17684 | |
17685 | #if BYTE_ORDER != BIG_ENDIAN | |
17686 | not big endian | |
17687 | #endif | |
e6cc62c6 VS |
17688 | ; |
17689 | return 0; | |
17690 | } | |
17691 | _ACEOF | |
17692 | rm -f conftest.$ac_objext | |
17693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 17694 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17695 | ac_status=$? |
f95e4495 VS |
17696 | grep -v '^ *+' conftest.er1 >conftest.err |
17697 | rm -f conftest.er1 | |
17698 | cat conftest.err >&5 | |
e6cc62c6 VS |
17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17700 | (exit $ac_status); } && | |
f95e4495 VS |
17701 | { ac_try='test -z "$ac_c_werror_flag" |
17702 | || test ! -s conftest.err' | |
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 | |
21d1c967 | 17714 | ac_cv_c_bigendian=yes |
3f345b47 | 17715 | else |
e6cc62c6 VS |
17716 | echo "$as_me: failed program was:" >&5 |
17717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17718 | ||
17719 | ac_cv_c_bigendian=no | |
3f345b47 | 17720 | fi |
f95e4495 | 17721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 17722 | else |
e6cc62c6 VS |
17723 | echo "$as_me: failed program was:" >&5 |
17724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17725 | ||
3f345b47 | 17726 | fi |
f95e4495 | 17727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17728 | if test $ac_cv_c_bigendian = unknown; then |
17729 | if test "$cross_compiling" = yes; then | |
17730 | ac_cv_c_bigendian=unknown | |
10f2d63a | 17731 | else |
e6cc62c6 | 17732 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17733 | /* confdefs.h. */ |
17734 | _ACEOF | |
17735 | cat confdefs.h >>conftest.$ac_ext | |
17736 | cat >>conftest.$ac_ext <<_ACEOF | |
17737 | /* end confdefs.h. */ | |
21d1c967 GD |
17738 | main () { |
17739 | /* Are we little or big endian? From Harbison&Steele. */ | |
17740 | union | |
17741 | { | |
17742 | long l; | |
17743 | char c[sizeof (long)]; | |
17744 | } u; | |
17745 | u.l = 1; | |
17746 | exit (u.c[sizeof (long) - 1] == 1); | |
17747 | } | |
e6cc62c6 VS |
17748 | _ACEOF |
17749 | rm -f conftest$ac_exeext | |
17750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17751 | (eval $ac_link) 2>&5 | |
17752 | ac_status=$? | |
17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17756 | (eval $ac_try) 2>&5 | |
17757 | ac_status=$? | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); }; }; then | |
21d1c967 | 17760 | ac_cv_c_bigendian=no |
3f345b47 | 17761 | else |
e6cc62c6 VS |
17762 | echo "$as_me: program exited with status $ac_status" >&5 |
17763 | echo "$as_me: failed program was:" >&5 | |
17764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17765 | ||
17766 | ( exit $ac_status ) | |
17767 | ac_cv_c_bigendian=yes | |
247f5006 | 17768 | fi |
f95e4495 | 17769 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17770 | fi |
3f345b47 | 17771 | fi |
8168de4c | 17772 | fi |
e6cc62c6 VS |
17773 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17774 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17775 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17776 | { 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 |
17777 | 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 |
17778 | fi |
17779 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17780 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17781 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17782 | _ACEOF |
247f5006 VZ |
17783 | |
17784 | fi | |
17785 | ||
17786 | ||
e6cc62c6 VS |
17787 | |
17788 | ac_ext=cc | |
17789 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17790 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17791 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17792 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17793 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17794 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17795 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17796 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17798 | else | |
17799 | # Double quotes because CXXCPP needs to be expanded | |
17800 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17801 | do | |
17802 | ac_preproc_ok=false | |
17803 | for ac_cxx_preproc_warn_flag in '' yes | |
17804 | do | |
17805 | # Use a header file that comes with gcc, so configuring glibc | |
17806 | # with a fresh cross-compiler works. | |
17807 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17808 | # <limits.h> exists even on freestanding compilers. | |
17809 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17810 | # not just through cpp. "Syntax error" is here to catch this case. | |
17811 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17812 | /* confdefs.h. */ |
17813 | _ACEOF | |
17814 | cat confdefs.h >>conftest.$ac_ext | |
17815 | cat >>conftest.$ac_ext <<_ACEOF | |
17816 | /* end confdefs.h. */ | |
17817 | #ifdef __STDC__ | |
17818 | # include <limits.h> | |
17819 | #else | |
17820 | # include <assert.h> | |
17821 | #endif | |
f95e4495 | 17822 | Syntax error |
e6cc62c6 VS |
17823 | _ACEOF |
17824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17826 | ac_status=$? | |
17827 | grep -v '^ *+' conftest.er1 >conftest.err | |
17828 | rm -f conftest.er1 | |
17829 | cat conftest.err >&5 | |
17830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17831 | (exit $ac_status); } >/dev/null; then | |
17832 | if test -s conftest.err; then | |
17833 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
f95e4495 | 17834 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17835 | else |
17836 | ac_cpp_err= | |
17837 | fi | |
247f5006 | 17838 | else |
e6cc62c6 VS |
17839 | ac_cpp_err=yes |
17840 | fi | |
17841 | if test -z "$ac_cpp_err"; then | |
17842 | : | |
17843 | else | |
17844 | echo "$as_me: failed program was:" >&5 | |
17845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17846 | ||
17847 | # Broken: fails on valid input. | |
17848 | continue | |
17849 | fi | |
17850 | rm -f conftest.err conftest.$ac_ext | |
17851 | ||
17852 | # OK, works on sane cases. Now check whether non-existent headers | |
17853 | # can be detected and how. | |
17854 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17855 | /* confdefs.h. */ |
17856 | _ACEOF | |
17857 | cat confdefs.h >>conftest.$ac_ext | |
17858 | cat >>conftest.$ac_ext <<_ACEOF | |
17859 | /* end confdefs.h. */ | |
17860 | #include <ac_nonexistent.h> | |
17861 | _ACEOF | |
17862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17864 | ac_status=$? | |
17865 | grep -v '^ *+' conftest.er1 >conftest.err | |
17866 | rm -f conftest.er1 | |
17867 | cat conftest.err >&5 | |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17869 | (exit $ac_status); } >/dev/null; then | |
17870 | if test -s conftest.err; then | |
17871 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
f95e4495 | 17872 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17873 | else |
17874 | ac_cpp_err= | |
17875 | fi | |
17876 | else | |
17877 | ac_cpp_err=yes | |
17878 | fi | |
17879 | if test -z "$ac_cpp_err"; then | |
17880 | # Broken: success on invalid input. | |
17881 | continue | |
17882 | else | |
17883 | echo "$as_me: failed program was:" >&5 | |
17884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17885 | ||
17886 | # Passes both tests. | |
17887 | ac_preproc_ok=: | |
17888 | break | |
17889 | fi | |
17890 | rm -f conftest.err conftest.$ac_ext | |
17891 | ||
17892 | done | |
17893 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17894 | rm -f conftest.err conftest.$ac_ext | |
17895 | if $ac_preproc_ok; then | |
17896 | break | |
17897 | fi | |
17898 | ||
17899 | done | |
17900 | ac_cv_prog_CXXCPP=$CXXCPP | |
17901 | ||
17902 | fi | |
17903 | CXXCPP=$ac_cv_prog_CXXCPP | |
17904 | else | |
17905 | ac_cv_prog_CXXCPP=$CXXCPP | |
17906 | fi | |
17907 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17908 | echo "${ECHO_T}$CXXCPP" >&6 | |
17909 | ac_preproc_ok=false | |
17910 | for ac_cxx_preproc_warn_flag in '' yes | |
17911 | do | |
17912 | # Use a header file that comes with gcc, so configuring glibc | |
17913 | # with a fresh cross-compiler works. | |
17914 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17915 | # <limits.h> exists even on freestanding compilers. | |
17916 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17917 | # not just through cpp. "Syntax error" is here to catch this case. | |
17918 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17919 | /* confdefs.h. */ |
17920 | _ACEOF | |
17921 | cat confdefs.h >>conftest.$ac_ext | |
17922 | cat >>conftest.$ac_ext <<_ACEOF | |
17923 | /* end confdefs.h. */ | |
17924 | #ifdef __STDC__ | |
17925 | # include <limits.h> | |
17926 | #else | |
17927 | # include <assert.h> | |
17928 | #endif | |
f95e4495 | 17929 | Syntax error |
e6cc62c6 VS |
17930 | _ACEOF |
17931 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17932 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17933 | ac_status=$? | |
17934 | grep -v '^ *+' conftest.er1 >conftest.err | |
17935 | rm -f conftest.er1 | |
17936 | cat conftest.err >&5 | |
17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17938 | (exit $ac_status); } >/dev/null; then | |
17939 | if test -s conftest.err; then | |
17940 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
f95e4495 | 17941 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17942 | else |
17943 | ac_cpp_err= | |
17944 | fi | |
17945 | else | |
17946 | ac_cpp_err=yes | |
17947 | fi | |
17948 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17949 | : |
698dcdb6 | 17950 | else |
e6cc62c6 VS |
17951 | echo "$as_me: failed program was:" >&5 |
17952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17953 | ||
17954 | # Broken: fails on valid input. | |
17955 | continue | |
17956 | fi | |
17957 | rm -f conftest.err conftest.$ac_ext | |
17958 | ||
17959 | # OK, works on sane cases. Now check whether non-existent headers | |
17960 | # can be detected and how. | |
17961 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17962 | /* confdefs.h. */ |
17963 | _ACEOF | |
17964 | cat confdefs.h >>conftest.$ac_ext | |
17965 | cat >>conftest.$ac_ext <<_ACEOF | |
17966 | /* end confdefs.h. */ | |
17967 | #include <ac_nonexistent.h> | |
17968 | _ACEOF | |
17969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17971 | ac_status=$? | |
17972 | grep -v '^ *+' conftest.er1 >conftest.err | |
17973 | rm -f conftest.er1 | |
17974 | cat conftest.err >&5 | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); } >/dev/null; then | |
17977 | if test -s conftest.err; then | |
17978 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
f95e4495 | 17979 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17980 | else |
17981 | ac_cpp_err= | |
17982 | fi | |
17983 | else | |
17984 | ac_cpp_err=yes | |
247f5006 | 17985 | fi |
e6cc62c6 VS |
17986 | if test -z "$ac_cpp_err"; then |
17987 | # Broken: success on invalid input. | |
17988 | continue | |
17989 | else | |
17990 | echo "$as_me: failed program was:" >&5 | |
17991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17992 | ||
17993 | # Passes both tests. | |
17994 | ac_preproc_ok=: | |
17995 | break | |
328a083c | 17996 | fi |
e6cc62c6 VS |
17997 | rm -f conftest.err conftest.$ac_ext |
17998 | ||
17999 | done | |
18000 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18001 | rm -f conftest.err conftest.$ac_ext | |
18002 | if $ac_preproc_ok; then | |
18003 | : | |
18004 | else | |
18005 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18006 | See \`config.log' for more details." >&5 | |
18007 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18008 | See \`config.log' for more details." >&2;} | |
18009 | { (exit 1); exit 1; }; } | |
90dd450c | 18010 | fi |
e6cc62c6 VS |
18011 | |
18012 | ac_ext=cc | |
18013 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18014 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18015 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18016 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18017 | ||
1e6feb95 | 18018 | |
1725144d | 18019 | |
21d1c967 | 18020 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 18021 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18022 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18023 | _ACEOF |
ab9b9eab | 18024 | |
21d1c967 | 18025 | else |
e6cc62c6 VS |
18026 | |
18027 | ||
18028 | ac_ext=cc | |
5c6fa7d2 | 18029 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18033 | ||
52127426 | 18034 | |
247f5006 | 18035 | |
e6cc62c6 | 18036 | for ac_header in iostream |
21d1c967 | 18037 | do |
e6cc62c6 VS |
18038 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18040 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18044 | fi | |
18045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18047 | else | |
18048 | # Is the header compilable? | |
18049 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18050 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18051 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18052 | /* confdefs.h. */ |
18053 | _ACEOF | |
18054 | cat confdefs.h >>conftest.$ac_ext | |
18055 | cat >>conftest.$ac_ext <<_ACEOF | |
18056 | /* end confdefs.h. */ | |
18057 | $ac_includes_default | |
18058 | #include <$ac_header> | |
18059 | _ACEOF | |
18060 | rm -f conftest.$ac_objext | |
18061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18062 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18063 | ac_status=$? |
f95e4495 VS |
18064 | grep -v '^ *+' conftest.er1 >conftest.err |
18065 | rm -f conftest.er1 | |
18066 | cat conftest.err >&5 | |
e6cc62c6 VS |
18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18068 | (exit $ac_status); } && | |
f95e4495 VS |
18069 | { ac_try='test -z "$ac_cxx_werror_flag" |
18070 | || test ! -s conftest.err' | |
18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18072 | (eval $ac_try) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); }; } && | |
18076 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18078 | (eval $ac_try) 2>&5 | |
18079 | ac_status=$? | |
18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18081 | (exit $ac_status); }; }; then | |
18082 | ac_header_compiler=yes | |
18083 | else | |
18084 | echo "$as_me: failed program was:" >&5 | |
18085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18086 | ||
18087 | ac_header_compiler=no | |
18088 | fi | |
f95e4495 | 18089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18090 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18091 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18092 | ||
18093 | # Is the header present? | |
18094 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18096 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18097 | /* confdefs.h. */ |
18098 | _ACEOF | |
18099 | cat confdefs.h >>conftest.$ac_ext | |
18100 | cat >>conftest.$ac_ext <<_ACEOF | |
18101 | /* end confdefs.h. */ | |
18102 | #include <$ac_header> | |
18103 | _ACEOF | |
18104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18106 | ac_status=$? | |
18107 | grep -v '^ *+' conftest.er1 >conftest.err | |
18108 | rm -f conftest.er1 | |
18109 | cat conftest.err >&5 | |
18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18111 | (exit $ac_status); } >/dev/null; then | |
18112 | if test -s conftest.err; then | |
18113 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
f95e4495 | 18114 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18115 | else |
18116 | ac_cpp_err= | |
18117 | fi | |
18118 | else | |
18119 | ac_cpp_err=yes | |
18120 | fi | |
18121 | if test -z "$ac_cpp_err"; then | |
18122 | ac_header_preproc=yes | |
18123 | else | |
18124 | echo "$as_me: failed program was:" >&5 | |
18125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18126 | ||
18127 | ac_header_preproc=no | |
18128 | fi | |
18129 | rm -f conftest.err conftest.$ac_ext | |
18130 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18131 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18132 | ||
18133 | # So? What about this header? | |
f95e4495 VS |
18134 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18135 | yes:no: ) | |
e6cc62c6 VS |
18136 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18137 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
18138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18139 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18140 | ac_header_preproc=yes | |
e6cc62c6 | 18141 | ;; |
f95e4495 | 18142 | no:yes:* ) |
e6cc62c6 VS |
18143 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18144 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
18145 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18146 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18147 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18148 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18149 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18150 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
18151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18152 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
18153 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18154 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
18155 | ( |
18156 | cat <<\_ASBOX | |
f95e4495 VS |
18157 | ## ----------------------------------------- ## |
18158 | ## Report this to wx-dev@lists.wxwindows.org ## | |
18159 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
18160 | _ASBOX |
18161 | ) | | |
18162 | sed "s/^/$as_me: WARNING: /" >&2 | |
18163 | ;; | |
18164 | esac | |
18165 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18166 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18169 | else | |
f95e4495 | 18170 | eval "$as_ac_Header=\$ac_header_preproc" |
ab9b9eab | 18171 | fi |
e6cc62c6 VS |
18172 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18173 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18174 | ||
90dd450c | 18175 | fi |
e6cc62c6 VS |
18176 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18177 | cat >>confdefs.h <<_ACEOF | |
18178 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18179 | _ACEOF | |
18180 | ||
90dd450c | 18181 | fi |
e6cc62c6 | 18182 | |
21d1c967 | 18183 | done |
10f2d63a | 18184 | |
8284b0c5 | 18185 | |
21d1c967 GD |
18186 | if test "$ac_cv_header_iostream" = "yes" ; then |
18187 | : | |
18188 | else | |
e6cc62c6 | 18189 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18190 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18191 | _ACEOF |
788deba1 | 18192 | |
90dd450c | 18193 | fi |
ab9b9eab | 18194 | |
21d1c967 | 18195 | ac_ext=c |
21d1c967 | 18196 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 18200 | |
21d1c967 | 18201 | fi |
ab9b9eab | 18202 | |
52127426 | 18203 | |
8284b0c5 | 18204 | |
e6cc62c6 VS |
18205 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
18206 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18207 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18209 | else |
e6cc62c6 VS |
18210 | |
18211 | ||
18212 | ||
18213 | ac_ext=cc | |
5c6fa7d2 | 18214 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18215 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18216 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18217 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 18218 | |
8284b0c5 | 18219 | |
e6cc62c6 | 18220 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18221 | /* confdefs.h. */ |
18222 | _ACEOF | |
18223 | cat confdefs.h >>conftest.$ac_ext | |
18224 | cat >>conftest.$ac_ext <<_ACEOF | |
18225 | /* end confdefs.h. */ | |
21d1c967 | 18226 | |
e6cc62c6 VS |
18227 | |
18228 | int | |
18229 | main () | |
18230 | { | |
21d1c967 GD |
18231 | |
18232 | bool b = true; | |
18233 | ||
18234 | return 0; | |
e6cc62c6 VS |
18235 | |
18236 | ; | |
18237 | return 0; | |
18238 | } | |
18239 | _ACEOF | |
18240 | rm -f conftest.$ac_objext | |
18241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18242 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18243 | ac_status=$? |
f95e4495 VS |
18244 | grep -v '^ *+' conftest.er1 >conftest.err |
18245 | rm -f conftest.er1 | |
18246 | cat conftest.err >&5 | |
e6cc62c6 VS |
18247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18248 | (exit $ac_status); } && | |
f95e4495 VS |
18249 | { ac_try='test -z "$ac_cxx_werror_flag" |
18250 | || test ! -s conftest.err' | |
18251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18252 | (eval $ac_try) 2>&5 | |
18253 | ac_status=$? | |
18254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18255 | (exit $ac_status); }; } && | |
18256 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18258 | (eval $ac_try) 2>&5 | |
18259 | ac_status=$? | |
18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18261 | (exit $ac_status); }; }; then | |
18262 | ||
21d1c967 | 18263 | wx_cv_cpp_bool=yes |
e6cc62c6 | 18264 | |
698dcdb6 | 18265 | else |
e6cc62c6 VS |
18266 | echo "$as_me: failed program was:" >&5 |
18267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18268 | ||
18269 | ||
21d1c967 | 18270 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
18271 | |
18272 | ||
698dcdb6 | 18273 | fi |
f95e4495 | 18274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18275 | |
18276 | ac_ext=c | |
21d1c967 | 18277 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18281 | |
a0b9e27f | 18282 | |
e6cc62c6 VS |
18283 | fi |
18284 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18285 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
18286 | |
18287 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 18288 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18289 | #define HAVE_BOOL 1 |
e6cc62c6 | 18290 | _ACEOF |
ab9b9eab | 18291 | |
21d1c967 GD |
18292 | fi |
18293 | ||
52127426 | 18294 | |
8284b0c5 | 18295 | |
e6cc62c6 VS |
18296 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
18297 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18298 | if test "${wx_cv_explicit+set}" = set; then | |
18299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18300 | else |
e6cc62c6 VS |
18301 | |
18302 | ||
18303 | ||
18304 | ac_ext=cc | |
5c6fa7d2 | 18305 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 18309 | |
8284b0c5 | 18310 | |
e6cc62c6 | 18311 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18312 | /* confdefs.h. */ |
18313 | _ACEOF | |
18314 | cat confdefs.h >>conftest.$ac_ext | |
18315 | cat >>conftest.$ac_ext <<_ACEOF | |
18316 | /* end confdefs.h. */ | |
986ecc86 VZ |
18317 | |
18318 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
18319 | |
18320 | int | |
18321 | main () | |
18322 | { | |
986ecc86 VZ |
18323 | |
18324 | return 0; | |
e6cc62c6 VS |
18325 | |
18326 | ; | |
18327 | return 0; | |
18328 | } | |
18329 | _ACEOF | |
18330 | rm -f conftest.$ac_objext | |
18331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18332 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18333 | ac_status=$? |
f95e4495 VS |
18334 | grep -v '^ *+' conftest.er1 >conftest.err |
18335 | rm -f conftest.er1 | |
18336 | cat conftest.err >&5 | |
e6cc62c6 VS |
18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18338 | (exit $ac_status); } && | |
f95e4495 VS |
18339 | { ac_try='test -z "$ac_cxx_werror_flag" |
18340 | || test ! -s conftest.err' | |
18341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18342 | (eval $ac_try) 2>&5 | |
18343 | ac_status=$? | |
18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18345 | (exit $ac_status); }; } && | |
18346 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18348 | (eval $ac_try) 2>&5 | |
18349 | ac_status=$? | |
18350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18351 | (exit $ac_status); }; }; then | |
18352 | ||
18353 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18354 | /* confdefs.h. */ |
18355 | _ACEOF | |
18356 | cat confdefs.h >>conftest.$ac_ext | |
18357 | cat >>conftest.$ac_ext <<_ACEOF | |
18358 | /* end confdefs.h. */ | |
986ecc86 VZ |
18359 | |
18360 | class Foo { public: explicit Foo(int) {} }; | |
18361 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18362 | |
18363 | int | |
18364 | main () | |
18365 | { | |
986ecc86 VZ |
18366 | |
18367 | TakeFoo(17); | |
18368 | return 0; | |
e6cc62c6 VS |
18369 | |
18370 | ; | |
18371 | return 0; | |
18372 | } | |
18373 | _ACEOF | |
18374 | rm -f conftest.$ac_objext | |
18375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18376 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18377 | ac_status=$? |
f95e4495 VS |
18378 | grep -v '^ *+' conftest.er1 >conftest.err |
18379 | rm -f conftest.er1 | |
18380 | cat conftest.err >&5 | |
e6cc62c6 VS |
18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18382 | (exit $ac_status); } && | |
f95e4495 VS |
18383 | { ac_try='test -z "$ac_cxx_werror_flag" |
18384 | || test ! -s conftest.err' | |
18385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18386 | (eval $ac_try) 2>&5 | |
18387 | ac_status=$? | |
18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18389 | (exit $ac_status); }; } && | |
18390 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18392 | (eval $ac_try) 2>&5 | |
18393 | ac_status=$? | |
18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18395 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
18396 | wx_cv_explicit=no |
18397 | else | |
e6cc62c6 VS |
18398 | echo "$as_me: failed program was:" >&5 |
18399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18400 | ||
18401 | wx_cv_explicit=yes | |
18402 | ||
986ecc86 | 18403 | fi |
f95e4495 | 18404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18405 | |
986ecc86 | 18406 | else |
e6cc62c6 VS |
18407 | echo "$as_me: failed program was:" >&5 |
18408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18409 | ||
18410 | wx_cv_explicit=no | |
18411 | ||
986ecc86 | 18412 | fi |
f95e4495 | 18413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
18414 | |
18415 | ac_ext=c | |
986ecc86 | 18416 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18420 | |
a0b9e27f | 18421 | |
e6cc62c6 VS |
18422 | fi |
18423 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18424 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
18425 | |
18426 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 18427 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 18428 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 18429 | _ACEOF |
986ecc86 VZ |
18430 | |
18431 | fi | |
18432 | ||
8284b0c5 | 18433 | |
e6cc62c6 VS |
18434 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
18435 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18436 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 18438 | else |
521196a2 | 18439 | |
521196a2 | 18440 | |
e6cc62c6 VS |
18441 | ac_ext=cc |
18442 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18443 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18444 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18445 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18446 | ||
18447 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18448 | /* confdefs.h. */ |
18449 | _ACEOF | |
18450 | cat confdefs.h >>conftest.$ac_ext | |
18451 | cat >>conftest.$ac_ext <<_ACEOF | |
18452 | /* end confdefs.h. */ | |
18453 | ||
18454 | int | |
18455 | main () | |
18456 | { | |
521196a2 | 18457 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
18458 | ; |
18459 | return 0; | |
18460 | } | |
18461 | _ACEOF | |
18462 | rm -f conftest.$ac_objext | |
18463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18464 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18465 | ac_status=$? |
f95e4495 VS |
18466 | grep -v '^ *+' conftest.er1 >conftest.err |
18467 | rm -f conftest.er1 | |
18468 | cat conftest.err >&5 | |
e6cc62c6 VS |
18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18470 | (exit $ac_status); } && | |
f95e4495 VS |
18471 | { ac_try='test -z "$ac_cxx_werror_flag" |
18472 | || test ! -s conftest.err' | |
18473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18474 | (eval $ac_try) 2>&5 | |
18475 | ac_status=$? | |
18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18477 | (exit $ac_status); }; } && | |
18478 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18480 | (eval $ac_try) 2>&5 | |
18481 | ac_status=$? | |
18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18483 | (exit $ac_status); }; }; then | |
521196a2 MB |
18484 | ac_cv_cxx_const_cast=yes |
18485 | else | |
e6cc62c6 VS |
18486 | echo "$as_me: failed program was:" >&5 |
18487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18488 | ||
18489 | ac_cv_cxx_const_cast=no | |
521196a2 | 18490 | fi |
f95e4495 | 18491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
521196a2 | 18492 | ac_ext=c |
521196a2 | 18493 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
18497 | |
18498 | ||
18499 | fi | |
e6cc62c6 VS |
18500 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
18501 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 18502 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
18503 | |
18504 | cat >>confdefs.h <<\_ACEOF | |
18505 | #define HAVE_CONST_CAST | |
18506 | _ACEOF | |
521196a2 MB |
18507 | |
18508 | fi | |
18509 | ||
18510 | ||
e87b7833 MB |
18511 | if test "$wxUSE_STL" = "yes"; then |
18512 | ac_ext=cc | |
18513 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18514 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18515 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18516 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18517 | ||
18518 | ||
18519 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
18520 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
18521 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18522 | /* confdefs.h. */ |
18523 | _ACEOF | |
18524 | cat confdefs.h >>conftest.$ac_ext | |
18525 | cat >>conftest.$ac_ext <<_ACEOF | |
18526 | /* end confdefs.h. */ | |
18527 | #include <string> | |
18528 | #include <functional> | |
18529 | #include <algorithm> | |
18530 | #include <vector> | |
18531 | #include <list> | |
18532 | int | |
18533 | main () | |
18534 | { | |
18535 | std::vector<int> moo; | |
18536 | std::list<int> foo; | |
18537 | std::vector<int>::iterator it = | |
18538 | std::find_if(moo.begin(), moo.end(), | |
18539 | std::bind2nd(std::less<int>(), 3)); | |
18540 | ; | |
18541 | return 0; | |
18542 | } | |
18543 | _ACEOF | |
18544 | rm -f conftest.$ac_objext | |
18545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18546 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18547 | ac_status=$? |
f95e4495 VS |
18548 | grep -v '^ *+' conftest.er1 >conftest.err |
18549 | rm -f conftest.er1 | |
18550 | cat conftest.err >&5 | |
e87b7833 MB |
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18552 | (exit $ac_status); } && | |
f95e4495 VS |
18553 | { ac_try='test -z "$ac_cxx_werror_flag" |
18554 | || test ! -s conftest.err' | |
18555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18556 | (eval $ac_try) 2>&5 | |
18557 | ac_status=$? | |
18558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18559 | (exit $ac_status); }; } && | |
18560 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18562 | (eval $ac_try) 2>&5 | |
18563 | ac_status=$? | |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18565 | (exit $ac_status); }; }; then | |
18566 | echo "$as_me:$LINENO: result: yes" >&5 | |
18567 | echo "${ECHO_T}yes" >&6 | |
18568 | else | |
18569 | echo "$as_me: failed program was:" >&5 | |
18570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18571 | ||
18572 | echo "$as_me:$LINENO: result: no" >&5 | |
18573 | echo "${ECHO_T}no" >&6 | |
18574 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
18575 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
18576 | { (exit 1); exit 1; }; } | |
18577 | fi | |
f95e4495 | 18578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18579 | |
18580 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
18581 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
18582 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18583 | /* confdefs.h. */ |
18584 | _ACEOF | |
18585 | cat confdefs.h >>conftest.$ac_ext | |
18586 | cat >>conftest.$ac_ext <<_ACEOF | |
18587 | /* end confdefs.h. */ | |
18588 | #include <string> | |
18589 | int | |
18590 | main () | |
18591 | { | |
18592 | std::wstring foo; | |
18593 | ; | |
18594 | return 0; | |
18595 | } | |
18596 | _ACEOF | |
18597 | rm -f conftest.$ac_objext | |
18598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18599 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18600 | ac_status=$? |
f95e4495 VS |
18601 | grep -v '^ *+' conftest.er1 >conftest.err |
18602 | rm -f conftest.er1 | |
18603 | cat conftest.err >&5 | |
e87b7833 MB |
18604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18605 | (exit $ac_status); } && | |
f95e4495 VS |
18606 | { ac_try='test -z "$ac_cxx_werror_flag" |
18607 | || test ! -s conftest.err' | |
18608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18609 | (eval $ac_try) 2>&5 | |
18610 | ac_status=$? | |
18611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18612 | (exit $ac_status); }; } && | |
18613 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18615 | (eval $ac_try) 2>&5 | |
18616 | ac_status=$? | |
18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18618 | (exit $ac_status); }; }; then | |
18619 | echo "$as_me:$LINENO: result: yes" >&5 | |
18620 | echo "${ECHO_T}yes" >&6 | |
18621 | cat >>confdefs.h <<\_ACEOF | |
18622 | #define HAVE_STD_WSTRING 1 | |
18623 | _ACEOF | |
18624 | ||
18625 | else | |
18626 | echo "$as_me: failed program was:" >&5 | |
18627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18628 | ||
18629 | echo "$as_me:$LINENO: result: no" >&5 | |
18630 | echo "${ECHO_T}no" >&6 | |
18631 | fi | |
f95e4495 | 18632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18633 | |
18634 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
18635 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
18636 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18637 | /* confdefs.h. */ |
18638 | _ACEOF | |
18639 | cat confdefs.h >>conftest.$ac_ext | |
18640 | cat >>conftest.$ac_ext <<_ACEOF | |
18641 | /* end confdefs.h. */ | |
18642 | #include <string> | |
18643 | int | |
18644 | main () | |
18645 | { | |
18646 | std::string foo, bar; | |
18647 | foo.compare(bar); | |
18648 | foo.compare(1, 1, bar); | |
18649 | foo.compare(1, 1, bar, 1, 1); | |
18650 | foo.compare(""); | |
18651 | foo.compare(1, 1, ""); | |
18652 | foo.compare(1, 1, "", 2); | |
18653 | ; | |
18654 | return 0; | |
18655 | } | |
18656 | _ACEOF | |
18657 | rm -f conftest.$ac_objext | |
18658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18659 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18660 | ac_status=$? |
f95e4495 VS |
18661 | grep -v '^ *+' conftest.er1 >conftest.err |
18662 | rm -f conftest.er1 | |
18663 | cat conftest.err >&5 | |
e87b7833 MB |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18665 | (exit $ac_status); } && | |
f95e4495 VS |
18666 | { ac_try='test -z "$ac_cxx_werror_flag" |
18667 | || test ! -s conftest.err' | |
18668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18669 | (eval $ac_try) 2>&5 | |
18670 | ac_status=$? | |
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18672 | (exit $ac_status); }; } && | |
18673 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18675 | (eval $ac_try) 2>&5 | |
18676 | ac_status=$? | |
18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18678 | (exit $ac_status); }; }; then | |
18679 | echo "$as_me:$LINENO: result: yes" >&5 | |
18680 | echo "${ECHO_T}yes" >&6 | |
18681 | cat >>confdefs.h <<\_ACEOF | |
18682 | #define HAVE_STD_STRING_COMPARE 1 | |
18683 | _ACEOF | |
18684 | ||
18685 | else | |
18686 | echo "$as_me: failed program was:" >&5 | |
18687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18688 | ||
18689 | echo "$as_me:$LINENO: result: no" >&5 | |
18690 | echo "${ECHO_T}no" >&6 | |
18691 | fi | |
f95e4495 | 18692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18693 | |
18694 | ac_ext=c | |
18695 | ac_cpp='$CPP $CPPFLAGS' | |
18696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18699 | ||
18700 | fi | |
18701 | ||
8284b0c5 | 18702 | |
21d1c967 GD |
18703 | SEARCH_INCLUDE="\ |
18704 | /usr/local/include \ | |
18705 | \ | |
18706 | /usr/Motif-1.2/include \ | |
18707 | /usr/Motif-2.1/include \ | |
18708 | \ | |
18709 | /usr/include/Motif1.2 \ | |
18710 | /opt/xpm/include/X11 \ | |
18711 | /opt/GBxpm/include/ \ | |
18712 | /opt/GBxpm/X11/include/ \ | |
18713 | \ | |
18714 | /usr/Motif1.2/include \ | |
18715 | /usr/dt/include \ | |
18716 | /usr/openwin/include \ | |
18717 | \ | |
18718 | /usr/include/Xm \ | |
18719 | \ | |
18720 | /usr/X11R6/include \ | |
18721 | /usr/X11R6.4/include \ | |
18722 | /usr/X11R5/include \ | |
18723 | /usr/X11R4/include \ | |
18724 | \ | |
18725 | /usr/include/X11R6 \ | |
18726 | /usr/include/X11R5 \ | |
18727 | /usr/include/X11R4 \ | |
18728 | \ | |
18729 | /usr/local/X11R6/include \ | |
18730 | /usr/local/X11R5/include \ | |
18731 | /usr/local/X11R4/include \ | |
18732 | \ | |
18733 | /usr/local/include/X11R6 \ | |
18734 | /usr/local/include/X11R5 \ | |
18735 | /usr/local/include/X11R4 \ | |
18736 | \ | |
18737 | /usr/X11/include \ | |
18738 | /usr/include/X11 \ | |
18739 | /usr/local/X11/include \ | |
18740 | /usr/local/include/X11 \ | |
18741 | \ | |
18742 | /usr/X386/include \ | |
18743 | /usr/x386/include \ | |
18744 | /usr/XFree86/include/X11 \ | |
18745 | \ | |
18746 | X:/XFree86/include \ | |
18747 | X:/XFree86/include/X11 \ | |
18748 | \ | |
18749 | /usr/include/gtk \ | |
18750 | /usr/local/include/gtk \ | |
18751 | /usr/include/glib \ | |
18752 | /usr/local/include/glib \ | |
18753 | \ | |
18754 | /usr/include/qt \ | |
18755 | /usr/local/include/qt \ | |
18756 | \ | |
18757 | /usr/include/windows \ | |
18758 | /usr/include/wine \ | |
18759 | /usr/local/include/wine \ | |
18760 | \ | |
18761 | /usr/unsupported/include \ | |
18762 | /usr/athena/include \ | |
18763 | /usr/local/x11r5/include \ | |
18764 | /usr/lpp/Xamples/include \ | |
18765 | \ | |
2b5f62a0 | 18766 | /usr/openwin/share/include" |
21d1c967 GD |
18767 | |
18768 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
18769 | ||
8284b0c5 | 18770 | |
e6cc62c6 | 18771 | cat >confcache <<\_ACEOF |
21d1c967 GD |
18772 | # This file is a shell script that caches the results of configure |
18773 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
18774 | # scripts and configure runs, see configure's option --config-cache. |
18775 | # It is not useful on other systems. If it contains results you don't | |
18776 | # want to keep, you may remove or edit it. | |
21d1c967 | 18777 | # |
e6cc62c6 VS |
18778 | # config.status only pays attention to the cache file if you give it |
18779 | # the --recheck option to rerun configure. | |
21d1c967 | 18780 | # |
e6cc62c6 VS |
18781 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18782 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18783 | # following values. | |
18784 | ||
18785 | _ACEOF | |
18786 | ||
21d1c967 GD |
18787 | # The following way of writing the cache mishandles newlines in values, |
18788 | # but we know of no workaround that is simple, portable, and efficient. | |
18789 | # So, don't put newlines in cache variables' values. | |
18790 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18791 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
18792 | { |
18793 | (set) 2>&1 | | |
18794 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18795 | *ac_space=\ *) | |
18796 | # `set' does not quote correctly, so add quotes (double-quote | |
18797 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18798 | sed -n \ | |
f95e4495 VS |
18799 | "s/'/'\\\\''/g; |
18800 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
18801 | ;; |
18802 | *) | |
18803 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18804 | sed -n \ | |
f95e4495 | 18805 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
18806 | ;; |
18807 | esac; | |
18808 | } | | |
18809 | sed ' | |
18810 | t clear | |
18811 | : clear | |
18812 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18813 | t end | |
18814 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18815 | : end' >>confcache | |
18816 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 18817 | if test -w $cache_file; then |
e6cc62c6 VS |
18818 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18819 | cat confcache >$cache_file | |
21d1c967 GD |
18820 | else |
18821 | echo "not updating unwritable cache $cache_file" | |
18822 | fi | |
ab9b9eab | 18823 | fi |
21d1c967 | 18824 | rm -f confcache |
ab9b9eab | 18825 | |
fe0895cf | 18826 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18827 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18828 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18829 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18831 | else | |
18832 | ||
18833 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18834 | /* confdefs.h. */ |
18835 | _ACEOF | |
18836 | cat confdefs.h >>conftest.$ac_ext | |
18837 | cat >>conftest.$ac_ext <<_ACEOF | |
18838 | /* end confdefs.h. */ | |
21d1c967 | 18839 | #include <features.h> |
e6cc62c6 VS |
18840 | int |
18841 | main () | |
18842 | { | |
ab9b9eab | 18843 | |
21d1c967 GD |
18844 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18845 | #error not glibc2.1 | |
18846 | #endif | |
e6cc62c6 VS |
18847 | |
18848 | ; | |
18849 | return 0; | |
18850 | } | |
18851 | _ACEOF | |
18852 | rm -f conftest.$ac_objext | |
18853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18854 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18855 | ac_status=$? |
f95e4495 VS |
18856 | grep -v '^ *+' conftest.er1 >conftest.err |
18857 | rm -f conftest.er1 | |
18858 | cat conftest.err >&5 | |
e6cc62c6 VS |
18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18860 | (exit $ac_status); } && | |
f95e4495 VS |
18861 | { ac_try='test -z "$ac_c_werror_flag" |
18862 | || test ! -s conftest.err' | |
18863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18864 | (eval $ac_try) 2>&5 | |
18865 | ac_status=$? | |
18866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18867 | (exit $ac_status); }; } && | |
18868 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18870 | (eval $ac_try) 2>&5 | |
18871 | ac_status=$? | |
18872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18873 | (exit $ac_status); }; }; then | |
18874 | ||
21d1c967 | 18875 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18876 | |
698dcdb6 | 18877 | else |
e6cc62c6 VS |
18878 | echo "$as_me: failed program was:" >&5 |
18879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18880 | ||
18881 | ||
21d1c967 | 18882 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18883 | |
18884 | ||
247f5006 | 18885 | fi |
f95e4495 | 18886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18887 | |
e6cc62c6 VS |
18888 | fi |
18889 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18890 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18891 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18892 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18893 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18894 | _ACEOF |
1e487827 | 18895 | |
90dd450c | 18896 | fi |
ab9b9eab VZ |
18897 | fi |
18898 | ||
5c0a20c3 VZ |
18899 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18900 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18901 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18902 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18903 | _ACEOF |
5c0a20c3 VZ |
18904 | |
18905 | fi | |
18906 | fi | |
18907 | ||
8284b0c5 MB |
18908 | |
18909 | ||
21d1c967 | 18910 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 18911 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18912 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18913 | _ACEOF |
698dcdb6 | 18914 | |
8284b0c5 | 18915 | |
30f2fa6c VS |
18916 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
18917 | { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5 | |
18918 | echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;} | |
18919 | wxUSE_REGEX=builtin | |
18920 | fi | |
18921 | ||
21d1c967 | 18922 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18923 | if test "${ac_cv_header_regex_h+set}" = set; then |
18924 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18925 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18926 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18928 | fi | |
18929 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18930 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18931 | else | |
18932 | # Is the header compilable? | |
18933 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18934 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18935 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18936 | /* confdefs.h. */ |
18937 | _ACEOF | |
18938 | cat confdefs.h >>conftest.$ac_ext | |
18939 | cat >>conftest.$ac_ext <<_ACEOF | |
18940 | /* end confdefs.h. */ | |
18941 | $ac_includes_default | |
247f5006 | 18942 | #include <regex.h> |
e6cc62c6 VS |
18943 | _ACEOF |
18944 | rm -f conftest.$ac_objext | |
18945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 18946 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18947 | ac_status=$? |
f95e4495 VS |
18948 | grep -v '^ *+' conftest.er1 >conftest.err |
18949 | rm -f conftest.er1 | |
18950 | cat conftest.err >&5 | |
e6cc62c6 VS |
18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18952 | (exit $ac_status); } && | |
f95e4495 VS |
18953 | { ac_try='test -z "$ac_c_werror_flag" |
18954 | || test ! -s conftest.err' | |
18955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18956 | (eval $ac_try) 2>&5 | |
18957 | ac_status=$? | |
18958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18959 | (exit $ac_status); }; } && | |
18960 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18962 | (eval $ac_try) 2>&5 | |
18963 | ac_status=$? | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); }; }; then | |
18966 | ac_header_compiler=yes | |
18967 | else | |
18968 | echo "$as_me: failed program was:" >&5 | |
18969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18970 | ||
18971 | ac_header_compiler=no | |
18972 | fi | |
f95e4495 | 18973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18976 | ||
18977 | # Is the header present? | |
18978 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18979 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18980 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18981 | /* confdefs.h. */ |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | #include <regex.h> | |
18987 | _ACEOF | |
18988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18990 | ac_status=$? | |
18991 | grep -v '^ *+' conftest.er1 >conftest.err | |
18992 | rm -f conftest.er1 | |
18993 | cat conftest.err >&5 | |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18995 | (exit $ac_status); } >/dev/null; then | |
18996 | if test -s conftest.err; then | |
18997 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 18998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
18999 | else |
19000 | ac_cpp_err= | |
19001 | fi | |
19002 | else | |
19003 | ac_cpp_err=yes | |
19004 | fi | |
19005 | if test -z "$ac_cpp_err"; then | |
19006 | ac_header_preproc=yes | |
19007 | else | |
19008 | echo "$as_me: failed program was:" >&5 | |
19009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19010 | ||
19011 | ac_header_preproc=no | |
19012 | fi | |
19013 | rm -f conftest.err conftest.$ac_ext | |
19014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19016 | ||
19017 | # So? What about this header? | |
f95e4495 VS |
19018 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19019 | yes:no: ) | |
e6cc62c6 VS |
19020 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19021 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
19022 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
19023 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
19024 | ac_header_preproc=yes | |
e6cc62c6 | 19025 | ;; |
f95e4495 | 19026 | no:yes:* ) |
e6cc62c6 VS |
19027 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
19028 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
19029 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
19030 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
19031 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
19032 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
19033 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19034 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19035 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
19036 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
19037 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
19038 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19039 | ( |
19040 | cat <<\_ASBOX | |
f95e4495 VS |
19041 | ## ----------------------------------------- ## |
19042 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19043 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19044 | _ASBOX |
19045 | ) | | |
19046 | sed "s/^/$as_me: WARNING: /" >&2 | |
19047 | ;; | |
19048 | esac | |
19049 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19050 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19051 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19053 | else | |
19054 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 19055 | fi |
e6cc62c6 VS |
19056 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
19057 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19058 | ||
698dcdb6 | 19059 | fi |
e6cc62c6 VS |
19060 | if test $ac_cv_header_regex_h = yes; then |
19061 | ||
19062 | for ac_func in regcomp | |
21d1c967 | 19063 | do |
e6cc62c6 VS |
19064 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19065 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19066 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19067 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19069 | else | |
19070 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19071 | /* confdefs.h. */ |
19072 | _ACEOF | |
19073 | cat confdefs.h >>conftest.$ac_ext | |
19074 | cat >>conftest.$ac_ext <<_ACEOF | |
19075 | /* end confdefs.h. */ | |
f95e4495 VS |
19076 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19077 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19078 | #define $ac_func innocuous_$ac_func | |
19079 | ||
a0b9e27f | 19080 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
19081 | which can conflict with char $ac_func (); below. |
19082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19083 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 19084 | |
e6cc62c6 VS |
19085 | #ifdef __STDC__ |
19086 | # include <limits.h> | |
19087 | #else | |
19088 | # include <assert.h> | |
19089 | #endif | |
f95e4495 VS |
19090 | |
19091 | #undef $ac_func | |
19092 | ||
21d1c967 | 19093 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19094 | #ifdef __cplusplus |
19095 | extern "C" | |
19096 | { | |
19097 | #endif | |
21d1c967 | 19098 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19099 | builtin and then its argument prototype would still apply. */ |
19100 | char $ac_func (); | |
21d1c967 GD |
19101 | /* The GNU C library defines this for functions which it implements |
19102 | to always fail with ENOSYS. Some functions are actually named | |
19103 | something starting with __ and the normal name is an alias. */ | |
19104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19105 | choke me | |
19106 | #else | |
e6cc62c6 VS |
19107 | char (*f) () = $ac_func; |
19108 | #endif | |
19109 | #ifdef __cplusplus | |
19110 | } | |
21d1c967 | 19111 | #endif |
90dd450c | 19112 | |
e6cc62c6 VS |
19113 | int |
19114 | main () | |
19115 | { | |
19116 | return f != $ac_func; | |
19117 | ; | |
19118 | return 0; | |
19119 | } | |
19120 | _ACEOF | |
19121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 19123 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19124 | ac_status=$? |
f95e4495 VS |
19125 | grep -v '^ *+' conftest.er1 >conftest.err |
19126 | rm -f conftest.er1 | |
19127 | cat conftest.err >&5 | |
e6cc62c6 VS |
19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19129 | (exit $ac_status); } && | |
f95e4495 VS |
19130 | { ac_try='test -z "$ac_c_werror_flag" |
19131 | || test ! -s conftest.err' | |
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_exeext' | |
e6cc62c6 VS |
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 | eval "$as_ac_var=yes" | |
19144 | else | |
19145 | echo "$as_me: failed program was:" >&5 | |
19146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19147 | ||
19148 | eval "$as_ac_var=no" | |
19149 | fi | |
f95e4495 VS |
19150 | rm -f conftest.err conftest.$ac_objext \ |
19151 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19152 | fi |
19153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19154 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19155 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19156 | cat >>confdefs.h <<_ACEOF | |
19157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19158 | _ACEOF | |
5c6fa7d2 | 19159 | |
698dcdb6 | 19160 | fi |
21d1c967 GD |
19161 | done |
19162 | ||
ab9b9eab VZ |
19163 | fi |
19164 | ||
8284b0c5 | 19165 | |
e6cc62c6 | 19166 | |
21d1c967 GD |
19167 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
19168 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
19169 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
19170 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
19171 | { (exit 1); exit 1; }; } | |
21d1c967 | 19172 | else |
e6cc62c6 VS |
19173 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
19174 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19175 | wxUSE_REGEX=builtin |
19176 | fi | |
19177 | else | |
19178 | wxUSE_REGEX=sys | |
19179 | fi | |
ab9b9eab | 19180 | fi |
21d1c967 | 19181 | fi |
90dd450c | 19182 | |
8284b0c5 | 19183 | |
21d1c967 GD |
19184 | ZLIB_LINK= |
19185 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 19186 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19187 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 19188 | _ACEOF |
21d1c967 | 19189 | |
8284b0c5 | 19190 | |
21d1c967 | 19191 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
19192 | if test "$USE_DARWIN" = 1; then |
19193 | system_zlib_h_ok="yes" | |
19194 | else | |
e6cc62c6 VS |
19195 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
19196 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
19197 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
19199 | else |
19200 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19201 | unset ac_cv_header_zlib_h |
e6cc62c6 | 19202 | |
d643b80e | 19203 | else |
e6cc62c6 | 19204 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19205 | /* confdefs.h. */ |
19206 | _ACEOF | |
19207 | cat confdefs.h >>conftest.$ac_ext | |
19208 | cat >>conftest.$ac_ext <<_ACEOF | |
19209 | /* end confdefs.h. */ | |
19210 | ||
ef33c576 | 19211 | #include <zlib.h> |
d775acfa | 19212 | #include <stdio.h> |
d643b80e | 19213 | |
d775acfa VZ |
19214 | int main() |
19215 | { | |
19216 | FILE *f=fopen("conftestval", "w"); | |
19217 | if (!f) exit(1); | |
19218 | fprintf(f, "%s", | |
19219 | ZLIB_VERSION[0] == '1' && | |
19220 | (ZLIB_VERSION[2] > '1' || | |
19221 | (ZLIB_VERSION[2] == '1' && | |
19222 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19223 | exit(0); | |
19224 | } | |
e6cc62c6 VS |
19225 | |
19226 | _ACEOF | |
19227 | rm -f conftest$ac_exeext | |
19228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19229 | (eval $ac_link) 2>&5 | |
19230 | ac_status=$? | |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19232 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19234 | (eval $ac_try) 2>&5 | |
19235 | ac_status=$? | |
19236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19237 | (exit $ac_status); }; }; then | |
d643b80e VZ |
19238 | ac_cv_header_zlib_h=`cat conftestval` |
19239 | else | |
e6cc62c6 VS |
19240 | echo "$as_me: program exited with status $ac_status" >&5 |
19241 | echo "$as_me: failed program was:" >&5 | |
19242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19243 | ||
19244 | ( exit $ac_status ) | |
19245 | ac_cv_header_zlib_h=no | |
d643b80e | 19246 | fi |
f95e4495 | 19247 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
19248 | fi |
19249 | ||
d643b80e | 19250 | fi |
e6cc62c6 VS |
19251 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
19252 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19253 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19254 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19255 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19256 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19258 | fi | |
19259 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19260 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 19261 | else |
e6cc62c6 VS |
19262 | # Is the header compilable? |
19263 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19264 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19265 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19266 | /* confdefs.h. */ |
19267 | _ACEOF | |
19268 | cat confdefs.h >>conftest.$ac_ext | |
19269 | cat >>conftest.$ac_ext <<_ACEOF | |
19270 | /* end confdefs.h. */ | |
19271 | $ac_includes_default | |
89e6bf6d | 19272 | #include <zlib.h> |
e6cc62c6 VS |
19273 | _ACEOF |
19274 | rm -f conftest.$ac_objext | |
19275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 19276 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19277 | ac_status=$? |
f95e4495 VS |
19278 | grep -v '^ *+' conftest.er1 >conftest.err |
19279 | rm -f conftest.er1 | |
19280 | cat conftest.err >&5 | |
e6cc62c6 VS |
19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19282 | (exit $ac_status); } && | |
f95e4495 VS |
19283 | { ac_try='test -z "$ac_c_werror_flag" |
19284 | || test ! -s conftest.err' | |
19285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19286 | (eval $ac_try) 2>&5 | |
19287 | ac_status=$? | |
19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19289 | (exit $ac_status); }; } && | |
19290 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19292 | (eval $ac_try) 2>&5 | |
19293 | ac_status=$? | |
19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19295 | (exit $ac_status); }; }; then | |
19296 | ac_header_compiler=yes | |
19297 | else | |
19298 | echo "$as_me: failed program was:" >&5 | |
19299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19300 | ||
19301 | ac_header_compiler=no | |
19302 | fi | |
f95e4495 | 19303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19304 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19305 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19306 | ||
19307 | # Is the header present? | |
19308 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19309 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19310 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19311 | /* confdefs.h. */ |
19312 | _ACEOF | |
19313 | cat confdefs.h >>conftest.$ac_ext | |
19314 | cat >>conftest.$ac_ext <<_ACEOF | |
19315 | /* end confdefs.h. */ | |
19316 | #include <zlib.h> | |
19317 | _ACEOF | |
19318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19320 | ac_status=$? | |
19321 | grep -v '^ *+' conftest.er1 >conftest.err | |
19322 | rm -f conftest.er1 | |
19323 | cat conftest.err >&5 | |
19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19325 | (exit $ac_status); } >/dev/null; then | |
19326 | if test -s conftest.err; then | |
19327 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 19328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19329 | else |
19330 | ac_cpp_err= | |
19331 | fi | |
19332 | else | |
19333 | ac_cpp_err=yes | |
19334 | fi | |
19335 | if test -z "$ac_cpp_err"; then | |
19336 | ac_header_preproc=yes | |
19337 | else | |
19338 | echo "$as_me: failed program was:" >&5 | |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
19341 | ac_header_preproc=no | |
19342 | fi | |
19343 | rm -f conftest.err conftest.$ac_ext | |
19344 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19345 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19346 | ||
19347 | # So? What about this header? | |
f95e4495 VS |
19348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19349 | yes:no: ) | |
e6cc62c6 VS |
19350 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19351 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
19352 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
19353 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19354 | ac_header_preproc=yes | |
e6cc62c6 | 19355 | ;; |
f95e4495 | 19356 | no:yes:* ) |
e6cc62c6 VS |
19357 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19358 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
19359 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19360 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19361 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19362 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19363 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19364 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19365 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19366 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
19367 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
19368 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19369 | ( |
19370 | cat <<\_ASBOX | |
f95e4495 VS |
19371 | ## ----------------------------------------- ## |
19372 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19373 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19374 | _ASBOX |
19375 | ) | | |
19376 | sed "s/^/$as_me: WARNING: /" >&2 | |
19377 | ;; | |
19378 | esac | |
19379 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19380 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19381 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19383 | else |
e6cc62c6 VS |
19384 | ac_cv_header_zlib_h=$ac_header_preproc |
19385 | fi | |
19386 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19387 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19388 | ||
89e6bf6d VZ |
19389 | fi |
19390 | ||
d643b80e | 19391 | |
e6cc62c6 | 19392 | |
d775acfa VZ |
19393 | system_zlib_h_ok=$ac_cv_header_zlib_h |
19394 | fi | |
19395 | ||
19396 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
19397 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
19398 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19399 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19401 | else |
e6cc62c6 | 19402 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19403 | LIBS="-lz $LIBS" |
e6cc62c6 | 19404 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19405 | /* confdefs.h. */ |
19406 | _ACEOF | |
19407 | cat confdefs.h >>conftest.$ac_ext | |
19408 | cat >>conftest.$ac_ext <<_ACEOF | |
19409 | /* end confdefs.h. */ | |
19410 | ||
21d1c967 | 19411 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19412 | #ifdef __cplusplus |
19413 | extern "C" | |
19414 | #endif | |
21d1c967 | 19415 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19416 | builtin and then its argument prototype would still apply. */ |
19417 | char deflate (); | |
19418 | int | |
19419 | main () | |
19420 | { | |
19421 | deflate (); | |
19422 | ; | |
19423 | return 0; | |
19424 | } | |
19425 | _ACEOF | |
19426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 19428 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19429 | ac_status=$? |
f95e4495 VS |
19430 | grep -v '^ *+' conftest.er1 >conftest.err |
19431 | rm -f conftest.er1 | |
19432 | cat conftest.err >&5 | |
e6cc62c6 VS |
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19434 | (exit $ac_status); } && | |
f95e4495 VS |
19435 | { ac_try='test -z "$ac_c_werror_flag" |
19436 | || test ! -s conftest.err' | |
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_exeext' | |
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 | ac_cv_lib_z_deflate=yes | |
19449 | else | |
19450 | echo "$as_me: failed program was:" >&5 | |
19451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19452 | ||
19453 | ac_cv_lib_z_deflate=no | |
19454 | fi | |
f95e4495 VS |
19455 | rm -f conftest.err conftest.$ac_objext \ |
19456 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19457 | LIBS=$ac_check_lib_save_LIBS |
19458 | fi | |
19459 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
19460 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
19461 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 19462 | ZLIB_LINK=" -lz" |
a0b9e27f | 19463 | fi |
698dcdb6 | 19464 | |
d643b80e | 19465 | fi |
247f5006 | 19466 | |
21d1c967 GD |
19467 | if test "x$ZLIB_LINK" = "x" ; then |
19468 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
19469 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
19470 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
19471 | { (exit 1); exit 1; }; } | |
21d1c967 | 19472 | else |
e6cc62c6 VS |
19473 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
19474 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19475 | wxUSE_ZLIB=builtin |
19476 | fi | |
19477 | else | |
19478 | wxUSE_ZLIB=sys | |
19479 | fi | |
19480 | fi | |
ab9b9eab VZ |
19481 | fi |
19482 | ||
8284b0c5 | 19483 | |
21d1c967 GD |
19484 | PNG_LINK= |
19485 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 19486 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19487 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 19488 | _ACEOF |
90dd450c | 19489 | |
8284b0c5 | 19490 | |
21d1c967 | 19491 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
19492 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
19493 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19494 | wxUSE_LIBPNG=sys |
19495 | fi | |
90dd450c | 19496 | |
21d1c967 | 19497 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
19498 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
19499 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
19500 | wxUSE_LIBPNG=builtin |
19501 | fi | |
19502 | ||
19503 | if test "$wxUSE_MGL" != 1 ; then | |
19504 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
19505 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
19506 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
19507 | if test "${ac_cv_header_png_h+set}" = set; then | |
19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
19509 | else |
19510 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19511 | unset ac_cv_header_png_h |
e6cc62c6 | 19512 | |
5d3f766d | 19513 | else |
e6cc62c6 | 19514 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19515 | /* confdefs.h. */ |
19516 | _ACEOF | |
19517 | cat confdefs.h >>conftest.$ac_ext | |
19518 | cat >>conftest.$ac_ext <<_ACEOF | |
19519 | /* end confdefs.h. */ | |
19520 | ||
ef33c576 | 19521 | #include <png.h> |
5d3f766d VZ |
19522 | #include <stdio.h> |
19523 | ||
19524 | int main() | |
19525 | { | |
19526 | FILE *f=fopen("conftestval", "w"); | |
19527 | if (!f) exit(1); | |
19528 | fprintf(f, "%s", | |
19529 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
19530 | exit(0); | |
19531 | } | |
e6cc62c6 VS |
19532 | |
19533 | _ACEOF | |
19534 | rm -f conftest$ac_exeext | |
19535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19536 | (eval $ac_link) 2>&5 | |
19537 | ac_status=$? | |
19538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19541 | (eval $ac_try) 2>&5 | |
19542 | ac_status=$? | |
19543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19544 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
19545 | ac_cv_header_png_h=`cat conftestval` |
19546 | else | |
e6cc62c6 VS |
19547 | echo "$as_me: program exited with status $ac_status" >&5 |
19548 | echo "$as_me: failed program was:" >&5 | |
19549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19550 | ||
19551 | ( exit $ac_status ) | |
19552 | ac_cv_header_png_h=no | |
5d3f766d | 19553 | fi |
f95e4495 | 19554 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
19555 | fi |
19556 | ||
5d3f766d | 19557 | fi |
e6cc62c6 VS |
19558 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
19559 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19560 | if test "${ac_cv_header_png_h+set}" = set; then | |
19561 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19562 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19563 | if test "${ac_cv_header_png_h+set}" = set; then | |
19564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19565 | fi | |
19566 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19567 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 19568 | else |
e6cc62c6 VS |
19569 | # Is the header compilable? |
19570 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
19571 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
19572 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19573 | /* confdefs.h. */ |
19574 | _ACEOF | |
19575 | cat confdefs.h >>conftest.$ac_ext | |
19576 | cat >>conftest.$ac_ext <<_ACEOF | |
19577 | /* end confdefs.h. */ | |
19578 | $ac_includes_default | |
89e6bf6d | 19579 | #include <png.h> |
e6cc62c6 VS |
19580 | _ACEOF |
19581 | rm -f conftest.$ac_objext | |
19582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 19583 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19584 | ac_status=$? |
f95e4495 VS |
19585 | grep -v '^ *+' conftest.er1 >conftest.err |
19586 | rm -f conftest.er1 | |
19587 | cat conftest.err >&5 | |
e6cc62c6 VS |
19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19589 | (exit $ac_status); } && | |
f95e4495 VS |
19590 | { ac_try='test -z "$ac_c_werror_flag" |
19591 | || test ! -s conftest.err' | |
19592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19593 | (eval $ac_try) 2>&5 | |
19594 | ac_status=$? | |
19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19596 | (exit $ac_status); }; } && | |
19597 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19599 | (eval $ac_try) 2>&5 | |
19600 | ac_status=$? | |
19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19602 | (exit $ac_status); }; }; then | |
19603 | ac_header_compiler=yes | |
19604 | else | |
19605 | echo "$as_me: failed program was:" >&5 | |
19606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19607 | ||
19608 | ac_header_compiler=no | |
19609 | fi | |
f95e4495 | 19610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19611 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19612 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19613 | ||
19614 | # Is the header present? | |
19615 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
19616 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
19617 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19618 | /* confdefs.h. */ |
19619 | _ACEOF | |
19620 | cat confdefs.h >>conftest.$ac_ext | |
19621 | cat >>conftest.$ac_ext <<_ACEOF | |
19622 | /* end confdefs.h. */ | |
19623 | #include <png.h> | |
19624 | _ACEOF | |
19625 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19626 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19627 | ac_status=$? | |
19628 | grep -v '^ *+' conftest.er1 >conftest.err | |
19629 | rm -f conftest.er1 | |
19630 | cat conftest.err >&5 | |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19632 | (exit $ac_status); } >/dev/null; then | |
19633 | if test -s conftest.err; then | |
19634 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 19635 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19636 | else |
19637 | ac_cpp_err= | |
19638 | fi | |
19639 | else | |
19640 | ac_cpp_err=yes | |
19641 | fi | |
19642 | if test -z "$ac_cpp_err"; then | |
19643 | ac_header_preproc=yes | |
19644 | else | |
19645 | echo "$as_me: failed program was:" >&5 | |
19646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19647 | ||
19648 | ac_header_preproc=no | |
19649 | fi | |
19650 | rm -f conftest.err conftest.$ac_ext | |
19651 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19652 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19653 | ||
19654 | # So? What about this header? | |
f95e4495 VS |
19655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19656 | yes:no: ) | |
e6cc62c6 VS |
19657 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19658 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
19659 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
19660 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
19661 | ac_header_preproc=yes | |
e6cc62c6 | 19662 | ;; |
f95e4495 | 19663 | no:yes:* ) |
e6cc62c6 VS |
19664 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
19665 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
19666 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
19667 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
19668 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
19669 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
19670 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19671 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19672 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19673 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
19674 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
19675 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19676 | ( |
19677 | cat <<\_ASBOX | |
f95e4495 VS |
19678 | ## ----------------------------------------- ## |
19679 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19680 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19681 | _ASBOX |
19682 | ) | | |
19683 | sed "s/^/$as_me: WARNING: /" >&2 | |
19684 | ;; | |
19685 | esac | |
19686 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19687 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19688 | if test "${ac_cv_header_png_h+set}" = set; then | |
19689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19690 | else |
e6cc62c6 VS |
19691 | ac_cv_header_png_h=$ac_header_preproc |
19692 | fi | |
19693 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19694 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19695 | ||
89e6bf6d VZ |
19696 | fi |
19697 | ||
5d3f766d | 19698 | |
e6cc62c6 | 19699 | |
5d3f766d | 19700 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
19701 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
19702 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
19703 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
19704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19705 | else |
e6cc62c6 | 19706 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19707 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 19708 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19709 | /* confdefs.h. */ |
19710 | _ACEOF | |
19711 | cat confdefs.h >>conftest.$ac_ext | |
19712 | cat >>conftest.$ac_ext <<_ACEOF | |
19713 | /* end confdefs.h. */ | |
19714 | ||
21d1c967 | 19715 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19716 | #ifdef __cplusplus |
19717 | extern "C" | |
19718 | #endif | |
21d1c967 | 19719 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19720 | builtin and then its argument prototype would still apply. */ |
19721 | char png_check_sig (); | |
19722 | int | |
19723 | main () | |
19724 | { | |
19725 | png_check_sig (); | |
19726 | ; | |
19727 | return 0; | |
19728 | } | |
19729 | _ACEOF | |
19730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 19732 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19733 | ac_status=$? |
f95e4495 VS |
19734 | grep -v '^ *+' conftest.er1 >conftest.err |
19735 | rm -f conftest.er1 | |
19736 | cat conftest.err >&5 | |
e6cc62c6 VS |
19737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19738 | (exit $ac_status); } && | |
f95e4495 VS |
19739 | { ac_try='test -z "$ac_c_werror_flag" |
19740 | || test ! -s conftest.err' | |
19741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19742 | (eval $ac_try) 2>&5 | |
19743 | ac_status=$? | |
19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19745 | (exit $ac_status); }; } && | |
19746 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19748 | (eval $ac_try) 2>&5 | |
19749 | ac_status=$? | |
19750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19751 | (exit $ac_status); }; }; then | |
19752 | ac_cv_lib_png_png_check_sig=yes | |
19753 | else | |
19754 | echo "$as_me: failed program was:" >&5 | |
19755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19756 | ||
19757 | ac_cv_lib_png_png_check_sig=no | |
19758 | fi | |
f95e4495 VS |
19759 | rm -f conftest.err conftest.$ac_objext \ |
19760 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19761 | LIBS=$ac_check_lib_save_LIBS |
19762 | fi | |
19763 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
19764 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
19765 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 19766 | PNG_LINK=" -lpng" |
a0b9e27f | 19767 | fi |
90dd450c | 19768 | |
5d3f766d | 19769 | fi |
247f5006 | 19770 | |
21d1c967 GD |
19771 | if test "x$PNG_LINK" = "x" ; then |
19772 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
19773 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
19774 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
19775 | { (exit 1); exit 1; }; } | |
21d1c967 | 19776 | else |
e6cc62c6 VS |
19777 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
19778 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19779 | wxUSE_LIBPNG=builtin |
19780 | fi | |
19781 | else | |
2b5f62a0 | 19782 | wxUSE_LIBPNG=sys |
21d1c967 GD |
19783 | fi |
19784 | fi | |
19785 | fi | |
90dd450c | 19786 | |
21d1c967 | 19787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
19788 | fi |
19789 | ||
8284b0c5 | 19790 | |
21d1c967 GD |
19791 | JPEG_LINK= |
19792 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 19793 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19794 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 19795 | _ACEOF |
90dd450c | 19796 | |
8284b0c5 | 19797 | |
21d1c967 | 19798 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
19799 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
19800 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19801 | wxUSE_LIBJPEG=sys |
19802 | fi | |
90dd450c | 19803 | |
21d1c967 GD |
19804 | if test "$wxUSE_MGL" != 1 ; then |
19805 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
19806 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
19807 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
19808 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19810 | else | |
19811 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19812 | /* confdefs.h. */ |
19813 | _ACEOF | |
19814 | cat confdefs.h >>conftest.$ac_ext | |
19815 | cat >>conftest.$ac_ext <<_ACEOF | |
19816 | /* end confdefs.h. */ | |
90dd450c | 19817 | |
21d1c967 GD |
19818 | #undef HAVE_STDLIB_H |
19819 | #include <stdio.h> | |
19820 | #include <jpeglib.h> | |
90dd450c | 19821 | |
e6cc62c6 VS |
19822 | int |
19823 | main () | |
19824 | { | |
19825 | ||
19826 | ||
19827 | ; | |
19828 | return 0; | |
19829 | } | |
19830 | _ACEOF | |
19831 | rm -f conftest.$ac_objext | |
19832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 19833 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19834 | ac_status=$? |
f95e4495 VS |
19835 | grep -v '^ *+' conftest.er1 >conftest.err |
19836 | rm -f conftest.er1 | |
19837 | cat conftest.err >&5 | |
e6cc62c6 VS |
19838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19839 | (exit $ac_status); } && | |
f95e4495 VS |
19840 | { ac_try='test -z "$ac_c_werror_flag" |
19841 | || test ! -s conftest.err' | |
19842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19843 | (eval $ac_try) 2>&5 | |
19844 | ac_status=$? | |
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19846 | (exit $ac_status); }; } && | |
19847 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19849 | (eval $ac_try) 2>&5 | |
19850 | ac_status=$? | |
19851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19852 | (exit $ac_status); }; }; then | |
21d1c967 | 19853 | ac_cv_header_jpeglib_h=yes |
90dd450c | 19854 | else |
e6cc62c6 VS |
19855 | echo "$as_me: failed program was:" >&5 |
19856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19857 | ||
19858 | ac_cv_header_jpeglib_h=no | |
19859 | ||
90dd450c | 19860 | fi |
f95e4495 | 19861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 19862 | |
90dd450c VZ |
19863 | fi |
19864 | ||
e6cc62c6 VS |
19865 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
19866 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 19867 | |
21d1c967 | 19868 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
19869 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
19870 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
19871 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
19872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19873 | else |
e6cc62c6 | 19874 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19875 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 19876 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19877 | /* confdefs.h. */ |
19878 | _ACEOF | |
19879 | cat confdefs.h >>conftest.$ac_ext | |
19880 | cat >>conftest.$ac_ext <<_ACEOF | |
19881 | /* end confdefs.h. */ | |
19882 | ||
21d1c967 | 19883 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19884 | #ifdef __cplusplus |
19885 | extern "C" | |
19886 | #endif | |
21d1c967 | 19887 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19888 | builtin and then its argument prototype would still apply. */ |
19889 | char jpeg_read_header (); | |
19890 | int | |
19891 | main () | |
19892 | { | |
19893 | jpeg_read_header (); | |
19894 | ; | |
19895 | return 0; | |
19896 | } | |
19897 | _ACEOF | |
19898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 19900 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19901 | ac_status=$? |
f95e4495 VS |
19902 | grep -v '^ *+' conftest.er1 >conftest.err |
19903 | rm -f conftest.er1 | |
19904 | cat conftest.err >&5 | |
e6cc62c6 VS |
19905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19906 | (exit $ac_status); } && | |
f95e4495 VS |
19907 | { ac_try='test -z "$ac_c_werror_flag" |
19908 | || test ! -s conftest.err' | |
19909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19910 | (eval $ac_try) 2>&5 | |
19911 | ac_status=$? | |
19912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19913 | (exit $ac_status); }; } && | |
19914 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19916 | (eval $ac_try) 2>&5 | |
19917 | ac_status=$? | |
19918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19919 | (exit $ac_status); }; }; then | |
19920 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19921 | else | |
19922 | echo "$as_me: failed program was:" >&5 | |
19923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19924 | ||
19925 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19926 | fi | |
f95e4495 VS |
19927 | rm -f conftest.err conftest.$ac_objext \ |
19928 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19929 | LIBS=$ac_check_lib_save_LIBS |
19930 | fi | |
19931 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19932 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19933 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19934 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19935 | fi |
19936 | ||
21d1c967 | 19937 | fi |
90dd450c | 19938 | |
21d1c967 GD |
19939 | if test "x$JPEG_LINK" = "x" ; then |
19940 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19941 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19942 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19943 | { (exit 1); exit 1; }; } | |
21d1c967 | 19944 | else |
e6cc62c6 VS |
19945 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19946 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19947 | wxUSE_LIBJPEG=builtin |
19948 | fi | |
19949 | else | |
19950 | wxUSE_LIBJPEG=sys | |
19951 | fi | |
19952 | fi | |
19953 | fi | |
21d1c967 | 19954 | fi |
90dd450c | 19955 | |
8284b0c5 | 19956 | |
21d1c967 | 19957 | TIFF_LINK= |
2b5f62a0 | 19958 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19959 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19960 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19961 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19962 | _ACEOF |
21d1c967 | 19963 | |
8284b0c5 | 19964 | |
21d1c967 | 19965 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19966 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19967 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19968 | fi | |
19969 | if test "$wxUSE_ZLIB" = "sys"; then | |
19970 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19971 | fi | |
e6cc62c6 VS |
19972 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19973 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19974 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19975 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19977 | fi | |
19978 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19979 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19980 | else | |
19981 | # Is the header compilable? | |
19982 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19983 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19984 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19985 | /* confdefs.h. */ |
19986 | _ACEOF | |
19987 | cat confdefs.h >>conftest.$ac_ext | |
19988 | cat >>conftest.$ac_ext <<_ACEOF | |
19989 | /* end confdefs.h. */ | |
19990 | $ac_includes_default | |
247f5006 | 19991 | #include <tiffio.h> |
e6cc62c6 VS |
19992 | _ACEOF |
19993 | rm -f conftest.$ac_objext | |
19994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 19995 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19996 | ac_status=$? |
f95e4495 VS |
19997 | grep -v '^ *+' conftest.er1 >conftest.err |
19998 | rm -f conftest.er1 | |
19999 | cat conftest.err >&5 | |
e6cc62c6 VS |
20000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20001 | (exit $ac_status); } && | |
f95e4495 VS |
20002 | { ac_try='test -z "$ac_c_werror_flag" |
20003 | || test ! -s conftest.err' | |
20004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20005 | (eval $ac_try) 2>&5 | |
20006 | ac_status=$? | |
20007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20008 | (exit $ac_status); }; } && | |
20009 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20011 | (eval $ac_try) 2>&5 | |
20012 | ac_status=$? | |
20013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20014 | (exit $ac_status); }; }; then | |
20015 | ac_header_compiler=yes | |
20016 | else | |
20017 | echo "$as_me: failed program was:" >&5 | |
20018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20019 | ||
20020 | ac_header_compiler=no | |
20021 | fi | |
f95e4495 | 20022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20023 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20024 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20025 | ||
20026 | # Is the header present? | |
20027 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
20028 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
20029 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20030 | /* confdefs.h. */ |
20031 | _ACEOF | |
20032 | cat confdefs.h >>conftest.$ac_ext | |
20033 | cat >>conftest.$ac_ext <<_ACEOF | |
20034 | /* end confdefs.h. */ | |
20035 | #include <tiffio.h> | |
20036 | _ACEOF | |
20037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20039 | ac_status=$? | |
20040 | grep -v '^ *+' conftest.er1 >conftest.err | |
20041 | rm -f conftest.er1 | |
20042 | cat conftest.err >&5 | |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20044 | (exit $ac_status); } >/dev/null; then | |
20045 | if test -s conftest.err; then | |
20046 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 20047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20048 | else |
20049 | ac_cpp_err= | |
20050 | fi | |
20051 | else | |
20052 | ac_cpp_err=yes | |
20053 | fi | |
20054 | if test -z "$ac_cpp_err"; then | |
20055 | ac_header_preproc=yes | |
20056 | else | |
20057 | echo "$as_me: failed program was:" >&5 | |
20058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20059 | ||
20060 | ac_header_preproc=no | |
20061 | fi | |
20062 | rm -f conftest.err conftest.$ac_ext | |
20063 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20064 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20065 | ||
20066 | # So? What about this header? | |
f95e4495 VS |
20067 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20068 | yes:no: ) | |
e6cc62c6 VS |
20069 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20070 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
20071 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
20072 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
20073 | ac_header_preproc=yes | |
e6cc62c6 | 20074 | ;; |
f95e4495 | 20075 | no:yes:* ) |
e6cc62c6 VS |
20076 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
20077 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
20078 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
20079 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
20080 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
20081 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
20082 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20083 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20084 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
20085 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
20086 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
20087 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20088 | ( |
20089 | cat <<\_ASBOX | |
f95e4495 VS |
20090 | ## ----------------------------------------- ## |
20091 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20092 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20093 | _ASBOX |
20094 | ) | | |
20095 | sed "s/^/$as_me: WARNING: /" >&2 | |
20096 | ;; | |
20097 | esac | |
20098 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20099 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20100 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20102 | else | |
20103 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 20104 | fi |
e6cc62c6 VS |
20105 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
20106 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20107 | ||
21d1c967 | 20108 | fi |
e6cc62c6 | 20109 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
20110 | |
20111 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
20112 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
20113 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
20114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 20115 | else |
e6cc62c6 | 20116 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 20117 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 20118 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20119 | /* confdefs.h. */ |
20120 | _ACEOF | |
20121 | cat confdefs.h >>conftest.$ac_ext | |
20122 | cat >>conftest.$ac_ext <<_ACEOF | |
20123 | /* end confdefs.h. */ | |
20124 | ||
ab9b9eab | 20125 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20126 | #ifdef __cplusplus |
20127 | extern "C" | |
20128 | #endif | |
ab9b9eab | 20129 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20130 | builtin and then its argument prototype would still apply. */ |
20131 | char TIFFError (); | |
20132 | int | |
20133 | main () | |
20134 | { | |
20135 | TIFFError (); | |
20136 | ; | |
20137 | return 0; | |
20138 | } | |
20139 | _ACEOF | |
20140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 20142 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20143 | ac_status=$? |
f95e4495 VS |
20144 | grep -v '^ *+' conftest.er1 >conftest.err |
20145 | rm -f conftest.er1 | |
20146 | cat conftest.err >&5 | |
e6cc62c6 VS |
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20148 | (exit $ac_status); } && | |
f95e4495 VS |
20149 | { ac_try='test -z "$ac_c_werror_flag" |
20150 | || test ! -s conftest.err' | |
20151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20152 | (eval $ac_try) 2>&5 | |
20153 | ac_status=$? | |
20154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20155 | (exit $ac_status); }; } && | |
20156 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20158 | (eval $ac_try) 2>&5 | |
20159 | ac_status=$? | |
20160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20161 | (exit $ac_status); }; }; then | |
20162 | ac_cv_lib_tiff_TIFFError=yes | |
20163 | else | |
20164 | echo "$as_me: failed program was:" >&5 | |
20165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20166 | ||
20167 | ac_cv_lib_tiff_TIFFError=no | |
20168 | fi | |
f95e4495 VS |
20169 | rm -f conftest.err conftest.$ac_objext \ |
20170 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20171 | LIBS=$ac_check_lib_save_LIBS |
20172 | fi | |
20173 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
20174 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
20175 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 20176 | TIFF_LINK=" -ltiff" |
a0b9e27f | 20177 | fi |
cd6d6d5b | 20178 | |
e6cc62c6 | 20179 | |
0e012a93 | 20180 | |
a0b9e27f | 20181 | fi |
8284b0c5 | 20182 | |
247f5006 | 20183 | |
e6cc62c6 | 20184 | |
21d1c967 GD |
20185 | if test "x$TIFF_LINK" = "x" ; then |
20186 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
20187 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
20188 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
20189 | { (exit 1); exit 1; }; } | |
90dd450c | 20190 | else |
e6cc62c6 VS |
20191 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
20192 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 20193 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 20194 | fi |
d8356fa3 | 20195 | else |
21d1c967 | 20196 | wxUSE_LIBTIFF=sys |
d8356fa3 | 20197 | fi |
21d1c967 | 20198 | fi |
21d1c967 | 20199 | fi |
10f2d63a | 20200 | |
8284b0c5 | 20201 | |
672abd7a | 20202 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 20203 | wxUSE_XML=yes |
672abd7a VS |
20204 | cat >>confdefs.h <<\_ACEOF |
20205 | #define wxUSE_EXPAT 1 | |
20206 | _ACEOF | |
20207 | ||
20208 | cat >>confdefs.h <<\_ACEOF | |
20209 | #define wxUSE_XML 1 | |
20210 | _ACEOF | |
20211 | ||
20212 | ||
20213 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
20214 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20215 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20216 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20217 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20219 | fi | |
20220 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20221 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20222 | else | |
20223 | # Is the header compilable? | |
20224 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
20225 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
20226 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20227 | /* confdefs.h. */ |
20228 | _ACEOF | |
20229 | cat confdefs.h >>conftest.$ac_ext | |
20230 | cat >>conftest.$ac_ext <<_ACEOF | |
20231 | /* end confdefs.h. */ | |
20232 | $ac_includes_default | |
20233 | #include <expat.h> | |
20234 | _ACEOF | |
20235 | rm -f conftest.$ac_objext | |
20236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 20237 | (eval $ac_compile) 2>conftest.er1 |
672abd7a | 20238 | ac_status=$? |
f95e4495 VS |
20239 | grep -v '^ *+' conftest.er1 >conftest.err |
20240 | rm -f conftest.er1 | |
20241 | cat conftest.err >&5 | |
672abd7a VS |
20242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20243 | (exit $ac_status); } && | |
f95e4495 VS |
20244 | { ac_try='test -z "$ac_c_werror_flag" |
20245 | || test ! -s conftest.err' | |
20246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20247 | (eval $ac_try) 2>&5 | |
20248 | ac_status=$? | |
20249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20250 | (exit $ac_status); }; } && | |
20251 | { ac_try='test -s conftest.$ac_objext' | |
672abd7a VS |
20252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20253 | (eval $ac_try) 2>&5 | |
20254 | ac_status=$? | |
20255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20256 | (exit $ac_status); }; }; then | |
20257 | ac_header_compiler=yes | |
20258 | else | |
20259 | echo "$as_me: failed program was:" >&5 | |
20260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20261 | ||
20262 | ac_header_compiler=no | |
20263 | fi | |
f95e4495 | 20264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
20265 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20266 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20267 | ||
20268 | # Is the header present? | |
20269 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
20270 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
20271 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20272 | /* confdefs.h. */ |
20273 | _ACEOF | |
20274 | cat confdefs.h >>conftest.$ac_ext | |
20275 | cat >>conftest.$ac_ext <<_ACEOF | |
20276 | /* end confdefs.h. */ | |
20277 | #include <expat.h> | |
20278 | _ACEOF | |
20279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20281 | ac_status=$? | |
20282 | grep -v '^ *+' conftest.er1 >conftest.err | |
20283 | rm -f conftest.er1 | |
20284 | cat conftest.err >&5 | |
20285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20286 | (exit $ac_status); } >/dev/null; then | |
20287 | if test -s conftest.err; then | |
20288 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 20289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
672abd7a VS |
20290 | else |
20291 | ac_cpp_err= | |
20292 | fi | |
20293 | else | |
20294 | ac_cpp_err=yes | |
20295 | fi | |
20296 | if test -z "$ac_cpp_err"; then | |
20297 | ac_header_preproc=yes | |
20298 | else | |
20299 | echo "$as_me: failed program was:" >&5 | |
20300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20301 | ||
20302 | ac_header_preproc=no | |
20303 | fi | |
20304 | rm -f conftest.err conftest.$ac_ext | |
20305 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20306 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20307 | ||
20308 | # So? What about this header? | |
f95e4495 VS |
20309 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20310 | yes:no: ) | |
672abd7a VS |
20311 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20312 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
20313 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
20314 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
20315 | ac_header_preproc=yes | |
672abd7a | 20316 | ;; |
f95e4495 | 20317 | no:yes:* ) |
672abd7a VS |
20318 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
20319 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
20320 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
20321 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
20322 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
20323 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
20324 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20325 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
672abd7a VS |
20326 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20327 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
20328 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
20329 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
672abd7a VS |
20330 | ( |
20331 | cat <<\_ASBOX | |
f95e4495 VS |
20332 | ## ----------------------------------------- ## |
20333 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20334 | ## ----------------------------------------- ## | |
672abd7a VS |
20335 | _ASBOX |
20336 | ) | | |
20337 | sed "s/^/$as_me: WARNING: /" >&2 | |
20338 | ;; | |
20339 | esac | |
20340 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20341 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20342 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20344 | else | |
20345 | ac_cv_header_expat_h=$ac_header_preproc | |
20346 | fi | |
20347 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20348 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20349 | ||
20350 | fi | |
5f0b6dff VS |
20351 | if test $ac_cv_header_expat_h = yes; then |
20352 | found_expat_h=1 | |
20353 | fi | |
20354 | ||
20355 | ||
20356 | if test "x$found_expat_h" = "x1"; then | |
20357 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
20358 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
20359 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
20360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20361 | else | |
20362 | ||
20363 | ||
672abd7a | 20364 | |
5f0b6dff VS |
20365 | ac_ext=cc |
20366 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20367 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20368 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20369 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20370 | ||
20371 | cat >conftest.$ac_ext <<_ACEOF | |
5f0b6dff VS |
20372 | /* confdefs.h. */ |
20373 | _ACEOF | |
20374 | cat confdefs.h >>conftest.$ac_ext | |
20375 | cat >>conftest.$ac_ext <<_ACEOF | |
20376 | /* end confdefs.h. */ | |
20377 | #include <expat.h> | |
20378 | int | |
20379 | main () | |
20380 | { | |
672abd7a | 20381 | |
5f0b6dff VS |
20382 | ; |
20383 | return 0; | |
20384 | } | |
20385 | _ACEOF | |
20386 | rm -f conftest.$ac_objext | |
20387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 20388 | (eval $ac_compile) 2>conftest.er1 |
5f0b6dff | 20389 | ac_status=$? |
f95e4495 VS |
20390 | grep -v '^ *+' conftest.er1 >conftest.err |
20391 | rm -f conftest.er1 | |
20392 | cat conftest.err >&5 | |
5f0b6dff VS |
20393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20394 | (exit $ac_status); } && | |
f95e4495 VS |
20395 | { ac_try='test -z "$ac_cxx_werror_flag" |
20396 | || test ! -s conftest.err' | |
20397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20398 | (eval $ac_try) 2>&5 | |
20399 | ac_status=$? | |
20400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20401 | (exit $ac_status); }; } && | |
20402 | { ac_try='test -s conftest.$ac_objext' | |
5f0b6dff VS |
20403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20404 | (eval $ac_try) 2>&5 | |
20405 | ac_status=$? | |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20407 | (exit $ac_status); }; }; then | |
20408 | wx_cv_expat_is_not_broken=yes | |
20409 | else | |
20410 | echo "$as_me: failed program was:" >&5 | |
20411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20412 | ||
20413 | wx_cv_expat_is_not_broken=no | |
20414 | ||
20415 | fi | |
f95e4495 | 20416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
20417 | ac_ext=c |
20418 | ac_cpp='$CPP $CPPFLAGS' | |
20419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20422 | ||
20423 | ||
20424 | ||
20425 | fi | |
20426 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
20427 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
20428 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
20429 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
20430 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
20431 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
20432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20433 | else | |
20434 | ac_check_lib_save_LIBS=$LIBS | |
20435 | LIBS="-lexpat $LIBS" | |
20436 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20437 | /* confdefs.h. */ |
20438 | _ACEOF | |
20439 | cat confdefs.h >>conftest.$ac_ext | |
20440 | cat >>conftest.$ac_ext <<_ACEOF | |
20441 | /* end confdefs.h. */ | |
20442 | ||
20443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20444 | #ifdef __cplusplus | |
20445 | extern "C" | |
20446 | #endif | |
20447 | /* We use char because int might match the return type of a gcc2 | |
20448 | builtin and then its argument prototype would still apply. */ | |
20449 | char XML_ParserCreate (); | |
20450 | int | |
20451 | main () | |
20452 | { | |
20453 | XML_ParserCreate (); | |
20454 | ; | |
20455 | return 0; | |
20456 | } | |
20457 | _ACEOF | |
20458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 20460 | (eval $ac_link) 2>conftest.er1 |
672abd7a | 20461 | ac_status=$? |
f95e4495 VS |
20462 | grep -v '^ *+' conftest.er1 >conftest.err |
20463 | rm -f conftest.er1 | |
20464 | cat conftest.err >&5 | |
672abd7a VS |
20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20466 | (exit $ac_status); } && | |
f95e4495 VS |
20467 | { ac_try='test -z "$ac_c_werror_flag" |
20468 | || test ! -s conftest.err' | |
20469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20470 | (eval $ac_try) 2>&5 | |
20471 | ac_status=$? | |
20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20473 | (exit $ac_status); }; } && | |
20474 | { ac_try='test -s conftest$ac_exeext' | |
672abd7a VS |
20475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20476 | (eval $ac_try) 2>&5 | |
20477 | ac_status=$? | |
20478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20479 | (exit $ac_status); }; }; then | |
20480 | ac_cv_lib_expat_XML_ParserCreate=yes | |
20481 | else | |
20482 | echo "$as_me: failed program was:" >&5 | |
20483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20484 | ||
20485 | ac_cv_lib_expat_XML_ParserCreate=no | |
20486 | fi | |
f95e4495 VS |
20487 | rm -f conftest.err conftest.$ac_objext \ |
20488 | conftest$ac_exeext conftest.$ac_ext | |
672abd7a VS |
20489 | LIBS=$ac_check_lib_save_LIBS |
20490 | fi | |
20491 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
20492 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
20493 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
20494 | EXPAT_LINK=" -lexpat" | |
20495 | fi | |
20496 | ||
5f0b6dff | 20497 | fi |
672abd7a VS |
20498 | fi |
20499 | if test "x$EXPAT_LINK" = "x" ; then | |
20500 | if test "$wxUSE_EXPAT" = "sys" ; then | |
20501 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
20502 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
20503 | { (exit 1); exit 1; }; } | |
20504 | else | |
20505 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
20506 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
20507 | wxUSE_EXPAT=builtin | |
20508 | fi | |
20509 | else | |
20510 | wxUSE_EXPAT=sys | |
20511 | fi | |
20512 | fi | |
20513 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
20514 | ||
20515 | ||
20516 | subdirs="$subdirs src/expat" | |
20517 | ||
20518 | fi | |
20519 | fi | |
20520 | ||
20521 | ||
20522 | ||
3527f29c VS |
20523 | if test "$wxUSE_LIBMSPACK" != "no"; then |
20524 | ||
20525 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20526 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20527 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20528 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20530 | fi | |
20531 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20532 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20533 | else | |
20534 | # Is the header compilable? | |
20535 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
20536 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
20537 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20538 | /* confdefs.h. */ |
20539 | _ACEOF | |
20540 | cat confdefs.h >>conftest.$ac_ext | |
20541 | cat >>conftest.$ac_ext <<_ACEOF | |
20542 | /* end confdefs.h. */ | |
20543 | $ac_includes_default | |
20544 | #include <mspack.h> | |
20545 | _ACEOF | |
20546 | rm -f conftest.$ac_objext | |
20547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 20548 | (eval $ac_compile) 2>conftest.er1 |
3527f29c | 20549 | ac_status=$? |
f95e4495 VS |
20550 | grep -v '^ *+' conftest.er1 >conftest.err |
20551 | rm -f conftest.er1 | |
20552 | cat conftest.err >&5 | |
3527f29c VS |
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20554 | (exit $ac_status); } && | |
f95e4495 VS |
20555 | { ac_try='test -z "$ac_c_werror_flag" |
20556 | || test ! -s conftest.err' | |
20557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20558 | (eval $ac_try) 2>&5 | |
20559 | ac_status=$? | |
20560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20561 | (exit $ac_status); }; } && | |
20562 | { ac_try='test -s conftest.$ac_objext' | |
3527f29c VS |
20563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20564 | (eval $ac_try) 2>&5 | |
20565 | ac_status=$? | |
20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20567 | (exit $ac_status); }; }; then | |
20568 | ac_header_compiler=yes | |
20569 | else | |
20570 | echo "$as_me: failed program was:" >&5 | |
20571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20572 | ||
20573 | ac_header_compiler=no | |
20574 | fi | |
f95e4495 | 20575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
20576 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20577 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20578 | ||
20579 | # Is the header present? | |
20580 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
20581 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
20582 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20583 | /* confdefs.h. */ |
20584 | _ACEOF | |
20585 | cat confdefs.h >>conftest.$ac_ext | |
20586 | cat >>conftest.$ac_ext <<_ACEOF | |
20587 | /* end confdefs.h. */ | |
20588 | #include <mspack.h> | |
20589 | _ACEOF | |
20590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20592 | ac_status=$? | |
20593 | grep -v '^ *+' conftest.er1 >conftest.err | |
20594 | rm -f conftest.er1 | |
20595 | cat conftest.err >&5 | |
20596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20597 | (exit $ac_status); } >/dev/null; then | |
20598 | if test -s conftest.err; then | |
20599 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 20600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3527f29c VS |
20601 | else |
20602 | ac_cpp_err= | |
20603 | fi | |
20604 | else | |
20605 | ac_cpp_err=yes | |
20606 | fi | |
20607 | if test -z "$ac_cpp_err"; then | |
20608 | ac_header_preproc=yes | |
20609 | else | |
20610 | echo "$as_me: failed program was:" >&5 | |
20611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20612 | ||
20613 | ac_header_preproc=no | |
20614 | fi | |
20615 | rm -f conftest.err conftest.$ac_ext | |
20616 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20617 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20618 | ||
20619 | # So? What about this header? | |
f95e4495 VS |
20620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20621 | yes:no: ) | |
3527f29c VS |
20622 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20623 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
20624 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
20625 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
20626 | ac_header_preproc=yes | |
3527f29c | 20627 | ;; |
f95e4495 | 20628 | no:yes:* ) |
3527f29c VS |
20629 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
20630 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
20631 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
20632 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
20633 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
20634 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
20635 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20636 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3527f29c VS |
20637 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20638 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
20639 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
20640 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
3527f29c VS |
20641 | ( |
20642 | cat <<\_ASBOX | |
f95e4495 VS |
20643 | ## ----------------------------------------- ## |
20644 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20645 | ## ----------------------------------------- ## | |
3527f29c VS |
20646 | _ASBOX |
20647 | ) | | |
20648 | sed "s/^/$as_me: WARNING: /" >&2 | |
20649 | ;; | |
20650 | esac | |
20651 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20652 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20653 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20655 | else | |
20656 | ac_cv_header_mspack_h=$ac_header_preproc | |
20657 | fi | |
20658 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20659 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20660 | ||
20661 | fi | |
20662 | if test $ac_cv_header_mspack_h = yes; then | |
20663 | found_mspack_h=1 | |
20664 | fi | |
20665 | ||
20666 | ||
20667 | if test "x$found_mspack_h" = "x1"; then | |
20668 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
20669 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
20670 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
20671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20672 | else | |
20673 | ac_check_lib_save_LIBS=$LIBS | |
20674 | LIBS="-lmspack $LIBS" | |
20675 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20676 | /* confdefs.h. */ |
20677 | _ACEOF | |
20678 | cat confdefs.h >>conftest.$ac_ext | |
20679 | cat >>conftest.$ac_ext <<_ACEOF | |
20680 | /* end confdefs.h. */ | |
20681 | ||
20682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20683 | #ifdef __cplusplus | |
20684 | extern "C" | |
20685 | #endif | |
20686 | /* We use char because int might match the return type of a gcc2 | |
20687 | builtin and then its argument prototype would still apply. */ | |
20688 | char mspack_create_chm_decompressor (); | |
20689 | int | |
20690 | main () | |
20691 | { | |
20692 | mspack_create_chm_decompressor (); | |
20693 | ; | |
20694 | return 0; | |
20695 | } | |
20696 | _ACEOF | |
20697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 20699 | (eval $ac_link) 2>conftest.er1 |
3527f29c | 20700 | ac_status=$? |
f95e4495 VS |
20701 | grep -v '^ *+' conftest.er1 >conftest.err |
20702 | rm -f conftest.er1 | |
20703 | cat conftest.err >&5 | |
3527f29c VS |
20704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20705 | (exit $ac_status); } && | |
f95e4495 VS |
20706 | { ac_try='test -z "$ac_c_werror_flag" |
20707 | || test ! -s conftest.err' | |
20708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20709 | (eval $ac_try) 2>&5 | |
20710 | ac_status=$? | |
20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20712 | (exit $ac_status); }; } && | |
20713 | { ac_try='test -s conftest$ac_exeext' | |
3527f29c VS |
20714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20715 | (eval $ac_try) 2>&5 | |
20716 | ac_status=$? | |
20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20718 | (exit $ac_status); }; }; then | |
20719 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
20720 | else | |
20721 | echo "$as_me: failed program was:" >&5 | |
20722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20723 | ||
20724 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
20725 | fi | |
f95e4495 VS |
20726 | rm -f conftest.err conftest.$ac_objext \ |
20727 | conftest$ac_exeext conftest.$ac_ext | |
3527f29c VS |
20728 | LIBS=$ac_check_lib_save_LIBS |
20729 | fi | |
20730 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
20731 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
20732 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
20733 | MSPACK_LINK=" -lmspack" | |
20734 | fi | |
20735 | ||
20736 | fi | |
20737 | if test "x$MSPACK_LINK" = "x" ; then | |
20738 | wxUSE_LIBMSPACK=no | |
20739 | else | |
20740 | cat >>confdefs.h <<\_ACEOF | |
20741 | #define wxUSE_LIBMSPACK 1 | |
20742 | _ACEOF | |
20743 | ||
20744 | fi | |
20745 | fi | |
20746 | ||
20747 | ||
20748 | ||
21d1c967 | 20749 | AFMINSTALL= |
2b5f62a0 | 20750 | WIN32INSTALL= |
90dd450c | 20751 | |
21d1c967 GD |
20752 | TOOLKIT= |
20753 | TOOLKIT_INCLUDE= | |
20754 | WIDGET_SET= | |
20755 | ||
20756 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
20757 | |
20758 | for ac_header in w32api.h | |
21d1c967 | 20759 | do |
e6cc62c6 VS |
20760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20766 | fi | |
20767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20769 | else | |
20770 | # Is the header compilable? | |
20771 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20773 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20774 | /* confdefs.h. */ |
20775 | _ACEOF | |
20776 | cat confdefs.h >>conftest.$ac_ext | |
20777 | cat >>conftest.$ac_ext <<_ACEOF | |
20778 | /* end confdefs.h. */ | |
20779 | $ac_includes_default | |
20780 | #include <$ac_header> | |
20781 | _ACEOF | |
20782 | rm -f conftest.$ac_objext | |
20783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 20784 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20785 | ac_status=$? |
f95e4495 VS |
20786 | grep -v '^ *+' conftest.er1 >conftest.err |
20787 | rm -f conftest.er1 | |
20788 | cat conftest.err >&5 | |
e6cc62c6 VS |
20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20790 | (exit $ac_status); } && | |
f95e4495 VS |
20791 | { ac_try='test -z "$ac_c_werror_flag" |
20792 | || test ! -s conftest.err' | |
20793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20794 | (eval $ac_try) 2>&5 | |
20795 | ac_status=$? | |
20796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20797 | (exit $ac_status); }; } && | |
20798 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20800 | (eval $ac_try) 2>&5 | |
20801 | ac_status=$? | |
20802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20803 | (exit $ac_status); }; }; then | |
20804 | ac_header_compiler=yes | |
20805 | else | |
20806 | echo "$as_me: failed program was:" >&5 | |
20807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20808 | ||
20809 | ac_header_compiler=no | |
20810 | fi | |
f95e4495 | 20811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20813 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20814 | ||
20815 | # Is the header present? | |
20816 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20818 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20819 | /* confdefs.h. */ |
20820 | _ACEOF | |
20821 | cat confdefs.h >>conftest.$ac_ext | |
20822 | cat >>conftest.$ac_ext <<_ACEOF | |
20823 | /* end confdefs.h. */ | |
20824 | #include <$ac_header> | |
20825 | _ACEOF | |
20826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20828 | ac_status=$? | |
20829 | grep -v '^ *+' conftest.er1 >conftest.err | |
20830 | rm -f conftest.er1 | |
20831 | cat conftest.err >&5 | |
20832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20833 | (exit $ac_status); } >/dev/null; then | |
20834 | if test -s conftest.err; then | |
20835 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 20836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20837 | else |
20838 | ac_cpp_err= | |
20839 | fi | |
20840 | else | |
20841 | ac_cpp_err=yes | |
20842 | fi | |
20843 | if test -z "$ac_cpp_err"; then | |
20844 | ac_header_preproc=yes | |
20845 | else | |
20846 | echo "$as_me: failed program was:" >&5 | |
20847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20848 | ||
20849 | ac_header_preproc=no | |
20850 | fi | |
20851 | rm -f conftest.err conftest.$ac_ext | |
20852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20853 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20854 | ||
20855 | # So? What about this header? | |
f95e4495 VS |
20856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20857 | yes:no: ) | |
e6cc62c6 VS |
20858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
20860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20861 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20862 | ac_header_preproc=yes | |
e6cc62c6 | 20863 | ;; |
f95e4495 | 20864 | no:yes:* ) |
e6cc62c6 VS |
20865 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20866 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
20867 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20868 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20869 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20870 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20871 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20872 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
20875 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20876 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20877 | ( |
20878 | cat <<\_ASBOX | |
f95e4495 VS |
20879 | ## ----------------------------------------- ## |
20880 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20881 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20882 | _ASBOX |
20883 | ) | | |
20884 | sed "s/^/$as_me: WARNING: /" >&2 | |
20885 | ;; | |
20886 | esac | |
20887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20891 | else | |
f95e4495 | 20892 | eval "$as_ac_Header=\$ac_header_preproc" |
f79bd02d | 20893 | fi |
e6cc62c6 VS |
20894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20896 | ||
21d1c967 | 20897 | fi |
e6cc62c6 VS |
20898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20899 | cat >>confdefs.h <<_ACEOF | |
20900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20901 | _ACEOF | |
20902 | ||
21d1c967 | 20903 | fi |
e6cc62c6 | 20904 | |
21d1c967 | 20905 | done |
f79bd02d | 20906 | |
e6cc62c6 VS |
20907 | if test "${ac_cv_header_windows_h+set}" = set; then |
20908 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20909 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20910 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20912 | fi | |
20913 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20914 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20915 | else | |
20916 | # Is the header compilable? | |
20917 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20918 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
20919 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20920 | /* confdefs.h. */ |
20921 | _ACEOF | |
20922 | cat confdefs.h >>conftest.$ac_ext | |
20923 | cat >>conftest.$ac_ext <<_ACEOF | |
20924 | /* end confdefs.h. */ | |
20925 | $ac_includes_default | |
247f5006 | 20926 | #include <windows.h> |
e6cc62c6 VS |
20927 | _ACEOF |
20928 | rm -f conftest.$ac_objext | |
20929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 20930 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20931 | ac_status=$? |
f95e4495 VS |
20932 | grep -v '^ *+' conftest.er1 >conftest.err |
20933 | rm -f conftest.er1 | |
20934 | cat conftest.err >&5 | |
e6cc62c6 VS |
20935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20936 | (exit $ac_status); } && | |
f95e4495 VS |
20937 | { ac_try='test -z "$ac_c_werror_flag" |
20938 | || test ! -s conftest.err' | |
20939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20940 | (eval $ac_try) 2>&5 | |
20941 | ac_status=$? | |
20942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20943 | (exit $ac_status); }; } && | |
20944 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20946 | (eval $ac_try) 2>&5 | |
20947 | ac_status=$? | |
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20949 | (exit $ac_status); }; }; then | |
20950 | ac_header_compiler=yes | |
20951 | else | |
20952 | echo "$as_me: failed program was:" >&5 | |
20953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20954 | ||
20955 | ac_header_compiler=no | |
20956 | fi | |
f95e4495 | 20957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20958 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20959 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20960 | ||
20961 | # Is the header present? | |
20962 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
20963 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
20964 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20965 | /* confdefs.h. */ |
20966 | _ACEOF | |
20967 | cat confdefs.h >>conftest.$ac_ext | |
20968 | cat >>conftest.$ac_ext <<_ACEOF | |
20969 | /* end confdefs.h. */ | |
20970 | #include <windows.h> | |
20971 | _ACEOF | |
20972 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20973 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20974 | ac_status=$? | |
20975 | grep -v '^ *+' conftest.er1 >conftest.err | |
20976 | rm -f conftest.er1 | |
20977 | cat conftest.err >&5 | |
20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20979 | (exit $ac_status); } >/dev/null; then | |
20980 | if test -s conftest.err; then | |
20981 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 20982 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20983 | else |
20984 | ac_cpp_err= | |
20985 | fi | |
20986 | else | |
20987 | ac_cpp_err=yes | |
20988 | fi | |
20989 | if test -z "$ac_cpp_err"; then | |
20990 | ac_header_preproc=yes | |
20991 | else | |
20992 | echo "$as_me: failed program was:" >&5 | |
20993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20994 | ||
20995 | ac_header_preproc=no | |
20996 | fi | |
20997 | rm -f conftest.err conftest.$ac_ext | |
20998 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20999 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21000 | ||
21001 | # So? What about this header? | |
f95e4495 VS |
21002 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21003 | yes:no: ) | |
e6cc62c6 VS |
21004 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21005 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
21006 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
21007 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
21008 | ac_header_preproc=yes | |
e6cc62c6 | 21009 | ;; |
f95e4495 | 21010 | no:yes:* ) |
e6cc62c6 VS |
21011 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21012 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
21013 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
21014 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21015 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21016 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21017 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21018 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21019 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
21020 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
21021 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
21022 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21023 | ( |
21024 | cat <<\_ASBOX | |
f95e4495 VS |
21025 | ## ----------------------------------------- ## |
21026 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21027 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21028 | _ASBOX |
21029 | ) | | |
21030 | sed "s/^/$as_me: WARNING: /" >&2 | |
21031 | ;; | |
21032 | esac | |
21033 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21034 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21035 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21037 | else | |
21038 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 21039 | fi |
e6cc62c6 VS |
21040 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21041 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21042 | ||
90dd450c | 21043 | fi |
e6cc62c6 | 21044 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 21045 | : |
90dd450c | 21046 | else |
21d1c967 | 21047 | |
e6cc62c6 VS |
21048 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
21049 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
21050 | { (exit 1); exit 1; }; } | |
21051 | ||
5c6fa7d2 | 21052 | fi |
7b4a847f | 21053 | |
5c6fa7d2 | 21054 | |
e6cc62c6 | 21055 | |
b3dfbbc9 | 21056 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 21057 | |
7bb2947d MB |
21058 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
21059 | LIBS="$LIBS -loleacc" | |
21060 | fi | |
21061 | ||
21d1c967 GD |
21062 | case "${host}" in |
21063 | *-*-cygwin* ) | |
b3dfbbc9 | 21064 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 21065 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 21066 | esac |
f79bd02d | 21067 | |
8647bec6 RG |
21068 | if test "$wxUSE_ODBC" = "sys" ; then |
21069 | wxUSE_ODBC = "yes" | |
21d1c967 | 21070 | fi |
8647bec6 RG |
21071 | if test "$wxUSE_ODBC" = "yes" ; then |
21072 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 21073 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 21074 | #define wxUSE_ODBC 1 |
e6cc62c6 | 21075 | _ACEOF |
f79bd02d | 21076 | |
8647bec6 | 21077 | fi |
e6cc62c6 | 21078 | |
21d1c967 GD |
21079 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
21080 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
21081 | |
21082 | WIN32INSTALL=win32install | |
f79bd02d | 21083 | fi |
f79bd02d | 21084 | |
21d1c967 GD |
21085 | if test "$wxUSE_GUI" = "yes"; then |
21086 | USE_GUI=1 | |
f79bd02d | 21087 | |
21d1c967 | 21088 | GUI_TK_LIBRARY= |
f79bd02d | 21089 | |
21d1c967 GD |
21090 | WXGTK12= |
21091 | WXGTK127= | |
21092 | WXGTK20= | |
f79bd02d | 21093 | |
21d1c967 GD |
21094 | if test "$wxUSE_MSW" = 1 ; then |
21095 | TOOLKIT=MSW | |
21096 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
21097 | |
21098 | case "${host}" in | |
21099 | *-*-mingw32* ) | |
21100 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
21101 | esac | |
f79bd02d JS |
21102 | fi |
21103 | ||
21d1c967 | 21104 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
21105 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
21106 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
21107 | |
21108 | gtk_version_cached=1 | |
e6cc62c6 VS |
21109 | if test "${wx_cv_lib_gtk+set}" = set; then |
21110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 21111 | else |
e6cc62c6 | 21112 | |
21d1c967 | 21113 | gtk_version_cached=0 |
e6cc62c6 VS |
21114 | echo "$as_me:$LINENO: result: " >&5 |
21115 | echo "${ECHO_T}" >&6 | |
f79bd02d | 21116 | |
21d1c967 GD |
21117 | GTK_MODULES= |
21118 | if test "$wxUSE_THREADS" = "yes"; then | |
21119 | GTK_MODULES=gthread | |
21120 | fi | |
f79bd02d | 21121 | |
2b5f62a0 | 21122 | wx_cv_lib_gtk= |
21d1c967 GD |
21123 | if test "x$wxUSE_GTK2" = "xyes"; then |
21124 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21125 | if test "${enable_gtktest+set}" = set; then | |
21126 | enableval="$enable_gtktest" | |
e6cc62c6 | 21127 | |
f79bd02d | 21128 | else |
21d1c967 | 21129 | enable_gtktest=yes |
e6cc62c6 | 21130 | fi; |
f79bd02d | 21131 | |
21d1c967 GD |
21132 | pkg_config_args=gtk+-2.0 |
21133 | for module in . $GTK_MODULES | |
21134 | do | |
21135 | case "$module" in | |
e6cc62c6 | 21136 | gthread) |
21d1c967 GD |
21137 | pkg_config_args="$pkg_config_args gthread-2.0" |
21138 | ;; | |
21139 | esac | |
21140 | done | |
21141 | ||
21142 | no_gtk="" | |
f79bd02d | 21143 | |
21d1c967 GD |
21144 | # Extract the first word of "pkg-config", so it can be a program name with args. |
21145 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21146 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21148 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21150 | else |
e6cc62c6 VS |
21151 | case $PKG_CONFIG in |
21152 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21153 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21154 | ;; | |
21d1c967 | 21155 | *) |
e6cc62c6 VS |
21156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21157 | for as_dir in $PATH | |
21158 | do | |
21159 | IFS=$as_save_IFS | |
21160 | test -z "$as_dir" && as_dir=. | |
21161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21163 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21165 | break 2 | |
21166 | fi | |
21167 | done | |
21168 | done | |
21169 | ||
21d1c967 GD |
21170 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21171 | ;; | |
21172 | esac | |
f79bd02d | 21173 | fi |
e6cc62c6 VS |
21174 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21175 | ||
21d1c967 | 21176 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21177 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21178 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 21179 | else |
e6cc62c6 VS |
21180 | echo "$as_me:$LINENO: result: no" >&5 |
21181 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
21182 | fi |
21183 | ||
8284b0c5 | 21184 | |
21d1c967 GD |
21185 | if test x$PKG_CONFIG != xno ; then |
21186 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
21187 | : | |
21188 | else | |
21189 | echo *** pkg-config too old; version 0.7 or better required. | |
21190 | no_gtk=yes | |
21191 | PKG_CONFIG=no | |
21192 | fi | |
21193 | else | |
21194 | no_gtk=yes | |
21195 | fi | |
f79bd02d | 21196 | |
21d1c967 | 21197 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
21198 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
21199 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 21200 | |
21d1c967 GD |
21201 | if test x$PKG_CONFIG != xno ; then |
21202 | ## don't try to run the test against uninstalled libtool libs | |
21203 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
21204 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
21205 | enable_gtktest=no | |
21206 | fi | |
f79bd02d | 21207 | |
21d1c967 GD |
21208 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
21209 | : | |
21210 | else | |
21211 | no_gtk=yes | |
21212 | fi | |
21213 | fi | |
f79bd02d | 21214 | |
21d1c967 GD |
21215 | if test x"$no_gtk" = x ; then |
21216 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
21217 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
21218 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21219 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21220 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21221 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21222 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21223 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21224 | if test "x$enable_gtktest" = "xyes" ; then | |
21225 | ac_save_CFLAGS="$CFLAGS" | |
21226 | ac_save_LIBS="$LIBS" | |
21227 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21228 | LIBS="$GTK_LIBS $LIBS" | |
21229 | rm -f conf.gtktest | |
21230 | if test "$cross_compiling" = yes; then | |
21231 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21232 | else |
e6cc62c6 | 21233 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21234 | /* confdefs.h. */ |
21235 | _ACEOF | |
21236 | cat confdefs.h >>conftest.$ac_ext | |
21237 | cat >>conftest.$ac_ext <<_ACEOF | |
21238 | /* end confdefs.h. */ | |
f79bd02d | 21239 | |
21d1c967 GD |
21240 | #include <gtk/gtk.h> |
21241 | #include <stdio.h> | |
21242 | #include <stdlib.h> | |
f79bd02d | 21243 | |
e6cc62c6 | 21244 | int |
21d1c967 GD |
21245 | main () |
21246 | { | |
21247 | int major, minor, micro; | |
21248 | char *tmp_version; | |
f79bd02d | 21249 | |
21d1c967 | 21250 | system ("touch conf.gtktest"); |
f79bd02d | 21251 | |
21d1c967 GD |
21252 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
21253 | tmp_version = g_strdup("$min_gtk_version"); | |
21254 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21255 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21256 | exit(1); | |
21257 | } | |
f79bd02d | 21258 | |
21d1c967 GD |
21259 | if ((gtk_major_version != $gtk_config_major_version) || |
21260 | (gtk_minor_version != $gtk_config_minor_version) || | |
21261 | (gtk_micro_version != $gtk_config_micro_version)) | |
21262 | { | |
e6cc62c6 | 21263 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21264 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21265 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21266 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
21267 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21268 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21269 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21270 | printf("*** required on your system.\n"); | |
21271 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
21272 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 21273 | } |
21d1c967 GD |
21274 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
21275 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21276 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21277 | { | |
21278 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21279 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21280 | printf("*** library (version %d.%d.%d)\n", | |
21281 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21282 | } | |
21283 | else | |
21284 | { | |
21285 | if ((gtk_major_version > major) || | |
21286 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21287 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21288 | { | |
21289 | return 0; | |
21290 | } | |
21291 | else | |
21292 | { | |
21293 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21294 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21295 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21296 | major, minor, micro); | |
21297 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21298 | printf("***\n"); | |
21299 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21300 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
21301 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21302 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
21303 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
21304 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21305 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21306 | } | |
21307 | } | |
21308 | return 1; | |
21309 | } | |
f79bd02d | 21310 | |
e6cc62c6 VS |
21311 | _ACEOF |
21312 | rm -f conftest$ac_exeext | |
21313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21314 | (eval $ac_link) 2>&5 | |
21315 | ac_status=$? | |
21316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21319 | (eval $ac_try) 2>&5 | |
21320 | ac_status=$? | |
21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21322 | (exit $ac_status); }; }; then | |
21d1c967 | 21323 | : |
f79bd02d | 21324 | else |
e6cc62c6 VS |
21325 | echo "$as_me: program exited with status $ac_status" >&5 |
21326 | echo "$as_me: failed program was:" >&5 | |
21327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21328 | ||
21329 | ( exit $ac_status ) | |
21330 | no_gtk=yes | |
f79bd02d | 21331 | fi |
f95e4495 | 21332 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 21333 | fi |
21d1c967 GD |
21334 | CFLAGS="$ac_save_CFLAGS" |
21335 | LIBS="$ac_save_LIBS" | |
21336 | fi | |
21337 | fi | |
21338 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21339 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
21340 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
21341 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 21342 | else |
e6cc62c6 VS |
21343 | echo "$as_me:$LINENO: result: no" >&5 |
21344 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21345 | if test "$PKG_CONFIG" = "no" ; then |
21346 | echo "*** A new enough version of pkg-config was not found." | |
21347 | echo "*** See http://pkgconfig.sourceforge.net" | |
21348 | else | |
21349 | if test -f conf.gtktest ; then | |
21350 | : | |
21351 | else | |
21352 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
21353 | ac_save_CFLAGS="$CFLAGS" |
21354 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
21355 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
21356 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21357 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21358 | /* confdefs.h. */ |
21359 | _ACEOF | |
21360 | cat confdefs.h >>conftest.$ac_ext | |
21361 | cat >>conftest.$ac_ext <<_ACEOF | |
21362 | /* end confdefs.h. */ | |
21d1c967 GD |
21363 | |
21364 | #include <gtk/gtk.h> | |
21365 | #include <stdio.h> | |
f79bd02d | 21366 | |
e6cc62c6 VS |
21367 | int |
21368 | main () | |
21369 | { | |
21370 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21371 | ; | |
21372 | return 0; | |
21373 | } | |
21374 | _ACEOF | |
21375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 21377 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21378 | ac_status=$? |
f95e4495 VS |
21379 | grep -v '^ *+' conftest.er1 >conftest.err |
21380 | rm -f conftest.er1 | |
21381 | cat conftest.err >&5 | |
e6cc62c6 VS |
21382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21383 | (exit $ac_status); } && | |
f95e4495 VS |
21384 | { ac_try='test -z "$ac_c_werror_flag" |
21385 | || test ! -s conftest.err' | |
21386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21387 | (eval $ac_try) 2>&5 | |
21388 | ac_status=$? | |
21389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21390 | (exit $ac_status); }; } && | |
21391 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
21392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21393 | (eval $ac_try) 2>&5 | |
21394 | ac_status=$? | |
21395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21396 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21397 | echo "*** The test program compiled, but did not run. This usually means" |
21398 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
21399 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
21400 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21401 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21402 | echo "*** is required on your system" | |
21403 | echo "***" | |
21404 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 21405 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 21406 | else |
e6cc62c6 VS |
21407 | echo "$as_me: failed program was:" >&5 |
21408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21409 | ||
21410 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 21411 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 21412 | fi |
f95e4495 VS |
21413 | rm -f conftest.err conftest.$ac_objext \ |
21414 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21415 | CFLAGS="$ac_save_CFLAGS" |
21416 | LIBS="$ac_save_LIBS" | |
21417 | fi | |
21418 | fi | |
21419 | GTK_CFLAGS="" | |
21420 | GTK_LIBS="" | |
21421 | : | |
21422 | fi | |
e6cc62c6 VS |
21423 | |
21424 | ||
21d1c967 | 21425 | rm -f conf.gtktest |
f79bd02d | 21426 | |
2b5f62a0 | 21427 | else |
e6cc62c6 VS |
21428 | |
21429 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21430 | if test "${with_gtk_prefix+set}" = set; then |
21431 | withval="$with_gtk_prefix" | |
21432 | gtk_config_prefix="$withval" | |
21433 | else | |
21434 | gtk_config_prefix="" | |
e6cc62c6 | 21435 | fi; |
f79bd02d | 21436 | |
21d1c967 GD |
21437 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21438 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21439 | withval="$with_gtk_exec_prefix" | |
21440 | gtk_config_exec_prefix="$withval" | |
21441 | else | |
21442 | gtk_config_exec_prefix="" | |
e6cc62c6 | 21443 | fi; |
21d1c967 GD |
21444 | # Check whether --enable-gtktest or --disable-gtktest was given. |
21445 | if test "${enable_gtktest+set}" = set; then | |
21446 | enableval="$enable_gtktest" | |
e6cc62c6 | 21447 | |
21d1c967 GD |
21448 | else |
21449 | enable_gtktest=yes | |
e6cc62c6 | 21450 | fi; |
21d1c967 GD |
21451 | |
21452 | for module in . $GTK_MODULES | |
21453 | do | |
21454 | case "$module" in | |
e6cc62c6 | 21455 | gthread) |
21d1c967 GD |
21456 | gtk_config_args="$gtk_config_args gthread" |
21457 | ;; | |
21458 | esac | |
21459 | done | |
21460 | ||
21461 | if test x$gtk_config_exec_prefix != x ; then | |
21462 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21463 | if test x${GTK_CONFIG+set} != xset ; then | |
21464 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21465 | fi | |
21466 | fi | |
21467 | if test x$gtk_config_prefix != x ; then | |
21468 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21469 | if test x${GTK_CONFIG+set} != xset ; then | |
21470 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21471 | fi | |
21472 | fi | |
21473 | ||
21474 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21475 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
21476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21478 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21480 | else |
e6cc62c6 VS |
21481 | case $GTK_CONFIG in |
21482 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21483 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
21484 | ;; | |
21d1c967 | 21485 | *) |
e6cc62c6 VS |
21486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21487 | for as_dir in $PATH | |
21488 | do | |
21489 | IFS=$as_save_IFS | |
21490 | test -z "$as_dir" && as_dir=. | |
21491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21493 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21495 | break 2 | |
21496 | fi | |
21497 | done | |
21498 | done | |
21499 | ||
21d1c967 GD |
21500 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21501 | ;; | |
21502 | esac | |
21503 | fi | |
e6cc62c6 VS |
21504 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21505 | ||
21d1c967 | 21506 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21507 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21508 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21509 | else |
e6cc62c6 VS |
21510 | echo "$as_me:$LINENO: result: no" >&5 |
21511 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21512 | fi |
21513 | ||
21514 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
21515 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21516 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21517 | no_gtk="" |
21518 | if test "$GTK_CONFIG" = "no" ; then | |
21519 | no_gtk=yes | |
21520 | else | |
21521 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21522 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21523 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21524 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21525 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21526 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21527 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21528 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21529 | if test "x$enable_gtktest" = "xyes" ; then | |
21530 | ac_save_CFLAGS="$CFLAGS" | |
21531 | ac_save_LIBS="$LIBS" | |
21532 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21533 | LIBS="$GTK_LIBS $LIBS" | |
21534 | rm -f conf.gtktest | |
21535 | if test "$cross_compiling" = yes; then | |
21536 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21537 | else |
e6cc62c6 | 21538 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21539 | /* confdefs.h. */ |
21540 | _ACEOF | |
21541 | cat confdefs.h >>conftest.$ac_ext | |
21542 | cat >>conftest.$ac_ext <<_ACEOF | |
21543 | /* end confdefs.h. */ | |
f79bd02d | 21544 | |
21d1c967 GD |
21545 | #include <gtk/gtk.h> |
21546 | #include <stdio.h> | |
21547 | #include <stdlib.h> | |
f79bd02d | 21548 | |
e6cc62c6 | 21549 | int |
21d1c967 GD |
21550 | main () |
21551 | { | |
21552 | int major, minor, micro; | |
21553 | char *tmp_version; | |
21554 | ||
21555 | system ("touch conf.gtktest"); | |
21556 | ||
21557 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21558 | tmp_version = g_strdup("$min_gtk_version"); | |
21559 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21560 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21561 | exit(1); | |
21562 | } | |
90dd450c | 21563 | |
21d1c967 GD |
21564 | if ((gtk_major_version != $gtk_config_major_version) || |
21565 | (gtk_minor_version != $gtk_config_minor_version) || | |
21566 | (gtk_micro_version != $gtk_config_micro_version)) | |
21567 | { | |
e6cc62c6 | 21568 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21569 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21570 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21571 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21572 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21573 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21574 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21575 | printf("*** required on your system.\n"); | |
21576 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21577 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21578 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21579 | } |
21d1c967 GD |
21580 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21581 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21582 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21583 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21584 | { | |
21585 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21586 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21587 | printf("*** library (version %d.%d.%d)\n", | |
21588 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21589 | } | |
21590 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21591 | else | |
21592 | { | |
21593 | if ((gtk_major_version > major) || | |
21594 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21595 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21596 | { | |
21597 | return 0; | |
21598 | } | |
21599 | else | |
21600 | { | |
21601 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21602 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21603 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21604 | major, minor, micro); | |
21605 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21606 | printf("***\n"); | |
21607 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21608 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21609 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21610 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21611 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21612 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21613 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21614 | } | |
21615 | } | |
21616 | return 1; | |
21617 | } | |
21618 | ||
e6cc62c6 VS |
21619 | _ACEOF |
21620 | rm -f conftest$ac_exeext | |
21621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21622 | (eval $ac_link) 2>&5 | |
21623 | ac_status=$? | |
21624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21627 | (eval $ac_try) 2>&5 | |
21628 | ac_status=$? | |
21629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21630 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21631 | : |
21632 | else | |
e6cc62c6 VS |
21633 | echo "$as_me: program exited with status $ac_status" >&5 |
21634 | echo "$as_me: failed program was:" >&5 | |
21635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21636 | ||
21637 | ( exit $ac_status ) | |
21638 | no_gtk=yes | |
21d1c967 | 21639 | fi |
f95e4495 | 21640 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21641 | fi |
21d1c967 GD |
21642 | CFLAGS="$ac_save_CFLAGS" |
21643 | LIBS="$ac_save_LIBS" | |
21644 | fi | |
21645 | fi | |
21646 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21647 | echo "$as_me:$LINENO: result: yes" >&5 |
21648 | echo "${ECHO_T}yes" >&6 | |
21649 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 21650 | else |
e6cc62c6 VS |
21651 | echo "$as_me:$LINENO: result: no" >&5 |
21652 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21653 | if test "$GTK_CONFIG" = "no" ; then |
21654 | echo "*** The gtk-config script installed by GTK could not be found" | |
21655 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21656 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21657 | echo "*** full path to gtk-config." | |
21658 | else | |
21659 | if test -f conf.gtktest ; then | |
21660 | : | |
21661 | else | |
21662 | echo "*** Could not run GTK test program, checking why..." | |
21663 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21664 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21665 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21666 | /* confdefs.h. */ |
21667 | _ACEOF | |
21668 | cat confdefs.h >>conftest.$ac_ext | |
21669 | cat >>conftest.$ac_ext <<_ACEOF | |
21670 | /* end confdefs.h. */ | |
21d1c967 GD |
21671 | |
21672 | #include <gtk/gtk.h> | |
21673 | #include <stdio.h> | |
21674 | ||
e6cc62c6 VS |
21675 | int |
21676 | main () | |
21677 | { | |
21678 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21679 | ; | |
21680 | return 0; | |
21681 | } | |
21682 | _ACEOF | |
21683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 21685 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21686 | ac_status=$? |
f95e4495 VS |
21687 | grep -v '^ *+' conftest.er1 >conftest.err |
21688 | rm -f conftest.er1 | |
21689 | cat conftest.err >&5 | |
e6cc62c6 VS |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21691 | (exit $ac_status); } && | |
f95e4495 VS |
21692 | { ac_try='test -z "$ac_c_werror_flag" |
21693 | || test ! -s conftest.err' | |
21694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21695 | (eval $ac_try) 2>&5 | |
21696 | ac_status=$? | |
21697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21698 | (exit $ac_status); }; } && | |
21699 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
21700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21701 | (eval $ac_try) 2>&5 | |
21702 | ac_status=$? | |
21703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21704 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21705 | echo "*** The test program compiled, but did not run. This usually means" |
21706 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21707 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21708 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21709 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21710 | echo "*** is required on your system" | |
21711 | echo "***" | |
21712 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21713 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21714 | echo "***" | |
21715 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21716 | echo "*** came with the system with the command" | |
21717 | echo "***" | |
e6cc62c6 | 21718 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 21719 | else |
e6cc62c6 VS |
21720 | echo "$as_me: failed program was:" >&5 |
21721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21722 | ||
21723 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
21724 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
21725 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 21726 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 21727 | fi |
f95e4495 VS |
21728 | rm -f conftest.err conftest.$ac_objext \ |
21729 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21730 | CFLAGS="$ac_save_CFLAGS" |
21731 | LIBS="$ac_save_LIBS" | |
21732 | fi | |
21733 | fi | |
21734 | GTK_CFLAGS="" | |
21735 | GTK_LIBS="" | |
21736 | : | |
21737 | fi | |
e6cc62c6 VS |
21738 | |
21739 | ||
21d1c967 GD |
21740 | rm -f conf.gtktest |
21741 | ||
21d1c967 | 21742 | |
2b5f62a0 | 21743 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
21744 | |
21745 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21746 | if test "${with_gtk_prefix+set}" = set; then |
21747 | withval="$with_gtk_prefix" | |
21748 | gtk_config_prefix="$withval" | |
21749 | else | |
21750 | gtk_config_prefix="" | |
e6cc62c6 | 21751 | fi; |
f79bd02d | 21752 | |
21d1c967 GD |
21753 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21754 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21755 | withval="$with_gtk_exec_prefix" | |
21756 | gtk_config_exec_prefix="$withval" | |
21757 | else | |
21758 | gtk_config_exec_prefix="" | |
e6cc62c6 | 21759 | fi; |
21d1c967 GD |
21760 | # Check whether --enable-gtktest or --disable-gtktest was given. |
21761 | if test "${enable_gtktest+set}" = set; then | |
21762 | enableval="$enable_gtktest" | |
e6cc62c6 | 21763 | |
90dd450c | 21764 | else |
21d1c967 | 21765 | enable_gtktest=yes |
e6cc62c6 | 21766 | fi; |
21d1c967 GD |
21767 | |
21768 | for module in . $GTK_MODULES | |
21769 | do | |
21770 | case "$module" in | |
e6cc62c6 | 21771 | gthread) |
21d1c967 GD |
21772 | gtk_config_args="$gtk_config_args gthread" |
21773 | ;; | |
21774 | esac | |
21775 | done | |
21776 | ||
21777 | if test x$gtk_config_exec_prefix != x ; then | |
21778 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21779 | if test x${GTK_CONFIG+set} != xset ; then | |
21780 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21781 | fi | |
21782 | fi | |
21783 | if test x$gtk_config_prefix != x ; then | |
21784 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21785 | if test x${GTK_CONFIG+set} != xset ; then | |
21786 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21787 | fi | |
21788 | fi | |
21789 | ||
21790 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21791 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
21792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21794 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21796 | else |
e6cc62c6 VS |
21797 | case $GTK_CONFIG in |
21798 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21799 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
21800 | ;; | |
21d1c967 | 21801 | *) |
e6cc62c6 VS |
21802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21803 | for as_dir in $PATH | |
21804 | do | |
21805 | IFS=$as_save_IFS | |
21806 | test -z "$as_dir" && as_dir=. | |
21807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21809 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21811 | break 2 | |
21812 | fi | |
21813 | done | |
21814 | done | |
21815 | ||
21d1c967 GD |
21816 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21817 | ;; | |
21818 | esac | |
21819 | fi | |
e6cc62c6 VS |
21820 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21821 | ||
21d1c967 | 21822 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21823 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21824 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21825 | else |
e6cc62c6 VS |
21826 | echo "$as_me:$LINENO: result: no" >&5 |
21827 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21828 | fi |
21829 | ||
21830 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
21831 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21832 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21833 | no_gtk="" |
21834 | if test "$GTK_CONFIG" = "no" ; then | |
21835 | no_gtk=yes | |
21836 | else | |
21837 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21838 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21839 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21840 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21841 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21842 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21843 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21844 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21845 | if test "x$enable_gtktest" = "xyes" ; then | |
21846 | ac_save_CFLAGS="$CFLAGS" | |
21847 | ac_save_LIBS="$LIBS" | |
21848 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21849 | LIBS="$GTK_LIBS $LIBS" | |
21850 | rm -f conf.gtktest | |
21851 | if test "$cross_compiling" = yes; then | |
21852 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
21853 | else | |
e6cc62c6 | 21854 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21855 | /* confdefs.h. */ |
21856 | _ACEOF | |
21857 | cat confdefs.h >>conftest.$ac_ext | |
21858 | cat >>conftest.$ac_ext <<_ACEOF | |
21859 | /* end confdefs.h. */ | |
21d1c967 GD |
21860 | |
21861 | #include <gtk/gtk.h> | |
21862 | #include <stdio.h> | |
21863 | #include <stdlib.h> | |
21864 | ||
e6cc62c6 | 21865 | int |
21d1c967 GD |
21866 | main () |
21867 | { | |
21868 | int major, minor, micro; | |
21869 | char *tmp_version; | |
21870 | ||
21871 | system ("touch conf.gtktest"); | |
21872 | ||
21873 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21874 | tmp_version = g_strdup("$min_gtk_version"); | |
21875 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21876 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21877 | exit(1); | |
21878 | } | |
21879 | ||
21880 | if ((gtk_major_version != $gtk_config_major_version) || | |
21881 | (gtk_minor_version != $gtk_config_minor_version) || | |
21882 | (gtk_micro_version != $gtk_config_micro_version)) | |
21883 | { | |
e6cc62c6 | 21884 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21885 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21886 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21887 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21888 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21889 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21890 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21891 | printf("*** required on your system.\n"); | |
21892 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21893 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21894 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21895 | } |
21d1c967 GD |
21896 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21897 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21898 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21899 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21900 | { | |
21901 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21902 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21903 | printf("*** library (version %d.%d.%d)\n", | |
21904 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21905 | } | |
21906 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21907 | else | |
21908 | { | |
21909 | if ((gtk_major_version > major) || | |
21910 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21911 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21912 | { | |
21913 | return 0; | |
21914 | } | |
21915 | else | |
21916 | { | |
21917 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21918 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21919 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21920 | major, minor, micro); | |
21921 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21922 | printf("***\n"); | |
21923 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21924 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21925 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21926 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21927 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21928 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21929 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21930 | } | |
21931 | } | |
21932 | return 1; | |
21933 | } | |
21934 | ||
e6cc62c6 VS |
21935 | _ACEOF |
21936 | rm -f conftest$ac_exeext | |
21937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21938 | (eval $ac_link) 2>&5 | |
21939 | ac_status=$? | |
21940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21943 | (eval $ac_try) 2>&5 | |
21944 | ac_status=$? | |
21945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21946 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21947 | : |
21948 | else | |
e6cc62c6 VS |
21949 | echo "$as_me: program exited with status $ac_status" >&5 |
21950 | echo "$as_me: failed program was:" >&5 | |
21951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21952 | ||
21953 | ( exit $ac_status ) | |
21954 | no_gtk=yes | |
21d1c967 | 21955 | fi |
f95e4495 | 21956 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21957 | fi |
21d1c967 GD |
21958 | CFLAGS="$ac_save_CFLAGS" |
21959 | LIBS="$ac_save_LIBS" | |
21960 | fi | |
21961 | fi | |
21962 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21963 | echo "$as_me:$LINENO: result: yes" >&5 |
21964 | echo "${ECHO_T}yes" >&6 | |
21965 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 21966 | else |
e6cc62c6 VS |
21967 | echo "$as_me:$LINENO: result: no" >&5 |
21968 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21969 | if test "$GTK_CONFIG" = "no" ; then |
21970 | echo "*** The gtk-config script installed by GTK could not be found" | |
21971 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21972 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21973 | echo "*** full path to gtk-config." | |
21974 | else | |
21975 | if test -f conf.gtktest ; then | |
21976 | : | |
21977 | else | |
21978 | echo "*** Could not run GTK test program, checking why..." | |
21979 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21980 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21981 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21982 | /* confdefs.h. */ |
21983 | _ACEOF | |
21984 | cat confdefs.h >>conftest.$ac_ext | |
21985 | cat >>conftest.$ac_ext <<_ACEOF | |
21986 | /* end confdefs.h. */ | |
21d1c967 GD |
21987 | |
21988 | #include <gtk/gtk.h> | |
21989 | #include <stdio.h> | |
f79bd02d | 21990 | |
e6cc62c6 VS |
21991 | int |
21992 | main () | |
21993 | { | |
21994 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21995 | ; | |
21996 | return 0; | |
21997 | } | |
21998 | _ACEOF | |
21999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22001 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22002 | ac_status=$? |
f95e4495 VS |
22003 | grep -v '^ *+' conftest.er1 >conftest.err |
22004 | rm -f conftest.er1 | |
22005 | cat conftest.err >&5 | |
e6cc62c6 VS |
22006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22007 | (exit $ac_status); } && | |
f95e4495 VS |
22008 | { ac_try='test -z "$ac_c_werror_flag" |
22009 | || test ! -s conftest.err' | |
22010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22011 | (eval $ac_try) 2>&5 | |
22012 | ac_status=$? | |
22013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22014 | (exit $ac_status); }; } && | |
22015 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22017 | (eval $ac_try) 2>&5 | |
22018 | ac_status=$? | |
22019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22020 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22021 | echo "*** The test program compiled, but did not run. This usually means" |
22022 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22023 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22024 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22025 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22026 | echo "*** is required on your system" | |
22027 | echo "***" | |
22028 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22029 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22030 | echo "***" | |
22031 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22032 | echo "*** came with the system with the command" | |
22033 | echo "***" | |
e6cc62c6 | 22034 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22035 | else |
e6cc62c6 VS |
22036 | echo "$as_me: failed program was:" >&5 |
22037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22038 | ||
22039 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22040 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22041 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22042 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22043 | fi |
f95e4495 VS |
22044 | rm -f conftest.err conftest.$ac_objext \ |
22045 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22046 | CFLAGS="$ac_save_CFLAGS" |
22047 | LIBS="$ac_save_LIBS" | |
22048 | fi | |
22049 | fi | |
22050 | GTK_CFLAGS="" | |
22051 | GTK_LIBS="" | |
22052 | : | |
22053 | fi | |
e6cc62c6 VS |
22054 | |
22055 | ||
21d1c967 | 22056 | rm -f conf.gtktest |
f79bd02d | 22057 | |
2b5f62a0 | 22058 | fi |
21d1c967 GD |
22059 | fi |
22060 | ||
22061 | if test -z "$wx_cv_lib_gtk"; then | |
22062 | wx_cv_lib_gtk=none | |
22063 | else | |
22064 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
22065 | wx_cv_libs_gtk=$GTK_LIBS | |
22066 | fi | |
e6cc62c6 VS |
22067 | |
22068 | ||
5c6fa7d2 | 22069 | fi |
52127426 | 22070 | |
8284b0c5 | 22071 | |
21d1c967 | 22072 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
22073 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
22074 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
22075 | fi |
22076 | ||
22077 | case "$wx_cv_lib_gtk" in | |
22078 | 2.0) WXGTK20=1 | |
2b5f62a0 | 22079 | TOOLKIT_VERSION=2 |
21d1c967 GD |
22080 | ;; |
22081 | 1.2.7) WXGTK127=1 | |
22082 | WXGTK12=1 | |
22083 | ;; | |
22084 | 1.2.3) WXGTK12=1 | |
22085 | ;; | |
e6cc62c6 VS |
22086 | *) { { echo "$as_me:$LINENO: error: |
22087 | Please check that gtk-config is in path, the directory | |
22088 | where GTK+ libraries are installed (returned by | |
22089 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22090 | equivalent variable and GTK+ is version 1.2.3 or above. | |
22091 | " >&5 | |
22092 | echo "$as_me: error: | |
247f5006 VZ |
22093 | Please check that gtk-config is in path, the directory |
22094 | where GTK+ libraries are installed (returned by | |
22095 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22096 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
22097 | " >&2;} |
22098 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22099 | ;; |
22100 | esac | |
22101 | ||
b13cd66e VZ |
22102 | if test "$WXGTK20" = 1; then |
22103 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 22104 | |
f09359cf VS |
22105 | succeeded=no |
22106 | ||
22107 | if test -z "$PKG_CONFIG"; then | |
22108 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22109 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22110 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22112 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 22114 | else |
e6cc62c6 VS |
22115 | case $PKG_CONFIG in |
22116 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
22117 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22118 | ;; | |
f09359cf | 22119 | *) |
e6cc62c6 VS |
22120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22121 | for as_dir in $PATH | |
22122 | do | |
22123 | IFS=$as_save_IFS | |
22124 | test -z "$as_dir" && as_dir=. | |
22125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22127 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22129 | break 2 | |
22130 | fi | |
22131 | done | |
22132 | done | |
22133 | ||
f09359cf VS |
22134 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22135 | ;; | |
22136 | esac | |
22137 | fi | |
e6cc62c6 VS |
22138 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22139 | ||
f09359cf | 22140 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22141 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22142 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 22143 | else |
e6cc62c6 VS |
22144 | echo "$as_me:$LINENO: result: no" >&5 |
22145 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
22146 | fi |
22147 | ||
22148 | fi | |
22149 | ||
22150 | if test "$PKG_CONFIG" = "no" ; then | |
22151 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22152 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22153 | echo "*** to the full path to pkg-config." | |
22154 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22155 | else | |
22156 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22157 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22158 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22159 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
22160 | |
22161 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22162 | echo "$as_me:$LINENO: result: yes" >&5 |
22163 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
22164 | succeeded=yes |
22165 | ||
e6cc62c6 VS |
22166 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22167 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 22168 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22169 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22170 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 22171 | |
e6cc62c6 VS |
22172 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22173 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 22174 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22175 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22176 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
22177 | else |
22178 | PANGOFT2_CFLAGS="" | |
22179 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22180 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
22181 | ## do set a variable so people can do so. |
22182 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22183 | |
f09359cf VS |
22184 | fi |
22185 | ||
e6cc62c6 VS |
22186 | |
22187 | ||
f09359cf VS |
22188 | else |
22189 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22190 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22191 | fi | |
22192 | fi | |
22193 | ||
22194 | if test $succeeded = yes; then | |
e6cc62c6 | 22195 | |
b13cd66e | 22196 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22197 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22198 | |
f09359cf | 22199 | else |
e6cc62c6 VS |
22200 | |
22201 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22202 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 22203 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22204 | |
22205 | ||
f09359cf VS |
22206 | fi |
22207 | ||
b13cd66e | 22208 | fi |
2b5f62a0 VZ |
22209 | else |
22210 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
22211 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
22212 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
22213 | wxUSE_UNICODE=no |
22214 | fi | |
22215 | fi | |
22216 | ||
22217 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
22218 | |
22219 | for ac_func in poll | |
2b5f62a0 | 22220 | do |
e6cc62c6 VS |
22221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22224 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22226 | else | |
22227 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22228 | /* confdefs.h. */ |
22229 | _ACEOF | |
22230 | cat confdefs.h >>conftest.$ac_ext | |
22231 | cat >>conftest.$ac_ext <<_ACEOF | |
22232 | /* end confdefs.h. */ | |
f95e4495 VS |
22233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22235 | #define $ac_func innocuous_$ac_func | |
22236 | ||
2b5f62a0 | 22237 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22238 | which can conflict with char $ac_func (); below. |
22239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22240 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 22241 | |
e6cc62c6 VS |
22242 | #ifdef __STDC__ |
22243 | # include <limits.h> | |
22244 | #else | |
22245 | # include <assert.h> | |
22246 | #endif | |
f95e4495 VS |
22247 | |
22248 | #undef $ac_func | |
22249 | ||
2b5f62a0 | 22250 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22251 | #ifdef __cplusplus |
22252 | extern "C" | |
22253 | { | |
22254 | #endif | |
2b5f62a0 | 22255 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22256 | builtin and then its argument prototype would still apply. */ |
22257 | char $ac_func (); | |
2b5f62a0 VZ |
22258 | /* The GNU C library defines this for functions which it implements |
22259 | to always fail with ENOSYS. Some functions are actually named | |
22260 | something starting with __ and the normal name is an alias. */ | |
22261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22262 | choke me | |
22263 | #else | |
e6cc62c6 VS |
22264 | char (*f) () = $ac_func; |
22265 | #endif | |
22266 | #ifdef __cplusplus | |
22267 | } | |
2b5f62a0 VZ |
22268 | #endif |
22269 | ||
e6cc62c6 VS |
22270 | int |
22271 | main () | |
22272 | { | |
22273 | return f != $ac_func; | |
22274 | ; | |
22275 | return 0; | |
22276 | } | |
22277 | _ACEOF | |
22278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22280 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22281 | ac_status=$? |
f95e4495 VS |
22282 | grep -v '^ *+' conftest.er1 >conftest.err |
22283 | rm -f conftest.er1 | |
22284 | cat conftest.err >&5 | |
e6cc62c6 VS |
22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22286 | (exit $ac_status); } && | |
f95e4495 VS |
22287 | { ac_try='test -z "$ac_c_werror_flag" |
22288 | || test ! -s conftest.err' | |
22289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22290 | (eval $ac_try) 2>&5 | |
22291 | ac_status=$? | |
22292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22293 | (exit $ac_status); }; } && | |
22294 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22296 | (eval $ac_try) 2>&5 | |
22297 | ac_status=$? | |
22298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22299 | (exit $ac_status); }; }; then | |
22300 | eval "$as_ac_var=yes" | |
22301 | else | |
22302 | echo "$as_me: failed program was:" >&5 | |
22303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22304 | ||
22305 | eval "$as_ac_var=no" | |
22306 | fi | |
f95e4495 VS |
22307 | rm -f conftest.err conftest.$ac_objext \ |
22308 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22309 | fi |
22310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22311 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22312 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22313 | cat >>confdefs.h <<_ACEOF | |
22314 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22315 | _ACEOF | |
2b5f62a0 | 22316 | |
2b5f62a0 VZ |
22317 | fi |
22318 | done | |
22319 | ||
f09359cf VS |
22320 | fi |
22321 | ||
21d1c967 | 22322 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 22323 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
22324 | |
22325 | AFMINSTALL=afminstall | |
22326 | TOOLKIT=GTK | |
22327 | GUIDIST=GTK_DIST | |
22328 | ||
e6cc62c6 VS |
22329 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
22330 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
22331 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
22332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22333 | else |
e6cc62c6 | 22334 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22335 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 22336 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22337 | /* confdefs.h. */ |
22338 | _ACEOF | |
22339 | cat confdefs.h >>conftest.$ac_ext | |
22340 | cat >>conftest.$ac_ext <<_ACEOF | |
22341 | /* end confdefs.h. */ | |
22342 | ||
5c6fa7d2 | 22343 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22344 | #ifdef __cplusplus |
22345 | extern "C" | |
22346 | #endif | |
5c6fa7d2 | 22347 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22348 | builtin and then its argument prototype would still apply. */ |
22349 | char gdk_im_open (); | |
22350 | int | |
22351 | main () | |
22352 | { | |
22353 | gdk_im_open (); | |
22354 | ; | |
22355 | return 0; | |
22356 | } | |
22357 | _ACEOF | |
22358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22360 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22361 | ac_status=$? |
f95e4495 VS |
22362 | grep -v '^ *+' conftest.er1 >conftest.err |
22363 | rm -f conftest.er1 | |
22364 | cat conftest.err >&5 | |
e6cc62c6 VS |
22365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22366 | (exit $ac_status); } && | |
f95e4495 VS |
22367 | { ac_try='test -z "$ac_c_werror_flag" |
22368 | || test ! -s conftest.err' | |
22369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22370 | (eval $ac_try) 2>&5 | |
22371 | ac_status=$? | |
22372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22373 | (exit $ac_status); }; } && | |
22374 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22376 | (eval $ac_try) 2>&5 | |
22377 | ac_status=$? | |
22378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22379 | (exit $ac_status); }; }; then | |
22380 | ac_cv_lib_gdk_gdk_im_open=yes | |
22381 | else | |
22382 | echo "$as_me: failed program was:" >&5 | |
22383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22384 | ||
22385 | ac_cv_lib_gdk_gdk_im_open=no | |
22386 | fi | |
f95e4495 VS |
22387 | rm -f conftest.err conftest.$ac_objext \ |
22388 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22389 | LIBS=$ac_check_lib_save_LIBS |
22390 | fi | |
22391 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
22392 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
22393 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
22394 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22395 | #define HAVE_XIM 1 |
e6cc62c6 | 22396 | _ACEOF |
21d1c967 | 22397 | |
90dd450c | 22398 | fi |
1e6feb95 | 22399 | |
21d1c967 | 22400 | fi |
1e6feb95 | 22401 | |
21d1c967 | 22402 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
22403 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
22404 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 22405 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
22406 | echo "$as_me:$LINENO: result: not found" >&5 |
22407 | echo "${ECHO_T}not found" >&6 | |
22408 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
22409 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
22410 | { (exit 1); exit 1; }; } | |
21d1c967 | 22411 | else |
e6cc62c6 VS |
22412 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
22413 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
22414 | fi |
22415 | ||
e6cc62c6 VS |
22416 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
22417 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 22418 | case "${host}" in |
21d1c967 | 22419 | *-*-linux* ) |
e46d2a18 VS |
22420 | if test "x$wxUSE_SHARED" = xyes ; then |
22421 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 22422 | else |
e46d2a18 | 22423 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 22424 | fi |
21d1c967 GD |
22425 | ;; |
22426 | *-pc-msdosdjgpp ) | |
63a76696 | 22427 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
22428 | ;; |
22429 | *) | |
e6cc62c6 VS |
22430 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
22431 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
22432 | { (exit 1); exit 1; }; } | |
21d1c967 | 22433 | esac |
1e6feb95 | 22434 | |
21d1c967 | 22435 | mgl_lib_type="" |
63a76696 VS |
22436 | mgl_os="" |
22437 | ||
22438 | for mgl_os_i in $mgl_os_candidates ; do | |
22439 | if test "x$mgl_os" = x ; then | |
22440 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
22441 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
22442 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
22443 | mgl_lib_type=debug | |
22444 | mgl_os=$mgl_os_i | |
22445 | fi | |
22446 | fi | |
22447 | if test "x$mgl_lib_type" = x ; then | |
22448 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
22449 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
22450 | mgl_lib_type=release | |
22451 | mgl_os=$mgl_os_i | |
22452 | fi | |
22453 | fi | |
21d1c967 | 22454 | fi |
63a76696 | 22455 | done |
2224580a | 22456 | |
63a76696 | 22457 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
22458 | echo "$as_me:$LINENO: result: not found" >&5 |
22459 | echo "${ECHO_T}not found" >&6 | |
22460 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
22461 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
22462 | { (exit 1); exit 1; }; } | |
63a76696 | 22463 | fi |
e6cc62c6 VS |
22464 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
22465 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 22466 | |
1d1b75ac VZ |
22467 | wxUSE_UNIVERSAL="yes" |
22468 | ||
21d1c967 GD |
22469 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
22470 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
22471 | ||
90dd450c | 22472 | AFMINSTALL=afminstall |
21d1c967 GD |
22473 | TOOLKIT=MGL |
22474 | GUIDIST=MGL_DIST | |
22475 | fi | |
dad6c0ea | 22476 | |
21d1c967 | 22477 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
22478 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
22479 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 22480 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
22481 | echo "$as_me:$LINENO: result: not found" >&5 |
22482 | echo "${ECHO_T}not found" >&6 | |
22483 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
22484 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
22485 | { (exit 1); exit 1; }; } | |
21d1c967 | 22486 | else |
e6cc62c6 VS |
22487 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
22488 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 22489 | fi |
f6bcfd97 | 22490 | |
21d1c967 | 22491 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
22492 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
22493 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 22494 | else |
e6cc62c6 VS |
22495 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
22496 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
22497 | { (exit 1); exit 1; }; } | |
90dd450c | 22498 | fi |
0b2effe9 | 22499 | |
21d1c967 GD |
22500 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
22501 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
22502 | ||
1d1b75ac VZ |
22503 | wxUSE_UNIVERSAL="yes" |
22504 | ||
21d1c967 GD |
22505 | AFMINSTALL=afminstall |
22506 | TOOLKIT=MICROWIN | |
22507 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
22508 | |
22509 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 22510 | fi |
f6bcfd97 | 22511 | |
21d1c967 | 22512 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
22513 | echo "$as_me:$LINENO: checking for X" >&5 |
22514 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
22515 | ||
d8356fa3 | 22516 | |
21d1c967 GD |
22517 | # Check whether --with-x or --without-x was given. |
22518 | if test "${with_x+set}" = set; then | |
22519 | withval="$with_x" | |
2224580a | 22520 | |
e6cc62c6 | 22521 | fi; |
21d1c967 GD |
22522 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22523 | if test "x$with_x" = xno; then | |
22524 | # The user explicitly disabled X. | |
22525 | have_x=disabled | |
22526 | else | |
22527 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22528 | # Both variables are already set. | |
22529 | have_x=yes | |
22530 | else | |
e6cc62c6 VS |
22531 | if test "${ac_cv_have_x+set}" = set; then |
22532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
22533 | else |
22534 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
22535 | ac_x_includes=no ac_x_libraries=no |
22536 | rm -fr conftest.dir | |
22537 | if mkdir conftest.dir; then | |
22538 | cd conftest.dir | |
21d1c967 | 22539 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 22540 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
22541 | acfindx: |
22542 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 22543 | _ACEOF |
21d1c967 GD |
22544 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
22545 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
22546 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22547 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22548 | for ac_extension in a so sl; do | |
22549 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
f95e4495 VS |
22550 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22551 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
22552 | fi |
22553 | done | |
22554 | # Screen out bogus values from the imake configuration. They are | |
22555 | # bogus both because they are the default anyway, and because | |
22556 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 22557 | case $ac_im_incroot in |
21d1c967 | 22558 | /usr/include) ;; |
e6cc62c6 | 22559 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 22560 | esac |
e6cc62c6 | 22561 | case $ac_im_usrlibdir in |
21d1c967 | 22562 | /usr/lib | /lib) ;; |
e6cc62c6 | 22563 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
22564 | esac |
22565 | fi | |
22566 | cd .. | |
e6cc62c6 | 22567 | rm -fr conftest.dir |
21d1c967 | 22568 | fi |
10f2d63a | 22569 | |
e6cc62c6 VS |
22570 | # Standard set of common directories for X headers. |
22571 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22572 | ac_x_header_dirs=' | |
22573 | /usr/X11/include | |
22574 | /usr/X11R6/include | |
22575 | /usr/X11R5/include | |
22576 | /usr/X11R4/include | |
22577 | ||
22578 | /usr/include/X11 | |
22579 | /usr/include/X11R6 | |
22580 | /usr/include/X11R5 | |
22581 | /usr/include/X11R4 | |
22582 | ||
22583 | /usr/local/X11/include | |
22584 | /usr/local/X11R6/include | |
22585 | /usr/local/X11R5/include | |
22586 | /usr/local/X11R4/include | |
22587 | ||
22588 | /usr/local/include/X11 | |
22589 | /usr/local/include/X11R6 | |
22590 | /usr/local/include/X11R5 | |
22591 | /usr/local/include/X11R4 | |
22592 | ||
22593 | /usr/X386/include | |
22594 | /usr/x386/include | |
22595 | /usr/XFree86/include/X11 | |
22596 | ||
22597 | /usr/include | |
22598 | /usr/local/include | |
22599 | /usr/unsupported/include | |
22600 | /usr/athena/include | |
22601 | /usr/local/x11r5/include | |
22602 | /usr/lpp/Xamples/include | |
22603 | ||
22604 | /usr/openwin/include | |
22605 | /usr/openwin/share/include' | |
22606 | ||
22607 | if test "$ac_x_includes" = no; then | |
22608 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 22609 | # First, try using that file with no special directory specified. |
e6cc62c6 | 22610 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22611 | /* confdefs.h. */ |
22612 | _ACEOF | |
22613 | cat confdefs.h >>conftest.$ac_ext | |
22614 | cat >>conftest.$ac_ext <<_ACEOF | |
22615 | /* end confdefs.h. */ | |
22616 | #include <X11/Intrinsic.h> | |
22617 | _ACEOF | |
22618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22620 | ac_status=$? | |
22621 | grep -v '^ *+' conftest.er1 >conftest.err | |
22622 | rm -f conftest.er1 | |
22623 | cat conftest.err >&5 | |
22624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22625 | (exit $ac_status); } >/dev/null; then | |
22626 | if test -s conftest.err; then | |
22627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 22628 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
22629 | else |
22630 | ac_cpp_err= | |
22631 | fi | |
22632 | else | |
22633 | ac_cpp_err=yes | |
22634 | fi | |
22635 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
22636 | # We can compile using X headers with no special include directory. |
22637 | ac_x_includes= | |
90dd450c | 22638 | else |
e6cc62c6 VS |
22639 | echo "$as_me: failed program was:" >&5 |
22640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22641 | ||
22642 | for ac_dir in $ac_x_header_dirs; do | |
22643 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
22644 | ac_x_includes=$ac_dir | |
22645 | break | |
22646 | fi | |
22647 | done | |
3a922bb4 | 22648 | fi |
e6cc62c6 VS |
22649 | rm -f conftest.err conftest.$ac_ext |
22650 | fi # $ac_x_includes = no | |
10f2d63a | 22651 | |
e6cc62c6 | 22652 | if test "$ac_x_libraries" = no; then |
21d1c967 | 22653 | # Check for the libraries. |
21d1c967 GD |
22654 | # See if we find them without any special options. |
22655 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
22656 | ac_save_LIBS=$LIBS |
22657 | LIBS="-lXt $LIBS" | |
22658 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22659 | /* confdefs.h. */ |
22660 | _ACEOF | |
22661 | cat confdefs.h >>conftest.$ac_ext | |
22662 | cat >>conftest.$ac_ext <<_ACEOF | |
22663 | /* end confdefs.h. */ | |
22664 | #include <X11/Intrinsic.h> | |
22665 | int | |
22666 | main () | |
22667 | { | |
22668 | XtMalloc (0) | |
22669 | ; | |
22670 | return 0; | |
22671 | } | |
22672 | _ACEOF | |
22673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22675 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22676 | ac_status=$? |
f95e4495 VS |
22677 | grep -v '^ *+' conftest.er1 >conftest.err |
22678 | rm -f conftest.er1 | |
22679 | cat conftest.err >&5 | |
e6cc62c6 VS |
22680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22681 | (exit $ac_status); } && | |
f95e4495 VS |
22682 | { ac_try='test -z "$ac_c_werror_flag" |
22683 | || test ! -s conftest.err' | |
22684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22685 | (eval $ac_try) 2>&5 | |
22686 | ac_status=$? | |
22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22688 | (exit $ac_status); }; } && | |
22689 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22691 | (eval $ac_try) 2>&5 | |
22692 | ac_status=$? | |
22693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22694 | (exit $ac_status); }; }; then | |
22695 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
22696 | # We can link X programs with no special library path. |
22697 | ac_x_libraries= | |
3a922bb4 | 22698 | else |
e6cc62c6 VS |
22699 | echo "$as_me: failed program was:" >&5 |
22700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22701 | ||
22702 | LIBS=$ac_save_LIBS | |
22703 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 22704 | do |
e6cc62c6 | 22705 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 22706 | for ac_extension in a so sl; do |
e6cc62c6 | 22707 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
22708 | ac_x_libraries=$ac_dir |
22709 | break 2 | |
22710 | fi | |
22711 | done | |
22712 | done | |
3a922bb4 | 22713 | fi |
f95e4495 VS |
22714 | rm -f conftest.err conftest.$ac_objext \ |
22715 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 22716 | fi # $ac_x_libraries = no |
90dd450c | 22717 | |
e6cc62c6 | 22718 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
22719 | # Didn't find X anywhere. Cache the known absence of X. |
22720 | ac_cv_have_x="have_x=no" | |
22721 | else | |
22722 | # Record where we found X for the cache. | |
22723 | ac_cv_have_x="have_x=yes \ | |
f95e4495 | 22724 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 22725 | fi |
21d1c967 | 22726 | fi |
e6cc62c6 | 22727 | |
21d1c967 GD |
22728 | fi |
22729 | eval "$ac_cv_have_x" | |
22730 | fi # $with_x != no | |
90dd450c | 22731 | |
21d1c967 | 22732 | if test "$have_x" != yes; then |
e6cc62c6 VS |
22733 | echo "$as_me:$LINENO: result: $have_x" >&5 |
22734 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
22735 | no_x=yes |
22736 | else | |
22737 | # If each of the values was on the command line, it overrides each guess. | |
22738 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22739 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22740 | # Update the cache value to reflect the command line values. | |
22741 | ac_cv_have_x="have_x=yes \ | |
22742 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
22743 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22744 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 22745 | fi |
90dd450c | 22746 | |
21d1c967 | 22747 | if test "$no_x" = yes; then |
90dd450c | 22748 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
22749 | |
22750 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 22751 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22752 | _ACEOF |
90dd450c VZ |
22753 | |
22754 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22755 | else | |
22756 | if test -n "$x_includes"; then | |
22757 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 22758 | fi |
3a922bb4 | 22759 | |
90dd450c VZ |
22760 | # It would also be nice to do this for all -L options, not just this one. |
22761 | if test -n "$x_libraries"; then | |
22762 | X_LIBS="$X_LIBS -L$x_libraries" | |
22763 | # For Solaris; some versions of Sun CC require a space after -R and | |
22764 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22765 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 22766 | "SunOS 5"*) |
e6cc62c6 VS |
22767 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22768 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22769 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22770 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22771 | /* confdefs.h. */ |
22772 | _ACEOF | |
22773 | cat confdefs.h >>conftest.$ac_ext | |
22774 | cat >>conftest.$ac_ext <<_ACEOF | |
22775 | /* end confdefs.h. */ | |
22776 | ||
22777 | int | |
22778 | main () | |
22779 | { | |
90dd450c | 22780 | |
e6cc62c6 VS |
22781 | ; |
22782 | return 0; | |
22783 | } | |
22784 | _ACEOF | |
22785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22787 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22788 | ac_status=$? |
f95e4495 VS |
22789 | grep -v '^ *+' conftest.er1 >conftest.err |
22790 | rm -f conftest.er1 | |
22791 | cat conftest.err >&5 | |
e6cc62c6 VS |
22792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22793 | (exit $ac_status); } && | |
f95e4495 VS |
22794 | { ac_try='test -z "$ac_c_werror_flag" |
22795 | || test ! -s conftest.err' | |
22796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22797 | (eval $ac_try) 2>&5 | |
22798 | ac_status=$? | |
22799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22800 | (exit $ac_status); }; } && | |
22801 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22803 | (eval $ac_try) 2>&5 | |
22804 | ac_status=$? | |
22805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22806 | (exit $ac_status); }; }; then | |
90dd450c | 22807 | ac_R_nospace=yes |
3a922bb4 | 22808 | else |
e6cc62c6 VS |
22809 | echo "$as_me: failed program was:" >&5 |
22810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22811 | ||
22812 | ac_R_nospace=no | |
3a922bb4 | 22813 | fi |
f95e4495 VS |
22814 | rm -f conftest.err conftest.$ac_objext \ |
22815 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 22816 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22817 | echo "$as_me:$LINENO: result: no" >&5 |
22818 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
22819 | X_LIBS="$X_LIBS -R$x_libraries" |
22820 | else | |
22821 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 22822 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22823 | /* confdefs.h. */ |
22824 | _ACEOF | |
22825 | cat confdefs.h >>conftest.$ac_ext | |
22826 | cat >>conftest.$ac_ext <<_ACEOF | |
22827 | /* end confdefs.h. */ | |
22828 | ||
22829 | int | |
22830 | main () | |
22831 | { | |
6f754473 | 22832 | |
e6cc62c6 VS |
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 | |
f95e4495 | 22839 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22840 | ac_status=$? |
f95e4495 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); } && | |
f95e4495 VS |
22846 | { ac_try='test -z "$ac_c_werror_flag" |
22847 | || test ! -s conftest.err' | |
22848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22849 | (eval $ac_try) 2>&5 | |
22850 | ac_status=$? | |
22851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22852 | (exit $ac_status); }; } && | |
22853 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22855 | (eval $ac_try) 2>&5 | |
22856 | ac_status=$? | |
22857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22858 | (exit $ac_status); }; }; then | |
90dd450c VZ |
22859 | ac_R_space=yes |
22860 | else | |
e6cc62c6 VS |
22861 | echo "$as_me: failed program was:" >&5 |
22862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22863 | ||
22864 | ac_R_space=no | |
90dd450c | 22865 | fi |
f95e4495 VS |
22866 | rm -f conftest.err conftest.$ac_objext \ |
22867 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 22868 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22869 | echo "$as_me:$LINENO: result: yes" >&5 |
22870 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
22871 | X_LIBS="$X_LIBS -R $x_libraries" |
22872 | else | |
e6cc62c6 VS |
22873 | echo "$as_me:$LINENO: result: neither works" >&5 |
22874 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
22875 | fi |
22876 | fi | |
e6cc62c6 | 22877 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
22878 | esac |
22879 | fi | |
22880 | ||
22881 | # Check for system-dependent libraries X programs must link with. | |
22882 | # Do this before checking for the system-independent R6 libraries | |
22883 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 22884 | |
90dd450c VZ |
22885 | if test "$ISC" = yes; then |
22886 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22887 | else | |
e6cc62c6 VS |
22888 | # Martyn Johnson says this is needed for Ultrix, if the X |
22889 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 22890 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22891 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22892 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22893 | /* confdefs.h. */ |
22894 | _ACEOF | |
22895 | cat confdefs.h >>conftest.$ac_ext | |
22896 | cat >>conftest.$ac_ext <<_ACEOF | |
22897 | /* end confdefs.h. */ | |
22898 | ||
247f5006 | 22899 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22900 | #ifdef __cplusplus |
22901 | extern "C" | |
22902 | #endif | |
247f5006 | 22903 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22904 | builtin and then its argument prototype would still apply. */ |
22905 | char XOpenDisplay (); | |
22906 | int | |
22907 | main () | |
22908 | { | |
22909 | XOpenDisplay (); | |
22910 | ; | |
22911 | return 0; | |
22912 | } | |
22913 | _ACEOF | |
22914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22916 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22917 | ac_status=$? |
f95e4495 VS |
22918 | grep -v '^ *+' conftest.er1 >conftest.err |
22919 | rm -f conftest.er1 | |
22920 | cat conftest.err >&5 | |
e6cc62c6 VS |
22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22922 | (exit $ac_status); } && | |
f95e4495 VS |
22923 | { ac_try='test -z "$ac_c_werror_flag" |
22924 | || test ! -s conftest.err' | |
22925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22926 | (eval $ac_try) 2>&5 | |
22927 | ac_status=$? | |
22928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22929 | (exit $ac_status); }; } && | |
22930 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22932 | (eval $ac_try) 2>&5 | |
22933 | ac_status=$? | |
22934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22935 | (exit $ac_status); }; }; then | |
22936 | : | |
22937 | else | |
22938 | echo "$as_me: failed program was:" >&5 | |
22939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22940 | |
e6cc62c6 VS |
22941 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22942 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22943 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22945 | else |
e6cc62c6 VS |
22946 | ac_check_lib_save_LIBS=$LIBS |
22947 | LIBS="-ldnet $LIBS" | |
22948 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22949 | /* confdefs.h. */ |
22950 | _ACEOF | |
22951 | cat confdefs.h >>conftest.$ac_ext | |
22952 | cat >>conftest.$ac_ext <<_ACEOF | |
22953 | /* end confdefs.h. */ | |
a0b9e27f | 22954 | |
e6cc62c6 VS |
22955 | /* Override any gcc2 internal prototype to avoid an error. */ |
22956 | #ifdef __cplusplus | |
22957 | extern "C" | |
22958 | #endif | |
22959 | /* We use char because int might match the return type of a gcc2 | |
22960 | builtin and then its argument prototype would still apply. */ | |
22961 | char dnet_ntoa (); | |
22962 | int | |
22963 | main () | |
22964 | { | |
22965 | dnet_ntoa (); | |
22966 | ; | |
22967 | return 0; | |
22968 | } | |
22969 | _ACEOF | |
22970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 22972 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22973 | ac_status=$? |
f95e4495 VS |
22974 | grep -v '^ *+' conftest.er1 >conftest.err |
22975 | rm -f conftest.er1 | |
22976 | cat conftest.err >&5 | |
e6cc62c6 VS |
22977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22978 | (exit $ac_status); } && | |
f95e4495 VS |
22979 | { ac_try='test -z "$ac_c_werror_flag" |
22980 | || test ! -s conftest.err' | |
22981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22982 | (eval $ac_try) 2>&5 | |
22983 | ac_status=$? | |
22984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22985 | (exit $ac_status); }; } && | |
22986 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22988 | (eval $ac_try) 2>&5 | |
22989 | ac_status=$? | |
22990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22991 | (exit $ac_status); }; }; then | |
22992 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22993 | else | |
22994 | echo "$as_me: failed program was:" >&5 | |
22995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22996 | ||
22997 | ac_cv_lib_dnet_dnet_ntoa=no | |
22998 | fi | |
f95e4495 VS |
22999 | rm -f conftest.err conftest.$ac_objext \ |
23000 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23001 | LIBS=$ac_check_lib_save_LIBS |
23002 | fi | |
23003 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23004 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23005 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 23006 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
23007 | fi |
23008 | ||
90dd450c | 23009 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23010 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23011 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23012 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23014 | else |
e6cc62c6 | 23015 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23016 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23017 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23018 | /* confdefs.h. */ |
23019 | _ACEOF | |
23020 | cat confdefs.h >>conftest.$ac_ext | |
23021 | cat >>conftest.$ac_ext <<_ACEOF | |
23022 | /* end confdefs.h. */ | |
23023 | ||
90dd450c | 23024 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23025 | #ifdef __cplusplus |
23026 | extern "C" | |
23027 | #endif | |
90dd450c | 23028 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23029 | builtin and then its argument prototype would still apply. */ |
23030 | char dnet_ntoa (); | |
23031 | int | |
23032 | main () | |
23033 | { | |
23034 | dnet_ntoa (); | |
23035 | ; | |
23036 | return 0; | |
23037 | } | |
23038 | _ACEOF | |
23039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23041 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23042 | ac_status=$? |
f95e4495 VS |
23043 | grep -v '^ *+' conftest.er1 >conftest.err |
23044 | rm -f conftest.er1 | |
23045 | cat conftest.err >&5 | |
e6cc62c6 VS |
23046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23047 | (exit $ac_status); } && | |
f95e4495 VS |
23048 | { ac_try='test -z "$ac_c_werror_flag" |
23049 | || test ! -s conftest.err' | |
23050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23051 | (eval $ac_try) 2>&5 | |
23052 | ac_status=$? | |
23053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23054 | (exit $ac_status); }; } && | |
23055 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23057 | (eval $ac_try) 2>&5 | |
23058 | ac_status=$? | |
23059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23060 | (exit $ac_status); }; }; then | |
23061 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23062 | else | |
23063 | echo "$as_me: failed program was:" >&5 | |
23064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23065 | ||
23066 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23067 | fi | |
f95e4495 VS |
23068 | rm -f conftest.err conftest.$ac_objext \ |
23069 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23070 | LIBS=$ac_check_lib_save_LIBS |
23071 | fi | |
23072 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23073 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23074 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 23075 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
23076 | fi |
23077 | ||
90dd450c | 23078 | fi |
e6cc62c6 | 23079 | fi |
f95e4495 VS |
23080 | rm -f conftest.err conftest.$ac_objext \ |
23081 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23082 | LIBS="$ac_xsave_LIBS" |
978f1259 | 23083 | |
90dd450c VZ |
23084 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23085 | # to get the SysV transport functions. | |
e6cc62c6 | 23086 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
23087 | # needs -lnsl. |
23088 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23089 | # on Irix 5.2, according to T.E. Dickey. |
23090 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23091 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23092 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23093 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23094 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23096 | else | |
23097 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23098 | /* confdefs.h. */ |
23099 | _ACEOF | |
23100 | cat confdefs.h >>conftest.$ac_ext | |
23101 | cat >>conftest.$ac_ext <<_ACEOF | |
23102 | /* end confdefs.h. */ | |
f95e4495 VS |
23103 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
23104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23105 | #define gethostbyname innocuous_gethostbyname | |
23106 | ||
90dd450c | 23107 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23108 | which can conflict with char gethostbyname (); below. |
23109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23110 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 23111 | |
e6cc62c6 VS |
23112 | #ifdef __STDC__ |
23113 | # include <limits.h> | |
23114 | #else | |
23115 | # include <assert.h> | |
23116 | #endif | |
f95e4495 VS |
23117 | |
23118 | #undef gethostbyname | |
23119 | ||
90dd450c | 23120 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23121 | #ifdef __cplusplus |
23122 | extern "C" | |
23123 | { | |
23124 | #endif | |
90dd450c | 23125 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23126 | builtin and then its argument prototype would still apply. */ |
23127 | char gethostbyname (); | |
90dd450c VZ |
23128 | /* The GNU C library defines this for functions which it implements |
23129 | to always fail with ENOSYS. Some functions are actually named | |
23130 | something starting with __ and the normal name is an alias. */ | |
23131 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23132 | choke me | |
23133 | #else | |
e6cc62c6 VS |
23134 | char (*f) () = gethostbyname; |
23135 | #endif | |
23136 | #ifdef __cplusplus | |
23137 | } | |
90dd450c | 23138 | #endif |
978f1259 | 23139 | |
e6cc62c6 VS |
23140 | int |
23141 | main () | |
23142 | { | |
23143 | return f != gethostbyname; | |
23144 | ; | |
23145 | return 0; | |
23146 | } | |
23147 | _ACEOF | |
23148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23150 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23151 | ac_status=$? |
f95e4495 VS |
23152 | grep -v '^ *+' conftest.er1 >conftest.err |
23153 | rm -f conftest.er1 | |
23154 | cat conftest.err >&5 | |
e6cc62c6 VS |
23155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23156 | (exit $ac_status); } && | |
f95e4495 VS |
23157 | { ac_try='test -z "$ac_c_werror_flag" |
23158 | || test ! -s conftest.err' | |
23159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23160 | (eval $ac_try) 2>&5 | |
23161 | ac_status=$? | |
23162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23163 | (exit $ac_status); }; } && | |
23164 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23166 | (eval $ac_try) 2>&5 | |
23167 | ac_status=$? | |
23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23169 | (exit $ac_status); }; }; then | |
23170 | ac_cv_func_gethostbyname=yes | |
23171 | else | |
23172 | echo "$as_me: failed program was:" >&5 | |
23173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23174 | ||
23175 | ac_cv_func_gethostbyname=no | |
23176 | fi | |
f95e4495 VS |
23177 | rm -f conftest.err conftest.$ac_objext \ |
23178 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23179 | fi |
23180 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23181 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 23182 | |
90dd450c | 23183 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23184 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23185 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23186 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23188 | else |
e6cc62c6 | 23189 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23190 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23191 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23192 | /* confdefs.h. */ |
23193 | _ACEOF | |
23194 | cat confdefs.h >>conftest.$ac_ext | |
23195 | cat >>conftest.$ac_ext <<_ACEOF | |
23196 | /* end confdefs.h. */ | |
23197 | ||
90dd450c | 23198 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23199 | #ifdef __cplusplus |
23200 | extern "C" | |
23201 | #endif | |
90dd450c | 23202 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23203 | builtin and then its argument prototype would still apply. */ |
23204 | char gethostbyname (); | |
23205 | int | |
23206 | main () | |
23207 | { | |
23208 | gethostbyname (); | |
23209 | ; | |
23210 | return 0; | |
23211 | } | |
23212 | _ACEOF | |
23213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23215 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23216 | ac_status=$? |
f95e4495 VS |
23217 | grep -v '^ *+' conftest.er1 >conftest.err |
23218 | rm -f conftest.er1 | |
23219 | cat conftest.err >&5 | |
e6cc62c6 VS |
23220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23221 | (exit $ac_status); } && | |
f95e4495 VS |
23222 | { ac_try='test -z "$ac_c_werror_flag" |
23223 | || test ! -s conftest.err' | |
23224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23225 | (eval $ac_try) 2>&5 | |
23226 | ac_status=$? | |
23227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23228 | (exit $ac_status); }; } && | |
23229 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23231 | (eval $ac_try) 2>&5 | |
23232 | ac_status=$? | |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23234 | (exit $ac_status); }; }; then | |
23235 | ac_cv_lib_nsl_gethostbyname=yes | |
23236 | else | |
23237 | echo "$as_me: failed program was:" >&5 | |
23238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23239 | ||
23240 | ac_cv_lib_nsl_gethostbyname=no | |
23241 | fi | |
f95e4495 VS |
23242 | rm -f conftest.err conftest.$ac_objext \ |
23243 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23244 | LIBS=$ac_check_lib_save_LIBS |
23245 | fi | |
23246 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23247 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23248 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23249 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23250 | fi |
247f5006 | 23251 | |
e6cc62c6 | 23252 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
f95e4495 | 23253 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23254 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23255 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23257 | else |
e6cc62c6 VS |
23258 | ac_check_lib_save_LIBS=$LIBS |
23259 | LIBS="-lbsd $LIBS" | |
23260 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23261 | /* confdefs.h. */ |
23262 | _ACEOF | |
23263 | cat confdefs.h >>conftest.$ac_ext | |
23264 | cat >>conftest.$ac_ext <<_ACEOF | |
23265 | /* end confdefs.h. */ | |
23266 | ||
23267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23268 | #ifdef __cplusplus | |
23269 | extern "C" | |
23270 | #endif | |
23271 | /* We use char because int might match the return type of a gcc2 | |
23272 | builtin and then its argument prototype would still apply. */ | |
23273 | char gethostbyname (); | |
23274 | int | |
23275 | main () | |
23276 | { | |
23277 | gethostbyname (); | |
23278 | ; | |
23279 | return 0; | |
23280 | } | |
23281 | _ACEOF | |
23282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23284 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23285 | ac_status=$? |
f95e4495 VS |
23286 | grep -v '^ *+' conftest.er1 >conftest.err |
23287 | rm -f conftest.er1 | |
23288 | cat conftest.err >&5 | |
e6cc62c6 VS |
23289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23290 | (exit $ac_status); } && | |
f95e4495 VS |
23291 | { ac_try='test -z "$ac_c_werror_flag" |
23292 | || test ! -s conftest.err' | |
23293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23294 | (eval $ac_try) 2>&5 | |
23295 | ac_status=$? | |
23296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23297 | (exit $ac_status); }; } && | |
23298 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23300 | (eval $ac_try) 2>&5 | |
23301 | ac_status=$? | |
23302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23303 | (exit $ac_status); }; }; then | |
23304 | ac_cv_lib_bsd_gethostbyname=yes | |
23305 | else | |
23306 | echo "$as_me: failed program was:" >&5 | |
23307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23308 | ||
23309 | ac_cv_lib_bsd_gethostbyname=no | |
23310 | fi | |
f95e4495 VS |
23311 | rm -f conftest.err conftest.$ac_objext \ |
23312 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23313 | LIBS=$ac_check_lib_save_LIBS |
23314 | fi | |
23315 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23316 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23317 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23318 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 23319 | fi |
b12915c1 | 23320 | |
e6cc62c6 | 23321 | fi |
90dd450c VZ |
23322 | fi |
23323 | ||
23324 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
23325 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23326 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23327 | # on later versions), says Simon Leinen: it contains gethostby* |
23328 | # variants that don't use the name server (or something). -lsocket | |
23329 | # must be given before -lnsl if both are needed. We assume that | |
23330 | # if connect needs -lnsl, so does gethostbyname. | |
23331 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23332 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23333 | if test "${ac_cv_func_connect+set}" = set; then | |
23334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23335 | else | |
23336 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23337 | /* confdefs.h. */ |
23338 | _ACEOF | |
23339 | cat confdefs.h >>conftest.$ac_ext | |
23340 | cat >>conftest.$ac_ext <<_ACEOF | |
23341 | /* end confdefs.h. */ | |
f95e4495 VS |
23342 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
23343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23344 | #define connect innocuous_connect | |
23345 | ||
90dd450c | 23346 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23347 | which can conflict with char connect (); below. |
23348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23349 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 23350 | |
e6cc62c6 VS |
23351 | #ifdef __STDC__ |
23352 | # include <limits.h> | |
23353 | #else | |
23354 | # include <assert.h> | |
23355 | #endif | |
f95e4495 VS |
23356 | |
23357 | #undef connect | |
23358 | ||
90dd450c | 23359 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23360 | #ifdef __cplusplus |
23361 | extern "C" | |
23362 | { | |
23363 | #endif | |
90dd450c | 23364 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23365 | builtin and then its argument prototype would still apply. */ |
23366 | char connect (); | |
90dd450c VZ |
23367 | /* The GNU C library defines this for functions which it implements |
23368 | to always fail with ENOSYS. Some functions are actually named | |
23369 | something starting with __ and the normal name is an alias. */ | |
23370 | #if defined (__stub_connect) || defined (__stub___connect) | |
23371 | choke me | |
23372 | #else | |
e6cc62c6 VS |
23373 | char (*f) () = connect; |
23374 | #endif | |
23375 | #ifdef __cplusplus | |
23376 | } | |
90dd450c VZ |
23377 | #endif |
23378 | ||
e6cc62c6 VS |
23379 | int |
23380 | main () | |
23381 | { | |
23382 | return f != connect; | |
23383 | ; | |
23384 | return 0; | |
23385 | } | |
23386 | _ACEOF | |
23387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23389 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23390 | ac_status=$? |
f95e4495 VS |
23391 | grep -v '^ *+' conftest.er1 >conftest.err |
23392 | rm -f conftest.er1 | |
23393 | cat conftest.err >&5 | |
e6cc62c6 VS |
23394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23395 | (exit $ac_status); } && | |
f95e4495 VS |
23396 | { ac_try='test -z "$ac_c_werror_flag" |
23397 | || test ! -s conftest.err' | |
23398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23399 | (eval $ac_try) 2>&5 | |
23400 | ac_status=$? | |
23401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23402 | (exit $ac_status); }; } && | |
23403 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23405 | (eval $ac_try) 2>&5 | |
23406 | ac_status=$? | |
23407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23408 | (exit $ac_status); }; }; then | |
23409 | ac_cv_func_connect=yes | |
23410 | else | |
23411 | echo "$as_me: failed program was:" >&5 | |
23412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23413 | ||
23414 | ac_cv_func_connect=no | |
23415 | fi | |
f95e4495 VS |
23416 | rm -f conftest.err conftest.$ac_objext \ |
23417 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23418 | fi |
23419 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23420 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 23421 | |
90dd450c | 23422 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23423 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23424 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23425 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23427 | else |
e6cc62c6 | 23428 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23429 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23430 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23431 | /* confdefs.h. */ |
23432 | _ACEOF | |
23433 | cat confdefs.h >>conftest.$ac_ext | |
23434 | cat >>conftest.$ac_ext <<_ACEOF | |
23435 | /* end confdefs.h. */ | |
23436 | ||
90dd450c | 23437 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23438 | #ifdef __cplusplus |
23439 | extern "C" | |
23440 | #endif | |
90dd450c | 23441 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23442 | builtin and then its argument prototype would still apply. */ |
23443 | char connect (); | |
23444 | int | |
23445 | main () | |
23446 | { | |
23447 | connect (); | |
23448 | ; | |
23449 | return 0; | |
23450 | } | |
23451 | _ACEOF | |
23452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23454 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23455 | ac_status=$? |
f95e4495 VS |
23456 | grep -v '^ *+' conftest.er1 >conftest.err |
23457 | rm -f conftest.er1 | |
23458 | cat conftest.err >&5 | |
e6cc62c6 VS |
23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23460 | (exit $ac_status); } && | |
f95e4495 VS |
23461 | { ac_try='test -z "$ac_c_werror_flag" |
23462 | || test ! -s conftest.err' | |
23463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23464 | (eval $ac_try) 2>&5 | |
23465 | ac_status=$? | |
23466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23467 | (exit $ac_status); }; } && | |
23468 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23470 | (eval $ac_try) 2>&5 | |
23471 | ac_status=$? | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); }; }; then | |
23474 | ac_cv_lib_socket_connect=yes | |
23475 | else | |
23476 | echo "$as_me: failed program was:" >&5 | |
23477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23478 | ||
23479 | ac_cv_lib_socket_connect=no | |
23480 | fi | |
f95e4495 VS |
23481 | rm -f conftest.err conftest.$ac_objext \ |
23482 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23483 | LIBS=$ac_check_lib_save_LIBS |
23484 | fi | |
23485 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23486 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23487 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 23488 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 23489 | fi |
77e13408 | 23490 | |
90dd450c | 23491 | fi |
25d0687a | 23492 | |
e6cc62c6 VS |
23493 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23494 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23495 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23496 | if test "${ac_cv_func_remove+set}" = set; then | |
23497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23498 | else | |
23499 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23500 | /* confdefs.h. */ |
23501 | _ACEOF | |
23502 | cat confdefs.h >>conftest.$ac_ext | |
23503 | cat >>conftest.$ac_ext <<_ACEOF | |
23504 | /* end confdefs.h. */ | |
f95e4495 VS |
23505 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
23506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23507 | #define remove innocuous_remove | |
23508 | ||
90dd450c | 23509 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23510 | which can conflict with char remove (); below. |
23511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23512 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 23513 | |
e6cc62c6 VS |
23514 | #ifdef __STDC__ |
23515 | # include <limits.h> | |
23516 | #else | |
23517 | # include <assert.h> | |
23518 | #endif | |
f95e4495 VS |
23519 | |
23520 | #undef remove | |
23521 | ||
90dd450c | 23522 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23523 | #ifdef __cplusplus |
23524 | extern "C" | |
23525 | { | |
23526 | #endif | |
90dd450c | 23527 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23528 | builtin and then its argument prototype would still apply. */ |
23529 | char remove (); | |
90dd450c VZ |
23530 | /* The GNU C library defines this for functions which it implements |
23531 | to always fail with ENOSYS. Some functions are actually named | |
23532 | something starting with __ and the normal name is an alias. */ | |
23533 | #if defined (__stub_remove) || defined (__stub___remove) | |
23534 | choke me | |
23535 | #else | |
e6cc62c6 VS |
23536 | char (*f) () = remove; |
23537 | #endif | |
23538 | #ifdef __cplusplus | |
23539 | } | |
90dd450c | 23540 | #endif |
55e80573 | 23541 | |
e6cc62c6 VS |
23542 | int |
23543 | main () | |
23544 | { | |
23545 | return f != remove; | |
23546 | ; | |
23547 | return 0; | |
23548 | } | |
23549 | _ACEOF | |
23550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23552 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23553 | ac_status=$? |
f95e4495 VS |
23554 | grep -v '^ *+' conftest.er1 >conftest.err |
23555 | rm -f conftest.er1 | |
23556 | cat conftest.err >&5 | |
e6cc62c6 VS |
23557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23558 | (exit $ac_status); } && | |
f95e4495 VS |
23559 | { ac_try='test -z "$ac_c_werror_flag" |
23560 | || test ! -s conftest.err' | |
23561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23562 | (eval $ac_try) 2>&5 | |
23563 | ac_status=$? | |
23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23565 | (exit $ac_status); }; } && | |
23566 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23568 | (eval $ac_try) 2>&5 | |
23569 | ac_status=$? | |
23570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23571 | (exit $ac_status); }; }; then | |
23572 | ac_cv_func_remove=yes | |
23573 | else | |
23574 | echo "$as_me: failed program was:" >&5 | |
23575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23576 | ||
23577 | ac_cv_func_remove=no | |
23578 | fi | |
f95e4495 VS |
23579 | rm -f conftest.err conftest.$ac_objext \ |
23580 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23581 | fi |
23582 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23583 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 23584 | |
90dd450c | 23585 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23586 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23587 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23588 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23590 | else |
e6cc62c6 | 23591 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23592 | LIBS="-lposix $LIBS" |
e6cc62c6 | 23593 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23594 | /* confdefs.h. */ |
23595 | _ACEOF | |
23596 | cat confdefs.h >>conftest.$ac_ext | |
23597 | cat >>conftest.$ac_ext <<_ACEOF | |
23598 | /* end confdefs.h. */ | |
23599 | ||
90dd450c | 23600 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23601 | #ifdef __cplusplus |
23602 | extern "C" | |
23603 | #endif | |
90dd450c | 23604 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23605 | builtin and then its argument prototype would still apply. */ |
23606 | char remove (); | |
23607 | int | |
23608 | main () | |
23609 | { | |
23610 | remove (); | |
23611 | ; | |
23612 | return 0; | |
23613 | } | |
23614 | _ACEOF | |
23615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23617 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23618 | ac_status=$? |
f95e4495 VS |
23619 | grep -v '^ *+' conftest.er1 >conftest.err |
23620 | rm -f conftest.er1 | |
23621 | cat conftest.err >&5 | |
e6cc62c6 VS |
23622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23623 | (exit $ac_status); } && | |
f95e4495 VS |
23624 | { ac_try='test -z "$ac_c_werror_flag" |
23625 | || test ! -s conftest.err' | |
23626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23627 | (eval $ac_try) 2>&5 | |
23628 | ac_status=$? | |
23629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23630 | (exit $ac_status); }; } && | |
23631 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23633 | (eval $ac_try) 2>&5 | |
23634 | ac_status=$? | |
23635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23636 | (exit $ac_status); }; }; then | |
23637 | ac_cv_lib_posix_remove=yes | |
23638 | else | |
23639 | echo "$as_me: failed program was:" >&5 | |
23640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23641 | ||
23642 | ac_cv_lib_posix_remove=no | |
23643 | fi | |
f95e4495 VS |
23644 | rm -f conftest.err conftest.$ac_objext \ |
23645 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23646 | LIBS=$ac_check_lib_save_LIBS |
23647 | fi | |
23648 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23649 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23650 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 23651 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 23652 | fi |
f6bcfd97 | 23653 | |
6fa882bd RR |
23654 | fi |
23655 | ||
90dd450c | 23656 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23657 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23658 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23659 | if test "${ac_cv_func_shmat+set}" = set; then | |
23660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23661 | else | |
23662 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23663 | /* confdefs.h. */ |
23664 | _ACEOF | |
23665 | cat confdefs.h >>conftest.$ac_ext | |
23666 | cat >>conftest.$ac_ext <<_ACEOF | |
23667 | /* end confdefs.h. */ | |
f95e4495 VS |
23668 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
23669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23670 | #define shmat innocuous_shmat | |
23671 | ||
90dd450c | 23672 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23673 | which can conflict with char shmat (); below. |
23674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23675 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 23676 | |
e6cc62c6 VS |
23677 | #ifdef __STDC__ |
23678 | # include <limits.h> | |
23679 | #else | |
23680 | # include <assert.h> | |
23681 | #endif | |
f95e4495 VS |
23682 | |
23683 | #undef shmat | |
23684 | ||
90dd450c | 23685 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23686 | #ifdef __cplusplus |
23687 | extern "C" | |
23688 | { | |
23689 | #endif | |
90dd450c | 23690 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23691 | builtin and then its argument prototype would still apply. */ |
23692 | char shmat (); | |
90dd450c VZ |
23693 | /* The GNU C library defines this for functions which it implements |
23694 | to always fail with ENOSYS. Some functions are actually named | |
23695 | something starting with __ and the normal name is an alias. */ | |
23696 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23697 | choke me | |
23698 | #else | |
e6cc62c6 VS |
23699 | char (*f) () = shmat; |
23700 | #endif | |
23701 | #ifdef __cplusplus | |
23702 | } | |
90dd450c | 23703 | #endif |
10f2d63a | 23704 | |
e6cc62c6 VS |
23705 | int |
23706 | main () | |
23707 | { | |
23708 | return f != shmat; | |
23709 | ; | |
23710 | return 0; | |
23711 | } | |
23712 | _ACEOF | |
23713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23715 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23716 | ac_status=$? |
f95e4495 VS |
23717 | grep -v '^ *+' conftest.er1 >conftest.err |
23718 | rm -f conftest.er1 | |
23719 | cat conftest.err >&5 | |
e6cc62c6 VS |
23720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23721 | (exit $ac_status); } && | |
f95e4495 VS |
23722 | { ac_try='test -z "$ac_c_werror_flag" |
23723 | || test ! -s conftest.err' | |
23724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23725 | (eval $ac_try) 2>&5 | |
23726 | ac_status=$? | |
23727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23728 | (exit $ac_status); }; } && | |
23729 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23731 | (eval $ac_try) 2>&5 | |
23732 | ac_status=$? | |
23733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23734 | (exit $ac_status); }; }; then | |
23735 | ac_cv_func_shmat=yes | |
23736 | else | |
23737 | echo "$as_me: failed program was:" >&5 | |
23738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23739 | ||
23740 | ac_cv_func_shmat=no | |
23741 | fi | |
f95e4495 VS |
23742 | rm -f conftest.err conftest.$ac_objext \ |
23743 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23744 | fi |
23745 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23746 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 23747 | |
90dd450c | 23748 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23749 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23750 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23751 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 23753 | else |
e6cc62c6 | 23754 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23755 | LIBS="-lipc $LIBS" |
e6cc62c6 | 23756 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23757 | /* confdefs.h. */ |
23758 | _ACEOF | |
23759 | cat confdefs.h >>conftest.$ac_ext | |
23760 | cat >>conftest.$ac_ext <<_ACEOF | |
23761 | /* end confdefs.h. */ | |
23762 | ||
8284b0c5 | 23763 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23764 | #ifdef __cplusplus |
23765 | extern "C" | |
23766 | #endif | |
90dd450c | 23767 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23768 | builtin and then its argument prototype would still apply. */ |
23769 | char shmat (); | |
23770 | int | |
23771 | main () | |
23772 | { | |
23773 | shmat (); | |
23774 | ; | |
23775 | return 0; | |
23776 | } | |
23777 | _ACEOF | |
23778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23780 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23781 | ac_status=$? |
f95e4495 VS |
23782 | grep -v '^ *+' conftest.er1 >conftest.err |
23783 | rm -f conftest.er1 | |
23784 | cat conftest.err >&5 | |
e6cc62c6 VS |
23785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23786 | (exit $ac_status); } && | |
f95e4495 VS |
23787 | { ac_try='test -z "$ac_c_werror_flag" |
23788 | || test ! -s conftest.err' | |
23789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23790 | (eval $ac_try) 2>&5 | |
23791 | ac_status=$? | |
23792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23793 | (exit $ac_status); }; } && | |
23794 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23796 | (eval $ac_try) 2>&5 | |
23797 | ac_status=$? | |
23798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23799 | (exit $ac_status); }; }; then | |
23800 | ac_cv_lib_ipc_shmat=yes | |
23801 | else | |
23802 | echo "$as_me: failed program was:" >&5 | |
23803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23804 | ||
23805 | ac_cv_lib_ipc_shmat=no | |
23806 | fi | |
f95e4495 VS |
23807 | rm -f conftest.err conftest.$ac_objext \ |
23808 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23809 | LIBS=$ac_check_lib_save_LIBS |
23810 | fi | |
23811 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23812 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23813 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 23814 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
23815 | fi |
23816 | ||
d558c907 | 23817 | fi |
90dd450c | 23818 | fi |
3a922bb4 | 23819 | |
90dd450c | 23820 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23821 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
23822 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23823 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23824 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23825 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23826 | # These have to be linked with before -lX11, unlike the other | |
23827 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23828 | # John Interrante, Karl Berry |
23829 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23830 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23831 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23833 | else | |
23834 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23835 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23836 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23837 | /* confdefs.h. */ |
23838 | _ACEOF | |
23839 | cat confdefs.h >>conftest.$ac_ext | |
23840 | cat >>conftest.$ac_ext <<_ACEOF | |
23841 | /* end confdefs.h. */ | |
23842 | ||
90dd450c | 23843 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23844 | #ifdef __cplusplus |
23845 | extern "C" | |
23846 | #endif | |
90dd450c | 23847 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23848 | builtin and then its argument prototype would still apply. */ |
23849 | char IceConnectionNumber (); | |
23850 | int | |
23851 | main () | |
23852 | { | |
23853 | IceConnectionNumber (); | |
23854 | ; | |
23855 | return 0; | |
23856 | } | |
23857 | _ACEOF | |
23858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 23860 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23861 | ac_status=$? |
f95e4495 VS |
23862 | grep -v '^ *+' conftest.er1 >conftest.err |
23863 | rm -f conftest.er1 | |
23864 | cat conftest.err >&5 | |
e6cc62c6 VS |
23865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23866 | (exit $ac_status); } && | |
f95e4495 VS |
23867 | { ac_try='test -z "$ac_c_werror_flag" |
23868 | || test ! -s conftest.err' | |
23869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23870 | (eval $ac_try) 2>&5 | |
23871 | ac_status=$? | |
23872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23873 | (exit $ac_status); }; } && | |
23874 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23876 | (eval $ac_try) 2>&5 | |
23877 | ac_status=$? | |
23878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23879 | (exit $ac_status); }; }; then | |
23880 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23881 | else | |
23882 | echo "$as_me: failed program was:" >&5 | |
23883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23884 | ||
23885 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23886 | fi | |
f95e4495 VS |
23887 | rm -f conftest.err conftest.$ac_objext \ |
23888 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23889 | LIBS=$ac_check_lib_save_LIBS |
23890 | fi | |
23891 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23892 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23893 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 23894 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 23895 | fi |
10f2d63a | 23896 | |
e6cc62c6 | 23897 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
23898 | |
23899 | fi | |
23900 | ||
8284b0c5 | 23901 | |
90dd450c | 23902 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23903 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23904 | echo "$as_me: error: X11 not found" >&2;} | |
23905 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
23906 | fi |
23907 | ||
23908 | GUI_TK_LIBRARY="$X_LIBS" | |
23909 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
23910 | AFMINSTALL=afminstall | |
23911 | COMPILED_X_PROGRAM=0 | |
23912 | ||
21d1c967 | 23913 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
23914 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
23915 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 23916 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
23917 | echo "$as_me:$LINENO: result: not found" >&5 |
23918 | echo "${ECHO_T}not found" >&6 | |
23919 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
23920 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
23921 | { (exit 1); exit 1; }; } | |
90dd450c | 23922 | else |
e6cc62c6 VS |
23923 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
23924 | echo "${ECHO_T}$MICROWIN" >&6 | |
23925 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23926 | #define wxUSE_NANOX 1 |
e6cc62c6 | 23927 | _ACEOF |
21d1c967 | 23928 | |
90dd450c VZ |
23929 | fi |
23930 | fi | |
23931 | ||
2b5f62a0 | 23932 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 23933 | |
2b5f62a0 | 23934 | succeeded=no |
90dd450c | 23935 | |
2b5f62a0 VZ |
23936 | if test -z "$PKG_CONFIG"; then |
23937 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23938 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
23939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23941 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23943 | else |
e6cc62c6 VS |
23944 | case $PKG_CONFIG in |
23945 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
23946 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23947 | ;; | |
2b5f62a0 | 23948 | *) |
e6cc62c6 VS |
23949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23950 | for as_dir in $PATH | |
23951 | do | |
23952 | IFS=$as_save_IFS | |
23953 | test -z "$as_dir" && as_dir=. | |
23954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23956 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23958 | break 2 | |
23959 | fi | |
23960 | done | |
23961 | done | |
23962 | ||
2b5f62a0 VZ |
23963 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
23964 | ;; | |
23965 | esac | |
23966 | fi | |
e6cc62c6 VS |
23967 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23968 | ||
2b5f62a0 | 23969 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
23970 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23971 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 23972 | else |
e6cc62c6 VS |
23973 | echo "$as_me:$LINENO: result: no" >&5 |
23974 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
23975 | fi |
23976 | ||
23977 | fi | |
23978 | ||
23979 | if test "$PKG_CONFIG" = "no" ; then | |
23980 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23981 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23982 | echo "*** to the full path to pkg-config." | |
23983 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23984 | else | |
23985 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23986 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
23987 | echo "$as_me:$LINENO: checking for pangox" >&5 |
23988 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
23989 | |
23990 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
23991 | echo "$as_me:$LINENO: result: yes" >&5 |
23992 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
23993 | succeeded=yes |
23994 | ||
e6cc62c6 VS |
23995 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
23996 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 23997 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
23998 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
23999 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 24000 | |
e6cc62c6 VS |
24001 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
24002 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24003 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
24004 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
24005 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
24006 | else |
24007 | PANGOX_CFLAGS="" | |
24008 | PANGOX_LIBS="" | |
e6cc62c6 | 24009 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24010 | ## do set a variable so people can do so. |
24011 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 24012 | |
2b5f62a0 VZ |
24013 | fi |
24014 | ||
e6cc62c6 VS |
24015 | |
24016 | ||
2b5f62a0 VZ |
24017 | else |
24018 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24019 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24020 | fi | |
24021 | fi | |
24022 | ||
24023 | if test $succeeded = yes; then | |
e6cc62c6 | 24024 | |
2b5f62a0 | 24025 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 24026 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 24027 | |
2b5f62a0 | 24028 | else |
e6cc62c6 VS |
24029 | |
24030 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
24031 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
24032 | { (exit 1); exit 1; }; } | |
24033 | ||
24034 | ||
2b5f62a0 VZ |
24035 | fi |
24036 | ||
e6cc62c6 | 24037 | |
2b5f62a0 VZ |
24038 | succeeded=no |
24039 | ||
24040 | if test -z "$PKG_CONFIG"; then | |
24041 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24042 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24045 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24047 | else |
e6cc62c6 VS |
24048 | case $PKG_CONFIG in |
24049 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24050 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24051 | ;; | |
2b5f62a0 | 24052 | *) |
e6cc62c6 VS |
24053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24054 | for as_dir in $PATH | |
24055 | do | |
24056 | IFS=$as_save_IFS | |
24057 | test -z "$as_dir" && as_dir=. | |
24058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24060 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24062 | break 2 | |
24063 | fi | |
24064 | done | |
24065 | done | |
24066 | ||
2b5f62a0 VZ |
24067 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24068 | ;; | |
24069 | esac | |
24070 | fi | |
e6cc62c6 VS |
24071 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24072 | ||
2b5f62a0 | 24073 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24074 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24075 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24076 | else |
e6cc62c6 VS |
24077 | echo "$as_me:$LINENO: result: no" >&5 |
24078 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24079 | fi |
24080 | ||
24081 | fi | |
24082 | ||
24083 | if test "$PKG_CONFIG" = "no" ; then | |
24084 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24085 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24086 | echo "*** to the full path to pkg-config." | |
24087 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24088 | else | |
24089 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24090 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24091 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
24092 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24093 | |
24094 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
24095 | echo "$as_me:$LINENO: result: yes" >&5 |
24096 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24097 | succeeded=yes |
24098 | ||
e6cc62c6 VS |
24099 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
24100 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24101 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
24102 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
24103 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 24104 | |
e6cc62c6 VS |
24105 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
24106 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24107 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
24108 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
24109 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
24110 | else |
24111 | PANGOFT2_CFLAGS="" | |
24112 | PANGOFT2_LIBS="" | |
e6cc62c6 | 24113 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24114 | ## do set a variable so people can do so. |
24115 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 24116 | |
2b5f62a0 VZ |
24117 | fi |
24118 | ||
e6cc62c6 VS |
24119 | |
24120 | ||
2b5f62a0 VZ |
24121 | else |
24122 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24123 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24124 | fi | |
24125 | fi | |
24126 | ||
24127 | if test $succeeded = yes; then | |
e6cc62c6 | 24128 | |
2b5f62a0 | 24129 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 24130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 24131 | |
2b5f62a0 | 24132 | else |
e6cc62c6 VS |
24133 | |
24134 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
24135 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 24136 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
24137 | |
24138 | ||
2b5f62a0 VZ |
24139 | fi |
24140 | ||
e6cc62c6 | 24141 | |
2b5f62a0 VZ |
24142 | succeeded=no |
24143 | ||
24144 | if test -z "$PKG_CONFIG"; then | |
24145 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24146 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24149 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24151 | else |
e6cc62c6 VS |
24152 | case $PKG_CONFIG in |
24153 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24154 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24155 | ;; | |
2b5f62a0 | 24156 | *) |
e6cc62c6 VS |
24157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24158 | for as_dir in $PATH | |
24159 | do | |
24160 | IFS=$as_save_IFS | |
24161 | test -z "$as_dir" && as_dir=. | |
24162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24164 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24166 | break 2 | |
24167 | fi | |
24168 | done | |
24169 | done | |
24170 | ||
2b5f62a0 VZ |
24171 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24172 | ;; | |
24173 | esac | |
24174 | fi | |
e6cc62c6 VS |
24175 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24176 | ||
2b5f62a0 | 24177 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24178 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24179 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24180 | else |
e6cc62c6 VS |
24181 | echo "$as_me:$LINENO: result: no" >&5 |
24182 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24183 | fi |
24184 | ||
24185 | fi | |
24186 | ||
24187 | if test "$PKG_CONFIG" = "no" ; then | |
24188 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24189 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24190 | echo "*** to the full path to pkg-config." | |
24191 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24192 | else | |
24193 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24194 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24195 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
24196 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24197 | |
24198 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
24199 | echo "$as_me:$LINENO: result: yes" >&5 |
24200 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24201 | succeeded=yes |
24202 | ||
e6cc62c6 VS |
24203 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
24204 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24205 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
24206 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
24207 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 24208 | |
e6cc62c6 VS |
24209 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
24210 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24211 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
24212 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
24213 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
24214 | else |
24215 | PANGOXFT_CFLAGS="" | |
24216 | PANGOXFT_LIBS="" | |
e6cc62c6 | 24217 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24218 | ## do set a variable so people can do so. |
24219 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 24220 | |
2b5f62a0 VZ |
24221 | fi |
24222 | ||
e6cc62c6 VS |
24223 | |
24224 | ||
2b5f62a0 VZ |
24225 | else |
24226 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24227 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24228 | fi | |
24229 | fi | |
24230 | ||
24231 | if test $succeeded = yes; then | |
e6cc62c6 | 24232 | |
2b5f62a0 | 24233 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 24234 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 24235 | |
2b5f62a0 | 24236 | else |
e6cc62c6 VS |
24237 | |
24238 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
24239 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
24240 | ||
24241 | ||
2b5f62a0 VZ |
24242 | fi |
24243 | ||
24244 | fi | |
24245 | ||
24246 | wxUSE_UNIVERSAL="yes" | |
24247 | ||
24248 | if test "$wxUSE_NANOX" = "yes"; then | |
24249 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 24250 | 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 |
24251 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
24252 | else | |
93a543aa | 24253 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
24254 | fi |
24255 | ||
24256 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
24257 | TOOLKIT=X11 | |
24258 | GUIDIST=X11_DIST | |
24259 | fi | |
24260 | ||
21d1c967 GD |
24261 | if test "$wxUSE_MOTIF" = 1; then |
24262 | if test "$no_x" = yes; then | |
24263 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
24264 | |
24265 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24266 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 24267 | _ACEOF |
21d1c967 GD |
24268 | |
24269 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24270 | else | |
24271 | if test -n "$x_includes"; then | |
24272 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
24273 | fi |
24274 | ||
21d1c967 GD |
24275 | # It would also be nice to do this for all -L options, not just this one. |
24276 | if test -n "$x_libraries"; then | |
24277 | X_LIBS="$X_LIBS -L$x_libraries" | |
24278 | # For Solaris; some versions of Sun CC require a space after -R and | |
24279 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 24280 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 24281 | "SunOS 5"*) |
e6cc62c6 VS |
24282 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
24283 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24284 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24285 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24286 | /* confdefs.h. */ |
24287 | _ACEOF | |
24288 | cat confdefs.h >>conftest.$ac_ext | |
24289 | cat >>conftest.$ac_ext <<_ACEOF | |
24290 | /* end confdefs.h. */ | |
24291 | ||
24292 | int | |
24293 | main () | |
24294 | { | |
21d1c967 | 24295 | |
e6cc62c6 VS |
24296 | ; |
24297 | return 0; | |
24298 | } | |
24299 | _ACEOF | |
24300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24302 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24303 | ac_status=$? |
f95e4495 VS |
24304 | grep -v '^ *+' conftest.er1 >conftest.err |
24305 | rm -f conftest.er1 | |
24306 | cat conftest.err >&5 | |
e6cc62c6 VS |
24307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24308 | (exit $ac_status); } && | |
f95e4495 VS |
24309 | { ac_try='test -z "$ac_c_werror_flag" |
24310 | || test ! -s conftest.err' | |
24311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24312 | (eval $ac_try) 2>&5 | |
24313 | ac_status=$? | |
24314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24315 | (exit $ac_status); }; } && | |
24316 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24318 | (eval $ac_try) 2>&5 | |
24319 | ac_status=$? | |
24320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24321 | (exit $ac_status); }; }; then | |
21d1c967 | 24322 | ac_R_nospace=yes |
698dcdb6 | 24323 | else |
e6cc62c6 VS |
24324 | echo "$as_me: failed program was:" >&5 |
24325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24326 | ||
24327 | ac_R_nospace=no | |
10f2d63a | 24328 | fi |
f95e4495 VS |
24329 | rm -f conftest.err conftest.$ac_objext \ |
24330 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24331 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
24332 | echo "$as_me:$LINENO: result: no" >&5 |
24333 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24334 | X_LIBS="$X_LIBS -R$x_libraries" |
24335 | else | |
24336 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 24337 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24338 | /* confdefs.h. */ |
24339 | _ACEOF | |
24340 | cat confdefs.h >>conftest.$ac_ext | |
24341 | cat >>conftest.$ac_ext <<_ACEOF | |
24342 | /* end confdefs.h. */ | |
24343 | ||
24344 | int | |
24345 | main () | |
24346 | { | |
f0c87536 | 24347 | |
e6cc62c6 VS |
24348 | ; |
24349 | return 0; | |
24350 | } | |
24351 | _ACEOF | |
24352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24354 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24355 | ac_status=$? |
f95e4495 VS |
24356 | grep -v '^ *+' conftest.er1 >conftest.err |
24357 | rm -f conftest.er1 | |
24358 | cat conftest.err >&5 | |
e6cc62c6 VS |
24359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24360 | (exit $ac_status); } && | |
f95e4495 VS |
24361 | { ac_try='test -z "$ac_c_werror_flag" |
24362 | || test ! -s conftest.err' | |
24363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24364 | (eval $ac_try) 2>&5 | |
24365 | ac_status=$? | |
24366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24367 | (exit $ac_status); }; } && | |
24368 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24370 | (eval $ac_try) 2>&5 | |
24371 | ac_status=$? | |
24372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24373 | (exit $ac_status); }; }; then | |
21d1c967 GD |
24374 | ac_R_space=yes |
24375 | else | |
e6cc62c6 VS |
24376 | echo "$as_me: failed program was:" >&5 |
24377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24378 | ||
24379 | ac_R_space=no | |
21d1c967 | 24380 | fi |
f95e4495 VS |
24381 | rm -f conftest.err conftest.$ac_objext \ |
24382 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24383 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
24384 | echo "$as_me:$LINENO: result: yes" >&5 |
24385 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
24386 | X_LIBS="$X_LIBS -R $x_libraries" |
24387 | else | |
e6cc62c6 VS |
24388 | echo "$as_me:$LINENO: result: neither works" >&5 |
24389 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
24390 | fi |
24391 | fi | |
e6cc62c6 | 24392 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
24393 | esac |
24394 | fi | |
90dd450c | 24395 | |
21d1c967 GD |
24396 | # Check for system-dependent libraries X programs must link with. |
24397 | # Do this before checking for the system-independent R6 libraries | |
24398 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24399 | ||
24400 | if test "$ISC" = yes; then | |
24401 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24402 | else | |
e6cc62c6 VS |
24403 | # Martyn Johnson says this is needed for Ultrix, if the X |
24404 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 24405 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
24406 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
24407 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24408 | /* confdefs.h. */ |
24409 | _ACEOF | |
24410 | cat confdefs.h >>conftest.$ac_ext | |
24411 | cat >>conftest.$ac_ext <<_ACEOF | |
24412 | /* end confdefs.h. */ | |
24413 | ||
247f5006 | 24414 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24415 | #ifdef __cplusplus |
24416 | extern "C" | |
24417 | #endif | |
247f5006 | 24418 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24419 | builtin and then its argument prototype would still apply. */ |
24420 | char XOpenDisplay (); | |
24421 | int | |
24422 | main () | |
24423 | { | |
24424 | XOpenDisplay (); | |
24425 | ; | |
24426 | return 0; | |
24427 | } | |
24428 | _ACEOF | |
24429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24431 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24432 | ac_status=$? |
f95e4495 VS |
24433 | grep -v '^ *+' conftest.er1 >conftest.err |
24434 | rm -f conftest.er1 | |
24435 | cat conftest.err >&5 | |
e6cc62c6 VS |
24436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24437 | (exit $ac_status); } && | |
f95e4495 VS |
24438 | { ac_try='test -z "$ac_c_werror_flag" |
24439 | || test ! -s conftest.err' | |
24440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24441 | (eval $ac_try) 2>&5 | |
24442 | ac_status=$? | |
24443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24444 | (exit $ac_status); }; } && | |
24445 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24447 | (eval $ac_try) 2>&5 | |
24448 | ac_status=$? | |
24449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24450 | (exit $ac_status); }; }; then | |
24451 | : | |
24452 | else | |
24453 | echo "$as_me: failed program was:" >&5 | |
24454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 24455 | |
e6cc62c6 VS |
24456 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
24457 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24458 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24460 | else |
e6cc62c6 VS |
24461 | ac_check_lib_save_LIBS=$LIBS |
24462 | LIBS="-ldnet $LIBS" | |
24463 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24464 | /* confdefs.h. */ |
24465 | _ACEOF | |
24466 | cat confdefs.h >>conftest.$ac_ext | |
24467 | cat >>conftest.$ac_ext <<_ACEOF | |
24468 | /* end confdefs.h. */ | |
a0b9e27f | 24469 | |
e6cc62c6 VS |
24470 | /* Override any gcc2 internal prototype to avoid an error. */ |
24471 | #ifdef __cplusplus | |
24472 | extern "C" | |
24473 | #endif | |
24474 | /* We use char because int might match the return type of a gcc2 | |
24475 | builtin and then its argument prototype would still apply. */ | |
24476 | char dnet_ntoa (); | |
24477 | int | |
24478 | main () | |
24479 | { | |
24480 | dnet_ntoa (); | |
24481 | ; | |
24482 | return 0; | |
24483 | } | |
24484 | _ACEOF | |
24485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24487 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24488 | ac_status=$? |
f95e4495 VS |
24489 | grep -v '^ *+' conftest.er1 >conftest.err |
24490 | rm -f conftest.er1 | |
24491 | cat conftest.err >&5 | |
e6cc62c6 VS |
24492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24493 | (exit $ac_status); } && | |
f95e4495 VS |
24494 | { ac_try='test -z "$ac_c_werror_flag" |
24495 | || test ! -s conftest.err' | |
24496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24497 | (eval $ac_try) 2>&5 | |
24498 | ac_status=$? | |
24499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24500 | (exit $ac_status); }; } && | |
24501 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24503 | (eval $ac_try) 2>&5 | |
24504 | ac_status=$? | |
24505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24506 | (exit $ac_status); }; }; then | |
24507 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24508 | else | |
24509 | echo "$as_me: failed program was:" >&5 | |
24510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24511 | ||
24512 | ac_cv_lib_dnet_dnet_ntoa=no | |
24513 | fi | |
f95e4495 VS |
24514 | rm -f conftest.err conftest.$ac_objext \ |
24515 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24516 | LIBS=$ac_check_lib_save_LIBS |
24517 | fi | |
24518 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24519 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24520 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 24521 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 24522 | fi |
0fb0dd83 | 24523 | |
21d1c967 | 24524 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
24525 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
24526 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24527 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 24529 | else |
e6cc62c6 | 24530 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24531 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 24532 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24533 | /* confdefs.h. */ |
24534 | _ACEOF | |
24535 | cat confdefs.h >>conftest.$ac_ext | |
24536 | cat >>conftest.$ac_ext <<_ACEOF | |
24537 | /* end confdefs.h. */ | |
24538 | ||
21d1c967 | 24539 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24540 | #ifdef __cplusplus |
24541 | extern "C" | |
24542 | #endif | |
21d1c967 | 24543 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24544 | builtin and then its argument prototype would still apply. */ |
24545 | char dnet_ntoa (); | |
24546 | int | |
24547 | main () | |
24548 | { | |
24549 | dnet_ntoa (); | |
24550 | ; | |
24551 | return 0; | |
24552 | } | |
24553 | _ACEOF | |
24554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24556 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24557 | ac_status=$? |
f95e4495 VS |
24558 | grep -v '^ *+' conftest.er1 >conftest.err |
24559 | rm -f conftest.er1 | |
24560 | cat conftest.err >&5 | |
e6cc62c6 VS |
24561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24562 | (exit $ac_status); } && | |
f95e4495 VS |
24563 | { ac_try='test -z "$ac_c_werror_flag" |
24564 | || test ! -s conftest.err' | |
24565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24566 | (eval $ac_try) 2>&5 | |
24567 | ac_status=$? | |
24568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24569 | (exit $ac_status); }; } && | |
24570 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24572 | (eval $ac_try) 2>&5 | |
24573 | ac_status=$? | |
24574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24575 | (exit $ac_status); }; }; then | |
24576 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24577 | else | |
24578 | echo "$as_me: failed program was:" >&5 | |
24579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24580 | ||
24581 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24582 | fi | |
f95e4495 VS |
24583 | rm -f conftest.err conftest.$ac_objext \ |
24584 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24585 | LIBS=$ac_check_lib_save_LIBS |
24586 | fi | |
24587 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24588 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24589 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 24590 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
24591 | fi |
24592 | ||
21d1c967 | 24593 | fi |
e6cc62c6 | 24594 | fi |
f95e4495 VS |
24595 | rm -f conftest.err conftest.$ac_objext \ |
24596 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 24597 | LIBS="$ac_xsave_LIBS" |
90dd450c | 24598 | |
21d1c967 GD |
24599 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
24600 | # to get the SysV transport functions. | |
e6cc62c6 | 24601 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
24602 | # needs -lnsl. |
24603 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
24604 | # on Irix 5.2, according to T.E. Dickey. |
24605 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24606 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24607 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24608 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24609 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24611 | else | |
24612 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24613 | /* confdefs.h. */ |
24614 | _ACEOF | |
24615 | cat confdefs.h >>conftest.$ac_ext | |
24616 | cat >>conftest.$ac_ext <<_ACEOF | |
24617 | /* end confdefs.h. */ | |
f95e4495 VS |
24618 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24619 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24620 | #define gethostbyname innocuous_gethostbyname | |
24621 | ||
21d1c967 | 24622 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24623 | which can conflict with char gethostbyname (); below. |
24624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24625 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 24626 | |
e6cc62c6 VS |
24627 | #ifdef __STDC__ |
24628 | # include <limits.h> | |
24629 | #else | |
24630 | # include <assert.h> | |
24631 | #endif | |
f95e4495 VS |
24632 | |
24633 | #undef gethostbyname | |
24634 | ||
21d1c967 | 24635 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24636 | #ifdef __cplusplus |
24637 | extern "C" | |
24638 | { | |
24639 | #endif | |
21d1c967 | 24640 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24641 | builtin and then its argument prototype would still apply. */ |
24642 | char gethostbyname (); | |
21d1c967 GD |
24643 | /* The GNU C library defines this for functions which it implements |
24644 | to always fail with ENOSYS. Some functions are actually named | |
24645 | something starting with __ and the normal name is an alias. */ | |
24646 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24647 | choke me | |
24648 | #else | |
e6cc62c6 VS |
24649 | char (*f) () = gethostbyname; |
24650 | #endif | |
24651 | #ifdef __cplusplus | |
24652 | } | |
21d1c967 | 24653 | #endif |
90dd450c | 24654 | |
e6cc62c6 VS |
24655 | int |
24656 | main () | |
24657 | { | |
24658 | return f != gethostbyname; | |
24659 | ; | |
24660 | return 0; | |
24661 | } | |
24662 | _ACEOF | |
24663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24665 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24666 | ac_status=$? |
f95e4495 VS |
24667 | grep -v '^ *+' conftest.er1 >conftest.err |
24668 | rm -f conftest.er1 | |
24669 | cat conftest.err >&5 | |
e6cc62c6 VS |
24670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24671 | (exit $ac_status); } && | |
f95e4495 VS |
24672 | { ac_try='test -z "$ac_c_werror_flag" |
24673 | || test ! -s conftest.err' | |
24674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24675 | (eval $ac_try) 2>&5 | |
24676 | ac_status=$? | |
24677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24678 | (exit $ac_status); }; } && | |
24679 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24681 | (eval $ac_try) 2>&5 | |
24682 | ac_status=$? | |
24683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24684 | (exit $ac_status); }; }; then | |
24685 | ac_cv_func_gethostbyname=yes | |
24686 | else | |
24687 | echo "$as_me: failed program was:" >&5 | |
24688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24689 | ||
24690 | ac_cv_func_gethostbyname=no | |
24691 | fi | |
f95e4495 VS |
24692 | rm -f conftest.err conftest.$ac_objext \ |
24693 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24694 | fi |
24695 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24696 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 24697 | |
21d1c967 | 24698 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
24699 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
24700 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24701 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 24703 | else |
e6cc62c6 | 24704 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24705 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 24706 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24707 | /* confdefs.h. */ |
24708 | _ACEOF | |
24709 | cat confdefs.h >>conftest.$ac_ext | |
24710 | cat >>conftest.$ac_ext <<_ACEOF | |
24711 | /* end confdefs.h. */ | |
24712 | ||
21d1c967 | 24713 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24714 | #ifdef __cplusplus |
24715 | extern "C" | |
24716 | #endif | |
21d1c967 | 24717 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24718 | builtin and then its argument prototype would still apply. */ |
24719 | char gethostbyname (); | |
24720 | int | |
24721 | main () | |
24722 | { | |
24723 | gethostbyname (); | |
24724 | ; | |
24725 | return 0; | |
24726 | } | |
24727 | _ACEOF | |
24728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24730 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24731 | ac_status=$? |
f95e4495 VS |
24732 | grep -v '^ *+' conftest.er1 >conftest.err |
24733 | rm -f conftest.er1 | |
24734 | cat conftest.err >&5 | |
e6cc62c6 VS |
24735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24736 | (exit $ac_status); } && | |
f95e4495 VS |
24737 | { ac_try='test -z "$ac_c_werror_flag" |
24738 | || test ! -s conftest.err' | |
24739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24740 | (eval $ac_try) 2>&5 | |
24741 | ac_status=$? | |
24742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24743 | (exit $ac_status); }; } && | |
24744 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24746 | (eval $ac_try) 2>&5 | |
24747 | ac_status=$? | |
24748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24749 | (exit $ac_status); }; }; then | |
24750 | ac_cv_lib_nsl_gethostbyname=yes | |
24751 | else | |
24752 | echo "$as_me: failed program was:" >&5 | |
24753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24754 | ||
24755 | ac_cv_lib_nsl_gethostbyname=no | |
24756 | fi | |
f95e4495 VS |
24757 | rm -f conftest.err conftest.$ac_objext \ |
24758 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24759 | LIBS=$ac_check_lib_save_LIBS |
24760 | fi | |
24761 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24762 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24763 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24764 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 24765 | fi |
247f5006 | 24766 | |
e6cc62c6 | 24767 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
f95e4495 | 24768 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
24769 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
24770 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24772 | else |
e6cc62c6 VS |
24773 | ac_check_lib_save_LIBS=$LIBS |
24774 | LIBS="-lbsd $LIBS" | |
24775 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24776 | /* confdefs.h. */ |
24777 | _ACEOF | |
24778 | cat confdefs.h >>conftest.$ac_ext | |
24779 | cat >>conftest.$ac_ext <<_ACEOF | |
24780 | /* end confdefs.h. */ | |
24781 | ||
24782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24783 | #ifdef __cplusplus | |
24784 | extern "C" | |
24785 | #endif | |
24786 | /* We use char because int might match the return type of a gcc2 | |
24787 | builtin and then its argument prototype would still apply. */ | |
24788 | char gethostbyname (); | |
24789 | int | |
24790 | main () | |
24791 | { | |
24792 | gethostbyname (); | |
24793 | ; | |
24794 | return 0; | |
24795 | } | |
24796 | _ACEOF | |
24797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24799 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24800 | ac_status=$? |
f95e4495 VS |
24801 | grep -v '^ *+' conftest.er1 >conftest.err |
24802 | rm -f conftest.er1 | |
24803 | cat conftest.err >&5 | |
e6cc62c6 VS |
24804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24805 | (exit $ac_status); } && | |
f95e4495 VS |
24806 | { ac_try='test -z "$ac_c_werror_flag" |
24807 | || test ! -s conftest.err' | |
24808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24809 | (eval $ac_try) 2>&5 | |
24810 | ac_status=$? | |
24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24812 | (exit $ac_status); }; } && | |
24813 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24815 | (eval $ac_try) 2>&5 | |
24816 | ac_status=$? | |
24817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24818 | (exit $ac_status); }; }; then | |
24819 | ac_cv_lib_bsd_gethostbyname=yes | |
24820 | else | |
24821 | echo "$as_me: failed program was:" >&5 | |
24822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24823 | ||
24824 | ac_cv_lib_bsd_gethostbyname=no | |
24825 | fi | |
f95e4495 VS |
24826 | rm -f conftest.err conftest.$ac_objext \ |
24827 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24828 | LIBS=$ac_check_lib_save_LIBS |
24829 | fi | |
24830 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24831 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24832 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24833 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 24834 | fi |
90dd450c | 24835 | |
e6cc62c6 | 24836 | fi |
90dd450c VZ |
24837 | fi |
24838 | ||
21d1c967 GD |
24839 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
24840 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24841 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
24842 | # on later versions), says Simon Leinen: it contains gethostby* |
24843 | # variants that don't use the name server (or something). -lsocket | |
24844 | # must be given before -lnsl if both are needed. We assume that | |
24845 | # if connect needs -lnsl, so does gethostbyname. | |
24846 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24847 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24848 | if test "${ac_cv_func_connect+set}" = set; then | |
24849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24850 | else | |
24851 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24852 | /* confdefs.h. */ |
24853 | _ACEOF | |
24854 | cat confdefs.h >>conftest.$ac_ext | |
24855 | cat >>conftest.$ac_ext <<_ACEOF | |
24856 | /* end confdefs.h. */ | |
f95e4495 VS |
24857 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24858 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24859 | #define connect innocuous_connect | |
24860 | ||
21d1c967 | 24861 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24862 | which can conflict with char connect (); below. |
24863 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24864 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 24865 | |
e6cc62c6 VS |
24866 | #ifdef __STDC__ |
24867 | # include <limits.h> | |
24868 | #else | |
24869 | # include <assert.h> | |
24870 | #endif | |
f95e4495 VS |
24871 | |
24872 | #undef connect | |
24873 | ||
21d1c967 | 24874 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24875 | #ifdef __cplusplus |
24876 | extern "C" | |
24877 | { | |
24878 | #endif | |
21d1c967 | 24879 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24880 | builtin and then its argument prototype would still apply. */ |
24881 | char connect (); | |
21d1c967 GD |
24882 | /* The GNU C library defines this for functions which it implements |
24883 | to always fail with ENOSYS. Some functions are actually named | |
24884 | something starting with __ and the normal name is an alias. */ | |
24885 | #if defined (__stub_connect) || defined (__stub___connect) | |
24886 | choke me | |
24887 | #else | |
e6cc62c6 VS |
24888 | char (*f) () = connect; |
24889 | #endif | |
24890 | #ifdef __cplusplus | |
24891 | } | |
21d1c967 | 24892 | #endif |
90dd450c | 24893 | |
e6cc62c6 VS |
24894 | int |
24895 | main () | |
24896 | { | |
24897 | return f != connect; | |
24898 | ; | |
24899 | return 0; | |
24900 | } | |
24901 | _ACEOF | |
24902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24904 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24905 | ac_status=$? |
f95e4495 VS |
24906 | grep -v '^ *+' conftest.er1 >conftest.err |
24907 | rm -f conftest.er1 | |
24908 | cat conftest.err >&5 | |
e6cc62c6 VS |
24909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24910 | (exit $ac_status); } && | |
f95e4495 VS |
24911 | { ac_try='test -z "$ac_c_werror_flag" |
24912 | || test ! -s conftest.err' | |
24913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24914 | (eval $ac_try) 2>&5 | |
24915 | ac_status=$? | |
24916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24917 | (exit $ac_status); }; } && | |
24918 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24920 | (eval $ac_try) 2>&5 | |
24921 | ac_status=$? | |
24922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24923 | (exit $ac_status); }; }; then | |
24924 | ac_cv_func_connect=yes | |
24925 | else | |
24926 | echo "$as_me: failed program was:" >&5 | |
24927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24928 | ||
24929 | ac_cv_func_connect=no | |
24930 | fi | |
f95e4495 VS |
24931 | rm -f conftest.err conftest.$ac_objext \ |
24932 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24933 | fi |
24934 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24935 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 24936 | |
21d1c967 | 24937 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24938 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24939 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24940 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 24942 | else |
e6cc62c6 | 24943 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24944 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24945 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24946 | /* confdefs.h. */ |
24947 | _ACEOF | |
24948 | cat confdefs.h >>conftest.$ac_ext | |
24949 | cat >>conftest.$ac_ext <<_ACEOF | |
24950 | /* end confdefs.h. */ | |
24951 | ||
21d1c967 | 24952 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24953 | #ifdef __cplusplus |
24954 | extern "C" | |
24955 | #endif | |
21d1c967 | 24956 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24957 | builtin and then its argument prototype would still apply. */ |
24958 | char connect (); | |
24959 | int | |
24960 | main () | |
24961 | { | |
24962 | connect (); | |
24963 | ; | |
24964 | return 0; | |
24965 | } | |
24966 | _ACEOF | |
24967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 24969 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24970 | ac_status=$? |
f95e4495 VS |
24971 | grep -v '^ *+' conftest.er1 >conftest.err |
24972 | rm -f conftest.er1 | |
24973 | cat conftest.err >&5 | |
e6cc62c6 VS |
24974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24975 | (exit $ac_status); } && | |
f95e4495 VS |
24976 | { ac_try='test -z "$ac_c_werror_flag" |
24977 | || test ! -s conftest.err' | |
24978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24979 | (eval $ac_try) 2>&5 | |
24980 | ac_status=$? | |
24981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24982 | (exit $ac_status); }; } && | |
24983 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24985 | (eval $ac_try) 2>&5 | |
24986 | ac_status=$? | |
24987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24988 | (exit $ac_status); }; }; then | |
24989 | ac_cv_lib_socket_connect=yes | |
24990 | else | |
24991 | echo "$as_me: failed program was:" >&5 | |
24992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24993 | ||
24994 | ac_cv_lib_socket_connect=no | |
24995 | fi | |
f95e4495 VS |
24996 | rm -f conftest.err conftest.$ac_objext \ |
24997 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24998 | LIBS=$ac_check_lib_save_LIBS |
24999 | fi | |
25000 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25001 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25002 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 25003 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 25004 | fi |
90dd450c | 25005 | |
21d1c967 | 25006 | fi |
90dd450c | 25007 | |
e6cc62c6 VS |
25008 | # Guillermo Gomez says -lposix is necessary on A/UX. |
25009 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25010 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25011 | if test "${ac_cv_func_remove+set}" = set; then | |
25012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25013 | else | |
25014 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25015 | /* confdefs.h. */ |
25016 | _ACEOF | |
25017 | cat confdefs.h >>conftest.$ac_ext | |
25018 | cat >>conftest.$ac_ext <<_ACEOF | |
25019 | /* end confdefs.h. */ | |
f95e4495 VS |
25020 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25022 | #define remove innocuous_remove | |
25023 | ||
21d1c967 | 25024 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25025 | which can conflict with char remove (); below. |
25026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25027 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 25028 | |
e6cc62c6 VS |
25029 | #ifdef __STDC__ |
25030 | # include <limits.h> | |
25031 | #else | |
25032 | # include <assert.h> | |
25033 | #endif | |
f95e4495 VS |
25034 | |
25035 | #undef remove | |
25036 | ||
21d1c967 | 25037 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25038 | #ifdef __cplusplus |
25039 | extern "C" | |
25040 | { | |
25041 | #endif | |
21d1c967 | 25042 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25043 | builtin and then its argument prototype would still apply. */ |
25044 | char remove (); | |
21d1c967 GD |
25045 | /* The GNU C library defines this for functions which it implements |
25046 | to always fail with ENOSYS. Some functions are actually named | |
25047 | something starting with __ and the normal name is an alias. */ | |
25048 | #if defined (__stub_remove) || defined (__stub___remove) | |
25049 | choke me | |
25050 | #else | |
e6cc62c6 VS |
25051 | char (*f) () = remove; |
25052 | #endif | |
25053 | #ifdef __cplusplus | |
25054 | } | |
21d1c967 | 25055 | #endif |
90dd450c | 25056 | |
e6cc62c6 VS |
25057 | int |
25058 | main () | |
25059 | { | |
25060 | return f != remove; | |
25061 | ; | |
25062 | return 0; | |
25063 | } | |
25064 | _ACEOF | |
25065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25067 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25068 | ac_status=$? |
f95e4495 VS |
25069 | grep -v '^ *+' conftest.er1 >conftest.err |
25070 | rm -f conftest.er1 | |
25071 | cat conftest.err >&5 | |
e6cc62c6 VS |
25072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25073 | (exit $ac_status); } && | |
f95e4495 VS |
25074 | { ac_try='test -z "$ac_c_werror_flag" |
25075 | || test ! -s conftest.err' | |
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); }; } && | |
25081 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25083 | (eval $ac_try) 2>&5 | |
25084 | ac_status=$? | |
25085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25086 | (exit $ac_status); }; }; then | |
25087 | ac_cv_func_remove=yes | |
25088 | else | |
25089 | echo "$as_me: failed program was:" >&5 | |
25090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25091 | ||
25092 | ac_cv_func_remove=no | |
25093 | fi | |
f95e4495 VS |
25094 | rm -f conftest.err conftest.$ac_objext \ |
25095 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25096 | fi |
25097 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25098 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 25099 | |
21d1c967 | 25100 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
25101 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
25102 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25103 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25105 | else |
e6cc62c6 | 25106 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25107 | LIBS="-lposix $LIBS" |
e6cc62c6 | 25108 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25109 | /* confdefs.h. */ |
25110 | _ACEOF | |
25111 | cat confdefs.h >>conftest.$ac_ext | |
25112 | cat >>conftest.$ac_ext <<_ACEOF | |
25113 | /* end confdefs.h. */ | |
25114 | ||
21d1c967 | 25115 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25116 | #ifdef __cplusplus |
25117 | extern "C" | |
25118 | #endif | |
21d1c967 | 25119 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25120 | builtin and then its argument prototype would still apply. */ |
25121 | char remove (); | |
25122 | int | |
25123 | main () | |
25124 | { | |
25125 | remove (); | |
25126 | ; | |
25127 | return 0; | |
25128 | } | |
25129 | _ACEOF | |
25130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25132 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25133 | ac_status=$? |
f95e4495 VS |
25134 | grep -v '^ *+' conftest.er1 >conftest.err |
25135 | rm -f conftest.er1 | |
25136 | cat conftest.err >&5 | |
e6cc62c6 VS |
25137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25138 | (exit $ac_status); } && | |
f95e4495 VS |
25139 | { ac_try='test -z "$ac_c_werror_flag" |
25140 | || test ! -s conftest.err' | |
25141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25142 | (eval $ac_try) 2>&5 | |
25143 | ac_status=$? | |
25144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25145 | (exit $ac_status); }; } && | |
25146 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25148 | (eval $ac_try) 2>&5 | |
25149 | ac_status=$? | |
25150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25151 | (exit $ac_status); }; }; then | |
25152 | ac_cv_lib_posix_remove=yes | |
25153 | else | |
25154 | echo "$as_me: failed program was:" >&5 | |
25155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25156 | ||
25157 | ac_cv_lib_posix_remove=no | |
25158 | fi | |
f95e4495 VS |
25159 | rm -f conftest.err conftest.$ac_objext \ |
25160 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25161 | LIBS=$ac_check_lib_save_LIBS |
25162 | fi | |
25163 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25164 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25165 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 25166 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 25167 | fi |
19bc6aad | 25168 | |
90dd450c | 25169 | fi |
19bc6aad | 25170 | |
21d1c967 | 25171 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
25172 | echo "$as_me:$LINENO: checking for shmat" >&5 |
25173 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25174 | if test "${ac_cv_func_shmat+set}" = set; then | |
25175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25176 | else | |
25177 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25178 | /* confdefs.h. */ |
25179 | _ACEOF | |
25180 | cat confdefs.h >>conftest.$ac_ext | |
25181 | cat >>conftest.$ac_ext <<_ACEOF | |
25182 | /* end confdefs.h. */ | |
f95e4495 VS |
25183 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25185 | #define shmat innocuous_shmat | |
25186 | ||
21d1c967 | 25187 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25188 | which can conflict with char shmat (); below. |
25189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25190 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 25191 | |
e6cc62c6 VS |
25192 | #ifdef __STDC__ |
25193 | # include <limits.h> | |
25194 | #else | |
25195 | # include <assert.h> | |
25196 | #endif | |
f95e4495 VS |
25197 | |
25198 | #undef shmat | |
25199 | ||
21d1c967 | 25200 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25201 | #ifdef __cplusplus |
25202 | extern "C" | |
25203 | { | |
25204 | #endif | |
21d1c967 | 25205 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25206 | builtin and then its argument prototype would still apply. */ |
25207 | char shmat (); | |
21d1c967 GD |
25208 | /* The GNU C library defines this for functions which it implements |
25209 | to always fail with ENOSYS. Some functions are actually named | |
25210 | something starting with __ and the normal name is an alias. */ | |
25211 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25212 | choke me | |
25213 | #else | |
e6cc62c6 VS |
25214 | char (*f) () = shmat; |
25215 | #endif | |
25216 | #ifdef __cplusplus | |
25217 | } | |
21d1c967 | 25218 | #endif |
90dd450c | 25219 | |
e6cc62c6 VS |
25220 | int |
25221 | main () | |
25222 | { | |
25223 | return f != shmat; | |
25224 | ; | |
25225 | return 0; | |
25226 | } | |
25227 | _ACEOF | |
25228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25230 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25231 | ac_status=$? |
f95e4495 VS |
25232 | grep -v '^ *+' conftest.er1 >conftest.err |
25233 | rm -f conftest.er1 | |
25234 | cat conftest.err >&5 | |
e6cc62c6 VS |
25235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25236 | (exit $ac_status); } && | |
f95e4495 VS |
25237 | { ac_try='test -z "$ac_c_werror_flag" |
25238 | || test ! -s conftest.err' | |
25239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25240 | (eval $ac_try) 2>&5 | |
25241 | ac_status=$? | |
25242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25243 | (exit $ac_status); }; } && | |
25244 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25246 | (eval $ac_try) 2>&5 | |
25247 | ac_status=$? | |
25248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25249 | (exit $ac_status); }; }; then | |
25250 | ac_cv_func_shmat=yes | |
25251 | else | |
25252 | echo "$as_me: failed program was:" >&5 | |
25253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25254 | ||
25255 | ac_cv_func_shmat=no | |
25256 | fi | |
f95e4495 VS |
25257 | rm -f conftest.err conftest.$ac_objext \ |
25258 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25259 | fi |
25260 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25261 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 25262 | |
21d1c967 | 25263 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
25264 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
25265 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25266 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 25268 | else |
e6cc62c6 | 25269 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 25270 | LIBS="-lipc $LIBS" |
e6cc62c6 | 25271 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25272 | /* confdefs.h. */ |
25273 | _ACEOF | |
25274 | cat confdefs.h >>conftest.$ac_ext | |
25275 | cat >>conftest.$ac_ext <<_ACEOF | |
25276 | /* end confdefs.h. */ | |
25277 | ||
5c6fa7d2 | 25278 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25279 | #ifdef __cplusplus |
25280 | extern "C" | |
25281 | #endif | |
5c6fa7d2 | 25282 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25283 | builtin and then its argument prototype would still apply. */ |
25284 | char shmat (); | |
25285 | int | |
25286 | main () | |
25287 | { | |
25288 | shmat (); | |
25289 | ; | |
25290 | return 0; | |
25291 | } | |
25292 | _ACEOF | |
25293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25295 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25296 | ac_status=$? |
f95e4495 VS |
25297 | grep -v '^ *+' conftest.er1 >conftest.err |
25298 | rm -f conftest.er1 | |
25299 | cat conftest.err >&5 | |
e6cc62c6 VS |
25300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25301 | (exit $ac_status); } && | |
f95e4495 VS |
25302 | { ac_try='test -z "$ac_c_werror_flag" |
25303 | || test ! -s conftest.err' | |
25304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25305 | (eval $ac_try) 2>&5 | |
25306 | ac_status=$? | |
25307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25308 | (exit $ac_status); }; } && | |
25309 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 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); }; }; then | |
25315 | ac_cv_lib_ipc_shmat=yes | |
25316 | else | |
25317 | echo "$as_me: failed program was:" >&5 | |
25318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25319 | ||
25320 | ac_cv_lib_ipc_shmat=no | |
25321 | fi | |
f95e4495 VS |
25322 | rm -f conftest.err conftest.$ac_objext \ |
25323 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25324 | LIBS=$ac_check_lib_save_LIBS |
25325 | fi | |
25326 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25327 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25328 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 25329 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 25330 | fi |
90dd450c | 25331 | |
90dd450c | 25332 | fi |
21d1c967 | 25333 | fi |
10f2d63a | 25334 | |
21d1c967 | 25335 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 25336 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
25337 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
25338 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25339 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25340 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25341 | # These have to be linked with before -lX11, unlike the other | |
25342 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
25343 | # John Interrante, Karl Berry |
25344 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25345 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25346 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25348 | else | |
25349 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 25350 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25351 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25352 | /* confdefs.h. */ |
25353 | _ACEOF | |
25354 | cat confdefs.h >>conftest.$ac_ext | |
25355 | cat >>conftest.$ac_ext <<_ACEOF | |
25356 | /* end confdefs.h. */ | |
25357 | ||
21d1c967 | 25358 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25359 | #ifdef __cplusplus |
25360 | extern "C" | |
25361 | #endif | |
21d1c967 | 25362 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25363 | builtin and then its argument prototype would still apply. */ |
25364 | char IceConnectionNumber (); | |
25365 | int | |
25366 | main () | |
25367 | { | |
25368 | IceConnectionNumber (); | |
25369 | ; | |
25370 | return 0; | |
25371 | } | |
25372 | _ACEOF | |
25373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25375 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25376 | ac_status=$? |
f95e4495 VS |
25377 | grep -v '^ *+' conftest.er1 >conftest.err |
25378 | rm -f conftest.er1 | |
25379 | cat conftest.err >&5 | |
e6cc62c6 VS |
25380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25381 | (exit $ac_status); } && | |
f95e4495 VS |
25382 | { ac_try='test -z "$ac_c_werror_flag" |
25383 | || test ! -s conftest.err' | |
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); }; } && | |
25389 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25391 | (eval $ac_try) 2>&5 | |
25392 | ac_status=$? | |
25393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25394 | (exit $ac_status); }; }; then | |
25395 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25396 | else | |
25397 | echo "$as_me: failed program was:" >&5 | |
25398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25399 | ||
25400 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25401 | fi | |
f95e4495 VS |
25402 | rm -f conftest.err conftest.$ac_objext \ |
25403 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25404 | LIBS=$ac_check_lib_save_LIBS |
25405 | fi | |
25406 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25407 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25408 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 25409 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 25410 | fi |
21d1c967 | 25411 | |
e6cc62c6 | 25412 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 25413 | |
10f2d63a VZ |
25414 | fi |
25415 | ||
8284b0c5 | 25416 | |
21d1c967 | 25417 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
25418 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
25419 | echo "$as_me: error: X11 not found" >&2;} | |
25420 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
25421 | fi |
25422 | ||
2b5f62a0 VZ |
25423 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
25424 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
25425 | AFMINSTALL=afminstall |
25426 | COMPILED_X_PROGRAM=0 | |
25427 | ||
e6cc62c6 VS |
25428 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25429 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
25430 | ||
21d1c967 | 25431 | ac_find_includes= |
2b5f62a0 | 25432 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
25433 | do |
25434 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25435 | ac_find_includes=$ac_dir | |
25436 | break | |
25437 | fi | |
25438 | done | |
25439 | ||
25440 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
25441 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
25442 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25443 | ||
2b5f62a0 | 25444 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
25445 | ac_path_to_include="" |
25446 | else | |
2b5f62a0 VZ |
25447 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
25448 | result=$? | |
25449 | if test $result = 0; then | |
25450 | ac_path_to_include="" | |
25451 | else | |
25452 | ac_path_to_include=" -I$ac_find_includes" | |
25453 | fi | |
dd0e4a90 VZ |
25454 | fi |
25455 | ||
25456 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 25457 | else |
e6cc62c6 | 25458 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25459 | /* confdefs.h. */ |
25460 | _ACEOF | |
25461 | cat confdefs.h >>conftest.$ac_ext | |
25462 | cat >>conftest.$ac_ext <<_ACEOF | |
25463 | /* end confdefs.h. */ | |
21d1c967 GD |
25464 | |
25465 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25466 | |
25467 | int | |
25468 | main () | |
25469 | { | |
21d1c967 GD |
25470 | |
25471 | int version; | |
25472 | version = xmUseVersion; | |
e6cc62c6 VS |
25473 | |
25474 | ; | |
25475 | return 0; | |
25476 | } | |
25477 | _ACEOF | |
25478 | rm -f conftest.$ac_objext | |
25479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 25480 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25481 | ac_status=$? |
f95e4495 VS |
25482 | grep -v '^ *+' conftest.er1 >conftest.err |
25483 | rm -f conftest.er1 | |
25484 | cat conftest.err >&5 | |
e6cc62c6 VS |
25485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25486 | (exit $ac_status); } && | |
f95e4495 VS |
25487 | { ac_try='test -z "$ac_c_werror_flag" |
25488 | || test ! -s conftest.err' | |
25489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25490 | (eval $ac_try) 2>&5 | |
25491 | ac_status=$? | |
25492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25493 | (exit $ac_status); }; } && | |
25494 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25496 | (eval $ac_try) 2>&5 | |
25497 | ac_status=$? | |
25498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25499 | (exit $ac_status); }; }; then | |
25500 | ||
25501 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25502 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 25503 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 25504 | |
10f2d63a | 25505 | else |
e6cc62c6 VS |
25506 | echo "$as_me: failed program was:" >&5 |
25507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25508 | ||
25509 | ||
25510 | echo "$as_me:$LINENO: result: no" >&5 | |
25511 | echo "${ECHO_T}no" >&6 | |
25512 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25513 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25514 | { (exit 1); exit 1; }; } | |
25515 | ||
25516 | ||
10f2d63a | 25517 | fi |
f95e4495 | 25518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 25519 | fi |
10f2d63a | 25520 | |
21d1c967 | 25521 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
25522 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
25523 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25524 | ||
21d1c967 | 25525 | ac_find_libraries= |
2b5f62a0 | 25526 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25527 | do |
25528 | for ac_extension in a so sl dylib; do | |
25529 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25530 | ac_find_libraries=$ac_dir | |
25531 | break 2 | |
25532 | fi | |
25533 | done | |
25534 | done | |
25535 | ||
25536 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
25537 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
25538 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25539 | ||
21d1c967 | 25540 | |
21d1c967 GD |
25541 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
25542 | result=$? | |
25543 | if test $result = 0; then | |
25544 | ac_path_to_link="" | |
25545 | else | |
25546 | ac_path_to_link=" -L$ac_find_libraries" | |
25547 | fi | |
25548 | ||
21d1c967 | 25549 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 25550 | else |
dd0e4a90 VZ |
25551 | save_CFLAGS=$CFLAGS |
25552 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25553 | ||
e6cc62c6 | 25554 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25555 | /* confdefs.h. */ |
25556 | _ACEOF | |
25557 | cat confdefs.h >>conftest.$ac_ext | |
25558 | cat >>conftest.$ac_ext <<_ACEOF | |
25559 | /* end confdefs.h. */ | |
21d1c967 GD |
25560 | |
25561 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25562 | |
25563 | int | |
25564 | main () | |
25565 | { | |
21d1c967 GD |
25566 | |
25567 | int version; | |
25568 | version = xmUseVersion; | |
e6cc62c6 VS |
25569 | |
25570 | ; | |
25571 | return 0; | |
25572 | } | |
25573 | _ACEOF | |
25574 | rm -f conftest.$ac_objext | |
25575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 25576 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25577 | ac_status=$? |
f95e4495 VS |
25578 | grep -v '^ *+' conftest.er1 >conftest.err |
25579 | rm -f conftest.er1 | |
25580 | cat conftest.err >&5 | |
e6cc62c6 VS |
25581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25582 | (exit $ac_status); } && | |
f95e4495 VS |
25583 | { ac_try='test -z "$ac_c_werror_flag" |
25584 | || test ! -s conftest.err' | |
25585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25586 | (eval $ac_try) 2>&5 | |
25587 | ac_status=$? | |
25588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25589 | (exit $ac_status); }; } && | |
25590 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25592 | (eval $ac_try) 2>&5 | |
25593 | ac_status=$? | |
25594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25595 | (exit $ac_status); }; }; then | |
25596 | ||
25597 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25598 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 25599 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 25600 | |
d836ee96 | 25601 | else |
e6cc62c6 VS |
25602 | echo "$as_me: failed program was:" >&5 |
25603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25604 | ||
25605 | ||
25606 | echo "$as_me:$LINENO: result: no" >&5 | |
25607 | echo "${ECHO_T}no" >&6 | |
25608 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25609 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25610 | { (exit 1); exit 1; }; } | |
25611 | ||
25612 | ||
d836ee96 | 25613 | fi |
f95e4495 | 25614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
25615 | |
25616 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
25617 | fi |
25618 | fi | |
25619 | ||
e6cc62c6 VS |
25620 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
25621 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
25622 | libp_link="" |
25623 | libsm_ice_link="" | |
25624 | libs_found=0 | |
25625 | for libp in "" " -lXp"; do | |
25626 | if test "$libs_found" = "0"; then | |
7015ef3a | 25627 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 25628 | if test "$libs_found" = "0"; then |
6a30f1c8 | 25629 | save_LIBS="$LIBS" |
93a543aa | 25630 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
25631 | save_CFLAGS=$CFLAGS |
25632 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25633 | ||
e6cc62c6 | 25634 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25635 | /* confdefs.h. */ |
25636 | _ACEOF | |
25637 | cat confdefs.h >>conftest.$ac_ext | |
25638 | cat >>conftest.$ac_ext <<_ACEOF | |
25639 | /* end confdefs.h. */ | |
17234b26 | 25640 | |
6a30f1c8 MB |
25641 | #include <Xm/Xm.h> |
25642 | #include <Xm/List.h> | |
e6cc62c6 VS |
25643 | |
25644 | int | |
25645 | main () | |
25646 | { | |
6a30f1c8 MB |
25647 | |
25648 | XmString string = NULL; | |
25649 | Widget w = NULL; | |
25650 | int position = 0; | |
25651 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
25652 | |
25653 | ; | |
25654 | return 0; | |
25655 | } | |
25656 | _ACEOF | |
25657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25659 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25660 | ac_status=$? |
f95e4495 VS |
25661 | grep -v '^ *+' conftest.er1 >conftest.err |
25662 | rm -f conftest.er1 | |
25663 | cat conftest.err >&5 | |
e6cc62c6 VS |
25664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25665 | (exit $ac_status); } && | |
f95e4495 VS |
25666 | { ac_try='test -z "$ac_c_werror_flag" |
25667 | || test ! -s conftest.err' | |
25668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25669 | (eval $ac_try) 2>&5 | |
25670 | ac_status=$? | |
25671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25672 | (exit $ac_status); }; } && | |
25673 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25675 | (eval $ac_try) 2>&5 | |
25676 | ac_status=$? | |
25677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25678 | (exit $ac_status); }; }; then | |
25679 | ||
6a30f1c8 MB |
25680 | libp_link="$libp" |
25681 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
25682 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
25683 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 25684 | libs_found=1 |
e6cc62c6 | 25685 | |
6a30f1c8 | 25686 | else |
e6cc62c6 VS |
25687 | echo "$as_me: failed program was:" >&5 |
25688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25689 | ||
25690 | ||
25691 | ||
6a30f1c8 | 25692 | fi |
f95e4495 VS |
25693 | rm -f conftest.err conftest.$ac_objext \ |
25694 | conftest$ac_exeext conftest.$ac_ext | |
dd0e4a90 | 25695 | |
6a30f1c8 | 25696 | LIBS="$save_LIBS" |
dd0e4a90 | 25697 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
25698 | fi |
25699 | done | |
25700 | fi | |
25701 | done | |
25702 | ||
25703 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
25704 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
25705 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25706 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25707 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25708 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
25709 | fi |
25710 | ||
da494b40 MB |
25711 | save_CFLAGS=$CFLAGS |
25712 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
25713 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
25714 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25715 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25716 | /* confdefs.h. */ |
25717 | _ACEOF | |
25718 | cat confdefs.h >>conftest.$ac_ext | |
25719 | cat >>conftest.$ac_ext <<_ACEOF | |
25720 | /* end confdefs.h. */ | |
da494b40 MB |
25721 | |
25722 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25723 | |
25724 | int | |
25725 | main () | |
25726 | { | |
da494b40 MB |
25727 | |
25728 | #if XmVersion < 2000 | |
25729 | #error "Not Motif 2" | |
25730 | #endif | |
e6cc62c6 VS |
25731 | |
25732 | ; | |
25733 | return 0; | |
25734 | } | |
25735 | _ACEOF | |
25736 | rm -f conftest.$ac_objext | |
25737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 25738 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25739 | ac_status=$? |
f95e4495 VS |
25740 | grep -v '^ *+' conftest.er1 >conftest.err |
25741 | rm -f conftest.er1 | |
25742 | cat conftest.err >&5 | |
e6cc62c6 VS |
25743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25744 | (exit $ac_status); } && | |
f95e4495 VS |
25745 | { ac_try='test -z "$ac_c_werror_flag" |
25746 | || test ! -s conftest.err' | |
25747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25748 | (eval $ac_try) 2>&5 | |
25749 | ac_status=$? | |
25750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25751 | (exit $ac_status); }; } && | |
25752 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25754 | (eval $ac_try) 2>&5 | |
25755 | ac_status=$? | |
25756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25757 | (exit $ac_status); }; }; then | |
25758 | ||
25759 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 25760 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
25761 | _ACEOF |
25762 | ||
25763 | echo "$as_me:$LINENO: result: found" >&5 | |
25764 | echo "${ECHO_T}found" >&6 | |
da494b40 | 25765 | |
da494b40 | 25766 | else |
e6cc62c6 VS |
25767 | echo "$as_me: failed program was:" >&5 |
25768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25769 | ||
25770 | ||
25771 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 25772 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
25773 | _ACEOF |
25774 | ||
25775 | echo "$as_me:$LINENO: result: not found" >&5 | |
25776 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 25777 | |
da494b40 | 25778 | fi |
f95e4495 | 25779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
25780 | CFLAGS=$save_CFLAGS |
25781 | ||
93a543aa | 25782 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 25783 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
25784 | TOOLKIT=MOTIF |
25785 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
25786 | fi |
25787 | ||
89fe663f VZ |
25788 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
25789 | if test "$wxUSE_LIBXPM" = "sys"; then | |
25790 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
25791 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
25792 | ||
25793 | ac_find_libraries= | |
25794 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25795 | do | |
25796 | for ac_extension in a so sl dylib; do | |
25797 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
25798 | ac_find_libraries=$ac_dir | |
25799 | break 2 | |
25800 | fi | |
25801 | done | |
25802 | done | |
25803 | ||
25804 | if test "$ac_find_libraries" != "" ; then | |
25805 | ||
25806 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25807 | result=$? | |
25808 | if test $result = 0; then | |
25809 | ac_path_to_link="" | |
25810 | else | |
25811 | ac_path_to_link=" -L$ac_find_libraries" | |
25812 | fi | |
25813 | ||
25814 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25815 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25816 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25817 | ||
25818 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
25819 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
25820 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
25821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25822 | else | |
25823 | ||
25824 | save_CFLAGS=$CFLAGS | |
25825 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25826 | ||
25827 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
25828 | /* confdefs.h. */ |
25829 | _ACEOF | |
25830 | cat confdefs.h >>conftest.$ac_ext | |
25831 | cat >>conftest.$ac_ext <<_ACEOF | |
25832 | /* end confdefs.h. */ | |
25833 | ||
25834 | #include <X11/xpm.h> | |
25835 | ||
25836 | int | |
25837 | main () | |
25838 | { | |
25839 | ||
25840 | int version; | |
25841 | version = XpmLibraryVersion(); | |
25842 | ||
25843 | ; | |
25844 | return 0; | |
25845 | } | |
25846 | _ACEOF | |
25847 | rm -f conftest.$ac_objext | |
25848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 25849 | (eval $ac_compile) 2>conftest.er1 |
89fe663f | 25850 | ac_status=$? |
f95e4495 VS |
25851 | grep -v '^ *+' conftest.er1 >conftest.err |
25852 | rm -f conftest.er1 | |
25853 | cat conftest.err >&5 | |
89fe663f VZ |
25854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25855 | (exit $ac_status); } && | |
f95e4495 VS |
25856 | { ac_try='test -z "$ac_c_werror_flag" |
25857 | || test ! -s conftest.err' | |
25858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25859 | (eval $ac_try) 2>&5 | |
25860 | ac_status=$? | |
25861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25862 | (exit $ac_status); }; } && | |
25863 | { ac_try='test -s conftest.$ac_objext' | |
89fe663f VZ |
25864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25865 | (eval $ac_try) 2>&5 | |
25866 | ac_status=$? | |
25867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25868 | (exit $ac_status); }; }; then | |
25869 | wx_cv_x11_xpm_h=yes | |
25870 | else | |
25871 | echo "$as_me: failed program was:" >&5 | |
25872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25873 | ||
25874 | wx_cv_x11_xpm_h=no | |
25875 | ||
25876 | fi | |
f95e4495 | 25877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
25878 | |
25879 | CFLAGS=$save_CFLAGS | |
25880 | ||
25881 | ||
25882 | fi | |
25883 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
25884 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
25885 | ||
25886 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 25887 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
25888 | cat >>confdefs.h <<\_ACEOF |
25889 | #define wxHAVE_LIB_XPM 1 | |
25890 | _ACEOF | |
25891 | ||
25892 | else | |
25893 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
25894 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
25895 | fi | |
25896 | fi | |
25897 | ||
25898 | fi | |
f7f78039 | 25899 | |
89fe663f VZ |
25900 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
25901 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
25902 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
25903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25904 | else | |
25905 | ac_check_lib_save_LIBS=$LIBS | |
25906 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
25907 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
25908 | /* confdefs.h. */ |
25909 | _ACEOF | |
25910 | cat confdefs.h >>conftest.$ac_ext | |
25911 | cat >>conftest.$ac_ext <<_ACEOF | |
25912 | /* end confdefs.h. */ | |
25913 | ||
25914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25915 | #ifdef __cplusplus | |
25916 | extern "C" | |
25917 | #endif | |
25918 | /* We use char because int might match the return type of a gcc2 | |
25919 | builtin and then its argument prototype would still apply. */ | |
25920 | char XShapeQueryExtension (); | |
25921 | int | |
25922 | main () | |
25923 | { | |
25924 | XShapeQueryExtension (); | |
25925 | ; | |
25926 | return 0; | |
25927 | } | |
25928 | _ACEOF | |
25929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 25931 | (eval $ac_link) 2>conftest.er1 |
89fe663f | 25932 | ac_status=$? |
f95e4495 VS |
25933 | grep -v '^ *+' conftest.er1 >conftest.err |
25934 | rm -f conftest.er1 | |
25935 | cat conftest.err >&5 | |
89fe663f VZ |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25937 | (exit $ac_status); } && | |
f95e4495 VS |
25938 | { ac_try='test -z "$ac_c_werror_flag" |
25939 | || test ! -s conftest.err' | |
25940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25941 | (eval $ac_try) 2>&5 | |
25942 | ac_status=$? | |
25943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25944 | (exit $ac_status); }; } && | |
25945 | { ac_try='test -s conftest$ac_exeext' | |
89fe663f VZ |
25946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25947 | (eval $ac_try) 2>&5 | |
25948 | ac_status=$? | |
25949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25950 | (exit $ac_status); }; }; then | |
25951 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
25952 | else | |
25953 | echo "$as_me: failed program was:" >&5 | |
25954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25955 | ||
25956 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
25957 | fi | |
f95e4495 VS |
25958 | rm -f conftest.err conftest.$ac_objext \ |
25959 | conftest$ac_exeext conftest.$ac_ext | |
89fe663f VZ |
25960 | LIBS=$ac_check_lib_save_LIBS |
25961 | fi | |
25962 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
25963 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
25964 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
25965 | ||
25966 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
25967 | wxHAVE_XEXT_LIB=1 | |
25968 | ||
25969 | fi | |
25970 | ||
25971 | ||
25972 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
25973 | save_CFLAGS="$CFLAGS" | |
25974 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25975 | ||
25976 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 25977 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 25978 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25979 | /* confdefs.h. */ |
25980 | _ACEOF | |
25981 | cat confdefs.h >>conftest.$ac_ext | |
25982 | cat >>conftest.$ac_ext <<_ACEOF | |
25983 | /* end confdefs.h. */ | |
25984 | ||
89fe663f VZ |
25985 | #include <X11/Xlib.h> |
25986 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
25987 | |
25988 | int | |
25989 | main () | |
25990 | { | |
f7f78039 | 25991 | |
89fe663f VZ |
25992 | int dummy1, dummy2; |
25993 | XShapeQueryExtension((Display*)NULL, | |
25994 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
25995 | |
25996 | ; | |
25997 | return 0; | |
25998 | } | |
25999 | _ACEOF | |
26000 | rm -f conftest.$ac_objext | |
26001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 26002 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26003 | ac_status=$? |
f95e4495 VS |
26004 | grep -v '^ *+' conftest.er1 >conftest.err |
26005 | rm -f conftest.er1 | |
26006 | cat conftest.err >&5 | |
e6cc62c6 VS |
26007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26008 | (exit $ac_status); } && | |
f95e4495 VS |
26009 | { ac_try='test -z "$ac_c_werror_flag" |
26010 | || test ! -s conftest.err' | |
26011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26012 | (eval $ac_try) 2>&5 | |
26013 | ac_status=$? | |
26014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26015 | (exit $ac_status); }; } && | |
26016 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26018 | (eval $ac_try) 2>&5 | |
26019 | ac_status=$? | |
26020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26021 | (exit $ac_status); }; }; then | |
26022 | ||
89fe663f | 26023 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 26024 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
26025 | _ACEOF |
26026 | ||
89fe663f | 26027 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 26028 | echo "${ECHO_T}found" >&6 |
f7f78039 | 26029 | |
f7f78039 | 26030 | else |
e6cc62c6 VS |
26031 | echo "$as_me: failed program was:" >&5 |
26032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26033 | ||
26034 | ||
89fe663f | 26035 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
26036 | echo "${ECHO_T}not found" >&6 |
26037 | ||
f7f78039 | 26038 | fi |
f95e4495 | 26039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26040 | CFLAGS="$save_CFLAGS" |
26041 | ||
26042 | fi | |
21d1c967 GD |
26043 | fi |
26044 | ||
26045 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
26046 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
26047 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26048 | if test "$GCC" = yes; then | |
26049 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26050 | echo "${ECHO_T}gcc" >&6 | |
26051 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26052 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26053 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26054 | echo "${ECHO_T}xlc" >&6 | |
26055 | CPPFLAGS_PASCAL="-qmacpstr" | |
26056 | else | |
26057 | echo "$as_me:$LINENO: result: none" >&5 | |
26058 | echo "${ECHO_T}none" >&6 | |
26059 | fi | |
26060 | ||
26061 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 26062 | |
0c98a14e | 26063 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
26064 | TOOLKIT=MAC |
26065 | GUIDIST=MACX_DIST | |
cf615ebb | 26066 | WXBASEPORT="_carbon" |
21d1c967 GD |
26067 | fi |
26068 | ||
ac0c4cc3 DE |
26069 | if test "$wxUSE_COCOA" = 1; then |
26070 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26071 | TOOLKIT=COCOA | |
26072 | GUIDIST=COCOA_DIST | |
26073 | fi | |
26074 | ||
21d1c967 GD |
26075 | if test "$wxUSE_PM" = 1; then |
26076 | TOOLKIT=PM | |
26077 | GUIDIST=GTK_DIST | |
26078 | fi | |
26079 | ||
26080 | if test "$TOOLKIT" = "PM" ; then | |
26081 | TOOLKIT_DIR="os2" | |
26082 | else | |
26083 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26084 | fi | |
26085 | ||
26086 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26087 | ||
26088 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26089 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26090 | ||
26091 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26092 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26093 | ||
26094 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26095 | if test "$wxUSE_X11" = 1; then | |
26096 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26097 | else | |
26098 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26099 | fi | |
26100 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26101 | WIDGET_SET=univ | |
26102 | else | |
26103 | ALL_OBJECTS="\$(GUIOBJS)" | |
26104 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26105 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26106 | fi | |
26107 | ||
26108 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26109 | ||
26110 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26111 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26112 | fi | |
26113 | ||
26114 | if test "$wxUSE_HTML" = "yes"; then | |
26115 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26116 | fi | |
26117 | ||
26118 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26119 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26120 | fi | |
26121 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26122 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26123 | fi | |
26124 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26125 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26126 | fi | |
26127 | ||
26128 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26129 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 26130 | else |
21d1c967 GD |
26131 | USE_GUI=0 |
26132 | ||
26133 | TOOLKIT_DIR="base" | |
26134 | ||
26135 | if test "$USE_WIN32" = 1 ; then | |
26136 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26137 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26138 | ||
26139 | TOOLKIT="MSW" | |
26140 | else | |
26141 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26142 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26143 | fi | |
26144 | ||
26145 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26146 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26147 | ||
26148 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26149 | ||
26150 | GUIDIST="BASE_DIST" | |
26151 | DISTDIR="wxBase" | |
d836ee96 VZ |
26152 | fi |
26153 | ||
8284b0c5 | 26154 | |
8647bec6 RG |
26155 | |
26156 | ||
26157 | IODBC_C_SRC="" | |
26158 | ||
26159 | ||
26160 | if test "$TOOLKIT" != "MSW" ; then | |
26161 | ||
bb41dcbe | 26162 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 26163 | |
bb41dcbe | 26164 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
26165 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
26166 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26167 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26169 | fi | |
26170 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26171 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26172 | else | |
26173 | # Is the header compilable? | |
26174 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26175 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26176 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26177 | /* confdefs.h. */ |
26178 | _ACEOF | |
26179 | cat confdefs.h >>conftest.$ac_ext | |
26180 | cat >>conftest.$ac_ext <<_ACEOF | |
26181 | /* end confdefs.h. */ | |
26182 | $ac_includes_default | |
8647bec6 | 26183 | #include <sql.h> |
e6cc62c6 VS |
26184 | _ACEOF |
26185 | rm -f conftest.$ac_objext | |
26186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 26187 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26188 | ac_status=$? |
f95e4495 VS |
26189 | grep -v '^ *+' conftest.er1 >conftest.err |
26190 | rm -f conftest.er1 | |
26191 | cat conftest.err >&5 | |
e6cc62c6 VS |
26192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26193 | (exit $ac_status); } && | |
f95e4495 VS |
26194 | { ac_try='test -z "$ac_c_werror_flag" |
26195 | || test ! -s conftest.err' | |
26196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26197 | (eval $ac_try) 2>&5 | |
26198 | ac_status=$? | |
26199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26200 | (exit $ac_status); }; } && | |
26201 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26203 | (eval $ac_try) 2>&5 | |
26204 | ac_status=$? | |
26205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26206 | (exit $ac_status); }; }; then | |
26207 | ac_header_compiler=yes | |
26208 | else | |
26209 | echo "$as_me: failed program was:" >&5 | |
26210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26211 | ||
26212 | ac_header_compiler=no | |
26213 | fi | |
f95e4495 | 26214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26215 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26216 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26217 | ||
26218 | # Is the header present? | |
26219 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26220 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26221 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26222 | /* confdefs.h. */ |
26223 | _ACEOF | |
26224 | cat confdefs.h >>conftest.$ac_ext | |
26225 | cat >>conftest.$ac_ext <<_ACEOF | |
26226 | /* end confdefs.h. */ | |
26227 | #include <sql.h> | |
26228 | _ACEOF | |
26229 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26230 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26231 | ac_status=$? | |
26232 | grep -v '^ *+' conftest.er1 >conftest.err | |
26233 | rm -f conftest.er1 | |
26234 | cat conftest.err >&5 | |
26235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26236 | (exit $ac_status); } >/dev/null; then | |
26237 | if test -s conftest.err; then | |
26238 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 26239 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26240 | else |
26241 | ac_cpp_err= | |
26242 | fi | |
26243 | else | |
26244 | ac_cpp_err=yes | |
26245 | fi | |
26246 | if test -z "$ac_cpp_err"; then | |
26247 | ac_header_preproc=yes | |
26248 | else | |
26249 | echo "$as_me: failed program was:" >&5 | |
26250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26251 | ||
26252 | ac_header_preproc=no | |
26253 | fi | |
26254 | rm -f conftest.err conftest.$ac_ext | |
26255 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26256 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26257 | ||
26258 | # So? What about this header? | |
f95e4495 VS |
26259 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26260 | yes:no: ) | |
e6cc62c6 VS |
26261 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26262 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
26263 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26264 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26265 | ac_header_preproc=yes | |
e6cc62c6 | 26266 | ;; |
f95e4495 | 26267 | no:yes:* ) |
e6cc62c6 VS |
26268 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26269 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
26270 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26271 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26272 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26273 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26274 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26275 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26276 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26277 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
26278 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26279 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26280 | ( |
26281 | cat <<\_ASBOX | |
f95e4495 VS |
26282 | ## ----------------------------------------- ## |
26283 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26284 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26285 | _ASBOX |
26286 | ) | | |
26287 | sed "s/^/$as_me: WARNING: /" >&2 | |
26288 | ;; | |
26289 | esac | |
26290 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26291 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26292 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 26294 | else |
e6cc62c6 VS |
26295 | ac_cv_header_sql_h=$ac_header_preproc |
26296 | fi | |
26297 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26298 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26299 | ||
bb41dcbe VS |
26300 | fi |
26301 | if test $ac_cv_header_sql_h = yes; then | |
26302 | found_sql_h=1 | |
8647bec6 RG |
26303 | fi |
26304 | ||
e6cc62c6 | 26305 | |
bb41dcbe | 26306 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
26307 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
26308 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26309 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 26310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 26311 | else |
bb41dcbe | 26312 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 26313 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 26314 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26315 | /* confdefs.h. */ |
26316 | _ACEOF | |
26317 | cat confdefs.h >>conftest.$ac_ext | |
26318 | cat >>conftest.$ac_ext <<_ACEOF | |
26319 | /* end confdefs.h. */ | |
26320 | ||
8647bec6 | 26321 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26322 | #ifdef __cplusplus |
26323 | extern "C" | |
26324 | #endif | |
8647bec6 | 26325 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26326 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26327 | char SQLAllocEnv (); |
e6cc62c6 VS |
26328 | int |
26329 | main () | |
26330 | { | |
e46d2a18 | 26331 | SQLAllocEnv (); |
e6cc62c6 VS |
26332 | ; |
26333 | return 0; | |
26334 | } | |
26335 | _ACEOF | |
26336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 26338 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26339 | ac_status=$? |
f95e4495 VS |
26340 | grep -v '^ *+' conftest.er1 >conftest.err |
26341 | rm -f conftest.er1 | |
26342 | cat conftest.err >&5 | |
e6cc62c6 VS |
26343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26344 | (exit $ac_status); } && | |
f95e4495 VS |
26345 | { ac_try='test -z "$ac_c_werror_flag" |
26346 | || test ! -s conftest.err' | |
26347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26348 | (eval $ac_try) 2>&5 | |
26349 | ac_status=$? | |
26350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26351 | (exit $ac_status); }; } && | |
26352 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26354 | (eval $ac_try) 2>&5 | |
26355 | ac_status=$? | |
26356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26357 | (exit $ac_status); }; }; then | |
e46d2a18 | 26358 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 26359 | else |
e6cc62c6 VS |
26360 | echo "$as_me: failed program was:" >&5 |
26361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26362 | ||
e46d2a18 | 26363 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 26364 | fi |
f95e4495 VS |
26365 | rm -f conftest.err conftest.$ac_objext \ |
26366 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26367 | LIBS=$ac_check_lib_save_LIBS |
26368 | fi | |
e46d2a18 VS |
26369 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
26370 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26371 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26372 | ODBC_LINK=" -liodbc" |
26373 | else | |
26374 | ||
e46d2a18 VS |
26375 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
26376 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26377 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26379 | else | |
26380 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26381 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 26382 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26383 | /* confdefs.h. */ |
26384 | _ACEOF | |
26385 | cat confdefs.h >>conftest.$ac_ext | |
26386 | cat >>conftest.$ac_ext <<_ACEOF | |
26387 | /* end confdefs.h. */ | |
26388 | ||
8647bec6 | 26389 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26390 | #ifdef __cplusplus |
26391 | extern "C" | |
26392 | #endif | |
8647bec6 | 26393 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26394 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26395 | char SQLAllocEnv (); |
e6cc62c6 VS |
26396 | int |
26397 | main () | |
26398 | { | |
e46d2a18 | 26399 | SQLAllocEnv (); |
e6cc62c6 VS |
26400 | ; |
26401 | return 0; | |
26402 | } | |
26403 | _ACEOF | |
26404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 26406 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26407 | ac_status=$? |
f95e4495 VS |
26408 | grep -v '^ *+' conftest.er1 >conftest.err |
26409 | rm -f conftest.er1 | |
26410 | cat conftest.err >&5 | |
e6cc62c6 VS |
26411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26412 | (exit $ac_status); } && | |
f95e4495 VS |
26413 | { ac_try='test -z "$ac_c_werror_flag" |
26414 | || test ! -s conftest.err' | |
26415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26416 | (eval $ac_try) 2>&5 | |
26417 | ac_status=$? | |
26418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26419 | (exit $ac_status); }; } && | |
26420 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26422 | (eval $ac_try) 2>&5 | |
26423 | ac_status=$? | |
26424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26425 | (exit $ac_status); }; }; then | |
e46d2a18 | 26426 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 26427 | else |
e6cc62c6 VS |
26428 | echo "$as_me: failed program was:" >&5 |
26429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26430 | ||
e46d2a18 | 26431 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 26432 | fi |
f95e4495 VS |
26433 | rm -f conftest.err conftest.$ac_objext \ |
26434 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe | 26435 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 26436 | fi |
e46d2a18 VS |
26437 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
26438 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26439 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26440 | ODBC_LINK=" -lunixodbc" |
26441 | else | |
26442 | ||
e46d2a18 VS |
26443 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
26444 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26445 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26447 | else | |
26448 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26449 | LIBS="-lodbc $LIBS" |
bb41dcbe | 26450 | cat >conftest.$ac_ext <<_ACEOF |
bb41dcbe VS |
26451 | /* confdefs.h. */ |
26452 | _ACEOF | |
26453 | cat confdefs.h >>conftest.$ac_ext | |
26454 | cat >>conftest.$ac_ext <<_ACEOF | |
26455 | /* end confdefs.h. */ | |
e6cc62c6 | 26456 | |
bb41dcbe VS |
26457 | /* Override any gcc2 internal prototype to avoid an error. */ |
26458 | #ifdef __cplusplus | |
26459 | extern "C" | |
26460 | #endif | |
26461 | /* We use char because int might match the return type of a gcc2 | |
26462 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 26463 | char SQLAllocEnv (); |
bb41dcbe VS |
26464 | int |
26465 | main () | |
26466 | { | |
e46d2a18 | 26467 | SQLAllocEnv (); |
bb41dcbe VS |
26468 | ; |
26469 | return 0; | |
26470 | } | |
26471 | _ACEOF | |
26472 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 26474 | (eval $ac_link) 2>conftest.er1 |
bb41dcbe | 26475 | ac_status=$? |
f95e4495 VS |
26476 | grep -v '^ *+' conftest.er1 >conftest.err |
26477 | rm -f conftest.er1 | |
26478 | cat conftest.err >&5 | |
bb41dcbe VS |
26479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26480 | (exit $ac_status); } && | |
f95e4495 VS |
26481 | { ac_try='test -z "$ac_c_werror_flag" |
26482 | || test ! -s conftest.err' | |
26483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26484 | (eval $ac_try) 2>&5 | |
26485 | ac_status=$? | |
26486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26487 | (exit $ac_status); }; } && | |
26488 | { ac_try='test -s conftest$ac_exeext' | |
bb41dcbe VS |
26489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26490 | (eval $ac_try) 2>&5 | |
26491 | ac_status=$? | |
26492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26493 | (exit $ac_status); }; }; then | |
e46d2a18 | 26494 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 26495 | else |
bb41dcbe VS |
26496 | echo "$as_me: failed program was:" >&5 |
26497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26498 | ||
e46d2a18 | 26499 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 26500 | fi |
f95e4495 VS |
26501 | rm -f conftest.err conftest.$ac_objext \ |
26502 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26503 | LIBS=$ac_check_lib_save_LIBS |
26504 | fi | |
e46d2a18 VS |
26505 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
26506 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26507 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26508 | ODBC_LINK=" -lodbc" |
26509 | fi | |
26510 | ||
26511 | ||
26512 | fi | |
e6cc62c6 | 26513 | |
e6cc62c6 | 26514 | |
8647bec6 | 26515 | fi |
e6cc62c6 | 26516 | |
fd3d7534 | 26517 | fi |
bb41dcbe VS |
26518 | if test "x$ODBC_LINK" = "x" ; then |
26519 | if test "$wxUSE_ODBC" = "sys" ; then | |
26520 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26521 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26522 | { (exit 1); exit 1; }; } | |
26523 | else | |
26524 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26525 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26526 | wxUSE_ODBC=builtin | |
26527 | fi | |
26528 | else | |
26529 | wxUSE_ODBC=sys | |
8647bec6 | 26530 | fi |
8647bec6 | 26531 | fi |
bb41dcbe VS |
26532 | if test "$wxUSE_ODBC" != "no" ; then |
26533 | cat >>confdefs.h <<\_ACEOF | |
26534 | #define wxUSE_ODBC 1 | |
26535 | _ACEOF | |
e6cc62c6 | 26536 | |
0bdb08e7 VS |
26537 | if test "$wxUSE_ODBC" = "builtin" ; then |
26538 | cat >>confdefs.h <<\_ACEOF | |
26539 | #define wxUSE_BUILTIN_IODBC 1 | |
26540 | _ACEOF | |
26541 | ||
26542 | fi | |
bb41dcbe VS |
26543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
26544 | ||
26545 | WXODBCFLAG="-D_IODBC_" | |
26546 | fi | |
6232543b | 26547 | fi |
21d1c967 GD |
26548 | |
26549 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26550 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 26551 | fi |
21d1c967 GD |
26552 | if test "$wxUSE_ZLIB" = "builtin" ; then |
26553 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
26554 | fi |
26555 | ||
74500461 VS |
26556 | if test "$wxUSE_DISPLAY" = "yes"; then |
26557 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
26558 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
26559 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26560 | ||
26561 | ac_find_libraries= | |
26562 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26563 | do | |
26564 | for ac_extension in a so sl dylib; do | |
26565 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26566 | ac_find_libraries=$ac_dir | |
26567 | break 2 | |
26568 | fi | |
26569 | done | |
26570 | done | |
26571 | ||
26572 | if test "$ac_find_libraries" != "" ; then | |
26573 | ||
26574 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26575 | result=$? | |
26576 | if test $result = 0; then | |
26577 | ac_path_to_link="" | |
26578 | else | |
26579 | ac_path_to_link=" -L$ac_find_libraries" | |
26580 | fi | |
26581 | ||
26582 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26583 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26584 | fi | |
26585 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26586 | echo "$as_me:$LINENO: result: yes" >&5 | |
26587 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
26588 | |
26589 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26590 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26591 | ||
26592 | ac_find_libraries= | |
26593 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26594 | do | |
26595 | for ac_extension in a so sl dylib; do | |
26596 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26597 | ac_find_libraries=$ac_dir | |
26598 | break 2 | |
26599 | fi | |
26600 | done | |
26601 | done | |
26602 | ||
26603 | if test "$ac_find_libraries" != "" ; then | |
26604 | echo "$as_me:$LINENO: result: yes" >&5 | |
26605 | echo "${ECHO_T}yes" >&6 | |
26606 | ||
26607 | for ac_header in X11/extensions/xf86vmode.h | |
26608 | do | |
26609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26614 | else | |
26615 | cat >conftest.$ac_ext <<_ACEOF | |
26616 | /* confdefs.h. */ | |
26617 | _ACEOF | |
26618 | cat confdefs.h >>conftest.$ac_ext | |
26619 | cat >>conftest.$ac_ext <<_ACEOF | |
26620 | /* end confdefs.h. */ | |
26621 | ||
26622 | #if HAVE_X11_XLIB_H | |
26623 | #include <X11/Xlib.h> | |
26624 | #endif | |
26625 | ||
26626 | ||
26627 | #include <$ac_header> | |
26628 | _ACEOF | |
26629 | rm -f conftest.$ac_objext | |
26630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 26631 | (eval $ac_compile) 2>conftest.er1 |
505c8ccd | 26632 | ac_status=$? |
f95e4495 VS |
26633 | grep -v '^ *+' conftest.er1 >conftest.err |
26634 | rm -f conftest.er1 | |
26635 | cat conftest.err >&5 | |
505c8ccd VS |
26636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26637 | (exit $ac_status); } && | |
f95e4495 VS |
26638 | { ac_try='test -z "$ac_c_werror_flag" |
26639 | || test ! -s conftest.err' | |
26640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26641 | (eval $ac_try) 2>&5 | |
26642 | ac_status=$? | |
26643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26644 | (exit $ac_status); }; } && | |
26645 | { ac_try='test -s conftest.$ac_objext' | |
505c8ccd VS |
26646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26647 | (eval $ac_try) 2>&5 | |
26648 | ac_status=$? | |
26649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26650 | (exit $ac_status); }; }; then | |
26651 | eval "$as_ac_Header=yes" | |
26652 | else | |
26653 | echo "$as_me: failed program was:" >&5 | |
26654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26655 | ||
26656 | eval "$as_ac_Header=no" | |
26657 | fi | |
f95e4495 | 26658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
26659 | fi |
26660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26663 | cat >>confdefs.h <<_ACEOF | |
26664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26665 | _ACEOF | |
26666 | ||
26667 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
26668 | ||
26669 | fi | |
26670 | ||
26671 | done | |
26672 | ||
26673 | else | |
26674 | echo "$as_me:$LINENO: result: no" >&5 | |
26675 | echo "${ECHO_T}no" >&6 | |
26676 | fi | |
26677 | ||
74500461 VS |
26678 | else |
26679 | echo "$as_me:$LINENO: result: no" >&5 | |
26680 | echo "${ECHO_T}no" >&6 | |
26681 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
26682 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
26683 | wxUSE_DISPLAY="no" | |
26684 | fi | |
26685 | fi | |
26686 | fi | |
26687 | ||
8284b0c5 | 26688 | |
4d264332 | 26689 | USE_OPENGL=0 |
21d1c967 | 26690 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 26691 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
26692 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
26693 | elif test "$wxUSE_MSW" = 1; then | |
26694 | OPENGL_LIBS="-lopengl32 -lglu32" | |
26695 | else | |
01aa5863 VS |
26696 | |
26697 | ||
26698 | ac_find_includes= | |
26699 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26700 | do | |
26701 | if test -f "$ac_dir/GL/gl.h"; then | |
26702 | ac_find_includes=$ac_dir | |
26703 | break | |
26704 | fi | |
26705 | done | |
26706 | ||
26707 | if test "$ac_find_includes" != "" ; then | |
26708 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26709 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
26710 | |
26711 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26712 | ac_path_to_include="" | |
26713 | else | |
26714 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
26715 | result=$? | |
26716 | if test $result = 0; then | |
26717 | ac_path_to_include="" | |
26718 | else | |
26719 | ac_path_to_include=" -I$ac_find_includes" | |
26720 | fi | |
26721 | fi | |
26722 | ||
26723 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
26724 | fi |
26725 | ||
e6cc62c6 VS |
26726 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
26727 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26728 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26729 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26731 | fi | |
26732 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
26733 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26734 | else | |
26735 | # Is the header compilable? | |
26736 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
26737 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
26738 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26739 | /* confdefs.h. */ |
26740 | _ACEOF | |
26741 | cat confdefs.h >>conftest.$ac_ext | |
26742 | cat >>conftest.$ac_ext <<_ACEOF | |
26743 | /* end confdefs.h. */ | |
26744 | $ac_includes_default | |
21d1c967 | 26745 | #include <GL/gl.h> |
e6cc62c6 VS |
26746 | _ACEOF |
26747 | rm -f conftest.$ac_objext | |
26748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 26749 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26750 | ac_status=$? |
f95e4495 VS |
26751 | grep -v '^ *+' conftest.er1 >conftest.err |
26752 | rm -f conftest.er1 | |
26753 | cat conftest.err >&5 | |
e6cc62c6 VS |
26754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26755 | (exit $ac_status); } && | |
f95e4495 VS |
26756 | { ac_try='test -z "$ac_c_werror_flag" |
26757 | || test ! -s conftest.err' | |
26758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26759 | (eval $ac_try) 2>&5 | |
26760 | ac_status=$? | |
26761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26762 | (exit $ac_status); }; } && | |
26763 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26765 | (eval $ac_try) 2>&5 | |
26766 | ac_status=$? | |
26767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26768 | (exit $ac_status); }; }; then | |
26769 | ac_header_compiler=yes | |
26770 | else | |
26771 | echo "$as_me: failed program was:" >&5 | |
26772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26773 | ||
26774 | ac_header_compiler=no | |
26775 | fi | |
f95e4495 | 26776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26778 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26779 | ||
26780 | # Is the header present? | |
26781 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
26782 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
26783 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26784 | /* confdefs.h. */ |
26785 | _ACEOF | |
26786 | cat confdefs.h >>conftest.$ac_ext | |
26787 | cat >>conftest.$ac_ext <<_ACEOF | |
26788 | /* end confdefs.h. */ | |
26789 | #include <GL/gl.h> | |
26790 | _ACEOF | |
26791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26793 | ac_status=$? | |
26794 | grep -v '^ *+' conftest.er1 >conftest.err | |
26795 | rm -f conftest.er1 | |
26796 | cat conftest.err >&5 | |
26797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26798 | (exit $ac_status); } >/dev/null; then | |
26799 | if test -s conftest.err; then | |
26800 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 26801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26802 | else |
26803 | ac_cpp_err= | |
26804 | fi | |
26805 | else | |
26806 | ac_cpp_err=yes | |
26807 | fi | |
26808 | if test -z "$ac_cpp_err"; then | |
26809 | ac_header_preproc=yes | |
26810 | else | |
26811 | echo "$as_me: failed program was:" >&5 | |
26812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26813 | ||
26814 | ac_header_preproc=no | |
26815 | fi | |
26816 | rm -f conftest.err conftest.$ac_ext | |
26817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26818 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26819 | ||
26820 | # So? What about this header? | |
f95e4495 VS |
26821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26822 | yes:no: ) | |
e6cc62c6 VS |
26823 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26824 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
26825 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
26826 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
26827 | ac_header_preproc=yes | |
e6cc62c6 | 26828 | ;; |
f95e4495 | 26829 | no:yes:* ) |
e6cc62c6 VS |
26830 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
26831 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
f95e4495 VS |
26832 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
26833 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
26834 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
26835 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
26836 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26837 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26838 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
26839 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
26840 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
26841 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26842 | ( |
26843 | cat <<\_ASBOX | |
f95e4495 VS |
26844 | ## ----------------------------------------- ## |
26845 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26846 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26847 | _ASBOX |
26848 | ) | | |
26849 | sed "s/^/$as_me: WARNING: /" >&2 | |
26850 | ;; | |
26851 | esac | |
26852 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26853 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26854 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26856 | else | |
26857 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 26858 | fi |
e6cc62c6 VS |
26859 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
26860 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26861 | ||
698dcdb6 | 26862 | fi |
e6cc62c6 VS |
26863 | if test $ac_cv_header_GL_gl_h = yes; then |
26864 | ||
89e3b3e4 VZ |
26865 | found_gl=0 |
26866 | ||
e6cc62c6 VS |
26867 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
26868 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
26869 | ||
21d1c967 | 26870 | ac_find_libraries= |
2b5f62a0 | 26871 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26872 | do |
26873 | for ac_extension in a so sl dylib; do | |
26874 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
26875 | ac_find_libraries=$ac_dir | |
26876 | break 2 | |
26877 | fi | |
26878 | done | |
26879 | done | |
26880 | ||
26881 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26882 | |
21d1c967 GD |
26883 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26884 | result=$? | |
26885 | if test $result = 0; then | |
26886 | ac_path_to_link="" | |
26887 | else | |
26888 | ac_path_to_link=" -L$ac_find_libraries" | |
26889 | fi | |
26890 | ||
89e3b3e4 VZ |
26891 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
26892 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 26893 | fi |
89e3b3e4 | 26894 | |
e6cc62c6 | 26895 | |
89e3b3e4 VZ |
26896 | ac_find_libraries= |
26897 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26898 | do | |
26899 | for ac_extension in a so sl dylib; do | |
26900 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
26901 | ac_find_libraries=$ac_dir | |
26902 | break 2 | |
26903 | fi | |
26904 | done | |
26905 | done | |
26906 | ||
26907 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26908 | |
89e3b3e4 VZ |
26909 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26910 | result=$? | |
26911 | if test $result = 0; then | |
26912 | ac_path_to_link="" | |
26913 | else | |
26914 | ac_path_to_link=" -L$ac_find_libraries" | |
26915 | fi | |
26916 | ||
26917 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
26918 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
26919 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
26920 | fi | |
26921 | ||
26922 | found_gl=1 | |
26923 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
26924 | echo "$as_me:$LINENO: result: yes" >&5 |
26925 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
26926 | fi |
26927 | fi | |
26928 | ||
bb41dcbe | 26929 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
26930 | echo "$as_me:$LINENO: result: no" >&5 |
26931 | echo "${ECHO_T}no" >&6 | |
26932 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
26933 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
26934 | ||
21d1c967 | 26935 | ac_find_libraries= |
2b5f62a0 | 26936 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26937 | do |
26938 | for ac_extension in a so sl dylib; do | |
26939 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
26940 | ac_find_libraries=$ac_dir | |
26941 | break 2 | |
26942 | fi | |
26943 | done | |
26944 | done | |
26945 | ||
26946 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26947 | |
21d1c967 GD |
26948 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26949 | result=$? | |
26950 | if test $result = 0; then | |
26951 | ac_path_to_link="" | |
26952 | else | |
26953 | ac_path_to_link=" -L$ac_find_libraries" | |
26954 | fi | |
26955 | ||
26956 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
26957 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
26958 | echo "$as_me:$LINENO: result: yes" >&5 |
26959 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 26960 | else |
e6cc62c6 VS |
26961 | echo "$as_me:$LINENO: result: no" >&5 |
26962 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
26963 | fi |
26964 | fi | |
e6cc62c6 | 26965 | |
5c6fa7d2 | 26966 | fi |
52127426 | 26967 | |
8284b0c5 | 26968 | |
e6cc62c6 | 26969 | |
21d1c967 | 26970 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
26971 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
26972 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
26973 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
26974 | fi |
26975 | fi | |
90dd450c | 26976 | |
21d1c967 | 26977 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 26978 | USE_OPENGL=1 |
e6cc62c6 | 26979 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 26980 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 26981 | _ACEOF |
21d1c967 | 26982 | |
e6cc62c6 | 26983 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 26984 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 26985 | _ACEOF |
21d1c967 | 26986 | |
520755bb | 26987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 26988 | fi |
10f2d63a | 26989 | fi |
21d1c967 GD |
26990 | |
26991 | if test -z "$TOOLKIT_VPATH" ; then | |
26992 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 26993 | fi |
21d1c967 GD |
26994 | |
26995 | if test -n "$TOOLKIT" ; then | |
26996 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
26997 | fi | |
26998 | ||
fe0895cf | 26999 | UNICODE=0 |
21d1c967 GD |
27000 | lib_unicode_suffix= |
27001 | if test "$wxUSE_UNICODE" = "yes"; then | |
27002 | lib_unicode_suffix=u | |
fe0895cf | 27003 | UNICODE=1 |
90dd450c | 27004 | fi |
698dcdb6 | 27005 | |
21d1c967 | 27006 | lib_debug_suffix= |
6c67131a | 27007 | DEBUG_FLAG=0 |
21d1c967 GD |
27008 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
27009 | lib_debug_suffix=d | |
6c67131a VS |
27010 | DEBUG_FLAG=1 |
27011 | fi | |
27012 | ||
27013 | DEBUG_INFO=0 | |
27014 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27015 | DEBUG_INFO=1 | |
21d1c967 | 27016 | fi |
698dcdb6 | 27017 | |
1cbb95a2 | 27018 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
27019 | |
27020 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27021 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
27022 | |
27023 | if test "$cross_compiling" = "yes"; then | |
27024 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27025 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 27026 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
27027 | fi |
27028 | ||
27029 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27030 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
27031 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
27032 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
27033 | |
27034 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27035 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27036 | ||
27037 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27038 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27039 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27040 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27041 | ||
27042 | case "${host}" in | |
27043 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
27044 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
27045 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
27046 | ;; |
27047 | ||
27048 | *-*-darwin* ) | |
e6cc62c6 | 27049 | |
05159a27 GD |
27050 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
27051 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27052 | ||
27053 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27054 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27055 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27056 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27057 | ||
09d3439c VZ |
27058 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
27059 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 27060 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
27061 | fi |
27062 | ;; | |
27063 | esac | |
27064 | ||
27065 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27066 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27067 | ||
27068 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27069 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27070 | ||
27071 | if test "$wxUSE_OPENGL" = "yes"; then | |
27072 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27073 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27074 | fi | |
27075 | ||
8284b0c5 MB |
27076 | |
27077 | ||
21d1c967 GD |
27078 | if test "$wxUSE_SHARED" = "yes"; then |
27079 | case "${host}" in | |
27080 | *-pc-os2_emx | *-pc-os2-emx | \ | |
27081 | *-pc-msdosdjgpp ) | |
27082 | wxUSE_SHARED=no | |
e6cc62c6 VS |
27083 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
27084 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
27085 | ;; |
27086 | esac | |
27087 | fi | |
27088 | ||
fe0895cf | 27089 | SHARED=0 |
2b5f62a0 | 27090 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 27091 | SHARED=1 |
2b5f62a0 | 27092 | |
e6cc62c6 | 27093 | |
2b5f62a0 VZ |
27094 | found_versioning=no |
27095 | ||
e6cc62c6 | 27096 | |
2b5f62a0 | 27097 | if test $found_versioning = no ; then |
e6cc62c6 VS |
27098 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
27099 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27100 | if test "${wx_cv_version_script+set}" = set; then | |
27101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 27102 | else |
e6cc62c6 | 27103 | |
2b5f62a0 VZ |
27104 | echo "VER_1 { *; };" >conftest.sym |
27105 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 27106 | |
2b5f62a0 VZ |
27107 | if { ac_try=' |
27108 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
27109 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
27110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27111 | (eval $ac_try) 2>&5 | |
27112 | ac_status=$? | |
27113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27114 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
27115 | if test -s conftest.stderr ; then |
27116 | wx_cv_version_script=no | |
27117 | else | |
27118 | wx_cv_version_script=yes | |
27119 | fi | |
27120 | else | |
27121 | wx_cv_version_script=no | |
27122 | fi | |
27123 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 27124 | |
e6cc62c6 VS |
27125 | fi |
27126 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27127 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 27128 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 27129 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
27130 | fi |
27131 | fi | |
21d1c967 | 27132 | |
21d1c967 | 27133 | |
21d1c967 | 27134 | case "${host}" in |
fe0895cf | 27135 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 27136 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 27137 | ;; |
21d1c967 GD |
27138 | |
27139 | *-*-solaris2* ) | |
27140 | if test "$GCC" = yes ; then | |
27141 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
27142 | |
27143 | saveLdflags="$LDFLAGS" | |
27144 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
27145 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
27146 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27147 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27148 | /* confdefs.h. */ |
27149 | _ACEOF | |
27150 | cat confdefs.h >>conftest.$ac_ext | |
27151 | cat >>conftest.$ac_ext <<_ACEOF | |
27152 | /* end confdefs.h. */ | |
27153 | ||
27154 | int | |
27155 | main () | |
27156 | { | |
fe0895cf | 27157 | |
e6cc62c6 VS |
27158 | ; |
27159 | return 0; | |
27160 | } | |
27161 | _ACEOF | |
27162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 27164 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27165 | ac_status=$? |
f95e4495 VS |
27166 | grep -v '^ *+' conftest.er1 >conftest.err |
27167 | rm -f conftest.er1 | |
27168 | cat conftest.err >&5 | |
e6cc62c6 VS |
27169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27170 | (exit $ac_status); } && | |
f95e4495 VS |
27171 | { ac_try='test -z "$ac_c_werror_flag" |
27172 | || test ! -s conftest.err' | |
27173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27174 | (eval $ac_try) 2>&5 | |
27175 | ac_status=$? | |
27176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27177 | (exit $ac_status); }; } && | |
27178 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27180 | (eval $ac_try) 2>&5 | |
27181 | ac_status=$? | |
27182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27183 | (exit $ac_status); }; }; then | |
27184 | ||
27185 | echo "$as_me:$LINENO: result: yes" >&5 | |
27186 | echo "${ECHO_T}yes" >&6 | |
27187 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27188 | ||
27189 | else | |
27190 | echo "$as_me: failed program was:" >&5 | |
27191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27192 | ||
27193 | ||
27194 | echo "$as_me:$LINENO: result: no" >&5 | |
27195 | echo "${ECHO_T}no" >&6 | |
27196 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27197 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 27198 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 27199 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27200 | /* confdefs.h. */ |
27201 | _ACEOF | |
27202 | cat confdefs.h >>conftest.$ac_ext | |
27203 | cat >>conftest.$ac_ext <<_ACEOF | |
27204 | /* end confdefs.h. */ | |
27205 | ||
27206 | int | |
27207 | main () | |
27208 | { | |
27209 | ||
27210 | ; | |
27211 | return 0; | |
27212 | } | |
27213 | _ACEOF | |
27214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 27216 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27217 | ac_status=$? |
f95e4495 VS |
27218 | grep -v '^ *+' conftest.er1 >conftest.err |
27219 | rm -f conftest.er1 | |
27220 | cat conftest.err >&5 | |
e6cc62c6 VS |
27221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27222 | (exit $ac_status); } && | |
f95e4495 VS |
27223 | { ac_try='test -z "$ac_c_werror_flag" |
27224 | || test ! -s conftest.err' | |
27225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27226 | (eval $ac_try) 2>&5 | |
27227 | ac_status=$? | |
27228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27229 | (exit $ac_status); }; } && | |
27230 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27232 | (eval $ac_try) 2>&5 | |
27233 | ac_status=$? | |
27234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27235 | (exit $ac_status); }; }; then | |
27236 | ||
27237 | echo "$as_me:$LINENO: result: yes" >&5 | |
27238 | echo "${ECHO_T}yes" >&6 | |
27239 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27240 | else | |
27241 | echo "$as_me: failed program was:" >&5 | |
27242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 27243 | |
fe0895cf | 27244 | |
e6cc62c6 VS |
27245 | echo "$as_me:$LINENO: result: no" >&5 |
27246 | echo "${ECHO_T}no" >&6 | |
27247 | ||
fe0895cf | 27248 | fi |
f95e4495 VS |
27249 | rm -f conftest.err conftest.$ac_objext \ |
27250 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
27251 | |
27252 | fi | |
f95e4495 VS |
27253 | rm -f conftest.err conftest.$ac_objext \ |
27254 | conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 27255 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
27256 | else |
27257 | SHARED_LD="${CXX} -G -o" | |
27258 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 27259 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
27260 | fi |
27261 | ;; | |
0f1bc9c2 VS |
27262 | |
27263 | powerpc-*-darwin* ) | |
ef0add05 VS |
27264 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
27265 | cat <<EOF >change-install-names | |
27266 | #!/bin/sh | |
27267 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27268 | inst_cmd="install_name_tool " | |
27269 | for i in \${libnames} ; do | |
27270 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27271 | done | |
27272 | \${inst_cmd} \${3} | |
27273 | EOF | |
27274 | chmod +x change-install-names | |
0f1bc9c2 VS |
27275 | ;; |
27276 | ||
21d1c967 GD |
27277 | esac |
27278 | ||
27279 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27280 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27281 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27282 | fi | |
27283 | ||
27284 | WX_TARGET_LIBRARY_TYPE="so" | |
27285 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 27286 | fi |
10f2d63a | 27287 | |
21d1c967 GD |
27288 | if test "$wxUSE_SHARED" = "no"; then |
27289 | ||
27290 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27291 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27292 | fi | |
27293 | ||
ac0c4cc3 | 27294 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
27295 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
27296 | fi | |
27297 | ||
27298 | if test "$wxUSE_OPENGL" = "yes"; then | |
27299 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27300 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27301 | else | |
27302 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27303 | fi | |
27304 | ||
27305 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27306 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27307 | ||
27308 | WX_TARGET_LIBRARY_TYPE="a" | |
27309 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
27310 | |
27311 | STATIC_FLAG="yes" | |
27312 | else | |
27313 | STATIC_FLAG="no" | |
90dd450c | 27314 | fi |
1e487827 | 27315 | |
09d3439c | 27316 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 27317 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
27318 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
27319 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 27320 | |
21d1c967 GD |
27321 | # Extract the first word of "Rez", so it can be a program name with args. |
27322 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
27323 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27325 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 27327 | else |
21d1c967 GD |
27328 | if test -n "$RESCOMP"; then |
27329 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 27330 | else |
e6cc62c6 VS |
27331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27332 | for as_dir in $PATH | |
27333 | do | |
27334 | IFS=$as_save_IFS | |
27335 | test -z "$as_dir" && as_dir=. | |
27336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27337 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27338 | ac_cv_prog_RESCOMP="Rez" | |
27339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27340 | break 2 | |
27341 | fi | |
27342 | done | |
27343 | done | |
27344 | ||
21d1c967 | 27345 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 27346 | fi |
b93d0d08 | 27347 | fi |
e6cc62c6 | 27348 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 27349 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
27350 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
27351 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 27352 | else |
e6cc62c6 VS |
27353 | echo "$as_me:$LINENO: result: no" >&5 |
27354 | echo "${ECHO_T}no" >&6 | |
90dd450c | 27355 | fi |
b93d0d08 | 27356 | |
21d1c967 GD |
27357 | # Extract the first word of "DeRez", so it can be a program name with args. |
27358 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
27359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27361 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 27363 | else |
21d1c967 GD |
27364 | if test -n "$DEREZ"; then |
27365 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 27366 | else |
e6cc62c6 VS |
27367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27368 | for as_dir in $PATH | |
27369 | do | |
27370 | IFS=$as_save_IFS | |
27371 | test -z "$as_dir" && as_dir=. | |
27372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27374 | ac_cv_prog_DEREZ="DeRez" | |
27375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27376 | break 2 | |
27377 | fi | |
27378 | done | |
27379 | done | |
27380 | ||
21d1c967 | 27381 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 27382 | fi |
90dd450c | 27383 | fi |
e6cc62c6 | 27384 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 27385 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
27386 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
27387 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 27388 | else |
e6cc62c6 VS |
27389 | echo "$as_me:$LINENO: result: no" >&5 |
27390 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 27391 | fi |
698dcdb6 | 27392 | |
36825681 GD |
27393 | # Extract the first word of "SetFile", so it can be a program name with args. |
27394 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
27395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27397 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
27399 | else |
27400 | if test -n "$SETFILE"; then | |
27401 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27402 | else | |
e6cc62c6 VS |
27403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27404 | for as_dir in $PATH | |
27405 | do | |
27406 | IFS=$as_save_IFS | |
27407 | test -z "$as_dir" && as_dir=. | |
27408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27410 | ac_cv_prog_SETFILE="SetFile" | |
27411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27412 | break 2 | |
27413 | fi | |
27414 | done | |
27415 | done | |
27416 | ||
36825681 GD |
27417 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
27418 | fi | |
27419 | fi | |
e6cc62c6 | 27420 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 27421 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
27422 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
27423 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 27424 | else |
e6cc62c6 VS |
27425 | echo "$as_me:$LINENO: result: no" >&5 |
27426 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
27427 | fi |
27428 | ||
e6cc62c6 | 27429 | |
09d3439c | 27430 | MACSETFILE="\$(SETFILE)" |
64440d77 | 27431 | |
09d3439c VZ |
27432 | if test "$wxUSE_MAC" = 1; then |
27433 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 27434 | |
09d3439c VZ |
27435 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
27436 | else | |
27437 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27438 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27439 | fi | |
64440d77 | 27440 | else |
09d3439c VZ |
27441 | MACSETFILE="@#" |
27442 | MACRESWXCONFIG="#" | |
64440d77 | 27443 | |
09d3439c | 27444 | if test "$wxUSE_PM" = 1; then |
36825681 | 27445 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
27446 | else |
27447 | MACRESCOMP="@#" | |
90dd450c | 27448 | fi |
4f14bcd8 | 27449 | fi |
10f2d63a | 27450 | |
8284b0c5 | 27451 | |
e6cc62c6 VS |
27452 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
27453 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27454 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 27456 | else |
e6cc62c6 | 27457 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27458 | /* confdefs.h. */ |
27459 | _ACEOF | |
27460 | cat confdefs.h >>conftest.$ac_ext | |
27461 | cat >>conftest.$ac_ext <<_ACEOF | |
27462 | /* end confdefs.h. */ | |
27463 | $ac_includes_default | |
27464 | int | |
27465 | main () | |
27466 | { | |
27467 | if ((mode_t *) 0) | |
27468 | return 0; | |
27469 | if (sizeof (mode_t)) | |
27470 | return 0; | |
27471 | ; | |
27472 | return 0; | |
27473 | } | |
27474 | _ACEOF | |
27475 | rm -f conftest.$ac_objext | |
27476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27477 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27478 | ac_status=$? |
f95e4495 VS |
27479 | grep -v '^ *+' conftest.er1 >conftest.err |
27480 | rm -f conftest.er1 | |
27481 | cat conftest.err >&5 | |
e6cc62c6 VS |
27482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27483 | (exit $ac_status); } && | |
f95e4495 VS |
27484 | { ac_try='test -z "$ac_c_werror_flag" |
27485 | || test ! -s conftest.err' | |
27486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27487 | (eval $ac_try) 2>&5 | |
27488 | ac_status=$? | |
27489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27490 | (exit $ac_status); }; } && | |
27491 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27493 | (eval $ac_try) 2>&5 | |
27494 | ac_status=$? | |
27495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27496 | (exit $ac_status); }; }; then | |
27497 | ac_cv_type_mode_t=yes | |
a0b9e27f | 27498 | else |
e6cc62c6 VS |
27499 | echo "$as_me: failed program was:" >&5 |
27500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 27501 | |
e6cc62c6 | 27502 | ac_cv_type_mode_t=no |
a0b9e27f | 27503 | fi |
f95e4495 | 27504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
52127426 | 27505 | fi |
e6cc62c6 VS |
27506 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
27507 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27508 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
27509 | : |
27510 | else | |
a0b9e27f | 27511 | |
e6cc62c6 VS |
27512 | cat >>confdefs.h <<_ACEOF |
27513 | #define mode_t int | |
27514 | _ACEOF | |
8284b0c5 MB |
27515 | |
27516 | fi | |
27517 | ||
e6cc62c6 VS |
27518 | echo "$as_me:$LINENO: checking for off_t" >&5 |
27519 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
27520 | if test "${ac_cv_type_off_t+set}" = set; then | |
27521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27522 | else |
e6cc62c6 | 27523 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27524 | /* confdefs.h. */ |
27525 | _ACEOF | |
27526 | cat confdefs.h >>conftest.$ac_ext | |
27527 | cat >>conftest.$ac_ext <<_ACEOF | |
27528 | /* end confdefs.h. */ | |
27529 | $ac_includes_default | |
27530 | int | |
27531 | main () | |
27532 | { | |
27533 | if ((off_t *) 0) | |
27534 | return 0; | |
27535 | if (sizeof (off_t)) | |
27536 | return 0; | |
27537 | ; | |
27538 | return 0; | |
27539 | } | |
27540 | _ACEOF | |
27541 | rm -f conftest.$ac_objext | |
27542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27543 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27544 | ac_status=$? |
f95e4495 VS |
27545 | grep -v '^ *+' conftest.er1 >conftest.err |
27546 | rm -f conftest.er1 | |
27547 | cat conftest.err >&5 | |
e6cc62c6 VS |
27548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27549 | (exit $ac_status); } && | |
f95e4495 VS |
27550 | { ac_try='test -z "$ac_c_werror_flag" |
27551 | || test ! -s conftest.err' | |
27552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27553 | (eval $ac_try) 2>&5 | |
27554 | ac_status=$? | |
27555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27556 | (exit $ac_status); }; } && | |
27557 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27559 | (eval $ac_try) 2>&5 | |
27560 | ac_status=$? | |
27561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27562 | (exit $ac_status); }; }; then | |
27563 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 27564 | else |
e6cc62c6 VS |
27565 | echo "$as_me: failed program was:" >&5 |
27566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 27567 | |
e6cc62c6 | 27568 | ac_cv_type_off_t=no |
8284b0c5 | 27569 | fi |
f95e4495 | 27570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 27571 | fi |
e6cc62c6 VS |
27572 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
27573 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
27574 | if test $ac_cv_type_off_t = yes; then | |
27575 | : | |
247f5006 VZ |
27576 | else |
27577 | ||
e6cc62c6 | 27578 | cat >>confdefs.h <<_ACEOF |
90dd450c | 27579 | #define off_t long |
e6cc62c6 | 27580 | _ACEOF |
10f2d63a | 27581 | |
90dd450c | 27582 | fi |
10f2d63a | 27583 | |
e6cc62c6 VS |
27584 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
27585 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
27586 | if test "${ac_cv_type_pid_t+set}" = set; then | |
27587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27588 | else |
e6cc62c6 | 27589 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27590 | /* confdefs.h. */ |
27591 | _ACEOF | |
27592 | cat confdefs.h >>conftest.$ac_ext | |
27593 | cat >>conftest.$ac_ext <<_ACEOF | |
27594 | /* end confdefs.h. */ | |
27595 | $ac_includes_default | |
27596 | int | |
27597 | main () | |
27598 | { | |
27599 | if ((pid_t *) 0) | |
27600 | return 0; | |
27601 | if (sizeof (pid_t)) | |
27602 | return 0; | |
27603 | ; | |
27604 | return 0; | |
27605 | } | |
27606 | _ACEOF | |
27607 | rm -f conftest.$ac_objext | |
27608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27609 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27610 | ac_status=$? |
f95e4495 VS |
27611 | grep -v '^ *+' conftest.er1 >conftest.err |
27612 | rm -f conftest.er1 | |
27613 | cat conftest.err >&5 | |
e6cc62c6 VS |
27614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27615 | (exit $ac_status); } && | |
f95e4495 VS |
27616 | { ac_try='test -z "$ac_c_werror_flag" |
27617 | || test ! -s conftest.err' | |
27618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27619 | (eval $ac_try) 2>&5 | |
27620 | ac_status=$? | |
27621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27622 | (exit $ac_status); }; } && | |
27623 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27625 | (eval $ac_try) 2>&5 | |
27626 | ac_status=$? | |
27627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27628 | (exit $ac_status); }; }; then | |
90dd450c | 27629 | ac_cv_type_pid_t=yes |
698dcdb6 | 27630 | else |
e6cc62c6 VS |
27631 | echo "$as_me: failed program was:" >&5 |
27632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 27633 | |
e6cc62c6 VS |
27634 | ac_cv_type_pid_t=no |
27635 | fi | |
f95e4495 | 27636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27637 | fi |
e6cc62c6 VS |
27638 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
27639 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
27640 | if test $ac_cv_type_pid_t = yes; then | |
27641 | : | |
27642 | else | |
27643 | ||
27644 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 27645 | #define pid_t int |
e6cc62c6 | 27646 | _ACEOF |
10f2d63a | 27647 | |
7b4a847f RR |
27648 | fi |
27649 | ||
e6cc62c6 VS |
27650 | echo "$as_me:$LINENO: checking for size_t" >&5 |
27651 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
27652 | if test "${ac_cv_type_size_t+set}" = set; then | |
27653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 27654 | else |
e6cc62c6 | 27655 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27656 | /* confdefs.h. */ |
27657 | _ACEOF | |
27658 | cat confdefs.h >>conftest.$ac_ext | |
27659 | cat >>conftest.$ac_ext <<_ACEOF | |
27660 | /* end confdefs.h. */ | |
27661 | $ac_includes_default | |
27662 | int | |
27663 | main () | |
27664 | { | |
27665 | if ((size_t *) 0) | |
27666 | return 0; | |
27667 | if (sizeof (size_t)) | |
27668 | return 0; | |
27669 | ; | |
27670 | return 0; | |
27671 | } | |
27672 | _ACEOF | |
27673 | rm -f conftest.$ac_objext | |
27674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27675 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27676 | ac_status=$? |
f95e4495 VS |
27677 | grep -v '^ *+' conftest.er1 >conftest.err |
27678 | rm -f conftest.er1 | |
27679 | cat conftest.err >&5 | |
e6cc62c6 VS |
27680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27681 | (exit $ac_status); } && | |
f95e4495 VS |
27682 | { ac_try='test -z "$ac_c_werror_flag" |
27683 | || test ! -s conftest.err' | |
27684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27685 | (eval $ac_try) 2>&5 | |
27686 | ac_status=$? | |
27687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27688 | (exit $ac_status); }; } && | |
27689 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27691 | (eval $ac_try) 2>&5 | |
27692 | ac_status=$? | |
27693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27694 | (exit $ac_status); }; }; then | |
90dd450c | 27695 | ac_cv_type_size_t=yes |
18dbb1f6 | 27696 | else |
e6cc62c6 VS |
27697 | echo "$as_me: failed program was:" >&5 |
27698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 27699 | |
e6cc62c6 | 27700 | ac_cv_type_size_t=no |
a0b9e27f | 27701 | fi |
f95e4495 | 27702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27703 | fi |
27704 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
27705 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
27706 | if test $ac_cv_type_size_t = yes; then | |
27707 | : | |
27708 | else | |
27709 | ||
27710 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 27711 | #define size_t unsigned |
e6cc62c6 | 27712 | _ACEOF |
90dd450c VZ |
27713 | |
27714 | fi | |
27715 | ||
e6cc62c6 VS |
27716 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
27717 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
27718 | if test "${ac_cv_type_uid_t+set}" = set; then | |
27719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 27720 | else |
e6cc62c6 | 27721 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27722 | /* confdefs.h. */ |
27723 | _ACEOF | |
27724 | cat confdefs.h >>conftest.$ac_ext | |
27725 | cat >>conftest.$ac_ext <<_ACEOF | |
27726 | /* end confdefs.h. */ | |
90dd450c | 27727 | #include <sys/types.h> |
e6cc62c6 VS |
27728 | |
27729 | _ACEOF | |
90dd450c | 27730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 27731 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 27732 | ac_cv_type_uid_t=yes |
b3e8d00a | 27733 | else |
90dd450c | 27734 | ac_cv_type_uid_t=no |
b3e8d00a | 27735 | fi |
90dd450c | 27736 | rm -f conftest* |
b3e8d00a | 27737 | |
4f14bcd8 | 27738 | fi |
e6cc62c6 VS |
27739 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
27740 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 27741 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
27742 | |
27743 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 27744 | #define uid_t int |
e6cc62c6 | 27745 | _ACEOF |
247f5006 | 27746 | |
e6cc62c6 VS |
27747 | |
27748 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 27749 | #define gid_t int |
e6cc62c6 | 27750 | _ACEOF |
4f14bcd8 | 27751 | |
b3e8d00a | 27752 | fi |
b3e8d00a | 27753 | |
8284b0c5 MB |
27754 | |
27755 | ||
e6cc62c6 VS |
27756 | |
27757 | ac_ext=cc | |
4f14bcd8 | 27758 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27762 | ||
27763 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
27764 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
27765 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
27766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27767 | else | |
27768 | ||
27769 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27770 | /* confdefs.h. */ |
27771 | _ACEOF | |
27772 | cat confdefs.h >>conftest.$ac_ext | |
27773 | cat >>conftest.$ac_ext <<_ACEOF | |
27774 | /* end confdefs.h. */ | |
90dd450c | 27775 | #include <stddef.h> |
e6cc62c6 VS |
27776 | int |
27777 | main () | |
27778 | { | |
90dd450c VZ |
27779 | |
27780 | return 0; } | |
27781 | ||
27782 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
27783 | ||
27784 | int bar() { | |
e6cc62c6 VS |
27785 | |
27786 | ; | |
27787 | return 0; | |
27788 | } | |
27789 | _ACEOF | |
27790 | rm -f conftest.$ac_objext | |
27791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27792 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27793 | ac_status=$? |
f95e4495 VS |
27794 | grep -v '^ *+' conftest.er1 >conftest.err |
27795 | rm -f conftest.er1 | |
27796 | cat conftest.err >&5 | |
e6cc62c6 VS |
27797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27798 | (exit $ac_status); } && | |
f95e4495 VS |
27799 | { ac_try='test -z "$ac_cxx_werror_flag" |
27800 | || test ! -s conftest.err' | |
27801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27802 | (eval $ac_try) 2>&5 | |
27803 | ac_status=$? | |
27804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27805 | (exit $ac_status); }; } && | |
27806 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27808 | (eval $ac_try) 2>&5 | |
27809 | ac_status=$? | |
27810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27811 | (exit $ac_status); }; }; then | |
90dd450c | 27812 | wx_cv_size_t_is_uint=no |
698dcdb6 | 27813 | else |
e6cc62c6 VS |
27814 | echo "$as_me: failed program was:" >&5 |
27815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27816 | ||
27817 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 27818 | |
247f5006 | 27819 | fi |
f95e4495 | 27820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 27821 | |
a0b9e27f | 27822 | |
e6cc62c6 VS |
27823 | fi |
27824 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
27825 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 27826 | |
90dd450c | 27827 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 27828 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27829 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 27830 | _ACEOF |
698dcdb6 | 27831 | |
90dd450c | 27832 | else |
e6cc62c6 VS |
27833 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
27834 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
27835 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
27836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 27837 | else |
e6cc62c6 | 27838 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27839 | /* confdefs.h. */ |
27840 | _ACEOF | |
27841 | cat confdefs.h >>conftest.$ac_ext | |
27842 | cat >>conftest.$ac_ext <<_ACEOF | |
27843 | /* end confdefs.h. */ | |
90dd450c | 27844 | #include <stddef.h> |
e6cc62c6 VS |
27845 | int |
27846 | main () | |
27847 | { | |
90dd450c VZ |
27848 | |
27849 | return 0; } | |
27850 | ||
27851 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
27852 | ||
27853 | int bar() { | |
e6cc62c6 VS |
27854 | |
27855 | ; | |
27856 | return 0; | |
27857 | } | |
27858 | _ACEOF | |
27859 | rm -f conftest.$ac_objext | |
27860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27861 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27862 | ac_status=$? |
f95e4495 VS |
27863 | grep -v '^ *+' conftest.er1 >conftest.err |
27864 | rm -f conftest.er1 | |
27865 | cat conftest.err >&5 | |
e6cc62c6 VS |
27866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27867 | (exit $ac_status); } && | |
f95e4495 VS |
27868 | { ac_try='test -z "$ac_cxx_werror_flag" |
27869 | || test ! -s conftest.err' | |
27870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27871 | (eval $ac_try) 2>&5 | |
27872 | ac_status=$? | |
27873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27874 | (exit $ac_status); }; } && | |
27875 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27877 | (eval $ac_try) 2>&5 | |
27878 | ac_status=$? | |
27879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27880 | (exit $ac_status); }; }; then | |
90dd450c | 27881 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 27882 | else |
e6cc62c6 VS |
27883 | echo "$as_me: failed program was:" >&5 |
27884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27885 | ||
27886 | wx_cv_size_t_is_ulong=yes | |
27887 | ||
247f5006 | 27888 | fi |
f95e4495 | 27889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27890 | |
e6cc62c6 VS |
27891 | fi |
27892 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
27893 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 27894 | |
90dd450c | 27895 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 27896 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27897 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 27898 | _ACEOF |
4f14bcd8 GD |
27899 | |
27900 | fi | |
90dd450c | 27901 | fi |
1e487827 | 27902 | |
90dd450c | 27903 | ac_ext=c |
4f14bcd8 | 27904 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 27908 | |
5c6fa7d2 | 27909 | |
8284b0c5 | 27910 | |
e6cc62c6 VS |
27911 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
27912 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
27913 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
27914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27915 | else |
e6cc62c6 VS |
27916 | |
27917 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27918 | /* confdefs.h. */ |
27919 | _ACEOF | |
27920 | cat confdefs.h >>conftest.$ac_ext | |
27921 | cat >>conftest.$ac_ext <<_ACEOF | |
27922 | /* end confdefs.h. */ | |
90dd450c | 27923 | #include <pwd.h> |
e6cc62c6 VS |
27924 | int |
27925 | main () | |
27926 | { | |
f6bcfd97 | 27927 | |
90dd450c VZ |
27928 | char *p; |
27929 | struct passwd *pw; | |
27930 | p = pw->pw_gecos; | |
e6cc62c6 VS |
27931 | |
27932 | ; | |
27933 | return 0; | |
27934 | } | |
27935 | _ACEOF | |
27936 | rm -f conftest.$ac_objext | |
27937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 27938 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27939 | ac_status=$? |
f95e4495 VS |
27940 | grep -v '^ *+' conftest.er1 >conftest.err |
27941 | rm -f conftest.er1 | |
27942 | cat conftest.err >&5 | |
e6cc62c6 VS |
27943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27944 | (exit $ac_status); } && | |
f95e4495 VS |
27945 | { ac_try='test -z "$ac_c_werror_flag" |
27946 | || test ! -s conftest.err' | |
27947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27948 | (eval $ac_try) 2>&5 | |
27949 | ac_status=$? | |
27950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27951 | (exit $ac_status); }; } && | |
27952 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27954 | (eval $ac_try) 2>&5 | |
27955 | ac_status=$? | |
27956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27957 | (exit $ac_status); }; }; then | |
27958 | ||
90dd450c | 27959 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 27960 | |
10f2d63a | 27961 | else |
e6cc62c6 VS |
27962 | echo "$as_me: failed program was:" >&5 |
27963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27964 | ||
27965 | ||
90dd450c | 27966 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 27967 | |
247f5006 VZ |
27968 | |
27969 | fi | |
f95e4495 | 27970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27971 | |
e6cc62c6 VS |
27972 | |
27973 | fi | |
27974 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
27975 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 27976 | |
90dd450c | 27977 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 27978 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27979 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 27980 | _ACEOF |
c521c494 | 27981 | |
90dd450c | 27982 | fi |
4f14bcd8 | 27983 | |
8284b0c5 | 27984 | |
d29b553b | 27985 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 27986 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 27987 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 27988 | _ACEOF |
d74f4b5a | 27989 | |
8284b0c5 | 27990 | |
d74f4b5a VZ |
27991 | WCSLEN_FOUND=0 |
27992 | WCHAR_LINK= | |
e6cc62c6 VS |
27993 | |
27994 | for ac_func in wcslen | |
7a30264c | 27995 | do |
e6cc62c6 VS |
27996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27997 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27999 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28001 | else | |
28002 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28003 | /* confdefs.h. */ |
28004 | _ACEOF | |
28005 | cat confdefs.h >>conftest.$ac_ext | |
28006 | cat >>conftest.$ac_ext <<_ACEOF | |
28007 | /* end confdefs.h. */ | |
f95e4495 VS |
28008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28010 | #define $ac_func innocuous_$ac_func | |
28011 | ||
7a30264c | 28012 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28013 | which can conflict with char $ac_func (); below. |
28014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28015 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 28016 | |
e6cc62c6 VS |
28017 | #ifdef __STDC__ |
28018 | # include <limits.h> | |
28019 | #else | |
28020 | # include <assert.h> | |
28021 | #endif | |
f95e4495 VS |
28022 | |
28023 | #undef $ac_func | |
28024 | ||
4f14bcd8 | 28025 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28026 | #ifdef __cplusplus |
28027 | extern "C" | |
28028 | { | |
28029 | #endif | |
4f14bcd8 | 28030 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28031 | builtin and then its argument prototype would still apply. */ |
28032 | char $ac_func (); | |
7a30264c VZ |
28033 | /* The GNU C library defines this for functions which it implements |
28034 | to always fail with ENOSYS. Some functions are actually named | |
28035 | something starting with __ and the normal name is an alias. */ | |
28036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28037 | choke me | |
28038 | #else | |
e6cc62c6 VS |
28039 | char (*f) () = $ac_func; |
28040 | #endif | |
28041 | #ifdef __cplusplus | |
28042 | } | |
7a30264c VZ |
28043 | #endif |
28044 | ||
e6cc62c6 VS |
28045 | int |
28046 | main () | |
28047 | { | |
28048 | return f != $ac_func; | |
28049 | ; | |
28050 | return 0; | |
28051 | } | |
28052 | _ACEOF | |
28053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28055 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28056 | ac_status=$? |
f95e4495 VS |
28057 | grep -v '^ *+' conftest.er1 >conftest.err |
28058 | rm -f conftest.er1 | |
28059 | cat conftest.err >&5 | |
e6cc62c6 VS |
28060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28061 | (exit $ac_status); } && | |
f95e4495 VS |
28062 | { ac_try='test -z "$ac_c_werror_flag" |
28063 | || test ! -s conftest.err' | |
28064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28065 | (eval $ac_try) 2>&5 | |
28066 | ac_status=$? | |
28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28068 | (exit $ac_status); }; } && | |
28069 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28071 | (eval $ac_try) 2>&5 | |
28072 | ac_status=$? | |
28073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28074 | (exit $ac_status); }; }; then | |
28075 | eval "$as_ac_var=yes" | |
28076 | else | |
28077 | echo "$as_me: failed program was:" >&5 | |
28078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28079 | ||
28080 | eval "$as_ac_var=no" | |
28081 | fi | |
f95e4495 VS |
28082 | rm -f conftest.err conftest.$ac_objext \ |
28083 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28084 | fi |
28085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28087 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28088 | cat >>confdefs.h <<_ACEOF | |
28089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28090 | _ACEOF | |
d74f4b5a | 28091 | WCSLEN_FOUND=1 |
7a30264c VZ |
28092 | fi |
28093 | done | |
9d8deca0 | 28094 | |
8284b0c5 | 28095 | |
d74f4b5a | 28096 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 28097 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
28098 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
28099 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28100 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28102 | else |
e6cc62c6 | 28103 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28104 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 28105 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28106 | /* confdefs.h. */ |
28107 | _ACEOF | |
28108 | cat confdefs.h >>conftest.$ac_ext | |
28109 | cat >>conftest.$ac_ext <<_ACEOF | |
28110 | /* end confdefs.h. */ | |
28111 | ||
4f14bcd8 | 28112 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28113 | #ifdef __cplusplus |
28114 | extern "C" | |
28115 | #endif | |
4f14bcd8 | 28116 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28117 | builtin and then its argument prototype would still apply. */ |
28118 | char wcslen (); | |
28119 | int | |
28120 | main () | |
28121 | { | |
28122 | wcslen (); | |
28123 | ; | |
28124 | return 0; | |
28125 | } | |
28126 | _ACEOF | |
28127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28129 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28130 | ac_status=$? |
f95e4495 VS |
28131 | grep -v '^ *+' conftest.er1 >conftest.err |
28132 | rm -f conftest.er1 | |
28133 | cat conftest.err >&5 | |
e6cc62c6 VS |
28134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28135 | (exit $ac_status); } && | |
f95e4495 VS |
28136 | { ac_try='test -z "$ac_c_werror_flag" |
28137 | || test ! -s conftest.err' | |
28138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28139 | (eval $ac_try) 2>&5 | |
28140 | ac_status=$? | |
28141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28142 | (exit $ac_status); }; } && | |
28143 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28145 | (eval $ac_try) 2>&5 | |
28146 | ac_status=$? | |
28147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28148 | (exit $ac_status); }; }; then | |
28149 | ac_cv_lib_msvcrt_wcslen=yes | |
28150 | else | |
28151 | echo "$as_me: failed program was:" >&5 | |
28152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28153 | ||
28154 | ac_cv_lib_msvcrt_wcslen=no | |
28155 | fi | |
f95e4495 VS |
28156 | rm -f conftest.err conftest.$ac_objext \ |
28157 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28158 | LIBS=$ac_check_lib_save_LIBS |
28159 | fi | |
28160 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28161 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28162 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 28163 | WCHAR_OK=1 |
d29b553b | 28164 | fi |
698dcdb6 | 28165 | |
7a30264c | 28166 | else |
e6cc62c6 VS |
28167 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
28168 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28169 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28171 | else |
e6cc62c6 | 28172 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28173 | LIBS="-lw $LIBS" |
e6cc62c6 | 28174 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28175 | /* confdefs.h. */ |
28176 | _ACEOF | |
28177 | cat confdefs.h >>conftest.$ac_ext | |
28178 | cat >>conftest.$ac_ext <<_ACEOF | |
28179 | /* end confdefs.h. */ | |
28180 | ||
4f14bcd8 | 28181 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28182 | #ifdef __cplusplus |
28183 | extern "C" | |
28184 | #endif | |
4f14bcd8 | 28185 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28186 | builtin and then its argument prototype would still apply. */ |
28187 | char wcslen (); | |
28188 | int | |
28189 | main () | |
28190 | { | |
28191 | wcslen (); | |
28192 | ; | |
28193 | return 0; | |
28194 | } | |
28195 | _ACEOF | |
28196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28198 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28199 | ac_status=$? |
f95e4495 VS |
28200 | grep -v '^ *+' conftest.er1 >conftest.err |
28201 | rm -f conftest.er1 | |
28202 | cat conftest.err >&5 | |
e6cc62c6 VS |
28203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28204 | (exit $ac_status); } && | |
f95e4495 VS |
28205 | { ac_try='test -z "$ac_c_werror_flag" |
28206 | || test ! -s conftest.err' | |
28207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28208 | (eval $ac_try) 2>&5 | |
28209 | ac_status=$? | |
28210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28211 | (exit $ac_status); }; } && | |
28212 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28214 | (eval $ac_try) 2>&5 | |
28215 | ac_status=$? | |
28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28217 | (exit $ac_status); }; }; then | |
28218 | ac_cv_lib_w_wcslen=yes | |
28219 | else | |
28220 | echo "$as_me: failed program was:" >&5 | |
28221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28222 | ||
28223 | ac_cv_lib_w_wcslen=no | |
28224 | fi | |
f95e4495 VS |
28225 | rm -f conftest.err conftest.$ac_objext \ |
28226 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28227 | LIBS=$ac_check_lib_save_LIBS |
28228 | fi | |
28229 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28230 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28231 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 28232 | |
7a30264c | 28233 | WCHAR_LINK=" -lw" |
d74f4b5a | 28234 | WCSLEN_FOUND=1 |
e6cc62c6 | 28235 | |
4f14bcd8 | 28236 | fi |
10f2d63a | 28237 | |
7a30264c | 28238 | fi |
d29b553b | 28239 | fi |
95c8801c | 28240 | |
d74f4b5a | 28241 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 28242 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28243 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 28244 | _ACEOF |
10f2d63a | 28245 | |
d74f4b5a | 28246 | fi |
52127426 | 28247 | |
e6cc62c6 VS |
28248 | |
28249 | for ac_func in wcsrtombs | |
eb4efbdc | 28250 | do |
e6cc62c6 VS |
28251 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28252 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28253 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28254 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28256 | else | |
28257 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28258 | /* confdefs.h. */ |
28259 | _ACEOF | |
28260 | cat confdefs.h >>conftest.$ac_ext | |
28261 | cat >>conftest.$ac_ext <<_ACEOF | |
28262 | /* end confdefs.h. */ | |
f95e4495 VS |
28263 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28265 | #define $ac_func innocuous_$ac_func | |
28266 | ||
eb4efbdc | 28267 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28268 | which can conflict with char $ac_func (); below. |
28269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28270 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 28271 | |
e6cc62c6 VS |
28272 | #ifdef __STDC__ |
28273 | # include <limits.h> | |
28274 | #else | |
28275 | # include <assert.h> | |
28276 | #endif | |
f95e4495 VS |
28277 | |
28278 | #undef $ac_func | |
28279 | ||
eb4efbdc | 28280 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28281 | #ifdef __cplusplus |
28282 | extern "C" | |
28283 | { | |
28284 | #endif | |
4f14bcd8 | 28285 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28286 | builtin and then its argument prototype would still apply. */ |
28287 | char $ac_func (); | |
10f2d63a VZ |
28288 | /* The GNU C library defines this for functions which it implements |
28289 | to always fail with ENOSYS. Some functions are actually named | |
28290 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 28291 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
28292 | choke me |
28293 | #else | |
e6cc62c6 VS |
28294 | char (*f) () = $ac_func; |
28295 | #endif | |
28296 | #ifdef __cplusplus | |
28297 | } | |
10f2d63a VZ |
28298 | #endif |
28299 | ||
e6cc62c6 VS |
28300 | int |
28301 | main () | |
28302 | { | |
28303 | return f != $ac_func; | |
28304 | ; | |
28305 | return 0; | |
28306 | } | |
28307 | _ACEOF | |
28308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28310 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28311 | ac_status=$? |
f95e4495 VS |
28312 | grep -v '^ *+' conftest.er1 >conftest.err |
28313 | rm -f conftest.er1 | |
28314 | cat conftest.err >&5 | |
e6cc62c6 VS |
28315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28316 | (exit $ac_status); } && | |
f95e4495 VS |
28317 | { ac_try='test -z "$ac_c_werror_flag" |
28318 | || test ! -s conftest.err' | |
28319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28320 | (eval $ac_try) 2>&5 | |
28321 | ac_status=$? | |
28322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28323 | (exit $ac_status); }; } && | |
28324 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28326 | (eval $ac_try) 2>&5 | |
28327 | ac_status=$? | |
28328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28329 | (exit $ac_status); }; }; then | |
28330 | eval "$as_ac_var=yes" | |
28331 | else | |
28332 | echo "$as_me: failed program was:" >&5 | |
28333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28334 | ||
28335 | eval "$as_ac_var=no" | |
28336 | fi | |
f95e4495 VS |
28337 | rm -f conftest.err conftest.$ac_objext \ |
28338 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28339 | fi |
28340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28341 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28342 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28343 | cat >>confdefs.h <<_ACEOF | |
28344 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28345 | _ACEOF | |
270a909e | 28346 | |
4f14bcd8 | 28347 | fi |
247f5006 | 28348 | done |
1e487827 | 28349 | |
af15babd | 28350 | else |
e6cc62c6 VS |
28351 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
28352 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 28353 | fi |
52127426 | 28354 | |
8284b0c5 | 28355 | |
e6cc62c6 VS |
28356 | |
28357 | ac_ext=cc | |
247f5006 | 28358 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28362 | ||
af15babd | 28363 | |
247f5006 VZ |
28364 | |
28365 | for ac_func in vsnprintf | |
28366 | do | |
e6cc62c6 VS |
28367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28368 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28370 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28372 | else | |
28373 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28374 | /* confdefs.h. */ |
28375 | _ACEOF | |
28376 | cat confdefs.h >>conftest.$ac_ext | |
28377 | cat >>conftest.$ac_ext <<_ACEOF | |
28378 | /* end confdefs.h. */ | |
f95e4495 VS |
28379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28381 | #define $ac_func innocuous_$ac_func | |
28382 | ||
247f5006 | 28383 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28384 | which can conflict with char $ac_func (); below. |
28385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28386 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 28387 | |
e6cc62c6 VS |
28388 | #ifdef __STDC__ |
28389 | # include <limits.h> | |
28390 | #else | |
28391 | # include <assert.h> | |
28392 | #endif | |
f95e4495 VS |
28393 | |
28394 | #undef $ac_func | |
28395 | ||
247f5006 VZ |
28396 | /* Override any gcc2 internal prototype to avoid an error. */ |
28397 | #ifdef __cplusplus | |
28398 | extern "C" | |
e6cc62c6 | 28399 | { |
247f5006 VZ |
28400 | #endif |
28401 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28402 | builtin and then its argument prototype would still apply. */ |
28403 | char $ac_func (); | |
247f5006 VZ |
28404 | /* The GNU C library defines this for functions which it implements |
28405 | to always fail with ENOSYS. Some functions are actually named | |
28406 | something starting with __ and the normal name is an alias. */ | |
28407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28408 | choke me | |
28409 | #else | |
e6cc62c6 VS |
28410 | char (*f) () = $ac_func; |
28411 | #endif | |
28412 | #ifdef __cplusplus | |
28413 | } | |
247f5006 | 28414 | #endif |
af15babd | 28415 | |
e6cc62c6 VS |
28416 | int |
28417 | main () | |
28418 | { | |
28419 | return f != $ac_func; | |
28420 | ; | |
28421 | return 0; | |
28422 | } | |
28423 | _ACEOF | |
28424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28426 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28427 | ac_status=$? |
f95e4495 VS |
28428 | grep -v '^ *+' conftest.er1 >conftest.err |
28429 | rm -f conftest.er1 | |
28430 | cat conftest.err >&5 | |
e6cc62c6 VS |
28431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28432 | (exit $ac_status); } && | |
f95e4495 VS |
28433 | { ac_try='test -z "$ac_cxx_werror_flag" |
28434 | || test ! -s conftest.err' | |
28435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28436 | (eval $ac_try) 2>&5 | |
28437 | ac_status=$? | |
28438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28439 | (exit $ac_status); }; } && | |
28440 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28442 | (eval $ac_try) 2>&5 | |
28443 | ac_status=$? | |
28444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28445 | (exit $ac_status); }; }; then | |
28446 | eval "$as_ac_var=yes" | |
28447 | else | |
28448 | echo "$as_me: failed program was:" >&5 | |
28449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28450 | ||
28451 | eval "$as_ac_var=no" | |
28452 | fi | |
f95e4495 VS |
28453 | rm -f conftest.err conftest.$ac_objext \ |
28454 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28455 | fi |
28456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28458 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28459 | cat >>confdefs.h <<_ACEOF | |
28460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28461 | _ACEOF | |
52127426 | 28462 | |
5c6fa7d2 | 28463 | fi |
247f5006 | 28464 | done |
8284b0c5 | 28465 | |
4f14bcd8 | 28466 | |
8d90d2f2 | 28467 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
28468 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
28469 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28470 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 28472 | else |
e6cc62c6 VS |
28473 | |
28474 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28475 | /* confdefs.h. */ |
28476 | _ACEOF | |
28477 | cat confdefs.h >>conftest.$ac_ext | |
28478 | cat >>conftest.$ac_ext <<_ACEOF | |
28479 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
28480 | |
28481 | #include <stdio.h> | |
28482 | #include <stdarg.h> | |
e6cc62c6 VS |
28483 | |
28484 | int | |
28485 | main () | |
28486 | { | |
8d90d2f2 VZ |
28487 | |
28488 | char *buf; | |
28489 | va_list ap; | |
28490 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
28491 | |
28492 | ; | |
28493 | return 0; | |
28494 | } | |
28495 | _ACEOF | |
28496 | rm -f conftest.$ac_objext | |
28497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 28498 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28499 | ac_status=$? |
f95e4495 VS |
28500 | grep -v '^ *+' conftest.er1 >conftest.err |
28501 | rm -f conftest.er1 | |
28502 | cat conftest.err >&5 | |
e6cc62c6 VS |
28503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28504 | (exit $ac_status); } && | |
f95e4495 VS |
28505 | { ac_try='test -z "$ac_cxx_werror_flag" |
28506 | || test ! -s conftest.err' | |
28507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28508 | (eval $ac_try) 2>&5 | |
28509 | ac_status=$? | |
28510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28511 | (exit $ac_status); }; } && | |
28512 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28514 | (eval $ac_try) 2>&5 | |
28515 | ac_status=$? | |
28516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28517 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
28518 | wx_cv_func_vsnprintf_decl=yes |
28519 | else | |
e6cc62c6 VS |
28520 | echo "$as_me: failed program was:" >&5 |
28521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28522 | ||
28523 | wx_cv_func_vsnprintf_decl=no | |
28524 | ||
8d90d2f2 | 28525 | fi |
f95e4495 | 28526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 28527 | |
8d90d2f2 | 28528 | |
e6cc62c6 VS |
28529 | fi |
28530 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
28531 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
28532 | |
28533 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 28534 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 28535 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 28536 | _ACEOF |
8d90d2f2 VZ |
28537 | |
28538 | fi | |
28539 | fi | |
28540 | ||
247f5006 | 28541 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
28542 | |
28543 | ||
28544 | ||
28545 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 28546 | do |
e6cc62c6 VS |
28547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28550 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28552 | else | |
28553 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28554 | /* confdefs.h. */ |
28555 | _ACEOF | |
28556 | cat confdefs.h >>conftest.$ac_ext | |
28557 | cat >>conftest.$ac_ext <<_ACEOF | |
28558 | /* end confdefs.h. */ | |
f95e4495 VS |
28559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28561 | #define $ac_func innocuous_$ac_func | |
28562 | ||
d74f4b5a | 28563 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28564 | which can conflict with char $ac_func (); below. |
28565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28566 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 28567 | |
e6cc62c6 VS |
28568 | #ifdef __STDC__ |
28569 | # include <limits.h> | |
28570 | #else | |
28571 | # include <assert.h> | |
28572 | #endif | |
f95e4495 VS |
28573 | |
28574 | #undef $ac_func | |
28575 | ||
d74f4b5a | 28576 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
28577 | #ifdef __cplusplus |
28578 | extern "C" | |
e6cc62c6 | 28579 | { |
247f5006 | 28580 | #endif |
d74f4b5a | 28581 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28582 | builtin and then its argument prototype would still apply. */ |
28583 | char $ac_func (); | |
d74f4b5a VZ |
28584 | /* The GNU C library defines this for functions which it implements |
28585 | to always fail with ENOSYS. Some functions are actually named | |
28586 | something starting with __ and the normal name is an alias. */ | |
28587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28588 | choke me | |
28589 | #else | |
e6cc62c6 VS |
28590 | char (*f) () = $ac_func; |
28591 | #endif | |
28592 | #ifdef __cplusplus | |
28593 | } | |
d74f4b5a VZ |
28594 | #endif |
28595 | ||
e6cc62c6 VS |
28596 | int |
28597 | main () | |
28598 | { | |
28599 | return f != $ac_func; | |
28600 | ; | |
28601 | return 0; | |
28602 | } | |
28603 | _ACEOF | |
28604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28606 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28607 | ac_status=$? |
f95e4495 VS |
28608 | grep -v '^ *+' conftest.er1 >conftest.err |
28609 | rm -f conftest.er1 | |
28610 | cat conftest.err >&5 | |
e6cc62c6 VS |
28611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28612 | (exit $ac_status); } && | |
f95e4495 VS |
28613 | { ac_try='test -z "$ac_cxx_werror_flag" |
28614 | || test ! -s conftest.err' | |
28615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28616 | (eval $ac_try) 2>&5 | |
28617 | ac_status=$? | |
28618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28619 | (exit $ac_status); }; } && | |
28620 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28622 | (eval $ac_try) 2>&5 | |
28623 | ac_status=$? | |
28624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28625 | (exit $ac_status); }; }; then | |
28626 | eval "$as_ac_var=yes" | |
28627 | else | |
28628 | echo "$as_me: failed program was:" >&5 | |
28629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28630 | ||
28631 | eval "$as_ac_var=no" | |
28632 | fi | |
f95e4495 VS |
28633 | rm -f conftest.err conftest.$ac_objext \ |
28634 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28635 | fi |
28636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28639 | cat >>confdefs.h <<_ACEOF | |
28640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28641 | _ACEOF | |
d74f4b5a | 28642 | |
d74f4b5a VZ |
28643 | fi |
28644 | done | |
28645 | ||
8d90d2f2 | 28646 | |
e6cc62c6 VS |
28647 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
28648 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
28649 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28650 | /* confdefs.h. */ |
28651 | _ACEOF | |
28652 | cat confdefs.h >>conftest.$ac_ext | |
28653 | cat >>conftest.$ac_ext <<_ACEOF | |
28654 | /* end confdefs.h. */ | |
79668cae | 28655 | #include <wchar.h> |
e6cc62c6 VS |
28656 | int |
28657 | main () | |
28658 | { | |
79668cae | 28659 | &_vsnwprintf; |
e6cc62c6 VS |
28660 | ; |
28661 | return 0; | |
28662 | } | |
28663 | _ACEOF | |
28664 | rm -f conftest.$ac_objext | |
28665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 28666 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28667 | ac_status=$? |
f95e4495 VS |
28668 | grep -v '^ *+' conftest.er1 >conftest.err |
28669 | rm -f conftest.er1 | |
28670 | cat conftest.err >&5 | |
e6cc62c6 VS |
28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28672 | (exit $ac_status); } && | |
f95e4495 VS |
28673 | { ac_try='test -z "$ac_cxx_werror_flag" |
28674 | || test ! -s conftest.err' | |
28675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28676 | (eval $ac_try) 2>&5 | |
28677 | ac_status=$? | |
28678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28679 | (exit $ac_status); }; } && | |
28680 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28682 | (eval $ac_try) 2>&5 | |
28683 | ac_status=$? | |
28684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28685 | (exit $ac_status); }; }; then | |
28686 | echo "$as_me:$LINENO: result: yes" >&5 | |
28687 | echo "${ECHO_T}yes" >&6 | |
28688 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 28689 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 28690 | _ACEOF |
79668cae MB |
28691 | |
28692 | else | |
e6cc62c6 VS |
28693 | echo "$as_me: failed program was:" >&5 |
28694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28695 | ||
28696 | echo "$as_me:$LINENO: result: no" >&5 | |
28697 | echo "${ECHO_T}no" >&6 | |
79668cae | 28698 | fi |
f95e4495 | 28699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
28700 | fi |
28701 | ||
247f5006 VZ |
28702 | ac_ext=c |
28703 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
28704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
28707 | |
28708 | ||
28709 | ||
28710 | ||
4f14bcd8 | 28711 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 28712 | |
8284b0c5 MB |
28713 | |
28714 | ||
e6cc62c6 VS |
28715 | |
28716 | ac_ext=cc | |
4f14bcd8 | 28717 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 28721 | |
52127426 | 28722 | |
e6cc62c6 VS |
28723 | |
28724 | ||
28725 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
28726 | if test "${with_libiconv_prefix+set}" = set; then |
28727 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 28728 | |
b040e242 VS |
28729 | for dir in `echo "$withval" | tr : ' '`; do |
28730 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
28731 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
28732 | done | |
b040e242 | 28733 | |
e6cc62c6 | 28734 | fi; |
b040e242 | 28735 | |
e6cc62c6 VS |
28736 | echo "$as_me:$LINENO: checking for iconv" >&5 |
28737 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
28738 | if test "${am_cv_func_iconv+set}" = set; then | |
28739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 28740 | else |
e6cc62c6 | 28741 | |
b040e242 VS |
28742 | am_cv_func_iconv="no, consider installing GNU libiconv" |
28743 | am_cv_lib_iconv=no | |
e6cc62c6 | 28744 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28745 | /* confdefs.h. */ |
28746 | _ACEOF | |
28747 | cat confdefs.h >>conftest.$ac_ext | |
28748 | cat >>conftest.$ac_ext <<_ACEOF | |
28749 | /* end confdefs.h. */ | |
b040e242 | 28750 | #include <stdlib.h> |
4f14bcd8 | 28751 | #include <iconv.h> |
e6cc62c6 VS |
28752 | int |
28753 | main () | |
28754 | { | |
b040e242 VS |
28755 | iconv_t cd = iconv_open("",""); |
28756 | iconv(cd,NULL,NULL,NULL,NULL); | |
28757 | iconv_close(cd); | |
e6cc62c6 VS |
28758 | ; |
28759 | return 0; | |
28760 | } | |
28761 | _ACEOF | |
28762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28764 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28765 | ac_status=$? |
f95e4495 VS |
28766 | grep -v '^ *+' conftest.er1 >conftest.err |
28767 | rm -f conftest.er1 | |
28768 | cat conftest.err >&5 | |
e6cc62c6 VS |
28769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28770 | (exit $ac_status); } && | |
f95e4495 VS |
28771 | { ac_try='test -z "$ac_cxx_werror_flag" |
28772 | || test ! -s conftest.err' | |
28773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28774 | (eval $ac_try) 2>&5 | |
28775 | ac_status=$? | |
28776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28777 | (exit $ac_status); }; } && | |
28778 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28780 | (eval $ac_try) 2>&5 | |
28781 | ac_status=$? | |
28782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28783 | (exit $ac_status); }; }; then | |
b040e242 | 28784 | am_cv_func_iconv=yes |
af15babd | 28785 | else |
e6cc62c6 VS |
28786 | echo "$as_me: failed program was:" >&5 |
28787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28788 | ||
b040e242 | 28789 | fi |
f95e4495 VS |
28790 | rm -f conftest.err conftest.$ac_objext \ |
28791 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
28792 | if test "$am_cv_func_iconv" != yes; then |
28793 | am_save_LIBS="$LIBS" | |
28794 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 28795 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28796 | /* confdefs.h. */ |
28797 | _ACEOF | |
28798 | cat confdefs.h >>conftest.$ac_ext | |
28799 | cat >>conftest.$ac_ext <<_ACEOF | |
28800 | /* end confdefs.h. */ | |
b040e242 VS |
28801 | #include <stdlib.h> |
28802 | #include <iconv.h> | |
e6cc62c6 VS |
28803 | int |
28804 | main () | |
28805 | { | |
b040e242 VS |
28806 | iconv_t cd = iconv_open("",""); |
28807 | iconv(cd,NULL,NULL,NULL,NULL); | |
28808 | iconv_close(cd); | |
e6cc62c6 VS |
28809 | ; |
28810 | return 0; | |
28811 | } | |
28812 | _ACEOF | |
28813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 28815 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28816 | ac_status=$? |
f95e4495 VS |
28817 | grep -v '^ *+' conftest.er1 >conftest.err |
28818 | rm -f conftest.er1 | |
28819 | cat conftest.err >&5 | |
e6cc62c6 VS |
28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28821 | (exit $ac_status); } && | |
f95e4495 VS |
28822 | { ac_try='test -z "$ac_cxx_werror_flag" |
28823 | || test ! -s conftest.err' | |
28824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28825 | (eval $ac_try) 2>&5 | |
28826 | ac_status=$? | |
28827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28828 | (exit $ac_status); }; } && | |
28829 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28831 | (eval $ac_try) 2>&5 | |
28832 | ac_status=$? | |
28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28834 | (exit $ac_status); }; }; then | |
b040e242 VS |
28835 | am_cv_lib_iconv=yes |
28836 | am_cv_func_iconv=yes | |
28837 | else | |
e6cc62c6 VS |
28838 | echo "$as_me: failed program was:" >&5 |
28839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28840 | ||
af15babd | 28841 | fi |
f95e4495 VS |
28842 | rm -f conftest.err conftest.$ac_objext \ |
28843 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
28844 | LIBS="$am_save_LIBS" |
28845 | fi | |
247f5006 | 28846 | |
e6cc62c6 VS |
28847 | fi |
28848 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
28849 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 28850 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
28851 | |
28852 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 28853 | #define HAVE_ICONV 1 |
e6cc62c6 | 28854 | _ACEOF |
b040e242 | 28855 | |
e6cc62c6 VS |
28856 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
28857 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
28858 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
28859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 28860 | else |
e6cc62c6 | 28861 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28862 | /* confdefs.h. */ |
28863 | _ACEOF | |
28864 | cat confdefs.h >>conftest.$ac_ext | |
28865 | cat >>conftest.$ac_ext <<_ACEOF | |
28866 | /* end confdefs.h. */ | |
b040e242 VS |
28867 | |
28868 | #include <stdlib.h> | |
28869 | #include <iconv.h> | |
28870 | extern | |
28871 | #ifdef __cplusplus | |
28872 | "C" | |
28873 | #endif | |
28874 | #if defined(__STDC__) || defined(__cplusplus) | |
28875 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
28876 | #else | |
28877 | size_t iconv(); | |
28878 | #endif | |
af15babd | 28879 | |
e6cc62c6 VS |
28880 | int |
28881 | main () | |
28882 | { | |
28883 | ||
28884 | ; | |
28885 | return 0; | |
28886 | } | |
28887 | _ACEOF | |
28888 | rm -f conftest.$ac_objext | |
28889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 28890 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28891 | ac_status=$? |
f95e4495 VS |
28892 | grep -v '^ *+' conftest.er1 >conftest.err |
28893 | rm -f conftest.er1 | |
28894 | cat conftest.err >&5 | |
e6cc62c6 VS |
28895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28896 | (exit $ac_status); } && | |
f95e4495 VS |
28897 | { ac_try='test -z "$ac_cxx_werror_flag" |
28898 | || test ! -s conftest.err' | |
28899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28900 | (eval $ac_try) 2>&5 | |
28901 | ac_status=$? | |
28902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28903 | (exit $ac_status); }; } && | |
28904 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28906 | (eval $ac_try) 2>&5 | |
28907 | ac_status=$? | |
28908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28909 | (exit $ac_status); }; }; then | |
b7043674 | 28910 | wx_cv_func_iconv_const="no" |
b040e242 | 28911 | else |
e6cc62c6 VS |
28912 | echo "$as_me: failed program was:" >&5 |
28913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28914 | ||
28915 | wx_cv_func_iconv_const="yes" | |
28916 | ||
247f5006 | 28917 | fi |
f95e4495 | 28918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28919 | |
e6cc62c6 VS |
28920 | fi |
28921 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
28922 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
28923 | |
28924 | iconv_const= | |
1c405bb5 | 28925 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
28926 | iconv_const="const" |
28927 | fi | |
28928 | ||
e6cc62c6 VS |
28929 | |
28930 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 28931 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 28932 | _ACEOF |
b040e242 VS |
28933 | |
28934 | fi | |
28935 | LIBICONV= | |
28936 | if test "$am_cv_lib_iconv" = yes; then | |
28937 | LIBICONV="-liconv" | |
28938 | fi | |
e6cc62c6 | 28939 | |
b040e242 VS |
28940 | |
28941 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 28942 | ac_ext=c |
4f14bcd8 | 28943 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28947 | |
5c6fa7d2 | 28948 | |
8284b0c5 | 28949 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
28950 | |
28951 | for ac_func in sigaction | |
af15babd | 28952 | do |
e6cc62c6 VS |
28953 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28954 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28955 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28956 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28958 | else | |
28959 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28960 | /* confdefs.h. */ |
28961 | _ACEOF | |
28962 | cat confdefs.h >>conftest.$ac_ext | |
28963 | cat >>conftest.$ac_ext <<_ACEOF | |
28964 | /* end confdefs.h. */ | |
f95e4495 VS |
28965 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28967 | #define $ac_func innocuous_$ac_func | |
28968 | ||
af15babd | 28969 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28970 | which can conflict with char $ac_func (); below. |
28971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28972 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 28973 | |
e6cc62c6 VS |
28974 | #ifdef __STDC__ |
28975 | # include <limits.h> | |
28976 | #else | |
28977 | # include <assert.h> | |
28978 | #endif | |
f95e4495 VS |
28979 | |
28980 | #undef $ac_func | |
28981 | ||
af15babd | 28982 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28983 | #ifdef __cplusplus |
28984 | extern "C" | |
28985 | { | |
28986 | #endif | |
af15babd | 28987 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28988 | builtin and then its argument prototype would still apply. */ |
28989 | char $ac_func (); | |
af15babd VZ |
28990 | /* The GNU C library defines this for functions which it implements |
28991 | to always fail with ENOSYS. Some functions are actually named | |
28992 | something starting with __ and the normal name is an alias. */ | |
28993 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28994 | choke me | |
28995 | #else | |
e6cc62c6 VS |
28996 | char (*f) () = $ac_func; |
28997 | #endif | |
28998 | #ifdef __cplusplus | |
28999 | } | |
af15babd VZ |
29000 | #endif |
29001 | ||
e6cc62c6 VS |
29002 | int |
29003 | main () | |
29004 | { | |
29005 | return f != $ac_func; | |
29006 | ; | |
29007 | return 0; | |
29008 | } | |
29009 | _ACEOF | |
29010 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29012 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29013 | ac_status=$? |
f95e4495 VS |
29014 | grep -v '^ *+' conftest.er1 >conftest.err |
29015 | rm -f conftest.er1 | |
29016 | cat conftest.err >&5 | |
e6cc62c6 VS |
29017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29018 | (exit $ac_status); } && | |
f95e4495 VS |
29019 | { ac_try='test -z "$ac_c_werror_flag" |
29020 | || test ! -s conftest.err' | |
29021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29022 | (eval $ac_try) 2>&5 | |
29023 | ac_status=$? | |
29024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29025 | (exit $ac_status); }; } && | |
29026 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29028 | (eval $ac_try) 2>&5 | |
29029 | ac_status=$? | |
29030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29031 | (exit $ac_status); }; }; then | |
29032 | eval "$as_ac_var=yes" | |
29033 | else | |
29034 | echo "$as_me: failed program was:" >&5 | |
29035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29036 | ||
29037 | eval "$as_ac_var=no" | |
29038 | fi | |
f95e4495 VS |
29039 | rm -f conftest.err conftest.$ac_objext \ |
29040 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29041 | fi |
29042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29043 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29044 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29045 | cat >>confdefs.h <<_ACEOF | |
29046 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29047 | _ACEOF | |
7b4a847f | 29048 | |
4f14bcd8 GD |
29049 | fi |
29050 | done | |
29051 | ||
8284b0c5 | 29052 | |
4f14bcd8 | 29053 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
29054 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
29055 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
29056 | wxUSE_ON_FATAL_EXCEPTION=no |
29057 | fi | |
29058 | ||
29059 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
29060 | |
29061 | ||
29062 | ac_ext=cc | |
5c6fa7d2 | 29063 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29064 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29065 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29066 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 29067 | |
5c6fa7d2 | 29068 | |
e6cc62c6 VS |
29069 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
29070 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29071 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29073 | else |
e6cc62c6 VS |
29074 | |
29075 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29076 | /* confdefs.h. */ |
29077 | _ACEOF | |
29078 | cat confdefs.h >>conftest.$ac_ext | |
29079 | cat >>conftest.$ac_ext <<_ACEOF | |
29080 | /* end confdefs.h. */ | |
4f14bcd8 | 29081 | #include <signal.h> |
e6cc62c6 VS |
29082 | int |
29083 | main () | |
29084 | { | |
4f14bcd8 GD |
29085 | |
29086 | extern void testSigHandler(int); | |
29087 | ||
29088 | struct sigaction sa; | |
29089 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
29090 | |
29091 | ; | |
29092 | return 0; | |
29093 | } | |
29094 | _ACEOF | |
29095 | rm -f conftest.$ac_objext | |
29096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 29097 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29098 | ac_status=$? |
f95e4495 VS |
29099 | grep -v '^ *+' conftest.er1 >conftest.err |
29100 | rm -f conftest.er1 | |
29101 | cat conftest.err >&5 | |
e6cc62c6 VS |
29102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29103 | (exit $ac_status); } && | |
f95e4495 VS |
29104 | { ac_try='test -z "$ac_cxx_werror_flag" |
29105 | || test ! -s conftest.err' | |
29106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29107 | (eval $ac_try) 2>&5 | |
29108 | ac_status=$? | |
29109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29110 | (exit $ac_status); }; } && | |
29111 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29113 | (eval $ac_try) 2>&5 | |
29114 | ac_status=$? | |
29115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29116 | (exit $ac_status); }; }; then | |
29117 | ||
4f14bcd8 | 29118 | wx_cv_type_sa_handler=int |
e6cc62c6 | 29119 | |
af15babd | 29120 | else |
e6cc62c6 VS |
29121 | echo "$as_me: failed program was:" >&5 |
29122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29123 | ||
29124 | ||
4f14bcd8 | 29125 | wx_cv_type_sa_handler=void |
e6cc62c6 | 29126 | |
247f5006 | 29127 | fi |
f95e4495 | 29128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29129 | |
e6cc62c6 VS |
29130 | fi |
29131 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29132 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
29133 | |
29134 | ac_ext=c | |
4f14bcd8 | 29135 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 29139 | |
8284b0c5 | 29140 | |
e6cc62c6 | 29141 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29142 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 29143 | _ACEOF |
af15babd | 29144 | |
4f14bcd8 GD |
29145 | fi |
29146 | fi | |
af15babd | 29147 | |
e6cc62c6 VS |
29148 | |
29149 | ||
a1d22ad7 | 29150 | for ac_func in mkstemp mktemp |
af15babd | 29151 | do |
e6cc62c6 VS |
29152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29153 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29155 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29157 | else | |
29158 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29159 | /* confdefs.h. */ |
29160 | _ACEOF | |
29161 | cat confdefs.h >>conftest.$ac_ext | |
29162 | cat >>conftest.$ac_ext <<_ACEOF | |
29163 | /* end confdefs.h. */ | |
f95e4495 VS |
29164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29166 | #define $ac_func innocuous_$ac_func | |
29167 | ||
af15babd | 29168 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29169 | which can conflict with char $ac_func (); below. |
29170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29171 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 29172 | |
e6cc62c6 VS |
29173 | #ifdef __STDC__ |
29174 | # include <limits.h> | |
29175 | #else | |
29176 | # include <assert.h> | |
29177 | #endif | |
f95e4495 VS |
29178 | |
29179 | #undef $ac_func | |
29180 | ||
af15babd | 29181 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29182 | #ifdef __cplusplus |
29183 | extern "C" | |
29184 | { | |
29185 | #endif | |
af15babd | 29186 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29187 | builtin and then its argument prototype would still apply. */ |
29188 | char $ac_func (); | |
af15babd VZ |
29189 | /* The GNU C library defines this for functions which it implements |
29190 | to always fail with ENOSYS. Some functions are actually named | |
29191 | something starting with __ and the normal name is an alias. */ | |
29192 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29193 | choke me | |
29194 | #else | |
e6cc62c6 VS |
29195 | char (*f) () = $ac_func; |
29196 | #endif | |
29197 | #ifdef __cplusplus | |
29198 | } | |
af15babd VZ |
29199 | #endif |
29200 | ||
e6cc62c6 VS |
29201 | int |
29202 | main () | |
29203 | { | |
29204 | return f != $ac_func; | |
29205 | ; | |
29206 | return 0; | |
29207 | } | |
29208 | _ACEOF | |
29209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29211 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29212 | ac_status=$? |
f95e4495 VS |
29213 | grep -v '^ *+' conftest.er1 >conftest.err |
29214 | rm -f conftest.er1 | |
29215 | cat conftest.err >&5 | |
e6cc62c6 VS |
29216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29217 | (exit $ac_status); } && | |
f95e4495 VS |
29218 | { ac_try='test -z "$ac_c_werror_flag" |
29219 | || test ! -s conftest.err' | |
29220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29221 | (eval $ac_try) 2>&5 | |
29222 | ac_status=$? | |
29223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29224 | (exit $ac_status); }; } && | |
29225 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29227 | (eval $ac_try) 2>&5 | |
29228 | ac_status=$? | |
29229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29230 | (exit $ac_status); }; }; then | |
29231 | eval "$as_ac_var=yes" | |
29232 | else | |
29233 | echo "$as_me: failed program was:" >&5 | |
29234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29235 | ||
29236 | eval "$as_ac_var=no" | |
29237 | fi | |
f95e4495 VS |
29238 | rm -f conftest.err conftest.$ac_objext \ |
29239 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29240 | fi |
29241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29242 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29243 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29244 | cat >>confdefs.h <<_ACEOF | |
29245 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29246 | _ACEOF | |
ade35f11 | 29247 | break |
ade35f11 VZ |
29248 | fi |
29249 | done | |
29250 | ||
8284b0c5 | 29251 | |
e6cc62c6 VS |
29252 | echo "$as_me:$LINENO: checking for statfs" >&5 |
29253 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29254 | if test "${wx_cv_func_statfs+set}" = set; then | |
29255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29256 | else |
e6cc62c6 | 29257 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29258 | /* confdefs.h. */ |
29259 | _ACEOF | |
29260 | cat confdefs.h >>conftest.$ac_ext | |
29261 | cat >>conftest.$ac_ext <<_ACEOF | |
29262 | /* end confdefs.h. */ | |
4f14bcd8 GD |
29263 | |
29264 | #if defined(__BSD__) | |
29265 | #include <sys/param.h> | |
29266 | #include <sys/mount.h> | |
29267 | #else | |
29268 | #include <sys/vfs.h> | |
29269 | #endif | |
e6cc62c6 VS |
29270 | |
29271 | int | |
29272 | main () | |
29273 | { | |
4f14bcd8 GD |
29274 | |
29275 | long l; | |
29276 | struct statfs fs; | |
29277 | statfs("/", &fs); | |
29278 | l = fs.f_bsize; | |
29279 | l += fs.f_blocks; | |
29280 | l += fs.f_bavail; | |
e6cc62c6 VS |
29281 | |
29282 | ; | |
29283 | return 0; | |
29284 | } | |
29285 | _ACEOF | |
29286 | rm -f conftest.$ac_objext | |
29287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 29288 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29289 | ac_status=$? |
f95e4495 VS |
29290 | grep -v '^ *+' conftest.er1 >conftest.err |
29291 | rm -f conftest.er1 | |
29292 | cat conftest.err >&5 | |
e6cc62c6 VS |
29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29294 | (exit $ac_status); } && | |
f95e4495 VS |
29295 | { ac_try='test -z "$ac_c_werror_flag" |
29296 | || test ! -s conftest.err' | |
29297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29298 | (eval $ac_try) 2>&5 | |
29299 | ac_status=$? | |
29300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29301 | (exit $ac_status); }; } && | |
29302 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29304 | (eval $ac_try) 2>&5 | |
29305 | ac_status=$? | |
29306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29307 | (exit $ac_status); }; }; then | |
29308 | ||
4f14bcd8 | 29309 | wx_cv_func_statfs=yes |
e6cc62c6 | 29310 | |
4f14bcd8 | 29311 | else |
e6cc62c6 VS |
29312 | echo "$as_me: failed program was:" >&5 |
29313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29314 | ||
29315 | ||
4f14bcd8 | 29316 | wx_cv_func_statfs=no |
e6cc62c6 | 29317 | |
8284b0c5 | 29318 | |
247f5006 | 29319 | fi |
f95e4495 | 29320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29321 | |
e6cc62c6 VS |
29322 | fi |
29323 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29324 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
29325 | |
29326 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 29327 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 29328 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29329 | #define HAVE_STATFS 1 |
e6cc62c6 | 29330 | _ACEOF |
4f14bcd8 GD |
29331 | |
29332 | else | |
e6cc62c6 VS |
29333 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
29334 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29335 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29337 | else |
e6cc62c6 | 29338 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29339 | /* confdefs.h. */ |
29340 | _ACEOF | |
29341 | cat confdefs.h >>conftest.$ac_ext | |
29342 | cat >>conftest.$ac_ext <<_ACEOF | |
29343 | /* end confdefs.h. */ | |
af15babd | 29344 | |
54ab82b3 VZ |
29345 | #include <stddef.h> |
29346 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29347 | |
29348 | int | |
29349 | main () | |
29350 | { | |
af15babd | 29351 | |
54ab82b3 | 29352 | statvfs("/", NULL); |
e6cc62c6 VS |
29353 | |
29354 | ; | |
29355 | return 0; | |
29356 | } | |
29357 | _ACEOF | |
29358 | rm -f conftest.$ac_objext | |
29359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 29360 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29361 | ac_status=$? |
f95e4495 VS |
29362 | grep -v '^ *+' conftest.er1 >conftest.err |
29363 | rm -f conftest.er1 | |
29364 | cat conftest.err >&5 | |
e6cc62c6 VS |
29365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29366 | (exit $ac_status); } && | |
f95e4495 VS |
29367 | { ac_try='test -z "$ac_c_werror_flag" |
29368 | || test ! -s conftest.err' | |
29369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29370 | (eval $ac_try) 2>&5 | |
29371 | ac_status=$? | |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29373 | (exit $ac_status); }; } && | |
29374 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29376 | (eval $ac_try) 2>&5 | |
29377 | ac_status=$? | |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29379 | (exit $ac_status); }; }; then | |
54ab82b3 | 29380 | wx_cv_func_statvfs=yes |
af15babd | 29381 | else |
e6cc62c6 VS |
29382 | echo "$as_me: failed program was:" >&5 |
29383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29384 | ||
29385 | wx_cv_func_statvfs=no | |
29386 | ||
247f5006 | 29387 | fi |
f95e4495 | 29388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29389 | |
e6cc62c6 VS |
29390 | fi |
29391 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29392 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 29393 | |
4f14bcd8 | 29394 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
29395 | |
29396 | ||
29397 | ac_ext=cc | |
54ab82b3 | 29398 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
29402 | |
29403 | ||
e6cc62c6 VS |
29404 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
29405 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29406 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 29408 | else |
e6cc62c6 | 29409 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29410 | /* confdefs.h. */ |
29411 | _ACEOF | |
29412 | cat confdefs.h >>conftest.$ac_ext | |
29413 | cat >>conftest.$ac_ext <<_ACEOF | |
29414 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29415 | |
29416 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29417 | |
29418 | int | |
29419 | main () | |
29420 | { | |
54ab82b3 VZ |
29421 | |
29422 | long l; | |
29423 | statvfs_t fs; | |
29424 | statvfs("/", &fs); | |
29425 | l = fs.f_bsize; | |
29426 | l += fs.f_blocks; | |
29427 | l += fs.f_bavail; | |
e6cc62c6 VS |
29428 | |
29429 | ; | |
29430 | return 0; | |
29431 | } | |
29432 | _ACEOF | |
29433 | rm -f conftest.$ac_objext | |
29434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 29435 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29436 | ac_status=$? |
f95e4495 VS |
29437 | grep -v '^ *+' conftest.er1 >conftest.err |
29438 | rm -f conftest.er1 | |
29439 | cat conftest.err >&5 | |
e6cc62c6 VS |
29440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29441 | (exit $ac_status); } && | |
f95e4495 VS |
29442 | { ac_try='test -z "$ac_cxx_werror_flag" |
29443 | || test ! -s conftest.err' | |
29444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29445 | (eval $ac_try) 2>&5 | |
29446 | ac_status=$? | |
29447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29448 | (exit $ac_status); }; } && | |
29449 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29451 | (eval $ac_try) 2>&5 | |
29452 | ac_status=$? | |
29453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29454 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29455 | wx_cv_type_statvfs_t=statvfs_t |
29456 | else | |
e6cc62c6 VS |
29457 | echo "$as_me: failed program was:" >&5 |
29458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29459 | ||
29460 | ||
29461 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29462 | /* confdefs.h. */ |
29463 | _ACEOF | |
29464 | cat confdefs.h >>conftest.$ac_ext | |
29465 | cat >>conftest.$ac_ext <<_ACEOF | |
29466 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29467 | |
29468 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29469 | |
29470 | int | |
29471 | main () | |
29472 | { | |
54ab82b3 VZ |
29473 | |
29474 | long l; | |
65d8ef1e | 29475 | struct statvfs fs; |
54ab82b3 VZ |
29476 | statvfs("/", &fs); |
29477 | l = fs.f_bsize; | |
29478 | l += fs.f_blocks; | |
29479 | l += fs.f_bavail; | |
e6cc62c6 VS |
29480 | |
29481 | ; | |
29482 | return 0; | |
29483 | } | |
29484 | _ACEOF | |
29485 | rm -f conftest.$ac_objext | |
29486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 29487 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29488 | ac_status=$? |
f95e4495 VS |
29489 | grep -v '^ *+' conftest.er1 >conftest.err |
29490 | rm -f conftest.er1 | |
29491 | cat conftest.err >&5 | |
e6cc62c6 VS |
29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29493 | (exit $ac_status); } && | |
f95e4495 VS |
29494 | { ac_try='test -z "$ac_cxx_werror_flag" |
29495 | || test ! -s conftest.err' | |
29496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29497 | (eval $ac_try) 2>&5 | |
29498 | ac_status=$? | |
29499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29500 | (exit $ac_status); }; } && | |
29501 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29503 | (eval $ac_try) 2>&5 | |
29504 | ac_status=$? | |
29505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29506 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29507 | wx_cv_type_statvfs_t="struct statvfs" |
29508 | else | |
e6cc62c6 VS |
29509 | echo "$as_me: failed program was:" >&5 |
29510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29511 | ||
29512 | wx_cv_type_statvfs_t="unknown" | |
29513 | ||
54ab82b3 | 29514 | fi |
f95e4495 | 29515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29516 | |
29517 | ||
54ab82b3 | 29518 | fi |
f95e4495 | 29519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 29520 | |
e6cc62c6 VS |
29521 | fi |
29522 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29523 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
29524 | |
29525 | ac_ext=c | |
54ab82b3 | 29526 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
29530 | |
29531 | ||
29532 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 29533 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29534 | #define HAVE_STATVFS 1 |
e6cc62c6 | 29535 | _ACEOF |
af15babd | 29536 | |
54ab82b3 | 29537 | fi |
4f14bcd8 | 29538 | else |
54ab82b3 | 29539 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
29540 | fi |
29541 | fi | |
af15babd | 29542 | |
54ab82b3 | 29543 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 29544 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 29545 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 29546 | _ACEOF |
54ab82b3 VZ |
29547 | |
29548 | else | |
e6cc62c6 VS |
29549 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
29550 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
29551 | fi |
29552 | ||
4f14bcd8 | 29553 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
29554 | |
29555 | ||
29556 | for ac_func in fcntl flock | |
af15babd | 29557 | do |
e6cc62c6 VS |
29558 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29559 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29560 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29561 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29563 | else | |
29564 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29565 | /* confdefs.h. */ |
29566 | _ACEOF | |
29567 | cat confdefs.h >>conftest.$ac_ext | |
29568 | cat >>conftest.$ac_ext <<_ACEOF | |
29569 | /* end confdefs.h. */ | |
f95e4495 VS |
29570 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29572 | #define $ac_func innocuous_$ac_func | |
29573 | ||
af15babd | 29574 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29575 | which can conflict with char $ac_func (); below. |
29576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29577 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 29578 | |
e6cc62c6 VS |
29579 | #ifdef __STDC__ |
29580 | # include <limits.h> | |
29581 | #else | |
29582 | # include <assert.h> | |
29583 | #endif | |
f95e4495 VS |
29584 | |
29585 | #undef $ac_func | |
29586 | ||
af15babd | 29587 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29588 | #ifdef __cplusplus |
29589 | extern "C" | |
29590 | { | |
29591 | #endif | |
af15babd | 29592 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29593 | builtin and then its argument prototype would still apply. */ |
29594 | char $ac_func (); | |
af15babd VZ |
29595 | /* The GNU C library defines this for functions which it implements |
29596 | to always fail with ENOSYS. Some functions are actually named | |
29597 | something starting with __ and the normal name is an alias. */ | |
29598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29599 | choke me | |
29600 | #else | |
e6cc62c6 VS |
29601 | char (*f) () = $ac_func; |
29602 | #endif | |
29603 | #ifdef __cplusplus | |
29604 | } | |
af15babd VZ |
29605 | #endif |
29606 | ||
e6cc62c6 VS |
29607 | int |
29608 | main () | |
29609 | { | |
29610 | return f != $ac_func; | |
29611 | ; | |
29612 | return 0; | |
29613 | } | |
29614 | _ACEOF | |
29615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29617 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29618 | ac_status=$? |
f95e4495 VS |
29619 | grep -v '^ *+' conftest.er1 >conftest.err |
29620 | rm -f conftest.er1 | |
29621 | cat conftest.err >&5 | |
e6cc62c6 VS |
29622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29623 | (exit $ac_status); } && | |
f95e4495 VS |
29624 | { ac_try='test -z "$ac_c_werror_flag" |
29625 | || test ! -s conftest.err' | |
29626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29627 | (eval $ac_try) 2>&5 | |
29628 | ac_status=$? | |
29629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29630 | (exit $ac_status); }; } && | |
29631 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29633 | (eval $ac_try) 2>&5 | |
29634 | ac_status=$? | |
29635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29636 | (exit $ac_status); }; }; then | |
29637 | eval "$as_ac_var=yes" | |
29638 | else | |
29639 | echo "$as_me: failed program was:" >&5 | |
29640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29641 | ||
29642 | eval "$as_ac_var=no" | |
29643 | fi | |
f95e4495 VS |
29644 | rm -f conftest.err conftest.$ac_objext \ |
29645 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29646 | fi |
29647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29648 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29649 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29650 | cat >>confdefs.h <<_ACEOF | |
29651 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29652 | _ACEOF | |
4f14bcd8 | 29653 | break |
af15babd VZ |
29654 | fi |
29655 | done | |
29656 | ||
8284b0c5 | 29657 | |
4f14bcd8 | 29658 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
29659 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
29660 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
29661 | wxUSE_SNGLINST_CHECKER=no |
29662 | fi | |
29663 | fi | |
af15babd | 29664 | |
e6cc62c6 | 29665 | |
4f14bcd8 | 29666 | for ac_func in timegm |
af15babd | 29667 | do |
e6cc62c6 VS |
29668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29669 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29671 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29673 | else | |
29674 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29675 | /* confdefs.h. */ |
29676 | _ACEOF | |
29677 | cat confdefs.h >>conftest.$ac_ext | |
29678 | cat >>conftest.$ac_ext <<_ACEOF | |
29679 | /* end confdefs.h. */ | |
f95e4495 VS |
29680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29682 | #define $ac_func innocuous_$ac_func | |
29683 | ||
af15babd | 29684 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29685 | which can conflict with char $ac_func (); below. |
29686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29687 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 29688 | |
e6cc62c6 VS |
29689 | #ifdef __STDC__ |
29690 | # include <limits.h> | |
29691 | #else | |
29692 | # include <assert.h> | |
29693 | #endif | |
f95e4495 VS |
29694 | |
29695 | #undef $ac_func | |
29696 | ||
af15babd | 29697 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29698 | #ifdef __cplusplus |
29699 | extern "C" | |
29700 | { | |
29701 | #endif | |
af15babd | 29702 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29703 | builtin and then its argument prototype would still apply. */ |
29704 | char $ac_func (); | |
af15babd VZ |
29705 | /* The GNU C library defines this for functions which it implements |
29706 | to always fail with ENOSYS. Some functions are actually named | |
29707 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
29708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
29709 | choke me | |
29710 | #else | |
e6cc62c6 VS |
29711 | char (*f) () = $ac_func; |
29712 | #endif | |
29713 | #ifdef __cplusplus | |
29714 | } | |
247f5006 VZ |
29715 | #endif |
29716 | ||
e6cc62c6 VS |
29717 | int |
29718 | main () | |
29719 | { | |
29720 | return f != $ac_func; | |
29721 | ; | |
29722 | return 0; | |
29723 | } | |
29724 | _ACEOF | |
29725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29727 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29728 | ac_status=$? |
f95e4495 VS |
29729 | grep -v '^ *+' conftest.er1 >conftest.err |
29730 | rm -f conftest.er1 | |
29731 | cat conftest.err >&5 | |
e6cc62c6 VS |
29732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29733 | (exit $ac_status); } && | |
f95e4495 VS |
29734 | { ac_try='test -z "$ac_c_werror_flag" |
29735 | || test ! -s conftest.err' | |
29736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29737 | (eval $ac_try) 2>&5 | |
29738 | ac_status=$? | |
29739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29740 | (exit $ac_status); }; } && | |
29741 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29743 | (eval $ac_try) 2>&5 | |
29744 | ac_status=$? | |
29745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29746 | (exit $ac_status); }; }; then | |
29747 | eval "$as_ac_var=yes" | |
29748 | else | |
29749 | echo "$as_me: failed program was:" >&5 | |
29750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29751 | ||
29752 | eval "$as_ac_var=no" | |
29753 | fi | |
f95e4495 VS |
29754 | rm -f conftest.err conftest.$ac_objext \ |
29755 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29756 | fi |
29757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29759 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29760 | cat >>confdefs.h <<_ACEOF | |
29761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29762 | _ACEOF | |
703e0a69 | 29763 | |
af15babd VZ |
29764 | fi |
29765 | done | |
29766 | ||
8284b0c5 | 29767 | |
e6cc62c6 VS |
29768 | |
29769 | ||
4f14bcd8 | 29770 | for ac_func in putenv setenv |
10f2d63a | 29771 | do |
e6cc62c6 VS |
29772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29777 | else | |
29778 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29779 | /* confdefs.h. */ |
29780 | _ACEOF | |
29781 | cat confdefs.h >>conftest.$ac_ext | |
29782 | cat >>conftest.$ac_ext <<_ACEOF | |
29783 | /* end confdefs.h. */ | |
f95e4495 VS |
29784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29786 | #define $ac_func innocuous_$ac_func | |
29787 | ||
af15babd | 29788 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29789 | which can conflict with char $ac_func (); below. |
29790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29791 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 29792 | |
e6cc62c6 VS |
29793 | #ifdef __STDC__ |
29794 | # include <limits.h> | |
29795 | #else | |
29796 | # include <assert.h> | |
29797 | #endif | |
f95e4495 VS |
29798 | |
29799 | #undef $ac_func | |
29800 | ||
af15babd | 29801 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29802 | #ifdef __cplusplus |
29803 | extern "C" | |
29804 | { | |
29805 | #endif | |
af15babd | 29806 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29807 | builtin and then its argument prototype would still apply. */ |
29808 | char $ac_func (); | |
af15babd VZ |
29809 | /* The GNU C library defines this for functions which it implements |
29810 | to always fail with ENOSYS. Some functions are actually named | |
29811 | something starting with __ and the normal name is an alias. */ | |
29812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29813 | choke me | |
29814 | #else | |
e6cc62c6 VS |
29815 | char (*f) () = $ac_func; |
29816 | #endif | |
29817 | #ifdef __cplusplus | |
29818 | } | |
af15babd VZ |
29819 | #endif |
29820 | ||
e6cc62c6 VS |
29821 | int |
29822 | main () | |
29823 | { | |
29824 | return f != $ac_func; | |
29825 | ; | |
29826 | return 0; | |
29827 | } | |
29828 | _ACEOF | |
29829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29831 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29832 | ac_status=$? |
f95e4495 VS |
29833 | grep -v '^ *+' conftest.er1 >conftest.err |
29834 | rm -f conftest.er1 | |
29835 | cat conftest.err >&5 | |
e6cc62c6 VS |
29836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29837 | (exit $ac_status); } && | |
f95e4495 VS |
29838 | { ac_try='test -z "$ac_c_werror_flag" |
29839 | || test ! -s conftest.err' | |
29840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29841 | (eval $ac_try) 2>&5 | |
29842 | ac_status=$? | |
29843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29844 | (exit $ac_status); }; } && | |
29845 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29847 | (eval $ac_try) 2>&5 | |
29848 | ac_status=$? | |
29849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29850 | (exit $ac_status); }; }; then | |
29851 | eval "$as_ac_var=yes" | |
29852 | else | |
29853 | echo "$as_me: failed program was:" >&5 | |
29854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29855 | ||
29856 | eval "$as_ac_var=no" | |
29857 | fi | |
f95e4495 VS |
29858 | rm -f conftest.err conftest.$ac_objext \ |
29859 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29860 | fi |
29861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29862 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29863 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29864 | cat >>confdefs.h <<_ACEOF | |
29865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29866 | _ACEOF | |
4f14bcd8 | 29867 | break |
af15babd | 29868 | fi |
af15babd VZ |
29869 | done |
29870 | ||
8284b0c5 | 29871 | |
4f14bcd8 GD |
29872 | HAVE_SOME_SLEEP_FUNC=0 |
29873 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 29874 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29875 | #define HAVE_SLEEP 1 |
e6cc62c6 | 29876 | _ACEOF |
af15babd | 29877 | |
4f14bcd8 | 29878 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
29879 | fi |
29880 | ||
4f14bcd8 | 29881 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 29882 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29883 | #define HAVE_USLEEP 1 |
e6cc62c6 | 29884 | _ACEOF |
10f2d63a | 29885 | |
4f14bcd8 | 29886 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
29887 | fi |
29888 | ||
4f14bcd8 GD |
29889 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
29890 | POSIX4_LINK= | |
e6cc62c6 VS |
29891 | |
29892 | for ac_func in nanosleep | |
4f14bcd8 | 29893 | do |
e6cc62c6 VS |
29894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29895 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29897 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29899 | else | |
29900 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29901 | /* confdefs.h. */ |
29902 | _ACEOF | |
29903 | cat confdefs.h >>conftest.$ac_ext | |
29904 | cat >>conftest.$ac_ext <<_ACEOF | |
29905 | /* end confdefs.h. */ | |
f95e4495 VS |
29906 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29907 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29908 | #define $ac_func innocuous_$ac_func | |
29909 | ||
4f14bcd8 | 29910 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29911 | which can conflict with char $ac_func (); below. |
29912 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29913 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 29914 | |
e6cc62c6 VS |
29915 | #ifdef __STDC__ |
29916 | # include <limits.h> | |
29917 | #else | |
29918 | # include <assert.h> | |
29919 | #endif | |
f95e4495 VS |
29920 | |
29921 | #undef $ac_func | |
29922 | ||
10f2d63a | 29923 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29924 | #ifdef __cplusplus |
29925 | extern "C" | |
29926 | { | |
29927 | #endif | |
10f2d63a | 29928 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29929 | builtin and then its argument prototype would still apply. */ |
29930 | char $ac_func (); | |
4f14bcd8 GD |
29931 | /* The GNU C library defines this for functions which it implements |
29932 | to always fail with ENOSYS. Some functions are actually named | |
29933 | something starting with __ and the normal name is an alias. */ | |
29934 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29935 | choke me | |
29936 | #else | |
e6cc62c6 VS |
29937 | char (*f) () = $ac_func; |
29938 | #endif | |
29939 | #ifdef __cplusplus | |
29940 | } | |
4f14bcd8 GD |
29941 | #endif |
29942 | ||
e6cc62c6 VS |
29943 | int |
29944 | main () | |
29945 | { | |
29946 | return f != $ac_func; | |
29947 | ; | |
29948 | return 0; | |
29949 | } | |
29950 | _ACEOF | |
29951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 29953 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29954 | ac_status=$? |
f95e4495 VS |
29955 | grep -v '^ *+' conftest.er1 >conftest.err |
29956 | rm -f conftest.er1 | |
29957 | cat conftest.err >&5 | |
e6cc62c6 VS |
29958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29959 | (exit $ac_status); } && | |
f95e4495 VS |
29960 | { ac_try='test -z "$ac_c_werror_flag" |
29961 | || test ! -s conftest.err' | |
29962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29963 | (eval $ac_try) 2>&5 | |
29964 | ac_status=$? | |
29965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29966 | (exit $ac_status); }; } && | |
29967 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29969 | (eval $ac_try) 2>&5 | |
29970 | ac_status=$? | |
29971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29972 | (exit $ac_status); }; }; then | |
29973 | eval "$as_ac_var=yes" | |
29974 | else | |
29975 | echo "$as_me: failed program was:" >&5 | |
29976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29977 | ||
29978 | eval "$as_ac_var=no" | |
29979 | fi | |
f95e4495 VS |
29980 | rm -f conftest.err conftest.$ac_objext \ |
29981 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29982 | fi |
29983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29984 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29985 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29986 | cat >>confdefs.h <<_ACEOF | |
29987 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29988 | _ACEOF | |
29989 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29990 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 29991 | _ACEOF |
4f14bcd8 | 29992 | |
10f2d63a | 29993 | else |
e6cc62c6 VS |
29994 | |
29995 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
29996 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
29997 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
29998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 29999 | else |
e6cc62c6 | 30000 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30001 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30002 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30003 | /* confdefs.h. */ |
30004 | _ACEOF | |
30005 | cat confdefs.h >>conftest.$ac_ext | |
30006 | cat >>conftest.$ac_ext <<_ACEOF | |
30007 | /* end confdefs.h. */ | |
30008 | ||
10f2d63a | 30009 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30010 | #ifdef __cplusplus |
30011 | extern "C" | |
30012 | #endif | |
10f2d63a | 30013 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30014 | builtin and then its argument prototype would still apply. */ |
30015 | char nanosleep (); | |
30016 | int | |
30017 | main () | |
30018 | { | |
30019 | nanosleep (); | |
30020 | ; | |
30021 | return 0; | |
30022 | } | |
30023 | _ACEOF | |
30024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30026 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30027 | ac_status=$? |
f95e4495 VS |
30028 | grep -v '^ *+' conftest.er1 >conftest.err |
30029 | rm -f conftest.er1 | |
30030 | cat conftest.err >&5 | |
e6cc62c6 VS |
30031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30032 | (exit $ac_status); } && | |
f95e4495 VS |
30033 | { ac_try='test -z "$ac_c_werror_flag" |
30034 | || test ! -s conftest.err' | |
30035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30036 | (eval $ac_try) 2>&5 | |
30037 | ac_status=$? | |
30038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30039 | (exit $ac_status); }; } && | |
30040 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30042 | (eval $ac_try) 2>&5 | |
30043 | ac_status=$? | |
30044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30045 | (exit $ac_status); }; }; then | |
30046 | ac_cv_lib_posix4_nanosleep=yes | |
30047 | else | |
30048 | echo "$as_me: failed program was:" >&5 | |
30049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30050 | ||
30051 | ac_cv_lib_posix4_nanosleep=no | |
30052 | fi | |
f95e4495 VS |
30053 | rm -f conftest.err conftest.$ac_objext \ |
30054 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30055 | LIBS=$ac_check_lib_save_LIBS |
30056 | fi | |
30057 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30058 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30059 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30060 | ||
30061 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30062 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30063 | _ACEOF |
4f14bcd8 | 30064 | |
3d63bc3a | 30065 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 30066 | |
10f2d63a | 30067 | else |
10f2d63a | 30068 | |
e6cc62c6 VS |
30069 | |
30070 | for ac_func in usleep | |
4f14bcd8 | 30071 | do |
e6cc62c6 VS |
30072 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30073 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30074 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30075 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30077 | else | |
30078 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30079 | /* confdefs.h. */ |
30080 | _ACEOF | |
30081 | cat confdefs.h >>conftest.$ac_ext | |
30082 | cat >>conftest.$ac_ext <<_ACEOF | |
30083 | /* end confdefs.h. */ | |
f95e4495 VS |
30084 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30086 | #define $ac_func innocuous_$ac_func | |
30087 | ||
4f14bcd8 | 30088 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30089 | which can conflict with char $ac_func (); below. |
30090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30091 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 30092 | |
e6cc62c6 VS |
30093 | #ifdef __STDC__ |
30094 | # include <limits.h> | |
30095 | #else | |
30096 | # include <assert.h> | |
30097 | #endif | |
f95e4495 VS |
30098 | |
30099 | #undef $ac_func | |
30100 | ||
4f14bcd8 | 30101 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30102 | #ifdef __cplusplus |
30103 | extern "C" | |
30104 | { | |
30105 | #endif | |
4f14bcd8 | 30106 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30107 | builtin and then its argument prototype would still apply. */ |
30108 | char $ac_func (); | |
4f14bcd8 GD |
30109 | /* The GNU C library defines this for functions which it implements |
30110 | to always fail with ENOSYS. Some functions are actually named | |
30111 | something starting with __ and the normal name is an alias. */ | |
30112 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30113 | choke me | |
30114 | #else | |
e6cc62c6 VS |
30115 | char (*f) () = $ac_func; |
30116 | #endif | |
30117 | #ifdef __cplusplus | |
30118 | } | |
4f14bcd8 GD |
30119 | #endif |
30120 | ||
e6cc62c6 VS |
30121 | int |
30122 | main () | |
30123 | { | |
30124 | return f != $ac_func; | |
30125 | ; | |
30126 | return 0; | |
30127 | } | |
30128 | _ACEOF | |
30129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30131 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30132 | ac_status=$? |
f95e4495 VS |
30133 | grep -v '^ *+' conftest.er1 >conftest.err |
30134 | rm -f conftest.er1 | |
30135 | cat conftest.err >&5 | |
e6cc62c6 VS |
30136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30137 | (exit $ac_status); } && | |
f95e4495 VS |
30138 | { ac_try='test -z "$ac_c_werror_flag" |
30139 | || test ! -s conftest.err' | |
30140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30141 | (eval $ac_try) 2>&5 | |
30142 | ac_status=$? | |
30143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30144 | (exit $ac_status); }; } && | |
30145 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30147 | (eval $ac_try) 2>&5 | |
30148 | ac_status=$? | |
30149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30150 | (exit $ac_status); }; }; then | |
30151 | eval "$as_ac_var=yes" | |
30152 | else | |
30153 | echo "$as_me: failed program was:" >&5 | |
30154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30155 | ||
30156 | eval "$as_ac_var=no" | |
30157 | fi | |
f95e4495 VS |
30158 | rm -f conftest.err conftest.$ac_objext \ |
30159 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30160 | fi |
30161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30162 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30163 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30164 | cat >>confdefs.h <<_ACEOF | |
30165 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30166 | _ACEOF | |
30167 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30168 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30169 | _ACEOF |
4f14bcd8 | 30170 | |
698dcdb6 | 30171 | else |
e6cc62c6 VS |
30172 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
30173 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30174 | ||
10f2d63a | 30175 | fi |
4f14bcd8 | 30176 | done |
10f2d63a | 30177 | |
e6cc62c6 VS |
30178 | |
30179 | ||
6232543b | 30180 | fi |
10f2d63a | 30181 | |
e6cc62c6 VS |
30182 | |
30183 | ||
1e487827 | 30184 | fi |
4f14bcd8 | 30185 | done |
703e0a69 | 30186 | |
10f2d63a VZ |
30187 | fi |
30188 | ||
e6cc62c6 VS |
30189 | |
30190 | ||
4f14bcd8 | 30191 | for ac_func in uname gethostname |
70846f0a | 30192 | do |
e6cc62c6 VS |
30193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30196 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30198 | else | |
30199 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30200 | /* confdefs.h. */ |
30201 | _ACEOF | |
30202 | cat confdefs.h >>conftest.$ac_ext | |
30203 | cat >>conftest.$ac_ext <<_ACEOF | |
30204 | /* end confdefs.h. */ | |
f95e4495 VS |
30205 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30206 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30207 | #define $ac_func innocuous_$ac_func | |
30208 | ||
70846f0a | 30209 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30210 | which can conflict with char $ac_func (); below. |
30211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30212 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 30213 | |
e6cc62c6 VS |
30214 | #ifdef __STDC__ |
30215 | # include <limits.h> | |
30216 | #else | |
30217 | # include <assert.h> | |
30218 | #endif | |
f95e4495 VS |
30219 | |
30220 | #undef $ac_func | |
30221 | ||
70846f0a | 30222 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30223 | #ifdef __cplusplus |
30224 | extern "C" | |
30225 | { | |
30226 | #endif | |
70846f0a | 30227 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30228 | builtin and then its argument prototype would still apply. */ |
30229 | char $ac_func (); | |
70846f0a VZ |
30230 | /* The GNU C library defines this for functions which it implements |
30231 | to always fail with ENOSYS. Some functions are actually named | |
30232 | something starting with __ and the normal name is an alias. */ | |
30233 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30234 | choke me | |
30235 | #else | |
e6cc62c6 VS |
30236 | char (*f) () = $ac_func; |
30237 | #endif | |
30238 | #ifdef __cplusplus | |
30239 | } | |
70846f0a VZ |
30240 | #endif |
30241 | ||
e6cc62c6 VS |
30242 | int |
30243 | main () | |
30244 | { | |
30245 | return f != $ac_func; | |
30246 | ; | |
30247 | return 0; | |
30248 | } | |
30249 | _ACEOF | |
30250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30252 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30253 | ac_status=$? |
f95e4495 VS |
30254 | grep -v '^ *+' conftest.er1 >conftest.err |
30255 | rm -f conftest.er1 | |
30256 | cat conftest.err >&5 | |
e6cc62c6 VS |
30257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30258 | (exit $ac_status); } && | |
f95e4495 VS |
30259 | { ac_try='test -z "$ac_c_werror_flag" |
30260 | || test ! -s conftest.err' | |
30261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30262 | (eval $ac_try) 2>&5 | |
30263 | ac_status=$? | |
30264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30265 | (exit $ac_status); }; } && | |
30266 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30268 | (eval $ac_try) 2>&5 | |
30269 | ac_status=$? | |
30270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30271 | (exit $ac_status); }; }; then | |
30272 | eval "$as_ac_var=yes" | |
30273 | else | |
30274 | echo "$as_me: failed program was:" >&5 | |
30275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30276 | ||
30277 | eval "$as_ac_var=no" | |
30278 | fi | |
f95e4495 VS |
30279 | rm -f conftest.err conftest.$ac_objext \ |
30280 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30281 | fi |
30282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30285 | cat >>confdefs.h <<_ACEOF | |
30286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30287 | _ACEOF | |
4f14bcd8 | 30288 | break |
70846f0a VZ |
30289 | fi |
30290 | done | |
30291 | ||
8284b0c5 MB |
30292 | |
30293 | ||
e6cc62c6 VS |
30294 | |
30295 | ac_ext=cc | |
4f14bcd8 | 30296 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30300 | ||
8284b0c5 | 30301 | |
4f14bcd8 GD |
30302 | |
30303 | for ac_func in strtok_r | |
10f2d63a | 30304 | do |
e6cc62c6 VS |
30305 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30306 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30307 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30308 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30310 | else | |
30311 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30312 | /* confdefs.h. */ |
30313 | _ACEOF | |
30314 | cat confdefs.h >>conftest.$ac_ext | |
30315 | cat >>conftest.$ac_ext <<_ACEOF | |
30316 | /* end confdefs.h. */ | |
f95e4495 VS |
30317 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30319 | #define $ac_func innocuous_$ac_func | |
30320 | ||
4f14bcd8 | 30321 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30322 | which can conflict with char $ac_func (); below. |
30323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30324 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 30325 | |
e6cc62c6 VS |
30326 | #ifdef __STDC__ |
30327 | # include <limits.h> | |
30328 | #else | |
30329 | # include <assert.h> | |
30330 | #endif | |
f95e4495 VS |
30331 | |
30332 | #undef $ac_func | |
30333 | ||
4f14bcd8 GD |
30334 | /* Override any gcc2 internal prototype to avoid an error. */ |
30335 | #ifdef __cplusplus | |
30336 | extern "C" | |
e6cc62c6 | 30337 | { |
4f14bcd8 GD |
30338 | #endif |
30339 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
30340 | builtin and then its argument prototype would still apply. */ |
30341 | char $ac_func (); | |
4f14bcd8 GD |
30342 | /* The GNU C library defines this for functions which it implements |
30343 | to always fail with ENOSYS. Some functions are actually named | |
30344 | something starting with __ and the normal name is an alias. */ | |
30345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30346 | choke me | |
30347 | #else | |
e6cc62c6 VS |
30348 | char (*f) () = $ac_func; |
30349 | #endif | |
30350 | #ifdef __cplusplus | |
30351 | } | |
4f14bcd8 GD |
30352 | #endif |
30353 | ||
e6cc62c6 VS |
30354 | int |
30355 | main () | |
30356 | { | |
30357 | return f != $ac_func; | |
30358 | ; | |
30359 | return 0; | |
30360 | } | |
30361 | _ACEOF | |
30362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30364 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30365 | ac_status=$? |
f95e4495 VS |
30366 | grep -v '^ *+' conftest.er1 >conftest.err |
30367 | rm -f conftest.er1 | |
30368 | cat conftest.err >&5 | |
e6cc62c6 VS |
30369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30370 | (exit $ac_status); } && | |
f95e4495 VS |
30371 | { ac_try='test -z "$ac_cxx_werror_flag" |
30372 | || test ! -s conftest.err' | |
30373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30374 | (eval $ac_try) 2>&5 | |
30375 | ac_status=$? | |
30376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30377 | (exit $ac_status); }; } && | |
30378 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30380 | (eval $ac_try) 2>&5 | |
30381 | ac_status=$? | |
30382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30383 | (exit $ac_status); }; }; then | |
30384 | eval "$as_ac_var=yes" | |
30385 | else | |
30386 | echo "$as_me: failed program was:" >&5 | |
30387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30388 | ||
30389 | eval "$as_ac_var=no" | |
30390 | fi | |
f95e4495 VS |
30391 | rm -f conftest.err conftest.$ac_objext \ |
30392 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30393 | fi |
30394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30395 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30397 | cat >>confdefs.h <<_ACEOF | |
30398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30399 | _ACEOF | |
4f14bcd8 | 30400 | |
10f2d63a VZ |
30401 | fi |
30402 | done | |
30403 | ||
8284b0c5 | 30404 | |
4f14bcd8 | 30405 | ac_ext=c |
4f14bcd8 | 30406 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 30410 | |
5c6fa7d2 | 30411 | |
8284b0c5 | 30412 | INET_LINK= |
e6cc62c6 | 30413 | |
4f14bcd8 GD |
30414 | for ac_func in inet_addr |
30415 | do | |
e6cc62c6 VS |
30416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30419 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30421 | else | |
30422 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30423 | /* confdefs.h. */ |
30424 | _ACEOF | |
30425 | cat confdefs.h >>conftest.$ac_ext | |
30426 | cat >>conftest.$ac_ext <<_ACEOF | |
30427 | /* end confdefs.h. */ | |
f95e4495 VS |
30428 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30429 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30430 | #define $ac_func innocuous_$ac_func | |
30431 | ||
4f14bcd8 | 30432 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30433 | which can conflict with char $ac_func (); below. |
30434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30435 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 30436 | |
e6cc62c6 VS |
30437 | #ifdef __STDC__ |
30438 | # include <limits.h> | |
30439 | #else | |
30440 | # include <assert.h> | |
30441 | #endif | |
f95e4495 VS |
30442 | |
30443 | #undef $ac_func | |
30444 | ||
10f2d63a | 30445 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30446 | #ifdef __cplusplus |
30447 | extern "C" | |
30448 | { | |
30449 | #endif | |
10f2d63a | 30450 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30451 | builtin and then its argument prototype would still apply. */ |
30452 | char $ac_func (); | |
4f14bcd8 GD |
30453 | /* The GNU C library defines this for functions which it implements |
30454 | to always fail with ENOSYS. Some functions are actually named | |
30455 | something starting with __ and the normal name is an alias. */ | |
30456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30457 | choke me | |
30458 | #else | |
e6cc62c6 VS |
30459 | char (*f) () = $ac_func; |
30460 | #endif | |
30461 | #ifdef __cplusplus | |
30462 | } | |
4f14bcd8 GD |
30463 | #endif |
30464 | ||
e6cc62c6 VS |
30465 | int |
30466 | main () | |
30467 | { | |
30468 | return f != $ac_func; | |
30469 | ; | |
30470 | return 0; | |
30471 | } | |
30472 | _ACEOF | |
30473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30475 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30476 | ac_status=$? |
f95e4495 VS |
30477 | grep -v '^ *+' conftest.er1 >conftest.err |
30478 | rm -f conftest.er1 | |
30479 | cat conftest.err >&5 | |
e6cc62c6 VS |
30480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30481 | (exit $ac_status); } && | |
f95e4495 VS |
30482 | { ac_try='test -z "$ac_c_werror_flag" |
30483 | || test ! -s conftest.err' | |
30484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30485 | (eval $ac_try) 2>&5 | |
30486 | ac_status=$? | |
30487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30488 | (exit $ac_status); }; } && | |
30489 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30491 | (eval $ac_try) 2>&5 | |
30492 | ac_status=$? | |
30493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30494 | (exit $ac_status); }; }; then | |
30495 | eval "$as_ac_var=yes" | |
30496 | else | |
30497 | echo "$as_me: failed program was:" >&5 | |
30498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30499 | ||
30500 | eval "$as_ac_var=no" | |
30501 | fi | |
f95e4495 VS |
30502 | rm -f conftest.err conftest.$ac_objext \ |
30503 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30504 | fi |
30505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30506 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30507 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30508 | cat >>confdefs.h <<_ACEOF | |
30509 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30510 | _ACEOF | |
30511 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30512 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 30513 | _ACEOF |
10f2d63a VZ |
30514 | |
30515 | else | |
e6cc62c6 VS |
30516 | |
30517 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30518 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30519 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30521 | else |
e6cc62c6 | 30522 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30523 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 30524 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30525 | /* confdefs.h. */ |
30526 | _ACEOF | |
30527 | cat confdefs.h >>conftest.$ac_ext | |
30528 | cat >>conftest.$ac_ext <<_ACEOF | |
30529 | /* end confdefs.h. */ | |
30530 | ||
10f2d63a | 30531 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30532 | #ifdef __cplusplus |
30533 | extern "C" | |
30534 | #endif | |
10f2d63a | 30535 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30536 | builtin and then its argument prototype would still apply. */ |
30537 | char inet_addr (); | |
30538 | int | |
30539 | main () | |
30540 | { | |
30541 | inet_addr (); | |
30542 | ; | |
30543 | return 0; | |
30544 | } | |
30545 | _ACEOF | |
30546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30548 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30549 | ac_status=$? |
f95e4495 VS |
30550 | grep -v '^ *+' conftest.er1 >conftest.err |
30551 | rm -f conftest.er1 | |
30552 | cat conftest.err >&5 | |
e6cc62c6 VS |
30553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30554 | (exit $ac_status); } && | |
f95e4495 VS |
30555 | { ac_try='test -z "$ac_c_werror_flag" |
30556 | || test ! -s conftest.err' | |
30557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30558 | (eval $ac_try) 2>&5 | |
30559 | ac_status=$? | |
30560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30561 | (exit $ac_status); }; } && | |
30562 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30564 | (eval $ac_try) 2>&5 | |
30565 | ac_status=$? | |
30566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30567 | (exit $ac_status); }; }; then | |
30568 | ac_cv_lib_nsl_inet_addr=yes | |
30569 | else | |
30570 | echo "$as_me: failed program was:" >&5 | |
30571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30572 | ||
30573 | ac_cv_lib_nsl_inet_addr=no | |
30574 | fi | |
f95e4495 VS |
30575 | rm -f conftest.err conftest.$ac_objext \ |
30576 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30577 | LIBS=$ac_check_lib_save_LIBS |
30578 | fi | |
30579 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
30580 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
30581 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 30582 | INET_LINK="nsl" |
10f2d63a | 30583 | else |
0e012a93 VZ |
30584 | |
30585 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
30586 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
30587 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
30588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30589 | else |
e6cc62c6 | 30590 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30591 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 30592 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30593 | /* confdefs.h. */ |
30594 | _ACEOF | |
30595 | cat confdefs.h >>conftest.$ac_ext | |
30596 | cat >>conftest.$ac_ext <<_ACEOF | |
30597 | /* end confdefs.h. */ | |
30598 | ||
5c6fa7d2 | 30599 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30600 | #ifdef __cplusplus |
30601 | extern "C" | |
30602 | #endif | |
5c6fa7d2 | 30603 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30604 | builtin and then its argument prototype would still apply. */ |
30605 | char inet_addr (); | |
30606 | int | |
30607 | main () | |
30608 | { | |
30609 | inet_addr (); | |
30610 | ; | |
30611 | return 0; | |
30612 | } | |
30613 | _ACEOF | |
30614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30616 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30617 | ac_status=$? |
f95e4495 VS |
30618 | grep -v '^ *+' conftest.er1 >conftest.err |
30619 | rm -f conftest.er1 | |
30620 | cat conftest.err >&5 | |
e6cc62c6 VS |
30621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30622 | (exit $ac_status); } && | |
f95e4495 VS |
30623 | { ac_try='test -z "$ac_c_werror_flag" |
30624 | || test ! -s conftest.err' | |
30625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30626 | (eval $ac_try) 2>&5 | |
30627 | ac_status=$? | |
30628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30629 | (exit $ac_status); }; } && | |
30630 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30632 | (eval $ac_try) 2>&5 | |
30633 | ac_status=$? | |
30634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30635 | (exit $ac_status); }; }; then | |
30636 | ac_cv_lib_resolv_inet_addr=yes | |
30637 | else | |
30638 | echo "$as_me: failed program was:" >&5 | |
30639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30640 | ||
30641 | ac_cv_lib_resolv_inet_addr=no | |
30642 | fi | |
f95e4495 VS |
30643 | rm -f conftest.err conftest.$ac_objext \ |
30644 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30645 | LIBS=$ac_check_lib_save_LIBS |
30646 | fi | |
30647 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
30648 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
30649 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 30650 | INET_LINK="resolv" |
698dcdb6 | 30651 | else |
0e012a93 VZ |
30652 | |
30653 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
30654 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
30655 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
30656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 30657 | else |
e6cc62c6 | 30658 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 30659 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 30660 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30661 | /* confdefs.h. */ |
30662 | _ACEOF | |
30663 | cat confdefs.h >>conftest.$ac_ext | |
30664 | cat >>conftest.$ac_ext <<_ACEOF | |
30665 | /* end confdefs.h. */ | |
30666 | ||
3c011993 | 30667 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30668 | #ifdef __cplusplus |
30669 | extern "C" | |
30670 | #endif | |
3c011993 | 30671 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30672 | builtin and then its argument prototype would still apply. */ |
30673 | char inet_addr (); | |
30674 | int | |
30675 | main () | |
30676 | { | |
30677 | inet_addr (); | |
30678 | ; | |
30679 | return 0; | |
30680 | } | |
30681 | _ACEOF | |
30682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30684 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30685 | ac_status=$? |
f95e4495 VS |
30686 | grep -v '^ *+' conftest.er1 >conftest.err |
30687 | rm -f conftest.er1 | |
30688 | cat conftest.err >&5 | |
e6cc62c6 VS |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30690 | (exit $ac_status); } && | |
f95e4495 VS |
30691 | { ac_try='test -z "$ac_c_werror_flag" |
30692 | || test ! -s conftest.err' | |
30693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30694 | (eval $ac_try) 2>&5 | |
30695 | ac_status=$? | |
30696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30697 | (exit $ac_status); }; } && | |
30698 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30700 | (eval $ac_try) 2>&5 | |
30701 | ac_status=$? | |
30702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30703 | (exit $ac_status); }; }; then | |
30704 | ac_cv_lib_socket_inet_addr=yes | |
30705 | else | |
30706 | echo "$as_me: failed program was:" >&5 | |
30707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30708 | ||
30709 | ac_cv_lib_socket_inet_addr=no | |
30710 | fi | |
f95e4495 VS |
30711 | rm -f conftest.err conftest.$ac_objext \ |
30712 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30713 | LIBS=$ac_check_lib_save_LIBS |
30714 | fi | |
30715 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
30716 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
30717 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
30718 | INET_LINK="socket" | |
4f14bcd8 | 30719 | |
8284b0c5 | 30720 | fi |
e6cc62c6 | 30721 | |
698dcdb6 | 30722 | |
0e012a93 | 30723 | |
7b4a847f | 30724 | fi |
e6cc62c6 VS |
30725 | |
30726 | ||
0e012a93 | 30727 | |
a0b9e27f | 30728 | fi |
579d8138 | 30729 | |
e6cc62c6 VS |
30730 | |
30731 | ||
5c6fa7d2 | 30732 | fi |
e6cc62c6 VS |
30733 | done |
30734 | ||
30735 | ||
30736 | ||
30737 | for ac_func in inet_aton | |
30738 | do | |
30739 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30740 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30741 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30742 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30744 | else | |
30745 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30746 | /* confdefs.h. */ |
30747 | _ACEOF | |
30748 | cat confdefs.h >>conftest.$ac_ext | |
30749 | cat >>conftest.$ac_ext <<_ACEOF | |
30750 | /* end confdefs.h. */ | |
f95e4495 VS |
30751 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30752 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30753 | #define $ac_func innocuous_$ac_func | |
30754 | ||
e6cc62c6 VS |
30755 | /* System header to define __stub macros and hopefully few prototypes, |
30756 | which can conflict with char $ac_func (); below. | |
30757 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30758 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 30759 | |
e6cc62c6 VS |
30760 | #ifdef __STDC__ |
30761 | # include <limits.h> | |
30762 | #else | |
30763 | # include <assert.h> | |
30764 | #endif | |
f95e4495 VS |
30765 | |
30766 | #undef $ac_func | |
30767 | ||
e6cc62c6 VS |
30768 | /* Override any gcc2 internal prototype to avoid an error. */ |
30769 | #ifdef __cplusplus | |
30770 | extern "C" | |
30771 | { | |
30772 | #endif | |
30773 | /* We use char because int might match the return type of a gcc2 | |
30774 | builtin and then its argument prototype would still apply. */ | |
30775 | char $ac_func (); | |
30776 | /* The GNU C library defines this for functions which it implements | |
30777 | to always fail with ENOSYS. Some functions are actually named | |
30778 | something starting with __ and the normal name is an alias. */ | |
30779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30780 | choke me | |
30781 | #else | |
30782 | char (*f) () = $ac_func; | |
30783 | #endif | |
30784 | #ifdef __cplusplus | |
30785 | } | |
30786 | #endif | |
30787 | ||
30788 | int | |
30789 | main () | |
30790 | { | |
30791 | return f != $ac_func; | |
30792 | ; | |
30793 | return 0; | |
30794 | } | |
30795 | _ACEOF | |
30796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30798 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30799 | ac_status=$? |
f95e4495 VS |
30800 | grep -v '^ *+' conftest.er1 >conftest.err |
30801 | rm -f conftest.er1 | |
30802 | cat conftest.err >&5 | |
e6cc62c6 VS |
30803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30804 | (exit $ac_status); } && | |
f95e4495 VS |
30805 | { ac_try='test -z "$ac_c_werror_flag" |
30806 | || test ! -s conftest.err' | |
30807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30808 | (eval $ac_try) 2>&5 | |
30809 | ac_status=$? | |
30810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30811 | (exit $ac_status); }; } && | |
30812 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30814 | (eval $ac_try) 2>&5 | |
30815 | ac_status=$? | |
30816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30817 | (exit $ac_status); }; }; then | |
30818 | eval "$as_ac_var=yes" | |
30819 | else | |
30820 | echo "$as_me: failed program was:" >&5 | |
30821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30822 | ||
30823 | eval "$as_ac_var=no" | |
30824 | fi | |
f95e4495 VS |
30825 | rm -f conftest.err conftest.$ac_objext \ |
30826 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30827 | fi |
30828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30829 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30830 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30831 | cat >>confdefs.h <<_ACEOF | |
30832 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30833 | _ACEOF | |
30834 | cat >>confdefs.h <<\_ACEOF | |
30835 | #define HAVE_INET_ATON 1 | |
30836 | _ACEOF | |
30837 | ||
30838 | else | |
30839 | ||
30840 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
30841 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
30842 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
30843 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
30844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30845 | else | |
30846 | ac_check_lib_save_LIBS=$LIBS | |
30847 | LIBS="-l$INET_LINK $LIBS" | |
30848 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30849 | /* confdefs.h. */ |
30850 | _ACEOF | |
30851 | cat confdefs.h >>conftest.$ac_ext | |
30852 | cat >>conftest.$ac_ext <<_ACEOF | |
30853 | /* end confdefs.h. */ | |
30854 | ||
30855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30856 | #ifdef __cplusplus | |
30857 | extern "C" | |
30858 | #endif | |
30859 | /* We use char because int might match the return type of a gcc2 | |
30860 | builtin and then its argument prototype would still apply. */ | |
30861 | char inet_aton (); | |
30862 | int | |
30863 | main () | |
30864 | { | |
30865 | inet_aton (); | |
30866 | ; | |
30867 | return 0; | |
30868 | } | |
30869 | _ACEOF | |
30870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30872 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30873 | ac_status=$? |
f95e4495 VS |
30874 | grep -v '^ *+' conftest.er1 >conftest.err |
30875 | rm -f conftest.er1 | |
30876 | cat conftest.err >&5 | |
e6cc62c6 VS |
30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30878 | (exit $ac_status); } && | |
f95e4495 VS |
30879 | { ac_try='test -z "$ac_c_werror_flag" |
30880 | || test ! -s conftest.err' | |
30881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30882 | (eval $ac_try) 2>&5 | |
30883 | ac_status=$? | |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30885 | (exit $ac_status); }; } && | |
30886 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30888 | (eval $ac_try) 2>&5 | |
30889 | ac_status=$? | |
30890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30891 | (exit $ac_status); }; }; then | |
30892 | eval "$as_ac_Lib=yes" | |
30893 | else | |
30894 | echo "$as_me: failed program was:" >&5 | |
30895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30896 | ||
30897 | eval "$as_ac_Lib=no" | |
30898 | fi | |
f95e4495 VS |
30899 | rm -f conftest.err conftest.$ac_objext \ |
30900 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30901 | LIBS=$ac_check_lib_save_LIBS |
30902 | fi | |
30903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
30904 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
30905 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
30906 | cat >>confdefs.h <<\_ACEOF | |
30907 | #define HAVE_INET_ATON 1 | |
30908 | _ACEOF | |
52127426 | 30909 | |
a0b9e27f | 30910 | fi |
247f5006 | 30911 | |
8284b0c5 | 30912 | |
698dcdb6 | 30913 | fi |
4f14bcd8 GD |
30914 | done |
30915 | ||
8284b0c5 | 30916 | |
e6cc62c6 VS |
30917 | if test "x$INET_LINK" != "x"; then |
30918 | cat >>confdefs.h <<\_ACEOF | |
30919 | #define HAVE_INET_ADDR 1 | |
30920 | _ACEOF | |
30921 | ||
30922 | INET_LINK=" -l$INET_LINK" | |
30923 | fi | |
30924 | ||
30925 | fi | |
a0b9e27f | 30926 | |
a0b9e27f | 30927 | |
4f14bcd8 | 30928 | |
edd891e2 VS |
30929 | EXTRALIBS_ESD= |
30930 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
30931 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
30932 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
30933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30934 | else | |
30935 | ac_check_lib_save_LIBS=$LIBS | |
30936 | LIBS="-lesd $LIBS" | |
30937 | cat >conftest.$ac_ext <<_ACEOF | |
edd891e2 VS |
30938 | /* confdefs.h. */ |
30939 | _ACEOF | |
30940 | cat confdefs.h >>conftest.$ac_ext | |
30941 | cat >>conftest.$ac_ext <<_ACEOF | |
30942 | /* end confdefs.h. */ | |
30943 | ||
30944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30945 | #ifdef __cplusplus | |
30946 | extern "C" | |
30947 | #endif | |
30948 | /* We use char because int might match the return type of a gcc2 | |
30949 | builtin and then its argument prototype would still apply. */ | |
30950 | char esd_close (); | |
30951 | int | |
30952 | main () | |
30953 | { | |
30954 | esd_close (); | |
30955 | ; | |
30956 | return 0; | |
30957 | } | |
30958 | _ACEOF | |
30959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 30961 | (eval $ac_link) 2>conftest.er1 |
edd891e2 | 30962 | ac_status=$? |
f95e4495 VS |
30963 | grep -v '^ *+' conftest.er1 >conftest.err |
30964 | rm -f conftest.er1 | |
30965 | cat conftest.err >&5 | |
edd891e2 VS |
30966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30967 | (exit $ac_status); } && | |
f95e4495 VS |
30968 | { ac_try='test -z "$ac_c_werror_flag" |
30969 | || test ! -s conftest.err' | |
30970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30971 | (eval $ac_try) 2>&5 | |
30972 | ac_status=$? | |
30973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30974 | (exit $ac_status); }; } && | |
30975 | { ac_try='test -s conftest$ac_exeext' | |
edd891e2 VS |
30976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30977 | (eval $ac_try) 2>&5 | |
30978 | ac_status=$? | |
30979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30980 | (exit $ac_status); }; }; then | |
30981 | ac_cv_lib_esd_esd_close=yes | |
30982 | else | |
30983 | echo "$as_me: failed program was:" >&5 | |
30984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30985 | ||
30986 | ac_cv_lib_esd_esd_close=no | |
30987 | fi | |
f95e4495 VS |
30988 | rm -f conftest.err conftest.$ac_objext \ |
30989 | conftest$ac_exeext conftest.$ac_ext | |
edd891e2 VS |
30990 | LIBS=$ac_check_lib_save_LIBS |
30991 | fi | |
30992 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
30993 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
30994 | if test $ac_cv_lib_esd_esd_close = yes; then | |
30995 | ||
30996 | ||
30997 | for ac_header in esd.h | |
30998 | do | |
30999 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31005 | fi | |
edd891e2 VS |
31006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
31008 | else |
31009 | # Is the header compilable? | |
edd891e2 VS |
31010 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
31011 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 31012 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31013 | /* confdefs.h. */ |
31014 | _ACEOF | |
31015 | cat confdefs.h >>conftest.$ac_ext | |
31016 | cat >>conftest.$ac_ext <<_ACEOF | |
31017 | /* end confdefs.h. */ | |
31018 | $ac_includes_default | |
edd891e2 | 31019 | #include <$ac_header> |
e6cc62c6 VS |
31020 | _ACEOF |
31021 | rm -f conftest.$ac_objext | |
31022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 31023 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31024 | ac_status=$? |
f95e4495 VS |
31025 | grep -v '^ *+' conftest.er1 >conftest.err |
31026 | rm -f conftest.er1 | |
31027 | cat conftest.err >&5 | |
e6cc62c6 VS |
31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31029 | (exit $ac_status); } && | |
f95e4495 VS |
31030 | { ac_try='test -z "$ac_c_werror_flag" |
31031 | || test ! -s conftest.err' | |
31032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31033 | (eval $ac_try) 2>&5 | |
31034 | ac_status=$? | |
31035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31036 | (exit $ac_status); }; } && | |
31037 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31039 | (eval $ac_try) 2>&5 | |
31040 | ac_status=$? | |
31041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31042 | (exit $ac_status); }; }; then | |
31043 | ac_header_compiler=yes | |
31044 | else | |
31045 | echo "$as_me: failed program was:" >&5 | |
31046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31047 | ||
31048 | ac_header_compiler=no | |
31049 | fi | |
f95e4495 | 31050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31051 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31052 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31053 | ||
31054 | # Is the header present? | |
edd891e2 VS |
31055 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
31056 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 31057 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31058 | /* confdefs.h. */ |
31059 | _ACEOF | |
31060 | cat confdefs.h >>conftest.$ac_ext | |
31061 | cat >>conftest.$ac_ext <<_ACEOF | |
31062 | /* end confdefs.h. */ | |
edd891e2 | 31063 | #include <$ac_header> |
e6cc62c6 VS |
31064 | _ACEOF |
31065 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31067 | ac_status=$? | |
31068 | grep -v '^ *+' conftest.er1 >conftest.err | |
31069 | rm -f conftest.er1 | |
31070 | cat conftest.err >&5 | |
31071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31072 | (exit $ac_status); } >/dev/null; then | |
31073 | if test -s conftest.err; then | |
31074 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 31075 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31076 | else |
31077 | ac_cpp_err= | |
31078 | fi | |
a0b9e27f | 31079 | else |
e6cc62c6 VS |
31080 | ac_cpp_err=yes |
31081 | fi | |
31082 | if test -z "$ac_cpp_err"; then | |
31083 | ac_header_preproc=yes | |
31084 | else | |
31085 | echo "$as_me: failed program was:" >&5 | |
31086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31087 | ||
31088 | ac_header_preproc=no | |
31089 | fi | |
31090 | rm -f conftest.err conftest.$ac_ext | |
31091 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31092 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31093 | ||
31094 | # So? What about this header? | |
f95e4495 VS |
31095 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31096 | yes:no: ) | |
edd891e2 VS |
31097 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31098 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
31099 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31100 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31101 | ac_header_preproc=yes | |
e6cc62c6 | 31102 | ;; |
f95e4495 | 31103 | no:yes:* ) |
edd891e2 VS |
31104 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31105 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
31106 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31107 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31108 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31109 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31110 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31111 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
edd891e2 VS |
31112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31113 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
31114 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31115 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31116 | ( |
31117 | cat <<\_ASBOX | |
f95e4495 VS |
31118 | ## ----------------------------------------- ## |
31119 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31120 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31121 | _ASBOX |
31122 | ) | | |
31123 | sed "s/^/$as_me: WARNING: /" >&2 | |
31124 | ;; | |
31125 | esac | |
edd891e2 VS |
31126 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
31127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31130 | else | |
f95e4495 | 31131 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 31132 | fi |
edd891e2 VS |
31133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 31135 | |
e6cc62c6 | 31136 | fi |
edd891e2 VS |
31137 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31138 | cat >>confdefs.h <<_ACEOF | |
31139 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 31140 | _ACEOF |
e6cc62c6 | 31141 | |
edd891e2 | 31142 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 31143 | |
a0b9e27f | 31144 | fi |
247f5006 | 31145 | |
edd891e2 | 31146 | done |
8284b0c5 | 31147 | |
4f14bcd8 | 31148 | |
6232543b | 31149 | fi |
10f2d63a | 31150 | |
703e0a69 | 31151 | |
8284b0c5 | 31152 | |
d19d1899 MB |
31153 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
31154 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31155 | cat >conftest.$ac_ext <<_ACEOF | |
d19d1899 MB |
31156 | /* confdefs.h. */ |
31157 | _ACEOF | |
31158 | cat confdefs.h >>conftest.$ac_ext | |
31159 | cat >>conftest.$ac_ext <<_ACEOF | |
31160 | /* end confdefs.h. */ | |
31161 | #ifdef __linux__ | |
31162 | #include <linux/cdrom.h> | |
31163 | #else | |
31164 | /* For Solaris */ | |
31165 | #include <sys/cdio.h> | |
31166 | #endif | |
31167 | ||
31168 | int | |
31169 | main () | |
31170 | { | |
31171 | struct cdrom_tocentry entry, old_entry; | |
31172 | ; | |
31173 | return 0; | |
31174 | } | |
31175 | _ACEOF | |
31176 | rm -f conftest.$ac_objext | |
31177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 31178 | (eval $ac_compile) 2>conftest.er1 |
d19d1899 | 31179 | ac_status=$? |
f95e4495 VS |
31180 | grep -v '^ *+' conftest.er1 >conftest.err |
31181 | rm -f conftest.er1 | |
31182 | cat conftest.err >&5 | |
d19d1899 MB |
31183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31184 | (exit $ac_status); } && | |
f95e4495 VS |
31185 | { ac_try='test -z "$ac_c_werror_flag" |
31186 | || test ! -s conftest.err' | |
31187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31188 | (eval $ac_try) 2>&5 | |
31189 | ac_status=$? | |
31190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31191 | (exit $ac_status); }; } && | |
31192 | { ac_try='test -s conftest.$ac_objext' | |
d19d1899 MB |
31193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31194 | (eval $ac_try) 2>&5 | |
31195 | ac_status=$? | |
31196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31197 | (exit $ac_status); }; }; then | |
31198 | echo "$as_me:$LINENO: result: yes" >&5 | |
31199 | echo "${ECHO_T}yes" >&6 | |
31200 | cat >>confdefs.h <<\_ACEOF | |
31201 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31202 | _ACEOF | |
31203 | ||
31204 | else | |
31205 | echo "$as_me: failed program was:" >&5 | |
31206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31207 | ||
31208 | echo "$as_me:$LINENO: result: no" >&5 | |
31209 | echo "${ECHO_T}no" >&6 | |
31210 | fi | |
f95e4495 | 31211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31212 | |
31213 | ||
31214 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
31215 | # This file is a shell script that caches the results of configure |
31216 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
31217 | # scripts and configure runs, see configure's option --config-cache. |
31218 | # It is not useful on other systems. If it contains results you don't | |
31219 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 31220 | # |
e6cc62c6 VS |
31221 | # config.status only pays attention to the cache file if you give it |
31222 | # the --recheck option to rerun configure. | |
4f14bcd8 | 31223 | # |
e6cc62c6 VS |
31224 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
31225 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31226 | # following values. | |
31227 | ||
31228 | _ACEOF | |
31229 | ||
4f14bcd8 GD |
31230 | # The following way of writing the cache mishandles newlines in values, |
31231 | # but we know of no workaround that is simple, portable, and efficient. | |
31232 | # So, don't put newlines in cache variables' values. | |
31233 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31234 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
31235 | { |
31236 | (set) 2>&1 | | |
31237 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31238 | *ac_space=\ *) | |
31239 | # `set' does not quote correctly, so add quotes (double-quote | |
31240 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31241 | sed -n \ | |
f95e4495 VS |
31242 | "s/'/'\\\\''/g; |
31243 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
31244 | ;; |
31245 | *) | |
31246 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31247 | sed -n \ | |
f95e4495 | 31248 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
31249 | ;; |
31250 | esac; | |
31251 | } | | |
31252 | sed ' | |
31253 | t clear | |
31254 | : clear | |
31255 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31256 | t end | |
31257 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31258 | : end' >>confcache | |
31259 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 31260 | if test -w $cache_file; then |
e6cc62c6 VS |
31261 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
31262 | cat confcache >$cache_file | |
f6bcfd97 | 31263 | else |
4f14bcd8 | 31264 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 31265 | fi |
4f14bcd8 GD |
31266 | fi |
31267 | rm -f confcache | |
f6bcfd97 | 31268 | |
8284b0c5 | 31269 | |
009fead0 | 31270 | CPP_MT_FLAG= |
73d617c9 | 31271 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 31272 | |
e6cc62c6 | 31273 | |
7274f1c7 | 31274 | THREADS_LINK= |
009fead0 | 31275 | THREADS_CFLAGS= |
7274f1c7 RL |
31276 | |
31277 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 31278 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
31279 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
31280 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
31281 | wxUSE_THREADS="no" |
31282 | fi | |
4f14bcd8 | 31283 | fi |
4f14bcd8 | 31284 | |
7274f1c7 | 31285 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31286 | |
31287 | ||
009fead0 VZ |
31288 | THREAD_OPTS="-pthread" |
31289 | case "${host}" in | |
31290 | *-*-solaris2* | *-*-sunos4* ) | |
31291 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 31292 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
31293 | else |
31294 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31295 | fi | |
31296 | ;; | |
31297 | *-*-freebsd*) | |
31298 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31299 | ;; | |
17234b26 MB |
31300 | *-*-darwin* | *-*-cygwin* ) |
31301 | THREAD_OPTS="" | |
4101db81 | 31302 | ;; |
8f4a9a10 | 31303 | *-*-aix*) |
009fead0 VZ |
31304 | THREAD_OPTS="pthreads" |
31305 | ;; | |
4f5a7f74 VZ |
31306 | *-hp-hpux* ) |
31307 | if test "x$GCC" != "xyes"; then | |
31308 | THREAD_OPTS="" | |
31309 | fi | |
89e3b3e4 VZ |
31310 | ;; |
31311 | ||
31312 | *-*-irix* ) | |
31313 | if test "x$GCC" = "xyes"; then | |
31314 | THREAD_OPTS="" | |
31315 | fi | |
31316 | ;; | |
31317 | ||
31318 | *-*-*UnixWare*) | |
31319 | if test "x$GCC" != "xyes"; then | |
31320 | THREAD_OPTS="-Ethread" | |
31321 | fi | |
31322 | ;; | |
009fead0 | 31323 | esac |
4f14bcd8 | 31324 | |
02a1dfba | 31325 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 31326 | |
009fead0 VZ |
31327 | THREADS_OK=no |
31328 | for flag in $THREAD_OPTS; do | |
31329 | case $flag in | |
31330 | none) | |
e6cc62c6 VS |
31331 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
31332 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 31333 | ;; |
698dcdb6 | 31334 | |
009fead0 | 31335 | -*) |
e6cc62c6 VS |
31336 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
31337 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
31338 | THREADS_CFLAGS="$flag" |
31339 | ;; | |
698dcdb6 | 31340 | |
009fead0 | 31341 | *) |
e6cc62c6 VS |
31342 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
31343 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
31344 | THREADS_LINK="-l$flag" |
31345 | ;; | |
31346 | esac | |
10f2d63a | 31347 | |
009fead0 VZ |
31348 | save_LIBS="$LIBS" |
31349 | save_CFLAGS="$CFLAGS" | |
31350 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 31351 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 31352 | |
e6cc62c6 | 31353 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31354 | /* confdefs.h. */ |
31355 | _ACEOF | |
31356 | cat confdefs.h >>conftest.$ac_ext | |
31357 | cat >>conftest.$ac_ext <<_ACEOF | |
31358 | /* end confdefs.h. */ | |
009fead0 | 31359 | #include <pthread.h> |
e6cc62c6 VS |
31360 | int |
31361 | main () | |
31362 | { | |
009fead0 | 31363 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
31364 | ; |
31365 | return 0; | |
31366 | } | |
31367 | _ACEOF | |
31368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 31370 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31371 | ac_status=$? |
f95e4495 VS |
31372 | grep -v '^ *+' conftest.er1 >conftest.err |
31373 | rm -f conftest.er1 | |
31374 | cat conftest.err >&5 | |
e6cc62c6 VS |
31375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31376 | (exit $ac_status); } && | |
f95e4495 VS |
31377 | { ac_try='test -z "$ac_c_werror_flag" |
31378 | || test ! -s conftest.err' | |
31379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31380 | (eval $ac_try) 2>&5 | |
31381 | ac_status=$? | |
31382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31383 | (exit $ac_status); }; } && | |
31384 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31386 | (eval $ac_try) 2>&5 | |
31387 | ac_status=$? | |
31388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31389 | (exit $ac_status); }; }; then | |
009fead0 | 31390 | THREADS_OK=yes |
10f2d63a | 31391 | else |
e6cc62c6 VS |
31392 | echo "$as_me: failed program was:" >&5 |
31393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31394 | ||
6232543b | 31395 | fi |
f95e4495 VS |
31396 | rm -f conftest.err conftest.$ac_objext \ |
31397 | conftest$ac_exeext conftest.$ac_ext | |
698dcdb6 | 31398 | |
009fead0 VZ |
31399 | LIBS="$save_LIBS" |
31400 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 31401 | |
e6cc62c6 VS |
31402 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
31403 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
31404 | if test "x$THREADS_OK" = "xyes"; then |
31405 | break; | |
31406 | fi | |
d9b9876f | 31407 | |
009fead0 VZ |
31408 | THREADS_LINK="" |
31409 | THREADS_CFLAGS="" | |
31410 | done | |
4f14bcd8 | 31411 | |
009fead0 VZ |
31412 | if test "x$THREADS_OK" != "xyes"; then |
31413 | wxUSE_THREADS=no | |
e6cc62c6 VS |
31414 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
31415 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 31416 | else |
db82f09e VZ |
31417 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
31418 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 31419 | |
e6cc62c6 VS |
31420 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
31421 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
31422 | flag=no |
31423 | case "${host}" in | |
2b5f62a0 VZ |
31424 | *-aix*) |
31425 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31426 | flag="-D_THREAD_SAFE" | |
31427 | ;; | |
31428 | *-freebsd*) | |
009fead0 VZ |
31429 | flag="-D_THREAD_SAFE" |
31430 | ;; | |
06313569 GD |
31431 | *-hp-hpux* ) |
31432 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
31433 | if test "x$GCC" != "xyes"; then |
31434 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
31435 | fi | |
06313569 | 31436 | ;; |
009fead0 VZ |
31437 | *solaris* | alpha*-osf*) |
31438 | flag="-D_REENTRANT" | |
31439 | ;; | |
31440 | esac | |
e6cc62c6 VS |
31441 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
31442 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 31443 | if test "x$flag" != xno; then |
04727afd | 31444 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
31445 | fi |
31446 | ||
009fead0 | 31447 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 31448 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
31449 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
31450 | fi | |
31451 | fi | |
4f14bcd8 | 31452 | fi |
4f14bcd8 | 31453 | |
7274f1c7 | 31454 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31455 | |
31456 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 31457 | do |
e6cc62c6 VS |
31458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31459 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31461 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31463 | else | |
31464 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31465 | /* confdefs.h. */ |
31466 | _ACEOF | |
31467 | cat confdefs.h >>conftest.$ac_ext | |
31468 | cat >>conftest.$ac_ext <<_ACEOF | |
31469 | /* end confdefs.h. */ | |
f95e4495 VS |
31470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31472 | #define $ac_func innocuous_$ac_func | |
31473 | ||
4f14bcd8 | 31474 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31475 | which can conflict with char $ac_func (); below. |
31476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31477 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 31478 | |
e6cc62c6 VS |
31479 | #ifdef __STDC__ |
31480 | # include <limits.h> | |
31481 | #else | |
31482 | # include <assert.h> | |
31483 | #endif | |
f95e4495 VS |
31484 | |
31485 | #undef $ac_func | |
31486 | ||
4f14bcd8 | 31487 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31488 | #ifdef __cplusplus |
31489 | extern "C" | |
31490 | { | |
31491 | #endif | |
4f14bcd8 | 31492 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31493 | builtin and then its argument prototype would still apply. */ |
31494 | char $ac_func (); | |
4f14bcd8 GD |
31495 | /* The GNU C library defines this for functions which it implements |
31496 | to always fail with ENOSYS. Some functions are actually named | |
31497 | something starting with __ and the normal name is an alias. */ | |
31498 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31499 | choke me | |
31500 | #else | |
e6cc62c6 VS |
31501 | char (*f) () = $ac_func; |
31502 | #endif | |
31503 | #ifdef __cplusplus | |
31504 | } | |
4f14bcd8 GD |
31505 | #endif |
31506 | ||
e6cc62c6 VS |
31507 | int |
31508 | main () | |
31509 | { | |
31510 | return f != $ac_func; | |
31511 | ; | |
31512 | return 0; | |
31513 | } | |
31514 | _ACEOF | |
31515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 31517 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31518 | ac_status=$? |
f95e4495 VS |
31519 | grep -v '^ *+' conftest.er1 >conftest.err |
31520 | rm -f conftest.er1 | |
31521 | cat conftest.err >&5 | |
e6cc62c6 VS |
31522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31523 | (exit $ac_status); } && | |
f95e4495 VS |
31524 | { ac_try='test -z "$ac_c_werror_flag" |
31525 | || test ! -s conftest.err' | |
31526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31527 | (eval $ac_try) 2>&5 | |
31528 | ac_status=$? | |
31529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31530 | (exit $ac_status); }; } && | |
31531 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31533 | (eval $ac_try) 2>&5 | |
31534 | ac_status=$? | |
31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31536 | (exit $ac_status); }; }; then | |
31537 | eval "$as_ac_var=yes" | |
31538 | else | |
31539 | echo "$as_me: failed program was:" >&5 | |
31540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31541 | ||
31542 | eval "$as_ac_var=no" | |
31543 | fi | |
f95e4495 VS |
31544 | rm -f conftest.err conftest.$ac_objext \ |
31545 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31546 | fi |
31547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31548 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31549 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31550 | cat >>confdefs.h <<_ACEOF | |
31551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31552 | _ACEOF | |
698dcdb6 | 31553 | |
10f2d63a | 31554 | fi |
4f14bcd8 | 31555 | done |
10f2d63a | 31556 | |
8284b0c5 | 31557 | |
e6cc62c6 VS |
31558 | |
31559 | for ac_header in sched.h | |
4f14bcd8 | 31560 | do |
e6cc62c6 VS |
31561 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31567 | fi | |
31568 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31569 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31570 | else | |
31571 | # Is the header compilable? | |
31572 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31573 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31574 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31575 | /* confdefs.h. */ |
31576 | _ACEOF | |
31577 | cat confdefs.h >>conftest.$ac_ext | |
31578 | cat >>conftest.$ac_ext <<_ACEOF | |
31579 | /* end confdefs.h. */ | |
31580 | $ac_includes_default | |
31581 | #include <$ac_header> | |
31582 | _ACEOF | |
31583 | rm -f conftest.$ac_objext | |
31584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 31585 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31586 | ac_status=$? |
f95e4495 VS |
31587 | grep -v '^ *+' conftest.er1 >conftest.err |
31588 | rm -f conftest.er1 | |
31589 | cat conftest.err >&5 | |
e6cc62c6 VS |
31590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31591 | (exit $ac_status); } && | |
f95e4495 VS |
31592 | { ac_try='test -z "$ac_c_werror_flag" |
31593 | || test ! -s conftest.err' | |
31594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31595 | (eval $ac_try) 2>&5 | |
31596 | ac_status=$? | |
31597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31598 | (exit $ac_status); }; } && | |
31599 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31601 | (eval $ac_try) 2>&5 | |
31602 | ac_status=$? | |
31603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31604 | (exit $ac_status); }; }; then | |
31605 | ac_header_compiler=yes | |
31606 | else | |
31607 | echo "$as_me: failed program was:" >&5 | |
31608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31609 | ||
31610 | ac_header_compiler=no | |
31611 | fi | |
f95e4495 | 31612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31613 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31614 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31615 | ||
31616 | # Is the header present? | |
31617 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31618 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31619 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31620 | /* confdefs.h. */ |
31621 | _ACEOF | |
31622 | cat confdefs.h >>conftest.$ac_ext | |
31623 | cat >>conftest.$ac_ext <<_ACEOF | |
31624 | /* end confdefs.h. */ | |
31625 | #include <$ac_header> | |
31626 | _ACEOF | |
31627 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31628 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31629 | ac_status=$? | |
31630 | grep -v '^ *+' conftest.er1 >conftest.err | |
31631 | rm -f conftest.er1 | |
31632 | cat conftest.err >&5 | |
31633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31634 | (exit $ac_status); } >/dev/null; then | |
31635 | if test -s conftest.err; then | |
31636 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 31637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31638 | else |
31639 | ac_cpp_err= | |
31640 | fi | |
31641 | else | |
31642 | ac_cpp_err=yes | |
31643 | fi | |
31644 | if test -z "$ac_cpp_err"; then | |
31645 | ac_header_preproc=yes | |
31646 | else | |
31647 | echo "$as_me: failed program was:" >&5 | |
31648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31649 | ||
31650 | ac_header_preproc=no | |
31651 | fi | |
31652 | rm -f conftest.err conftest.$ac_ext | |
31653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31654 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31655 | ||
31656 | # So? What about this header? | |
f95e4495 VS |
31657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31658 | yes:no: ) | |
e6cc62c6 VS |
31659 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31660 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
31661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31662 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31663 | ac_header_preproc=yes | |
e6cc62c6 | 31664 | ;; |
f95e4495 | 31665 | no:yes:* ) |
e6cc62c6 VS |
31666 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31667 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
31668 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31669 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31670 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31671 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31672 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31673 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
31674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
31676 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31677 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31678 | ( |
31679 | cat <<\_ASBOX | |
f95e4495 VS |
31680 | ## ----------------------------------------- ## |
31681 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31682 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31683 | _ASBOX |
31684 | ) | | |
31685 | sed "s/^/$as_me: WARNING: /" >&2 | |
31686 | ;; | |
31687 | esac | |
31688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31692 | else | |
f95e4495 | 31693 | eval "$as_ac_Header=\$ac_header_preproc" |
13111b2a | 31694 | fi |
e6cc62c6 VS |
31695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31697 | ||
10f2d63a | 31698 | fi |
e6cc62c6 VS |
31699 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31700 | cat >>confdefs.h <<_ACEOF | |
31701 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31702 | _ACEOF | |
31703 | ||
f6bcfd97 | 31704 | fi |
e6cc62c6 | 31705 | |
4f14bcd8 | 31706 | done |
f6bcfd97 | 31707 | |
009fead0 | 31708 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
31709 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
31710 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
31711 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
31712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31713 | else | |
31714 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31715 | /* confdefs.h. */ |
31716 | _ACEOF | |
31717 | cat confdefs.h >>conftest.$ac_ext | |
31718 | cat >>conftest.$ac_ext <<_ACEOF | |
31719 | /* end confdefs.h. */ | |
f95e4495 VS |
31720 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
31721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31722 | #define sched_yield innocuous_sched_yield | |
31723 | ||
009fead0 | 31724 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31725 | which can conflict with char sched_yield (); below. |
31726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31727 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 31728 | |
e6cc62c6 VS |
31729 | #ifdef __STDC__ |
31730 | # include <limits.h> | |
31731 | #else | |
31732 | # include <assert.h> | |
31733 | #endif | |
f95e4495 VS |
31734 | |
31735 | #undef sched_yield | |
31736 | ||
4f14bcd8 | 31737 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31738 | #ifdef __cplusplus |
31739 | extern "C" | |
31740 | { | |
31741 | #endif | |
4f14bcd8 | 31742 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31743 | builtin and then its argument prototype would still apply. */ |
31744 | char sched_yield (); | |
009fead0 VZ |
31745 | /* The GNU C library defines this for functions which it implements |
31746 | to always fail with ENOSYS. Some functions are actually named | |
31747 | something starting with __ and the normal name is an alias. */ | |
31748 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
31749 | choke me | |
31750 | #else | |
e6cc62c6 VS |
31751 | char (*f) () = sched_yield; |
31752 | #endif | |
31753 | #ifdef __cplusplus | |
31754 | } | |
009fead0 VZ |
31755 | #endif |
31756 | ||
e6cc62c6 VS |
31757 | int |
31758 | main () | |
31759 | { | |
31760 | return f != sched_yield; | |
31761 | ; | |
31762 | return 0; | |
31763 | } | |
31764 | _ACEOF | |
31765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 31767 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31768 | ac_status=$? |
f95e4495 VS |
31769 | grep -v '^ *+' conftest.er1 >conftest.err |
31770 | rm -f conftest.er1 | |
31771 | cat conftest.err >&5 | |
e6cc62c6 VS |
31772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31773 | (exit $ac_status); } && | |
f95e4495 VS |
31774 | { ac_try='test -z "$ac_c_werror_flag" |
31775 | || test ! -s conftest.err' | |
31776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31777 | (eval $ac_try) 2>&5 | |
31778 | ac_status=$? | |
31779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31780 | (exit $ac_status); }; } && | |
31781 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31783 | (eval $ac_try) 2>&5 | |
31784 | ac_status=$? | |
31785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31786 | (exit $ac_status); }; }; then | |
31787 | ac_cv_func_sched_yield=yes | |
31788 | else | |
31789 | echo "$as_me: failed program was:" >&5 | |
31790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31791 | ||
31792 | ac_cv_func_sched_yield=no | |
31793 | fi | |
f95e4495 VS |
31794 | rm -f conftest.err conftest.$ac_objext \ |
31795 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31796 | fi |
31797 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
31798 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
31799 | if test $ac_cv_func_sched_yield = yes; then | |
31800 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31801 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 31802 | _ACEOF |
10f2d63a | 31803 | |
4f14bcd8 | 31804 | else |
009fead0 | 31805 | |
e6cc62c6 VS |
31806 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
31807 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
31808 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
31809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 31810 | else |
e6cc62c6 | 31811 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31812 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 31813 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31814 | /* confdefs.h. */ |
31815 | _ACEOF | |
31816 | cat confdefs.h >>conftest.$ac_ext | |
31817 | cat >>conftest.$ac_ext <<_ACEOF | |
31818 | /* end confdefs.h. */ | |
31819 | ||
4f14bcd8 | 31820 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31821 | #ifdef __cplusplus |
31822 | extern "C" | |
31823 | #endif | |
4f14bcd8 | 31824 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31825 | builtin and then its argument prototype would still apply. */ |
31826 | char sched_yield (); | |
31827 | int | |
31828 | main () | |
31829 | { | |
31830 | sched_yield (); | |
31831 | ; | |
31832 | return 0; | |
31833 | } | |
31834 | _ACEOF | |
31835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 31837 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31838 | ac_status=$? |
f95e4495 VS |
31839 | grep -v '^ *+' conftest.er1 >conftest.err |
31840 | rm -f conftest.er1 | |
31841 | cat conftest.err >&5 | |
e6cc62c6 VS |
31842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31843 | (exit $ac_status); } && | |
f95e4495 VS |
31844 | { ac_try='test -z "$ac_c_werror_flag" |
31845 | || test ! -s conftest.err' | |
31846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31847 | (eval $ac_try) 2>&5 | |
31848 | ac_status=$? | |
31849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31850 | (exit $ac_status); }; } && | |
31851 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31853 | (eval $ac_try) 2>&5 | |
31854 | ac_status=$? | |
31855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31856 | (exit $ac_status); }; }; then | |
31857 | ac_cv_lib_posix4_sched_yield=yes | |
31858 | else | |
31859 | echo "$as_me: failed program was:" >&5 | |
31860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31861 | ||
31862 | ac_cv_lib_posix4_sched_yield=no | |
31863 | fi | |
f95e4495 VS |
31864 | rm -f conftest.err conftest.$ac_objext \ |
31865 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31866 | LIBS=$ac_check_lib_save_LIBS |
31867 | fi | |
31868 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
31869 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
31870 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
31871 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31872 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 31873 | _ACEOF |
3d63bc3a | 31874 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 31875 | else |
e6cc62c6 VS |
31876 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
31877 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
31878 | ||
54276ccf VZ |
31879 | fi |
31880 | ||
e6cc62c6 VS |
31881 | |
31882 | ||
4f14bcd8 | 31883 | fi |
698dcdb6 | 31884 | |
009fead0 | 31885 | fi |
10f2d63a | 31886 | |
7274f1c7 | 31887 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
31888 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
31889 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
31890 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
31891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31892 | else | |
31893 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31894 | /* confdefs.h. */ |
31895 | _ACEOF | |
31896 | cat confdefs.h >>conftest.$ac_ext | |
31897 | cat >>conftest.$ac_ext <<_ACEOF | |
31898 | /* end confdefs.h. */ | |
f95e4495 VS |
31899 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
31900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31901 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
31902 | ||
009fead0 | 31903 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31904 | which can conflict with char pthread_attr_getschedpolicy (); below. |
31905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31906 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 31907 | |
e6cc62c6 VS |
31908 | #ifdef __STDC__ |
31909 | # include <limits.h> | |
31910 | #else | |
31911 | # include <assert.h> | |
31912 | #endif | |
f95e4495 VS |
31913 | |
31914 | #undef pthread_attr_getschedpolicy | |
31915 | ||
4f14bcd8 | 31916 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31917 | #ifdef __cplusplus |
31918 | extern "C" | |
31919 | { | |
31920 | #endif | |
4f14bcd8 | 31921 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31922 | builtin and then its argument prototype would still apply. */ |
31923 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
31924 | /* The GNU C library defines this for functions which it implements |
31925 | to always fail with ENOSYS. Some functions are actually named | |
31926 | something starting with __ and the normal name is an alias. */ | |
31927 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
31928 | choke me | |
31929 | #else | |
e6cc62c6 VS |
31930 | char (*f) () = pthread_attr_getschedpolicy; |
31931 | #endif | |
31932 | #ifdef __cplusplus | |
31933 | } | |
009fead0 VZ |
31934 | #endif |
31935 | ||
e6cc62c6 VS |
31936 | int |
31937 | main () | |
31938 | { | |
31939 | return f != pthread_attr_getschedpolicy; | |
31940 | ; | |
31941 | return 0; | |
31942 | } | |
31943 | _ACEOF | |
31944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 31946 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31947 | ac_status=$? |
f95e4495 VS |
31948 | grep -v '^ *+' conftest.er1 >conftest.err |
31949 | rm -f conftest.er1 | |
31950 | cat conftest.err >&5 | |
e6cc62c6 VS |
31951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31952 | (exit $ac_status); } && | |
f95e4495 VS |
31953 | { ac_try='test -z "$ac_c_werror_flag" |
31954 | || test ! -s conftest.err' | |
31955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31956 | (eval $ac_try) 2>&5 | |
31957 | ac_status=$? | |
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31959 | (exit $ac_status); }; } && | |
31960 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31962 | (eval $ac_try) 2>&5 | |
31963 | ac_status=$? | |
31964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31965 | (exit $ac_status); }; }; then | |
31966 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
31967 | else | |
31968 | echo "$as_me: failed program was:" >&5 | |
31969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31970 | ||
31971 | ac_cv_func_pthread_attr_getschedpolicy=no | |
31972 | fi | |
f95e4495 VS |
31973 | rm -f conftest.err conftest.$ac_objext \ |
31974 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31975 | fi |
31976 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
31977 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
31978 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
31979 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
31980 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
31981 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
31982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31983 | else | |
31984 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31985 | /* confdefs.h. */ |
31986 | _ACEOF | |
31987 | cat confdefs.h >>conftest.$ac_ext | |
31988 | cat >>conftest.$ac_ext <<_ACEOF | |
31989 | /* end confdefs.h. */ | |
f95e4495 VS |
31990 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
31991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31992 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
31993 | ||
a0b9e27f | 31994 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31995 | which can conflict with char pthread_attr_setschedparam (); below. |
31996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31997 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 31998 | |
e6cc62c6 VS |
31999 | #ifdef __STDC__ |
32000 | # include <limits.h> | |
32001 | #else | |
32002 | # include <assert.h> | |
32003 | #endif | |
f95e4495 VS |
32004 | |
32005 | #undef pthread_attr_setschedparam | |
32006 | ||
422107f9 | 32007 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32008 | #ifdef __cplusplus |
32009 | extern "C" | |
32010 | { | |
32011 | #endif | |
422107f9 | 32012 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32013 | builtin and then its argument prototype would still apply. */ |
32014 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
32015 | /* The GNU C library defines this for functions which it implements |
32016 | to always fail with ENOSYS. Some functions are actually named | |
32017 | something starting with __ and the normal name is an alias. */ | |
32018 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32019 | choke me | |
32020 | #else | |
e6cc62c6 VS |
32021 | char (*f) () = pthread_attr_setschedparam; |
32022 | #endif | |
32023 | #ifdef __cplusplus | |
32024 | } | |
009fead0 VZ |
32025 | #endif |
32026 | ||
e6cc62c6 VS |
32027 | int |
32028 | main () | |
32029 | { | |
32030 | return f != pthread_attr_setschedparam; | |
32031 | ; | |
32032 | return 0; | |
32033 | } | |
32034 | _ACEOF | |
32035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 32037 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32038 | ac_status=$? |
f95e4495 VS |
32039 | grep -v '^ *+' conftest.er1 >conftest.err |
32040 | rm -f conftest.er1 | |
32041 | cat conftest.err >&5 | |
e6cc62c6 VS |
32042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32043 | (exit $ac_status); } && | |
f95e4495 VS |
32044 | { ac_try='test -z "$ac_c_werror_flag" |
32045 | || test ! -s conftest.err' | |
32046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32047 | (eval $ac_try) 2>&5 | |
32048 | ac_status=$? | |
32049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32050 | (exit $ac_status); }; } && | |
32051 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32053 | (eval $ac_try) 2>&5 | |
32054 | ac_status=$? | |
32055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32056 | (exit $ac_status); }; }; then | |
32057 | ac_cv_func_pthread_attr_setschedparam=yes | |
32058 | else | |
32059 | echo "$as_me: failed program was:" >&5 | |
32060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32061 | ||
32062 | ac_cv_func_pthread_attr_setschedparam=no | |
32063 | fi | |
f95e4495 VS |
32064 | rm -f conftest.err conftest.$ac_objext \ |
32065 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32066 | fi |
32067 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32068 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32069 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32070 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32071 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32072 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32074 | else | |
32075 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32076 | /* confdefs.h. */ |
32077 | _ACEOF | |
32078 | cat confdefs.h >>conftest.$ac_ext | |
32079 | cat >>conftest.$ac_ext <<_ACEOF | |
32080 | /* end confdefs.h. */ | |
f95e4495 VS |
32081 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32083 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32084 | ||
ef33c576 | 32085 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32086 | which can conflict with char sched_get_priority_max (); below. |
32087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32088 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 32089 | |
e6cc62c6 VS |
32090 | #ifdef __STDC__ |
32091 | # include <limits.h> | |
32092 | #else | |
32093 | # include <assert.h> | |
32094 | #endif | |
f95e4495 VS |
32095 | |
32096 | #undef sched_get_priority_max | |
32097 | ||
4f14bcd8 | 32098 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32099 | #ifdef __cplusplus |
32100 | extern "C" | |
32101 | { | |
32102 | #endif | |
4f14bcd8 | 32103 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32104 | builtin and then its argument prototype would still apply. */ |
32105 | char sched_get_priority_max (); | |
009fead0 VZ |
32106 | /* The GNU C library defines this for functions which it implements |
32107 | to always fail with ENOSYS. Some functions are actually named | |
32108 | something starting with __ and the normal name is an alias. */ | |
32109 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32110 | choke me | |
32111 | #else | |
e6cc62c6 VS |
32112 | char (*f) () = sched_get_priority_max; |
32113 | #endif | |
32114 | #ifdef __cplusplus | |
32115 | } | |
009fead0 VZ |
32116 | #endif |
32117 | ||
e6cc62c6 VS |
32118 | int |
32119 | main () | |
32120 | { | |
32121 | return f != sched_get_priority_max; | |
32122 | ; | |
32123 | return 0; | |
32124 | } | |
32125 | _ACEOF | |
32126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 32128 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32129 | ac_status=$? |
f95e4495 VS |
32130 | grep -v '^ *+' conftest.er1 >conftest.err |
32131 | rm -f conftest.er1 | |
32132 | cat conftest.err >&5 | |
e6cc62c6 VS |
32133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32134 | (exit $ac_status); } && | |
f95e4495 VS |
32135 | { ac_try='test -z "$ac_c_werror_flag" |
32136 | || test ! -s conftest.err' | |
32137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32138 | (eval $ac_try) 2>&5 | |
32139 | ac_status=$? | |
32140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32141 | (exit $ac_status); }; } && | |
32142 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32144 | (eval $ac_try) 2>&5 | |
32145 | ac_status=$? | |
32146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32147 | (exit $ac_status); }; }; then | |
32148 | ac_cv_func_sched_get_priority_max=yes | |
32149 | else | |
32150 | echo "$as_me: failed program was:" >&5 | |
32151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32152 | ||
32153 | ac_cv_func_sched_get_priority_max=no | |
32154 | fi | |
f95e4495 VS |
32155 | rm -f conftest.err conftest.$ac_objext \ |
32156 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32157 | fi |
32158 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32159 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32160 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
32161 | HAVE_PRIOR_FUNCS=1 |
32162 | else | |
e6cc62c6 VS |
32163 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
32164 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32165 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 32167 | else |
e6cc62c6 | 32168 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32169 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32170 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32171 | /* confdefs.h. */ |
32172 | _ACEOF | |
32173 | cat confdefs.h >>conftest.$ac_ext | |
32174 | cat >>conftest.$ac_ext <<_ACEOF | |
32175 | /* end confdefs.h. */ | |
32176 | ||
422107f9 | 32177 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32178 | #ifdef __cplusplus |
32179 | extern "C" | |
32180 | #endif | |
422107f9 | 32181 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32182 | builtin and then its argument prototype would still apply. */ |
32183 | char sched_get_priority_max (); | |
32184 | int | |
32185 | main () | |
32186 | { | |
32187 | sched_get_priority_max (); | |
32188 | ; | |
32189 | return 0; | |
32190 | } | |
32191 | _ACEOF | |
32192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 32194 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32195 | ac_status=$? |
f95e4495 VS |
32196 | grep -v '^ *+' conftest.er1 >conftest.err |
32197 | rm -f conftest.er1 | |
32198 | cat conftest.err >&5 | |
e6cc62c6 VS |
32199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32200 | (exit $ac_status); } && | |
f95e4495 VS |
32201 | { ac_try='test -z "$ac_c_werror_flag" |
32202 | || test ! -s conftest.err' | |
32203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32204 | (eval $ac_try) 2>&5 | |
32205 | ac_status=$? | |
32206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32207 | (exit $ac_status); }; } && | |
32208 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32210 | (eval $ac_try) 2>&5 | |
32211 | ac_status=$? | |
32212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32213 | (exit $ac_status); }; }; then | |
32214 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32215 | else | |
32216 | echo "$as_me: failed program was:" >&5 | |
32217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32218 | ||
32219 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32220 | fi | |
f95e4495 VS |
32221 | rm -f conftest.err conftest.$ac_objext \ |
32222 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32223 | LIBS=$ac_check_lib_save_LIBS |
32224 | fi | |
32225 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32226 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32227 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 32228 | |
7274f1c7 RL |
32229 | HAVE_PRIOR_FUNCS=1 |
32230 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 32231 | |
4f14bcd8 | 32232 | fi |
463abc64 | 32233 | |
e6cc62c6 | 32234 | |
328a083c | 32235 | fi |
463abc64 | 32236 | |
e6cc62c6 | 32237 | |
7b4a847f | 32238 | fi |
579d8138 | 32239 | |
e6cc62c6 | 32240 | |
5c6fa7d2 | 32241 | fi |
52127426 | 32242 | |
8284b0c5 | 32243 | |
7274f1c7 | 32244 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 32245 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32246 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 32247 | _ACEOF |
463abc64 | 32248 | |
7274f1c7 | 32249 | else |
e6cc62c6 VS |
32250 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
32251 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 32252 | fi |
463abc64 | 32253 | |
e6cc62c6 VS |
32254 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
32255 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32256 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32258 | else | |
32259 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32260 | /* confdefs.h. */ |
32261 | _ACEOF | |
32262 | cat confdefs.h >>conftest.$ac_ext | |
32263 | cat >>conftest.$ac_ext <<_ACEOF | |
32264 | /* end confdefs.h. */ | |
f95e4495 VS |
32265 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32266 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32267 | #define pthread_cancel innocuous_pthread_cancel | |
32268 | ||
009fead0 | 32269 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32270 | which can conflict with char pthread_cancel (); below. |
32271 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32272 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 32273 | |
e6cc62c6 VS |
32274 | #ifdef __STDC__ |
32275 | # include <limits.h> | |
32276 | #else | |
32277 | # include <assert.h> | |
32278 | #endif | |
f95e4495 VS |
32279 | |
32280 | #undef pthread_cancel | |
32281 | ||
422107f9 | 32282 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32283 | #ifdef __cplusplus |
32284 | extern "C" | |
32285 | { | |
32286 | #endif | |
422107f9 | 32287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32288 | builtin and then its argument prototype would still apply. */ |
32289 | char pthread_cancel (); | |
009fead0 VZ |
32290 | /* The GNU C library defines this for functions which it implements |
32291 | to always fail with ENOSYS. Some functions are actually named | |
32292 | something starting with __ and the normal name is an alias. */ | |
32293 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32294 | choke me | |
32295 | #else | |
e6cc62c6 VS |
32296 | char (*f) () = pthread_cancel; |
32297 | #endif | |
32298 | #ifdef __cplusplus | |
32299 | } | |
009fead0 VZ |
32300 | #endif |
32301 | ||
e6cc62c6 VS |
32302 | int |
32303 | main () | |
32304 | { | |
32305 | return f != pthread_cancel; | |
32306 | ; | |
32307 | return 0; | |
32308 | } | |
32309 | _ACEOF | |
32310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 32312 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32313 | ac_status=$? |
f95e4495 VS |
32314 | grep -v '^ *+' conftest.er1 >conftest.err |
32315 | rm -f conftest.er1 | |
32316 | cat conftest.err >&5 | |
e6cc62c6 VS |
32317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32318 | (exit $ac_status); } && | |
f95e4495 VS |
32319 | { ac_try='test -z "$ac_c_werror_flag" |
32320 | || test ! -s conftest.err' | |
32321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32322 | (eval $ac_try) 2>&5 | |
32323 | ac_status=$? | |
32324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32325 | (exit $ac_status); }; } && | |
32326 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32328 | (eval $ac_try) 2>&5 | |
32329 | ac_status=$? | |
32330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32331 | (exit $ac_status); }; }; then | |
32332 | ac_cv_func_pthread_cancel=yes | |
32333 | else | |
32334 | echo "$as_me: failed program was:" >&5 | |
32335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32336 | ||
32337 | ac_cv_func_pthread_cancel=no | |
32338 | fi | |
f95e4495 VS |
32339 | rm -f conftest.err conftest.$ac_objext \ |
32340 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32341 | fi |
32342 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32343 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32344 | if test $ac_cv_func_pthread_cancel = yes; then | |
32345 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32346 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 32347 | _ACEOF |
4f14bcd8 | 32348 | |
698dcdb6 | 32349 | else |
e6cc62c6 VS |
32350 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
32351 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
32352 | fi |
32353 | ||
5c6fa7d2 | 32354 | |
4f14bcd8 | 32355 | |
e6cc62c6 VS |
32356 | |
32357 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32358 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32359 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 32361 | else |
e6cc62c6 VS |
32362 | |
32363 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32364 | /* confdefs.h. */ |
32365 | _ACEOF | |
32366 | cat confdefs.h >>conftest.$ac_ext | |
32367 | cat >>conftest.$ac_ext <<_ACEOF | |
32368 | /* end confdefs.h. */ | |
4f14bcd8 | 32369 | #include <pthread.h> |
e6cc62c6 VS |
32370 | int |
32371 | main () | |
32372 | { | |
4f14bcd8 | 32373 | |
7274f1c7 RL |
32374 | pthread_mutexattr_t attr; |
32375 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
32376 | |
32377 | ; | |
32378 | return 0; | |
32379 | } | |
32380 | _ACEOF | |
32381 | rm -f conftest.$ac_objext | |
32382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 32383 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32384 | ac_status=$? |
f95e4495 VS |
32385 | grep -v '^ *+' conftest.er1 >conftest.err |
32386 | rm -f conftest.er1 | |
32387 | cat conftest.err >&5 | |
e6cc62c6 VS |
32388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32389 | (exit $ac_status); } && | |
f95e4495 VS |
32390 | { ac_try='test -z "$ac_c_werror_flag" |
32391 | || test ! -s conftest.err' | |
32392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32393 | (eval $ac_try) 2>&5 | |
32394 | ac_status=$? | |
32395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32396 | (exit $ac_status); }; } && | |
32397 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32399 | (eval $ac_try) 2>&5 | |
32400 | ac_status=$? | |
32401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32402 | (exit $ac_status); }; }; then | |
32403 | ||
7274f1c7 | 32404 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 32405 | |
3fed1840 | 32406 | else |
e6cc62c6 VS |
32407 | echo "$as_me: failed program was:" >&5 |
32408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32409 | ||
32410 | ||
7274f1c7 | 32411 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
32412 | |
32413 | ||
247f5006 | 32414 | fi |
f95e4495 | 32415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32416 | |
e6cc62c6 VS |
32417 | fi |
32418 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32419 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 32420 | |
7274f1c7 | 32421 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 32422 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32423 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 32424 | _ACEOF |
4f14bcd8 | 32425 | |
7274f1c7 | 32426 | else |
e6cc62c6 VS |
32427 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
32428 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32429 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32431 | else | |
32432 | ||
32433 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32434 | /* confdefs.h. */ |
32435 | _ACEOF | |
32436 | cat confdefs.h >>conftest.$ac_ext | |
32437 | cat >>conftest.$ac_ext <<_ACEOF | |
32438 | /* end confdefs.h. */ | |
4f14bcd8 | 32439 | #include <pthread.h> |
e6cc62c6 VS |
32440 | int |
32441 | main () | |
32442 | { | |
4f14bcd8 | 32443 | |
7274f1c7 | 32444 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
32445 | |
32446 | ; | |
32447 | return 0; | |
32448 | } | |
32449 | _ACEOF | |
32450 | rm -f conftest.$ac_objext | |
32451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 32452 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32453 | ac_status=$? |
f95e4495 VS |
32454 | grep -v '^ *+' conftest.er1 >conftest.err |
32455 | rm -f conftest.er1 | |
32456 | cat conftest.err >&5 | |
e6cc62c6 VS |
32457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32458 | (exit $ac_status); } && | |
f95e4495 VS |
32459 | { ac_try='test -z "$ac_c_werror_flag" |
32460 | || test ! -s conftest.err' | |
32461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32462 | (eval $ac_try) 2>&5 | |
32463 | ac_status=$? | |
32464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32465 | (exit $ac_status); }; } && | |
32466 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32468 | (eval $ac_try) 2>&5 | |
32469 | ac_status=$? | |
32470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32471 | (exit $ac_status); }; }; then | |
32472 | ||
7274f1c7 | 32473 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 32474 | |
698dcdb6 | 32475 | else |
e6cc62c6 VS |
32476 | echo "$as_me: failed program was:" >&5 |
32477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32478 | ||
32479 | ||
7274f1c7 | 32480 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
32481 | |
32482 | ||
247f5006 | 32483 | fi |
f95e4495 | 32484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32485 | |
e6cc62c6 VS |
32486 | fi |
32487 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32488 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 32489 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 32490 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32491 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 32492 | _ACEOF |
3fed1840 | 32493 | |
7274f1c7 | 32494 | else |
e6cc62c6 VS |
32495 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
32496 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
32497 | fi |
32498 | fi | |
7274f1c7 | 32499 | fi |
3fed1840 | 32500 | |
a0b9e27f MB |
32501 | else |
32502 | if test "$wxUSE_THREADS" = "yes" ; then | |
32503 | case "${host}" in | |
32504 | *-*-mingw32* ) | |
e6cc62c6 VS |
32505 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
32506 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32507 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 32509 | else |
e6cc62c6 | 32510 | |
ca8e52b3 VZ |
32511 | CFLAGS_OLD="$CFLAGS" |
32512 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 32513 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32514 | /* confdefs.h. */ |
32515 | _ACEOF | |
32516 | cat confdefs.h >>conftest.$ac_ext | |
32517 | cat >>conftest.$ac_ext <<_ACEOF | |
32518 | /* end confdefs.h. */ | |
32519 | ||
32520 | int | |
32521 | main () | |
32522 | { | |
ca8e52b3 | 32523 | |
e6cc62c6 VS |
32524 | ; |
32525 | return 0; | |
32526 | } | |
32527 | _ACEOF | |
32528 | rm -f conftest.$ac_objext | |
32529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 32530 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32531 | ac_status=$? |
f95e4495 VS |
32532 | grep -v '^ *+' conftest.er1 >conftest.err |
32533 | rm -f conftest.er1 | |
32534 | cat conftest.err >&5 | |
e6cc62c6 VS |
32535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32536 | (exit $ac_status); } && | |
f95e4495 VS |
32537 | { ac_try='test -z "$ac_c_werror_flag" |
32538 | || test ! -s conftest.err' | |
32539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32540 | (eval $ac_try) 2>&5 | |
32541 | ac_status=$? | |
32542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32543 | (exit $ac_status); }; } && | |
32544 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32546 | (eval $ac_try) 2>&5 | |
32547 | ac_status=$? | |
32548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32549 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
32550 | wx_cv_cflags_mthread=yes |
32551 | else | |
e6cc62c6 VS |
32552 | echo "$as_me: failed program was:" >&5 |
32553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32554 | ||
32555 | wx_cv_cflags_mthread=no | |
32556 | ||
ca8e52b3 | 32557 | fi |
f95e4495 | 32558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 32559 | |
ca8e52b3 | 32560 | |
e6cc62c6 VS |
32561 | fi |
32562 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
32563 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
32564 | |
32565 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
32566 | CXXFLAGS="$CXXFLAGS -mthreads" | |
32567 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
32568 | LDFLAGS="$LDFLAGS -mthreads" | |
32569 | else | |
32570 | CFLAGS="$CFLAGS_OLD" | |
32571 | fi | |
a0b9e27f | 32572 | ;; |
73d617c9 MB |
32573 | *-pc-os2*emx ) |
32574 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32575 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32576 | LDFLAGS="$LDFLAGS -Zmt" | |
32577 | ;; | |
a0b9e27f MB |
32578 | esac |
32579 | fi | |
4f14bcd8 GD |
32580 | fi |
32581 | ||
32582 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 32583 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32584 | #define wxUSE_THREADS 1 |
e6cc62c6 | 32585 | _ACEOF |
7b6058cd | 32586 | |
8284b0c5 | 32587 | |
4f14bcd8 | 32588 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 32589 | else |
4f14bcd8 | 32590 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
32591 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
32592 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
32593 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
32594 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
32595 | echo "$as_me:$LINENO: result: yes" >&5 |
32596 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 32597 | else |
e6cc62c6 VS |
32598 | echo "$as_me:$LINENO: result: no" >&5 |
32599 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
32600 | fi |
32601 | fi | |
32602 | fi | |
32603 | ||
32604 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 32605 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32606 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 32607 | _ACEOF |
4f14bcd8 GD |
32608 | |
32609 | WXGTK12=1 | |
10f2d63a | 32610 | fi |
4f14bcd8 GD |
32611 | |
32612 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 32613 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32614 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 32615 | _ACEOF |
4f14bcd8 | 32616 | |
10f2d63a | 32617 | fi |
698dcdb6 | 32618 | |
4f14bcd8 | 32619 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 32620 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32621 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 32622 | _ACEOF |
4f14bcd8 | 32623 | |
698dcdb6 | 32624 | fi |
10f2d63a | 32625 | |
4f14bcd8 GD |
32626 | WXDEBUG= |
32627 | ||
32628 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
32629 | WXDEBUG="-g" | |
32630 | wxUSE_OPTIMISE=no | |
698dcdb6 | 32631 | fi |
4f14bcd8 GD |
32632 | |
32633 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
32634 | wxUSE_DEBUG_INFO=yes | |
32635 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
32636 | fi |
32637 | ||
4f14bcd8 | 32638 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 32639 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32640 | #define WXDEBUG 1 |
e6cc62c6 | 32641 | _ACEOF |
4f14bcd8 GD |
32642 | |
32643 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 32644 | else |
4f14bcd8 GD |
32645 | if test "$wxUSE_GTK" = 1 ; then |
32646 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
32647 | fi | |
32648 | fi | |
32649 | ||
32650 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 32651 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32652 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 32653 | _ACEOF |
4f14bcd8 | 32654 | |
e6cc62c6 | 32655 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32656 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 32657 | _ACEOF |
4f14bcd8 | 32658 | |
e6cc62c6 | 32659 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32660 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 32661 | _ACEOF |
4f14bcd8 GD |
32662 | |
32663 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
32664 | fi | |
32665 | ||
32666 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 32667 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
32668 | fi |
32669 | ||
32670 | PROFILE= | |
32671 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 32672 | PROFILE=" -pg" |
10f2d63a VZ |
32673 | fi |
32674 | ||
009fead0 VZ |
32675 | CODE_GEN_FLAGS= |
32676 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 32677 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
32678 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
32679 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 32680 | fi |
4f14bcd8 GD |
32681 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
32682 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
32683 | fi | |
32684 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
32685 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
32686 | fi | |
1d1b75ac | 32687 | |
2b5f62a0 | 32688 | case "${host}" in |
1d1b75ac VZ |
32689 | powerpc*-*-aix* ) |
32690 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
32691 | ;; | |
2b5f62a0 VZ |
32692 | *-hppa* ) |
32693 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
32694 | ;; | |
1d1b75ac | 32695 | esac |
4f14bcd8 GD |
32696 | fi |
32697 | ||
af7b5345 | 32698 | OPTIMISE= |
4f14bcd8 | 32699 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
32700 | if test "$GCC" = yes ; then |
32701 | OPTIMISE="-O0" | |
32702 | fi | |
4f14bcd8 GD |
32703 | else |
32704 | if test "$GCC" = yes ; then | |
32705 | OPTIMISE="-O2" | |
af7b5345 VZ |
32706 | |
32707 | case "${host}" in | |
4f14bcd8 GD |
32708 | i586-*-*|i686-*-* ) |
32709 | OPTIMISE="${OPTIMISE} " | |
32710 | ;; | |
32711 | esac | |
32712 | else | |
32713 | OPTIMISE="-O" | |
32714 | fi | |
32715 | fi | |
32716 | ||
8d90d2f2 | 32717 | |
65d8ef1e | 32718 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 32719 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32720 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 32721 | _ACEOF |
4f14bcd8 | 32722 | |
8d90d2f2 VZ |
32723 | |
32724 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
32725 | fi |
32726 | ||
65d8ef1e | 32727 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 32728 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 32729 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 32730 | _ACEOF |
65d8ef1e VS |
32731 | |
32732 | fi | |
32733 | ||
8284b0c5 | 32734 | |
10f2d63a | 32735 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 32736 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32737 | #define wxUSE_GUI 1 |
e6cc62c6 | 32738 | _ACEOF |
10f2d63a | 32739 | |
8284b0c5 | 32740 | |
10f2d63a | 32741 | else |
e6cc62c6 | 32742 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32743 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 32744 | _ACEOF |
10f2d63a VZ |
32745 | |
32746 | fi | |
32747 | ||
8284b0c5 | 32748 | |
10f2d63a | 32749 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 32750 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32751 | #define wxUSE_UNIX 1 |
e6cc62c6 | 32752 | _ACEOF |
10f2d63a VZ |
32753 | |
32754 | fi | |
32755 | ||
8284b0c5 | 32756 | |
df5168c4 MB |
32757 | if test "$wxUSE_STL" = "yes"; then |
32758 | cat >>confdefs.h <<\_ACEOF | |
32759 | #define wxUSE_STL 1 | |
32760 | _ACEOF | |
32761 | ||
32762 | fi | |
32763 | ||
10f2d63a | 32764 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 32765 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32766 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 32767 | _ACEOF |
10f2d63a VZ |
32768 | |
32769 | fi | |
32770 | ||
1e6feb95 | 32771 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 32772 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32773 | #define wxUSE_TIMER 1 |
e6cc62c6 | 32774 | _ACEOF |
1e6feb95 VZ |
32775 | |
32776 | fi | |
32777 | ||
10f2d63a | 32778 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 32779 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32780 | #define wxUSE_WAVE 1 |
e6cc62c6 | 32781 | _ACEOF |
10f2d63a VZ |
32782 | |
32783 | fi | |
32784 | ||
1e6feb95 | 32785 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 32786 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32787 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 32788 | _ACEOF |
1e6feb95 VZ |
32789 | |
32790 | fi | |
32791 | ||
32792 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 32793 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32794 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 32795 | _ACEOF |
1e6feb95 VZ |
32796 | |
32797 | fi | |
32798 | ||
32799 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 32800 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32801 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 32802 | _ACEOF |
1e6feb95 VZ |
32803 | |
32804 | fi | |
32805 | ||
10f2d63a | 32806 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 32807 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32808 | #define wxUSE_FILE 1 |
e6cc62c6 | 32809 | _ACEOF |
10f2d63a VZ |
32810 | |
32811 | fi | |
32812 | ||
1e6feb95 | 32813 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 32814 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32815 | #define wxUSE_FFILE 1 |
e6cc62c6 | 32816 | _ACEOF |
1e6feb95 VZ |
32817 | |
32818 | fi | |
32819 | ||
24528b0c | 32820 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 32821 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 32822 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 32823 | _ACEOF |
24528b0c VS |
32824 | |
32825 | fi | |
32826 | ||
10f2d63a | 32827 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 32828 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32829 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 32830 | _ACEOF |
10f2d63a VZ |
32831 | |
32832 | fi | |
32833 | ||
32834 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 32835 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32836 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 32837 | _ACEOF |
10f2d63a VZ |
32838 | |
32839 | fi | |
32840 | ||
7015ef3a VZ |
32841 | if test "$wxUSE_GZSTREAM" = "yes"; then |
32842 | cat >>confdefs.h <<\_ACEOF | |
32843 | #define wxUSE_GZSTREAM 1 | |
32844 | _ACEOF | |
32845 | ||
32846 | fi | |
32847 | ||
eb4efbdc | 32848 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 32849 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 32850 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 32851 | _ACEOF |
eb4efbdc VZ |
32852 | |
32853 | fi | |
32854 | ||
4f3c5f06 | 32855 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 32856 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 32857 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 32858 | _ACEOF |
4f3c5f06 VZ |
32859 | |
32860 | fi | |
32861 | ||
10f2d63a | 32862 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 32863 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32864 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 32865 | _ACEOF |
10f2d63a VZ |
32866 | |
32867 | fi | |
32868 | ||
32869 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 32870 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32871 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 32872 | _ACEOF |
10f2d63a VZ |
32873 | |
32874 | fi | |
32875 | ||
a3a584a7 | 32876 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 32877 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 32878 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 32879 | _ACEOF |
a3a584a7 VZ |
32880 | |
32881 | fi | |
32882 | ||
10f2d63a | 32883 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 32884 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
32885 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
32886 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 32887 | else |
e6cc62c6 | 32888 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32889 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 32890 | _ACEOF |
10f2d63a VZ |
32891 | |
32892 | fi | |
32893 | fi | |
32894 | ||
32895 | if test "$wxUSE_CONFIG" = "yes" ; then | |
32896 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
32897 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
32898 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 32899 | else |
e6cc62c6 | 32900 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32901 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 32902 | _ACEOF |
10f2d63a VZ |
32903 | |
32904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
32905 | fi | |
32906 | fi | |
32907 | ||
32908 | if test "$wxUSE_INTL" = "yes" ; then | |
32909 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
32910 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
32911 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 32912 | else |
e6cc62c6 | 32913 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32914 | #define wxUSE_INTL 1 |
e6cc62c6 | 32915 | _ACEOF |
10f2d63a VZ |
32916 | |
32917 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 32918 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
32919 | fi |
32920 | fi | |
32921 | ||
32922 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 32923 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32924 | #define wxUSE_LOG 1 |
e6cc62c6 | 32925 | _ACEOF |
10f2d63a | 32926 | |
8284b0c5 | 32927 | |
d73be714 | 32928 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 32929 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 32930 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 32931 | _ACEOF |
d73be714 VZ |
32932 | |
32933 | fi | |
32934 | ||
32935 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 32936 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 32937 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 32938 | _ACEOF |
69d27ff7 MB |
32939 | |
32940 | fi | |
32941 | ||
32942 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 32943 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 32944 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 32945 | _ACEOF |
d73be714 VZ |
32946 | |
32947 | fi | |
10f2d63a VZ |
32948 | fi |
32949 | ||
32950 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 32951 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32952 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 32953 | _ACEOF |
10f2d63a VZ |
32954 | |
32955 | fi | |
32956 | ||
e8f65ba6 | 32957 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 32958 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 32959 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 32960 | _ACEOF |
e8f65ba6 RR |
32961 | |
32962 | fi | |
32963 | ||
10f2d63a | 32964 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 32965 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32966 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 32967 | _ACEOF |
10f2d63a | 32968 | |
70f7a477 | 32969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
32970 | fi |
32971 | ||
32972 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 32973 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32974 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 32975 | _ACEOF |
10f2d63a VZ |
32976 | |
32977 | fi | |
32978 | ||
5c6fa7d2 | 32979 | |
8284b0c5 | 32980 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
32981 | |
32982 | for ac_func in strptime | |
83307f33 | 32983 | do |
e6cc62c6 VS |
32984 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32985 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32986 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32987 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32989 | else | |
32990 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32991 | /* confdefs.h. */ |
32992 | _ACEOF | |
32993 | cat confdefs.h >>conftest.$ac_ext | |
32994 | cat >>conftest.$ac_ext <<_ACEOF | |
32995 | /* end confdefs.h. */ | |
f95e4495 VS |
32996 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32997 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32998 | #define $ac_func innocuous_$ac_func | |
32999 | ||
83307f33 | 33000 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33001 | which can conflict with char $ac_func (); below. |
33002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33003 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 33004 | |
e6cc62c6 VS |
33005 | #ifdef __STDC__ |
33006 | # include <limits.h> | |
33007 | #else | |
33008 | # include <assert.h> | |
33009 | #endif | |
f95e4495 VS |
33010 | |
33011 | #undef $ac_func | |
33012 | ||
83307f33 | 33013 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33014 | #ifdef __cplusplus |
33015 | extern "C" | |
33016 | { | |
33017 | #endif | |
83307f33 | 33018 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33019 | builtin and then its argument prototype would still apply. */ |
33020 | char $ac_func (); | |
83307f33 VZ |
33021 | /* The GNU C library defines this for functions which it implements |
33022 | to always fail with ENOSYS. Some functions are actually named | |
33023 | something starting with __ and the normal name is an alias. */ | |
33024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33025 | choke me | |
33026 | #else | |
e6cc62c6 VS |
33027 | char (*f) () = $ac_func; |
33028 | #endif | |
33029 | #ifdef __cplusplus | |
33030 | } | |
83307f33 VZ |
33031 | #endif |
33032 | ||
e6cc62c6 VS |
33033 | int |
33034 | main () | |
33035 | { | |
33036 | return f != $ac_func; | |
33037 | ; | |
33038 | return 0; | |
33039 | } | |
33040 | _ACEOF | |
33041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 33043 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33044 | ac_status=$? |
f95e4495 VS |
33045 | grep -v '^ *+' conftest.er1 >conftest.err |
33046 | rm -f conftest.er1 | |
33047 | cat conftest.err >&5 | |
e6cc62c6 VS |
33048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33049 | (exit $ac_status); } && | |
f95e4495 VS |
33050 | { ac_try='test -z "$ac_c_werror_flag" |
33051 | || test ! -s conftest.err' | |
33052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33053 | (eval $ac_try) 2>&5 | |
33054 | ac_status=$? | |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33056 | (exit $ac_status); }; } && | |
33057 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33059 | (eval $ac_try) 2>&5 | |
33060 | ac_status=$? | |
33061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33062 | (exit $ac_status); }; }; then | |
33063 | eval "$as_ac_var=yes" | |
33064 | else | |
33065 | echo "$as_me: failed program was:" >&5 | |
33066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33067 | ||
33068 | eval "$as_ac_var=no" | |
33069 | fi | |
f95e4495 VS |
33070 | rm -f conftest.err conftest.$ac_objext \ |
33071 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33072 | fi |
33073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33074 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33075 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33076 | cat >>confdefs.h <<_ACEOF | |
33077 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33078 | _ACEOF | |
83307f33 | 33079 | |
83307f33 VZ |
33080 | fi |
33081 | done | |
33082 | ||
5c6fa7d2 | 33083 | |
e6cc62c6 VS |
33084 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
33085 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
33086 | if test "${wx_cv_var_timezone+set}" = set; then | |
33087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 33088 | else |
e6cc62c6 VS |
33089 | |
33090 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33091 | /* confdefs.h. */ |
33092 | _ACEOF | |
33093 | cat confdefs.h >>conftest.$ac_ext | |
33094 | cat >>conftest.$ac_ext <<_ACEOF | |
33095 | /* end confdefs.h. */ | |
360d6699 | 33096 | |
b4085ce6 | 33097 | #include <time.h> |
e6cc62c6 VS |
33098 | |
33099 | int | |
33100 | main () | |
33101 | { | |
360d6699 VZ |
33102 | |
33103 | int tz; | |
4f11a343 | 33104 | tz = timezone; |
e6cc62c6 VS |
33105 | |
33106 | ; | |
33107 | return 0; | |
33108 | } | |
33109 | _ACEOF | |
33110 | rm -f conftest.$ac_objext | |
33111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33112 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33113 | ac_status=$? |
f95e4495 VS |
33114 | grep -v '^ *+' conftest.er1 >conftest.err |
33115 | rm -f conftest.er1 | |
33116 | cat conftest.err >&5 | |
e6cc62c6 VS |
33117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33118 | (exit $ac_status); } && | |
f95e4495 VS |
33119 | { ac_try='test -z "$ac_c_werror_flag" |
33120 | || test ! -s conftest.err' | |
33121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33122 | (eval $ac_try) 2>&5 | |
33123 | ac_status=$? | |
33124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33125 | (exit $ac_status); }; } && | |
33126 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33128 | (eval $ac_try) 2>&5 | |
33129 | ac_status=$? | |
33130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33131 | (exit $ac_status); }; }; then | |
33132 | ||
4f11a343 | 33133 | wx_cv_var_timezone=timezone |
e6cc62c6 | 33134 | |
360d6699 | 33135 | else |
e6cc62c6 VS |
33136 | echo "$as_me: failed program was:" >&5 |
33137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33138 | ||
33139 | ||
33140 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33141 | /* confdefs.h. */ |
33142 | _ACEOF | |
33143 | cat confdefs.h >>conftest.$ac_ext | |
33144 | cat >>conftest.$ac_ext <<_ACEOF | |
33145 | /* end confdefs.h. */ | |
360d6699 | 33146 | |
b4085ce6 | 33147 | #include <time.h> |
e6cc62c6 VS |
33148 | |
33149 | int | |
33150 | main () | |
33151 | { | |
360d6699 VZ |
33152 | |
33153 | int tz; | |
33154 | tz = _timezone; | |
e6cc62c6 VS |
33155 | |
33156 | ; | |
33157 | return 0; | |
33158 | } | |
33159 | _ACEOF | |
33160 | rm -f conftest.$ac_objext | |
33161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33162 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33163 | ac_status=$? |
f95e4495 VS |
33164 | grep -v '^ *+' conftest.er1 >conftest.err |
33165 | rm -f conftest.er1 | |
33166 | cat conftest.err >&5 | |
e6cc62c6 VS |
33167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33168 | (exit $ac_status); } && | |
f95e4495 VS |
33169 | { ac_try='test -z "$ac_c_werror_flag" |
33170 | || test ! -s conftest.err' | |
33171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33172 | (eval $ac_try) 2>&5 | |
33173 | ac_status=$? | |
33174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33175 | (exit $ac_status); }; } && | |
33176 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33178 | (eval $ac_try) 2>&5 | |
33179 | ac_status=$? | |
33180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33181 | (exit $ac_status); }; }; then | |
33182 | ||
360d6699 | 33183 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 33184 | |
5357c8e8 | 33185 | else |
e6cc62c6 VS |
33186 | echo "$as_me: failed program was:" >&5 |
33187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33188 | ||
33189 | ||
33190 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33191 | /* confdefs.h. */ |
33192 | _ACEOF | |
33193 | cat confdefs.h >>conftest.$ac_ext | |
33194 | cat >>conftest.$ac_ext <<_ACEOF | |
33195 | /* end confdefs.h. */ | |
5357c8e8 | 33196 | |
b4085ce6 | 33197 | #include <time.h> |
e6cc62c6 VS |
33198 | |
33199 | int | |
33200 | main () | |
33201 | { | |
5357c8e8 VZ |
33202 | |
33203 | int tz; | |
4f11a343 | 33204 | tz = __timezone; |
e6cc62c6 VS |
33205 | |
33206 | ; | |
33207 | return 0; | |
33208 | } | |
33209 | _ACEOF | |
33210 | rm -f conftest.$ac_objext | |
33211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33212 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33213 | ac_status=$? |
f95e4495 VS |
33214 | grep -v '^ *+' conftest.er1 >conftest.err |
33215 | rm -f conftest.er1 | |
33216 | cat conftest.err >&5 | |
e6cc62c6 VS |
33217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33218 | (exit $ac_status); } && | |
f95e4495 VS |
33219 | { ac_try='test -z "$ac_c_werror_flag" |
33220 | || test ! -s conftest.err' | |
33221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33222 | (eval $ac_try) 2>&5 | |
33223 | ac_status=$? | |
33224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33225 | (exit $ac_status); }; } && | |
33226 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33228 | (eval $ac_try) 2>&5 | |
33229 | ac_status=$? | |
33230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33231 | (exit $ac_status); }; }; then | |
33232 | ||
4f11a343 | 33233 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 33234 | |
360d6699 | 33235 | else |
e6cc62c6 VS |
33236 | echo "$as_me: failed program was:" >&5 |
33237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33238 | ||
33239 | ||
f9bc1684 | 33240 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
33241 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
33242 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 33243 | fi |
e6cc62c6 VS |
33244 | |
33245 | ||
7b4a847f | 33246 | fi |
f95e4495 | 33247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
33248 | |
33249 | ||
5c6fa7d2 | 33250 | fi |
f95e4495 | 33251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
33252 | |
33253 | ||
247f5006 | 33254 | fi |
f95e4495 | 33255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33256 | |
e6cc62c6 VS |
33257 | |
33258 | fi | |
33259 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
33260 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 33261 | |
f9bc1684 | 33262 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 33263 | cat >>confdefs.h <<_ACEOF |
360d6699 | 33264 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 33265 | _ACEOF |
360d6699 | 33266 | |
f9bc1684 | 33267 | fi |
698dcdb6 | 33268 | |
e6cc62c6 VS |
33269 | |
33270 | for ac_func in localtime | |
afc31813 | 33271 | do |
e6cc62c6 VS |
33272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33273 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33275 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33277 | else | |
33278 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33279 | /* confdefs.h. */ |
33280 | _ACEOF | |
33281 | cat confdefs.h >>conftest.$ac_ext | |
33282 | cat >>conftest.$ac_ext <<_ACEOF | |
33283 | /* end confdefs.h. */ | |
f95e4495 VS |
33284 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33286 | #define $ac_func innocuous_$ac_func | |
33287 | ||
afc31813 | 33288 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33289 | which can conflict with char $ac_func (); below. |
33290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33291 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 33292 | |
e6cc62c6 VS |
33293 | #ifdef __STDC__ |
33294 | # include <limits.h> | |
33295 | #else | |
33296 | # include <assert.h> | |
33297 | #endif | |
f95e4495 VS |
33298 | |
33299 | #undef $ac_func | |
33300 | ||
afc31813 | 33301 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33302 | #ifdef __cplusplus |
33303 | extern "C" | |
33304 | { | |
33305 | #endif | |
afc31813 | 33306 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33307 | builtin and then its argument prototype would still apply. */ |
33308 | char $ac_func (); | |
afc31813 VZ |
33309 | /* The GNU C library defines this for functions which it implements |
33310 | to always fail with ENOSYS. Some functions are actually named | |
33311 | something starting with __ and the normal name is an alias. */ | |
33312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33313 | choke me | |
33314 | #else | |
e6cc62c6 VS |
33315 | char (*f) () = $ac_func; |
33316 | #endif | |
33317 | #ifdef __cplusplus | |
33318 | } | |
afc31813 VZ |
33319 | #endif |
33320 | ||
e6cc62c6 VS |
33321 | int |
33322 | main () | |
33323 | { | |
33324 | return f != $ac_func; | |
33325 | ; | |
33326 | return 0; | |
33327 | } | |
33328 | _ACEOF | |
33329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 33331 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33332 | ac_status=$? |
f95e4495 VS |
33333 | grep -v '^ *+' conftest.er1 >conftest.err |
33334 | rm -f conftest.er1 | |
33335 | cat conftest.err >&5 | |
e6cc62c6 VS |
33336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33337 | (exit $ac_status); } && | |
f95e4495 VS |
33338 | { ac_try='test -z "$ac_c_werror_flag" |
33339 | || test ! -s conftest.err' | |
33340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33341 | (eval $ac_try) 2>&5 | |
33342 | ac_status=$? | |
33343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33344 | (exit $ac_status); }; } && | |
33345 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33347 | (eval $ac_try) 2>&5 | |
33348 | ac_status=$? | |
33349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33350 | (exit $ac_status); }; }; then | |
33351 | eval "$as_ac_var=yes" | |
33352 | else | |
33353 | echo "$as_me: failed program was:" >&5 | |
33354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33355 | ||
33356 | eval "$as_ac_var=no" | |
33357 | fi | |
f95e4495 VS |
33358 | rm -f conftest.err conftest.$ac_objext \ |
33359 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33360 | fi |
33361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33362 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33363 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33364 | cat >>confdefs.h <<_ACEOF | |
33365 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33366 | _ACEOF | |
afc31813 | 33367 | |
afc31813 VZ |
33368 | fi |
33369 | done | |
33370 | ||
5c6fa7d2 | 33371 | |
8284b0c5 | 33372 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
33373 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
33374 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
33375 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
33376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 33377 | else |
e6cc62c6 VS |
33378 | |
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. */ | |
0470b1e6 | 33385 | |
b4085ce6 | 33386 | #include <time.h> |
e6cc62c6 VS |
33387 | |
33388 | int | |
33389 | main () | |
33390 | { | |
0470b1e6 VZ |
33391 | |
33392 | struct tm tm; | |
33393 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
33394 | |
33395 | ; | |
33396 | return 0; | |
33397 | } | |
33398 | _ACEOF | |
33399 | rm -f conftest.$ac_objext | |
33400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33401 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33402 | ac_status=$? |
f95e4495 VS |
33403 | grep -v '^ *+' conftest.er1 >conftest.err |
33404 | rm -f conftest.er1 | |
33405 | cat conftest.err >&5 | |
e6cc62c6 VS |
33406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33407 | (exit $ac_status); } && | |
f95e4495 VS |
33408 | { ac_try='test -z "$ac_c_werror_flag" |
33409 | || test ! -s conftest.err' | |
33410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33411 | (eval $ac_try) 2>&5 | |
33412 | ac_status=$? | |
33413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33414 | (exit $ac_status); }; } && | |
33415 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33417 | (eval $ac_try) 2>&5 | |
33418 | ac_status=$? | |
33419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33420 | (exit $ac_status); }; }; then | |
33421 | ||
f03a98d8 | 33422 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 33423 | |
0470b1e6 | 33424 | else |
e6cc62c6 VS |
33425 | echo "$as_me: failed program was:" >&5 |
33426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33427 | ||
33428 | wx_cv_struct_tm_has_gmtoff=no | |
33429 | ||
247f5006 | 33430 | fi |
f95e4495 | 33431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33432 | |
e6cc62c6 VS |
33433 | fi |
33434 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
33435 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
33436 | fi |
33437 | ||
33438 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 33439 | cat >>confdefs.h <<\_ACEOF |
6232543b | 33440 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 33441 | _ACEOF |
0470b1e6 | 33442 | |
3fcdd07b VZ |
33443 | fi |
33444 | ||
e6cc62c6 VS |
33445 | |
33446 | ||
33447 | for ac_func in gettimeofday ftime | |
3fcdd07b | 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. */ | |
f95e4495 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 | ||
3fcdd07b | 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. */ | |
f95e4495 | 33469 | |
e6cc62c6 VS |
33470 | #ifdef __STDC__ |
33471 | # include <limits.h> | |
33472 | #else | |
33473 | # include <assert.h> | |
33474 | #endif | |
f95e4495 VS |
33475 | |
33476 | #undef $ac_func | |
33477 | ||
3fcdd07b | 33478 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33479 | #ifdef __cplusplus |
33480 | extern "C" | |
33481 | { | |
33482 | #endif | |
3fcdd07b | 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 (); | |
3fcdd07b 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 | } | |
3fcdd07b 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 | |
f95e4495 | 33508 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33509 | ac_status=$? |
f95e4495 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); } && | |
f95e4495 VS |
33515 | { ac_try='test -z "$ac_c_werror_flag" |
33516 | || test ! -s conftest.err' | |
33517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33518 | (eval $ac_try) 2>&5 | |
33519 | ac_status=$? | |
33520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33521 | (exit $ac_status); }; } && | |
33522 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33524 | (eval $ac_try) 2>&5 | |
33525 | ac_status=$? | |
33526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33527 | (exit $ac_status); }; }; then | |
33528 | eval "$as_ac_var=yes" | |
33529 | else | |
33530 | echo "$as_me: failed program was:" >&5 | |
33531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33532 | ||
33533 | eval "$as_ac_var=no" | |
33534 | fi | |
f95e4495 VS |
33535 | rm -f conftest.err conftest.$ac_objext \ |
33536 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33537 | fi |
33538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33539 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33540 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33541 | cat >>confdefs.h <<_ACEOF | |
33542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33543 | _ACEOF | |
3fcdd07b | 33544 | break |
3fcdd07b VZ |
33545 | fi |
33546 | done | |
33547 | ||
698dcdb6 | 33548 | |
8284b0c5 | 33549 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
33550 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
33551 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
33552 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
33553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33554 | else | |
33555 | ||
33556 | ||
33557 | ||
33558 | ac_ext=cc | |
5c6fa7d2 | 33559 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
33560 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
33561 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33562 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 33563 | |
8284b0c5 | 33564 | |
e6cc62c6 | 33565 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33566 | /* confdefs.h. */ |
33567 | _ACEOF | |
33568 | cat confdefs.h >>conftest.$ac_ext | |
33569 | cat >>conftest.$ac_ext <<_ACEOF | |
33570 | /* end confdefs.h. */ | |
afc31813 VZ |
33571 | |
33572 | #include <sys/time.h> | |
33573 | #include <unistd.h> | |
e6cc62c6 VS |
33574 | |
33575 | int | |
33576 | main () | |
33577 | { | |
afc31813 VZ |
33578 | |
33579 | struct timeval tv; | |
776862b4 | 33580 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
33581 | |
33582 | ; | |
33583 | return 0; | |
33584 | } | |
33585 | _ACEOF | |
33586 | rm -f conftest.$ac_objext | |
33587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33588 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33589 | ac_status=$? |
f95e4495 VS |
33590 | grep -v '^ *+' conftest.er1 >conftest.err |
33591 | rm -f conftest.er1 | |
33592 | cat conftest.err >&5 | |
e6cc62c6 VS |
33593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33594 | (exit $ac_status); } && | |
f95e4495 VS |
33595 | { ac_try='test -z "$ac_cxx_werror_flag" |
33596 | || test ! -s conftest.err' | |
33597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33598 | (eval $ac_try) 2>&5 | |
33599 | ac_status=$? | |
33600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33601 | (exit $ac_status); }; } && | |
33602 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33604 | (eval $ac_try) 2>&5 | |
33605 | ac_status=$? | |
33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33607 | (exit $ac_status); }; }; then | |
afc31813 | 33608 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 33609 | else |
e6cc62c6 VS |
33610 | echo "$as_me: failed program was:" >&5 |
33611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33612 | ||
33613 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33614 | /* confdefs.h. */ |
33615 | _ACEOF | |
33616 | cat confdefs.h >>conftest.$ac_ext | |
33617 | cat >>conftest.$ac_ext <<_ACEOF | |
33618 | /* end confdefs.h. */ | |
afc31813 VZ |
33619 | |
33620 | #include <sys/time.h> | |
33621 | #include <unistd.h> | |
e6cc62c6 VS |
33622 | |
33623 | int | |
33624 | main () | |
33625 | { | |
afc31813 VZ |
33626 | |
33627 | struct timeval tv; | |
33628 | gettimeofday(&tv); | |
e6cc62c6 VS |
33629 | |
33630 | ; | |
33631 | return 0; | |
33632 | } | |
33633 | _ACEOF | |
33634 | rm -f conftest.$ac_objext | |
33635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33636 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33637 | ac_status=$? |
f95e4495 VS |
33638 | grep -v '^ *+' conftest.er1 >conftest.err |
33639 | rm -f conftest.er1 | |
33640 | cat conftest.err >&5 | |
e6cc62c6 VS |
33641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33642 | (exit $ac_status); } && | |
f95e4495 VS |
33643 | { ac_try='test -z "$ac_cxx_werror_flag" |
33644 | || test ! -s conftest.err' | |
33645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33646 | (eval $ac_try) 2>&5 | |
33647 | ac_status=$? | |
33648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33649 | (exit $ac_status); }; } && | |
33650 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33652 | (eval $ac_try) 2>&5 | |
33653 | ac_status=$? | |
33654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33655 | (exit $ac_status); }; }; then | |
afc31813 | 33656 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 33657 | else |
e6cc62c6 VS |
33658 | echo "$as_me: failed program was:" >&5 |
33659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33660 | ||
33661 | ||
33662 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
33663 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 33664 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
33665 | |
33666 | ||
10f2d63a | 33667 | fi |
f95e4495 | 33668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 33669 | |
10f2d63a | 33670 | fi |
f95e4495 | 33671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
afc31813 | 33672 | ac_ext=c |
10f2d63a | 33673 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
33674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
33675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 33677 | |
a0b9e27f | 33678 | |
e6cc62c6 VS |
33679 | fi |
33680 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
33681 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 33682 | |
afc31813 | 33683 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 33684 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 33685 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 33686 | _ACEOF |
afc31813 VZ |
33687 | |
33688 | fi | |
33689 | fi | |
33690 | ||
afc31813 VZ |
33691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
33692 | fi | |
33693 | ||
8284b0c5 | 33694 | |
52127426 | 33695 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 33696 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
33697 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
33698 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
33699 | wxUSE_SOCKETS="no" |
33700 | fi | |
0feee163 | 33701 | fi |
b089607b | 33702 | |
0feee163 VZ |
33703 | if test "$wxUSE_SOCKETS" = "yes"; then |
33704 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
33705 | echo "$as_me:$LINENO: checking for socket" >&5 |
33706 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
33707 | if test "${ac_cv_func_socket+set}" = set; then | |
33708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33709 | else | |
33710 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33711 | /* confdefs.h. */ |
33712 | _ACEOF | |
33713 | cat confdefs.h >>conftest.$ac_ext | |
33714 | cat >>conftest.$ac_ext <<_ACEOF | |
33715 | /* end confdefs.h. */ | |
f95e4495 VS |
33716 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
33717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33718 | #define socket innocuous_socket | |
33719 | ||
c63c7106 | 33720 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33721 | which can conflict with char socket (); below. |
33722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33723 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 33724 | |
e6cc62c6 VS |
33725 | #ifdef __STDC__ |
33726 | # include <limits.h> | |
33727 | #else | |
33728 | # include <assert.h> | |
33729 | #endif | |
f95e4495 VS |
33730 | |
33731 | #undef socket | |
33732 | ||
c63c7106 | 33733 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33734 | #ifdef __cplusplus |
33735 | extern "C" | |
33736 | { | |
33737 | #endif | |
c63c7106 | 33738 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33739 | builtin and then its argument prototype would still apply. */ |
33740 | char socket (); | |
c63c7106 VZ |
33741 | /* The GNU C library defines this for functions which it implements |
33742 | to always fail with ENOSYS. Some functions are actually named | |
33743 | something starting with __ and the normal name is an alias. */ | |
33744 | #if defined (__stub_socket) || defined (__stub___socket) | |
33745 | choke me | |
33746 | #else | |
e6cc62c6 VS |
33747 | char (*f) () = socket; |
33748 | #endif | |
33749 | #ifdef __cplusplus | |
33750 | } | |
c63c7106 VZ |
33751 | #endif |
33752 | ||
e6cc62c6 VS |
33753 | int |
33754 | main () | |
33755 | { | |
33756 | return f != socket; | |
33757 | ; | |
33758 | return 0; | |
33759 | } | |
33760 | _ACEOF | |
33761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 33763 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33764 | ac_status=$? |
f95e4495 VS |
33765 | grep -v '^ *+' conftest.er1 >conftest.err |
33766 | rm -f conftest.er1 | |
33767 | cat conftest.err >&5 | |
e6cc62c6 VS |
33768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33769 | (exit $ac_status); } && | |
f95e4495 VS |
33770 | { ac_try='test -z "$ac_c_werror_flag" |
33771 | || test ! -s conftest.err' | |
33772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33773 | (eval $ac_try) 2>&5 | |
33774 | ac_status=$? | |
33775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33776 | (exit $ac_status); }; } && | |
33777 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33779 | (eval $ac_try) 2>&5 | |
33780 | ac_status=$? | |
33781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33782 | (exit $ac_status); }; }; then | |
33783 | ac_cv_func_socket=yes | |
33784 | else | |
33785 | echo "$as_me: failed program was:" >&5 | |
33786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33787 | ||
33788 | ac_cv_func_socket=no | |
33789 | fi | |
f95e4495 VS |
33790 | rm -f conftest.err conftest.$ac_objext \ |
33791 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33792 | fi |
33793 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
33794 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
33795 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
33796 | : |
33797 | else | |
0e012a93 VZ |
33798 | |
33799 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
e6cc62c6 VS |
33800 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
33801 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
33802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 33803 | else |
e6cc62c6 | 33804 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 33805 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 33806 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33807 | /* confdefs.h. */ |
33808 | _ACEOF | |
33809 | cat confdefs.h >>conftest.$ac_ext | |
33810 | cat >>conftest.$ac_ext <<_ACEOF | |
33811 | /* end confdefs.h. */ | |
33812 | ||
c63c7106 | 33813 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33814 | #ifdef __cplusplus |
33815 | extern "C" | |
33816 | #endif | |
c63c7106 | 33817 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33818 | builtin and then its argument prototype would still apply. */ |
33819 | char socket (); | |
33820 | int | |
33821 | main () | |
33822 | { | |
33823 | socket (); | |
33824 | ; | |
33825 | return 0; | |
33826 | } | |
33827 | _ACEOF | |
33828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 33830 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33831 | ac_status=$? |
f95e4495 VS |
33832 | grep -v '^ *+' conftest.er1 >conftest.err |
33833 | rm -f conftest.er1 | |
33834 | cat conftest.err >&5 | |
e6cc62c6 VS |
33835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33836 | (exit $ac_status); } && | |
f95e4495 VS |
33837 | { ac_try='test -z "$ac_c_werror_flag" |
33838 | || test ! -s conftest.err' | |
33839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33840 | (eval $ac_try) 2>&5 | |
33841 | ac_status=$? | |
33842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33843 | (exit $ac_status); }; } && | |
33844 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33846 | (eval $ac_try) 2>&5 | |
33847 | ac_status=$? | |
33848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33849 | (exit $ac_status); }; }; then | |
33850 | ac_cv_lib_socket_socket=yes | |
33851 | else | |
33852 | echo "$as_me: failed program was:" >&5 | |
33853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33854 | ||
33855 | ac_cv_lib_socket_socket=no | |
33856 | fi | |
f95e4495 VS |
33857 | rm -f conftest.err conftest.$ac_objext \ |
33858 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33859 | LIBS=$ac_check_lib_save_LIBS |
33860 | fi | |
33861 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
33862 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
33863 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 | 33864 | if test "$INET_LINK" != " -lsocket"; then |
0e012a93 VZ |
33865 | INET_LINK="$INET_LINK -lsocket" |
33866 | fi | |
c63c7106 | 33867 | else |
afc31813 | 33868 | |
0e012a93 | 33869 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
e6cc62c6 | 33870 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} |
0e012a93 | 33871 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
33872 | |
33873 | ||
6232543b | 33874 | fi |
b089607b | 33875 | |
e6cc62c6 | 33876 | |
0e012a93 | 33877 | |
1e487827 | 33878 | fi |
afc31813 | 33879 | |
3a922bb4 | 33880 | fi |
0feee163 | 33881 | fi |
51a9faba | 33882 | |
0feee163 VZ |
33883 | if test "$wxUSE_SOCKETS" = "yes" ; then |
33884 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
33885 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
33886 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
33887 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
33888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 33889 | else |
e6cc62c6 VS |
33890 | |
33891 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33892 | /* confdefs.h. */ |
33893 | _ACEOF | |
33894 | cat confdefs.h >>conftest.$ac_ext | |
33895 | cat >>conftest.$ac_ext <<_ACEOF | |
33896 | /* end confdefs.h. */ | |
51a9faba | 33897 | |
3a922bb4 RL |
33898 | #include <sys/types.h> |
33899 | #include <sys/socket.h> | |
e6cc62c6 VS |
33900 | |
33901 | int | |
33902 | main () | |
33903 | { | |
51a9faba | 33904 | |
3a922bb4 RL |
33905 | socklen_t len; |
33906 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
33907 | |
33908 | ; | |
33909 | return 0; | |
33910 | } | |
33911 | _ACEOF | |
33912 | rm -f conftest.$ac_objext | |
33913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33914 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33915 | ac_status=$? |
f95e4495 VS |
33916 | grep -v '^ *+' conftest.er1 >conftest.err |
33917 | rm -f conftest.er1 | |
33918 | cat conftest.err >&5 | |
e6cc62c6 VS |
33919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33920 | (exit $ac_status); } && | |
f95e4495 VS |
33921 | { ac_try='test -z "$ac_c_werror_flag" |
33922 | || test ! -s conftest.err' | |
33923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33924 | (eval $ac_try) 2>&5 | |
33925 | ac_status=$? | |
33926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33927 | (exit $ac_status); }; } && | |
33928 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33930 | (eval $ac_try) 2>&5 | |
33931 | ac_status=$? | |
33932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33933 | (exit $ac_status); }; }; then | |
51a9faba | 33934 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 33935 | else |
e6cc62c6 VS |
33936 | echo "$as_me: failed program was:" >&5 |
33937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33938 | ||
33939 | ||
9711d31e GD |
33940 | CFLAGS_OLD="$CFLAGS" |
33941 | if test "$GCC" = yes ; then | |
33942 | CFLAGS="$CFLAGS -Werror" | |
33943 | fi | |
33944 | ||
e6cc62c6 | 33945 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33946 | /* confdefs.h. */ |
33947 | _ACEOF | |
33948 | cat confdefs.h >>conftest.$ac_ext | |
33949 | cat >>conftest.$ac_ext <<_ACEOF | |
33950 | /* end confdefs.h. */ | |
51a9faba | 33951 | |
9711d31e GD |
33952 | #include <sys/types.h> |
33953 | #include <sys/socket.h> | |
e6cc62c6 VS |
33954 | |
33955 | int | |
33956 | main () | |
33957 | { | |
51a9faba | 33958 | |
9711d31e GD |
33959 | size_t len; |
33960 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
33961 | |
33962 | ; | |
33963 | return 0; | |
33964 | } | |
33965 | _ACEOF | |
33966 | rm -f conftest.$ac_objext | |
33967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 33968 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33969 | ac_status=$? |
f95e4495 VS |
33970 | grep -v '^ *+' conftest.er1 >conftest.err |
33971 | rm -f conftest.er1 | |
33972 | cat conftest.err >&5 | |
e6cc62c6 VS |
33973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33974 | (exit $ac_status); } && | |
f95e4495 VS |
33975 | { ac_try='test -z "$ac_c_werror_flag" |
33976 | || test ! -s conftest.err' | |
33977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33978 | (eval $ac_try) 2>&5 | |
33979 | ac_status=$? | |
33980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33981 | (exit $ac_status); }; } && | |
33982 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33984 | (eval $ac_try) 2>&5 | |
33985 | ac_status=$? | |
33986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33987 | (exit $ac_status); }; }; then | |
51a9faba | 33988 | wx_cv_type_getsockname3=size_t |
afc31813 | 33989 | else |
e6cc62c6 VS |
33990 | echo "$as_me: failed program was:" >&5 |
33991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33992 | ||
33993 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33994 | /* confdefs.h. */ |
33995 | _ACEOF | |
33996 | cat confdefs.h >>conftest.$ac_ext | |
33997 | cat >>conftest.$ac_ext <<_ACEOF | |
33998 | /* end confdefs.h. */ | |
51a9faba | 33999 | |
9711d31e GD |
34000 | #include <sys/types.h> |
34001 | #include <sys/socket.h> | |
e6cc62c6 VS |
34002 | |
34003 | int | |
34004 | main () | |
34005 | { | |
51a9faba | 34006 | |
9711d31e GD |
34007 | int len; |
34008 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
34009 | |
34010 | ; | |
34011 | return 0; | |
34012 | } | |
34013 | _ACEOF | |
34014 | rm -f conftest.$ac_objext | |
34015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 34016 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34017 | ac_status=$? |
f95e4495 VS |
34018 | grep -v '^ *+' conftest.er1 >conftest.err |
34019 | rm -f conftest.er1 | |
34020 | cat conftest.err >&5 | |
e6cc62c6 VS |
34021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34022 | (exit $ac_status); } && | |
f95e4495 VS |
34023 | { ac_try='test -z "$ac_c_werror_flag" |
34024 | || test ! -s conftest.err' | |
34025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34026 | (eval $ac_try) 2>&5 | |
34027 | ac_status=$? | |
34028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34029 | (exit $ac_status); }; } && | |
34030 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34032 | (eval $ac_try) 2>&5 | |
34033 | ac_status=$? | |
34034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34035 | (exit $ac_status); }; }; then | |
51a9faba | 34036 | wx_cv_type_getsockname3=int |
afc31813 | 34037 | else |
e6cc62c6 VS |
34038 | echo "$as_me: failed program was:" >&5 |
34039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34040 | ||
34041 | wx_cv_type_getsockname3=unknown | |
34042 | ||
afc31813 | 34043 | fi |
f95e4495 | 34044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34045 | |
afc31813 | 34046 | fi |
f95e4495 | 34047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
34048 | |
34049 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
34050 | |
34051 | ||
247f5006 | 34052 | fi |
f95e4495 | 34053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 34054 | |
e6cc62c6 VS |
34055 | fi |
34056 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
34057 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 34058 | |
3a922bb4 RL |
34059 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
34060 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
34061 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
34062 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 34063 | else |
e6cc62c6 | 34064 | cat >>confdefs.h <<_ACEOF |
51a9faba | 34065 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 34066 | _ACEOF |
51a9faba | 34067 | |
3a922bb4 | 34068 | fi |
51a9faba VZ |
34069 | fi |
34070 | fi | |
afc31813 | 34071 | |
51a9faba | 34072 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 34073 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 34074 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 34075 | _ACEOF |
afc31813 | 34076 | |
70f7a477 | 34077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
34078 | fi |
34079 | ||
3879ecda VZ |
34080 | if test "$wxUSE_PROTOCOL" = "yes"; then |
34081 | if test "$wxUSE_SOCKETS" != "yes"; then | |
34082 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
34083 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
34084 | wxUSE_PROTOCOL=no | |
34085 | fi | |
34086 | fi | |
34087 | ||
34088 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
34089 | cat >>confdefs.h <<\_ACEOF | |
34090 | #define wxUSE_PROTOCOL 1 | |
34091 | _ACEOF | |
34092 | ||
34093 | ||
34094 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
34095 | cat >>confdefs.h <<\_ACEOF | |
34096 | #define wxUSE_PROTOCOL_HTTP 1 | |
34097 | _ACEOF | |
34098 | ||
34099 | fi | |
34100 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
34101 | cat >>confdefs.h <<\_ACEOF | |
34102 | #define wxUSE_PROTOCOL_FTP 1 | |
34103 | _ACEOF | |
34104 | ||
34105 | fi | |
34106 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
34107 | cat >>confdefs.h <<\_ACEOF | |
34108 | #define wxUSE_PROTOCOL_FILE 1 | |
34109 | _ACEOF | |
34110 | ||
34111 | fi | |
34112 | else | |
34113 | if test "$wxUSE_FS_INET" = "yes"; then | |
34114 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
34115 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
34116 | wxUSE_FS_INET="no" | |
34117 | fi | |
34118 | fi | |
34119 | ||
34120 | if test "$wxUSE_URL" = "yes"; then | |
34121 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
34122 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
34123 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
34124 | wxUSE_URL=no | |
34125 | fi | |
34126 | if test "$wxUSE_URL" = "yes"; then | |
34127 | cat >>confdefs.h <<\_ACEOF | |
34128 | #define wxUSE_URL 1 | |
34129 | _ACEOF | |
34130 | ||
34131 | fi | |
34132 | fi | |
34133 | ||
34134 | if test "$wxUSE_FS_INET" = "yes"; then | |
34135 | cat >>confdefs.h <<\_ACEOF | |
34136 | #define wxUSE_FS_INET 1 | |
34137 | _ACEOF | |
34138 | ||
34139 | fi | |
34140 | ||
8284b0c5 | 34141 | |
dc3d889d VZ |
34142 | if test "$wxUSE_GUI" = "yes"; then |
34143 | ||
ac0c4cc3 | 34144 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
34145 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
34146 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 34147 | wxUSE_JOYSTICK=no |
156b2523 GD |
34148 | fi |
34149 | ||
131f235d | 34150 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 34151 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
34152 | |
34153 | for ac_header in linux/joystick.h | |
10f2d63a | 34154 | do |
e6cc62c6 VS |
34155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
34156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34157 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34161 | fi | |
34162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34164 | else | |
34165 | # Is the header compilable? | |
34166 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34167 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34168 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34169 | /* confdefs.h. */ |
34170 | _ACEOF | |
34171 | cat confdefs.h >>conftest.$ac_ext | |
34172 | cat >>conftest.$ac_ext <<_ACEOF | |
34173 | /* end confdefs.h. */ | |
34174 | $ac_includes_default | |
34175 | #include <$ac_header> | |
34176 | _ACEOF | |
34177 | rm -f conftest.$ac_objext | |
34178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 34179 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34180 | ac_status=$? |
f95e4495 VS |
34181 | grep -v '^ *+' conftest.er1 >conftest.err |
34182 | rm -f conftest.er1 | |
34183 | cat conftest.err >&5 | |
e6cc62c6 VS |
34184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34185 | (exit $ac_status); } && | |
f95e4495 VS |
34186 | { ac_try='test -z "$ac_c_werror_flag" |
34187 | || test ! -s conftest.err' | |
34188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34189 | (eval $ac_try) 2>&5 | |
34190 | ac_status=$? | |
34191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34192 | (exit $ac_status); }; } && | |
34193 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34195 | (eval $ac_try) 2>&5 | |
34196 | ac_status=$? | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); }; }; then | |
34199 | ac_header_compiler=yes | |
34200 | else | |
34201 | echo "$as_me: failed program was:" >&5 | |
34202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34203 | ||
34204 | ac_header_compiler=no | |
34205 | fi | |
f95e4495 | 34206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
34207 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34208 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34209 | ||
34210 | # Is the header present? | |
34211 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34213 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34214 | /* confdefs.h. */ |
34215 | _ACEOF | |
34216 | cat confdefs.h >>conftest.$ac_ext | |
34217 | cat >>conftest.$ac_ext <<_ACEOF | |
34218 | /* end confdefs.h. */ | |
34219 | #include <$ac_header> | |
34220 | _ACEOF | |
34221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34223 | ac_status=$? | |
34224 | grep -v '^ *+' conftest.er1 >conftest.err | |
34225 | rm -f conftest.er1 | |
34226 | cat conftest.err >&5 | |
34227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34228 | (exit $ac_status); } >/dev/null; then | |
34229 | if test -s conftest.err; then | |
34230 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 34231 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
34232 | else |
34233 | ac_cpp_err= | |
34234 | fi | |
34235 | else | |
34236 | ac_cpp_err=yes | |
34237 | fi | |
34238 | if test -z "$ac_cpp_err"; then | |
34239 | ac_header_preproc=yes | |
34240 | else | |
34241 | echo "$as_me: failed program was:" >&5 | |
34242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34243 | ||
34244 | ac_header_preproc=no | |
34245 | fi | |
34246 | rm -f conftest.err conftest.$ac_ext | |
34247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34248 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34249 | ||
34250 | # So? What about this header? | |
f95e4495 VS |
34251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34252 | yes:no: ) | |
e6cc62c6 VS |
34253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
34255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34257 | ac_header_preproc=yes | |
e6cc62c6 | 34258 | ;; |
f95e4495 | 34259 | no:yes:* ) |
e6cc62c6 VS |
34260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
34262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
34268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
34270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
34272 | ( |
34273 | cat <<\_ASBOX | |
f95e4495 VS |
34274 | ## ----------------------------------------- ## |
34275 | ## Report this to wx-dev@lists.wxwindows.org ## | |
34276 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
34277 | _ASBOX |
34278 | ) | | |
34279 | sed "s/^/$as_me: WARNING: /" >&2 | |
34280 | ;; | |
34281 | esac | |
34282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34286 | else | |
f95e4495 | 34287 | eval "$as_ac_Header=\$ac_header_preproc" |
247f5006 | 34288 | fi |
e6cc62c6 VS |
34289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
34290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34291 | ||
10f2d63a | 34292 | fi |
e6cc62c6 VS |
34293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
34294 | cat >>confdefs.h <<_ACEOF | |
34295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34296 | _ACEOF | |
34297 | ||
247f5006 | 34298 | fi |
e6cc62c6 | 34299 | |
10f2d63a VZ |
34300 | done |
34301 | ||
3a922bb4 RL |
34302 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
34303 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
34304 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
34305 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
34306 | fi |
34307 | fi | |
34308 | fi | |
b089607b | 34309 | |
3a922bb4 | 34310 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 34311 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34312 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 34313 | _ACEOF |
10f2d63a | 34314 | |
3a922bb4 RL |
34315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
34316 | fi | |
dc3d889d VZ |
34317 | fi |
34318 | ||
8284b0c5 | 34319 | |
73d617c9 | 34320 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
b089607b | 34321 | |
3a922bb4 RL |
34322 | HAVE_DL_FUNCS=0 |
34323 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 34324 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
34325 | if test "$USE_DARWIN" = 1; then |
34326 | HAVE_DL_FUNCS=1 | |
34327 | else | |
e6cc62c6 VS |
34328 | |
34329 | for ac_func in dlopen | |
10f2d63a | 34330 | do |
e6cc62c6 VS |
34331 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34332 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34333 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34334 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34336 | else | |
34337 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34338 | /* confdefs.h. */ |
34339 | _ACEOF | |
34340 | cat confdefs.h >>conftest.$ac_ext | |
34341 | cat >>conftest.$ac_ext <<_ACEOF | |
34342 | /* end confdefs.h. */ | |
f95e4495 VS |
34343 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34345 | #define $ac_func innocuous_$ac_func | |
34346 | ||
10f2d63a | 34347 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34348 | which can conflict with char $ac_func (); below. |
34349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34350 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 34351 | |
e6cc62c6 VS |
34352 | #ifdef __STDC__ |
34353 | # include <limits.h> | |
34354 | #else | |
34355 | # include <assert.h> | |
34356 | #endif | |
f95e4495 VS |
34357 | |
34358 | #undef $ac_func | |
34359 | ||
10f2d63a | 34360 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34361 | #ifdef __cplusplus |
34362 | extern "C" | |
34363 | { | |
34364 | #endif | |
10f2d63a | 34365 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34366 | builtin and then its argument prototype would still apply. */ |
34367 | char $ac_func (); | |
10f2d63a VZ |
34368 | /* The GNU C library defines this for functions which it implements |
34369 | to always fail with ENOSYS. Some functions are actually named | |
34370 | something starting with __ and the normal name is an alias. */ | |
34371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34372 | choke me | |
34373 | #else | |
e6cc62c6 VS |
34374 | char (*f) () = $ac_func; |
34375 | #endif | |
34376 | #ifdef __cplusplus | |
34377 | } | |
10f2d63a VZ |
34378 | #endif |
34379 | ||
e6cc62c6 VS |
34380 | int |
34381 | main () | |
34382 | { | |
34383 | return f != $ac_func; | |
34384 | ; | |
34385 | return 0; | |
34386 | } | |
34387 | _ACEOF | |
34388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34390 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34391 | ac_status=$? |
f95e4495 VS |
34392 | grep -v '^ *+' conftest.er1 >conftest.err |
34393 | rm -f conftest.er1 | |
34394 | cat conftest.err >&5 | |
e6cc62c6 VS |
34395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34396 | (exit $ac_status); } && | |
f95e4495 VS |
34397 | { ac_try='test -z "$ac_c_werror_flag" |
34398 | || test ! -s conftest.err' | |
34399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34400 | (eval $ac_try) 2>&5 | |
34401 | ac_status=$? | |
34402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34403 | (exit $ac_status); }; } && | |
34404 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34406 | (eval $ac_try) 2>&5 | |
34407 | ac_status=$? | |
34408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34409 | (exit $ac_status); }; }; then | |
34410 | eval "$as_ac_var=yes" | |
34411 | else | |
34412 | echo "$as_me: failed program was:" >&5 | |
34413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34414 | ||
34415 | eval "$as_ac_var=no" | |
34416 | fi | |
f95e4495 VS |
34417 | rm -f conftest.err conftest.$ac_objext \ |
34418 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34419 | fi |
34420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34421 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34422 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34423 | cat >>confdefs.h <<_ACEOF | |
34424 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34425 | _ACEOF | |
34426 | ||
34427 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34428 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 34429 | _ACEOF |
10f2d63a | 34430 | |
3a922bb4 | 34431 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 34432 | |
10f2d63a | 34433 | else |
e6cc62c6 VS |
34434 | |
34435 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34436 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34437 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 34439 | else |
e6cc62c6 | 34440 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 34441 | LIBS="-ldl $LIBS" |
e6cc62c6 | 34442 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34443 | /* confdefs.h. */ |
34444 | _ACEOF | |
34445 | cat confdefs.h >>conftest.$ac_ext | |
34446 | cat >>conftest.$ac_ext <<_ACEOF | |
34447 | /* end confdefs.h. */ | |
34448 | ||
10f2d63a | 34449 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34450 | #ifdef __cplusplus |
34451 | extern "C" | |
34452 | #endif | |
10f2d63a | 34453 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34454 | builtin and then its argument prototype would still apply. */ |
34455 | char dlopen (); | |
34456 | int | |
34457 | main () | |
34458 | { | |
34459 | dlopen (); | |
34460 | ; | |
34461 | return 0; | |
34462 | } | |
34463 | _ACEOF | |
34464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34466 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34467 | ac_status=$? |
f95e4495 VS |
34468 | grep -v '^ *+' conftest.er1 >conftest.err |
34469 | rm -f conftest.er1 | |
34470 | cat conftest.err >&5 | |
e6cc62c6 VS |
34471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34472 | (exit $ac_status); } && | |
f95e4495 VS |
34473 | { ac_try='test -z "$ac_c_werror_flag" |
34474 | || test ! -s conftest.err' | |
34475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34476 | (eval $ac_try) 2>&5 | |
34477 | ac_status=$? | |
34478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34479 | (exit $ac_status); }; } && | |
34480 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34482 | (eval $ac_try) 2>&5 | |
34483 | ac_status=$? | |
34484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34485 | (exit $ac_status); }; }; then | |
34486 | ac_cv_lib_dl_dlopen=yes | |
34487 | else | |
34488 | echo "$as_me: failed program was:" >&5 | |
34489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34490 | ||
34491 | ac_cv_lib_dl_dlopen=no | |
34492 | fi | |
f95e4495 VS |
34493 | rm -f conftest.err conftest.$ac_objext \ |
34494 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34495 | LIBS=$ac_check_lib_save_LIBS |
34496 | fi | |
34497 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34498 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34499 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34500 | ||
34501 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34502 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 34503 | _ACEOF |
10f2d63a | 34504 | |
3a922bb4 | 34505 | HAVE_DL_FUNCS=1 |
3d63bc3a | 34506 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 34507 | |
10f2d63a | 34508 | else |
10f2d63a | 34509 | |
e6cc62c6 VS |
34510 | |
34511 | for ac_func in shl_load | |
10f2d63a | 34512 | do |
e6cc62c6 VS |
34513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34516 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34518 | else | |
34519 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34520 | /* confdefs.h. */ |
34521 | _ACEOF | |
34522 | cat confdefs.h >>conftest.$ac_ext | |
34523 | cat >>conftest.$ac_ext <<_ACEOF | |
34524 | /* end confdefs.h. */ | |
f95e4495 VS |
34525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34527 | #define $ac_func innocuous_$ac_func | |
34528 | ||
10f2d63a | 34529 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34530 | which can conflict with char $ac_func (); below. |
34531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34532 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 34533 | |
e6cc62c6 VS |
34534 | #ifdef __STDC__ |
34535 | # include <limits.h> | |
34536 | #else | |
34537 | # include <assert.h> | |
34538 | #endif | |
f95e4495 VS |
34539 | |
34540 | #undef $ac_func | |
34541 | ||
10f2d63a | 34542 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34543 | #ifdef __cplusplus |
34544 | extern "C" | |
34545 | { | |
34546 | #endif | |
10f2d63a | 34547 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34548 | builtin and then its argument prototype would still apply. */ |
34549 | char $ac_func (); | |
10f2d63a VZ |
34550 | /* The GNU C library defines this for functions which it implements |
34551 | to always fail with ENOSYS. Some functions are actually named | |
34552 | something starting with __ and the normal name is an alias. */ | |
34553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34554 | choke me | |
34555 | #else | |
e6cc62c6 VS |
34556 | char (*f) () = $ac_func; |
34557 | #endif | |
34558 | #ifdef __cplusplus | |
34559 | } | |
10f2d63a VZ |
34560 | #endif |
34561 | ||
e6cc62c6 VS |
34562 | int |
34563 | main () | |
34564 | { | |
34565 | return f != $ac_func; | |
34566 | ; | |
34567 | return 0; | |
34568 | } | |
34569 | _ACEOF | |
34570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34572 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34573 | ac_status=$? |
f95e4495 VS |
34574 | grep -v '^ *+' conftest.er1 >conftest.err |
34575 | rm -f conftest.er1 | |
34576 | cat conftest.err >&5 | |
e6cc62c6 VS |
34577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34578 | (exit $ac_status); } && | |
f95e4495 VS |
34579 | { ac_try='test -z "$ac_c_werror_flag" |
34580 | || test ! -s conftest.err' | |
34581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34582 | (eval $ac_try) 2>&5 | |
34583 | ac_status=$? | |
34584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34585 | (exit $ac_status); }; } && | |
34586 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34588 | (eval $ac_try) 2>&5 | |
34589 | ac_status=$? | |
34590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34591 | (exit $ac_status); }; }; then | |
34592 | eval "$as_ac_var=yes" | |
34593 | else | |
34594 | echo "$as_me: failed program was:" >&5 | |
34595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34596 | ||
34597 | eval "$as_ac_var=no" | |
34598 | fi | |
f95e4495 VS |
34599 | rm -f conftest.err conftest.$ac_objext \ |
34600 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34601 | fi |
34602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34605 | cat >>confdefs.h <<_ACEOF | |
34606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34607 | _ACEOF | |
34608 | ||
34609 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34610 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 34611 | _ACEOF |
10f2d63a | 34612 | |
3a922bb4 | 34613 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 34614 | |
10f2d63a | 34615 | else |
e6cc62c6 VS |
34616 | |
34617 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34618 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34619 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 34621 | else |
e6cc62c6 | 34622 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 34623 | LIBS="-lshl_load $LIBS" |
e6cc62c6 | 34624 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34625 | /* confdefs.h. */ |
34626 | _ACEOF | |
34627 | cat confdefs.h >>conftest.$ac_ext | |
34628 | cat >>conftest.$ac_ext <<_ACEOF | |
34629 | /* end confdefs.h. */ | |
34630 | ||
8284b0c5 | 34631 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34632 | #ifdef __cplusplus |
34633 | extern "C" | |
34634 | #endif | |
f6bcfd97 | 34635 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34636 | builtin and then its argument prototype would still apply. */ |
34637 | char dld (); | |
34638 | int | |
34639 | main () | |
34640 | { | |
34641 | dld (); | |
34642 | ; | |
34643 | return 0; | |
34644 | } | |
34645 | _ACEOF | |
34646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34648 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34649 | ac_status=$? |
f95e4495 VS |
34650 | grep -v '^ *+' conftest.er1 >conftest.err |
34651 | rm -f conftest.er1 | |
34652 | cat conftest.err >&5 | |
e6cc62c6 VS |
34653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34654 | (exit $ac_status); } && | |
f95e4495 VS |
34655 | { ac_try='test -z "$ac_c_werror_flag" |
34656 | || test ! -s conftest.err' | |
34657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34658 | (eval $ac_try) 2>&5 | |
34659 | ac_status=$? | |
34660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34661 | (exit $ac_status); }; } && | |
34662 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34664 | (eval $ac_try) 2>&5 | |
34665 | ac_status=$? | |
34666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34667 | (exit $ac_status); }; }; then | |
34668 | ac_cv_lib_shl_load_dld=yes | |
34669 | else | |
34670 | echo "$as_me: failed program was:" >&5 | |
34671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34672 | ||
34673 | ac_cv_lib_shl_load_dld=no | |
34674 | fi | |
f95e4495 VS |
34675 | rm -f conftest.err conftest.$ac_objext \ |
34676 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34677 | LIBS=$ac_check_lib_save_LIBS |
34678 | fi | |
34679 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34680 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34681 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 34682 | |
3a922bb4 | 34683 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 34684 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 34685 | |
f6bcfd97 BP |
34686 | fi |
34687 | ||
e6cc62c6 | 34688 | |
10f2d63a VZ |
34689 | fi |
34690 | done | |
34691 | ||
e6cc62c6 | 34692 | |
10f2d63a VZ |
34693 | fi |
34694 | ||
e6cc62c6 | 34695 | |
10f2d63a VZ |
34696 | fi |
34697 | done | |
34698 | ||
5c6fa7d2 | 34699 | |
8284b0c5 | 34700 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
34701 | |
34702 | for ac_func in dlerror | |
f6bcfd97 | 34703 | do |
e6cc62c6 VS |
34704 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34705 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34706 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34707 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34709 | else | |
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. */ | |
f95e4495 VS |
34716 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34718 | #define $ac_func innocuous_$ac_func | |
34719 | ||
f6bcfd97 | 34720 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34721 | which can conflict with char $ac_func (); below. |
34722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34723 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 34724 | |
e6cc62c6 VS |
34725 | #ifdef __STDC__ |
34726 | # include <limits.h> | |
34727 | #else | |
34728 | # include <assert.h> | |
34729 | #endif | |
f95e4495 VS |
34730 | |
34731 | #undef $ac_func | |
34732 | ||
f6bcfd97 | 34733 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34734 | #ifdef __cplusplus |
34735 | extern "C" | |
34736 | { | |
34737 | #endif | |
f6bcfd97 | 34738 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34739 | builtin and then its argument prototype would still apply. */ |
34740 | char $ac_func (); | |
f6bcfd97 BP |
34741 | /* The GNU C library defines this for functions which it implements |
34742 | to always fail with ENOSYS. Some functions are actually named | |
34743 | something starting with __ and the normal name is an alias. */ | |
34744 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34745 | choke me | |
34746 | #else | |
e6cc62c6 VS |
34747 | char (*f) () = $ac_func; |
34748 | #endif | |
34749 | #ifdef __cplusplus | |
34750 | } | |
f6bcfd97 BP |
34751 | #endif |
34752 | ||
e6cc62c6 VS |
34753 | int |
34754 | main () | |
34755 | { | |
34756 | return f != $ac_func; | |
34757 | ; | |
34758 | return 0; | |
34759 | } | |
34760 | _ACEOF | |
34761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34763 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34764 | ac_status=$? |
f95e4495 VS |
34765 | grep -v '^ *+' conftest.er1 >conftest.err |
34766 | rm -f conftest.er1 | |
34767 | cat conftest.err >&5 | |
e6cc62c6 VS |
34768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34769 | (exit $ac_status); } && | |
f95e4495 VS |
34770 | { ac_try='test -z "$ac_c_werror_flag" |
34771 | || test ! -s conftest.err' | |
34772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34773 | (eval $ac_try) 2>&5 | |
34774 | ac_status=$? | |
34775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34776 | (exit $ac_status); }; } && | |
34777 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34779 | (eval $ac_try) 2>&5 | |
34780 | ac_status=$? | |
34781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34782 | (exit $ac_status); }; }; then | |
34783 | eval "$as_ac_var=yes" | |
34784 | else | |
34785 | echo "$as_me: failed program was:" >&5 | |
34786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34787 | ||
34788 | eval "$as_ac_var=no" | |
34789 | fi | |
f95e4495 VS |
34790 | rm -f conftest.err conftest.$ac_objext \ |
34791 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34792 | fi |
34793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34794 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34795 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34796 | cat >>confdefs.h <<_ACEOF | |
34797 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34798 | _ACEOF | |
34799 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 34800 | #define HAVE_DLERROR 1 |
e6cc62c6 | 34801 | _ACEOF |
f6bcfd97 BP |
34802 | |
34803 | else | |
0e012a93 VZ |
34804 | |
34805 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
e6cc62c6 VS |
34806 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 |
34807 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 34809 | else |
e6cc62c6 | 34810 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 34811 | LIBS="-ldl $LIBS" |
e6cc62c6 | 34812 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34813 | /* confdefs.h. */ |
34814 | _ACEOF | |
34815 | cat confdefs.h >>conftest.$ac_ext | |
34816 | cat >>conftest.$ac_ext <<_ACEOF | |
34817 | /* end confdefs.h. */ | |
34818 | ||
f6bcfd97 | 34819 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34820 | #ifdef __cplusplus |
34821 | extern "C" | |
34822 | #endif | |
f6bcfd97 | 34823 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34824 | builtin and then its argument prototype would still apply. */ |
34825 | char dlerror (); | |
34826 | int | |
34827 | main () | |
34828 | { | |
34829 | dlerror (); | |
34830 | ; | |
34831 | return 0; | |
34832 | } | |
34833 | _ACEOF | |
34834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34836 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34837 | ac_status=$? |
f95e4495 VS |
34838 | grep -v '^ *+' conftest.er1 >conftest.err |
34839 | rm -f conftest.er1 | |
34840 | cat conftest.err >&5 | |
e6cc62c6 VS |
34841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34842 | (exit $ac_status); } && | |
f95e4495 VS |
34843 | { ac_try='test -z "$ac_c_werror_flag" |
34844 | || test ! -s conftest.err' | |
34845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34846 | (eval $ac_try) 2>&5 | |
34847 | ac_status=$? | |
34848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34849 | (exit $ac_status); }; } && | |
34850 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34852 | (eval $ac_try) 2>&5 | |
34853 | ac_status=$? | |
34854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34855 | (exit $ac_status); }; }; then | |
34856 | ac_cv_lib_dl_dlerror=yes | |
34857 | else | |
34858 | echo "$as_me: failed program was:" >&5 | |
34859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34860 | ||
34861 | ac_cv_lib_dl_dlerror=no | |
34862 | fi | |
f95e4495 VS |
34863 | rm -f conftest.err conftest.$ac_objext \ |
34864 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34865 | LIBS=$ac_check_lib_save_LIBS |
34866 | fi | |
34867 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34868 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34869 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34870 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 34871 | #define HAVE_DLERROR 1 |
e6cc62c6 | 34872 | _ACEOF |
f6bcfd97 | 34873 | |
f6bcfd97 BP |
34874 | fi |
34875 | ||
0e012a93 VZ |
34876 | |
34877 | ||
f6bcfd97 BP |
34878 | fi |
34879 | done | |
34880 | ||
3a922bb4 RL |
34881 | fi |
34882 | fi | |
f6bcfd97 | 34883 | |
3a922bb4 RL |
34884 | if test "$HAVE_DL_FUNCS" = 0; then |
34885 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34886 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
34887 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
34888 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 34889 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
34890 | wxUSE_DYNLIB_CLASS=no |
34891 | else | |
e6cc62c6 VS |
34892 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
34893 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
34894 | fi |
34895 | fi | |
10f2d63a VZ |
34896 | fi |
34897 | fi | |
34898 | fi | |
34899 | ||
0b9ab0bd | 34900 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 34901 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 34902 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 34903 | _ACEOF |
0b9ab0bd | 34904 | |
1948bb32 VS |
34905 | fi |
34906 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 34907 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34908 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 34909 | _ACEOF |
10f2d63a VZ |
34910 | |
34911 | fi | |
34912 | ||
8284b0c5 | 34913 | |
1e6feb95 | 34914 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 34915 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34916 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 34917 | _ACEOF |
1e6feb95 VZ |
34918 | |
34919 | fi | |
34920 | ||
10f2d63a | 34921 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 34922 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34923 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 34924 | _ACEOF |
10f2d63a | 34925 | |
8284b0c5 | 34926 | |
eb854003 | 34927 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
34928 | wxUSE_UNICODE_MSLU=no |
34929 | fi | |
a72a4bfa | 34930 | |
eb854003 | 34931 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
34932 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
34933 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
34934 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
34935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 34936 | else |
e6cc62c6 | 34937 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 34938 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 34939 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34940 | /* confdefs.h. */ |
34941 | _ACEOF | |
34942 | cat confdefs.h >>conftest.$ac_ext | |
34943 | cat >>conftest.$ac_ext <<_ACEOF | |
34944 | /* end confdefs.h. */ | |
a72a4bfa | 34945 | |
8284b0c5 | 34946 | |
e6cc62c6 VS |
34947 | int |
34948 | main () | |
34949 | { | |
34950 | main (); | |
34951 | ; | |
34952 | return 0; | |
34953 | } | |
34954 | _ACEOF | |
34955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 34957 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34958 | ac_status=$? |
f95e4495 VS |
34959 | grep -v '^ *+' conftest.er1 >conftest.err |
34960 | rm -f conftest.er1 | |
34961 | cat conftest.err >&5 | |
e6cc62c6 VS |
34962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34963 | (exit $ac_status); } && | |
f95e4495 VS |
34964 | { ac_try='test -z "$ac_c_werror_flag" |
34965 | || test ! -s conftest.err' | |
34966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34967 | (eval $ac_try) 2>&5 | |
34968 | ac_status=$? | |
34969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34970 | (exit $ac_status); }; } && | |
34971 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34973 | (eval $ac_try) 2>&5 | |
34974 | ac_status=$? | |
34975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34976 | (exit $ac_status); }; }; then | |
34977 | ac_cv_lib_unicows_main=yes | |
34978 | else | |
34979 | echo "$as_me: failed program was:" >&5 | |
34980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34981 | ||
34982 | ac_cv_lib_unicows_main=no | |
34983 | fi | |
f95e4495 VS |
34984 | rm -f conftest.err conftest.$ac_objext \ |
34985 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34986 | LIBS=$ac_check_lib_save_LIBS |
34987 | fi | |
34988 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
34989 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
34990 | if test $ac_cv_lib_unicows_main = yes; then | |
34991 | ||
34992 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 34993 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
34994 | _ACEOF |
34995 | ||
a72a4bfa | 34996 | |
a72a4bfa | 34997 | else |
a72a4bfa | 34998 | |
e6cc62c6 VS |
34999 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
35000 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35001 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35002 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 35003 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 35004 | |
a72a4bfa VS |
35005 | fi |
35006 | ||
35007 | fi | |
10f2d63a VZ |
35008 | fi |
35009 | ||
10f2d63a | 35010 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 35011 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35012 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 35013 | _ACEOF |
10f2d63a VZ |
35014 | |
35015 | fi | |
35016 | ||
8284b0c5 | 35017 | |
10f2d63a | 35018 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 35019 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35020 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 35021 | _ACEOF |
10f2d63a VZ |
35022 | |
35023 | fi | |
35024 | ||
e6cc62c6 | 35025 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35026 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 35027 | _ACEOF |
10f2d63a | 35028 | |
8284b0c5 | 35029 | |
e6cc62c6 | 35030 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35031 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 35032 | _ACEOF |
10f2d63a | 35033 | |
8284b0c5 MB |
35034 | |
35035 | ||
10f2d63a | 35036 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 35037 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35038 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 35039 | _ACEOF |
10f2d63a VZ |
35040 | |
35041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35042 | fi | |
35043 | ||
3879ecda | 35044 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 35045 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35046 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 35047 | _ACEOF |
10f2d63a | 35048 | |
1772d20c | 35049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
35050 | fi |
35051 | ||
35052 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 35053 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35054 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 35055 | _ACEOF |
10f2d63a VZ |
35056 | |
35057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
35058 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
35060 | fi | |
35061 | fi | |
35062 | ||
35063 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 35064 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35065 | #define wxUSE_HELP 1 |
e6cc62c6 | 35066 | _ACEOF |
10f2d63a VZ |
35067 | |
35068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 35069 | |
77e13408 | 35070 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 35071 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 35072 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 35073 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 35074 | _ACEOF |
29fd3c0c | 35075 | |
3e44f09d | 35076 | fi |
3379ed37 | 35077 | fi |
031d8228 VS |
35078 | |
35079 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
35080 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 35081 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 35082 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 35083 | _ACEOF |
031d8228 VS |
35084 | |
35085 | else | |
e6cc62c6 VS |
35086 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
35087 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
35088 | wxUSE_WXHTML_HELP=no |
35089 | fi | |
35090 | fi | |
10f2d63a VZ |
35091 | fi |
35092 | ||
35093 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35094 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
35095 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
35096 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 35097 | else |
e6cc62c6 | 35098 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35099 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 35100 | _ACEOF |
10f2d63a VZ |
35101 | |
35102 | fi | |
35103 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
35104 | fi | |
35105 | ||
e6cc62c6 VS |
35106 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
35107 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
35108 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
35109 | { (exit 1); exit 1; }; } | |
35110 | fi | |
35111 | ||
35112 | ||
f95e4495 | 35113 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
e6cc62c6 VS |
35114 | -o "$wxUSE_CLIPBOARD" = "yes" \ |
35115 | -o "$wxUSE_OLE" = "yes" \ | |
35116 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
35117 | ||
35118 | for ac_header in ole2.h | |
35119 | do | |
35120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35126 | fi | |
35127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35129 | else | |
35130 | # Is the header compilable? | |
35131 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35133 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35134 | /* confdefs.h. */ |
35135 | _ACEOF | |
35136 | cat confdefs.h >>conftest.$ac_ext | |
35137 | cat >>conftest.$ac_ext <<_ACEOF | |
35138 | /* end confdefs.h. */ | |
35139 | $ac_includes_default | |
35140 | #include <$ac_header> | |
35141 | _ACEOF | |
35142 | rm -f conftest.$ac_objext | |
35143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 35144 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35145 | ac_status=$? |
f95e4495 VS |
35146 | grep -v '^ *+' conftest.er1 >conftest.err |
35147 | rm -f conftest.er1 | |
35148 | cat conftest.err >&5 | |
e6cc62c6 VS |
35149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35150 | (exit $ac_status); } && | |
f95e4495 VS |
35151 | { ac_try='test -z "$ac_c_werror_flag" |
35152 | || test ! -s conftest.err' | |
35153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35154 | (eval $ac_try) 2>&5 | |
35155 | ac_status=$? | |
35156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35157 | (exit $ac_status); }; } && | |
35158 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35160 | (eval $ac_try) 2>&5 | |
35161 | ac_status=$? | |
35162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35163 | (exit $ac_status); }; }; then | |
35164 | ac_header_compiler=yes | |
35165 | else | |
35166 | echo "$as_me: failed program was:" >&5 | |
35167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35168 | ||
35169 | ac_header_compiler=no | |
35170 | fi | |
f95e4495 | 35171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
35172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35173 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35174 | ||
35175 | # Is the header present? | |
35176 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35177 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35178 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35179 | /* confdefs.h. */ |
35180 | _ACEOF | |
35181 | cat confdefs.h >>conftest.$ac_ext | |
35182 | cat >>conftest.$ac_ext <<_ACEOF | |
35183 | /* end confdefs.h. */ | |
35184 | #include <$ac_header> | |
35185 | _ACEOF | |
35186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35188 | ac_status=$? | |
35189 | grep -v '^ *+' conftest.er1 >conftest.err | |
35190 | rm -f conftest.er1 | |
35191 | cat conftest.err >&5 | |
35192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35193 | (exit $ac_status); } >/dev/null; then | |
35194 | if test -s conftest.err; then | |
35195 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f95e4495 | 35196 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
35197 | else |
35198 | ac_cpp_err= | |
35199 | fi | |
35200 | else | |
35201 | ac_cpp_err=yes | |
35202 | fi | |
35203 | if test -z "$ac_cpp_err"; then | |
35204 | ac_header_preproc=yes | |
35205 | else | |
35206 | echo "$as_me: failed program was:" >&5 | |
35207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35208 | ||
35209 | ac_header_preproc=no | |
35210 | fi | |
35211 | rm -f conftest.err conftest.$ac_ext | |
35212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35213 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35214 | ||
35215 | # So? What about this header? | |
f95e4495 VS |
35216 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35217 | yes:no: ) | |
e6cc62c6 VS |
35218 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35219 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
f95e4495 VS |
35220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35221 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35222 | ac_header_preproc=yes | |
e6cc62c6 | 35223 | ;; |
f95e4495 | 35224 | no:yes:* ) |
e6cc62c6 VS |
35225 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35226 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
f95e4495 VS |
35227 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35228 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35229 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35230 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35231 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35232 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
35233 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35234 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f95e4495 VS |
35235 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35236 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
35237 | ( |
35238 | cat <<\_ASBOX | |
f95e4495 VS |
35239 | ## ----------------------------------------- ## |
35240 | ## Report this to wx-dev@lists.wxwindows.org ## | |
35241 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
35242 | _ASBOX |
35243 | ) | | |
35244 | sed "s/^/$as_me: WARNING: /" >&2 | |
35245 | ;; | |
35246 | esac | |
35247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35251 | else | |
f95e4495 | 35252 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
35253 | fi |
35254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35256 | ||
10f2d63a | 35257 | fi |
e6cc62c6 VS |
35258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
35259 | cat >>confdefs.h <<_ACEOF | |
35260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35261 | _ACEOF | |
10f2d63a | 35262 | |
10f2d63a | 35263 | fi |
e6cc62c6 | 35264 | |
10f2d63a VZ |
35265 | done |
35266 | ||
8284b0c5 | 35267 | |
2b9bdf71 VZ |
35268 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
35269 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
35270 | |
35271 | ||
e6cc62c6 VS |
35272 | ac_ext=cc |
35273 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35274 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35275 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35276 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35277 | ||
35278 | ||
35279 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
35280 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
35281 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35282 | /* confdefs.h. */ |
35283 | _ACEOF | |
35284 | cat confdefs.h >>conftest.$ac_ext | |
35285 | cat >>conftest.$ac_ext <<_ACEOF | |
35286 | /* end confdefs.h. */ | |
8284b0c5 MB |
35287 | #include <windows.h> |
35288 | #include <ole2.h> | |
e6cc62c6 VS |
35289 | int |
35290 | main () | |
35291 | { | |
8284b0c5 | 35292 | |
e6cc62c6 VS |
35293 | ; |
35294 | return 0; | |
35295 | } | |
35296 | _ACEOF | |
35297 | rm -f conftest.$ac_objext | |
35298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 35299 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35300 | ac_status=$? |
f95e4495 VS |
35301 | grep -v '^ *+' conftest.er1 >conftest.err |
35302 | rm -f conftest.er1 | |
35303 | cat conftest.err >&5 | |
e6cc62c6 VS |
35304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35305 | (exit $ac_status); } && | |
f95e4495 VS |
35306 | { ac_try='test -z "$ac_cxx_werror_flag" |
35307 | || test ! -s conftest.err' | |
35308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35309 | (eval $ac_try) 2>&5 | |
35310 | ac_status=$? | |
35311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35312 | (exit $ac_status); }; } && | |
35313 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35315 | (eval $ac_try) 2>&5 | |
35316 | ac_status=$? | |
35317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35318 | (exit $ac_status); }; }; then | |
35319 | echo "$as_me:$LINENO: result: no" >&5 | |
35320 | echo "${ECHO_T}no" >&6 | |
35321 | else | |
35322 | echo "$as_me: failed program was:" >&5 | |
35323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35324 | ||
35325 | echo "$as_me:$LINENO: result: yes" >&5 | |
35326 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
35327 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
35328 | fi | |
f95e4495 | 35329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 35330 | ac_ext=c |
8284b0c5 | 35331 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
35332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
35333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 35335 | |
2b9bdf71 | 35336 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 35337 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
f95e4495 VS |
35338 | if test "$wxUSE_OLE" = "yes" ; then |
35339 | cat >>confdefs.h <<\_ACEOF | |
4f11a343 | 35340 | #define wxUSE_OLE 1 |
e6cc62c6 | 35341 | _ACEOF |
4f11a343 | 35342 | |
f95e4495 | 35343 | fi |
2b9bdf71 VZ |
35344 | fi |
35345 | ||
f95e4495 VS |
35346 | if test "$wxUSE_DATAOBJ" = "yes" ; then |
35347 | cat >>confdefs.h <<\_ACEOF | |
2b9bdf71 | 35348 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 35349 | _ACEOF |
2b9bdf71 | 35350 | |
f95e4495 | 35351 | fi |
2b9bdf71 | 35352 | else |
e6cc62c6 VS |
35353 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
35354 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
35355 | |
35356 | wxUSE_CLIPBOARD=no | |
35357 | wxUSE_DRAG_AND_DROP=no | |
35358 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
35359 | wxUSE_OLE=no |
35360 | fi | |
35361 | ||
35362 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 35363 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 35364 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 35365 | _ACEOF |
3bce6687 JS |
35366 | |
35367 | ||
e6cc62c6 | 35368 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 35369 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 35370 | _ACEOF |
3bce6687 JS |
35371 | |
35372 | fi | |
35373 | fi | |
35374 | ||
2b9bdf71 VZ |
35375 | if test "$wxUSE_IPC" = "yes"; then |
35376 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
35377 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
35378 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
35379 | fi |
35380 | ||
e6cc62c6 | 35381 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 35382 | #define wxUSE_IPC 1 |
e6cc62c6 | 35383 | _ACEOF |
2b9bdf71 VZ |
35384 | |
35385 | fi | |
35386 | ||
35387 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 35388 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
35389 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
35390 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
35391 | wxUSE_CLIPBOARD=no |
35392 | fi | |
35393 | ||
35394 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 35395 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 35396 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 35397 | _ACEOF |
2b9bdf71 | 35398 | |
8284b0c5 | 35399 | |
e6cc62c6 | 35400 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 35401 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 35402 | _ACEOF |
673f4220 | 35403 | |
6c657b52 | 35404 | fi |
2b9bdf71 VZ |
35405 | fi |
35406 | ||
35407 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
35408 | if test "$wxUSE_GTK" = 1; then | |
35409 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
35410 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
35411 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
35412 | wxUSE_DRAG_AND_DROP=no |
35413 | fi | |
35414 | fi | |
35415 | ||
2b9bdf71 | 35416 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
35417 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
35418 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
35419 | wxUSE_DRAG_AND_DROP=no |
35420 | fi | |
35421 | ||
f79bd02d | 35422 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
35423 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
35424 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
35425 | wxUSE_DRAG_AND_DROP=no |
35426 | fi | |
35427 | ||
6c657b52 | 35428 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
35429 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
35430 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
35431 | wxUSE_DRAG_AND_DROP=no |
35432 | fi | |
35433 | ||
10f2d63a | 35434 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 35435 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35436 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 35437 | _ACEOF |
10f2d63a VZ |
35438 | |
35439 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
35440 | fi | |
35441 | ||
35442 | fi | |
35443 | ||
35444 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 35445 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35446 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 35447 | _ACEOF |
10f2d63a VZ |
35448 | |
35449 | fi | |
35450 | ||
8284b0c5 | 35451 | |
1e6feb95 VZ |
35452 | USES_CONTROLS=0 |
35453 | if test "$wxUSE_CONTROLS" = "yes"; then | |
35454 | USES_CONTROLS=1 | |
35455 | fi | |
35456 | ||
10f2d63a | 35457 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 35458 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35459 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 35460 | _ACEOF |
10f2d63a | 35461 | |
1e6feb95 VZ |
35462 | USES_CONTROLS=1 |
35463 | fi | |
35464 | ||
35465 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 35466 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35467 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 35468 | _ACEOF |
1e6feb95 VZ |
35469 | |
35470 | USES_CONTROLS=1 | |
35471 | fi | |
35472 | ||
35473 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 35474 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35475 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 35476 | _ACEOF |
1e6feb95 VZ |
35477 | |
35478 | USES_CONTROLS=1 | |
35479 | fi | |
35480 | ||
35481 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 35482 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35483 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 35484 | _ACEOF |
1e6feb95 VZ |
35485 | |
35486 | USES_CONTROLS=1 | |
35487 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
35488 | fi |
35489 | ||
35490 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 35491 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35492 | #define wxUSE_CARET 1 |
e6cc62c6 | 35493 | _ACEOF |
10f2d63a | 35494 | |
1e6feb95 | 35495 | USES_CONTROLS=1 |
10f2d63a VZ |
35496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
35497 | fi | |
35498 | ||
35499 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 35500 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35501 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 35502 | _ACEOF |
10f2d63a | 35503 | |
1e6feb95 | 35504 | USES_CONTROLS=1 |
10f2d63a VZ |
35505 | fi |
35506 | ||
35507 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 35508 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35509 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 35510 | _ACEOF |
10f2d63a | 35511 | |
1e6feb95 | 35512 | USES_CONTROLS=1 |
10f2d63a VZ |
35513 | fi |
35514 | ||
35515 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 35516 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35517 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 35518 | _ACEOF |
10f2d63a | 35519 | |
1e6feb95 | 35520 | USES_CONTROLS=1 |
10f2d63a VZ |
35521 | fi |
35522 | ||
35523 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 35524 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35525 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 35526 | _ACEOF |
10f2d63a | 35527 | |
1e6feb95 | 35528 | USES_CONTROLS=1 |
10f2d63a VZ |
35529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
35530 | fi | |
35531 | ||
da494b40 | 35532 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 35533 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 35534 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 35535 | _ACEOF |
da494b40 MB |
35536 | |
35537 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
35538 | fi | |
35539 | ||
10f2d63a | 35540 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 35541 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35542 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 35543 | _ACEOF |
10f2d63a | 35544 | |
1e6feb95 | 35545 | USES_CONTROLS=1 |
10f2d63a VZ |
35546 | fi |
35547 | ||
d6a55c4b | 35548 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 35549 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 35550 | #define wxUSE_GRID 1 |
e6cc62c6 | 35551 | _ACEOF |
10f2d63a | 35552 | |
1e6feb95 | 35553 | USES_CONTROLS=1 |
d6a55c4b | 35554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
35555 | fi |
35556 | ||
35557 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35558 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35559 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 35560 | _ACEOF |
10f2d63a VZ |
35561 | |
35562 | fi | |
35563 | ||
0e012a93 VZ |
35564 | if test "$wxUSE_LISTBOOK" = "yes"; then |
35565 | cat >>confdefs.h <<\_ACEOF | |
35566 | #define wxUSE_LISTBOOK 1 | |
35567 | _ACEOF | |
35568 | ||
35569 | USES_CONTROLS=1 | |
35570 | fi | |
35571 | ||
10f2d63a | 35572 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 35573 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35574 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 35575 | _ACEOF |
10f2d63a | 35576 | |
1e6feb95 | 35577 | USES_CONTROLS=1 |
10f2d63a VZ |
35578 | fi |
35579 | ||
35580 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
35581 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35582 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35583 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 35584 | _ACEOF |
10f2d63a | 35585 | |
1e6feb95 | 35586 | USES_CONTROLS=1 |
10f2d63a VZ |
35587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
35588 | else | |
e6cc62c6 VS |
35589 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
35590 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
35591 | fi |
35592 | fi | |
35593 | ||
35594 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 35595 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35596 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 35597 | _ACEOF |
10f2d63a | 35598 | |
1e6feb95 | 35599 | USES_CONTROLS=1 |
10f2d63a VZ |
35600 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
35601 | fi | |
35602 | ||
24176f2c | 35603 | |
10f2d63a | 35604 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 35605 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35606 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 35607 | _ACEOF |
10f2d63a | 35608 | |
1e6feb95 | 35609 | USES_CONTROLS=1 |
10f2d63a VZ |
35610 | fi |
35611 | ||
35612 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 35613 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35614 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 35615 | _ACEOF |
10f2d63a | 35616 | |
1e6feb95 | 35617 | USES_CONTROLS=1 |
10f2d63a VZ |
35618 | fi |
35619 | ||
35620 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 35621 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35622 | #define wxUSE_SASH 1 |
e6cc62c6 | 35623 | _ACEOF |
10f2d63a VZ |
35624 | |
35625 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
35626 | fi | |
35627 | ||
35628 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 35629 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35630 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 35631 | _ACEOF |
10f2d63a | 35632 | |
1e6feb95 | 35633 | USES_CONTROLS=1 |
741a9306 | 35634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
35635 | fi |
35636 | ||
35637 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 35638 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35639 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 35640 | _ACEOF |
10f2d63a | 35641 | |
1e6feb95 | 35642 | USES_CONTROLS=1 |
10f2d63a VZ |
35643 | fi |
35644 | ||
35645 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 35646 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35647 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 35648 | _ACEOF |
10f2d63a | 35649 | |
1e6feb95 | 35650 | USES_CONTROLS=1 |
10f2d63a VZ |
35651 | fi |
35652 | ||
56cfaa52 | 35653 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 35654 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 35655 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 35656 | _ACEOF |
56cfaa52 | 35657 | |
1e6feb95 | 35658 | USES_CONTROLS=1 |
56cfaa52 RR |
35659 | fi |
35660 | ||
10f2d63a | 35661 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 35662 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35663 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 35664 | _ACEOF |
10f2d63a VZ |
35665 | |
35666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
35667 | fi | |
35668 | ||
35669 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 35670 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35671 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 35672 | _ACEOF |
10f2d63a | 35673 | |
1e6feb95 | 35674 | USES_CONTROLS=1 |
10f2d63a VZ |
35675 | fi |
35676 | ||
35677 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 35678 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35679 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 35680 | _ACEOF |
10f2d63a | 35681 | |
1e6feb95 VZ |
35682 | USES_CONTROLS=1 |
35683 | fi | |
35684 | ||
35685 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 35686 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35687 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 35688 | _ACEOF |
1e6feb95 VZ |
35689 | |
35690 | USES_CONTROLS=1 | |
10f2d63a VZ |
35691 | fi |
35692 | ||
35693 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 35694 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35695 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 35696 | _ACEOF |
10f2d63a | 35697 | |
89e6bf6d | 35698 | USES_CONTROLS=1 |
10f2d63a VZ |
35699 | fi |
35700 | ||
35701 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 35702 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35703 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 35704 | _ACEOF |
10f2d63a | 35705 | |
1e6feb95 | 35706 | USES_CONTROLS=1 |
698dcdb6 | 35707 | |
2286341c | 35708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
35709 | fi |
35710 | ||
35711 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 35712 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35713 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 35714 | _ACEOF |
10f2d63a VZ |
35715 | |
35716 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
35717 | fi | |
35718 | ||
1e6feb95 | 35719 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 35720 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35721 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 35722 | _ACEOF |
1e6feb95 VZ |
35723 | |
35724 | USES_CONTROLS=1 | |
35725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
35726 | fi | |
35727 | ||
1db8dc4a | 35728 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 35729 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
35730 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
35731 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
35732 | wxUSE_TOGGLEBTN=no |
35733 | fi | |
35734 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
35735 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
35736 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
35737 | wxUSE_TOGGLEBTN=no |
35738 | fi | |
35739 | ||
35740 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 35741 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 35742 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 35743 | _ACEOF |
1db8dc4a | 35744 | |
1e6feb95 | 35745 | USES_CONTROLS=1 |
a45d7ab7 | 35746 | fi |
1db8dc4a VZ |
35747 | fi |
35748 | ||
360d6699 | 35749 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 35750 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 35751 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 35752 | _ACEOF |
360d6699 VZ |
35753 | |
35754 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 35755 | USES_CONTROLS=1 |
360d6699 VZ |
35756 | fi |
35757 | ||
10f2d63a | 35758 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 35759 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35760 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 35761 | _ACEOF |
10f2d63a | 35762 | |
1e6feb95 | 35763 | USES_CONTROLS=1 |
698dcdb6 | 35764 | |
360d6699 VZ |
35765 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
35766 | wxUSE_TOOLBAR_NATIVE="yes" | |
35767 | fi | |
35768 | ||
1e6feb95 | 35769 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 35770 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 35771 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 35772 | _ACEOF |
360d6699 | 35773 | |
1e6feb95 VZ |
35774 | USES_CONTROLS=1 |
35775 | fi | |
35776 | ||
35777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
35778 | fi |
35779 | ||
10f2d63a VZ |
35780 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
35781 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
35782 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
35783 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 35784 | else |
89e6bf6d | 35785 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
35786 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
35787 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 35788 | else |
e6cc62c6 | 35789 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35790 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 35791 | _ACEOF |
10f2d63a VZ |
35792 | |
35793 | fi | |
35794 | fi | |
35795 | fi | |
35796 | ||
35797 | if test "$wxUSE_TREECTRL" = "yes"; then | |
35798 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35799 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35800 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 35801 | _ACEOF |
10f2d63a | 35802 | |
1e6feb95 | 35803 | USES_CONTROLS=1 |
10f2d63a VZ |
35804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
35805 | else | |
e6cc62c6 VS |
35806 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
35807 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
35808 | fi |
35809 | fi | |
35810 | ||
9f41d601 | 35811 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 35812 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
35813 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
35814 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 35815 | else |
833a51f6 MB |
35816 | if test "$wxUSE_PM" = 1; then |
35817 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 35818 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
35819 | else |
35820 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 35821 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 35822 | _ACEOF |
9f41d601 | 35823 | |
8284b0c5 | 35824 | |
833a51f6 | 35825 | USES_CONTROLS=1 |
485cf710 | 35826 | fi |
6abe4b65 | 35827 | fi |
9f41d601 RR |
35828 | fi |
35829 | ||
dd964dcc | 35830 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 35831 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
35832 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
35833 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 35834 | else |
e6cc62c6 | 35835 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 35836 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 35837 | _ACEOF |
dd964dcc | 35838 | |
3c011993 | 35839 | fi |
dd964dcc VZ |
35840 | fi |
35841 | ||
1e6feb95 | 35842 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 35843 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35844 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 35845 | _ACEOF |
10f2d63a | 35846 | |
10f2d63a VZ |
35847 | fi |
35848 | ||
8284b0c5 | 35849 | |
e46d2a18 VS |
35850 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
35851 | cat >>confdefs.h <<\_ACEOF | |
35852 | #define wxUSE_ACCESSIBILITY 1 | |
35853 | _ACEOF | |
35854 | ||
35855 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
35856 | fi | |
1e6feb95 | 35857 | |
24fd6d87 | 35858 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 35859 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 35860 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 35861 | _ACEOF |
24fd6d87 VZ |
35862 | |
35863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
35864 | fi | |
35865 | ||
e46d2a18 | 35866 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 35867 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 35868 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 35869 | _ACEOF |
7bb2947d | 35870 | |
e46d2a18 VS |
35871 | fi |
35872 | ||
35873 | USE_HTML=0 | |
35874 | if test "$wxUSE_HTML" = "yes"; then | |
35875 | cat >>confdefs.h <<\_ACEOF | |
35876 | #define wxUSE_HTML 1 | |
35877 | _ACEOF | |
35878 | ||
35879 | USE_HTML=1 | |
35880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
35881 | fi |
35882 | ||
1e6feb95 | 35883 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 35884 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35885 | #define wxUSE_MENUS 1 |
e6cc62c6 | 35886 | _ACEOF |
10f2d63a | 35887 | |
1e6feb95 | 35888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
35889 | fi |
35890 | ||
1e6feb95 | 35891 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 35892 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35893 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 35894 | _ACEOF |
10f2d63a | 35895 | |
10f2d63a VZ |
35896 | fi |
35897 | ||
1e6feb95 | 35898 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 35899 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35900 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 35901 | _ACEOF |
10f2d63a | 35902 | |
10f2d63a VZ |
35903 | fi |
35904 | ||
35905 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 35906 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35907 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 35908 | _ACEOF |
10f2d63a VZ |
35909 | |
35910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
35911 | fi | |
35912 | ||
e46d2a18 | 35913 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 35914 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 35915 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 35916 | _ACEOF |
10f2d63a | 35917 | |
e46d2a18 VS |
35918 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
35919 | "$TOOLKIT" = "MOTIF"; then | |
35920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
35921 | fi | |
10f2d63a VZ |
35922 | fi |
35923 | ||
e46d2a18 | 35924 | |
10f2d63a | 35925 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 35926 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 35927 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 35928 | _ACEOF |
703e0a69 | 35929 | |
698dcdb6 VZ |
35930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
35931 | fi | |
35932 | ||
edae8572 | 35933 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 35934 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 35935 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 35936 | _ACEOF |
edae8572 VZ |
35937 | |
35938 | fi | |
35939 | ||
e46d2a18 VS |
35940 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
35941 | LIBS=" -lunicows $LIBS" | |
35942 | fi | |
35943 | ||
35944 | ||
698dcdb6 | 35945 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 35946 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 35947 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 35948 | _ACEOF |
698dcdb6 | 35949 | |
698dcdb6 | 35950 | |
e46d2a18 VS |
35951 | if test "$wxUSE_GIF" = "yes" ; then |
35952 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35953 | #define wxUSE_GIF 1 |
e6cc62c6 | 35954 | _ACEOF |
698dcdb6 | 35955 | |
e46d2a18 | 35956 | fi |
698dcdb6 | 35957 | |
e46d2a18 VS |
35958 | if test "$wxUSE_PCX" = "yes" ; then |
35959 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35960 | #define wxUSE_PCX 1 |
e6cc62c6 | 35961 | _ACEOF |
698dcdb6 | 35962 | |
e46d2a18 | 35963 | fi |
698dcdb6 | 35964 | |
e46d2a18 VS |
35965 | if test "$wxUSE_IFF" = "yes" ; then |
35966 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 35967 | #define wxUSE_IFF 1 |
e6cc62c6 | 35968 | _ACEOF |
4b6b4dfc | 35969 | |
e46d2a18 | 35970 | fi |
4b6b4dfc | 35971 | |
e46d2a18 VS |
35972 | if test "$wxUSE_PNM" = "yes" ; then |
35973 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35974 | #define wxUSE_PNM 1 |
e6cc62c6 | 35975 | _ACEOF |
698dcdb6 | 35976 | |
e46d2a18 | 35977 | fi |
698dcdb6 | 35978 | |
e46d2a18 VS |
35979 | if test "$wxUSE_XPM" = "yes" ; then |
35980 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35981 | #define wxUSE_XPM 1 |
e6cc62c6 | 35982 | _ACEOF |
698dcdb6 | 35983 | |
e46d2a18 | 35984 | fi |
698dcdb6 | 35985 | |
e46d2a18 VS |
35986 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
35987 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 35988 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 35989 | _ACEOF |
658974ae | 35990 | |
e46d2a18 | 35991 | fi |
a72a4bfa VS |
35992 | fi |
35993 | ||
8284b0c5 | 35994 | |
1e6feb95 | 35995 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 35996 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35997 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 35998 | _ACEOF |
1e6feb95 VZ |
35999 | |
36000 | fi | |
36001 | ||
36002 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 36003 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36004 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 36005 | _ACEOF |
1e6feb95 VZ |
36006 | |
36007 | fi | |
36008 | ||
36009 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 36010 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36011 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 36012 | _ACEOF |
1e6feb95 VZ |
36013 | |
36014 | fi | |
36015 | ||
8db37e06 | 36016 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 36017 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 36018 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 36019 | _ACEOF |
8db37e06 VZ |
36020 | |
36021 | fi | |
36022 | ||
1e6feb95 | 36023 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 36024 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36025 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 36026 | _ACEOF |
1e6feb95 VZ |
36027 | |
36028 | fi | |
36029 | ||
36030 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 36031 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
36032 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
36033 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 36034 | else |
e6cc62c6 | 36035 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36036 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 36037 | _ACEOF |
1e6feb95 | 36038 | |
1e6feb95 VZ |
36039 | fi |
36040 | fi | |
36041 | ||
36042 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 36043 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36044 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 36045 | _ACEOF |
1e6feb95 VZ |
36046 | |
36047 | fi | |
36048 | ||
36049 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 36050 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36051 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 36052 | _ACEOF |
1e6feb95 VZ |
36053 | |
36054 | fi | |
36055 | ||
36056 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
36057 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36058 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
36059 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 36060 | else |
e6cc62c6 | 36061 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36062 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 36063 | _ACEOF |
1e6feb95 VZ |
36064 | |
36065 | fi | |
36066 | fi | |
36067 | ||
cbca9943 | 36068 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 36069 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 36070 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 36071 | _ACEOF |
cbca9943 VZ |
36072 | |
36073 | fi | |
36074 | ||
1e6feb95 VZ |
36075 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
36076 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36077 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
36078 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 36079 | else |
e6cc62c6 | 36080 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36081 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 36082 | _ACEOF |
1e6feb95 | 36083 | |
7b4a847f RR |
36084 | fi |
36085 | fi | |
579d8138 | 36086 | |
8284b0c5 | 36087 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 36088 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 36089 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 36090 | _ACEOF |
8284b0c5 MB |
36091 | |
36092 | fi | |
36093 | ||
36094 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 36095 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 36096 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 36097 | _ACEOF |
8284b0c5 MB |
36098 | |
36099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
36100 | fi | |
36101 | ||
36102 | ||
36103 | if test "$cross_compiling" = "yes"; then | |
36104 | OSINFO="\"$host\"" | |
36105 | else | |
36106 | OSINFO=`uname -s -r -m` | |
36107 | OSINFO="\"$OSINFO\"" | |
36108 | fi | |
36109 | ||
e6cc62c6 | 36110 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 36111 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 36112 | _ACEOF |
8284b0c5 MB |
36113 | |
36114 | ||
36115 | ||
36116 | if test "x$prefix" != "xNONE"; then | |
36117 | wxPREFIX=$prefix | |
36118 | else | |
36119 | wxPREFIX=$ac_default_prefix | |
36120 | fi | |
36121 | ||
e6cc62c6 | 36122 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 36123 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 36124 | _ACEOF |
8284b0c5 MB |
36125 | |
36126 | ||
e6cc62c6 | 36127 | top_builddir_wxconfig=`pwd` |
52c71b80 | 36128 | |
8284b0c5 MB |
36129 | |
36130 | ||
edd891e2 VS |
36131 | CORE_BASE_LIBS="net base" |
36132 | CORE_GUI_LIBS="adv core" | |
36133 | ||
36134 | if test "$wxUSE_XML" = "yes" ; then | |
36135 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
36136 | fi | |
45293562 VS |
36137 | if test "$wxUSE_ODBC" != "no" ; then |
36138 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
36139 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
36140 | fi |
36141 | if test "$wxUSE_HTML" = "yes" ; then | |
36142 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
36143 | fi | |
36144 | ||
57e7d4ac VS |
36145 | if test "$wxUSE_GUI" != "yes"; then |
36146 | CORE_GUI_LIBS="" | |
36147 | fi | |
36148 | ||
edd891e2 VS |
36149 | |
36150 | ||
36151 | ||
36152 | ||
36153 | ||
36154 | ||
8284b0c5 MB |
36155 | |
36156 | if test "$wxUSE_MAC" = 1 ; then | |
36157 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
36158 | fi | |
ac0c4cc3 DE |
36159 | if test "$wxUSE_COCOA" = 1 ; then |
36160 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
36161 | fi | |
8284b0c5 MB |
36162 | |
36163 | ||
2b5f62a0 VZ |
36164 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
36165 | ||
36166 | have_cos=0 | |
36167 | have_floor=0 | |
e6cc62c6 | 36168 | |
2b5f62a0 VZ |
36169 | for ac_func in cos |
36170 | do | |
e6cc62c6 VS |
36171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36174 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36176 | else | |
36177 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36178 | /* confdefs.h. */ |
36179 | _ACEOF | |
36180 | cat confdefs.h >>conftest.$ac_ext | |
36181 | cat >>conftest.$ac_ext <<_ACEOF | |
36182 | /* end confdefs.h. */ | |
f95e4495 VS |
36183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36185 | #define $ac_func innocuous_$ac_func | |
36186 | ||
2b5f62a0 | 36187 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36188 | which can conflict with char $ac_func (); below. |
36189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36190 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 36191 | |
e6cc62c6 VS |
36192 | #ifdef __STDC__ |
36193 | # include <limits.h> | |
36194 | #else | |
36195 | # include <assert.h> | |
36196 | #endif | |
f95e4495 VS |
36197 | |
36198 | #undef $ac_func | |
36199 | ||
2b5f62a0 | 36200 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36201 | #ifdef __cplusplus |
36202 | extern "C" | |
36203 | { | |
36204 | #endif | |
2b5f62a0 | 36205 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36206 | builtin and then its argument prototype would still apply. */ |
36207 | char $ac_func (); | |
2b5f62a0 VZ |
36208 | /* The GNU C library defines this for functions which it implements |
36209 | to always fail with ENOSYS. Some functions are actually named | |
36210 | something starting with __ and the normal name is an alias. */ | |
36211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36212 | choke me | |
36213 | #else | |
e6cc62c6 VS |
36214 | char (*f) () = $ac_func; |
36215 | #endif | |
36216 | #ifdef __cplusplus | |
36217 | } | |
2b5f62a0 VZ |
36218 | #endif |
36219 | ||
e6cc62c6 VS |
36220 | int |
36221 | main () | |
36222 | { | |
36223 | return f != $ac_func; | |
36224 | ; | |
36225 | return 0; | |
36226 | } | |
36227 | _ACEOF | |
36228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 36230 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36231 | ac_status=$? |
f95e4495 VS |
36232 | grep -v '^ *+' conftest.er1 >conftest.err |
36233 | rm -f conftest.er1 | |
36234 | cat conftest.err >&5 | |
e6cc62c6 VS |
36235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36236 | (exit $ac_status); } && | |
f95e4495 VS |
36237 | { ac_try='test -z "$ac_c_werror_flag" |
36238 | || test ! -s conftest.err' | |
36239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36240 | (eval $ac_try) 2>&5 | |
36241 | ac_status=$? | |
36242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36243 | (exit $ac_status); }; } && | |
36244 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36246 | (eval $ac_try) 2>&5 | |
36247 | ac_status=$? | |
36248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36249 | (exit $ac_status); }; }; then | |
36250 | eval "$as_ac_var=yes" | |
36251 | else | |
36252 | echo "$as_me: failed program was:" >&5 | |
36253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36254 | ||
36255 | eval "$as_ac_var=no" | |
36256 | fi | |
f95e4495 VS |
36257 | rm -f conftest.err conftest.$ac_objext \ |
36258 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36259 | fi |
36260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36261 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36262 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36263 | cat >>confdefs.h <<_ACEOF | |
36264 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36265 | _ACEOF | |
2b5f62a0 | 36266 | have_cos=1 |
2b5f62a0 VZ |
36267 | fi |
36268 | done | |
36269 | ||
e6cc62c6 | 36270 | |
2b5f62a0 VZ |
36271 | for ac_func in floor |
36272 | do | |
e6cc62c6 VS |
36273 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36274 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36275 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36276 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36278 | else | |
36279 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36280 | /* confdefs.h. */ |
36281 | _ACEOF | |
36282 | cat confdefs.h >>conftest.$ac_ext | |
36283 | cat >>conftest.$ac_ext <<_ACEOF | |
36284 | /* end confdefs.h. */ | |
f95e4495 VS |
36285 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36287 | #define $ac_func innocuous_$ac_func | |
36288 | ||
2b5f62a0 | 36289 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36290 | which can conflict with char $ac_func (); below. |
36291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36292 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 36293 | |
e6cc62c6 VS |
36294 | #ifdef __STDC__ |
36295 | # include <limits.h> | |
36296 | #else | |
36297 | # include <assert.h> | |
36298 | #endif | |
f95e4495 VS |
36299 | |
36300 | #undef $ac_func | |
36301 | ||
2b5f62a0 | 36302 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36303 | #ifdef __cplusplus |
36304 | extern "C" | |
36305 | { | |
36306 | #endif | |
2b5f62a0 | 36307 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36308 | builtin and then its argument prototype would still apply. */ |
36309 | char $ac_func (); | |
2b5f62a0 VZ |
36310 | /* The GNU C library defines this for functions which it implements |
36311 | to always fail with ENOSYS. Some functions are actually named | |
36312 | something starting with __ and the normal name is an alias. */ | |
36313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36314 | choke me | |
36315 | #else | |
e6cc62c6 VS |
36316 | char (*f) () = $ac_func; |
36317 | #endif | |
36318 | #ifdef __cplusplus | |
36319 | } | |
2b5f62a0 VZ |
36320 | #endif |
36321 | ||
e6cc62c6 VS |
36322 | int |
36323 | main () | |
36324 | { | |
36325 | return f != $ac_func; | |
36326 | ; | |
36327 | return 0; | |
36328 | } | |
36329 | _ACEOF | |
36330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 36332 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36333 | ac_status=$? |
f95e4495 VS |
36334 | grep -v '^ *+' conftest.er1 >conftest.err |
36335 | rm -f conftest.er1 | |
36336 | cat conftest.err >&5 | |
e6cc62c6 VS |
36337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36338 | (exit $ac_status); } && | |
f95e4495 VS |
36339 | { ac_try='test -z "$ac_c_werror_flag" |
36340 | || test ! -s conftest.err' | |
36341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36342 | (eval $ac_try) 2>&5 | |
36343 | ac_status=$? | |
36344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36345 | (exit $ac_status); }; } && | |
36346 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36348 | (eval $ac_try) 2>&5 | |
36349 | ac_status=$? | |
36350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36351 | (exit $ac_status); }; }; then | |
36352 | eval "$as_ac_var=yes" | |
36353 | else | |
36354 | echo "$as_me: failed program was:" >&5 | |
36355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36356 | ||
36357 | eval "$as_ac_var=no" | |
36358 | fi | |
f95e4495 VS |
36359 | rm -f conftest.err conftest.$ac_objext \ |
36360 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36361 | fi |
36362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36363 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36364 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36365 | cat >>confdefs.h <<_ACEOF | |
36366 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36367 | _ACEOF | |
2b5f62a0 | 36368 | have_floor=1 |
2b5f62a0 VZ |
36369 | fi |
36370 | done | |
36371 | ||
e6cc62c6 VS |
36372 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
36373 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 36374 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
36375 | echo "$as_me:$LINENO: result: yes" >&5 |
36376 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 36377 | else |
e6cc62c6 VS |
36378 | echo "$as_me:$LINENO: result: no" >&5 |
36379 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
36380 | LIBS="$LIBS -lm" |
36381 | # use different functions to avoid configure caching | |
36382 | have_sin=0 | |
36383 | have_ceil=0 | |
e6cc62c6 VS |
36384 | |
36385 | for ac_func in sin | |
2b5f62a0 | 36386 | do |
e6cc62c6 VS |
36387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36390 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36392 | else | |
36393 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36394 | /* confdefs.h. */ |
36395 | _ACEOF | |
36396 | cat confdefs.h >>conftest.$ac_ext | |
36397 | cat >>conftest.$ac_ext <<_ACEOF | |
36398 | /* end confdefs.h. */ | |
f95e4495 VS |
36399 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36401 | #define $ac_func innocuous_$ac_func | |
36402 | ||
2b5f62a0 | 36403 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36404 | which can conflict with char $ac_func (); below. |
36405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36406 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 36407 | |
e6cc62c6 VS |
36408 | #ifdef __STDC__ |
36409 | # include <limits.h> | |
36410 | #else | |
36411 | # include <assert.h> | |
36412 | #endif | |
f95e4495 VS |
36413 | |
36414 | #undef $ac_func | |
36415 | ||
2b5f62a0 | 36416 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36417 | #ifdef __cplusplus |
36418 | extern "C" | |
36419 | { | |
36420 | #endif | |
2b5f62a0 | 36421 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36422 | builtin and then its argument prototype would still apply. */ |
36423 | char $ac_func (); | |
2b5f62a0 VZ |
36424 | /* The GNU C library defines this for functions which it implements |
36425 | to always fail with ENOSYS. Some functions are actually named | |
36426 | something starting with __ and the normal name is an alias. */ | |
36427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36428 | choke me | |
36429 | #else | |
e6cc62c6 VS |
36430 | char (*f) () = $ac_func; |
36431 | #endif | |
36432 | #ifdef __cplusplus | |
36433 | } | |
2b5f62a0 VZ |
36434 | #endif |
36435 | ||
e6cc62c6 VS |
36436 | int |
36437 | main () | |
36438 | { | |
36439 | return f != $ac_func; | |
36440 | ; | |
36441 | return 0; | |
36442 | } | |
36443 | _ACEOF | |
36444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 36446 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36447 | ac_status=$? |
f95e4495 VS |
36448 | grep -v '^ *+' conftest.er1 >conftest.err |
36449 | rm -f conftest.er1 | |
36450 | cat conftest.err >&5 | |
e6cc62c6 VS |
36451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36452 | (exit $ac_status); } && | |
f95e4495 VS |
36453 | { ac_try='test -z "$ac_c_werror_flag" |
36454 | || test ! -s conftest.err' | |
36455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36456 | (eval $ac_try) 2>&5 | |
36457 | ac_status=$? | |
36458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36459 | (exit $ac_status); }; } && | |
36460 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36462 | (eval $ac_try) 2>&5 | |
36463 | ac_status=$? | |
36464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36465 | (exit $ac_status); }; }; then | |
36466 | eval "$as_ac_var=yes" | |
36467 | else | |
36468 | echo "$as_me: failed program was:" >&5 | |
36469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36470 | ||
36471 | eval "$as_ac_var=no" | |
36472 | fi | |
f95e4495 VS |
36473 | rm -f conftest.err conftest.$ac_objext \ |
36474 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36475 | fi |
36476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36478 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36479 | cat >>confdefs.h <<_ACEOF | |
36480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36481 | _ACEOF | |
2b5f62a0 | 36482 | have_sin=1 |
2b5f62a0 VZ |
36483 | fi |
36484 | done | |
36485 | ||
e6cc62c6 VS |
36486 | |
36487 | for ac_func in ceil | |
2b5f62a0 | 36488 | do |
e6cc62c6 VS |
36489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36490 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36492 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36494 | else | |
36495 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36496 | /* confdefs.h. */ |
36497 | _ACEOF | |
36498 | cat confdefs.h >>conftest.$ac_ext | |
36499 | cat >>conftest.$ac_ext <<_ACEOF | |
36500 | /* end confdefs.h. */ | |
f95e4495 VS |
36501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36503 | #define $ac_func innocuous_$ac_func | |
36504 | ||
2b5f62a0 | 36505 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36506 | which can conflict with char $ac_func (); below. |
36507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36508 | <limits.h> exists even on freestanding compilers. */ | |
f95e4495 | 36509 | |
e6cc62c6 VS |
36510 | #ifdef __STDC__ |
36511 | # include <limits.h> | |
36512 | #else | |
36513 | # include <assert.h> | |
36514 | #endif | |
f95e4495 VS |
36515 | |
36516 | #undef $ac_func | |
36517 | ||
2b5f62a0 | 36518 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36519 | #ifdef __cplusplus |
36520 | extern "C" | |
36521 | { | |
36522 | #endif | |
2b5f62a0 | 36523 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36524 | builtin and then its argument prototype would still apply. */ |
36525 | char $ac_func (); | |
2b5f62a0 VZ |
36526 | /* The GNU C library defines this for functions which it implements |
36527 | to always fail with ENOSYS. Some functions are actually named | |
36528 | something starting with __ and the normal name is an alias. */ | |
36529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36530 | choke me | |
36531 | #else | |
e6cc62c6 VS |
36532 | char (*f) () = $ac_func; |
36533 | #endif | |
36534 | #ifdef __cplusplus | |
36535 | } | |
2b5f62a0 VZ |
36536 | #endif |
36537 | ||
e6cc62c6 VS |
36538 | int |
36539 | main () | |
36540 | { | |
36541 | return f != $ac_func; | |
36542 | ; | |
36543 | return 0; | |
36544 | } | |
36545 | _ACEOF | |
36546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f95e4495 | 36548 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36549 | ac_status=$? |
f95e4495 VS |
36550 | grep -v '^ *+' conftest.er1 >conftest.err |
36551 | rm -f conftest.er1 | |
36552 | cat conftest.err >&5 | |
e6cc62c6 VS |
36553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36554 | (exit $ac_status); } && | |
f95e4495 VS |
36555 | { ac_try='test -z "$ac_c_werror_flag" |
36556 | || test ! -s conftest.err' | |
36557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36558 | (eval $ac_try) 2>&5 | |
36559 | ac_status=$? | |
36560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36561 | (exit $ac_status); }; } && | |
36562 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36564 | (eval $ac_try) 2>&5 | |
36565 | ac_status=$? | |
36566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36567 | (exit $ac_status); }; }; then | |
36568 | eval "$as_ac_var=yes" | |
36569 | else | |
36570 | echo "$as_me: failed program was:" >&5 | |
36571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36572 | ||
36573 | eval "$as_ac_var=no" | |
36574 | fi | |
f95e4495 VS |
36575 | rm -f conftest.err conftest.$ac_objext \ |
36576 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36577 | fi |
36578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36580 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36581 | cat >>confdefs.h <<_ACEOF | |
36582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36583 | _ACEOF | |
2b5f62a0 | 36584 | have_ceil=1 |
2b5f62a0 VZ |
36585 | fi |
36586 | done | |
36587 | ||
e6cc62c6 VS |
36588 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
36589 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 36590 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
36591 | echo "$as_me:$LINENO: result: yes" >&5 |
36592 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 36593 | else |
e6cc62c6 VS |
36594 | echo "$as_me:$LINENO: result: no" >&5 |
36595 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
36596 | # not sure we should warn the user, crash, etc. |
36597 | fi | |
36598 | fi | |
8284b0c5 MB |
36599 | |
36600 | if test "$wxUSE_GUI" = "yes"; then | |
36601 | ||
e6cc62c6 | 36602 | |
8284b0c5 MB |
36603 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
36604 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 36605 | minimal propsize rotate shaped widgets render" |
b625909c VS |
36606 | |
36607 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
36608 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
36609 | fi | |
8284b0c5 MB |
36610 | else |
36611 | SAMPLES_SUBDIRS="console" | |
36612 | fi | |
36613 | ||
36614 | ||
e6cc62c6 | 36615 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 36616 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 36617 | |
fddeb06b VS |
36618 | if test "$GXX" = yes ; then |
36619 | CXXWARNINGS="-Wall" | |
36620 | fi | |
36621 | ||
36622 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
36623 | ||
95318f7d | 36624 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
36625 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
36626 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
36627 | |
36628 | ||
fddeb06b | 36629 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 36630 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 36631 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 36632 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 36633 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
36634 | if test "$wxUSE_GUI" = "yes"; then |
36635 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
36636 | fi | |
34b08d2c VS |
36637 | if test "$wxUSE_OPENGL" = "yes"; then |
36638 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
36639 | fi | |
fddeb06b VS |
36640 | |
36641 | LDFLAGS="$LDFLAGS $PROFILE" | |
36642 | ||
8284b0c5 MB |
36643 | if test "$wxUSE_GTK" = 1; then |
36644 | WXCONFIG_INCLUDE= | |
36645 | else | |
36646 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
36647 | fi | |
36648 | ||
67c13b6c VS |
36649 | WXCONFIG_EXTRALIBS="$LIBS" |
36650 | ||
36651 | if test "$wxUSE_REGEX" = "builtin" ; then | |
36652 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
36653 | fi | |
36654 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
36655 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
36656 | fi | |
36657 | if test "$wxUSE_ODBC" = "builtin" ; then | |
36658 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
36659 | fi | |
36660 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
36661 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
36662 | fi | |
36663 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
36664 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
36665 | fi | |
36666 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
36667 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
36668 | fi | |
36669 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
36670 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
36671 | fi | |
bb41dcbe VS |
36672 | if test "$wxUSE_ODBC" = "builtin" ; then |
36673 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
36674 | fi | |
67c13b6c VS |
36675 | |
36676 | for i in $wxconfig_3rdparty ; do | |
36677 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
36678 | done | |
36679 | ||
36680 | ||
fe0895cf VS |
36681 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
36682 | WXUNIV=1 | |
36683 | else | |
36684 | WXUNIV=0 | |
8284b0c5 MB |
36685 | fi |
36686 | ||
8284b0c5 MB |
36687 | |
36688 | ||
36689 | ||
36690 | ||
36691 | ||
36692 | ||
36693 | ||
672abd7a | 36694 | |
9747f85d VS |
36695 | if test $wxUSE_MONOLITHIC = "yes" ; then |
36696 | MONOLITHIC=1 | |
36697 | else | |
36698 | MONOLITHIC=0 | |
36699 | fi | |
8284b0c5 | 36700 | |
bb41dcbe VS |
36701 | if test $wxUSE_ODBC != "no" ; then |
36702 | USE_ODBC=1 | |
36703 | else | |
36704 | USE_ODBC=0 | |
36705 | fi | |
36706 | ||
029b47ad VS |
36707 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
36708 | OFFICIAL_BUILD=1 | |
36709 | else | |
36710 | OFFICIAL_BUILD=0 | |
36711 | fi | |
36712 | ||
8ee2dd05 VS |
36713 | |
36714 | ||
36715 | ||
8284b0c5 MB |
36716 | |
36717 | ||
36718 | ||
36719 | ||
36720 | ||
36721 | ||
c74dc163 | 36722 | |
34b08d2c | 36723 | |
672abd7a | 36724 | |
cf615ebb | 36725 | |
6c67131a VS |
36726 | |
36727 | ||
bb41dcbe | 36728 | |
3527f29c | 36729 | |
89fe663f | 36730 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
36731 | |
36732 | ||
36733 | ||
36734 | ||
36735 | ||
ea66c762 | 36736 | |
0f1bc9c2 | 36737 | |
f95e4495 VS |
36738 | if test "x$BAKEFILE_HOST" = "x"; then |
36739 | BAKEFILE_HOST="${host}" | |
36740 | fi | |
36741 | ||
fe0895cf | 36742 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
36743 | |
36744 | if test -n "$ac_tool_prefix"; then | |
36745 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
36746 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
36747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36749 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
36750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 36751 | else |
fe0895cf VS |
36752 | if test -n "$RANLIB"; then |
36753 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 36754 | else |
e6cc62c6 VS |
36755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36756 | for as_dir in $PATH | |
36757 | do | |
36758 | IFS=$as_save_IFS | |
36759 | test -z "$as_dir" && as_dir=. | |
36760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36762 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
36763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36764 | break 2 | |
36765 | fi | |
36766 | done | |
36767 | done | |
36768 | ||
10f2d63a | 36769 | fi |
10f2d63a | 36770 | fi |
e6cc62c6 | 36771 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 36772 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
36773 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
36774 | echo "${ECHO_T}$RANLIB" >&6 | |
36775 | else | |
36776 | echo "$as_me:$LINENO: result: no" >&5 | |
36777 | echo "${ECHO_T}no" >&6 | |
36778 | fi | |
36779 | ||
36780 | fi | |
36781 | if test -z "$ac_cv_prog_RANLIB"; then | |
36782 | ac_ct_RANLIB=$RANLIB | |
36783 | # Extract the first word of "ranlib", so it can be a program name with args. | |
36784 | set dummy ranlib; ac_word=$2 | |
36785 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36787 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
36788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36789 | else | |
36790 | if test -n "$ac_ct_RANLIB"; then | |
36791 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
36792 | else | |
36793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36794 | for as_dir in $PATH | |
36795 | do | |
36796 | IFS=$as_save_IFS | |
36797 | test -z "$as_dir" && as_dir=. | |
36798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36800 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
36801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36802 | break 2 | |
36803 | fi | |
36804 | done | |
36805 | done | |
36806 | ||
36807 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
36808 | fi | |
36809 | fi | |
36810 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
36811 | if test -n "$ac_ct_RANLIB"; then | |
36812 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
36813 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 36814 | else |
e6cc62c6 VS |
36815 | echo "$as_me:$LINENO: result: no" >&5 |
36816 | echo "${ECHO_T}no" >&6 | |
36817 | fi | |
36818 | ||
36819 | RANLIB=$ac_ct_RANLIB | |
36820 | else | |
36821 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 36822 | fi |
665bbe97 | 36823 | |
fe0895cf VS |
36824 | # Find a good install program. We prefer a C program (faster), |
36825 | # so one script is as good as another. But avoid the broken or | |
36826 | # incompatible versions: | |
36827 | # SysV /etc/install, /usr/sbin/install | |
36828 | # SunOS /usr/etc/install | |
36829 | # IRIX /sbin/install | |
36830 | # AIX /bin/install | |
e6cc62c6 | 36831 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
36832 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
36833 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
36834 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
f95e4495 | 36835 | # OS/2's system install, which has a completely different semantic |
fe0895cf | 36836 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
36837 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
36838 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 36839 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
36840 | if test "${ac_cv_path_install+set}" = set; then |
36841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36842 | else | |
36843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36844 | for as_dir in $PATH | |
36845 | do | |
36846 | IFS=$as_save_IFS | |
36847 | test -z "$as_dir" && as_dir=. | |
36848 | # Account for people who put trailing slashes in PATH elements. | |
36849 | case $as_dir/ in | |
36850 | ./ | .// | /cC/* | \ | |
36851 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
f95e4495 | 36852 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
36853 | /usr/ucb/* ) ;; |
36854 | *) | |
36855 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
36856 | # Don't use installbsd from OSF since it installs stuff as root | |
36857 | # by default. | |
36858 | for ac_prog in ginstall scoinst install; do | |
36859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f95e4495 VS |
36860 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
36861 | if test $ac_prog = install && | |
36862 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
36863 | # AIX install. It has an incompatible calling convention. | |
36864 | : | |
36865 | elif test $ac_prog = install && | |
36866 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
36867 | # program-specific install script used by HP pwplus--don't use. | |
36868 | : | |
36869 | else | |
36870 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
36871 | break 3 | |
36872 | fi | |
36873 | fi | |
fe0895cf | 36874 | done |
e6cc62c6 VS |
36875 | done |
36876 | ;; | |
36877 | esac | |
36878 | done | |
36879 | ||
fe0895cf VS |
36880 | |
36881 | fi | |
36882 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 36883 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
36884 | else |
36885 | # As a last resort, use the slow shell script. We don't cache a | |
36886 | # path for INSTALL within a source directory, because that will | |
36887 | # break other packages using the cache if that directory is | |
36888 | # removed, or if the path is relative. | |
e6cc62c6 | 36889 | INSTALL=$ac_install_sh |
fe0895cf VS |
36890 | fi |
36891 | fi | |
e6cc62c6 VS |
36892 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
36893 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
36894 | |
36895 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
36896 | # It thinks the first close brace ends the variable substitution. | |
36897 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
36898 | ||
e6cc62c6 | 36899 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
36900 | |
36901 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
36902 | ||
e6cc62c6 VS |
36903 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
36904 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
36905 | LN_S=$as_ln_s | |
36906 | if test "$LN_S" = "ln -s"; then | |
36907 | echo "$as_me:$LINENO: result: yes" >&5 | |
36908 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 36909 | else |
e6cc62c6 VS |
36910 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
36911 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
36912 | fi |
36913 | ||
36914 | ||
e6cc62c6 VS |
36915 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
36916 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
f95e4495 | 36917 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
36918 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
36919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 36920 | else |
e6cc62c6 | 36921 | cat >conftest.make <<\_ACEOF |
fe0895cf | 36922 | all: |
e6cc62c6 VS |
36923 | @echo 'ac_maketemp="$(MAKE)"' |
36924 | _ACEOF | |
fe0895cf | 36925 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 36926 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
36927 | if test -n "$ac_maketemp"; then |
36928 | eval ac_cv_prog_make_${ac_make}_set=yes | |
36929 | else | |
36930 | eval ac_cv_prog_make_${ac_make}_set=no | |
36931 | fi | |
e6cc62c6 | 36932 | rm -f conftest.make |
fe0895cf VS |
36933 | fi |
36934 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
36935 | echo "$as_me:$LINENO: result: yes" >&5 |
36936 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
36937 | SET_MAKE= |
36938 | else | |
e6cc62c6 VS |
36939 | echo "$as_me:$LINENO: result: no" >&5 |
36940 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36941 | SET_MAKE="MAKE=${MAKE-make}" |
36942 | fi | |
36943 | ||
e6cc62c6 VS |
36944 | |
36945 | ||
874d12cf VS |
36946 | if test -n "$ac_tool_prefix"; then |
36947 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
36948 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
36949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36951 | if test "${ac_cv_prog_AR+set}" = set; then | |
36952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36953 | else |
36954 | if test -n "$AR"; then | |
36955 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
36956 | else | |
e6cc62c6 VS |
36957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36958 | for as_dir in $PATH | |
36959 | do | |
36960 | IFS=$as_save_IFS | |
36961 | test -z "$as_dir" && as_dir=. | |
36962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 36964 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
36965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
36966 | break 2 | |
36967 | fi | |
36968 | done | |
36969 | done | |
36970 | ||
fe0895cf VS |
36971 | fi |
36972 | fi | |
e6cc62c6 | 36973 | AR=$ac_cv_prog_AR |
fe0895cf | 36974 | if test -n "$AR"; then |
e6cc62c6 VS |
36975 | echo "$as_me:$LINENO: result: $AR" >&5 |
36976 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 36977 | else |
e6cc62c6 VS |
36978 | echo "$as_me:$LINENO: result: no" >&5 |
36979 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36980 | fi |
36981 | ||
874d12cf VS |
36982 | fi |
36983 | if test -z "$ac_cv_prog_AR"; then | |
36984 | ac_ct_AR=$AR | |
36985 | # Extract the first word of "ar", so it can be a program name with args. | |
36986 | set dummy ar; ac_word=$2 | |
36987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36989 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
36990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36991 | else | |
36992 | if test -n "$ac_ct_AR"; then | |
36993 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
36994 | else | |
36995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36996 | for as_dir in $PATH | |
36997 | do | |
36998 | IFS=$as_save_IFS | |
36999 | test -z "$as_dir" && as_dir=. | |
37000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37002 | ac_cv_prog_ac_ct_AR="ar" | |
37003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37004 | break 2 | |
37005 | fi | |
37006 | done | |
37007 | done | |
37008 | ||
37009 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
37010 | fi | |
37011 | fi | |
37012 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
37013 | if test -n "$ac_ct_AR"; then | |
37014 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
37015 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
37016 | else | |
37017 | echo "$as_me:$LINENO: result: no" >&5 | |
37018 | echo "${ECHO_T}no" >&6 | |
37019 | fi | |
37020 | ||
37021 | AR=$ac_ct_AR | |
37022 | else | |
37023 | AR="$ac_cv_prog_AR" | |
37024 | fi | |
37025 | ||
37026 | if test -n "$ac_tool_prefix"; then | |
37027 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
37028 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
37029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37031 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
37032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37033 | else |
37034 | if test -n "$STRIP"; then | |
37035 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
37036 | else | |
e6cc62c6 VS |
37037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37038 | for as_dir in $PATH | |
37039 | do | |
37040 | IFS=$as_save_IFS | |
37041 | test -z "$as_dir" && as_dir=. | |
37042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 37044 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
37045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
37046 | break 2 | |
37047 | fi | |
37048 | done | |
37049 | done | |
37050 | ||
fe0895cf VS |
37051 | fi |
37052 | fi | |
e6cc62c6 | 37053 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 37054 | if test -n "$STRIP"; then |
e6cc62c6 VS |
37055 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
37056 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 37057 | else |
e6cc62c6 VS |
37058 | echo "$as_me:$LINENO: result: no" >&5 |
37059 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37060 | fi |
37061 | ||
874d12cf VS |
37062 | fi |
37063 | if test -z "$ac_cv_prog_STRIP"; then | |
37064 | ac_ct_STRIP=$STRIP | |
37065 | # Extract the first word of "strip", so it can be a program name with args. | |
37066 | set dummy strip; ac_word=$2 | |
37067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37069 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
37070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37071 | else | |
37072 | if test -n "$ac_ct_STRIP"; then | |
37073 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
37074 | else | |
37075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37076 | for as_dir in $PATH | |
37077 | do | |
37078 | IFS=$as_save_IFS | |
37079 | test -z "$as_dir" && as_dir=. | |
37080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37082 | ac_cv_prog_ac_ct_STRIP="strip" | |
37083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37084 | break 2 | |
37085 | fi | |
37086 | done | |
37087 | done | |
37088 | ||
37089 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
37090 | fi | |
37091 | fi | |
37092 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
37093 | if test -n "$ac_ct_STRIP"; then | |
37094 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
37095 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
37096 | else | |
37097 | echo "$as_me:$LINENO: result: no" >&5 | |
37098 | echo "${ECHO_T}no" >&6 | |
37099 | fi | |
37100 | ||
37101 | STRIP=$ac_ct_STRIP | |
37102 | else | |
37103 | STRIP="$ac_cv_prog_STRIP" | |
37104 | fi | |
37105 | ||
37106 | if test -n "$ac_tool_prefix"; then | |
37107 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
37108 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
37109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37111 | if test "${ac_cv_prog_NM+set}" = set; then | |
37112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37113 | else | |
37114 | if test -n "$NM"; then | |
37115 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
37116 | else | |
37117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37118 | for as_dir in $PATH | |
37119 | do | |
37120 | IFS=$as_save_IFS | |
37121 | test -z "$as_dir" && as_dir=. | |
37122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37124 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
37125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37126 | break 2 | |
37127 | fi | |
37128 | done | |
37129 | done | |
37130 | ||
37131 | fi | |
37132 | fi | |
37133 | NM=$ac_cv_prog_NM | |
37134 | if test -n "$NM"; then | |
37135 | echo "$as_me:$LINENO: result: $NM" >&5 | |
37136 | echo "${ECHO_T}$NM" >&6 | |
37137 | else | |
37138 | echo "$as_me:$LINENO: result: no" >&5 | |
37139 | echo "${ECHO_T}no" >&6 | |
37140 | fi | |
37141 | ||
37142 | fi | |
37143 | if test -z "$ac_cv_prog_NM"; then | |
37144 | ac_ct_NM=$NM | |
37145 | # Extract the first word of "nm", so it can be a program name with args. | |
37146 | set dummy nm; ac_word=$2 | |
37147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37149 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
37150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37151 | else | |
37152 | if test -n "$ac_ct_NM"; then | |
37153 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
37154 | else | |
37155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37156 | for as_dir in $PATH | |
37157 | do | |
37158 | IFS=$as_save_IFS | |
37159 | test -z "$as_dir" && as_dir=. | |
37160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37162 | ac_cv_prog_ac_ct_NM="nm" | |
37163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37164 | break 2 | |
37165 | fi | |
37166 | done | |
37167 | done | |
37168 | ||
37169 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
37170 | fi | |
37171 | fi | |
37172 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
37173 | if test -n "$ac_ct_NM"; then | |
37174 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
37175 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
37176 | else | |
37177 | echo "$as_me:$LINENO: result: no" >&5 | |
37178 | echo "${ECHO_T}no" >&6 | |
37179 | fi | |
37180 | ||
37181 | NM=$ac_ct_NM | |
37182 | else | |
37183 | NM="$ac_cv_prog_NM" | |
37184 | fi | |
37185 | ||
fe0895cf | 37186 | |
f95e4495 | 37187 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
37188 | *-hp-hpux* ) |
37189 | INSTALL_DIR="mkdir" | |
37190 | ;; | |
37191 | *) INSTALL_DIR="$INSTALL -d" | |
37192 | ;; | |
37193 | esac | |
e6cc62c6 | 37194 | |
fe0895cf | 37195 | |
6b9d41a5 | 37196 | LDFLAGS_GUI= |
f95e4495 | 37197 | case ${BAKEFILE_HOST} in |
6b9d41a5 VS |
37198 | *-*-cygwin* | *-*-mingw32* ) |
37199 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
37200 | esac | |
37201 | ||
37202 | ||
fe0895cf | 37203 | fi |
e6cc62c6 VS |
37204 | |
37205 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
37206 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 37207 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 37208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 37209 | else |
e6cc62c6 | 37210 | |
fe0895cf VS |
37211 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
37212 | egrep -s GNU > /dev/null); then | |
37213 | bakefile_cv_prog_makeisgnu="yes" | |
37214 | else | |
37215 | bakefile_cv_prog_makeisgnu="no" | |
37216 | fi | |
fe0895cf | 37217 | |
e6cc62c6 | 37218 | fi |
49b0a3aa VS |
37219 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
37220 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
37221 | |
37222 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
37223 | IF_GNU_MAKE="" | |
37224 | else | |
37225 | IF_GNU_MAKE="#" | |
37226 | fi | |
fe0895cf | 37227 | |
e6cc62c6 VS |
37228 | |
37229 | ||
fe0895cf VS |
37230 | PLATFORM_UNIX=0 |
37231 | PLATFORM_WIN32=0 | |
37232 | PLATFORM_MSDOS=0 | |
37233 | PLATFORM_MAC=0 | |
37234 | PLATFORM_MACOSX=0 | |
96c1699d | 37235 | PLATFORM_OS2=0 |
e6cc62c6 | 37236 | |
f95e4495 VS |
37237 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then |
37238 | case "${BAKEFILE_HOST}" in | |
37239 | *-*-cygwin* | *-*-mingw32* ) | |
37240 | PLATFORM_WIN32=1 | |
37241 | ;; | |
37242 | *-pc-msdosdjgpp ) | |
37243 | PLATFORM_MSDOS=1 | |
37244 | ;; | |
37245 | *-pc-os2_emx | *-pc-os2-emx ) | |
37246 | PLATFORM_OS2=1 | |
37247 | ;; | |
37248 | powerpc-*-darwin* ) | |
37249 | PLATFORM_MAC=1 | |
37250 | PLATFORM_MACOSX=1 | |
37251 | ;; | |
37252 | * ) | |
37253 | PLATFORM_UNIX=1 | |
37254 | ;; | |
37255 | esac | |
37256 | else | |
37257 | case "$BAKEFILE_FORCE_PLATFORM" in | |
37258 | win32 ) | |
37259 | PLATFORM_WIN32=1 | |
37260 | ;; | |
37261 | msdos ) | |
37262 | PLATFORM_MSDOS=1 | |
37263 | ;; | |
37264 | os2 ) | |
37265 | PLATFORM_OS2=1 | |
37266 | ;; | |
37267 | darwin ) | |
37268 | PLATFORM_MAC=1 | |
37269 | PLATFORM_MACOSX=1 | |
37270 | ;; | |
37271 | unix ) | |
37272 | PLATFORM_UNIX=1 | |
37273 | ;; | |
37274 | * ) | |
37275 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
37276 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
37277 | { (exit 1); exit 1; }; } | |
37278 | ;; | |
37279 | esac | |
37280 | fi | |
fe0895cf | 37281 | |
fe0895cf | 37282 | |
e6cc62c6 VS |
37283 | |
37284 | ||
37285 | ||
37286 | ||
37287 | ||
37288 | ||
96c1699d | 37289 | |
fe0895cf | 37290 | SO_SUFFIX="so" |
131f235d | 37291 | SO_SUFFIX_MODULE="so" |
fe0895cf | 37292 | EXEEXT="" |
4b1f6360 | 37293 | LIBPREFIX=lib |
fe0895cf | 37294 | DLLPREFIX=lib |
131f235d | 37295 | DLLPREFIX_MODULE= |
e6cc62c6 | 37296 | |
f95e4495 | 37297 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
37298 | *-hp-hpux* ) |
37299 | SO_SUFFIX="sl" | |
131f235d | 37300 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
37301 | ;; |
37302 | *-*-aix* ) | |
37303 | SO_SUFFIX="a" | |
131f235d | 37304 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
37305 | ;; |
37306 | *-*-cygwin* | *-*-mingw32* ) | |
37307 | SO_SUFFIX="dll" | |
131f235d | 37308 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
37309 | EXEEXT=".exe" |
37310 | DLLPREFIX="" | |
37311 | ;; | |
4b1f6360 VS |
37312 | *-pc-msdosdjgpp ) |
37313 | EXEEXT=".exe" | |
37314 | DLLPREFIX="" | |
37315 | ;; | |
37316 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
37317 | EXEEXT=".exe" |
37318 | DLLPREFIX="" | |
4b1f6360 | 37319 | LIBPREFIX="" |
fe0895cf VS |
37320 | ;; |
37321 | powerpc-*-darwin* ) | |
37322 | SO_SUFFIX="dylib" | |
131f235d | 37323 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
37324 | ;; |
37325 | esac | |
37326 | ||
fe0895cf | 37327 | |
e6cc62c6 VS |
37328 | |
37329 | ||
37330 | ||
37331 | ||
131f235d VS |
37332 | |
37333 | ||
4b1f6360 | 37334 | |
fe0895cf VS |
37335 | SHARED_LD_CC="\$(CC) -shared -o" |
37336 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
37337 | ||
37338 | if test "x$GCC" = "xyes"; then | |
37339 | PIC_FLAG="-fPIC" | |
37340 | fi | |
37341 | ||
f95e4495 | 37342 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
37343 | *-hp-hpux* ) |
37344 | if test "x$GCC" = "xyes"; then | |
37345 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
37346 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
37347 | else | |
37348 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
37349 | ||
37350 | SHARED_LD_CC="${CC} -b -o" | |
37351 | SHARED_LD_CXX="${CXX} -b -o" | |
37352 | PIC_FLAG="+Z" | |
37353 | fi | |
37354 | ;; | |
37355 | ||
37356 | *-*-linux* ) | |
37357 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
37358 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
37359 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
37360 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
37361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 37362 | else |
fe0895cf | 37363 | |
e6cc62c6 | 37364 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
37365 | /* confdefs.h. */ |
37366 | _ACEOF | |
37367 | cat confdefs.h >>conftest.$ac_ext | |
37368 | cat >>conftest.$ac_ext <<_ACEOF | |
37369 | /* end confdefs.h. */ | |
37370 | ||
37371 | int | |
37372 | main () | |
37373 | { | |
fe0895cf VS |
37374 | |
37375 | #ifndef __INTEL_COMPILER | |
37376 | #error Not icc | |
37377 | #endif | |
e6cc62c6 VS |
37378 | |
37379 | ; | |
37380 | return 0; | |
37381 | } | |
37382 | _ACEOF | |
37383 | rm -f conftest.$ac_objext | |
37384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 37385 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 37386 | ac_status=$? |
f95e4495 VS |
37387 | grep -v '^ *+' conftest.er1 >conftest.err |
37388 | rm -f conftest.er1 | |
37389 | cat conftest.err >&5 | |
e6cc62c6 VS |
37390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37391 | (exit $ac_status); } && | |
f95e4495 VS |
37392 | { ac_try='test -z "$ac_c_werror_flag" |
37393 | || test ! -s conftest.err' | |
37394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37395 | (eval $ac_try) 2>&5 | |
37396 | ac_status=$? | |
37397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37398 | (exit $ac_status); }; } && | |
37399 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
37400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37401 | (eval $ac_try) 2>&5 | |
37402 | ac_status=$? | |
37403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37404 | (exit $ac_status); }; }; then | |
fe0895cf VS |
37405 | bakefile_cv_prog_icc=yes |
37406 | else | |
e6cc62c6 VS |
37407 | echo "$as_me: failed program was:" >&5 |
37408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37409 | ||
37410 | bakefile_cv_prog_icc=no | |
37411 | ||
fe0895cf | 37412 | fi |
f95e4495 | 37413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 37414 | |
e6cc62c6 VS |
37415 | fi |
37416 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
37417 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
37418 | if test "$bakefile_cv_prog_icc" = "yes"; then |
37419 | PIC_FLAG="-KPIC" | |
37420 | fi | |
37421 | fi | |
37422 | ;; | |
37423 | ||
37424 | *-*-solaris2* ) | |
37425 | if test "x$GCC" != xyes ; then | |
37426 | SHARED_LD_CC="${CC} -G -o" | |
37427 | SHARED_LD_CXX="${CXX} -G -o" | |
37428 | PIC_FLAG="-KPIC" | |
37429 | fi | |
37430 | ;; | |
37431 | ||
37432 | *-*-darwin* ) | |
37433 | CFLAGS="$CFLAGS -fno-common" | |
37434 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
37435 | |
37436 | ||
2a879853 | 37437 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
37438 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
37439 | if test "${wx_cv_gcc31+set}" = set; then | |
37440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37441 | else | |
37442 | ||
2a879853 | 37443 | cat >conftest.$ac_ext <<_ACEOF |
43948499 RD |
37444 | /* confdefs.h. */ |
37445 | _ACEOF | |
37446 | cat confdefs.h >>conftest.$ac_ext | |
37447 | cat >>conftest.$ac_ext <<_ACEOF | |
37448 | /* end confdefs.h. */ | |
37449 | ||
37450 | int | |
37451 | main () | |
37452 | { | |
37453 | ||
2a879853 VS |
37454 | #if (__GNUC__ < 3) || \ |
37455 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
37456 | #error old gcc | |
37457 | #endif | |
43948499 RD |
37458 | |
37459 | ; | |
37460 | return 0; | |
37461 | } | |
37462 | _ACEOF | |
37463 | rm -f conftest.$ac_objext | |
37464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 37465 | (eval $ac_compile) 2>conftest.er1 |
43948499 | 37466 | ac_status=$? |
f95e4495 VS |
37467 | grep -v '^ *+' conftest.er1 >conftest.err |
37468 | rm -f conftest.er1 | |
37469 | cat conftest.err >&5 | |
43948499 RD |
37470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37471 | (exit $ac_status); } && | |
f95e4495 VS |
37472 | { ac_try='test -z "$ac_c_werror_flag" |
37473 | || test ! -s conftest.err' | |
37474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37475 | (eval $ac_try) 2>&5 | |
37476 | ac_status=$? | |
37477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37478 | (exit $ac_status); }; } && | |
37479 | { ac_try='test -s conftest.$ac_objext' | |
43948499 RD |
37480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37481 | (eval $ac_try) 2>&5 | |
37482 | ac_status=$? | |
37483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37484 | (exit $ac_status); }; }; then | |
37485 | ||
2a879853 | 37486 | wx_cv_gcc31=yes |
43948499 RD |
37487 | |
37488 | else | |
37489 | echo "$as_me: failed program was:" >&5 | |
37490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37491 | ||
37492 | ||
2a879853 | 37493 | wx_cv_gcc31=no |
43948499 RD |
37494 | |
37495 | ||
37496 | fi | |
f95e4495 | 37497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
37498 | |
37499 | fi | |
37500 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
37501 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 37502 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 37503 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
37504 | #!/bin/sh |
37505 | #----------------------------------------------------------------------------- | |
37506 | #-- Name: distrib/mac/shared-ld-sh | |
37507 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
37508 | #-- Author: Gilles Depeyrot | |
37509 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
37510 | #-- Licence: any use permitted | |
37511 | #----------------------------------------------------------------------------- | |
37512 | ||
37513 | verbose=0 | |
37514 | args="" | |
37515 | objects="" | |
131f235d | 37516 | linking_flag="-dynamiclib" |
fe0895cf VS |
37517 | |
37518 | while test \${#} -gt 0; do | |
37519 | case \${1} in | |
37520 | ||
37521 | -v) | |
37522 | verbose=1 | |
37523 | ;; | |
37524 | ||
37525 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
37526 | # collect these options and values | |
37527 | args="\${args} \${1} \${2}" | |
37528 | shift | |
37529 | ;; | |
37530 | ||
74500461 | 37531 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
37532 | # collect these options |
37533 | args="\${args} \${1}" | |
37534 | ;; | |
37535 | ||
131f235d VS |
37536 | -dynamiclib|-bundle) |
37537 | linking_flag="\${1}" | |
fe0895cf VS |
37538 | ;; |
37539 | ||
37540 | -*) | |
37541 | echo "shared-ld: unhandled option '\${1}'" | |
37542 | exit 1 | |
37543 | ;; | |
37544 | ||
4d264332 | 37545 | *.o | *.a | *.dylib) |
fe0895cf VS |
37546 | # collect object files |
37547 | objects="\${objects} \${1}" | |
37548 | ;; | |
37549 | ||
37550 | *) | |
37551 | echo "shared-ld: unhandled argument '\${1}'" | |
37552 | exit 1 | |
37553 | ;; | |
37554 | ||
37555 | esac | |
37556 | shift | |
37557 | done | |
37558 | ||
37559 | # | |
37560 | # Link one module containing all the others | |
37561 | # | |
37562 | if test \${verbose} = 1; then | |
37563 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
37564 | fi | |
37565 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
37566 | status=\$? | |
37567 | if test \${status} != 0; then | |
37568 | exit \${status} | |
37569 | fi | |
37570 | ||
37571 | # | |
37572 | # Link the shared library from the single module created | |
37573 | # | |
37574 | if test \${verbose} = 1; then | |
2a879853 | 37575 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 37576 | fi |
131f235d | 37577 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
37578 | status=\$? |
37579 | if test \${status} != 0; then | |
37580 | exit \${status} | |
37581 | fi | |
37582 | ||
37583 | # | |
37584 | # Remove intermediate module | |
37585 | # | |
37586 | rm -f master.\$\$.o | |
37587 | ||
37588 | exit 0 | |
37589 | EOF | |
43948499 | 37590 | chmod +x shared-ld-sh |
fe0895cf | 37591 | |
7f523214 VS |
37592 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
37593 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
37594 | SHARED_LD_CXX="$SHARED_LD_CC" |
37595 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
37596 | else | |
7f523214 VS |
37597 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
37598 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
37599 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
37600 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
37601 | fi |
37602 | ||
fe0895cf | 37603 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 37604 | ;; |
fe0895cf VS |
37605 | |
37606 | *-*-aix* ) | |
37607 | if test "x$GCC" != "xyes"; then | |
37608 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
37609 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
37610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37612 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
37613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37614 | else |
37615 | if test -n "$AIX_CXX_LD"; then | |
37616 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
37617 | else | |
e6cc62c6 VS |
37618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37619 | for as_dir in $PATH | |
37620 | do | |
37621 | IFS=$as_save_IFS | |
37622 | test -z "$as_dir" && as_dir=. | |
37623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37625 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
37626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37627 | break 2 | |
37628 | fi | |
37629 | done | |
37630 | done | |
37631 | ||
fe0895cf VS |
37632 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
37633 | fi | |
37634 | fi | |
e6cc62c6 | 37635 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 37636 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
37637 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
37638 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 37639 | else |
e6cc62c6 VS |
37640 | echo "$as_me:$LINENO: result: no" >&5 |
37641 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37642 | fi |
37643 | ||
37644 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
37645 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
37646 | fi | |
37647 | ;; | |
37648 | ||
37649 | *-*-beos* ) | |
37650 | SHARED_LD_CC="${LD} -shared -o" | |
37651 | SHARED_LD_CXX="${LD} -shared -o" | |
37652 | ;; | |
37653 | ||
37654 | *-*-irix* ) | |
37655 | if test "x$GCC" != "xyes"; then | |
37656 | PIC_FLAG="-KPIC" | |
37657 | fi | |
37658 | ;; | |
e6cc62c6 | 37659 | |
fe0895cf VS |
37660 | *-*-cygwin* | *-*-mingw32* ) |
37661 | PIC_FLAG="" | |
37662 | ;; | |
e6cc62c6 | 37663 | |
fe0895cf VS |
37664 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
37665 | *-*-sunos4* | \ | |
37666 | *-*-osf* | \ | |
37667 | *-*-dgux5* | \ | |
4b1f6360 | 37668 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
37669 | *-*-sysv5* ) |
37670 | ;; | |
37671 | ||
37672 | *) | |
f95e4495 VS |
37673 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
37674 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
e6cc62c6 | 37675 | { (exit 1); exit 1; }; } |
fe0895cf VS |
37676 | esac |
37677 | ||
131f235d VS |
37678 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
37679 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
37680 | fi | |
37681 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 37682 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
37683 | fi |
37684 | ||
37685 | ||
37686 | ||
fe0895cf | 37687 | |
e6cc62c6 VS |
37688 | |
37689 | ||
37690 | ||
37691 | ||
fe0895cf VS |
37692 | USE_SOVERSION=0 |
37693 | USE_SOVERLINUX=0 | |
37694 | USE_SOVERSOLARIS=0 | |
37695 | USE_SOSYMLINKS=0 | |
37696 | USE_MACVERSION=0 | |
37697 | SONAME_FLAG= | |
37698 | ||
f95e4495 | 37699 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
37700 | *-*-linux* ) |
37701 | SONAME_FLAG="-Wl,-soname," | |
37702 | USE_SOVERSION=1 | |
37703 | USE_SOVERLINUX=1 | |
37704 | USE_SOSYMLINKS=1 | |
37705 | ;; | |
37706 | ||
37707 | *-*-solaris2* ) | |
37708 | SONAME_FLAG="-h " | |
37709 | USE_SOVERSION=1 | |
37710 | USE_SOVERSOLARIS=1 | |
37711 | USE_SOSYMLINKS=1 | |
37712 | ;; | |
37713 | ||
37714 | *-*-darwin* ) | |
37715 | USE_MACVERSION=1 | |
37716 | USE_SOVERSION=1 | |
37717 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 37718 | ;; |
fe0895cf VS |
37719 | esac |
37720 | ||
fe0895cf | 37721 | |
e6cc62c6 VS |
37722 | |
37723 | ||
37724 | ||
37725 | ||
37726 | ||
37727 | ||
37728 | ||
49b0a3aa VS |
37729 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
37730 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
37731 | DEPS_TRACKING=0 | |
37732 | ||
fe0895cf | 37733 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
37734 | DEPSMODE=gcc |
37735 | DEPS_TRACKING=1 | |
f95e4495 | 37736 | case "${BAKEFILE_HOST}" in |
3e5c3c83 VS |
37737 | powerpc-*-darwin* ) |
37738 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
37739 | ;; | |
37740 | * ) | |
37741 | DEPSFLAG_GCC="-MMD" | |
37742 | ;; | |
37743 | esac | |
49b0a3aa VS |
37744 | echo "$as_me:$LINENO: result: gcc" >&5 |
37745 | echo "${ECHO_T}gcc" >&6 | |
37746 | else | |
37747 | echo "$as_me:$LINENO: result: none" >&5 | |
37748 | echo "${ECHO_T}none" >&6 | |
37749 | fi | |
37750 | ||
37751 | if test $DEPS_TRACKING = 1 ; then | |
37752 | cat <<EOF >bk-deps | |
37753 | #!/bin/sh | |
37754 | ||
45842500 VS |
37755 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
37756 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
37757 | # |
37758 | # Permission is given to use this file in any way. | |
37759 | ||
37760 | DEPSMODE=$DEPSMODE | |
37761 | DEPSDIR=.deps | |
3e5c3c83 | 37762 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
37763 | |
37764 | mkdir -p \$DEPSDIR | |
37765 | ||
37766 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 37767 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
37768 | status=\${?} |
37769 | if test \${status} != 0 ; then | |
37770 | exit \${status} | |
37771 | fi | |
37772 | # move created file to the location we want it in: | |
37773 | while test \${#} -gt 0; do | |
37774 | case "\${1}" in | |
37775 | -o ) | |
37776 | shift | |
37777 | objfile=\${1} | |
37778 | ;; | |
37779 | -* ) | |
37780 | ;; | |
37781 | * ) | |
37782 | srcfile=\${1} | |
37783 | ;; | |
37784 | esac | |
37785 | shift | |
37786 | done | |
37787 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
37788 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
37789 | if test -f \$depfile ; then |
37790 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
37791 | rm -f \$depfile | |
37792 | else | |
37793 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
37794 | if test -f \$depfile ; then | |
9d0be83a | 37795 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
37796 | rm -f \$depfile |
37797 | fi | |
37798 | fi | |
49b0a3aa VS |
37799 | exit 0 |
37800 | else | |
37801 | \${*} | |
37802 | exit \${?} | |
37803 | fi | |
37804 | EOF | |
37805 | chmod +x bk-deps | |
fe0895cf | 37806 | fi |
fe0895cf | 37807 | |
e6cc62c6 VS |
37808 | |
37809 | ||
37810 | ||
fe0895cf VS |
37811 | RESCOMP= |
37812 | SETFILE= | |
37813 | ||
f95e4495 | 37814 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
37815 | *-*-cygwin* | *-*-mingw32* ) |
37816 | if test "$build" != "$host" ; then | |
37817 | RESCOMP=$host_alias-windres | |
37818 | else | |
37819 | # Extract the first word of "windres", so it can be a program name with args. | |
37820 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
37821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37823 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37825 | else |
37826 | if test -n "$RESCOMP"; then | |
37827 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37828 | else | |
e6cc62c6 VS |
37829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37830 | for as_dir in $PATH | |
37831 | do | |
37832 | IFS=$as_save_IFS | |
37833 | test -z "$as_dir" && as_dir=. | |
37834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37836 | ac_cv_prog_RESCOMP="windres" | |
37837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37838 | break 2 | |
37839 | fi | |
37840 | done | |
37841 | done | |
37842 | ||
fe0895cf VS |
37843 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
37844 | fi | |
37845 | fi | |
e6cc62c6 | 37846 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 37847 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
37848 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
37849 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 37850 | else |
e6cc62c6 VS |
37851 | echo "$as_me:$LINENO: result: no" >&5 |
37852 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37853 | fi |
37854 | ||
37855 | fi | |
37856 | ;; | |
e6cc62c6 | 37857 | |
fe0895cf VS |
37858 | *-*-darwin* ) |
37859 | # Extract the first word of "Rez", so it can be a program name with args. | |
37860 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
37861 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37863 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37865 | else |
37866 | if test -n "$RESCOMP"; then | |
37867 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37868 | else | |
e6cc62c6 VS |
37869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37870 | for as_dir in $PATH | |
37871 | do | |
37872 | IFS=$as_save_IFS | |
37873 | test -z "$as_dir" && as_dir=. | |
37874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37875 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37876 | ac_cv_prog_RESCOMP="Rez" | |
37877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37878 | break 2 | |
37879 | fi | |
37880 | done | |
37881 | done | |
37882 | ||
fe0895cf VS |
37883 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
37884 | fi | |
37885 | fi | |
e6cc62c6 | 37886 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 37887 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
37888 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
37889 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 37890 | else |
e6cc62c6 VS |
37891 | echo "$as_me:$LINENO: result: no" >&5 |
37892 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37893 | fi |
37894 | ||
37895 | # Extract the first word of "SetFile", so it can be a program name with args. | |
37896 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
37897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37899 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
37900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37901 | else |
37902 | if test -n "$SETFILE"; then | |
37903 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
37904 | else | |
e6cc62c6 VS |
37905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37906 | for as_dir in $PATH | |
37907 | do | |
37908 | IFS=$as_save_IFS | |
37909 | test -z "$as_dir" && as_dir=. | |
37910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37912 | ac_cv_prog_SETFILE="SetFile" | |
37913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37914 | break 2 | |
37915 | fi | |
37916 | done | |
37917 | done | |
37918 | ||
fe0895cf VS |
37919 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
37920 | fi | |
37921 | fi | |
e6cc62c6 | 37922 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 37923 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
37924 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
37925 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 37926 | else |
e6cc62c6 VS |
37927 | echo "$as_me:$LINENO: result: no" >&5 |
37928 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37929 | fi |
37930 | ||
37931 | ;; | |
37932 | esac | |
37933 | ||
fe0895cf VS |
37934 | |
37935 | ||
e6cc62c6 VS |
37936 | |
37937 | ||
37938 | ||
37939 | ||
45842500 | 37940 | |
45842500 VS |
37941 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
37942 | if test "${enable_precomp_headers+set}" = set; then | |
37943 | enableval="$enable_precomp_headers" | |
37944 | bk_use_pch="$enableval" | |
37945 | fi; | |
37946 | ||
37947 | GCC_PCH=0 | |
37948 | ||
37949 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
37950 | if test "x$GCC" = "xyes"; then | |
37951 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
37952 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
37953 | cat >conftest.$ac_ext <<_ACEOF | |
45842500 VS |
37954 | /* confdefs.h. */ |
37955 | _ACEOF | |
37956 | cat confdefs.h >>conftest.$ac_ext | |
37957 | cat >>conftest.$ac_ext <<_ACEOF | |
37958 | /* end confdefs.h. */ | |
37959 | ||
37960 | int | |
37961 | main () | |
37962 | { | |
37963 | ||
8bcf2d20 VS |
37964 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
37965 | #error "no pch support" | |
37966 | #endif | |
37967 | #if (__GNUC__ < 3) | |
37968 | #error "no pch support" | |
37969 | #endif | |
37970 | #if (__GNUC__ == 3) && \ | |
37971 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
37972 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
37973 | #error "no pch support" | |
45842500 VS |
37974 | #endif |
37975 | ||
37976 | ; | |
37977 | return 0; | |
37978 | } | |
37979 | _ACEOF | |
37980 | rm -f conftest.$ac_objext | |
37981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
f95e4495 | 37982 | (eval $ac_compile) 2>conftest.er1 |
45842500 | 37983 | ac_status=$? |
f95e4495 VS |
37984 | grep -v '^ *+' conftest.er1 >conftest.err |
37985 | rm -f conftest.er1 | |
37986 | cat conftest.err >&5 | |
45842500 VS |
37987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37988 | (exit $ac_status); } && | |
f95e4495 VS |
37989 | { ac_try='test -z "$ac_c_werror_flag" |
37990 | || test ! -s conftest.err' | |
37991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37992 | (eval $ac_try) 2>&5 | |
37993 | ac_status=$? | |
37994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37995 | (exit $ac_status); }; } && | |
37996 | { ac_try='test -s conftest.$ac_objext' | |
45842500 VS |
37997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37998 | (eval $ac_try) 2>&5 | |
37999 | ac_status=$? | |
38000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38001 | (exit $ac_status); }; }; then | |
38002 | ||
38003 | echo "$as_me:$LINENO: result: yes" >&5 | |
38004 | echo "${ECHO_T}yes" >&6 | |
38005 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
38006 | GCC_PCH=1 | |
38007 | ||
38008 | else | |
38009 | echo "$as_me: failed program was:" >&5 | |
38010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38011 | ||
38012 | ||
38013 | echo "$as_me:$LINENO: result: no" >&5 | |
38014 | echo "${ECHO_T}no" >&6 | |
38015 | ||
38016 | fi | |
f95e4495 | 38017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
38018 | if test $GCC_PCH = 1 ; then |
38019 | cat <<EOF >bk-make-pch | |
38020 | #!/bin/sh | |
38021 | ||
38022 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
38023 | # script. It is used to generated precompiled headers. | |
38024 | # | |
38025 | # Permission is given to use this file in any way. | |
38026 | ||
38027 | outfile="\${1}" | |
38028 | header="\${2}" | |
38029 | shift | |
38030 | shift | |
38031 | ||
38032 | compiler= | |
38033 | headerfile= | |
38034 | while test \${#} -gt 0; do | |
38035 | case "\${1}" in | |
38036 | -I* ) | |
38037 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
38038 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
38039 | headerfile="\${incdir}/\${header}" | |
38040 | fi | |
38041 | ;; | |
38042 | esac | |
38043 | compiler="\${compiler} \${1}" | |
38044 | shift | |
38045 | done | |
38046 | ||
38047 | if test "x\${headerfile}" = "x" ; then | |
38048 | echo "error: can't find header \${header} in include paths" >2 | |
38049 | else | |
38050 | if test -f \${outfile} ; then | |
38051 | rm -f \${outfile} | |
38052 | else | |
38053 | mkdir -p \`dirname \${outfile}\` | |
38054 | fi | |
38055 | depsfile=".deps/\`basename \${outfile}\`.d" | |
38056 | mkdir -p .deps | |
38057 | # can do this because gcc is >= 3.4: | |
38058 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
38059 | exit \${?} | |
38060 | fi | |
38061 | EOF | |
38062 | chmod +x bk-make-pch | |
38063 | fi | |
38064 | fi | |
38065 | fi | |
38066 | ||
38067 | ||
38068 | ||
38069 | ||
38070 | ||
d78c94f2 | 38071 | COND_BUILD_DEBUG="#" |
6f628073 | 38072 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 38073 | COND_BUILD_DEBUG="" |
6f628073 VS |
38074 | fi |
38075 | ||
6c67131a VS |
38076 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
38077 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
38078 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
38079 | fi | |
38080 | ||
38081 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
38082 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
38083 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
38084 | fi | |
38085 | ||
d78c94f2 | 38086 | COND_BUILD_RELEASE="#" |
6f628073 | 38087 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 38088 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
38089 | fi |
38090 | ||
6c67131a VS |
38091 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
38092 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
38093 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
38094 | fi | |
38095 | ||
38096 | COND_DEBUG_FLAG_1="#" | |
38097 | if test "x$DEBUG_FLAG" = "x1" ; then | |
38098 | COND_DEBUG_FLAG_1="" | |
38099 | fi | |
38100 | ||
38101 | COND_DEBUG_INFO_0="#" | |
38102 | if test "x$DEBUG_INFO" = "x0" ; then | |
38103 | COND_DEBUG_INFO_0="" | |
38104 | fi | |
38105 | ||
38106 | COND_DEBUG_INFO_1="#" | |
38107 | if test "x$DEBUG_INFO" = "x1" ; then | |
38108 | COND_DEBUG_INFO_1="" | |
38109 | fi | |
38110 | ||
f95cd8fa VS |
38111 | COND_DEPS_TRACKING_0="#" |
38112 | if test "x$DEPS_TRACKING" = "x0" ; then | |
38113 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
38114 | fi |
38115 | ||
8ee2dd05 VS |
38116 | COND_DEPS_TRACKING_1="#" |
38117 | if test "x$DEPS_TRACKING" = "x1" ; then | |
38118 | COND_DEPS_TRACKING_1="" | |
38119 | fi | |
38120 | ||
45842500 VS |
38121 | COND_GCC_PCH_1="#" |
38122 | if test "x$GCC_PCH" = "x1" ; then | |
38123 | COND_GCC_PCH_1="" | |
38124 | fi | |
38125 | ||
6f628073 VS |
38126 | COND_MONOLITHIC_0="#" |
38127 | if test "x$MONOLITHIC" = "x0" ; then | |
38128 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
38129 | fi |
38130 | ||
6f628073 VS |
38131 | COND_MONOLITHIC_0_SHARED_0="#" |
38132 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
38133 | COND_MONOLITHIC_0_SHARED_0="" | |
38134 | fi | |
38135 | ||
38136 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
38137 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
38138 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 38139 | fi |
e6cc62c6 | 38140 | |
8772a1a7 VS |
38141 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
38142 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38143 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
38144 | fi | |
38145 | ||
250700e4 RD |
38146 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
38147 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
38148 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
38149 | fi | |
38150 | ||
eb69fda5 VS |
38151 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
38152 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
38153 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
38154 | fi | |
38155 | ||
8ee2dd05 VS |
38156 | COND_MONOLITHIC_0_SHARED_1="#" |
38157 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
38158 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 38159 | fi |
e6cc62c6 | 38160 | |
6f628073 VS |
38161 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
38162 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38163 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
38164 | fi | |
38165 | ||
8772a1a7 VS |
38166 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
38167 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38168 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
38169 | fi | |
38170 | ||
250700e4 RD |
38171 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
38172 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
38173 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
38174 | fi | |
38175 | ||
eb69fda5 VS |
38176 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
38177 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38178 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
38179 | fi | |
38180 | ||
f95e4495 VS |
38181 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
38182 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
38183 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
38184 | fi | |
38185 | ||
3af038c0 VS |
38186 | COND_MONOLITHIC_1="#" |
38187 | if test "x$MONOLITHIC" = "x1" ; then | |
38188 | COND_MONOLITHIC_1="" | |
38189 | fi | |
38190 | ||
6f628073 VS |
38191 | COND_MONOLITHIC_1_SHARED_0="#" |
38192 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
38193 | COND_MONOLITHIC_1_SHARED_0="" | |
38194 | fi | |
38195 | ||
38196 | COND_MONOLITHIC_1_SHARED_1="#" | |
38197 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
38198 | COND_MONOLITHIC_1_SHARED_1="" | |
38199 | fi | |
38200 | ||
3af038c0 VS |
38201 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
38202 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38203 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
38204 | fi | |
38205 | ||
38206 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
38207 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38208 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
38209 | fi | |
38210 | ||
6f628073 VS |
38211 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
38212 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
38213 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
38214 | fi | |
38215 | ||
3af038c0 VS |
38216 | COND_PLATFORM_MACOSX_1="#" |
38217 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
38218 | COND_PLATFORM_MACOSX_1="" | |
38219 | fi | |
38220 | ||
250700e4 RD |
38221 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
38222 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
38223 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
38224 | fi | |
38225 | ||
38226 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
38227 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
38228 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
38229 | fi | |
38230 | ||
38231 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
38232 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
38233 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
38234 | fi | |
38235 | ||
3527f29c VS |
38236 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
38237 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38238 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
38239 | fi | |
38240 | ||
8ee2dd05 VS |
38241 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
38242 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
38243 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
38244 | fi | |
38245 | ||
45842500 VS |
38246 | COND_PLATFORM_MAC_1="#" |
38247 | if test "x$PLATFORM_MAC" = "x1" ; then | |
38248 | COND_PLATFORM_MAC_1="" | |
38249 | fi | |
38250 | ||
3d8c1de0 VS |
38251 | COND_PLATFORM_OS2_1="#" |
38252 | if test "x$PLATFORM_OS2" = "x1" ; then | |
38253 | COND_PLATFORM_OS2_1="" | |
38254 | fi | |
38255 | ||
8772a1a7 VS |
38256 | COND_PLATFORM_UNIX_0="#" |
38257 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
38258 | COND_PLATFORM_UNIX_0="" | |
38259 | fi | |
38260 | ||
3af038c0 VS |
38261 | COND_PLATFORM_UNIX_1="#" |
38262 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
38263 | COND_PLATFORM_UNIX_1="" | |
38264 | fi | |
38265 | ||
3527f29c VS |
38266 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
38267 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38268 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
38269 | fi | |
38270 | ||
3af038c0 VS |
38271 | COND_PLATFORM_WIN32_0="#" |
38272 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
38273 | COND_PLATFORM_WIN32_0="" | |
38274 | fi | |
38275 | ||
38276 | COND_PLATFORM_WIN32_1="#" | |
38277 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
38278 | COND_PLATFORM_WIN32_1="" | |
38279 | fi | |
38280 | ||
45842500 VS |
38281 | COND_SHARED_0="#" |
38282 | if test "x$SHARED" = "x0" ; then | |
38283 | COND_SHARED_0="" | |
38284 | fi | |
38285 | ||
250700e4 RD |
38286 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
38287 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38288 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
38289 | fi | |
38290 | ||
52a5a009 VS |
38291 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
38292 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38293 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38294 | fi | |
38295 | ||
38296 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38297 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38298 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38299 | fi | |
38300 | ||
38301 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38302 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38303 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38304 | fi | |
38305 | ||
38306 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
38307 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38308 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
38309 | fi | |
38310 | ||
38311 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
38312 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38313 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
38314 | fi | |
38315 | ||
38316 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
38317 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38318 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
38319 | fi | |
38320 | ||
38321 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
38322 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38323 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
38324 | fi | |
38325 | ||
45842500 VS |
38326 | COND_SHARED_1="#" |
38327 | if test "x$SHARED" = "x1" ; then | |
38328 | COND_SHARED_1="" | |
38329 | fi | |
38330 | ||
250700e4 RD |
38331 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
38332 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38333 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
38334 | fi | |
38335 | ||
6f628073 VS |
38336 | COND_TOOLKIT_COCOA="#" |
38337 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
38338 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
38339 | fi |
38340 | ||
6f628073 VS |
38341 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
38342 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38343 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38344 | fi |
38345 | ||
6f628073 VS |
38346 | COND_TOOLKIT_GTK="#" |
38347 | if test "x$TOOLKIT" = "xGTK" ; then | |
38348 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
38349 | fi |
38350 | ||
6f628073 VS |
38351 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
38352 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
38353 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
38354 | fi |
38355 | ||
6f628073 VS |
38356 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
38357 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38358 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38359 | fi |
38360 | ||
3af038c0 VS |
38361 | COND_TOOLKIT_MAC="#" |
38362 | if test "x$TOOLKIT" = "xMAC" ; then | |
38363 | COND_TOOLKIT_MAC="" | |
38364 | fi | |
38365 | ||
8772a1a7 VS |
38366 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
38367 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
38368 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
38369 | fi | |
38370 | ||
6f628073 VS |
38371 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
38372 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38373 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38374 | fi |
38375 | ||
6f628073 VS |
38376 | COND_TOOLKIT_MGL="#" |
38377 | if test "x$TOOLKIT" = "xMGL" ; then | |
38378 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
38379 | fi |
38380 | ||
6f628073 VS |
38381 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
38382 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
38383 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
38384 | fi |
38385 | ||
6f628073 VS |
38386 | COND_TOOLKIT_MOTIF="#" |
38387 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
38388 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
38389 | fi |
38390 | ||
6f628073 VS |
38391 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
38392 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
38393 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 38394 | fi |
e6cc62c6 | 38395 | |
6f628073 VS |
38396 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
38397 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38398 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38399 | fi |
38400 | ||
6f628073 VS |
38401 | COND_TOOLKIT_MSW="#" |
38402 | if test "x$TOOLKIT" = "xMSW" ; then | |
38403 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
38404 | fi |
38405 | ||
6f628073 VS |
38406 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
38407 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
38408 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 38409 | fi |
e6cc62c6 | 38410 | |
6f628073 VS |
38411 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
38412 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38413 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 38414 | fi |
e6cc62c6 | 38415 | |
96c1699d VS |
38416 | COND_TOOLKIT_PM="#" |
38417 | if test "x$TOOLKIT" = "xPM" ; then | |
38418 | COND_TOOLKIT_PM="" | |
38419 | fi | |
38420 | ||
38421 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
38422 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
38423 | COND_TOOLKIT_PM_USE_GUI_1="" | |
38424 | fi | |
38425 | ||
38426 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
38427 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38428 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
38429 | fi | |
38430 | ||
6f628073 VS |
38431 | COND_TOOLKIT_X11="#" |
38432 | if test "x$TOOLKIT" = "xX11" ; then | |
38433 | COND_TOOLKIT_X11="" | |
9747f85d VS |
38434 | fi |
38435 | ||
6f628073 VS |
38436 | COND_TOOLKIT_X11_USE_GUI_1="#" |
38437 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
38438 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
38439 | fi |
38440 | ||
3af038c0 VS |
38441 | COND_UNICODE_1="#" |
38442 | if test "x$UNICODE" = "x1" ; then | |
38443 | COND_UNICODE_1="" | |
38444 | fi | |
38445 | ||
7015ef3a VZ |
38446 | COND_USE_EXCEPTIONS_0="#" |
38447 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
38448 | COND_USE_EXCEPTIONS_0="" | |
38449 | fi | |
38450 | ||
38451 | COND_USE_EXCEPTIONS_1="#" | |
38452 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
38453 | COND_USE_EXCEPTIONS_1="" | |
38454 | fi | |
38455 | ||
3af038c0 VS |
38456 | COND_USE_GUI_0="#" |
38457 | if test "x$USE_GUI" = "x0" ; then | |
38458 | COND_USE_GUI_0="" | |
38459 | fi | |
38460 | ||
38461 | COND_USE_GUI_1="#" | |
38462 | if test "x$USE_GUI" = "x1" ; then | |
38463 | COND_USE_GUI_1="" | |
38464 | fi | |
38465 | ||
e6cc62c6 | 38466 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
38467 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
38468 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 38469 | fi |
e6cc62c6 VS |
38470 | |
38471 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
38472 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
38473 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
38474 | fi |
38475 | ||
66a96744 VS |
38476 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
38477 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38478 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38479 | fi | |
38480 | ||
38481 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38482 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38483 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38484 | fi | |
38485 | ||
38486 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38487 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38488 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38489 | fi | |
38490 | ||
57e7d4ac VS |
38491 | COND_USE_ODBC_1="#" |
38492 | if test "x$USE_ODBC" = "x1" ; then | |
38493 | COND_USE_ODBC_1="" | |
38494 | fi | |
38495 | ||
6f628073 VS |
38496 | COND_USE_SOSYMLINKS_1="#" |
38497 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
38498 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
38499 | fi |
38500 | ||
6f628073 VS |
38501 | COND_USE_SOVERLINUX_1="#" |
38502 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
38503 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
38504 | fi |
38505 | ||
6f628073 VS |
38506 | COND_USE_SOVERSION_0="#" |
38507 | if test "x$USE_SOVERSION" = "x0" ; then | |
38508 | COND_USE_SOVERSION_0="" | |
fddeb06b | 38509 | fi |
fe0895cf | 38510 | |
6f628073 VS |
38511 | COND_USE_SOVERSOLARIS_1="#" |
38512 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
38513 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 38514 | fi |
fe0895cf | 38515 | |
3af038c0 VS |
38516 | COND_WXUNIV_1="#" |
38517 | if test "x$WXUNIV" = "x1" ; then | |
38518 | COND_WXUNIV_1="" | |
38519 | fi | |
38520 | ||
66a96744 VS |
38521 | COND_WXUSE_EXPAT_BUILTIN="#" |
38522 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38523 | COND_WXUSE_EXPAT_BUILTIN="" | |
38524 | fi | |
38525 | ||
02980527 VS |
38526 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
38527 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38528 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
38529 | fi | |
38530 | ||
38531 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
38532 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38533 | COND_WXUSE_LIBPNG_BUILTIN="" | |
38534 | fi | |
38535 | ||
38536 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
38537 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38538 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
38539 | fi | |
38540 | ||
38541 | COND_WXUSE_ODBC_BUILTIN="#" | |
38542 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38543 | COND_WXUSE_ODBC_BUILTIN="" | |
38544 | fi | |
38545 | ||
38546 | COND_WXUSE_REGEX_BUILTIN="#" | |
38547 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38548 | COND_WXUSE_REGEX_BUILTIN="" | |
38549 | fi | |
38550 | ||
38551 | COND_WXUSE_ZLIB_BUILTIN="#" | |
38552 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38553 | COND_WXUSE_ZLIB_BUILTIN="" | |
38554 | fi | |
38555 | ||
1772d20c | 38556 | |
fe0895cf | 38557 | |
fe0895cf | 38558 | |
fe0895cf | 38559 | |
45842500 | 38560 | if test $GCC_PCH = 1 ; then |
130711ba | 38561 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
38562 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
38563 | else | |
38564 | case "${host}" in | |
38565 | powerpc-*-darwin* ) | |
130711ba VS |
38566 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
38567 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 38568 | ;; |
45842500 VS |
38569 | esac |
38570 | fi | |
fe0895cf VS |
38571 | |
38572 | ||
fddeb06b | 38573 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
38574 | |
38575 | ||
38576 | ||
38577 | ||
38578 | ||
38579 | ||
38580 | ||
38581 | ||
38582 | ||
38583 | ||
38584 | ||
38585 | ||
38586 | ||
38587 | ||
38588 | ||
38589 | ||
38590 | ||
38591 | ||
38592 | ||
38593 | ||
38594 | ||
38595 | ||
38596 | ||
38597 | ||
38598 | ||
38599 | ||
38600 | ||
38601 | ||
38602 | ||
38603 | ||
38604 | ||
38605 | ||
38606 | ||
38607 | ||
38608 | ||
38609 | ||
38610 | ||
38611 | ||
38612 | ||
38613 | ||
38614 | ||
38615 | ||
38616 | ||
38617 | ||
38618 | ||
38619 | ||
38620 | ||
38621 | ||
38622 | ||
38623 | ||
38624 | ||
38625 | ||
38626 | ||
38627 | ||
38628 | ||
38629 | ||
38630 | ||
38631 | ||
38632 | ||
38633 | ||
38634 | ||
38635 | ||
38636 | ||
38637 | ||
38638 | ||
38639 | ||
38640 | ||
38641 | ||
38642 | ||
38643 | ||
38644 | ||
38645 | ||
38646 | ||
38647 | ||
38648 | ||
38649 | ||
38650 | ||
38651 | ||
38652 | ||
38653 | ||
38654 | ||
38655 | ||
38656 | ||
38657 | ||
38658 | ||
38659 | ||
38660 | ||
38661 | ||
38662 | ||
38663 | ||
38664 | ||
38665 | ||
38666 | ||
38667 | ||
fe0895cf | 38668 | |
f0290fca VS |
38669 | |
38670 | ||
e6cc62c6 VS |
38671 | |
38672 | ||
38673 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38674 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
f95e4495 | 38675 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
38676 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38678 | else | |
38679 | cat >conftest.make <<\_ACEOF | |
38680 | all: | |
38681 | @echo 'ac_maketemp="$(MAKE)"' | |
38682 | _ACEOF | |
38683 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38684 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38685 | if test -n "$ac_maketemp"; then | |
38686 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38687 | else | |
38688 | eval ac_cv_prog_make_${ac_make}_set=no | |
38689 | fi | |
38690 | rm -f conftest.make | |
38691 | fi | |
38692 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38693 | echo "$as_me:$LINENO: result: yes" >&5 | |
38694 | echo "${ECHO_T}yes" >&6 | |
38695 | SET_MAKE= | |
38696 | else | |
38697 | echo "$as_me:$LINENO: result: no" >&5 | |
38698 | echo "${ECHO_T}no" >&6 | |
38699 | SET_MAKE="MAKE=${MAKE-make}" | |
38700 | fi | |
38701 | ||
38702 | ||
38703 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
38704 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
38705 | fi | |
38706 | ||
38707 | ac_config_headers="$ac_config_headers setup.h" | |
38708 | ||
38709 | ||
81345eef | 38710 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
38711 | |
38712 | ||
38713 | ac_config_commands="$ac_config_commands default" | |
38714 | ||
38715 | ||
9de9b8f0 | 38716 | |
6c3e36af VZ |
38717 | if test "$wxUSE_GUI" = "yes"; then |
38718 | SUBDIRS="samples demos utils contrib" | |
38719 | else SUBDIRS="samples utils" | |
38720 | fi | |
e6cc62c6 | 38721 | |
166263e6 | 38722 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 38723 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 38724 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 38725 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
38726 | makefiles="samples/Makefile.in $makefiles" |
38727 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
38728 | if test -d $srcdir/samples/$sample; then |
38729 | makefiles="samples/$sample/Makefile.in $makefiles" | |
38730 | fi | |
38731 | done | |
38732 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
38733 | fi | |
6c3e36af | 38734 | else if test ${subdir} = "samples"; then |
8772a1a7 | 38735 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 38736 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
38737 | utils/HelpGen/src/Makefile.in \ |
38738 | utils/tex2rtf/Makefile.in \ | |
38739 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
38740 | fi |
38741 | fi | |
38742 | ||
9747f85d VS |
38743 | for mkin in $makefiles ; do |
38744 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
38745 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 38746 | |
9747f85d VS |
38747 | done |
38748 | fi | |
38749 | done | |
e6cc62c6 | 38750 | |
9de9b8f0 | 38751 | |
e6cc62c6 VS |
38752 | cat >confcache <<\_ACEOF |
38753 | # This file is a shell script that caches the results of configure | |
38754 | # tests run on this system so they can be shared between configure | |
38755 | # scripts and configure runs, see configure's option --config-cache. | |
38756 | # It is not useful on other systems. If it contains results you don't | |
38757 | # want to keep, you may remove or edit it. | |
38758 | # | |
38759 | # config.status only pays attention to the cache file if you give it | |
38760 | # the --recheck option to rerun configure. | |
38761 | # | |
38762 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
38763 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
38764 | # following values. | |
38765 | ||
38766 | _ACEOF | |
38767 | ||
38768 | # The following way of writing the cache mishandles newlines in values, | |
38769 | # but we know of no workaround that is simple, portable, and efficient. | |
38770 | # So, don't put newlines in cache variables' values. | |
38771 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
38772 | # and sets the high bit in the cache file unless we assign to the vars. | |
38773 | { | |
38774 | (set) 2>&1 | | |
38775 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
38776 | *ac_space=\ *) | |
38777 | # `set' does not quote correctly, so add quotes (double-quote | |
38778 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
38779 | sed -n \ | |
f95e4495 VS |
38780 | "s/'/'\\\\''/g; |
38781 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
38782 | ;; |
38783 | *) | |
38784 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38785 | sed -n \ | |
f95e4495 | 38786 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
38787 | ;; |
38788 | esac; | |
38789 | } | | |
38790 | sed ' | |
38791 | t clear | |
38792 | : clear | |
38793 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38794 | t end | |
38795 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38796 | : end' >>confcache | |
38797 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
38798 | if test -w $cache_file; then | |
38799 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
38800 | cat confcache >$cache_file | |
38801 | else | |
38802 | echo "not updating unwritable cache $cache_file" | |
38803 | fi | |
38804 | fi | |
38805 | rm -f confcache | |
38806 | ||
38807 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
38808 | # Let make expand exec_prefix. | |
38809 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
38810 | ||
38811 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
38812 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
38813 | # trailing colons and then remove the whole line if VPATH becomes empty | |
38814 | # (actually we leave an empty line to preserve line numbers). | |
38815 | if test "x$srcdir" = x.; then | |
f95e4495 | 38816 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
38817 | s/:*\$(srcdir):*/:/; |
38818 | s/:*\${srcdir}:*/:/; | |
38819 | s/:*@srcdir@:*/:/; | |
f95e4495 | 38820 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 38821 | s/:*$//; |
f95e4495 | 38822 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
38823 | }' |
38824 | fi | |
38825 | ||
38826 | DEFS=-DHAVE_CONFIG_H | |
38827 | ||
38828 | ac_libobjs= | |
38829 | ac_ltlibobjs= | |
38830 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
38831 | # 1. Remove the extension, and $U if already installed. | |
38832 | ac_i=`echo "$ac_i" | | |
f95e4495 | 38833 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
38834 | # 2. Add them. |
38835 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
38836 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
38837 | done | |
38838 | LIBOBJS=$ac_libobjs | |
38839 | ||
38840 | LTLIBOBJS=$ac_ltlibobjs | |
38841 | ||
38842 | ||
38843 | ||
38844 | : ${CONFIG_STATUS=./config.status} | |
38845 | ac_clean_files_save=$ac_clean_files | |
38846 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
38847 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
38848 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
38849 | cat >$CONFIG_STATUS <<_ACEOF | |
38850 | #! $SHELL | |
38851 | # Generated by $as_me. | |
38852 | # Run this file to recreate the current configuration. | |
38853 | # Compiler output produced by configure, useful for debugging | |
38854 | # configure, is in config.log if it exists. | |
38855 | ||
38856 | debug=false | |
38857 | ac_cs_recheck=false | |
38858 | ac_cs_silent=false | |
38859 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38860 | _ACEOF | |
38861 | ||
38862 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38863 | ## --------------------- ## | |
38864 | ## M4sh Initialization. ## | |
38865 | ## --------------------- ## | |
38866 | ||
38867 | # Be Bourne compatible | |
38868 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
38869 | emulate sh | |
38870 | NULLCMD=: | |
38871 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
38872 | # is contrary to our usage. Disable this feature. | |
38873 | alias -g '${1+"$@"}'='"$@"' | |
38874 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
38875 | set -o posix | |
38876 | fi | |
f95e4495 | 38877 | DUALCASE=1; export DUALCASE # for MKS sh |
e6cc62c6 VS |
38878 | |
38879 | # Support unset when possible. | |
f95e4495 | 38880 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
38881 | as_unset=unset |
38882 | else | |
38883 | as_unset=false | |
38884 | fi | |
38885 | ||
38886 | ||
38887 | # Work around bugs in pre-3.0 UWIN ksh. | |
38888 | $as_unset ENV MAIL MAILPATH | |
38889 | PS1='$ ' | |
38890 | PS2='> ' | |
38891 | PS4='+ ' | |
38892 | ||
38893 | # NLS nuisances. | |
38894 | for as_var in \ | |
38895 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
38896 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
38897 | LC_TELEPHONE LC_TIME | |
38898 | do | |
f95e4495 | 38899 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
38900 | eval $as_var=C; export $as_var |
38901 | else | |
38902 | $as_unset $as_var | |
38903 | fi | |
38904 | done | |
38905 | ||
38906 | # Required to use basename. | |
38907 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
38908 | as_expr=expr | |
38909 | else | |
38910 | as_expr=false | |
38911 | fi | |
38912 | ||
38913 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
38914 | as_basename=basename | |
38915 | else | |
38916 | as_basename=false | |
38917 | fi | |
38918 | ||
38919 | ||
38920 | # Name of the executable. | |
38921 | as_me=`$as_basename "$0" || | |
38922 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
38923 | X"$0" : 'X\(//\)$' \| \ | |
38924 | X"$0" : 'X\(/\)$' \| \ | |
38925 | . : '\(.\)' 2>/dev/null || | |
38926 | echo X/"$0" | | |
38927 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
38928 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
38929 | /^X\/\(\/\).*/{ s//\1/; q; } | |
38930 | s/.*/./; q'` | |
38931 | ||
38932 | ||
38933 | # PATH needs CR, and LINENO needs CR and PATH. | |
38934 | # Avoid depending upon Character Ranges. | |
38935 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38936 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38937 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38938 | as_cr_digits='0123456789' | |
38939 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38940 | ||
38941 | # The user is always right. | |
38942 | if test "${PATH_SEPARATOR+set}" != set; then | |
38943 | echo "#! /bin/sh" >conf$$.sh | |
38944 | echo "exit 0" >>conf$$.sh | |
38945 | chmod +x conf$$.sh | |
38946 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
38947 | PATH_SEPARATOR=';' | |
38948 | else | |
38949 | PATH_SEPARATOR=: | |
38950 | fi | |
38951 | rm -f conf$$.sh | |
38952 | fi | |
38953 | ||
38954 | ||
38955 | as_lineno_1=$LINENO | |
38956 | as_lineno_2=$LINENO | |
38957 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
38958 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
38959 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
38960 | # Find who we are. Look in the path if we contain no path at all | |
38961 | # relative or not. | |
38962 | case $0 in | |
38963 | *[\\/]* ) as_myself=$0 ;; | |
38964 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38965 | for as_dir in $PATH | |
38966 | do | |
38967 | IFS=$as_save_IFS | |
38968 | test -z "$as_dir" && as_dir=. | |
38969 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
38970 | done | |
38971 | ||
38972 | ;; | |
38973 | esac | |
38974 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
38975 | # in which case we are not to be found in the path. | |
38976 | if test "x$as_myself" = x; then | |
38977 | as_myself=$0 | |
38978 | fi | |
38979 | if test ! -f "$as_myself"; then | |
38980 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
38981 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
38982 | { (exit 1); exit 1; }; } | |
38983 | fi | |
38984 | case $CONFIG_SHELL in | |
38985 | '') | |
38986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38987 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
38988 | do | |
38989 | IFS=$as_save_IFS | |
38990 | test -z "$as_dir" && as_dir=. | |
38991 | for as_base in sh bash ksh sh5; do | |
38992 | case $as_dir in | |
38993 | /*) | |
38994 | if ("$as_dir/$as_base" -c ' | |
38995 | as_lineno_1=$LINENO | |
38996 | as_lineno_2=$LINENO | |
38997 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
38998 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
38999 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
39000 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
39001 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
39002 | CONFIG_SHELL=$as_dir/$as_base | |
39003 | export CONFIG_SHELL | |
39004 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
39005 | fi;; | |
39006 | esac | |
39007 | done | |
39008 | done | |
39009 | ;; | |
39010 | esac | |
39011 | ||
39012 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
39013 | # uniformly replaced by the line number. The first 'sed' inserts a | |
39014 | # line-number line before each line; the second 'sed' does the real | |
39015 | # work. The second script uses 'N' to pair each line-number line | |
39016 | # with the numbered line, and appends trailing '-' during | |
39017 | # substitution so that $LINENO is not a special case at line end. | |
39018 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
39019 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
39020 | sed '=' <$as_myself | | |
39021 | sed ' | |
39022 | N | |
39023 | s,$,-, | |
39024 | : loop | |
39025 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
39026 | t loop | |
39027 | s,-$,, | |
39028 | s,^['$as_cr_digits']*\n,, | |
39029 | ' >$as_me.lineno && | |
39030 | chmod +x $as_me.lineno || | |
39031 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
39032 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
39033 | { (exit 1); exit 1; }; } | |
39034 | ||
39035 | # Don't try to exec as it changes $[0], causing all sort of problems | |
39036 | # (the dirname of $[0] is not the place where we might find the | |
39037 | # original and so on. Autoconf is especially sensible to this). | |
39038 | . ./$as_me.lineno | |
39039 | # Exit status is that of the last command. | |
39040 | exit | |
39041 | } | |
39042 | ||
39043 | ||
39044 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
39045 | *c*,-n*) ECHO_N= ECHO_C=' | |
39046 | ' ECHO_T=' ' ;; | |
39047 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
39048 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
39049 | esac | |
39050 | ||
39051 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
39052 | as_expr=expr | |
39053 | else | |
39054 | as_expr=false | |
39055 | fi | |
39056 | ||
39057 | rm -f conf$$ conf$$.exe conf$$.file | |
39058 | echo >conf$$.file | |
39059 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
39060 | # We could just check for DJGPP; but this test a) works b) is more generic | |
39061 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
39062 | if test -f conf$$.exe; then | |
39063 | # Don't use ln at all; we don't have any links | |
39064 | as_ln_s='cp -p' | |
39065 | else | |
39066 | as_ln_s='ln -s' | |
39067 | fi | |
39068 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
39069 | as_ln_s=ln | |
39070 | else | |
39071 | as_ln_s='cp -p' | |
39072 | fi | |
39073 | rm -f conf$$ conf$$.exe conf$$.file | |
39074 | ||
39075 | if mkdir -p . 2>/dev/null; then | |
39076 | as_mkdir_p=: | |
39077 | else | |
f95e4495 | 39078 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
39079 | as_mkdir_p=false |
39080 | fi | |
39081 | ||
39082 | as_executable_p="test -f" | |
39083 | ||
39084 | # Sed expression to map a string onto a valid CPP name. | |
f95e4495 | 39085 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
39086 | |
39087 | # Sed expression to map a string onto a valid variable name. | |
f95e4495 | 39088 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
39089 | |
39090 | ||
39091 | # IFS | |
39092 | # We need space, tab and new line, in precisely that order. | |
39093 | as_nl=' | |
39094 | ' | |
39095 | IFS=" $as_nl" | |
39096 | ||
39097 | # CDPATH. | |
39098 | $as_unset CDPATH | |
39099 | ||
39100 | exec 6>&1 | |
39101 | ||
39102 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
39103 | # report actual input values of CONFIG_FILES etc. instead of their | |
39104 | # values after options handling. Logging --version etc. is OK. | |
39105 | exec 5>>config.log | |
39106 | { | |
39107 | echo | |
39108 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
39109 | ## Running $as_me. ## | |
39110 | _ASBOX | |
39111 | } >&5 | |
39112 | cat >&5 <<_CSEOF | |
39113 | ||
e46d2a18 | 39114 | This file was extended by wxWindows $as_me 2.5.1, which was |
f95e4495 | 39115 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
39116 | |
39117 | CONFIG_FILES = $CONFIG_FILES | |
39118 | CONFIG_HEADERS = $CONFIG_HEADERS | |
39119 | CONFIG_LINKS = $CONFIG_LINKS | |
39120 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
39121 | $ $0 $@ | |
39122 | ||
39123 | _CSEOF | |
39124 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
39125 | echo >&5 | |
39126 | _ACEOF | |
39127 | ||
39128 | # Files that config.status was made for. | |
39129 | if test -n "$ac_config_files"; then | |
39130 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
39131 | fi | |
39132 | ||
39133 | if test -n "$ac_config_headers"; then | |
39134 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
39135 | fi | |
39136 | ||
39137 | if test -n "$ac_config_links"; then | |
39138 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
39139 | fi | |
39140 | ||
39141 | if test -n "$ac_config_commands"; then | |
39142 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
39143 | fi | |
39144 | ||
39145 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39146 | ||
39147 | ac_cs_usage="\ | |
39148 | \`$as_me' instantiates files from templates according to the | |
39149 | current configuration. | |
39150 | ||
39151 | Usage: $0 [OPTIONS] [FILE]... | |
39152 | ||
39153 | -h, --help print this help, then exit | |
39154 | -V, --version print version number, then exit | |
39155 | -q, --quiet do not print progress messages | |
39156 | -d, --debug don't remove temporary files | |
39157 | --recheck update $as_me by reconfiguring in the same conditions | |
39158 | --file=FILE[:TEMPLATE] | |
f95e4495 | 39159 | instantiate the configuration file FILE |
e6cc62c6 | 39160 | --header=FILE[:TEMPLATE] |
f95e4495 | 39161 | instantiate the configuration header FILE |
e6cc62c6 VS |
39162 | |
39163 | Configuration files: | |
39164 | $config_files | |
39165 | ||
39166 | Configuration headers: | |
39167 | $config_headers | |
39168 | ||
39169 | Configuration commands: | |
39170 | $config_commands | |
39171 | ||
39172 | Report bugs to <bug-autoconf@gnu.org>." | |
39173 | _ACEOF | |
39174 | ||
39175 | cat >>$CONFIG_STATUS <<_ACEOF | |
39176 | ac_cs_version="\\ | |
e46d2a18 | 39177 | wxWindows config.status 2.5.1 |
f95e4495 | 39178 | configured by $0, generated by GNU Autoconf 2.59, |
e6cc62c6 VS |
39179 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
39180 | ||
f95e4495 | 39181 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
39182 | This config.status script is free software; the Free Software Foundation |
39183 | gives unlimited permission to copy, distribute and modify it." | |
39184 | srcdir=$srcdir | |
39185 | INSTALL="$INSTALL" | |
39186 | _ACEOF | |
39187 | ||
39188 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39189 | # If no file are specified by the user, then we need to provide default | |
39190 | # value. By we need to know if files were specified by the user. | |
39191 | ac_need_defaults=: | |
39192 | while test $# != 0 | |
39193 | do | |
39194 | case $1 in | |
39195 | --*=*) | |
39196 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
39197 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
39198 | ac_shift=: | |
39199 | ;; | |
39200 | -*) | |
39201 | ac_option=$1 | |
39202 | ac_optarg=$2 | |
39203 | ac_shift=shift | |
39204 | ;; | |
39205 | *) # This is not an option, so the user has probably given explicit | |
39206 | # arguments. | |
39207 | ac_option=$1 | |
39208 | ac_need_defaults=false;; | |
39209 | esac | |
39210 | ||
39211 | case $ac_option in | |
39212 | # Handling of the options. | |
39213 | _ACEOF | |
39214 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39215 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
39216 | ac_cs_recheck=: ;; | |
39217 | --version | --vers* | -V ) | |
39218 | echo "$ac_cs_version"; exit 0 ;; | |
39219 | --he | --h) | |
39220 | # Conflict between --help and --header | |
39221 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
39222 | Try \`$0 --help' for more information." >&5 | |
39223 | echo "$as_me: error: ambiguous option: $1 | |
39224 | Try \`$0 --help' for more information." >&2;} | |
39225 | { (exit 1); exit 1; }; };; | |
39226 | --help | --hel | -h ) | |
39227 | echo "$ac_cs_usage"; exit 0 ;; | |
39228 | --debug | --d* | -d ) | |
39229 | debug=: ;; | |
39230 | --file | --fil | --fi | --f ) | |
39231 | $ac_shift | |
39232 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
39233 | ac_need_defaults=false;; | |
39234 | --header | --heade | --head | --hea ) | |
39235 | $ac_shift | |
39236 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
39237 | ac_need_defaults=false;; | |
39238 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
39239 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
39240 | ac_cs_silent=: ;; | |
39241 | ||
39242 | # This is an error. | |
39243 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
39244 | Try \`$0 --help' for more information." >&5 | |
39245 | echo "$as_me: error: unrecognized option: $1 | |
39246 | Try \`$0 --help' for more information." >&2;} | |
39247 | { (exit 1); exit 1; }; } ;; | |
39248 | ||
39249 | *) ac_config_targets="$ac_config_targets $1" ;; | |
39250 | ||
39251 | esac | |
39252 | shift | |
39253 | done | |
39254 | ||
39255 | ac_configure_extra_args= | |
39256 | ||
39257 | if $ac_cs_silent; then | |
39258 | exec 6>/dev/null | |
39259 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
39260 | fi |
39261 | ||
e6cc62c6 VS |
39262 | _ACEOF |
39263 | cat >>$CONFIG_STATUS <<_ACEOF | |
39264 | if \$ac_cs_recheck; then | |
39265 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
39266 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
39267 | fi |
39268 | ||
e6cc62c6 | 39269 | _ACEOF |
fe0895cf | 39270 | |
e6cc62c6 | 39271 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 39272 | # |
e6cc62c6 | 39273 | # INIT-COMMANDS section. |
10f2d63a | 39274 | # |
10f2d63a | 39275 | |
a0b9e27f | 39276 | |
e6cc62c6 VS |
39277 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
39278 | LN_S="${LN_S}" | |
10f2d63a | 39279 | |
10f2d63a | 39280 | |
10f2d63a | 39281 | |
e6cc62c6 | 39282 | _ACEOF |
8284b0c5 | 39283 | |
52127426 | 39284 | |
247f5006 | 39285 | |
e6cc62c6 VS |
39286 | cat >>$CONFIG_STATUS <<\_ACEOF |
39287 | for ac_config_target in $ac_config_targets | |
247f5006 | 39288 | do |
e6cc62c6 VS |
39289 | case "$ac_config_target" in |
39290 | # Handling of arguments. | |
81345eef VZ |
39291 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
39292 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
39293 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 39294 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
39295 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
39296 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
39297 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
39298 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
39299 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
39300 | esac |
39301 | done | |
39302 | ||
e6cc62c6 VS |
39303 | # If the user did not use the arguments to specify the items to instantiate, |
39304 | # then the envvar interface is used. Set only those that are not. | |
39305 | # We use the long form for the default assignment because of an extremely | |
39306 | # bizarre bug on SunOS 4.1.3. | |
39307 | if $ac_need_defaults; then | |
39308 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
39309 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
39310 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
39311 | fi | |
39312 | ||
39313 | # Have a temporary directory for convenience. Make it in the build tree | |
39314 | # simply because there is no reason to put it here, and in addition, | |
39315 | # creating and moving files from /tmp can sometimes cause problems. | |
39316 | # Create a temporary directory, and hook for its removal unless debugging. | |
39317 | $debug || | |
39318 | { | |
39319 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
39320 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
39321 | } | |
247f5006 | 39322 | |
e6cc62c6 | 39323 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 39324 | |
e6cc62c6 VS |
39325 | { |
39326 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
39327 | test -n "$tmp" && test -d "$tmp" | |
39328 | } || | |
39329 | { | |
39330 | tmp=./confstat$$-$RANDOM | |
39331 | (umask 077 && mkdir $tmp) | |
39332 | } || | |
39333 | { | |
39334 | echo "$me: cannot create a temporary directory in ." >&2 | |
39335 | { (exit 1); exit 1; } | |
39336 | } | |
39337 | ||
39338 | _ACEOF | |
39339 | ||
39340 | cat >>$CONFIG_STATUS <<_ACEOF | |
39341 | ||
39342 | # | |
39343 | # CONFIG_FILES section. | |
39344 | # | |
247f5006 | 39345 | |
e6cc62c6 VS |
39346 | # No need to generate the scripts if there are no CONFIG_FILES. |
39347 | # This happens for instance when ./config.status config.h | |
39348 | if test -n "\$CONFIG_FILES"; then | |
39349 | # Protect against being on the right side of a sed subst in config.status. | |
39350 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
39351 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
39352 | s,@SHELL@,$SHELL,;t t | |
39353 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
39354 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
39355 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
39356 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
39357 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
39358 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
39359 | s,@exec_prefix@,$exec_prefix,;t t | |
39360 | s,@prefix@,$prefix,;t t | |
39361 | s,@program_transform_name@,$program_transform_name,;t t | |
39362 | s,@bindir@,$bindir,;t t | |
39363 | s,@sbindir@,$sbindir,;t t | |
39364 | s,@libexecdir@,$libexecdir,;t t | |
39365 | s,@datadir@,$datadir,;t t | |
39366 | s,@sysconfdir@,$sysconfdir,;t t | |
39367 | s,@sharedstatedir@,$sharedstatedir,;t t | |
39368 | s,@localstatedir@,$localstatedir,;t t | |
39369 | s,@libdir@,$libdir,;t t | |
39370 | s,@includedir@,$includedir,;t t | |
39371 | s,@oldincludedir@,$oldincludedir,;t t | |
39372 | s,@infodir@,$infodir,;t t | |
39373 | s,@mandir@,$mandir,;t t | |
39374 | s,@build_alias@,$build_alias,;t t | |
39375 | s,@host_alias@,$host_alias,;t t | |
39376 | s,@target_alias@,$target_alias,;t t | |
39377 | s,@DEFS@,$DEFS,;t t | |
39378 | s,@ECHO_C@,$ECHO_C,;t t | |
39379 | s,@ECHO_N@,$ECHO_N,;t t | |
39380 | s,@ECHO_T@,$ECHO_T,;t t | |
39381 | s,@LIBS@,$LIBS,;t t | |
39382 | s,@build@,$build,;t t | |
39383 | s,@build_cpu@,$build_cpu,;t t | |
39384 | s,@build_vendor@,$build_vendor,;t t | |
39385 | s,@build_os@,$build_os,;t t | |
39386 | s,@host@,$host,;t t | |
39387 | s,@host_cpu@,$host_cpu,;t t | |
39388 | s,@host_vendor@,$host_vendor,;t t | |
39389 | s,@host_os@,$host_os,;t t | |
39390 | s,@target@,$target,;t t | |
39391 | s,@target_cpu@,$target_cpu,;t t | |
39392 | s,@target_vendor@,$target_vendor,;t t | |
39393 | s,@target_os@,$target_os,;t t | |
39394 | s,@CC@,$CC,;t t | |
39395 | s,@CFLAGS@,$CFLAGS,;t t | |
39396 | s,@LDFLAGS@,$LDFLAGS,;t t | |
39397 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
39398 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
39399 | s,@EXEEXT@,$EXEEXT,;t t | |
39400 | s,@OBJEXT@,$OBJEXT,;t t | |
39401 | s,@CPP@,$CPP,;t t | |
39402 | s,@EGREP@,$EGREP,;t t | |
39403 | s,@CXX@,$CXX,;t t | |
39404 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
39405 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
39406 | s,@RANLIB@,$RANLIB,;t t | |
39407 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
39408 | s,@AR@,$AR,;t t | |
39409 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
39410 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
39411 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
39412 | s,@STRIP@,$STRIP,;t t | |
39413 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
39414 | s,@LN_S@,$LN_S,;t t |
39415 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 39416 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
39417 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
39418 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
39419 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
39420 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
39421 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
39422 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
39423 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
39424 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
39425 | s,@X_LIBS@,$X_LIBS,;t t | |
39426 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
39427 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
39428 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
39429 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
39430 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
39431 | s,@RESCOMP@,$RESCOMP,;t t |
39432 | s,@DEREZ@,$DEREZ,;t t | |
39433 | s,@SETFILE@,$SETFILE,;t t | |
39434 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
39435 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
39436 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
39437 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
39438 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
39439 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 39440 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
39441 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
39442 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
39443 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
39444 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
39445 | s,@VENDOR@,$VENDOR,;t t |
39446 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
39447 | s,@WXUNIV@,$WXUNIV,;t t |
39448 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
39449 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 39450 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 39451 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 39452 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 39453 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 39454 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
39455 | s,@UNICODE@,$UNICODE,;t t |
39456 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
39457 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
39458 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
39459 | s,@SHARED@,$SHARED,;t t |
39460 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
39461 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
39462 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 39463 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 39464 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
39465 | s,@SET_MAKE@,$SET_MAKE,;t t |
39466 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
39467 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
39468 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
39469 | s,@NM@,$NM,;t t | |
39470 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 39471 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 39472 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
39473 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
39474 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
39475 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
39476 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
39477 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 39478 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 39479 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 39480 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 39481 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 39482 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 39483 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 39484 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
39485 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
39486 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
39487 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
39488 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
39489 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
39490 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
39491 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
39492 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
39493 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
39494 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
39495 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 39496 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 39497 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 39498 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
39499 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
39500 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 39501 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
39502 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
39503 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
39504 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
39505 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 39506 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 39507 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 39508 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 39509 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
39510 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
39511 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 39512 | 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 | 39513 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 39514 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 39515 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 39516 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 39517 | 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 | 39518 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 39519 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
f95e4495 | 39520 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
3af038c0 | 39521 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
39522 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
39523 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
39524 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
39525 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 39526 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 39527 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
39528 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
39529 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
39530 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 39531 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 39532 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 39533 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 39534 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 39535 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 39536 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 39537 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
3af038c0 VS |
39538 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
39539 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 39540 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 39541 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
39542 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
39543 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39544 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
39545 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
39546 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
39547 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
39548 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 39549 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 39550 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
39551 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
39552 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
39553 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
39554 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 39555 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 39556 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 39557 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
39558 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
39559 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
39560 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
39561 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
39562 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
39563 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 39564 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
39565 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
39566 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
39567 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
39568 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
39569 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
39570 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
39571 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 39572 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
39573 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
39574 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
39575 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
39576 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
39577 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
39578 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
39579 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
39580 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39581 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 39582 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
6f628073 VS |
39583 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
39584 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
39585 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
39586 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 39587 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 39588 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
39589 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
39590 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
39591 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
39592 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
39593 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
39594 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
39595 | s,@PATH_IFS@,$PATH_IFS,;t t |
39596 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
39597 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
39598 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
39599 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
39600 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
39601 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
39602 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
39603 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
39604 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
39605 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
39606 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
39607 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
39608 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
39609 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
39610 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
39611 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
39612 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
39613 | s,@WX_ALL@,$WX_ALL,;t t | |
39614 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
39615 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
39616 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
39617 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
39618 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
39619 | s,@USE_GUI@,$USE_GUI,;t t | |
39620 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
39621 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
39622 | s,@TOOLKIT@,$TOOLKIT,;t t | |
39623 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
39624 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
39625 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
39626 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
39627 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
39628 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
39629 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 39630 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
39631 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
39632 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
39633 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
39634 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
39635 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
39636 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 39637 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 39638 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
39639 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
39640 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
39641 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
39642 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
39643 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
39644 | s,@GUIDIST@,$GUIDIST,;t t | |
39645 | s,@PORT_FILES@,$PORT_FILES,;t t | |
39646 | s,@DISTDIR@,$DISTDIR,;t t | |
39647 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
39648 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
39649 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
39650 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
39651 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
39652 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
39653 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
39654 | s,@RESFLAGS@,$RESFLAGS,;t t | |
39655 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
39656 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
39657 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
39658 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
39659 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
39660 | s,@MACSETFILE@,$MACSETFILE,;t t | |
39661 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
39662 | s,@GCC@,$GCC,;t t | |
39663 | s,@DLLTOOL@,$DLLTOOL,;t t | |
39664 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
39665 | s,@LD@,$LD,;t t |
39666 | s,@MAKEINFO@,$MAKEINFO,;t t | |
39667 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
39668 | s,@LIBOBJS@,$LIBOBJS,;t t |
39669 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
39670 | CEOF |
39671 | ||
e6cc62c6 VS |
39672 | _ACEOF |
39673 | ||
39674 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39675 | # Split the substitutions into bite-sized pieces for seds with | |
39676 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
39677 | ac_max_sed_lines=48 | |
39678 | ac_sed_frag=1 # Number of current file. | |
39679 | ac_beg=1 # First line for current file. | |
39680 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
39681 | ac_more_lines=: | |
39682 | ac_sed_cmds= | |
39683 | while $ac_more_lines; do | |
39684 | if test $ac_beg -gt 1; then | |
39685 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 39686 | else |
e6cc62c6 VS |
39687 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
39688 | fi | |
39689 | if test ! -s $tmp/subs.frag; then | |
39690 | ac_more_lines=false | |
39691 | else | |
39692 | # The purpose of the label and of the branching condition is to | |
39693 | # speed up the sed processing (if there are no `@' at all, there | |
39694 | # is no need to browse any of the substitutions). | |
39695 | # These are the two extra sed commands mentioned above. | |
39696 | (echo ':t | |
39697 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
39698 | if test -z "$ac_sed_cmds"; then | |
f95e4495 | 39699 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 39700 | else |
f95e4495 | 39701 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
39702 | fi |
39703 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
39704 | ac_beg=$ac_end | |
39705 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 39706 | fi |
e6cc62c6 VS |
39707 | done |
39708 | if test -z "$ac_sed_cmds"; then | |
39709 | ac_sed_cmds=cat | |
10f2d63a | 39710 | fi |
e6cc62c6 | 39711 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 39712 | |
e6cc62c6 VS |
39713 | _ACEOF |
39714 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39715 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 39716 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
39717 | case $ac_file in |
39718 | - | *:- | *:-:* ) # input from stdin | |
f95e4495 VS |
39719 | cat >$tmp/stdin |
39720 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
39721 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 39722 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
f95e4495 | 39723 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 39724 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 39725 | esac |
247f5006 | 39726 | |
e6cc62c6 VS |
39727 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
39728 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
39729 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
39730 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
39731 | X"$ac_file" : 'X\(//\)$' \| \ | |
39732 | X"$ac_file" : 'X\(/\)' \| \ | |
39733 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
39734 | echo X"$ac_file" | |
39735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39736 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39737 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39738 | /^X\(\/\).*/{ s//\1/; q; } | |
39739 | s/.*/./; q'` | |
39740 | { if $as_mkdir_p; then | |
39741 | mkdir -p "$ac_dir" | |
a0b9e27f | 39742 | else |
e6cc62c6 VS |
39743 | as_dir="$ac_dir" |
39744 | as_dirs= | |
39745 | while test ! -d "$as_dir"; do | |
39746 | as_dirs="$as_dir $as_dirs" | |
39747 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
39748 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
39749 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
39750 | X"$as_dir" : 'X\(//\)$' \| \ | |
39751 | X"$as_dir" : 'X\(/\)' \| \ | |
39752 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
39753 | echo X"$as_dir" | |
39754 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39755 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39756 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39757 | /^X\(\/\).*/{ s//\1/; q; } | |
39758 | s/.*/./; q'` | |
39759 | done | |
39760 | test ! -n "$as_dirs" || mkdir $as_dirs | |
39761 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
39762 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
39763 | { (exit 1); exit 1; }; }; } | |
39764 | ||
39765 | ac_builddir=. | |
39766 | ||
39767 | if test "$ac_dir" != .; then | |
39768 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
39769 | # A "../" for each directory in $ac_dir_suffix. | |
39770 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
39771 | else | |
39772 | ac_dir_suffix= ac_top_builddir= | |
39773 | fi | |
247f5006 | 39774 | |
e6cc62c6 VS |
39775 | case $srcdir in |
39776 | .) # No --srcdir option. We are building in place. | |
39777 | ac_srcdir=. | |
39778 | if test -z "$ac_top_builddir"; then | |
39779 | ac_top_srcdir=. | |
39780 | else | |
39781 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
39782 | fi ;; | |
39783 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
39784 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39785 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 39786 | *) # Relative path. |
e6cc62c6 VS |
39787 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
39788 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
39789 | esac | |
f95e4495 VS |
39790 | |
39791 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
39792 | # the directories may not exist. | |
39793 | case `pwd` in | |
39794 | .) ac_abs_builddir="$ac_dir";; | |
39795 | *) | |
39796 | case "$ac_dir" in | |
39797 | .) ac_abs_builddir=`pwd`;; | |
39798 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
39799 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
39800 | esac;; | |
39801 | esac | |
39802 | case $ac_abs_builddir in | |
39803 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
39804 | *) | |
39805 | case ${ac_top_builddir}. in | |
39806 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
39807 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
39808 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
39809 | esac;; | |
39810 | esac | |
39811 | case $ac_abs_builddir in | |
39812 | .) ac_abs_srcdir=$ac_srcdir;; | |
39813 | *) | |
39814 | case $ac_srcdir in | |
39815 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
39816 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
39817 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
39818 | esac;; | |
39819 | esac | |
39820 | case $ac_abs_builddir in | |
39821 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
39822 | *) | |
39823 | case $ac_top_srcdir in | |
39824 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
39825 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
39826 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
39827 | esac;; | |
39828 | esac | |
10f2d63a | 39829 | |
247f5006 | 39830 | |
e6cc62c6 VS |
39831 | case $INSTALL in |
39832 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39833 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 39834 | esac |
247f5006 | 39835 | |
e6cc62c6 VS |
39836 | if test x"$ac_file" != x-; then |
39837 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
39838 | echo "$as_me: creating $ac_file" >&6;} | |
39839 | rm -f "$ac_file" | |
39840 | fi | |
39841 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39842 | # use $as_me), people would be surprised to read: | |
39843 | # /* config.h. Generated by config.status. */ | |
39844 | if test x"$ac_file" = x-; then | |
39845 | configure_input= | |
39846 | else | |
39847 | configure_input="$ac_file. " | |
39848 | fi | |
39849 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
f95e4495 | 39850 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
39851 | |
39852 | # First look for the input files in the build tree, otherwise in the | |
39853 | # src tree. | |
39854 | ac_file_inputs=`IFS=: | |
39855 | for f in $ac_file_in; do | |
39856 | case $f in | |
39857 | -) echo $tmp/stdin ;; | |
39858 | [\\/$]*) | |
f95e4495 VS |
39859 | # Absolute (can't be DOS-style, as IFS=:) |
39860 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39861 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39862 | { (exit 1); exit 1; }; } | |
f95e4495 | 39863 | echo "$f";; |
e6cc62c6 | 39864 | *) # Relative |
f95e4495 VS |
39865 | if test -f "$f"; then |
39866 | # Build tree | |
39867 | echo "$f" | |
39868 | elif test -f "$srcdir/$f"; then | |
39869 | # Source tree | |
39870 | echo "$srcdir/$f" | |
39871 | else | |
39872 | # /dev/null tree | |
39873 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39874 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39875 | { (exit 1); exit 1; }; } | |
f95e4495 | 39876 | fi;; |
e6cc62c6 VS |
39877 | esac |
39878 | done` || { (exit 1); exit 1; } | |
39879 | _ACEOF | |
39880 | cat >>$CONFIG_STATUS <<_ACEOF | |
39881 | sed "$ac_vpsub | |
39882 | $extrasub | |
39883 | _ACEOF | |
39884 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39885 | :t | |
39886 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39887 | s,@configure_input@,$configure_input,;t t | |
39888 | s,@srcdir@,$ac_srcdir,;t t | |
39889 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
39890 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
39891 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
39892 | s,@builddir@,$ac_builddir,;t t | |
39893 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
39894 | s,@top_builddir@,$ac_top_builddir,;t t | |
39895 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
39896 | s,@INSTALL@,$ac_INSTALL,;t t | |
39897 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
39898 | rm -f $tmp/stdin | |
39899 | if test x"$ac_file" != x-; then | |
39900 | mv $tmp/out $ac_file | |
39901 | else | |
39902 | cat $tmp/out | |
39903 | rm -f $tmp/out | |
39904 | fi | |
39905 | ||
39906 | done | |
39907 | _ACEOF | |
39908 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39909 | ||
39910 | # | |
39911 | # CONFIG_HEADER section. | |
39912 | # | |
10f2d63a VZ |
39913 | |
39914 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
39915 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
39916 | # | |
39917 | # ac_d sets the value in "#define NAME VALUE" lines. | |
f95e4495 VS |
39918 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
39919 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
39920 | ac_dC=' ' |
39921 | ac_dD=',;t' | |
39922 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
f95e4495 | 39923 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 39924 | ac_uB='$,\1#\2define\3' |
10f2d63a | 39925 | ac_uC=' ' |
e6cc62c6 VS |
39926 | ac_uD=',;t' |
39927 | ||
39928 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 39929 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
39930 | case $ac_file in |
39931 | - | *:- | *:-:* ) # input from stdin | |
f95e4495 VS |
39932 | cat >$tmp/stdin |
39933 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
39934 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 39935 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
f95e4495 | 39936 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 39937 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
39938 | esac |
39939 | ||
e6cc62c6 VS |
39940 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
39941 | echo "$as_me: creating $ac_file" >&6;} | |
39942 | ||
39943 | # First look for the input files in the build tree, otherwise in the | |
39944 | # src tree. | |
39945 | ac_file_inputs=`IFS=: | |
39946 | for f in $ac_file_in; do | |
39947 | case $f in | |
39948 | -) echo $tmp/stdin ;; | |
39949 | [\\/$]*) | |
f95e4495 VS |
39950 | # Absolute (can't be DOS-style, as IFS=:) |
39951 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39952 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39953 | { (exit 1); exit 1; }; } | |
f95e4495 VS |
39954 | # Do quote $f, to prevent DOS paths from being IFS'd. |
39955 | echo "$f";; | |
e6cc62c6 | 39956 | *) # Relative |
f95e4495 VS |
39957 | if test -f "$f"; then |
39958 | # Build tree | |
39959 | echo "$f" | |
39960 | elif test -f "$srcdir/$f"; then | |
39961 | # Source tree | |
39962 | echo "$srcdir/$f" | |
39963 | else | |
39964 | # /dev/null tree | |
39965 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39966 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39967 | { (exit 1); exit 1; }; } | |
f95e4495 | 39968 | fi;; |
e6cc62c6 VS |
39969 | esac |
39970 | done` || { (exit 1); exit 1; } | |
39971 | # Remove the trailing spaces. | |
f95e4495 | 39972 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
39973 | |
39974 | _ACEOF | |
39975 | ||
39976 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
39977 | # `conftest.undefs', that substitutes the proper values into | |
39978 | # config.h.in to produce config.h. The first handles `#define' | |
39979 | # templates, and the second `#undef' templates. | |
39980 | # And first: Protect against being on the right side of a sed subst in | |
39981 | # config.status. Protect against being in an unquoted here document | |
39982 | # in config.status. | |
39983 | rm -f conftest.defines conftest.undefs | |
39984 | # Using a here document instead of a string reduces the quoting nightmare. | |
39985 | # Putting comments in sed scripts is not portable. | |
39986 | # | |
39987 | # `end' is used to avoid that the second main sed command (meant for | |
39988 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
39989 | # See the Autoconf documentation for `clear'. | |
39990 | cat >confdef2sed.sed <<\_ACEOF | |
39991 | s/[\\&,]/\\&/g | |
39992 | s,[\\$`],\\&,g | |
39993 | t clear | |
39994 | : clear | |
f95e4495 | 39995 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 39996 | t end |
f95e4495 | 39997 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
39998 | : end |
39999 | _ACEOF | |
40000 | # If some macros were called several times there might be several times | |
40001 | # the same #defines, which is useless. Nevertheless, we may not want to | |
40002 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
40003 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
40004 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
40005 | rm -f confdef2sed.sed | |
10f2d63a VZ |
40006 | |
40007 | # This sed command replaces #undef with comments. This is necessary, for | |
40008 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
40009 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 40010 | cat >>conftest.undefs <<\_ACEOF |
f95e4495 | 40011 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
40012 | _ACEOF |
40013 | ||
40014 | # Break up conftest.defines because some shells have a limit on the size | |
40015 | # of here documents, and old seds have small limits too (100 cmds). | |
40016 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
f95e4495 | 40017 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
40018 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
40019 | echo ' :' >>$CONFIG_STATUS | |
40020 | rm -f conftest.tail | |
40021 | while grep . conftest.defines >/dev/null | |
40022 | do | |
40023 | # Write a limited-size here document to $tmp/defines.sed. | |
40024 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
40025 | # Speed up: don't consider the non `#define' lines. | |
f95e4495 | 40026 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
40027 | # Work around the forget-to-reset-the-flag bug. |
40028 | echo 't clr' >>$CONFIG_STATUS | |
40029 | echo ': clr' >>$CONFIG_STATUS | |
40030 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
40031 | echo 'CEOF | |
40032 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
40033 | rm -f $tmp/in | |
40034 | mv $tmp/out $tmp/in | |
40035 | ' >>$CONFIG_STATUS | |
40036 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
40037 | rm -f conftest.defines | |
40038 | mv conftest.tail conftest.defines | |
40039 | done | |
40040 | rm -f conftest.defines | |
40041 | echo ' fi # grep' >>$CONFIG_STATUS | |
40042 | echo >>$CONFIG_STATUS | |
10f2d63a | 40043 | |
e6cc62c6 VS |
40044 | # Break up conftest.undefs because some shells have a limit on the size |
40045 | # of here documents, and old seds have small limits too (100 cmds). | |
40046 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 40047 | rm -f conftest.tail |
e6cc62c6 | 40048 | while grep . conftest.undefs >/dev/null |
10f2d63a | 40049 | do |
e6cc62c6 VS |
40050 | # Write a limited-size here document to $tmp/undefs.sed. |
40051 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
40052 | # Speed up: don't consider the non `#undef' | |
f95e4495 | 40053 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
40054 | # Work around the forget-to-reset-the-flag bug. |
40055 | echo 't clr' >>$CONFIG_STATUS | |
40056 | echo ': clr' >>$CONFIG_STATUS | |
40057 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 40058 | echo 'CEOF |
e6cc62c6 VS |
40059 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
40060 | rm -f $tmp/in | |
40061 | mv $tmp/out $tmp/in | |
40062 | ' >>$CONFIG_STATUS | |
40063 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
40064 | rm -f conftest.undefs | |
40065 | mv conftest.tail conftest.undefs | |
10f2d63a | 40066 | done |
e6cc62c6 VS |
40067 | rm -f conftest.undefs |
40068 | ||
40069 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40070 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
40071 | # use $as_me), people would be surprised to read: | |
40072 | # /* config.h. Generated by config.status. */ | |
40073 | if test x"$ac_file" = x-; then | |
40074 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 40075 | else |
e6cc62c6 | 40076 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 40077 | fi |
e6cc62c6 VS |
40078 | cat $tmp/in >>$tmp/config.h |
40079 | rm -f $tmp/in | |
40080 | if test x"$ac_file" != x-; then | |
40081 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
40082 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
40083 | echo "$as_me: $ac_file is unchanged" >&6;} | |
40084 | else | |
40085 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
40086 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
40087 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
40088 | X"$ac_file" : 'X\(//\)$' \| \ | |
40089 | X"$ac_file" : 'X\(/\)' \| \ | |
40090 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40091 | echo X"$ac_file" | |
40092 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40093 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40094 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40095 | /^X\(\/\).*/{ s//\1/; q; } | |
40096 | s/.*/./; q'` | |
40097 | { if $as_mkdir_p; then | |
40098 | mkdir -p "$ac_dir" | |
40099 | else | |
40100 | as_dir="$ac_dir" | |
40101 | as_dirs= | |
40102 | while test ! -d "$as_dir"; do | |
40103 | as_dirs="$as_dir $as_dirs" | |
40104 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40105 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
40106 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40107 | X"$as_dir" : 'X\(//\)$' \| \ | |
40108 | X"$as_dir" : 'X\(/\)' \| \ | |
40109 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40110 | echo X"$as_dir" | |
40111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40112 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40113 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40114 | /^X\(\/\).*/{ s//\1/; q; } | |
40115 | s/.*/./; q'` | |
40116 | done | |
40117 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40118 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40119 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40120 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 40121 | |
e6cc62c6 VS |
40122 | rm -f $ac_file |
40123 | mv $tmp/config.h $ac_file | |
40124 | fi | |
40125 | else | |
40126 | cat $tmp/config.h | |
40127 | rm -f $tmp/config.h | |
40128 | fi | |
40129 | done | |
40130 | _ACEOF | |
40131 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 40132 | |
e6cc62c6 VS |
40133 | # |
40134 | # CONFIG_COMMANDS section. | |
40135 | # | |
40136 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
40137 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
40138 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40139 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
40140 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
40141 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
40142 | X"$ac_dest" : 'X\(//\)$' \| \ | |
40143 | X"$ac_dest" : 'X\(/\)' \| \ | |
40144 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40145 | echo X"$ac_dest" | |
40146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40147 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40148 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40149 | /^X\(\/\).*/{ s//\1/; q; } | |
40150 | s/.*/./; q'` | |
f95e4495 VS |
40151 | { if $as_mkdir_p; then |
40152 | mkdir -p "$ac_dir" | |
40153 | else | |
40154 | as_dir="$ac_dir" | |
40155 | as_dirs= | |
40156 | while test ! -d "$as_dir"; do | |
40157 | as_dirs="$as_dir $as_dirs" | |
40158 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40159 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40160 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
40161 | X"$as_dir" : 'X\(//\)$' \| \ | |
40162 | X"$as_dir" : 'X\(/\)' \| \ | |
40163 | . : '\(.\)' 2>/dev/null || | |
40164 | echo X"$as_dir" | | |
40165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40167 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40168 | /^X\(\/\).*/{ s//\1/; q; } | |
40169 | s/.*/./; q'` | |
40170 | done | |
40171 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40172 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40173 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40174 | { (exit 1); exit 1; }; }; } | |
40175 | ||
e6cc62c6 VS |
40176 | ac_builddir=. |
40177 | ||
40178 | if test "$ac_dir" != .; then | |
40179 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40180 | # A "../" for each directory in $ac_dir_suffix. | |
40181 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40182 | else | |
40183 | ac_dir_suffix= ac_top_builddir= | |
40184 | fi | |
40185 | ||
40186 | case $srcdir in | |
40187 | .) # No --srcdir option. We are building in place. | |
40188 | ac_srcdir=. | |
40189 | if test -z "$ac_top_builddir"; then | |
40190 | ac_top_srcdir=. | |
40191 | else | |
40192 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40193 | fi ;; | |
40194 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40195 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40196 | ac_top_srcdir=$srcdir ;; | |
40197 | *) # Relative path. | |
40198 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40199 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40200 | esac | |
f95e4495 VS |
40201 | |
40202 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
40203 | # the directories may not exist. | |
40204 | case `pwd` in | |
40205 | .) ac_abs_builddir="$ac_dir";; | |
40206 | *) | |
40207 | case "$ac_dir" in | |
40208 | .) ac_abs_builddir=`pwd`;; | |
40209 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
40210 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
40211 | esac;; | |
40212 | esac | |
40213 | case $ac_abs_builddir in | |
40214 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40215 | *) | |
40216 | case ${ac_top_builddir}. in | |
40217 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
40218 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40219 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
40220 | esac;; | |
40221 | esac | |
40222 | case $ac_abs_builddir in | |
40223 | .) ac_abs_srcdir=$ac_srcdir;; | |
40224 | *) | |
40225 | case $ac_srcdir in | |
40226 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
40227 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40228 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
40229 | esac;; | |
40230 | esac | |
40231 | case $ac_abs_builddir in | |
40232 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40233 | *) | |
40234 | case $ac_top_srcdir in | |
40235 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
40236 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40237 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
40238 | esac;; | |
40239 | esac | |
e6cc62c6 VS |
40240 | |
40241 | ||
40242 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
40243 | echo "$as_me: executing $ac_dest commands" >&6;} | |
40244 | case $ac_dest in | |
40245 | default ) | |
652d930d | 40246 | if test ! -h wx-config; then |
991a5759 | 40247 | chmod +x wx-config |
3a922bb4 RL |
40248 | mv wx-config wx${TOOLCHAIN_NAME}-config |
40249 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 40250 | fi |
665bbe97 | 40251 | |
00cf1208 RR |
40252 | if test ! -d lib; then |
40253 | mkdir lib | |
40254 | fi | |
40255 | if test ! -d lib/wx; then | |
40256 | mkdir lib/wx | |
40257 | fi | |
40258 | if test ! -d lib/wx/include; then | |
40259 | mkdir lib/wx/include | |
40260 | fi | |
3a922bb4 RL |
40261 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
40262 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 40263 | fi |
3a922bb4 RL |
40264 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
40265 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
40266 | fi |
40267 | if test -f setup.h; then | |
3a922bb4 | 40268 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 40269 | fi |
e6cc62c6 VS |
40270 | ;; |
40271 | esac | |
40272 | done | |
40273 | _ACEOF | |
2224580a | 40274 | |
e6cc62c6 | 40275 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 40276 | |
e6cc62c6 VS |
40277 | { (exit 0); exit 0; } |
40278 | _ACEOF | |
40279 | chmod +x $CONFIG_STATUS | |
40280 | ac_clean_files=$ac_clean_files_save | |
40281 | ||
40282 | ||
40283 | # configure is writing to config.log, and then calls config.status. | |
40284 | # config.status does its own redirection, appending to config.log. | |
40285 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40286 | # by configure, so config.status won't be able to write to it; its | |
40287 | # output is simply discarded. So we exec the FD to /dev/null, | |
40288 | # effectively closing config.log, so it can be properly (re)opened and | |
40289 | # appended to by config.status. When coming back to configure, we | |
40290 | # need to make the FD available again. | |
40291 | if test "$no_create" != yes; then | |
40292 | ac_cs_success=: | |
40293 | ac_config_status_args= | |
40294 | test "$silent" = yes && | |
40295 | ac_config_status_args="$ac_config_status_args --quiet" | |
40296 | exec 5>/dev/null | |
40297 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40298 | exec 5>>config.log | |
40299 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40300 | # would make configure fail if this is the last instruction. | |
40301 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
40302 | fi |
40303 | ||
672abd7a VS |
40304 | # |
40305 | # CONFIG_SUBDIRS section. | |
40306 | # | |
40307 | if test "$no_recursion" != yes; then | |
40308 | ||
40309 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
40310 | ac_sub_configure_args= | |
40311 | ac_prev= | |
40312 | for ac_arg in $ac_configure_args; do | |
40313 | if test -n "$ac_prev"; then | |
40314 | ac_prev= | |
40315 | continue | |
40316 | fi | |
40317 | case $ac_arg in | |
40318 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
40319 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
40320 | ac_prev=cache_file ;; | |
40321 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
40322 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
40323 | | --c=*) | |
40324 | ;; | |
40325 | --config-cache | -C) | |
40326 | ;; | |
40327 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
40328 | ac_prev=srcdir ;; | |
40329 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40330 | ;; | |
40331 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
40332 | ac_prev=prefix ;; | |
40333 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40334 | ;; | |
40335 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
40336 | esac | |
40337 | done | |
40338 | ||
40339 | # Always prepend --prefix to ensure using the same prefix | |
40340 | # in subdir configurations. | |
40341 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
40342 | ||
40343 | ac_popdir=`pwd` | |
40344 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
40345 | ||
40346 | # Do not complain, so a configure script can configure whichever | |
40347 | # parts of a large source tree are present. | |
40348 | test -d $srcdir/$ac_dir || continue | |
40349 | ||
40350 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
40351 | echo "$as_me: configuring in $ac_dir" >&6;} | |
40352 | { if $as_mkdir_p; then | |
40353 | mkdir -p "$ac_dir" | |
40354 | else | |
40355 | as_dir="$ac_dir" | |
40356 | as_dirs= | |
40357 | while test ! -d "$as_dir"; do | |
40358 | as_dirs="$as_dir $as_dirs" | |
40359 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40360 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f95e4495 VS |
40361 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40362 | X"$as_dir" : 'X\(//\)$' \| \ | |
40363 | X"$as_dir" : 'X\(/\)' \| \ | |
40364 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
40365 | echo X"$as_dir" | |
40366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40367 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40368 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40369 | /^X\(\/\).*/{ s//\1/; q; } | |
40370 | s/.*/./; q'` | |
40371 | done | |
40372 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40373 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40374 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40375 | { (exit 1); exit 1; }; }; } | |
40376 | ||
40377 | ac_builddir=. | |
40378 | ||
40379 | if test "$ac_dir" != .; then | |
40380 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40381 | # A "../" for each directory in $ac_dir_suffix. | |
40382 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40383 | else | |
40384 | ac_dir_suffix= ac_top_builddir= | |
40385 | fi | |
40386 | ||
40387 | case $srcdir in | |
40388 | .) # No --srcdir option. We are building in place. | |
40389 | ac_srcdir=. | |
40390 | if test -z "$ac_top_builddir"; then | |
40391 | ac_top_srcdir=. | |
40392 | else | |
40393 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40394 | fi ;; | |
40395 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40396 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40397 | ac_top_srcdir=$srcdir ;; | |
40398 | *) # Relative path. | |
40399 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40400 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40401 | esac | |
f95e4495 VS |
40402 | |
40403 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
40404 | # the directories may not exist. | |
40405 | case `pwd` in | |
40406 | .) ac_abs_builddir="$ac_dir";; | |
40407 | *) | |
40408 | case "$ac_dir" in | |
40409 | .) ac_abs_builddir=`pwd`;; | |
40410 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
40411 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
40412 | esac;; | |
40413 | esac | |
40414 | case $ac_abs_builddir in | |
40415 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40416 | *) | |
40417 | case ${ac_top_builddir}. in | |
40418 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
40419 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40420 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
40421 | esac;; | |
40422 | esac | |
40423 | case $ac_abs_builddir in | |
40424 | .) ac_abs_srcdir=$ac_srcdir;; | |
40425 | *) | |
40426 | case $ac_srcdir in | |
40427 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
40428 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40429 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
40430 | esac;; | |
40431 | esac | |
40432 | case $ac_abs_builddir in | |
40433 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40434 | *) | |
40435 | case $ac_top_srcdir in | |
40436 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
40437 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40438 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
40439 | esac;; | |
40440 | esac | |
672abd7a VS |
40441 | |
40442 | ||
40443 | cd $ac_dir | |
40444 | ||
40445 | # Check for guested configure; otherwise get Cygnus style configure. | |
40446 | if test -f $ac_srcdir/configure.gnu; then | |
40447 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
40448 | elif test -f $ac_srcdir/configure; then | |
40449 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
40450 | elif test -f $ac_srcdir/configure.in; then | |
40451 | ac_sub_configure=$ac_configure | |
40452 | else | |
40453 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
40454 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
40455 | ac_sub_configure= | |
40456 | fi | |
40457 | ||
40458 | # The recursion is here. | |
40459 | if test -n "$ac_sub_configure"; then | |
40460 | # Make the cache file name correct relative to the subdirectory. | |
40461 | case $cache_file in | |
40462 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
40463 | *) # Relative path. | |
f95e4495 | 40464 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
40465 | esac |
40466 | ||
40467 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
40468 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
40469 | # The eval makes quoting arguments work. | |
40470 | eval $ac_sub_configure $ac_sub_configure_args \ | |
f95e4495 VS |
40471 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
40472 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
40473 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
40474 | { (exit 1); exit 1; }; } | |
40475 | fi | |
40476 | ||
40477 | cd $ac_popdir | |
40478 | done | |
40479 | fi | |
40480 | ||
8284b0c5 | 40481 | |
2b5f62a0 VZ |
40482 | echo |
40483 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
40484 | echo "" | |
89fe663f | 40485 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 40486 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
40487 | |
40488 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
40489 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
40490 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
40491 | ||
0c98a14e | 40492 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
40493 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
40494 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 40495 | |
2b5f62a0 VZ |
40496 | echo " Which libraries should wxWindows use?" |
40497 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
40498 | echo " png ${wxUSE_LIBPNG-none}" | |
40499 | echo " regex ${wxUSE_REGEX}" | |
40500 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
40501 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
40502 | echo " xpm ${wxUSE_LIBXPM-none}" | |
40503 | fi | |
2b5f62a0 | 40504 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 40505 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 40506 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 40507 | echo " libmspack ${wxUSE_LIBMSPACK}" |
2b5f62a0 VZ |
40508 | |
40509 | echo "" | |
40510 |