]>
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. | |
4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0. | |
5 | # | |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
fe0895cf | 9 | # Free Software Foundation, Inc. |
e6cc62c6 VS |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 VS |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
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 | |
47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
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 | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf | 231 | |
e6cc62c6 VS |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
672abd7a | 314 | ac_subdirs_all="$ac_subdirs_all src/expat" |
40b46a49 | 315 | 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_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 INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE 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_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_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_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_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_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_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 MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 316 | ac_subst_files='' |
10f2d63a VZ |
317 | |
318 | # Initialize some variables set by options. | |
e6cc62c6 VS |
319 | ac_init_help= |
320 | ac_init_version=false | |
10f2d63a VZ |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
e6cc62c6 | 323 | cache_file=/dev/null |
10f2d63a | 324 | exec_prefix=NONE |
10f2d63a | 325 | no_create= |
10f2d63a VZ |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
10f2d63a VZ |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
e6cc62c6 VS |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
10f2d63a VZ |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
10f2d63a VZ |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
e6cc62c6 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
e6cc62c6 | 370 | case $ac_option in |
10f2d63a VZ |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 375 | bindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 378 | ac_prev=build_alias ;; |
10f2d63a | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 380 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
10f2d63a VZ |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
e6cc62c6 | 396 | datadir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -disable-* | --disable-*) | |
e6cc62c6 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 400 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
406 | |
407 | -enable-* | --enable-*) | |
e6cc62c6 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 409 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
416 | *) ac_optarg=yes ;; |
417 | esac | |
e6cc62c6 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 427 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
e6cc62c6 VS |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
10f2d63a VZ |
439 | |
440 | -host | --host | --hos | --ho) | |
e6cc62c6 | 441 | ac_prev=host_alias ;; |
10f2d63a | 442 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 443 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 450 | includedir=$ac_optarg ;; |
10f2d63a VZ |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 455 | infodir=$ac_optarg ;; |
10f2d63a VZ |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 460 | libdir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 467 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 476 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 481 | mandir=$ac_optarg ;; |
10f2d63a VZ |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 488 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 502 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 507 | prefix=$ac_optarg ;; |
10f2d63a VZ |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 514 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 521 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 538 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
e6cc62c6 | 548 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
e6cc62c6 | 559 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 564 | site=$ac_optarg ;; |
10f2d63a VZ |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 569 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 576 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 579 | ac_prev=target_alias ;; |
10f2d63a | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 581 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
e6cc62c6 VS |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
10f2d63a VZ |
588 | |
589 | -with-* | --with-*) | |
e6cc62c6 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 591 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
10f2d63a | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
598 | *) ac_optarg=yes ;; |
599 | esac | |
e6cc62c6 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
601 | |
602 | -without-* | --without-*) | |
e6cc62c6 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 604 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 620 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 627 | x_libraries=$ac_optarg ;; |
10f2d63a | 628 | |
e6cc62c6 VS |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
632 | ;; |
633 | ||
e6cc62c6 VS |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
10f2d63a | 644 | *) |
e6cc62c6 VS |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
a0b9e27f | 659 | fi |
a0b9e27f | 660 | |
e6cc62c6 VS |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
8284b0c5 | 671 | |
e6cc62c6 VS |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 675 | do |
e6cc62c6 VS |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
681 | esac |
682 | done | |
683 | ||
e6cc62c6 VS |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
247f5006 | 701 | |
e6cc62c6 VS |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 706 | |
10f2d63a VZ |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
10f2d63a VZ |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
10f2d63a | 735 | else |
e6cc62c6 VS |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
738 | fi |
739 | fi | |
e6cc62c6 VS |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ac_env_CXX_set=${CXX+set} | |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
784 | ac_env_CXXCPP_set=${CXXCPP+set} | |
785 | ac_env_CXXCPP_value=$CXXCPP | |
786 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
787 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 788 | |
e6cc62c6 VS |
789 | # |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
796 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
10f2d63a | 797 | |
e6cc62c6 | 798 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 799 | |
e6cc62c6 VS |
800 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
801 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 802 | |
e6cc62c6 VS |
803 | Defaults for the options are specified in brackets. |
804 | ||
805 | Configuration: | |
806 | -h, --help display this help and exit | |
807 | --help=short display options specific to this package | |
808 | --help=recursive display the short help of all the included packages | |
809 | -V, --version display version information and exit | |
810 | -q, --quiet, --silent do not print \`checking...' messages | |
811 | --cache-file=FILE cache test results in FILE [disabled] | |
812 | -C, --config-cache alias for \`--cache-file=config.cache' | |
813 | -n, --no-create do not create output files | |
814 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
815 | ||
816 | _ACEOF | |
817 | ||
818 | cat <<_ACEOF | |
819 | Installation directories: | |
820 | --prefix=PREFIX install architecture-independent files in PREFIX | |
821 | [$ac_default_prefix] | |
822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
823 | [PREFIX] | |
824 | ||
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
862 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
863 | esac | |
864 | cat <<\_ACEOF | |
865 | ||
866 | Optional Features: | |
867 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
868 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
869 | --enable-gui use GUI classes | |
9747f85d | 870 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
871 | --enable-universal use wxWindows GUI controls instead of native ones |
872 | --enable-nanox use NanoX | |
873 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
874 | --enable-shared create shared library code | |
e6cc62c6 VS |
875 | --enable-optimise create optimised code |
876 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 877 | --enable-stl use STL for containers |
e6cc62c6 VS |
878 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
879 | --enable-debug_info create code with debugging information | |
880 | --enable-debug_gdb create code with extra GDB debugging information | |
881 | --enable-debug_cntxt use wxDebugContext | |
882 | --enable-mem_tracing create code with memory tracing | |
883 | --enable-profile create code with profiling information | |
884 | --enable-no_rtti create code without RTTI information | |
885 | --enable-no_exceptions create code without C++ exceptions handling | |
886 | --enable-permissive compile code disregarding strict ANSI | |
887 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
888 | --enable-compat22 enable wxWindows 2.2 compatibility |
889 | --disable-compat24 disable wxWindows 2.4 compatibility | |
890 | --enable-rpath=DIR output the rpath flag from wx-config | |
891 | --enable-intl use internationalization system | |
892 | --enable-config use wxConfig (and derived) classes | |
893 | --enable-protocols use wxProtocol and derived classes | |
894 | --enable-ftp use wxFTP (requires wxProtocol | |
895 | --enable-http use wxHTTP (requires wxProtocol | |
896 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
897 | --enable-sockets use socket/network classes | |
898 | --enable-ole use OLE classes | |
899 | --enable-dataobj use data object classes | |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
901 | --enable-cmdline use wxCmdLineParser class | |
902 | --enable-datetime use wxDateTime class | |
903 | --enable-stopwatch use wxStopWatch class | |
904 | --enable-dialupman use dialup network classes | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-timer use wxTimer class | |
907 | --enable-wave use wxWave class | |
908 | --enable-fraction use wxFraction class | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-longlong use wxLongLong class | |
912 | --enable-geometry use geometry class | |
913 | --enable-log use logging system | |
914 | --enable-streams use wxStream etc classes | |
915 | --enable-file use wxFile classes | |
916 | --enable-ffile use wxFFile classes | |
917 | --enable-textbuf use wxTextBuffer class | |
918 | --enable-textfile use wxTextFile class | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-unicode compile wxString with Unicode support | |
921 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
922 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
923 | --enable-std_iostreams use standard C++ stream classes | |
924 | --enable-filesystem use virtual file systems classes | |
925 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
926 | --enable-fs_zip use virtual ZIP filesystems | |
927 | --enable-zipstream use wxZipInputStream | |
928 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
929 | --enable-snglinst use wxSingleInstanceChecker class | |
930 | --enable-mimetype use wxMimeTypesManager | |
931 | --enable-sysoptions use wxSystemOptions | |
932 | --enable-url use wxURL class | |
933 | --enable-protocol use wxProtocol class | |
934 | --enable-protocol-http HTTP support in wxProtocol | |
935 | --enable-protocol-ftp FTP support in wxProtocol | |
936 | --enable-protocol-file FILE support in wxProtocol | |
937 | --enable-threads use threads | |
938 | --enable-docview use document view architecture | |
939 | --enable-help use help subsystem | |
940 | --enable-mshtmlhelp use MS HTML Help (win32) | |
941 | --enable-html use wxHTML sub-library | |
942 | --enable-htmlhelp use wxHTML-based help | |
943 | --enable-constraints use layout-constraints system | |
944 | --enable-printarch use printing architecture | |
945 | --enable-mdi use multiple document interface architecture | |
946 | --enable-loggui use standard GUI logger | |
947 | --enable-logwin use wxLogWindow | |
948 | --enable-logdialog use wxLogDialog | |
949 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
950 | --enable-prologio not available; see contrib | |
951 | --enable-resources not available; see contrib | |
952 | --enable-clipboard use wxClipboard class | |
953 | --enable-dnd use Drag'n'Drop classes | |
954 | --enable-metafile use win32 metafiles | |
955 | --enable-controls use all usual controls | |
956 | --enable-accel use accelerators | |
957 | --enable-button use wxButton class | |
958 | --enable-bmpbutton use wxBitmapButton class | |
959 | --enable-calendar use wxCalendarCtrl class | |
960 | --enable-caret use wxCaret class | |
961 | --enable-checkbox use wxCheckBox class | |
962 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
963 | --enable-choice use wxChoice class | |
964 | --enable-combobox use wxComboBox class | |
965 | --enable-display use wxDisplay class | |
966 | --enable-gauge use wxGauge class | |
967 | --enable-grid use wxGrid class | |
968 | --enable-imaglist use wxImageList class | |
969 | --enable-listbox use wxListBox class | |
970 | --enable-listctrl use wxListCtrl class | |
971 | --enable-notebook use wxNotebook class | |
972 | --enable-radiobox use wxRadioBox class | |
973 | --enable-radiobtn use wxRadioButton class | |
974 | --enable-sash use wxSashWindow class | |
975 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
976 | --enable-slider use wxSlider class | |
977 | --enable-spinbtn use wxSpinButton class | |
978 | --enable-spinctrl use wxSpinCtrl class | |
979 | --enable-splitter use wxSplitterWindow class | |
980 | --enable-statbmp use wxStaticBitmap class | |
981 | --enable-statbox use wxStaticBox class | |
982 | --enable-statline use wxStaticLine class | |
983 | --enable-stattext use wxStaticText class | |
984 | --enable-statusbar use wxStatusBar class | |
985 | --enable-tabdialog use wxTabControl class | |
986 | --enable-textctrl use wxTextCtrl class | |
987 | --enable-togglebtn use wxToggleButton class | |
988 | --enable-toolbar use wxToolBar class | |
989 | --enable-tbarnative use native wxToolBar class | |
990 | --enable-tbarsmpl use wxToolBarSimple class | |
991 | --enable-treectrl use wxTreeCtrl class | |
992 | --enable-tipwindow use wxTipWindow class | |
993 | --enable-popupwin use wxPopUpWindow class | |
994 | --enable-commondlg use all common dialogs | |
995 | --enable-choicedlg use wxChoiceDialog | |
996 | --enable-coldlg use wxColourDialog | |
997 | --enable-filedlg use wxFileDialog | |
998 | --enable-finddlg use wxFindReplaceDialog | |
999 | --enable-fontdlg use wxFontDialog | |
1000 | --enable-dirdlg use wxDirDialog | |
1001 | --enable-msgdlg use wxMessageDialog | |
1002 | --enable-numberdlg use wxNumberEntryDialog | |
1003 | --enable-splash use wxSplashScreen | |
1004 | --enable-textdlg use wxTextDialog | |
1005 | --enable-tipdlg use startup tips | |
1006 | --enable-progressdlg use wxProgressDialog | |
1007 | --enable-wizarddlg use wxWizard | |
1008 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1009 | --enable-miniframe use wxMiniFrame class | |
1010 | --enable-tooltips use wxToolTip class | |
1011 | --enable-splines use spline drawing code | |
1012 | --enable-validators use wxValidator and derived classes | |
1013 | --enable-busyinfo use wxBusyInfo | |
1014 | --enable-joystick use wxJoystick (Linux only) | |
1015 | --enable-metafiles use wxMetaFile (Windows only) | |
1016 | --enable-dragimage use wxDragImage | |
1017 | --enable-accessibility enable accessibility support | |
1018 | --enable-palette use wxPalette class | |
1019 | --enable-image use wxImage class | |
1020 | --enable-gif use gif images (GIF file format) | |
1021 | --enable-pcx use pcx images (PCX file format) | |
1022 | --enable-iff use iff images (IFF file format) | |
1023 | --enable-pnm use pnm images (PNM file format) | |
1024 | --enable-xpm use xpm images (XPM file format) | |
1025 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1026 | --enable-official_build official build of wxWindows (win32 DLL only) |
1027 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1028 | --disable-largefile omit support for large files |
1029 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1030 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1031 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1032 | |
1033 | Optional Packages: | |
1034 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1035 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1036 | --with-gtk use GTK+ | |
1037 | --with-motif use Motif/Lesstif | |
1038 | --with-mac use Mac OS X | |
1039 | --with-cocoa use Cocoa | |
1040 | --with-wine use Wine | |
1041 | --with-msw use MS-Windows | |
1042 | --with-pm use OS/2 Presentation Manager | |
1043 | --with-mgl use SciTech MGL | |
1044 | --with-microwin use MicroWindows | |
1045 | --with-x11 use X11 | |
1046 | --with-libpng use libpng (PNG image format) | |
1047 | --with-libjpeg use libjpeg (JPEG file format) | |
1048 | --with-libtiff use libtiff (TIFF file format) | |
1049 | --with-opengl use OpenGL (or Mesa) | |
1050 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1051 | --with-regex enable support for wxRegEx class | |
1052 | --with-zlib use zlib for LZW compression | |
1053 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1054 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1055 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1056 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1057 | --with-x use the X Window System | |
1058 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1059 | ||
1060 | Some influential environment variables: | |
1061 | CC C compiler command | |
1062 | CFLAGS C compiler flags | |
1063 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1064 | nonstandard directory <lib dir> | |
1065 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1066 | headers in a nonstandard directory <include dir> | |
1067 | CPP C preprocessor | |
1068 | CXX C++ compiler command | |
1069 | CXXFLAGS C++ compiler flags | |
1070 | CXXCPP C++ preprocessor | |
1071 | ||
1072 | Use these variables to override the choices made by `configure' or to help | |
1073 | it to find libraries and programs with nonstandard names/locations. | |
1074 | ||
1075 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1076 | _ACEOF | |
1077 | fi | |
1078 | ||
1079 | if test "$ac_init_help" = "recursive"; then | |
1080 | # If there are subdirs, report their specific --help. | |
1081 | ac_popdir=`pwd` | |
1082 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1083 | test -d $ac_dir || continue | |
1084 | ac_builddir=. | |
1085 | ||
1086 | if test "$ac_dir" != .; then | |
1087 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1088 | # A "../" for each directory in $ac_dir_suffix. | |
1089 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1090 | else | |
1091 | ac_dir_suffix= ac_top_builddir= | |
1092 | fi | |
1093 | ||
1094 | case $srcdir in | |
1095 | .) # No --srcdir option. We are building in place. | |
1096 | ac_srcdir=. | |
1097 | if test -z "$ac_top_builddir"; then | |
1098 | ac_top_srcdir=. | |
1099 | else | |
1100 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1101 | fi ;; | |
1102 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1103 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1104 | ac_top_srcdir=$srcdir ;; | |
1105 | *) # Relative path. | |
1106 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1107 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1108 | esac | |
1109 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1110 | # absolute. | |
1111 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1112 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1113 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1114 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1115 | ||
1116 | cd $ac_dir | |
1117 | # Check for guested configure; otherwise get Cygnus style configure. | |
1118 | if test -f $ac_srcdir/configure.gnu; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1121 | elif test -f $ac_srcdir/configure; then | |
1122 | echo | |
1123 | $SHELL $ac_srcdir/configure --help=recursive | |
1124 | elif test -f $ac_srcdir/configure.ac || | |
1125 | test -f $ac_srcdir/configure.in; then | |
1126 | echo | |
1127 | $ac_configure --help | |
1128 | else | |
1129 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1130 | fi | |
1131 | cd $ac_popdir | |
1132 | done | |
1133 | fi | |
8284b0c5 | 1134 | |
e6cc62c6 VS |
1135 | test -n "$ac_init_help" && exit 0 |
1136 | if $ac_init_version; then | |
1137 | cat <<\_ACEOF | |
1138 | wxWindows configure 2.5.0 | |
1139 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1140 | |
e6cc62c6 VS |
1141 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1142 | Free Software Foundation, Inc. | |
1143 | This configure script is free software; the Free Software Foundation | |
1144 | gives unlimited permission to copy, distribute and modify it. | |
1145 | _ACEOF | |
1146 | exit 0 | |
7c66a493 | 1147 | fi |
e6cc62c6 VS |
1148 | exec 5>config.log |
1149 | cat >&5 <<_ACEOF | |
1150 | This file contains any messages produced by compilers while | |
1151 | running configure, to aid debugging if configure makes a mistake. | |
1152 | ||
1153 | It was created by wxWindows $as_me 2.5.0, which was | |
1154 | generated by GNU Autoconf 2.57. Invocation command line was | |
1155 | ||
1156 | $ $0 $@ | |
1157 | ||
1158 | _ACEOF | |
1159 | { | |
1160 | cat <<_ASUNAME | |
1161 | ## --------- ## | |
1162 | ## Platform. ## | |
1163 | ## --------- ## | |
1164 | ||
1165 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1166 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1167 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1168 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1169 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1170 | ||
1171 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1172 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1173 | ||
1174 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1176 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1177 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1178 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1180 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1181 | ||
1182 | _ASUNAME | |
1183 | ||
1184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1185 | for as_dir in $PATH | |
1186 | do | |
1187 | IFS=$as_save_IFS | |
1188 | test -z "$as_dir" && as_dir=. | |
1189 | echo "PATH: $as_dir" | |
1190 | done | |
1191 | ||
1192 | } >&5 | |
1193 | ||
1194 | cat >&5 <<_ACEOF | |
1195 | ||
1196 | ||
1197 | ## ----------- ## | |
1198 | ## Core tests. ## | |
1199 | ## ----------- ## | |
1200 | ||
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | # Keep a trace of the command line. | |
1205 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1206 | # Strip out --silent because we don't want to record it for future runs. | |
1207 | # Also quote any args containing shell meta-characters. | |
1208 | # Make two passes to allow for proper duplicate-argument suppression. | |
1209 | ac_configure_args= | |
1210 | ac_configure_args0= | |
1211 | ac_configure_args1= | |
1212 | ac_sep= | |
1213 | ac_must_keep_next=false | |
1214 | for ac_pass in 1 2 | |
1215 | do | |
1216 | for ac_arg | |
1217 | do | |
1218 | case $ac_arg in | |
1219 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1220 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1221 | | -silent | --silent | --silen | --sile | --sil) | |
1222 | continue ;; | |
1223 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1224 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1225 | esac | |
1226 | case $ac_pass in | |
1227 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1228 | 2) | |
1229 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1230 | if test $ac_must_keep_next = true; then | |
1231 | ac_must_keep_next=false # Got value, back to normal. | |
1232 | else | |
1233 | case $ac_arg in | |
1234 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1235 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1236 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1237 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1238 | case "$ac_configure_args0 " in | |
1239 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1240 | esac | |
1241 | ;; | |
1242 | -* ) ac_must_keep_next=true ;; | |
1243 | esac | |
1244 | fi | |
1245 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1246 | # Get rid of the leading space. | |
1247 | ac_sep=" " | |
1248 | ;; | |
1249 | esac | |
1250 | done | |
1251 | done | |
1252 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1253 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1254 | ||
1255 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1256 | # config.log. We remove comments because anyway the quotes in there | |
1257 | # would cause problems or look ugly. | |
1258 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1259 | # such as our DU 5.0 friend, will then `close' the trap. | |
1260 | trap 'exit_status=$? | |
1261 | # Save into config.log some information that might help in debugging. | |
1262 | { | |
1263 | echo | |
1264 | ||
1265 | cat <<\_ASBOX | |
1266 | ## ---------------- ## | |
1267 | ## Cache variables. ## | |
1268 | ## ---------------- ## | |
1269 | _ASBOX | |
1270 | echo | |
1271 | # The following way of writing the cache mishandles newlines in values, | |
1272 | { | |
1273 | (set) 2>&1 | | |
1274 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1275 | *ac_space=\ *) | |
1276 | sed -n \ | |
1277 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1278 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1279 | ;; | |
1280 | *) | |
1281 | sed -n \ | |
1282 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1283 | ;; | |
1284 | esac; | |
1285 | } | |
1286 | echo | |
1287 | ||
1288 | cat <<\_ASBOX | |
1289 | ## ----------------- ## | |
1290 | ## Output variables. ## | |
1291 | ## ----------------- ## | |
1292 | _ASBOX | |
1293 | echo | |
1294 | for ac_var in $ac_subst_vars | |
1295 | do | |
1296 | eval ac_val=$`echo $ac_var` | |
1297 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1298 | done | sort | |
1299 | echo | |
1300 | ||
1301 | if test -n "$ac_subst_files"; then | |
1302 | cat <<\_ASBOX | |
1303 | ## ------------- ## | |
1304 | ## Output files. ## | |
1305 | ## ------------- ## | |
1306 | _ASBOX | |
1307 | echo | |
1308 | for ac_var in $ac_subst_files | |
1309 | do | |
1310 | eval ac_val=$`echo $ac_var` | |
1311 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1312 | done | sort | |
1313 | echo | |
1314 | fi | |
1315 | ||
1316 | if test -s confdefs.h; then | |
1317 | cat <<\_ASBOX | |
1318 | ## ----------- ## | |
1319 | ## confdefs.h. ## | |
1320 | ## ----------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | sed "/^$/d" confdefs.h | sort | |
1324 | echo | |
1325 | fi | |
1326 | test "$ac_signal" != 0 && | |
1327 | echo "$as_me: caught signal $ac_signal" | |
1328 | echo "$as_me: exit $exit_status" | |
1329 | } >&5 | |
1330 | rm -f core core.* *.core && | |
1331 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1332 | exit $exit_status | |
1333 | ' 0 | |
1334 | for ac_signal in 1 2 13 15; do | |
1335 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1336 | done | |
1337 | ac_signal=0 | |
1338 | ||
1339 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1340 | rm -rf conftest* confdefs.h | |
1341 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1342 | echo >confdefs.h | |
1343 | ||
1344 | # Predefined preprocessor variables. | |
1345 | ||
1346 | cat >>confdefs.h <<_ACEOF | |
1347 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1348 | _ACEOF | |
1349 | ||
1350 | ||
1351 | cat >>confdefs.h <<_ACEOF | |
1352 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1353 | _ACEOF | |
1354 | ||
1355 | ||
1356 | cat >>confdefs.h <<_ACEOF | |
1357 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1358 | _ACEOF | |
1359 | ||
1360 | ||
1361 | cat >>confdefs.h <<_ACEOF | |
1362 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1363 | _ACEOF | |
1364 | ||
1365 | ||
1366 | cat >>confdefs.h <<_ACEOF | |
1367 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1368 | _ACEOF | |
1369 | ||
1370 | ||
1371 | # Let the site file select an alternate cache file if it wants to. | |
1372 | # Prefer explicitly selected file to automatically selected ones. | |
1373 | if test -z "$CONFIG_SITE"; then | |
1374 | if test "x$prefix" != xNONE; then | |
1375 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1376 | else | |
1377 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1378 | fi | |
1379 | fi | |
1380 | for ac_site_file in $CONFIG_SITE; do | |
1381 | if test -r "$ac_site_file"; then | |
1382 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1383 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1384 | sed 's/^/| /' "$ac_site_file" >&5 | |
1385 | . "$ac_site_file" | |
1386 | fi | |
1387 | done | |
1388 | ||
1389 | if test -r "$cache_file"; then | |
1390 | # Some versions of bash will fail to source /dev/null (special | |
1391 | # files actually), so we avoid doing that. | |
1392 | if test -f "$cache_file"; then | |
1393 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1394 | echo "$as_me: loading cache $cache_file" >&6;} | |
1395 | case $cache_file in | |
1396 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1397 | *) . ./$cache_file;; | |
1398 | esac | |
1399 | fi | |
1400 | else | |
1401 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1402 | echo "$as_me: creating cache $cache_file" >&6;} | |
1403 | >$cache_file | |
1404 | fi | |
1405 | ||
1406 | # Check that the precious variables saved in the cache have kept the same | |
1407 | # value. | |
1408 | ac_cache_corrupted=false | |
1409 | for ac_var in `(set) 2>&1 | | |
1410 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1411 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1412 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1413 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1414 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1415 | case $ac_old_set,$ac_new_set in | |
1416 | set,) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,set) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,);; | |
1425 | *) | |
1426 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1427 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1428 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1429 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1430 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1431 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1432 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1433 | ac_cache_corrupted=: | |
1434 | fi;; | |
1435 | esac | |
1436 | # Pass precious variables to config.status. | |
1437 | if test "$ac_new_set" = set; then | |
1438 | case $ac_new_val in | |
1439 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1440 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1441 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1442 | esac | |
1443 | case " $ac_configure_args " in | |
1444 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1445 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1446 | esac | |
1447 | fi | |
1448 | done | |
1449 | if $ac_cache_corrupted; then | |
1450 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1451 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1452 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1453 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1454 | { (exit 1); exit 1; }; } | |
1455 | fi | |
1456 | ||
1457 | ac_ext=c | |
1458 | ac_cpp='$CPP $CPPFLAGS' | |
1459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
698dcdb6 | 1479 | |
8284b0c5 | 1480 | |
7c66a493 | 1481 | |
a0b9e27f MB |
1482 | |
1483 | ||
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
a0b9e27f | 1487 | |
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
e6cc62c6 VS |
1490 | |
1491 | ||
1492 | ac_aux_dir= | |
1493 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1494 | if test -f $ac_dir/install-sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/install.sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/shtool; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1505 | break | |
1506 | fi | |
1507 | done | |
1508 | if test -z "$ac_aux_dir"; then | |
1509 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1510 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1514 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1515 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1516 | ||
1517 | # Make sure we can run config.sub. | |
1518 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1519 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1520 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | ||
1523 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1524 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1525 | if test "${ac_cv_build+set}" = set; then | |
1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1527 | else | |
1528 | ac_cv_build_alias=$build_alias | |
1529 | test -z "$ac_cv_build_alias" && | |
1530 | ac_cv_build_alias=`$ac_config_guess` | |
1531 | test -z "$ac_cv_build_alias" && | |
1532 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1533 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1536 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1537 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ||
1540 | fi | |
1541 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1542 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1543 | build=$ac_cv_build | |
1544 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1545 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1546 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1547 | ||
1548 | ||
1549 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1550 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1551 | if test "${ac_cv_host+set}" = set; then | |
1552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1553 | else | |
1554 | ac_cv_host_alias=$host_alias | |
1555 | test -z "$ac_cv_host_alias" && | |
1556 | ac_cv_host_alias=$ac_cv_build_alias | |
1557 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1558 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1559 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1560 | { (exit 1); exit 1; }; } | |
1561 | ||
1562 | fi | |
1563 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1564 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1565 | host=$ac_cv_host | |
1566 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1567 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1568 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1569 | ||
1570 | ||
1571 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1572 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1573 | if test "${ac_cv_target+set}" = set; then | |
1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1575 | else | |
1576 | ac_cv_target_alias=$target_alias | |
1577 | test "x$ac_cv_target_alias" = "x" && | |
1578 | ac_cv_target_alias=$ac_cv_host_alias | |
1579 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1580 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1581 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1582 | { (exit 1); exit 1; }; } | |
1583 | ||
1584 | fi | |
1585 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1586 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1587 | target=$ac_cv_target | |
1588 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1589 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1590 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1591 | ||
1592 | ||
1593 | # The aliases save the names the user supplied, while $host etc. | |
1594 | # will get canonicalized. | |
1595 | test -n "$target_alias" && | |
7c66a493 VZ |
1596 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1597 | NONENONEs,x,x, && | |
1598 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1599 | |
1600 | ||
a0b9e27f | 1601 | |
10f2d63a | 1602 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1603 | WX_MINOR_VERSION_NUMBER=5 |
1604 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1605 | |
10f2d63a | 1606 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1607 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1608 | |
978f1259 RL |
1609 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1610 | ||
34bed6d9 | 1611 | WX_CURRENT=0 |
6426998c RL |
1612 | WX_REVISION=0 |
1613 | WX_AGE=0 | |
1614 | ||
8284b0c5 MB |
1615 | |
1616 | ||
10f2d63a VZ |
1617 | USE_UNIX=1 |
1618 | USE_WIN32=0 | |
f9bc1684 | 1619 | USE_DOS=0 |
b12915c1 | 1620 | USE_BEOS=0 |
1216f52d | 1621 | USE_MAC=0 |
b12915c1 | 1622 | |
10f2d63a | 1623 | USE_AIX= |
fe0895cf VS |
1624 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1625 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1626 | USE_LINUX= |
f6bcfd97 | 1627 | USE_NETBSD= |
89e3b3e4 | 1628 | USE_OPENBSD= |
fe0895cf VS |
1629 | USE_OSF= USE_SGI= |
1630 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1631 | USE_ULTRIX= |
89e3b3e4 VZ |
1632 | USE_UNIXWARE= |
1633 | ||
1634 | USE_ALPHA= | |
10f2d63a | 1635 | |
ab9b9eab VZ |
1636 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1637 | ||
ac0c4cc3 | 1638 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1639 | |
ac0c4cc3 | 1640 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1641 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1642 | DEFAULT_wxUSE_MAC=0 |
1643 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1644 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_MOTIF=0 |
1646 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1647 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1648 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1649 | |
ac0c4cc3 | 1650 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1651 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1652 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1653 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1654 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1655 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1656 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1657 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1658 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1659 | |
d6a55c4b | 1660 | PROGRAM_EXT= |
3a922bb4 | 1661 | SO_SUFFIX=so |
fe0895cf | 1662 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1663 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1664 | |
10f2d63a VZ |
1665 | case "${host}" in |
1666 | *-hp-hpux* ) | |
1667 | USE_HPUX=1 | |
1668 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1669 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1670 | SO_SUFFIX=sl |
e6cc62c6 | 1671 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1672 | #define __HPUX__ 1 |
e6cc62c6 | 1673 | _ACEOF |
10f2d63a VZ |
1674 | |
1675 | ;; | |
1676 | *-*-linux* ) | |
1677 | USE_LINUX=1 | |
e6cc62c6 | 1678 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1679 | #define __LINUX__ 1 |
e6cc62c6 | 1680 | _ACEOF |
10f2d63a VZ |
1681 | |
1682 | TMP=`uname -m` | |
1683 | if test "x$TMP" = "xalpha"; then | |
1684 | USE_ALPHA=1 | |
e6cc62c6 | 1685 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1686 | #define __ALPHA__ 1 |
e6cc62c6 | 1687 | _ACEOF |
fe0895cf VS |
1688 | |
1689 | fi | |
1690 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1691 | ;; | |
1692 | *-*-gnu* ) | |
1693 | USE_GNU=1 | |
e6cc62c6 | 1694 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1695 | #define __GNU__ 1 |
e6cc62c6 | 1696 | _ACEOF |
fe0895cf VS |
1697 | |
1698 | TMP=`uname -m` | |
1699 | if test "x$TMP" = "xalpha"; then | |
1700 | USE_ALPHA=1 | |
e6cc62c6 | 1701 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1702 | #define __ALPHA__ 1 |
e6cc62c6 | 1703 | _ACEOF |
10f2d63a VZ |
1704 | |
1705 | fi | |
1706 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1707 | ;; | |
1708 | *-*-irix5* | *-*-irix6* ) | |
1709 | USE_SGI=1 | |
1710 | USE_SVR4=1 | |
e6cc62c6 | 1711 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1712 | #define __SGI__ 1 |
e6cc62c6 | 1713 | _ACEOF |
10f2d63a | 1714 | |
e6cc62c6 | 1715 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1716 | #define __SVR4__ 1 |
e6cc62c6 | 1717 | _ACEOF |
10f2d63a VZ |
1718 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1720 | ;; | |
1721 | *-*-solaris2* ) | |
1722 | USE_SUN=1 | |
1723 | USE_SOLARIS=1 | |
1724 | USE_SVR4=1 | |
e6cc62c6 | 1725 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1726 | #define __SUN__ 1 |
e6cc62c6 | 1727 | _ACEOF |
10f2d63a | 1728 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1730 | #define __SOLARIS__ 1 |
e6cc62c6 | 1731 | _ACEOF |
10f2d63a | 1732 | |
e6cc62c6 | 1733 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1734 | #define __SVR4__ 1 |
e6cc62c6 | 1735 | _ACEOF |
10f2d63a VZ |
1736 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1738 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1739 | ;; |
1740 | *-*-sunos4* ) | |
1741 | USE_SUN=1 | |
1742 | USE_SUNOS=1 | |
1743 | USE_BSD=1 | |
e6cc62c6 | 1744 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1745 | #define __SUN__ 1 |
e6cc62c6 | 1746 | _ACEOF |
10f2d63a | 1747 | |
e6cc62c6 | 1748 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1749 | #define __SUNOS__ 1 |
e6cc62c6 | 1750 | _ACEOF |
10f2d63a | 1751 | |
e6cc62c6 | 1752 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1753 | #define __BSD__ 1 |
e6cc62c6 | 1754 | _ACEOF |
10f2d63a VZ |
1755 | |
1756 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1757 | ;; | |
f6bcfd97 | 1758 | *-*-freebsd*) |
10f2d63a VZ |
1759 | USE_BSD=1 |
1760 | USE_FREEBSD=1 | |
e6cc62c6 | 1761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1762 | #define __FREEBSD__ 1 |
e6cc62c6 | 1763 | _ACEOF |
10f2d63a | 1764 | |
e6cc62c6 | 1765 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1766 | #define __BSD__ 1 |
e6cc62c6 | 1767 | _ACEOF |
95c8801c VS |
1768 | |
1769 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1770 | ;; | |
1771 | *-*-openbsd*) | |
1772 | USE_BSD=1 | |
1773 | USE_OPENBSD=1 | |
e6cc62c6 | 1774 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1775 | #define __OPENBSD__ 1 |
e6cc62c6 | 1776 | _ACEOF |
95c8801c | 1777 | |
e6cc62c6 | 1778 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1779 | #define __BSD__ 1 |
e6cc62c6 | 1780 | _ACEOF |
f6bcfd97 BP |
1781 | |
1782 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1783 | ;; | |
1784 | *-*-netbsd*) | |
1785 | USE_BSD=1 | |
1786 | USE_NETBSD=1 | |
e6cc62c6 | 1787 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1788 | #define __NETBSD__ 1 |
e6cc62c6 | 1789 | _ACEOF |
f6bcfd97 | 1790 | |
e6cc62c6 | 1791 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1792 | #define __BSD__ 1 |
e6cc62c6 | 1793 | _ACEOF |
10f2d63a VZ |
1794 | |
1795 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1796 | ;; | |
1797 | *-*-osf* ) | |
1798 | USE_ALPHA=1 | |
1799 | USE_OSF=1 | |
e6cc62c6 | 1800 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1801 | #define __ALPHA__ 1 |
e6cc62c6 | 1802 | _ACEOF |
10f2d63a | 1803 | |
e6cc62c6 | 1804 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1805 | #define __OSF__ 1 |
e6cc62c6 | 1806 | _ACEOF |
10f2d63a VZ |
1807 | |
1808 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1809 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1810 | ;; |
1811 | *-*-dgux5* ) | |
1812 | USE_ALPHA=1 | |
1813 | USE_SVR4=1 | |
e6cc62c6 | 1814 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1815 | #define __ALPHA__ 1 |
e6cc62c6 | 1816 | _ACEOF |
10f2d63a | 1817 | |
e6cc62c6 | 1818 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1819 | #define __SVR4__ 1 |
e6cc62c6 | 1820 | _ACEOF |
10f2d63a VZ |
1821 | |
1822 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1823 | ;; | |
1824 | *-*-sysv5* ) | |
1825 | USE_SYSV=1 | |
1826 | USE_SVR4=1 | |
e6cc62c6 | 1827 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1828 | #define __SYSV__ 1 |
e6cc62c6 | 1829 | _ACEOF |
10f2d63a | 1830 | |
e6cc62c6 | 1831 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1832 | #define __SVR4__ 1 |
e6cc62c6 | 1833 | _ACEOF |
10f2d63a VZ |
1834 | |
1835 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1836 | ;; | |
1837 | *-*-aix* ) | |
1838 | USE_AIX=1 | |
1839 | USE_SYSV=1 | |
1840 | USE_SVR4=1 | |
2b5f62a0 | 1841 | SO_SUFFIX=a |
e6cc62c6 | 1842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1843 | #define __AIX__ 1 |
e6cc62c6 | 1844 | _ACEOF |
10f2d63a | 1845 | |
e6cc62c6 | 1846 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1847 | #define __SYSV__ 1 |
e6cc62c6 | 1848 | _ACEOF |
10f2d63a | 1849 | |
e6cc62c6 | 1850 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1851 | #define __SVR4__ 1 |
e6cc62c6 | 1852 | _ACEOF |
10f2d63a VZ |
1853 | |
1854 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1855 | ;; | |
1856 | ||
89e3b3e4 VZ |
1857 | *-*-*UnixWare*) |
1858 | USE_SYSV=1 | |
1859 | USE_SVR4=1 | |
1860 | USE_UNIXWARE=1 | |
e6cc62c6 | 1861 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1862 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1863 | _ACEOF |
89e3b3e4 VZ |
1864 | |
1865 | ;; | |
1866 | ||
1c8183e2 | 1867 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1868 | SO_SUFFIX=dll |
cf27ef00 | 1869 | PROGRAM_EXT=".exe" |
7b7a7637 | 1870 | RESCOMP=windres |
10f2d63a VZ |
1871 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1872 | ;; | |
1873 | ||
f9bc1684 VS |
1874 | *-pc-msdosdjgpp ) |
1875 | USE_UNIX=0 | |
1876 | USE_DOS=1 | |
e6cc62c6 | 1877 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1878 | #define __DOS__ 1 |
e6cc62c6 | 1879 | _ACEOF |
f9bc1684 VS |
1880 | |
1881 | PROGRAM_EXT=".exe" | |
1882 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1883 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1884 | ;; |
1885 | ||
6fa882bd | 1886 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1887 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1888 | #define __EMX__ 1 |
e6cc62c6 | 1889 | _ACEOF |
10f2d63a | 1890 | |
cf27ef00 | 1891 | PROGRAM_EXT=".exe" |
e07802fc | 1892 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 VS |
1893 | CXX=gcc |
1894 | LIBS="$LIBS -lstdcpp" | |
10f2d63a VZ |
1895 | ;; |
1896 | ||
d08b457b GD |
1897 | powerpc-*-darwin* ) |
1898 | USE_BSD=1 | |
f11bdd03 | 1899 | USE_DARWIN=1 |
3a922bb4 | 1900 | SO_SUFFIX=dylib |
e6cc62c6 | 1901 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1902 | #define __BSD__ 1 |
e6cc62c6 | 1903 | _ACEOF |
b4085ce6 | 1904 | |
e6cc62c6 | 1905 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1906 | #define __DARWIN__ 1 |
e6cc62c6 | 1907 | _ACEOF |
d08b457b | 1908 | |
e6cc62c6 | 1909 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1910 | #define __POWERPC__ 1 |
e6cc62c6 | 1911 | _ACEOF |
82d43113 | 1912 | |
e6cc62c6 | 1913 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1914 | #define TARGET_CARBON 1 |
e6cc62c6 | 1915 | _ACEOF |
b4085ce6 GD |
1916 | |
1917 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1918 | ;; | |
1919 | ||
b12915c1 VZ |
1920 | *-*-beos* ) |
1921 | USE_BEOS=1 | |
e6cc62c6 | 1922 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1923 | #define __BEOS__ 1 |
e6cc62c6 | 1924 | _ACEOF |
b12915c1 VZ |
1925 | |
1926 | ;; | |
1927 | ||
10f2d63a | 1928 | *) |
e6cc62c6 VS |
1929 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1930 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1931 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1932 | esac |
1933 | ||
8284b0c5 MB |
1934 | |
1935 | ||
1936 | ||
1937 | wx_arg_cache_file="configarg.cache" | |
1938 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1939 | rm -f ${wx_arg_cache_file}.tmp |
1940 | touch ${wx_arg_cache_file}.tmp | |
1941 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1942 | |
10f2d63a VZ |
1943 | |
1944 | DEBUG_CONFIGURE=0 | |
1945 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1946 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1947 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1948 | |
d8356fa3 VZ |
1949 | DEFAULT_wxUSE_NANOX=no |
1950 | ||
10f2d63a VZ |
1951 | DEFAULT_wxUSE_THREADS=yes |
1952 | ||
1953 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1954 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1955 | DEFAULT_wxUSE_PROFILE=no |
1956 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1957 | DEFAULT_wxUSE_NO_RTTI=no |
1958 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1959 | DEFAULT_wxUSE_PERMISSIVE=no |
1960 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1961 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1962 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1963 | DEFAULT_wxUSE_MEM_TRACING=no | |
1964 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1965 | DEFAULT_wxUSE_DMALLOC=no | |
1966 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1967 | ||
1968 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1969 | DEFAULT_wxUSE_LOGWINDOW=no |
1970 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1971 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1972 | |
1973 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1974 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1975 | |
3e44f09d | 1976 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
1977 | DEFAULT_wxUSE_XML=no |
1978 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
1979 | DEFAULT_wxUSE_ZLIB=no |
1980 | DEFAULT_wxUSE_LIBPNG=no | |
1981 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1982 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1983 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1984 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1985 | |
eb4efbdc | 1986 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1987 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1988 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1989 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1990 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1991 | DEFAULT_wxUSE_TIMER=no |
1992 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1993 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1994 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1995 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1996 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1997 | DEFAULT_wxUSE_WAVE=no |
1998 | DEFAULT_wxUSE_INTL=no | |
1999 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2000 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2001 | DEFAULT_wxUSE_STREAMS=no |
2002 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2003 | DEFAULT_wxUSE_OLE=no |
2004 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2005 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2006 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2007 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2008 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2009 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2010 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2011 | |
2012 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2013 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2014 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2015 | ||
10f2d63a VZ |
2016 | DEFAULT_wxUSE_CLIPBOARD=no |
2017 | DEFAULT_wxUSE_TOOLTIPS=no | |
2018 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2019 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2020 | DEFAULT_wxUSE_SPLINES=no |
2021 | ||
2022 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2023 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2024 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2025 | ||
10f2d63a VZ |
2026 | DEFAULT_wxUSE_RESOURCES=no |
2027 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2028 | DEFAULT_wxUSE_IPC=no | |
2029 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2030 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2031 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2032 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2033 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2034 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2035 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2036 | DEFAULT_wxUSE_PROTOCOL=no | |
2037 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2038 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2039 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2040 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2041 | |
10f2d63a | 2042 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2043 | DEFAULT_wxUSE_CHOICEDLG=no |
2044 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2045 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2046 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2047 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2048 | DEFAULT_wxUSE_FONTDLG=no |
2049 | DEFAULT_wxUSE_MSGDLG=no | |
2050 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2051 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2052 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2053 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2054 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2055 | DEFAULT_wxUSE_WIZARDDLG=no |
2056 | ||
1e6feb95 | 2057 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2058 | DEFAULT_wxUSE_MINIFRAME=no |
2059 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2060 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2061 | DEFAULT_wxUSE_FS_INET=no |
2062 | DEFAULT_wxUSE_FS_ZIP=no | |
2063 | DEFAULT_wxUSE_BUSYINFO=no | |
2064 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2065 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2066 | |
2067 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2068 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2069 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2070 | DEFAULT_wxUSE_CALCTRL=no |
2071 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2072 | DEFAULT_wxUSE_CHECKBOX=no |
2073 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2074 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2075 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2076 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2077 | DEFAULT_wxUSE_GAUGE=no |
2078 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2079 | DEFAULT_wxUSE_IMAGLIST=no |
2080 | DEFAULT_wxUSE_LISTBOX=no | |
2081 | DEFAULT_wxUSE_LISTCTRL=no | |
2082 | DEFAULT_wxUSE_NOTEBOOK=no | |
2083 | DEFAULT_wxUSE_RADIOBOX=no | |
2084 | DEFAULT_wxUSE_RADIOBTN=no | |
2085 | DEFAULT_wxUSE_SASH=no | |
2086 | DEFAULT_wxUSE_SCROLLBAR=no | |
2087 | DEFAULT_wxUSE_SLIDER=no | |
2088 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2089 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2090 | DEFAULT_wxUSE_SPLITTER=no |
2091 | DEFAULT_wxUSE_STATBMP=no | |
2092 | DEFAULT_wxUSE_STATBOX=no | |
2093 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2094 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2095 | DEFAULT_wxUSE_STATUSBAR=yes |
2096 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2097 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2098 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2099 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2100 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2101 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2102 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2103 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2104 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2105 | |
2106 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2107 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2108 | DEFAULT_wxUSE_WCSRTOMBS=no |
2109 | ||
edae8572 | 2110 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2111 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2112 | DEFAULT_wxUSE_GIF=no |
2113 | DEFAULT_wxUSE_PCX=no | |
2114 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2115 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2116 | DEFAULT_wxUSE_XPM=no |
658974ae | 2117 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2118 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2119 | |
e9e0dc15 | 2120 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2121 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2122 | else |
1e6feb95 | 2123 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2124 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2125 | |
d8356fa3 VZ |
2126 | DEFAULT_wxUSE_NANOX=no |
2127 | ||
10f2d63a VZ |
2128 | DEFAULT_wxUSE_THREADS=yes |
2129 | ||
2130 | DEFAULT_wxUSE_SHARED=yes | |
2131 | DEFAULT_wxUSE_OPTIMISE=yes | |
2132 | DEFAULT_wxUSE_PROFILE=no | |
2133 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2134 | DEFAULT_wxUSE_NO_RTTI=no |
2135 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2136 | DEFAULT_wxUSE_PERMISSIVE=no |
2137 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2138 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2139 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2140 | DEFAULT_wxUSE_MEM_TRACING=no | |
2141 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2142 | DEFAULT_wxUSE_DMALLOC=no | |
2143 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2144 | ||
2145 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2146 | DEFAULT_wxUSE_LOGWINDOW=yes |
2147 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2148 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2149 | |
2150 | DEFAULT_wxUSE_GUI=yes | |
2151 | ||
831b3152 | 2152 | DEFAULT_wxUSE_REGEX=yes |
672abd7a VS |
2153 | DEFAULT_wxUSE_XML=yes |
2154 | DEFAULT_wxUSE_EXPAT=yes | |
10f2d63a VZ |
2155 | DEFAULT_wxUSE_ZLIB=yes |
2156 | DEFAULT_wxUSE_LIBPNG=yes | |
2157 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2158 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2159 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2160 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2161 | |
eb4efbdc | 2162 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2163 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2164 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2165 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2166 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2167 | DEFAULT_wxUSE_TIMER=yes |
2168 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2169 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2170 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2171 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2172 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2173 | DEFAULT_wxUSE_WAVE=no |
2174 | DEFAULT_wxUSE_INTL=yes | |
2175 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2176 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2177 | DEFAULT_wxUSE_STREAMS=yes |
2178 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2179 | DEFAULT_wxUSE_OLE=yes |
2180 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2181 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2182 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2183 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2184 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2185 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2186 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2187 | |
2188 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2189 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2190 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2191 | ||
10f2d63a VZ |
2192 | DEFAULT_wxUSE_CLIPBOARD=yes |
2193 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2194 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2195 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2196 | DEFAULT_wxUSE_SPLINES=yes |
2197 | ||
2198 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2199 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2200 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2201 | ||
2b5f62a0 | 2202 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2203 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2204 | DEFAULT_wxUSE_IPC=yes | |
2205 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2206 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2207 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2208 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2209 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2210 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2211 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2212 | DEFAULT_wxUSE_PROTOCOL=yes |
2213 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2214 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2215 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2216 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2217 | |
2218 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2219 | DEFAULT_wxUSE_CHOICEDLG=yes |
2220 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2221 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2222 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2223 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2224 | DEFAULT_wxUSE_FONTDLG=yes |
2225 | DEFAULT_wxUSE_MSGDLG=yes | |
2226 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2227 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2228 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2229 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2230 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2231 | DEFAULT_wxUSE_WIZARDDLG=yes |
2232 | ||
1e6feb95 | 2233 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2234 | DEFAULT_wxUSE_MINIFRAME=yes |
2235 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2236 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2237 | DEFAULT_wxUSE_FS_INET=yes |
2238 | DEFAULT_wxUSE_FS_ZIP=yes | |
2239 | DEFAULT_wxUSE_BUSYINFO=yes | |
2240 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2241 | DEFAULT_wxUSE_VALIDATORS=yes | |
2242 | ||
2243 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2244 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2245 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2246 | DEFAULT_wxUSE_CALCTRL=yes |
2247 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2248 | DEFAULT_wxUSE_CHECKBOX=yes |
2249 | DEFAULT_wxUSE_CHECKLST=yes | |
2250 | DEFAULT_wxUSE_CHOICE=yes | |
2251 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2252 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2253 | DEFAULT_wxUSE_GAUGE=yes |
2254 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2255 | DEFAULT_wxUSE_IMAGLIST=yes |
2256 | DEFAULT_wxUSE_LISTBOX=yes | |
2257 | DEFAULT_wxUSE_LISTCTRL=yes | |
2258 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2259 | DEFAULT_wxUSE_RADIOBOX=yes | |
2260 | DEFAULT_wxUSE_RADIOBTN=yes | |
2261 | DEFAULT_wxUSE_SASH=yes | |
2262 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2263 | DEFAULT_wxUSE_SLIDER=yes | |
2264 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2265 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2266 | DEFAULT_wxUSE_SPLITTER=yes |
2267 | DEFAULT_wxUSE_STATBMP=yes | |
2268 | DEFAULT_wxUSE_STATBOX=yes | |
2269 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2270 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2271 | DEFAULT_wxUSE_STATUSBAR=yes |
2272 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2273 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2274 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2275 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2276 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2277 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2278 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2279 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2280 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2281 | |
2282 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2283 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2284 | DEFAULT_wxUSE_WCSRTOMBS=no |
2285 | ||
edae8572 | 2286 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2287 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2288 | DEFAULT_wxUSE_GIF=yes |
2289 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2290 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2291 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2292 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2293 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2294 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2295 | |
e9e0dc15 | 2296 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2297 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2298 | fi |
2299 | ||
8284b0c5 MB |
2300 | |
2301 | ||
10f2d63a | 2302 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2303 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2304 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2305 | has_toolkit_in_cache=1 |
2306 | eval "DEFAULT_$LINE" | |
2307 | eval "CACHE_$toolkit=1" | |
2308 | fi | |
2309 | done | |
2310 | ||
8284b0c5 MB |
2311 | |
2312 | ||
5005acfe | 2313 | enablestring= |
e6cc62c6 VS |
2314 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2315 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2316 | no_cache=0 |
2317 | # Check whether --enable-gui or --disable-gui was given. | |
2318 | if test "${enable_gui+set}" = set; then | |
2319 | enableval="$enable_gui" | |
e6cc62c6 | 2320 | |
10f2d63a VZ |
2321 | if test "$enableval" = yes; then |
2322 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2323 | else | |
2324 | ac_cv_use_gui='wxUSE_GUI=no' | |
2325 | fi | |
e6cc62c6 | 2326 | |
10f2d63a | 2327 | else |
e6cc62c6 | 2328 | |
10f2d63a VZ |
2329 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2330 | if test "x$LINE" != x ; then | |
2331 | eval "DEFAULT_$LINE" | |
2332 | else | |
2333 | no_cache=1 | |
2334 | fi | |
2335 | ||
2336 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2337 | |
e6cc62c6 | 2338 | fi; |
10f2d63a VZ |
2339 | |
2340 | eval "$ac_cv_use_gui" | |
2341 | if test "$no_cache" != 1; then | |
2342 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2343 | fi | |
2344 | ||
2345 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2346 | echo "$as_me:$LINENO: result: yes" >&5 |
2347 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2348 | else |
e6cc62c6 VS |
2349 | echo "$as_me:$LINENO: result: no" >&5 |
2350 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2351 | fi |
e6cc62c6 | 2352 | |
10f2d63a | 2353 | |
9747f85d VS |
2354 | enablestring= |
2355 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2356 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2357 | no_cache=0 | |
2358 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2359 | if test "${enable_monolithic+set}" = set; then | |
2360 | enableval="$enable_monolithic" | |
2361 | ||
2362 | if test "$enableval" = yes; then | |
2363 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2364 | else | |
2365 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2366 | fi | |
2367 | ||
2368 | else | |
2369 | ||
2370 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2371 | if test "x$LINE" != x ; then | |
2372 | eval "DEFAULT_$LINE" | |
2373 | else | |
2374 | no_cache=1 | |
2375 | fi | |
2376 | ||
2377 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2378 | ||
2379 | fi; | |
2380 | ||
2381 | eval "$ac_cv_use_monolithic" | |
2382 | if test "$no_cache" != 1; then | |
2383 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2384 | fi | |
2385 | ||
2386 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2387 | echo "$as_me:$LINENO: result: yes" >&5 | |
2388 | echo "${ECHO_T}yes" >&6 | |
2389 | else | |
2390 | echo "$as_me:$LINENO: result: no" >&5 | |
2391 | echo "${ECHO_T}no" >&6 | |
2392 | fi | |
2393 | ||
2394 | ||
b12915c1 | 2395 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2396 | |
8284b0c5 | 2397 | |
5005acfe | 2398 | enablestring= |
e6cc62c6 VS |
2399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2400 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2401 | no_cache=0 |
2402 | # Check whether --enable-universal or --disable-universal was given. | |
2403 | if test "${enable_universal+set}" = set; then | |
2404 | enableval="$enable_universal" | |
e6cc62c6 | 2405 | |
1e6feb95 VZ |
2406 | if test "$enableval" = yes; then |
2407 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2408 | else | |
2409 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2410 | fi | |
e6cc62c6 | 2411 | |
1e6feb95 | 2412 | else |
e6cc62c6 | 2413 | |
1e6feb95 VZ |
2414 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2415 | if test "x$LINE" != x ; then | |
2416 | eval "DEFAULT_$LINE" | |
2417 | else | |
2418 | no_cache=1 | |
2419 | fi | |
2420 | ||
2421 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2422 | |
e6cc62c6 | 2423 | fi; |
1e6feb95 VZ |
2424 | |
2425 | eval "$ac_cv_use_universal" | |
2426 | if test "$no_cache" != 1; then | |
2427 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2428 | fi | |
2429 | ||
2430 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2431 | echo "$as_me:$LINENO: result: yes" >&5 |
2432 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2433 | else |
e6cc62c6 VS |
2434 | echo "$as_me:$LINENO: result: no" >&5 |
2435 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2436 | fi |
e6cc62c6 VS |
2437 | |
2438 | ||
10f2d63a VZ |
2439 | # Check whether --with-gtk or --without-gtk was given. |
2440 | if test "${with_gtk+set}" = set; then | |
2441 | withval="$with_gtk" | |
2442 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2443 | fi; |
10f2d63a VZ |
2444 | |
2445 | # Check whether --with-motif or --without-motif was given. | |
2446 | if test "${with_motif+set}" = set; then | |
2447 | withval="$with_motif" | |
2448 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2449 | fi; |
10f2d63a | 2450 | |
b4085ce6 GD |
2451 | # Check whether --with-mac or --without-mac was given. |
2452 | if test "${with_mac+set}" = set; then | |
2453 | withval="$with_mac" | |
2454 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2455 | fi; |
b4085ce6 | 2456 | |
ac0c4cc3 DE |
2457 | # Check whether --with-cocoa or --without-cocoa was given. |
2458 | if test "${with_cocoa+set}" = set; then | |
2459 | withval="$with_cocoa" | |
2460 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2461 | fi; |
ac0c4cc3 | 2462 | |
10f2d63a VZ |
2463 | # Check whether --with-wine or --without-wine was given. |
2464 | if test "${with_wine+set}" = set; then | |
2465 | withval="$with_wine" | |
89e6bf6d | 2466 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2467 | fi; |
10f2d63a | 2468 | |
77e13408 RL |
2469 | # Check whether --with-msw or --without-msw was given. |
2470 | if test "${with_msw+set}" = set; then | |
2471 | withval="$with_msw" | |
b4efce5e | 2472 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2473 | fi; |
10f2d63a | 2474 | |
e07802fc VZ |
2475 | # Check whether --with-pm or --without-pm was given. |
2476 | if test "${with_pm+set}" = set; then | |
2477 | withval="$with_pm" | |
2478 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2479 | fi; |
698dcdb6 | 2480 | |
1e6feb95 VZ |
2481 | # Check whether --with-mgl or --without-mgl was given. |
2482 | if test "${with_mgl+set}" = set; then | |
2483 | withval="$with_mgl" | |
6c657b52 | 2484 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2485 | fi; |
1e6feb95 | 2486 | |
1725144d RR |
2487 | # Check whether --with-microwin or --without-microwin was given. |
2488 | if test "${with_microwin+set}" = set; then | |
2489 | withval="$with_microwin" | |
2490 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2491 | fi; |
1725144d | 2492 | |
f79bd02d JS |
2493 | # Check whether --with-x11 or --without-x11 was given. |
2494 | if test "${with_x11+set}" = set; then | |
2495 | withval="$with_x11" | |
3c011993 | 2496 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2497 | fi; |
a0b9e27f | 2498 | |
5005acfe | 2499 | enablestring= |
e6cc62c6 VS |
2500 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2501 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2502 | no_cache=0 |
ba875e66 VZ |
2503 | # Check whether --enable-nanox or --disable-nanox was given. |
2504 | if test "${enable_nanox+set}" = set; then | |
2505 | enableval="$enable_nanox" | |
e6cc62c6 | 2506 | |
d8356fa3 | 2507 | if test "$enableval" = yes; then |
ba875e66 | 2508 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2509 | else |
ba875e66 | 2510 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2511 | fi |
e6cc62c6 | 2512 | |
d8356fa3 | 2513 | else |
e6cc62c6 | 2514 | |
d8356fa3 VZ |
2515 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2516 | if test "x$LINE" != x ; then | |
2517 | eval "DEFAULT_$LINE" | |
2518 | else | |
2519 | no_cache=1 | |
2520 | fi | |
2521 | ||
ba875e66 | 2522 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2523 | |
e6cc62c6 | 2524 | fi; |
d8356fa3 | 2525 | |
ba875e66 | 2526 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2527 | if test "$no_cache" != 1; then |
ba875e66 | 2528 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2529 | fi |
2530 | ||
2531 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2532 | echo "$as_me:$LINENO: result: yes" >&5 |
2533 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2534 | else |
e6cc62c6 VS |
2535 | echo "$as_me:$LINENO: result: no" >&5 |
2536 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2537 | fi |
e6cc62c6 | 2538 | |
8284b0c5 | 2539 | |
d74f4b5a | 2540 | |
5005acfe | 2541 | enablestring= |
e6cc62c6 VS |
2542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2543 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2544 | no_cache=0 |
2545 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2546 | if test "${enable_gtk2+set}" = set; then |
2547 | enableval="$enable_gtk2" | |
e6cc62c6 | 2548 | |
d74f4b5a VZ |
2549 | if test "$enableval" = yes; then |
2550 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2551 | else | |
2552 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2553 | fi | |
e6cc62c6 | 2554 | |
10f2d63a | 2555 | else |
e6cc62c6 | 2556 | |
d74f4b5a VZ |
2557 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2558 | if test "x$LINE" != x ; then | |
2559 | eval "DEFAULT_$LINE" | |
2560 | else | |
2561 | no_cache=1 | |
2562 | fi | |
2563 | ||
2564 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2565 | |
e6cc62c6 | 2566 | fi; |
328a083c | 2567 | |
d74f4b5a VZ |
2568 | eval "$ac_cv_use_gtk2" |
2569 | if test "$no_cache" != 1; then | |
2570 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2571 | fi | |
2572 | ||
2573 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2574 | echo "$as_me:$LINENO: result: yes" >&5 |
2575 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2576 | else |
e6cc62c6 VS |
2577 | echo "$as_me:$LINENO: result: no" >&5 |
2578 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2579 | fi |
d74f4b5a | 2580 | |
5c6fa7d2 | 2581 | |
e6cc62c6 VS |
2582 | |
2583 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2584 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2585 | no_cache=0 |
e6cc62c6 VS |
2586 | |
2587 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2588 | if test "${with_libpng+set}" = set; then |
2589 | withval="$with_libpng" | |
e6cc62c6 | 2590 | |
10f2d63a | 2591 | if test "$withval" = yes; then |
b12915c1 | 2592 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2593 | elif test "$withval" = no; then |
b12915c1 | 2594 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2595 | elif test "$withval" = sys; then |
2596 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2597 | elif test "$withval" = builtin; then |
2598 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2599 | else |
e6cc62c6 VS |
2600 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2601 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2602 | { (exit 1); exit 1; }; } | |
10f2d63a | 2603 | fi |
e6cc62c6 | 2604 | |
10f2d63a | 2605 | else |
e6cc62c6 | 2606 | |
b12915c1 | 2607 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2608 | if test "x$LINE" != x ; then |
2609 | eval "DEFAULT_$LINE" | |
2610 | else | |
2611 | no_cache=1 | |
2612 | fi | |
2613 | ||
b12915c1 | 2614 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2615 | |
e6cc62c6 | 2616 | fi; |
10f2d63a | 2617 | |
b12915c1 | 2618 | eval "$ac_cv_use_libpng" |
10f2d63a | 2619 | if test "$no_cache" != 1; then |
b12915c1 | 2620 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2621 | fi |
2622 | ||
b12915c1 | 2623 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2624 | echo "$as_me:$LINENO: result: yes" >&5 |
2625 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2626 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2627 | echo "$as_me:$LINENO: result: no" >&5 |
2628 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2629 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2630 | echo "$as_me:$LINENO: result: system version" >&5 |
2631 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2632 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2633 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2634 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2635 | else |
e6cc62c6 VS |
2636 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2637 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2638 | { (exit 1); exit 1; }; } | |
10f2d63a | 2639 | fi |
10f2d63a | 2640 | |
e6cc62c6 VS |
2641 | |
2642 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2643 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2644 | no_cache=0 |
e6cc62c6 VS |
2645 | |
2646 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2647 | if test "${with_libjpeg+set}" = set; then |
2648 | withval="$with_libjpeg" | |
e6cc62c6 | 2649 | |
10f2d63a | 2650 | if test "$withval" = yes; then |
b12915c1 | 2651 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2652 | elif test "$withval" = no; then |
b12915c1 | 2653 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2654 | elif test "$withval" = sys; then |
2655 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2656 | elif test "$withval" = builtin; then |
2657 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2658 | else |
e6cc62c6 VS |
2659 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2660 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2661 | { (exit 1); exit 1; }; } | |
10f2d63a | 2662 | fi |
e6cc62c6 | 2663 | |
10f2d63a | 2664 | else |
e6cc62c6 | 2665 | |
b12915c1 | 2666 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2667 | if test "x$LINE" != x ; then |
2668 | eval "DEFAULT_$LINE" | |
2669 | else | |
2670 | no_cache=1 | |
2671 | fi | |
2672 | ||
b12915c1 | 2673 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2674 | |
e6cc62c6 | 2675 | fi; |
10f2d63a | 2676 | |
b12915c1 | 2677 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2678 | if test "$no_cache" != 1; then |
b12915c1 | 2679 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2680 | fi |
2681 | ||
b12915c1 | 2682 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2683 | echo "$as_me:$LINENO: result: yes" >&5 |
2684 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2685 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2686 | echo "$as_me:$LINENO: result: no" >&5 |
2687 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2688 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2689 | echo "$as_me:$LINENO: result: system version" >&5 |
2690 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2691 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2692 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2693 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2694 | else |
e6cc62c6 VS |
2695 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2696 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2697 | { (exit 1); exit 1; }; } | |
10f2d63a | 2698 | fi |
10f2d63a | 2699 | |
e6cc62c6 VS |
2700 | |
2701 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2702 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2703 | no_cache=0 |
e6cc62c6 VS |
2704 | |
2705 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2706 | if test "${with_libtiff+set}" = set; then |
2707 | withval="$with_libtiff" | |
e6cc62c6 | 2708 | |
10f2d63a | 2709 | if test "$withval" = yes; then |
b12915c1 | 2710 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2711 | elif test "$withval" = no; then |
b12915c1 | 2712 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2713 | elif test "$withval" = sys; then |
2714 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2715 | elif test "$withval" = builtin; then |
2716 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2717 | else |
e6cc62c6 VS |
2718 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2719 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2720 | { (exit 1); exit 1; }; } | |
10f2d63a | 2721 | fi |
e6cc62c6 | 2722 | |
10f2d63a | 2723 | else |
e6cc62c6 | 2724 | |
b12915c1 | 2725 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2726 | if test "x$LINE" != x ; then |
2727 | eval "DEFAULT_$LINE" | |
2728 | else | |
2729 | no_cache=1 | |
2730 | fi | |
2731 | ||
b12915c1 | 2732 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2733 | |
e6cc62c6 | 2734 | fi; |
10f2d63a | 2735 | |
b12915c1 | 2736 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2737 | if test "$no_cache" != 1; then |
b12915c1 | 2738 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2739 | fi |
2740 | ||
b12915c1 | 2741 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2742 | echo "$as_me:$LINENO: result: yes" >&5 |
2743 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2744 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2745 | echo "$as_me:$LINENO: result: no" >&5 |
2746 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2747 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2748 | echo "$as_me:$LINENO: result: system version" >&5 |
2749 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2750 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2751 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2752 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2753 | else |
e6cc62c6 VS |
2754 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2755 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2756 | { (exit 1); exit 1; }; } | |
10f2d63a | 2757 | fi |
10f2d63a | 2758 | |
e6cc62c6 VS |
2759 | |
2760 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2761 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2762 | no_cache=0 |
e6cc62c6 VS |
2763 | |
2764 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2765 | if test "${with_opengl+set}" = set; then |
2766 | withval="$with_opengl" | |
e6cc62c6 | 2767 | |
10f2d63a | 2768 | if test "$withval" = yes; then |
b12915c1 | 2769 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2770 | else |
b12915c1 | 2771 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2772 | fi |
e6cc62c6 | 2773 | |
10f2d63a | 2774 | else |
e6cc62c6 | 2775 | |
b12915c1 | 2776 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2777 | if test "x$LINE" != x ; then |
2778 | eval "DEFAULT_$LINE" | |
2779 | else | |
2780 | no_cache=1 | |
2781 | fi | |
2782 | ||
b12915c1 | 2783 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2784 | |
e6cc62c6 | 2785 | fi; |
10f2d63a | 2786 | |
b12915c1 | 2787 | eval "$ac_cv_use_opengl" |
10f2d63a | 2788 | if test "$no_cache" != 1; then |
b12915c1 | 2789 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2790 | fi |
2791 | ||
b12915c1 | 2792 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2793 | echo "$as_me:$LINENO: result: yes" >&5 |
2794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2795 | else |
e6cc62c6 VS |
2796 | echo "$as_me:$LINENO: result: no" >&5 |
2797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2798 | fi |
e6cc62c6 | 2799 | |
10f2d63a | 2800 | |
b12915c1 VZ |
2801 | fi |
2802 | ||
5c6fa7d2 | 2803 | |
e6cc62c6 VS |
2804 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2805 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2806 | no_cache=0 |
e6cc62c6 VS |
2807 | |
2808 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2809 | if test "${with_dmalloc+set}" = set; then |
2810 | withval="$with_dmalloc" | |
e6cc62c6 | 2811 | |
c7a2bf27 | 2812 | if test "$withval" = yes; then |
b12915c1 | 2813 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2814 | else |
b12915c1 | 2815 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2816 | fi |
e6cc62c6 | 2817 | |
c7a2bf27 | 2818 | else |
e6cc62c6 | 2819 | |
b12915c1 | 2820 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2821 | if test "x$LINE" != x ; then |
2822 | eval "DEFAULT_$LINE" | |
2823 | else | |
2824 | no_cache=1 | |
2825 | fi | |
2826 | ||
b12915c1 | 2827 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2828 | |
e6cc62c6 | 2829 | fi; |
c7a2bf27 | 2830 | |
b12915c1 | 2831 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2832 | if test "$no_cache" != 1; then |
b12915c1 | 2833 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2834 | fi |
2835 | ||
b12915c1 | 2836 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2837 | echo "$as_me:$LINENO: result: yes" >&5 |
2838 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2839 | else |
e6cc62c6 VS |
2840 | echo "$as_me:$LINENO: result: no" >&5 |
2841 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2842 | fi |
c7a2bf27 | 2843 | |
e6cc62c6 VS |
2844 | |
2845 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2846 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2847 | no_cache=0 |
e6cc62c6 VS |
2848 | |
2849 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2850 | if test "${with_regex+set}" = set; then |
2851 | withval="$with_regex" | |
e6cc62c6 | 2852 | |
3e44f09d VZ |
2853 | if test "$withval" = yes; then |
2854 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2855 | elif test "$withval" = no; then | |
2856 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2857 | elif test "$withval" = sys; then | |
2858 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2859 | elif test "$withval" = builtin; then |
2860 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2861 | else |
e6cc62c6 VS |
2862 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2863 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2864 | { (exit 1); exit 1; }; } | |
3e44f09d | 2865 | fi |
e6cc62c6 | 2866 | |
3e44f09d | 2867 | else |
e6cc62c6 | 2868 | |
3e44f09d VZ |
2869 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2870 | if test "x$LINE" != x ; then | |
2871 | eval "DEFAULT_$LINE" | |
2872 | else | |
2873 | no_cache=1 | |
2874 | fi | |
2875 | ||
2876 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2877 | |
e6cc62c6 | 2878 | fi; |
3e44f09d VZ |
2879 | |
2880 | eval "$ac_cv_use_regex" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2886 | echo "$as_me:$LINENO: result: yes" >&5 |
2887 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2888 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2889 | echo "$as_me:$LINENO: result: no" >&5 |
2890 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2891 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2892 | echo "$as_me:$LINENO: result: system version" >&5 |
2893 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2894 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2895 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2896 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2897 | else |
e6cc62c6 VS |
2898 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2899 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
3e44f09d | 2901 | fi |
3e44f09d | 2902 | |
e6cc62c6 VS |
2903 | |
2904 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2905 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2906 | no_cache=0 |
e6cc62c6 VS |
2907 | |
2908 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2909 | if test "${with_zlib+set}" = set; then |
2910 | withval="$with_zlib" | |
e6cc62c6 | 2911 | |
10f2d63a | 2912 | if test "$withval" = yes; then |
b12915c1 | 2913 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2914 | elif test "$withval" = no; then |
b12915c1 | 2915 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2916 | elif test "$withval" = sys; then |
2917 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2918 | elif test "$withval" = builtin; then |
2919 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2920 | else |
e6cc62c6 VS |
2921 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2922 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2923 | { (exit 1); exit 1; }; } | |
10f2d63a | 2924 | fi |
e6cc62c6 | 2925 | |
10f2d63a | 2926 | else |
e6cc62c6 | 2927 | |
b12915c1 | 2928 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2929 | if test "x$LINE" != x ; then |
2930 | eval "DEFAULT_$LINE" | |
2931 | else | |
2932 | no_cache=1 | |
2933 | fi | |
2934 | ||
b12915c1 | 2935 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2936 | |
e6cc62c6 | 2937 | fi; |
10f2d63a | 2938 | |
b12915c1 | 2939 | eval "$ac_cv_use_zlib" |
10f2d63a | 2940 | if test "$no_cache" != 1; then |
b12915c1 | 2941 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2942 | fi |
2943 | ||
b12915c1 | 2944 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2945 | echo "$as_me:$LINENO: result: yes" >&5 |
2946 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2947 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2948 | echo "$as_me:$LINENO: result: no" >&5 |
2949 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2950 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2951 | echo "$as_me:$LINENO: result: system version" >&5 |
2952 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2953 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2954 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2955 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2956 | else |
e6cc62c6 VS |
2957 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2958 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2959 | { (exit 1); exit 1; }; } | |
10f2d63a | 2960 | fi |
10f2d63a | 2961 | |
e6cc62c6 VS |
2962 | |
2963 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2964 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2965 | no_cache=0 |
e6cc62c6 VS |
2966 | |
2967 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2968 | if test "${with_odbc+set}" = set; then |
2969 | withval="$with_odbc" | |
e6cc62c6 | 2970 | |
10f2d63a VZ |
2971 | if test "$withval" = yes; then |
2972 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2973 | elif test "$withval" = no; then |
10f2d63a | 2974 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2975 | elif test "$withval" = sys; then |
2976 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2977 | elif test "$withval" = builtin; then | |
2978 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2979 | else | |
e6cc62c6 VS |
2980 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2981 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2982 | { (exit 1); exit 1; }; } | |
10f2d63a | 2983 | fi |
e6cc62c6 | 2984 | |
10f2d63a | 2985 | else |
e6cc62c6 | 2986 | |
10f2d63a VZ |
2987 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2988 | if test "x$LINE" != x ; then | |
2989 | eval "DEFAULT_$LINE" | |
2990 | else | |
2991 | no_cache=1 | |
2992 | fi | |
2993 | ||
2994 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2995 | |
e6cc62c6 | 2996 | fi; |
10f2d63a VZ |
2997 | |
2998 | eval "$ac_cv_use_odbc" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3004 | echo "$as_me:$LINENO: result: yes" >&5 |
3005 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3006 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3007 | echo "$as_me:$LINENO: result: no" >&5 |
3008 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3009 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3010 | echo "$as_me:$LINENO: result: system version" >&5 |
3011 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3012 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3013 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3014 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3015 | else |
e6cc62c6 VS |
3016 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3017 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3018 | { (exit 1); exit 1; }; } | |
10f2d63a | 3019 | fi |
e6cc62c6 | 3020 | |
52127426 | 3021 | |
672abd7a VS |
3022 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3023 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3024 | no_cache=0 | |
3025 | ||
3026 | # Check whether --with-expat or --without-expat was given. | |
3027 | if test "${with_expat+set}" = set; then | |
3028 | withval="$with_expat" | |
3029 | ||
3030 | if test "$withval" = yes; then | |
3031 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3032 | elif test "$withval" = no; then | |
3033 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3034 | elif test "$withval" = sys; then | |
3035 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3036 | elif test "$withval" = builtin; then | |
3037 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3038 | else | |
3039 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3040 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3041 | { (exit 1); exit 1; }; } | |
3042 | fi | |
3043 | ||
3044 | else | |
3045 | ||
3046 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3047 | if test "x$LINE" != x ; then | |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
3053 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3054 | ||
3055 | fi; | |
3056 | ||
3057 | eval "$ac_cv_use_expat" | |
3058 | if test "$no_cache" != 1; then | |
3059 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3060 | fi | |
3061 | ||
3062 | if test "$wxUSE_EXPAT" = yes; then | |
3063 | echo "$as_me:$LINENO: result: yes" >&5 | |
3064 | echo "${ECHO_T}yes" >&6 | |
3065 | elif test "$wxUSE_EXPAT" = no; then | |
3066 | echo "$as_me:$LINENO: result: no" >&5 | |
3067 | echo "${ECHO_T}no" >&6 | |
3068 | elif test "$wxUSE_EXPAT" = sys; then | |
3069 | echo "$as_me:$LINENO: result: system version" >&5 | |
3070 | echo "${ECHO_T}system version" >&6 | |
3071 | elif test "$wxUSE_EXPAT" = builtin; then | |
3072 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3073 | echo "${ECHO_T}builtin version" >&6 | |
3074 | else | |
3075 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3076 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3077 | { (exit 1); exit 1; }; } | |
3078 | fi | |
3079 | ||
3080 | ||
8284b0c5 MB |
3081 | |
3082 | ||
5005acfe | 3083 | enablestring= |
e6cc62c6 VS |
3084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3085 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3086 | no_cache=0 |
3087 | # Check whether --enable-shared or --disable-shared was given. | |
3088 | if test "${enable_shared+set}" = set; then | |
3089 | enableval="$enable_shared" | |
e6cc62c6 | 3090 | |
10f2d63a VZ |
3091 | if test "$enableval" = yes; then |
3092 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3093 | else | |
3094 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3095 | fi | |
e6cc62c6 | 3096 | |
10f2d63a | 3097 | else |
e6cc62c6 | 3098 | |
10f2d63a VZ |
3099 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3100 | if test "x$LINE" != x ; then | |
3101 | eval "DEFAULT_$LINE" | |
3102 | else | |
3103 | no_cache=1 | |
3104 | fi | |
3105 | ||
3106 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3107 | |
e6cc62c6 | 3108 | fi; |
10f2d63a VZ |
3109 | |
3110 | eval "$ac_cv_use_shared" | |
3111 | if test "$no_cache" != 1; then | |
3112 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3113 | fi | |
3114 | ||
3115 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3116 | echo "$as_me:$LINENO: result: yes" >&5 |
3117 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3118 | else |
e6cc62c6 VS |
3119 | echo "$as_me:$LINENO: result: no" >&5 |
3120 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3121 | fi |
e6cc62c6 | 3122 | |
10f2d63a | 3123 | |
5005acfe | 3124 | enablestring= |
e6cc62c6 VS |
3125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3126 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3127 | no_cache=0 |
3128 | # Check whether --enable-optimise or --disable-optimise was given. | |
3129 | if test "${enable_optimise+set}" = set; then | |
3130 | enableval="$enable_optimise" | |
e6cc62c6 | 3131 | |
10f2d63a VZ |
3132 | if test "$enableval" = yes; then |
3133 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3134 | else | |
3135 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3136 | fi | |
e6cc62c6 | 3137 | |
10f2d63a | 3138 | else |
e6cc62c6 | 3139 | |
10f2d63a VZ |
3140 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3141 | if test "x$LINE" != x ; then | |
3142 | eval "DEFAULT_$LINE" | |
3143 | else | |
3144 | no_cache=1 | |
3145 | fi | |
3146 | ||
3147 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3148 | |
e6cc62c6 | 3149 | fi; |
10f2d63a VZ |
3150 | |
3151 | eval "$ac_cv_use_optimise" | |
3152 | if test "$no_cache" != 1; then | |
3153 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3154 | fi | |
3155 | ||
3156 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3157 | echo "$as_me:$LINENO: result: yes" >&5 |
3158 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3159 | else |
e6cc62c6 VS |
3160 | echo "$as_me:$LINENO: result: no" >&5 |
3161 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3162 | fi |
e6cc62c6 | 3163 | |
10f2d63a | 3164 | |
5005acfe | 3165 | enablestring= |
e6cc62c6 VS |
3166 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3167 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-debug or --disable-debug was given. | |
3170 | if test "${enable_debug+set}" = set; then | |
3171 | enableval="$enable_debug" | |
e6cc62c6 | 3172 | |
10f2d63a VZ |
3173 | if test "$enableval" = yes; then |
3174 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3175 | else | |
3176 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3177 | fi | |
e6cc62c6 | 3178 | |
10f2d63a | 3179 | else |
e6cc62c6 | 3180 | |
10f2d63a VZ |
3181 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3189 | |
e6cc62c6 | 3190 | fi; |
10f2d63a VZ |
3191 | |
3192 | eval "$ac_cv_use_debug" | |
3193 | if test "$no_cache" != 1; then | |
3194 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3195 | fi | |
3196 | ||
3197 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3198 | echo "$as_me:$LINENO: result: yes" >&5 |
3199 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3200 | else |
e6cc62c6 VS |
3201 | echo "$as_me:$LINENO: result: no" >&5 |
3202 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3203 | fi |
e6cc62c6 | 3204 | |
52127426 | 3205 | |
df5168c4 MB |
3206 | enablestring= |
3207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3208 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3209 | no_cache=0 | |
3210 | # Check whether --enable-stl or --disable-stl was given. | |
3211 | if test "${enable_stl+set}" = set; then | |
3212 | enableval="$enable_stl" | |
3213 | ||
3214 | if test "$enableval" = yes; then | |
3215 | ac_cv_use_stl='wxUSE_STL=yes' | |
3216 | else | |
3217 | ac_cv_use_stl='wxUSE_STL=no' | |
3218 | fi | |
3219 | ||
3220 | else | |
3221 | ||
3222 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3223 | if test "x$LINE" != x ; then | |
3224 | eval "DEFAULT_$LINE" | |
3225 | else | |
3226 | no_cache=1 | |
3227 | fi | |
3228 | ||
3229 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3230 | ||
3231 | fi; | |
3232 | ||
3233 | eval "$ac_cv_use_stl" | |
3234 | if test "$no_cache" != 1; then | |
3235 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3236 | fi | |
3237 | ||
3238 | if test "$wxUSE_STL" = yes; then | |
3239 | echo "$as_me:$LINENO: result: yes" >&5 | |
3240 | echo "${ECHO_T}yes" >&6 | |
3241 | else | |
3242 | echo "$as_me:$LINENO: result: no" >&5 | |
3243 | echo "${ECHO_T}no" >&6 | |
3244 | fi | |
3245 | ||
3246 | ||
10f2d63a VZ |
3247 | if test "$wxUSE_DEBUG" = "yes"; then |
3248 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3249 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3250 | BUILD=debug |
10f2d63a VZ |
3251 | elif test "$wxUSE_DEBUG" = "no"; then |
3252 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3253 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3254 | BUILD=release |
10f2d63a VZ |
3255 | fi |
3256 | ||
8284b0c5 | 3257 | |
5005acfe | 3258 | enablestring= |
e6cc62c6 VS |
3259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3260 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3261 | no_cache=0 |
3262 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3263 | if test "${enable_debug_flag+set}" = set; then | |
3264 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3265 | |
10f2d63a VZ |
3266 | if test "$enableval" = yes; then |
3267 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3268 | else | |
3269 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3270 | fi | |
e6cc62c6 | 3271 | |
10f2d63a | 3272 | else |
e6cc62c6 | 3273 | |
10f2d63a VZ |
3274 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3275 | if test "x$LINE" != x ; then | |
3276 | eval "DEFAULT_$LINE" | |
3277 | else | |
3278 | no_cache=1 | |
3279 | fi | |
3280 | ||
3281 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3282 | |
e6cc62c6 | 3283 | fi; |
10f2d63a VZ |
3284 | |
3285 | eval "$ac_cv_use_debug_flag" | |
3286 | if test "$no_cache" != 1; then | |
3287 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3288 | fi | |
3289 | ||
3290 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3291 | echo "$as_me:$LINENO: result: yes" >&5 |
3292 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3293 | else |
e6cc62c6 VS |
3294 | echo "$as_me:$LINENO: result: no" >&5 |
3295 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3296 | fi |
e6cc62c6 | 3297 | |
10f2d63a | 3298 | |
5005acfe | 3299 | enablestring= |
e6cc62c6 VS |
3300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3301 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3302 | no_cache=0 |
3303 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3304 | if test "${enable_debug_info+set}" = set; then | |
3305 | enableval="$enable_debug_info" | |
e6cc62c6 | 3306 | |
10f2d63a VZ |
3307 | if test "$enableval" = yes; then |
3308 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3309 | else | |
3310 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3311 | fi | |
e6cc62c6 | 3312 | |
10f2d63a | 3313 | else |
e6cc62c6 | 3314 | |
10f2d63a VZ |
3315 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3316 | if test "x$LINE" != x ; then | |
3317 | eval "DEFAULT_$LINE" | |
3318 | else | |
3319 | no_cache=1 | |
3320 | fi | |
3321 | ||
3322 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3323 | |
e6cc62c6 | 3324 | fi; |
10f2d63a VZ |
3325 | |
3326 | eval "$ac_cv_use_debug_info" | |
3327 | if test "$no_cache" != 1; then | |
3328 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3329 | fi | |
3330 | ||
3331 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3332 | echo "$as_me:$LINENO: result: yes" >&5 |
3333 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3334 | else |
e6cc62c6 VS |
3335 | echo "$as_me:$LINENO: result: no" >&5 |
3336 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3337 | fi |
e6cc62c6 | 3338 | |
10f2d63a | 3339 | |
5005acfe | 3340 | enablestring= |
e6cc62c6 VS |
3341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3342 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3343 | no_cache=0 |
3344 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3345 | if test "${enable_debug_gdb+set}" = set; then | |
3346 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3347 | |
10f2d63a VZ |
3348 | if test "$enableval" = yes; then |
3349 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3350 | else | |
3351 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3352 | fi | |
e6cc62c6 | 3353 | |
10f2d63a | 3354 | else |
e6cc62c6 | 3355 | |
10f2d63a VZ |
3356 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3357 | if test "x$LINE" != x ; then | |
3358 | eval "DEFAULT_$LINE" | |
3359 | else | |
3360 | no_cache=1 | |
3361 | fi | |
3362 | ||
3363 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3364 | |
e6cc62c6 | 3365 | fi; |
10f2d63a VZ |
3366 | |
3367 | eval "$ac_cv_use_debug_gdb" | |
3368 | if test "$no_cache" != 1; then | |
3369 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3370 | fi | |
3371 | ||
3372 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3373 | echo "$as_me:$LINENO: result: yes" >&5 |
3374 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3375 | else |
e6cc62c6 VS |
3376 | echo "$as_me:$LINENO: result: no" >&5 |
3377 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3378 | fi |
e6cc62c6 | 3379 | |
10f2d63a | 3380 | |
5005acfe | 3381 | enablestring= |
e6cc62c6 VS |
3382 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3383 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3384 | no_cache=0 |
3385 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3386 | if test "${enable_debug_cntxt+set}" = set; then | |
3387 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3388 | |
10f2d63a VZ |
3389 | if test "$enableval" = yes; then |
3390 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3391 | else | |
3392 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3393 | fi | |
e6cc62c6 | 3394 | |
10f2d63a | 3395 | else |
e6cc62c6 | 3396 | |
10f2d63a VZ |
3397 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3398 | if test "x$LINE" != x ; then | |
3399 | eval "DEFAULT_$LINE" | |
3400 | else | |
3401 | no_cache=1 | |
3402 | fi | |
3403 | ||
3404 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3405 | |
e6cc62c6 | 3406 | fi; |
10f2d63a VZ |
3407 | |
3408 | eval "$ac_cv_use_debug_cntxt" | |
3409 | if test "$no_cache" != 1; then | |
3410 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3411 | fi | |
3412 | ||
3413 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3414 | echo "$as_me:$LINENO: result: yes" >&5 |
3415 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3416 | else |
e6cc62c6 VS |
3417 | echo "$as_me:$LINENO: result: no" >&5 |
3418 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3419 | fi |
e6cc62c6 | 3420 | |
10f2d63a | 3421 | |
5005acfe | 3422 | enablestring= |
e6cc62c6 VS |
3423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3424 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3425 | no_cache=0 |
3426 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3427 | if test "${enable_mem_tracing+set}" = set; then | |
3428 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3429 | |
10f2d63a VZ |
3430 | if test "$enableval" = yes; then |
3431 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3432 | else | |
3433 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3434 | fi | |
e6cc62c6 | 3435 | |
10f2d63a | 3436 | else |
e6cc62c6 | 3437 | |
10f2d63a VZ |
3438 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3439 | if test "x$LINE" != x ; then | |
3440 | eval "DEFAULT_$LINE" | |
3441 | else | |
3442 | no_cache=1 | |
3443 | fi | |
3444 | ||
3445 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3446 | |
e6cc62c6 | 3447 | fi; |
10f2d63a VZ |
3448 | |
3449 | eval "$ac_cv_use_mem_tracing" | |
3450 | if test "$no_cache" != 1; then | |
3451 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3452 | fi | |
3453 | ||
3454 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3455 | echo "$as_me:$LINENO: result: yes" >&5 |
3456 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3457 | else |
e6cc62c6 VS |
3458 | echo "$as_me:$LINENO: result: no" >&5 |
3459 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3460 | fi |
e6cc62c6 | 3461 | |
10f2d63a | 3462 | |
5005acfe | 3463 | enablestring= |
e6cc62c6 VS |
3464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3465 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3466 | no_cache=0 |
3467 | # Check whether --enable-profile or --disable-profile was given. | |
3468 | if test "${enable_profile+set}" = set; then | |
3469 | enableval="$enable_profile" | |
e6cc62c6 | 3470 | |
10f2d63a VZ |
3471 | if test "$enableval" = yes; then |
3472 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3473 | else | |
3474 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3475 | fi | |
e6cc62c6 | 3476 | |
10f2d63a | 3477 | else |
e6cc62c6 | 3478 | |
10f2d63a VZ |
3479 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3480 | if test "x$LINE" != x ; then | |
3481 | eval "DEFAULT_$LINE" | |
3482 | else | |
3483 | no_cache=1 | |
3484 | fi | |
3485 | ||
3486 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3487 | |
e6cc62c6 | 3488 | fi; |
10f2d63a VZ |
3489 | |
3490 | eval "$ac_cv_use_profile" | |
3491 | if test "$no_cache" != 1; then | |
3492 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3493 | fi | |
3494 | ||
3495 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3496 | echo "$as_me:$LINENO: result: yes" >&5 |
3497 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3498 | else |
e6cc62c6 VS |
3499 | echo "$as_me:$LINENO: result: no" >&5 |
3500 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3501 | fi |
e6cc62c6 | 3502 | |
10f2d63a | 3503 | |
5005acfe | 3504 | enablestring= |
e6cc62c6 VS |
3505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3506 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3507 | no_cache=0 |
3508 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3509 | if test "${enable_no_rtti+set}" = set; then | |
3510 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3511 | |
10f2d63a VZ |
3512 | if test "$enableval" = yes; then |
3513 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3514 | else | |
3515 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3516 | fi | |
e6cc62c6 | 3517 | |
10f2d63a | 3518 | else |
e6cc62c6 | 3519 | |
10f2d63a VZ |
3520 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3528 | |
e6cc62c6 | 3529 | fi; |
10f2d63a VZ |
3530 | |
3531 | eval "$ac_cv_use_no_rtti" | |
3532 | if test "$no_cache" != 1; then | |
3533 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3534 | fi | |
3535 | ||
3536 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3537 | echo "$as_me:$LINENO: result: yes" >&5 |
3538 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3539 | else |
e6cc62c6 VS |
3540 | echo "$as_me:$LINENO: result: no" >&5 |
3541 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3542 | fi |
e6cc62c6 | 3543 | |
10f2d63a | 3544 | |
5005acfe | 3545 | enablestring= |
e6cc62c6 VS |
3546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3547 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3548 | no_cache=0 |
3549 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3550 | if test "${enable_no_exceptions+set}" = set; then | |
3551 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3552 | |
10f2d63a VZ |
3553 | if test "$enableval" = yes; then |
3554 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3555 | else | |
3556 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3557 | fi | |
e6cc62c6 | 3558 | |
10f2d63a | 3559 | else |
e6cc62c6 | 3560 | |
10f2d63a VZ |
3561 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3562 | if test "x$LINE" != x ; then | |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
3568 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3569 | |
e6cc62c6 | 3570 | fi; |
10f2d63a VZ |
3571 | |
3572 | eval "$ac_cv_use_no_exceptions" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3578 | echo "$as_me:$LINENO: result: yes" >&5 |
3579 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3580 | else |
e6cc62c6 VS |
3581 | echo "$as_me:$LINENO: result: no" >&5 |
3582 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3583 | fi |
e6cc62c6 | 3584 | |
10f2d63a | 3585 | |
5005acfe | 3586 | enablestring= |
e6cc62c6 VS |
3587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3588 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-permissive or --disable-permissive was given. | |
3591 | if test "${enable_permissive+set}" = set; then | |
3592 | enableval="$enable_permissive" | |
e6cc62c6 | 3593 | |
10f2d63a VZ |
3594 | if test "$enableval" = yes; then |
3595 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3596 | else | |
3597 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3598 | fi | |
e6cc62c6 | 3599 | |
10f2d63a | 3600 | else |
e6cc62c6 | 3601 | |
10f2d63a VZ |
3602 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3610 | |
e6cc62c6 | 3611 | fi; |
10f2d63a VZ |
3612 | |
3613 | eval "$ac_cv_use_permissive" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3619 | echo "$as_me:$LINENO: result: yes" >&5 |
3620 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3621 | else |
e6cc62c6 VS |
3622 | echo "$as_me:$LINENO: result: no" >&5 |
3623 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3624 | fi |
e6cc62c6 | 3625 | |
10f2d63a | 3626 | |
5005acfe | 3627 | enablestring= |
e6cc62c6 VS |
3628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3629 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3632 | if test "${enable_no_deps+set}" = set; then | |
3633 | enableval="$enable_no_deps" | |
e6cc62c6 | 3634 | |
10f2d63a VZ |
3635 | if test "$enableval" = yes; then |
3636 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3637 | else | |
3638 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3639 | fi | |
e6cc62c6 | 3640 | |
10f2d63a | 3641 | else |
e6cc62c6 | 3642 | |
10f2d63a VZ |
3643 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3651 | |
e6cc62c6 | 3652 | fi; |
10f2d63a VZ |
3653 | |
3654 | eval "$ac_cv_use_no_deps" | |
3655 | if test "$no_cache" != 1; then | |
3656 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3657 | fi | |
3658 | ||
3659 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3660 | echo "$as_me:$LINENO: result: yes" >&5 |
3661 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3662 | else |
e6cc62c6 VS |
3663 | echo "$as_me:$LINENO: result: no" >&5 |
3664 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3665 | fi |
e6cc62c6 | 3666 | |
52127426 | 3667 | |
8284b0c5 | 3668 | |
65d8ef1e | 3669 | enablestring= |
e6cc62c6 VS |
3670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3671 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3672 | no_cache=0 |
3673 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3674 | if test "${enable_compat22+set}" = set; then | |
3675 | enableval="$enable_compat22" | |
e6cc62c6 | 3676 | |
54276ccf VZ |
3677 | if test "$enableval" = yes; then |
3678 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3679 | else | |
3680 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3681 | fi | |
e6cc62c6 | 3682 | |
54276ccf | 3683 | else |
e6cc62c6 | 3684 | |
54276ccf VZ |
3685 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3686 | if test "x$LINE" != x ; then | |
3687 | eval "DEFAULT_$LINE" | |
3688 | else | |
3689 | no_cache=1 | |
3690 | fi | |
3691 | ||
3692 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3693 | |
e6cc62c6 | 3694 | fi; |
54276ccf VZ |
3695 | |
3696 | eval "$ac_cv_use_compat22" | |
3697 | if test "$no_cache" != 1; then | |
3698 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3699 | fi | |
3700 | ||
3701 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3702 | echo "$as_me:$LINENO: result: yes" >&5 |
3703 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3704 | else |
e6cc62c6 VS |
3705 | echo "$as_me:$LINENO: result: no" >&5 |
3706 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3707 | fi |
e6cc62c6 | 3708 | |
54276ccf | 3709 | |
65d8ef1e | 3710 | enablestring=disable |
e6cc62c6 VS |
3711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3712 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3713 | no_cache=0 |
3714 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3715 | if test "${enable_compat24+set}" = set; then | |
3716 | enableval="$enable_compat24" | |
e6cc62c6 | 3717 | |
65d8ef1e VS |
3718 | if test "$enableval" = yes; then |
3719 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3720 | else | |
3721 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3722 | fi | |
e6cc62c6 | 3723 | |
65d8ef1e | 3724 | else |
e6cc62c6 | 3725 | |
65d8ef1e VS |
3726 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3727 | if test "x$LINE" != x ; then | |
3728 | eval "DEFAULT_$LINE" | |
3729 | else | |
3730 | no_cache=1 | |
3731 | fi | |
3732 | ||
3733 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3734 | |
e6cc62c6 | 3735 | fi; |
65d8ef1e VS |
3736 | |
3737 | eval "$ac_cv_use_compat24" | |
3738 | if test "$no_cache" != 1; then | |
3739 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3740 | fi | |
3741 | ||
3742 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3743 | echo "$as_me:$LINENO: result: yes" >&5 |
3744 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3745 | else |
e6cc62c6 VS |
3746 | echo "$as_me:$LINENO: result: no" >&5 |
3747 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3748 | fi |
e6cc62c6 | 3749 | |
65d8ef1e | 3750 | |
3bd8fb5f RD |
3751 | # Check whether --enable-rpath or --disable-rpath was given. |
3752 | if test "${enable_rpath+set}" = set; then | |
3753 | enableval="$enable_rpath" | |
3754 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3755 | fi; |
3bd8fb5f RD |
3756 | |
3757 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3758 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3759 | fi | |
3760 | ||
8284b0c5 MB |
3761 | |
3762 | ||
3763 | ||
5005acfe | 3764 | enablestring= |
e6cc62c6 VS |
3765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3766 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3767 | no_cache=0 |
3768 | # Check whether --enable-intl or --disable-intl was given. | |
3769 | if test "${enable_intl+set}" = set; then | |
3770 | enableval="$enable_intl" | |
e6cc62c6 | 3771 | |
10f2d63a VZ |
3772 | if test "$enableval" = yes; then |
3773 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3774 | else | |
3775 | ac_cv_use_intl='wxUSE_INTL=no' | |
3776 | fi | |
e6cc62c6 | 3777 | |
10f2d63a | 3778 | else |
e6cc62c6 | 3779 | |
10f2d63a VZ |
3780 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3781 | if test "x$LINE" != x ; then | |
3782 | eval "DEFAULT_$LINE" | |
3783 | else | |
3784 | no_cache=1 | |
3785 | fi | |
3786 | ||
3787 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3788 | |
e6cc62c6 | 3789 | fi; |
10f2d63a VZ |
3790 | |
3791 | eval "$ac_cv_use_intl" | |
3792 | if test "$no_cache" != 1; then | |
3793 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3794 | fi | |
3795 | ||
3796 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3797 | echo "$as_me:$LINENO: result: yes" >&5 |
3798 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3799 | else |
e6cc62c6 VS |
3800 | echo "$as_me:$LINENO: result: no" >&5 |
3801 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3802 | fi |
e6cc62c6 | 3803 | |
10f2d63a | 3804 | |
5005acfe | 3805 | enablestring= |
e6cc62c6 VS |
3806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3807 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3808 | no_cache=0 |
3809 | # Check whether --enable-config or --disable-config was given. | |
3810 | if test "${enable_config+set}" = set; then | |
3811 | enableval="$enable_config" | |
e6cc62c6 | 3812 | |
10f2d63a VZ |
3813 | if test "$enableval" = yes; then |
3814 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3815 | else | |
3816 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3817 | fi | |
e6cc62c6 | 3818 | |
10f2d63a | 3819 | else |
e6cc62c6 | 3820 | |
10f2d63a VZ |
3821 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3822 | if test "x$LINE" != x ; then | |
3823 | eval "DEFAULT_$LINE" | |
3824 | else | |
3825 | no_cache=1 | |
3826 | fi | |
3827 | ||
3828 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3829 | |
e6cc62c6 | 3830 | fi; |
10f2d63a VZ |
3831 | |
3832 | eval "$ac_cv_use_config" | |
3833 | if test "$no_cache" != 1; then | |
3834 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3835 | fi | |
3836 | ||
3837 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3838 | echo "$as_me:$LINENO: result: yes" >&5 |
3839 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3840 | else |
e6cc62c6 VS |
3841 | echo "$as_me:$LINENO: result: no" >&5 |
3842 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3843 | fi |
e6cc62c6 | 3844 | |
52127426 | 3845 | |
8284b0c5 | 3846 | |
5005acfe | 3847 | enablestring= |
e6cc62c6 VS |
3848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3849 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3850 | no_cache=0 |
3851 | # Check whether --enable-protocols or --disable-protocols was given. | |
3852 | if test "${enable_protocols+set}" = set; then | |
3853 | enableval="$enable_protocols" | |
e6cc62c6 | 3854 | |
a1622950 VZ |
3855 | if test "$enableval" = yes; then |
3856 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3857 | else | |
3858 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3859 | fi | |
e6cc62c6 | 3860 | |
a1622950 | 3861 | else |
e6cc62c6 | 3862 | |
a1622950 VZ |
3863 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3864 | if test "x$LINE" != x ; then | |
3865 | eval "DEFAULT_$LINE" | |
3866 | else | |
3867 | no_cache=1 | |
3868 | fi | |
3869 | ||
3870 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3871 | |
e6cc62c6 | 3872 | fi; |
a1622950 VZ |
3873 | |
3874 | eval "$ac_cv_use_protocols" | |
3875 | if test "$no_cache" != 1; then | |
3876 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3877 | fi | |
3878 | ||
3879 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3880 | echo "$as_me:$LINENO: result: yes" >&5 |
3881 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3882 | else |
e6cc62c6 VS |
3883 | echo "$as_me:$LINENO: result: no" >&5 |
3884 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3885 | fi |
e6cc62c6 | 3886 | |
a1622950 | 3887 | |
5005acfe | 3888 | enablestring= |
e6cc62c6 VS |
3889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3890 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3891 | no_cache=0 |
3892 | # Check whether --enable-ftp or --disable-ftp was given. | |
3893 | if test "${enable_ftp+set}" = set; then | |
3894 | enableval="$enable_ftp" | |
e6cc62c6 | 3895 | |
a1622950 VZ |
3896 | if test "$enableval" = yes; then |
3897 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3898 | else | |
3899 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3900 | fi | |
e6cc62c6 | 3901 | |
a1622950 | 3902 | else |
e6cc62c6 | 3903 | |
a1622950 VZ |
3904 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3912 | |
e6cc62c6 | 3913 | fi; |
a1622950 VZ |
3914 | |
3915 | eval "$ac_cv_use_ftp" | |
3916 | if test "$no_cache" != 1; then | |
3917 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3918 | fi | |
3919 | ||
3920 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3921 | echo "$as_me:$LINENO: result: yes" >&5 |
3922 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3923 | else |
e6cc62c6 VS |
3924 | echo "$as_me:$LINENO: result: no" >&5 |
3925 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3926 | fi |
e6cc62c6 | 3927 | |
a1622950 | 3928 | |
5005acfe | 3929 | enablestring= |
e6cc62c6 VS |
3930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3931 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3932 | no_cache=0 |
3933 | # Check whether --enable-http or --disable-http was given. | |
3934 | if test "${enable_http+set}" = set; then | |
3935 | enableval="$enable_http" | |
e6cc62c6 | 3936 | |
a1622950 VZ |
3937 | if test "$enableval" = yes; then |
3938 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3939 | else | |
3940 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3941 | fi | |
e6cc62c6 | 3942 | |
a1622950 | 3943 | else |
e6cc62c6 | 3944 | |
a1622950 VZ |
3945 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3946 | if test "x$LINE" != x ; then | |
3947 | eval "DEFAULT_$LINE" | |
3948 | else | |
3949 | no_cache=1 | |
3950 | fi | |
3951 | ||
3952 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3953 | |
e6cc62c6 | 3954 | fi; |
a1622950 VZ |
3955 | |
3956 | eval "$ac_cv_use_http" | |
3957 | if test "$no_cache" != 1; then | |
3958 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3959 | fi | |
3960 | ||
3961 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3962 | echo "$as_me:$LINENO: result: yes" >&5 |
3963 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3964 | else |
e6cc62c6 VS |
3965 | echo "$as_me:$LINENO: result: no" >&5 |
3966 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3967 | fi |
e6cc62c6 | 3968 | |
a1622950 | 3969 | |
5005acfe | 3970 | enablestring= |
e6cc62c6 VS |
3971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3972 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3973 | no_cache=0 |
3974 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3975 | if test "${enable_fileproto+set}" = set; then | |
3976 | enableval="$enable_fileproto" | |
e6cc62c6 | 3977 | |
a1622950 VZ |
3978 | if test "$enableval" = yes; then |
3979 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3980 | else | |
3981 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3982 | fi | |
e6cc62c6 | 3983 | |
a1622950 | 3984 | else |
e6cc62c6 | 3985 | |
a1622950 VZ |
3986 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3987 | if test "x$LINE" != x ; then | |
3988 | eval "DEFAULT_$LINE" | |
3989 | else | |
3990 | no_cache=1 | |
3991 | fi | |
3992 | ||
3993 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 3994 | |
e6cc62c6 | 3995 | fi; |
a1622950 VZ |
3996 | |
3997 | eval "$ac_cv_use_fileproto" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4003 | echo "$as_me:$LINENO: result: yes" >&5 |
4004 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4005 | else |
e6cc62c6 VS |
4006 | echo "$as_me:$LINENO: result: no" >&5 |
4007 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4008 | fi |
e6cc62c6 | 4009 | |
a1622950 | 4010 | |
5005acfe | 4011 | enablestring= |
e6cc62c6 VS |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4014 | no_cache=0 |
4015 | # Check whether --enable-sockets or --disable-sockets was given. | |
4016 | if test "${enable_sockets+set}" = set; then | |
4017 | enableval="$enable_sockets" | |
e6cc62c6 | 4018 | |
10f2d63a VZ |
4019 | if test "$enableval" = yes; then |
4020 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4021 | else | |
4022 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4023 | fi | |
e6cc62c6 | 4024 | |
10f2d63a | 4025 | else |
e6cc62c6 | 4026 | |
10f2d63a VZ |
4027 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4035 | |
e6cc62c6 | 4036 | fi; |
10f2d63a VZ |
4037 | |
4038 | eval "$ac_cv_use_sockets" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4044 | echo "$as_me:$LINENO: result: yes" >&5 |
4045 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4046 | else |
e6cc62c6 VS |
4047 | echo "$as_me:$LINENO: result: no" >&5 |
4048 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4049 | fi |
e6cc62c6 | 4050 | |
8284b0c5 | 4051 | |
5005acfe | 4052 | enablestring= |
e6cc62c6 VS |
4053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4054 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4055 | no_cache=0 |
4056 | # Check whether --enable-ole or --disable-ole was given. | |
4057 | if test "${enable_ole+set}" = set; then | |
4058 | enableval="$enable_ole" | |
e6cc62c6 | 4059 | |
3bce6687 JS |
4060 | if test "$enableval" = yes; then |
4061 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4062 | else | |
4063 | ac_cv_use_ole='wxUSE_OLE=no' | |
4064 | fi | |
e6cc62c6 | 4065 | |
3bce6687 | 4066 | else |
e6cc62c6 | 4067 | |
3bce6687 JS |
4068 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4076 | |
e6cc62c6 | 4077 | fi; |
3bce6687 JS |
4078 | |
4079 | eval "$ac_cv_use_ole" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4085 | echo "$as_me:$LINENO: result: yes" >&5 |
4086 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4087 | else |
e6cc62c6 VS |
4088 | echo "$as_me:$LINENO: result: no" >&5 |
4089 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4090 | fi |
e6cc62c6 | 4091 | |
3bce6687 | 4092 | |
5005acfe | 4093 | enablestring= |
e6cc62c6 VS |
4094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4095 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4096 | no_cache=0 |
4097 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4098 | if test "${enable_dataobj+set}" = set; then | |
4099 | enableval="$enable_dataobj" | |
e6cc62c6 | 4100 | |
3bce6687 JS |
4101 | if test "$enableval" = yes; then |
4102 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4103 | else | |
4104 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4105 | fi | |
e6cc62c6 | 4106 | |
3bce6687 | 4107 | else |
e6cc62c6 | 4108 | |
3bce6687 JS |
4109 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4117 | |
e6cc62c6 | 4118 | fi; |
3bce6687 JS |
4119 | |
4120 | eval "$ac_cv_use_dataobj" | |
4121 | if test "$no_cache" != 1; then | |
4122 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4123 | fi | |
4124 | ||
4125 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4126 | echo "$as_me:$LINENO: result: yes" >&5 |
4127 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4128 | else |
e6cc62c6 VS |
4129 | echo "$as_me:$LINENO: result: no" >&5 |
4130 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4131 | fi |
e6cc62c6 | 4132 | |
3bce6687 | 4133 | |
52127426 | 4134 | |
5005acfe | 4135 | enablestring= |
e6cc62c6 VS |
4136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4137 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4138 | no_cache=0 |
eb4efbdc VZ |
4139 | # Check whether --enable-ipc or --disable-ipc was given. |
4140 | if test "${enable_ipc+set}" = set; then | |
4141 | enableval="$enable_ipc" | |
e6cc62c6 | 4142 | |
10f2d63a | 4143 | if test "$enableval" = yes; then |
eb4efbdc | 4144 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4145 | else |
eb4efbdc | 4146 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4147 | fi |
e6cc62c6 | 4148 | |
10f2d63a | 4149 | else |
e6cc62c6 | 4150 | |
eb4efbdc | 4151 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4152 | if test "x$LINE" != x ; then |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
eb4efbdc | 4158 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4159 | |
e6cc62c6 | 4160 | fi; |
10f2d63a | 4161 | |
eb4efbdc | 4162 | eval "$ac_cv_use_ipc" |
10f2d63a | 4163 | if test "$no_cache" != 1; then |
eb4efbdc | 4164 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4165 | fi |
4166 | ||
eb4efbdc | 4167 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4168 | echo "$as_me:$LINENO: result: yes" >&5 |
4169 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4170 | else |
e6cc62c6 VS |
4171 | echo "$as_me:$LINENO: result: no" >&5 |
4172 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4173 | fi |
e6cc62c6 | 4174 | |
52127426 | 4175 | |
8284b0c5 | 4176 | |
5005acfe | 4177 | enablestring= |
e6cc62c6 VS |
4178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4179 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4180 | no_cache=0 |
4181 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4182 | if test "${enable_cmdline+set}" = set; then | |
4183 | enableval="$enable_cmdline" | |
e6cc62c6 | 4184 | |
1e6feb95 VZ |
4185 | if test "$enableval" = yes; then |
4186 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4187 | else | |
4188 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4189 | fi | |
e6cc62c6 | 4190 | |
1e6feb95 | 4191 | else |
e6cc62c6 | 4192 | |
1e6feb95 VZ |
4193 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4194 | if test "x$LINE" != x ; then | |
4195 | eval "DEFAULT_$LINE" | |
4196 | else | |
4197 | no_cache=1 | |
4198 | fi | |
4199 | ||
4200 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4201 | |
e6cc62c6 | 4202 | fi; |
1e6feb95 VZ |
4203 | |
4204 | eval "$ac_cv_use_cmdline" | |
4205 | if test "$no_cache" != 1; then | |
4206 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4207 | fi | |
4208 | ||
4209 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4210 | echo "$as_me:$LINENO: result: yes" >&5 |
4211 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4212 | else |
e6cc62c6 VS |
4213 | echo "$as_me:$LINENO: result: no" >&5 |
4214 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4215 | fi |
e6cc62c6 | 4216 | |
1e6feb95 | 4217 | |
5005acfe | 4218 | enablestring= |
e6cc62c6 VS |
4219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4220 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4221 | no_cache=0 |
4222 | # Check whether --enable-datetime or --disable-datetime was given. | |
4223 | if test "${enable_datetime+set}" = set; then | |
4224 | enableval="$enable_datetime" | |
e6cc62c6 | 4225 | |
1e6feb95 VZ |
4226 | if test "$enableval" = yes; then |
4227 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4228 | else | |
4229 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4230 | fi | |
e6cc62c6 | 4231 | |
1e6feb95 | 4232 | else |
e6cc62c6 | 4233 | |
1e6feb95 VZ |
4234 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4235 | if test "x$LINE" != x ; then | |
4236 | eval "DEFAULT_$LINE" | |
4237 | else | |
4238 | no_cache=1 | |
4239 | fi | |
4240 | ||
4241 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4242 | |
e6cc62c6 | 4243 | fi; |
1e6feb95 VZ |
4244 | |
4245 | eval "$ac_cv_use_datetime" | |
4246 | if test "$no_cache" != 1; then | |
4247 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4248 | fi | |
4249 | ||
4250 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4251 | echo "$as_me:$LINENO: result: yes" >&5 |
4252 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4253 | else |
e6cc62c6 VS |
4254 | echo "$as_me:$LINENO: result: no" >&5 |
4255 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4256 | fi |
e6cc62c6 | 4257 | |
1e6feb95 | 4258 | |
5005acfe | 4259 | enablestring= |
e6cc62c6 VS |
4260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4261 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4262 | no_cache=0 |
4263 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4264 | if test "${enable_stopwatch+set}" = set; then | |
4265 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4266 | |
1e6feb95 VZ |
4267 | if test "$enableval" = yes; then |
4268 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4269 | else | |
4270 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4271 | fi | |
e6cc62c6 | 4272 | |
1e6feb95 | 4273 | else |
e6cc62c6 | 4274 | |
1e6feb95 VZ |
4275 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4276 | if test "x$LINE" != x ; then | |
4277 | eval "DEFAULT_$LINE" | |
4278 | else | |
4279 | no_cache=1 | |
4280 | fi | |
4281 | ||
4282 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4283 | |
e6cc62c6 | 4284 | fi; |
1e6feb95 VZ |
4285 | |
4286 | eval "$ac_cv_use_stopwatch" | |
4287 | if test "$no_cache" != 1; then | |
4288 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4289 | fi | |
4290 | ||
4291 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4292 | echo "$as_me:$LINENO: result: yes" >&5 |
4293 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4294 | else |
e6cc62c6 VS |
4295 | echo "$as_me:$LINENO: result: no" >&5 |
4296 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4297 | fi |
e6cc62c6 | 4298 | |
1e6feb95 | 4299 | |
5005acfe | 4300 | enablestring= |
e6cc62c6 VS |
4301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4302 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4303 | no_cache=0 |
eb4efbdc VZ |
4304 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4305 | if test "${enable_dialupman+set}" = set; then | |
4306 | enableval="$enable_dialupman" | |
e6cc62c6 | 4307 | |
10f2d63a | 4308 | if test "$enableval" = yes; then |
eb4efbdc | 4309 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4310 | else |
eb4efbdc | 4311 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4312 | fi |
e6cc62c6 | 4313 | |
10f2d63a | 4314 | else |
e6cc62c6 | 4315 | |
eb4efbdc | 4316 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4317 | if test "x$LINE" != x ; then |
4318 | eval "DEFAULT_$LINE" | |
4319 | else | |
4320 | no_cache=1 | |
4321 | fi | |
4322 | ||
eb4efbdc | 4323 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4324 | |
e6cc62c6 | 4325 | fi; |
10f2d63a | 4326 | |
eb4efbdc | 4327 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4328 | if test "$no_cache" != 1; then |
eb4efbdc | 4329 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4330 | fi |
4331 | ||
eb4efbdc | 4332 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4333 | echo "$as_me:$LINENO: result: yes" >&5 |
4334 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4335 | else |
e6cc62c6 VS |
4336 | echo "$as_me:$LINENO: result: no" >&5 |
4337 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4338 | fi |
e6cc62c6 | 4339 | |
10f2d63a | 4340 | |
5005acfe | 4341 | enablestring= |
e6cc62c6 VS |
4342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4343 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4344 | no_cache=0 |
4345 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4346 | if test "${enable_apple_ieee+set}" = set; then | |
4347 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4348 | |
10f2d63a VZ |
4349 | if test "$enableval" = yes; then |
4350 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4351 | else | |
4352 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4353 | fi | |
e6cc62c6 | 4354 | |
10f2d63a | 4355 | else |
e6cc62c6 | 4356 | |
10f2d63a VZ |
4357 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4358 | if test "x$LINE" != x ; then | |
4359 | eval "DEFAULT_$LINE" | |
4360 | else | |
4361 | no_cache=1 | |
4362 | fi | |
4363 | ||
4364 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4365 | |
e6cc62c6 | 4366 | fi; |
10f2d63a VZ |
4367 | |
4368 | eval "$ac_cv_use_apple_ieee" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4374 | echo "$as_me:$LINENO: result: yes" >&5 |
4375 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4376 | else |
e6cc62c6 VS |
4377 | echo "$as_me:$LINENO: result: no" >&5 |
4378 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4379 | fi |
e6cc62c6 | 4380 | |
10f2d63a | 4381 | |
5005acfe | 4382 | enablestring= |
e6cc62c6 VS |
4383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4384 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4385 | no_cache=0 |
1e6feb95 VZ |
4386 | # Check whether --enable-timer or --disable-timer was given. |
4387 | if test "${enable_timer+set}" = set; then | |
4388 | enableval="$enable_timer" | |
e6cc62c6 | 4389 | |
10f2d63a | 4390 | if test "$enableval" = yes; then |
1e6feb95 | 4391 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4392 | else |
1e6feb95 | 4393 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4394 | fi |
e6cc62c6 | 4395 | |
10f2d63a | 4396 | else |
e6cc62c6 | 4397 | |
1e6feb95 | 4398 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4399 | if test "x$LINE" != x ; then |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
1e6feb95 | 4405 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4406 | |
e6cc62c6 | 4407 | fi; |
10f2d63a | 4408 | |
1e6feb95 | 4409 | eval "$ac_cv_use_timer" |
10f2d63a | 4410 | if test "$no_cache" != 1; then |
1e6feb95 | 4411 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4412 | fi |
4413 | ||
1e6feb95 | 4414 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4415 | echo "$as_me:$LINENO: result: yes" >&5 |
4416 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4417 | else |
e6cc62c6 VS |
4418 | echo "$as_me:$LINENO: result: no" >&5 |
4419 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4420 | fi |
e6cc62c6 | 4421 | |
10f2d63a | 4422 | |
5005acfe | 4423 | enablestring= |
e6cc62c6 VS |
4424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4425 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4426 | no_cache=0 |
4427 | # Check whether --enable-wave or --disable-wave was given. | |
4428 | if test "${enable_wave+set}" = set; then | |
4429 | enableval="$enable_wave" | |
e6cc62c6 | 4430 | |
10f2d63a VZ |
4431 | if test "$enableval" = yes; then |
4432 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4433 | else | |
4434 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4435 | fi | |
e6cc62c6 | 4436 | |
10f2d63a | 4437 | else |
e6cc62c6 | 4438 | |
10f2d63a VZ |
4439 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4447 | |
e6cc62c6 | 4448 | fi; |
10f2d63a VZ |
4449 | |
4450 | eval "$ac_cv_use_wave" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4456 | echo "$as_me:$LINENO: result: yes" >&5 |
4457 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4458 | else |
e6cc62c6 VS |
4459 | echo "$as_me:$LINENO: result: no" >&5 |
4460 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4461 | fi |
e6cc62c6 | 4462 | |
10f2d63a | 4463 | |
5005acfe | 4464 | enablestring= |
e6cc62c6 VS |
4465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4467 | no_cache=0 |
4468 | # Check whether --enable-fraction or --disable-fraction was given. | |
4469 | if test "${enable_fraction+set}" = set; then | |
4470 | enableval="$enable_fraction" | |
e6cc62c6 | 4471 | |
10f2d63a VZ |
4472 | if test "$enableval" = yes; then |
4473 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4474 | else | |
4475 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4476 | fi | |
e6cc62c6 | 4477 | |
10f2d63a | 4478 | else |
e6cc62c6 | 4479 | |
10f2d63a VZ |
4480 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4488 | |
e6cc62c6 | 4489 | fi; |
10f2d63a VZ |
4490 | |
4491 | eval "$ac_cv_use_fraction" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4497 | echo "$as_me:$LINENO: result: yes" >&5 |
4498 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4499 | else |
e6cc62c6 VS |
4500 | echo "$as_me:$LINENO: result: no" >&5 |
4501 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4502 | fi |
e6cc62c6 | 4503 | |
10f2d63a | 4504 | |
5005acfe | 4505 | enablestring= |
e6cc62c6 VS |
4506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4507 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4508 | no_cache=0 |
4509 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4510 | if test "${enable_dynlib+set}" = set; then | |
4511 | enableval="$enable_dynlib" | |
e6cc62c6 | 4512 | |
10f2d63a VZ |
4513 | if test "$enableval" = yes; then |
4514 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4515 | else | |
4516 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4517 | fi | |
e6cc62c6 | 4518 | |
10f2d63a | 4519 | else |
e6cc62c6 | 4520 | |
10f2d63a VZ |
4521 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4529 | |
e6cc62c6 | 4530 | fi; |
10f2d63a VZ |
4531 | |
4532 | eval "$ac_cv_use_dynlib" | |
4533 | if test "$no_cache" != 1; then | |
4534 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4535 | fi | |
4536 | ||
4537 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4538 | echo "$as_me:$LINENO: result: yes" >&5 |
4539 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4540 | else |
e6cc62c6 VS |
4541 | echo "$as_me:$LINENO: result: no" >&5 |
4542 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4543 | fi |
e6cc62c6 | 4544 | |
10f2d63a | 4545 | |
5005acfe | 4546 | enablestring= |
e6cc62c6 VS |
4547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4548 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4549 | no_cache=0 |
4550 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4551 | if test "${enable_dynamicloader+set}" = set; then | |
4552 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4553 | |
0b9ab0bd RL |
4554 | if test "$enableval" = yes; then |
4555 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4556 | else | |
4557 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4558 | fi | |
e6cc62c6 | 4559 | |
0b9ab0bd | 4560 | else |
e6cc62c6 | 4561 | |
0b9ab0bd RL |
4562 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4570 | |
e6cc62c6 | 4571 | fi; |
0b9ab0bd RL |
4572 | |
4573 | eval "$ac_cv_use_dynamicloader" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4579 | echo "$as_me:$LINENO: result: yes" >&5 |
4580 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4581 | else |
e6cc62c6 VS |
4582 | echo "$as_me:$LINENO: result: no" >&5 |
4583 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4584 | fi |
e6cc62c6 | 4585 | |
0b9ab0bd | 4586 | |
5005acfe | 4587 | enablestring= |
e6cc62c6 VS |
4588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4589 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-longlong or --disable-longlong was given. | |
4592 | if test "${enable_longlong+set}" = set; then | |
4593 | enableval="$enable_longlong" | |
e6cc62c6 | 4594 | |
10f2d63a VZ |
4595 | if test "$enableval" = yes; then |
4596 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4597 | else | |
4598 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4599 | fi | |
e6cc62c6 | 4600 | |
10f2d63a | 4601 | else |
e6cc62c6 | 4602 | |
10f2d63a VZ |
4603 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4611 | |
e6cc62c6 | 4612 | fi; |
10f2d63a VZ |
4613 | |
4614 | eval "$ac_cv_use_longlong" | |
4615 | if test "$no_cache" != 1; then | |
4616 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4617 | fi | |
4618 | ||
4619 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4620 | echo "$as_me:$LINENO: result: yes" >&5 |
4621 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4622 | else |
e6cc62c6 VS |
4623 | echo "$as_me:$LINENO: result: no" >&5 |
4624 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4625 | fi |
e6cc62c6 | 4626 | |
10f2d63a | 4627 | |
5005acfe | 4628 | enablestring= |
e6cc62c6 VS |
4629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4630 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4631 | no_cache=0 |
4632 | # Check whether --enable-geometry or --disable-geometry was given. | |
4633 | if test "${enable_geometry+set}" = set; then | |
4634 | enableval="$enable_geometry" | |
e6cc62c6 | 4635 | |
e8f65ba6 RR |
4636 | if test "$enableval" = yes; then |
4637 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4638 | else | |
4639 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4640 | fi | |
e6cc62c6 | 4641 | |
e8f65ba6 | 4642 | else |
e6cc62c6 | 4643 | |
e8f65ba6 RR |
4644 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4652 | |
e6cc62c6 | 4653 | fi; |
e8f65ba6 RR |
4654 | |
4655 | eval "$ac_cv_use_geometry" | |
4656 | if test "$no_cache" != 1; then | |
4657 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4658 | fi | |
4659 | ||
4660 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4661 | echo "$as_me:$LINENO: result: yes" >&5 |
4662 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4663 | else |
e6cc62c6 VS |
4664 | echo "$as_me:$LINENO: result: no" >&5 |
4665 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4666 | fi |
e6cc62c6 | 4667 | |
e8f65ba6 | 4668 | |
5005acfe | 4669 | enablestring= |
e6cc62c6 VS |
4670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4671 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4672 | no_cache=0 |
4673 | # Check whether --enable-log or --disable-log was given. | |
4674 | if test "${enable_log+set}" = set; then | |
4675 | enableval="$enable_log" | |
e6cc62c6 | 4676 | |
10f2d63a VZ |
4677 | if test "$enableval" = yes; then |
4678 | ac_cv_use_log='wxUSE_LOG=yes' | |
4679 | else | |
4680 | ac_cv_use_log='wxUSE_LOG=no' | |
4681 | fi | |
e6cc62c6 | 4682 | |
10f2d63a | 4683 | else |
e6cc62c6 | 4684 | |
10f2d63a VZ |
4685 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4686 | if test "x$LINE" != x ; then | |
4687 | eval "DEFAULT_$LINE" | |
4688 | else | |
4689 | no_cache=1 | |
4690 | fi | |
4691 | ||
4692 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4693 | |
e6cc62c6 | 4694 | fi; |
10f2d63a VZ |
4695 | |
4696 | eval "$ac_cv_use_log" | |
4697 | if test "$no_cache" != 1; then | |
4698 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4699 | fi | |
4700 | ||
4701 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4702 | echo "$as_me:$LINENO: result: yes" >&5 |
4703 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4704 | else |
e6cc62c6 VS |
4705 | echo "$as_me:$LINENO: result: no" >&5 |
4706 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4707 | fi |
e6cc62c6 | 4708 | |
10f2d63a | 4709 | |
5005acfe | 4710 | enablestring= |
e6cc62c6 VS |
4711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4712 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4713 | no_cache=0 |
4714 | # Check whether --enable-streams or --disable-streams was given. | |
4715 | if test "${enable_streams+set}" = set; then | |
4716 | enableval="$enable_streams" | |
e6cc62c6 | 4717 | |
10f2d63a VZ |
4718 | if test "$enableval" = yes; then |
4719 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4720 | else | |
4721 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4722 | fi | |
e6cc62c6 | 4723 | |
10f2d63a | 4724 | else |
e6cc62c6 | 4725 | |
10f2d63a VZ |
4726 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4727 | if test "x$LINE" != x ; then | |
4728 | eval "DEFAULT_$LINE" | |
4729 | else | |
4730 | no_cache=1 | |
4731 | fi | |
4732 | ||
4733 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4734 | |
e6cc62c6 | 4735 | fi; |
10f2d63a VZ |
4736 | |
4737 | eval "$ac_cv_use_streams" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4743 | echo "$as_me:$LINENO: result: yes" >&5 |
4744 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4745 | else |
e6cc62c6 VS |
4746 | echo "$as_me:$LINENO: result: no" >&5 |
4747 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4748 | fi |
e6cc62c6 | 4749 | |
10f2d63a | 4750 | |
5005acfe | 4751 | enablestring= |
e6cc62c6 VS |
4752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4753 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4754 | no_cache=0 |
4755 | # Check whether --enable-file or --disable-file was given. | |
4756 | if test "${enable_file+set}" = set; then | |
4757 | enableval="$enable_file" | |
e6cc62c6 | 4758 | |
10f2d63a VZ |
4759 | if test "$enableval" = yes; then |
4760 | ac_cv_use_file='wxUSE_FILE=yes' | |
4761 | else | |
4762 | ac_cv_use_file='wxUSE_FILE=no' | |
4763 | fi | |
e6cc62c6 | 4764 | |
10f2d63a | 4765 | else |
e6cc62c6 | 4766 | |
10f2d63a VZ |
4767 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4768 | if test "x$LINE" != x ; then | |
4769 | eval "DEFAULT_$LINE" | |
4770 | else | |
4771 | no_cache=1 | |
4772 | fi | |
4773 | ||
4774 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4775 | |
e6cc62c6 | 4776 | fi; |
10f2d63a VZ |
4777 | |
4778 | eval "$ac_cv_use_file" | |
4779 | if test "$no_cache" != 1; then | |
4780 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4781 | fi | |
4782 | ||
4783 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4784 | echo "$as_me:$LINENO: result: yes" >&5 |
4785 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4786 | else |
e6cc62c6 VS |
4787 | echo "$as_me:$LINENO: result: no" >&5 |
4788 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4789 | fi |
e6cc62c6 | 4790 | |
10f2d63a | 4791 | |
5005acfe | 4792 | enablestring= |
e6cc62c6 VS |
4793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4794 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4795 | no_cache=0 |
1e6feb95 VZ |
4796 | # Check whether --enable-ffile or --disable-ffile was given. |
4797 | if test "${enable_ffile+set}" = set; then | |
4798 | enableval="$enable_ffile" | |
e6cc62c6 | 4799 | |
10f2d63a | 4800 | if test "$enableval" = yes; then |
1e6feb95 | 4801 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4802 | else |
1e6feb95 | 4803 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4804 | fi |
e6cc62c6 | 4805 | |
10f2d63a | 4806 | else |
e6cc62c6 | 4807 | |
1e6feb95 | 4808 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4809 | if test "x$LINE" != x ; then |
4810 | eval "DEFAULT_$LINE" | |
4811 | else | |
4812 | no_cache=1 | |
4813 | fi | |
4814 | ||
1e6feb95 | 4815 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4816 | |
e6cc62c6 | 4817 | fi; |
10f2d63a | 4818 | |
1e6feb95 | 4819 | eval "$ac_cv_use_ffile" |
10f2d63a | 4820 | if test "$no_cache" != 1; then |
1e6feb95 | 4821 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4822 | fi |
4823 | ||
1e6feb95 | 4824 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4825 | echo "$as_me:$LINENO: result: yes" >&5 |
4826 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4827 | else |
e6cc62c6 VS |
4828 | echo "$as_me:$LINENO: result: no" >&5 |
4829 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4830 | fi |
e6cc62c6 | 4831 | |
10f2d63a | 4832 | |
5005acfe | 4833 | enablestring= |
e6cc62c6 VS |
4834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4835 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4836 | no_cache=0 |
4837 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4838 | if test "${enable_textbuf+set}" = set; then | |
4839 | enableval="$enable_textbuf" | |
e6cc62c6 | 4840 | |
a3a584a7 VZ |
4841 | if test "$enableval" = yes; then |
4842 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4843 | else | |
4844 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4845 | fi | |
e6cc62c6 | 4846 | |
a3a584a7 | 4847 | else |
e6cc62c6 | 4848 | |
a3a584a7 VZ |
4849 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4850 | if test "x$LINE" != x ; then | |
4851 | eval "DEFAULT_$LINE" | |
4852 | else | |
4853 | no_cache=1 | |
4854 | fi | |
4855 | ||
4856 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4857 | |
e6cc62c6 | 4858 | fi; |
a3a584a7 VZ |
4859 | |
4860 | eval "$ac_cv_use_textbuf" | |
4861 | if test "$no_cache" != 1; then | |
4862 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4863 | fi | |
4864 | ||
4865 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4866 | echo "$as_me:$LINENO: result: yes" >&5 |
4867 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4868 | else |
e6cc62c6 VS |
4869 | echo "$as_me:$LINENO: result: no" >&5 |
4870 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4871 | fi |
e6cc62c6 | 4872 | |
a3a584a7 | 4873 | |
5005acfe | 4874 | enablestring= |
e6cc62c6 VS |
4875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4876 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4877 | no_cache=0 |
1e6feb95 VZ |
4878 | # Check whether --enable-textfile or --disable-textfile was given. |
4879 | if test "${enable_textfile+set}" = set; then | |
4880 | enableval="$enable_textfile" | |
e6cc62c6 | 4881 | |
10f2d63a | 4882 | if test "$enableval" = yes; then |
1e6feb95 | 4883 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4884 | else |
1e6feb95 | 4885 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4886 | fi |
e6cc62c6 | 4887 | |
10f2d63a | 4888 | else |
e6cc62c6 | 4889 | |
1e6feb95 | 4890 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4891 | if test "x$LINE" != x ; then |
4892 | eval "DEFAULT_$LINE" | |
4893 | else | |
4894 | no_cache=1 | |
4895 | fi | |
4896 | ||
1e6feb95 | 4897 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4898 | |
e6cc62c6 | 4899 | fi; |
10f2d63a | 4900 | |
1e6feb95 | 4901 | eval "$ac_cv_use_textfile" |
10f2d63a | 4902 | if test "$no_cache" != 1; then |
1e6feb95 | 4903 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4904 | fi |
4905 | ||
1e6feb95 | 4906 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4907 | echo "$as_me:$LINENO: result: yes" >&5 |
4908 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4909 | else |
e6cc62c6 VS |
4910 | echo "$as_me:$LINENO: result: no" >&5 |
4911 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4912 | fi |
e6cc62c6 | 4913 | |
10f2d63a | 4914 | |
5005acfe | 4915 | enablestring= |
e6cc62c6 VS |
4916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4917 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4918 | no_cache=0 |
1e6feb95 VZ |
4919 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4920 | if test "${enable_fontmap+set}" = set; then | |
4921 | enableval="$enable_fontmap" | |
e6cc62c6 | 4922 | |
10f2d63a | 4923 | if test "$enableval" = yes; then |
1e6feb95 | 4924 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4925 | else |
1e6feb95 | 4926 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4927 | fi |
e6cc62c6 | 4928 | |
10f2d63a | 4929 | else |
e6cc62c6 | 4930 | |
1e6feb95 | 4931 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4932 | if test "x$LINE" != x ; then |
4933 | eval "DEFAULT_$LINE" | |
4934 | else | |
4935 | no_cache=1 | |
4936 | fi | |
4937 | ||
1e6feb95 | 4938 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4939 | |
e6cc62c6 | 4940 | fi; |
10f2d63a | 4941 | |
1e6feb95 | 4942 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4943 | if test "$no_cache" != 1; then |
1e6feb95 | 4944 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4945 | fi |
4946 | ||
1e6feb95 | 4947 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4948 | echo "$as_me:$LINENO: result: yes" >&5 |
4949 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4950 | else |
e6cc62c6 VS |
4951 | echo "$as_me:$LINENO: result: no" >&5 |
4952 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4953 | fi |
e6cc62c6 | 4954 | |
10f2d63a | 4955 | |
5005acfe | 4956 | enablestring= |
e6cc62c6 VS |
4957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4958 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4959 | no_cache=0 |
1e6feb95 VZ |
4960 | # Check whether --enable-unicode or --disable-unicode was given. |
4961 | if test "${enable_unicode+set}" = set; then | |
4962 | enableval="$enable_unicode" | |
e6cc62c6 | 4963 | |
1e6feb95 VZ |
4964 | if test "$enableval" = yes; then |
4965 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4966 | else | |
4967 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4968 | fi | |
e6cc62c6 | 4969 | |
1e6feb95 | 4970 | else |
e6cc62c6 | 4971 | |
1e6feb95 VZ |
4972 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4973 | if test "x$LINE" != x ; then | |
4974 | eval "DEFAULT_$LINE" | |
4975 | else | |
4976 | no_cache=1 | |
4977 | fi | |
4978 | ||
4979 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4980 | |
e6cc62c6 | 4981 | fi; |
1e6feb95 VZ |
4982 | |
4983 | eval "$ac_cv_use_unicode" | |
4984 | if test "$no_cache" != 1; then | |
4985 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4986 | fi | |
4987 | ||
4988 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
4989 | echo "$as_me:$LINENO: result: yes" >&5 |
4990 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4991 | else |
e6cc62c6 VS |
4992 | echo "$as_me:$LINENO: result: no" >&5 |
4993 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4994 | fi |
e6cc62c6 | 4995 | |
1e6feb95 | 4996 | |
5005acfe | 4997 | enablestring= |
e6cc62c6 VS |
4998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
4999 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5000 | no_cache=0 |
5001 | # Check whether --enable-mslu or --disable-mslu was given. | |
5002 | if test "${enable_mslu+set}" = set; then | |
5003 | enableval="$enable_mslu" | |
e6cc62c6 | 5004 | |
a72a4bfa VS |
5005 | if test "$enableval" = yes; then |
5006 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5007 | else | |
5008 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5009 | fi | |
e6cc62c6 | 5010 | |
a72a4bfa | 5011 | else |
e6cc62c6 | 5012 | |
a72a4bfa VS |
5013 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5014 | if test "x$LINE" != x ; then | |
5015 | eval "DEFAULT_$LINE" | |
5016 | else | |
5017 | no_cache=1 | |
5018 | fi | |
5019 | ||
5020 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5021 | |
e6cc62c6 | 5022 | fi; |
a72a4bfa VS |
5023 | |
5024 | eval "$ac_cv_use_mslu" | |
5025 | if test "$no_cache" != 1; then | |
5026 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5027 | fi | |
5028 | ||
5029 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5030 | echo "$as_me:$LINENO: result: yes" >&5 |
5031 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5032 | else |
e6cc62c6 VS |
5033 | echo "$as_me:$LINENO: result: no" >&5 |
5034 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5035 | fi |
e6cc62c6 | 5036 | |
a72a4bfa | 5037 | |
5005acfe | 5038 | enablestring= |
e6cc62c6 VS |
5039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5040 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5041 | no_cache=0 |
5042 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5043 | if test "${enable_wxprintfv+set}" = set; then | |
5044 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5045 | |
1e6feb95 | 5046 | if test "$enableval" = yes; then |
10f2d63a VZ |
5047 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5048 | else | |
5049 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5050 | fi | |
e6cc62c6 | 5051 | |
10f2d63a | 5052 | else |
e6cc62c6 | 5053 | |
10f2d63a VZ |
5054 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5055 | if test "x$LINE" != x ; then | |
5056 | eval "DEFAULT_$LINE" | |
5057 | else | |
5058 | no_cache=1 | |
5059 | fi | |
5060 | ||
5061 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5062 | |
e6cc62c6 | 5063 | fi; |
10f2d63a VZ |
5064 | |
5065 | eval "$ac_cv_use_wxprintfv" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5071 | echo "$as_me:$LINENO: result: yes" >&5 |
5072 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5073 | else |
e6cc62c6 VS |
5074 | echo "$as_me:$LINENO: result: no" >&5 |
5075 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5076 | fi |
e6cc62c6 | 5077 | |
10f2d63a | 5078 | |
5005acfe | 5079 | enablestring= |
e6cc62c6 VS |
5080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5081 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5082 | no_cache=0 |
5083 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5084 | if test "${enable_std_iostreams+set}" = set; then | |
5085 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5086 | |
10f2d63a VZ |
5087 | if test "$enableval" = yes; then |
5088 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5089 | else | |
5090 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5091 | fi | |
e6cc62c6 | 5092 | |
10f2d63a | 5093 | else |
e6cc62c6 | 5094 | |
10f2d63a VZ |
5095 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5096 | if test "x$LINE" != x ; then | |
5097 | eval "DEFAULT_$LINE" | |
5098 | else | |
5099 | no_cache=1 | |
5100 | fi | |
5101 | ||
5102 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5103 | |
e6cc62c6 | 5104 | fi; |
10f2d63a VZ |
5105 | |
5106 | eval "$ac_cv_use_std_iostreams" | |
5107 | if test "$no_cache" != 1; then | |
5108 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5109 | fi | |
5110 | ||
5111 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5112 | echo "$as_me:$LINENO: result: yes" >&5 |
5113 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5114 | else |
e6cc62c6 VS |
5115 | echo "$as_me:$LINENO: result: no" >&5 |
5116 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5117 | fi |
e6cc62c6 | 5118 | |
10f2d63a | 5119 | |
5005acfe | 5120 | enablestring= |
e6cc62c6 VS |
5121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5122 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5123 | no_cache=0 |
5124 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5125 | if test "${enable_filesystem+set}" = set; then | |
5126 | enableval="$enable_filesystem" | |
e6cc62c6 | 5127 | |
24528b0c VS |
5128 | if test "$enableval" = yes; then |
5129 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5130 | else | |
5131 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5132 | fi | |
e6cc62c6 | 5133 | |
24528b0c | 5134 | else |
e6cc62c6 | 5135 | |
24528b0c VS |
5136 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5137 | if test "x$LINE" != x ; then | |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
5143 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5144 | |
e6cc62c6 | 5145 | fi; |
24528b0c VS |
5146 | |
5147 | eval "$ac_cv_use_filesystem" | |
5148 | if test "$no_cache" != 1; then | |
5149 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5150 | fi | |
5151 | ||
5152 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5153 | echo "$as_me:$LINENO: result: yes" >&5 |
5154 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5155 | else |
e6cc62c6 VS |
5156 | echo "$as_me:$LINENO: result: no" >&5 |
5157 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5158 | fi |
e6cc62c6 | 5159 | |
24528b0c | 5160 | |
5005acfe | 5161 | enablestring= |
e6cc62c6 VS |
5162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5163 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5164 | no_cache=0 |
5165 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5166 | if test "${enable_fs_inet+set}" = set; then | |
5167 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5168 | |
10f2d63a VZ |
5169 | if test "$enableval" = yes; then |
5170 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5171 | else | |
5172 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5173 | fi | |
e6cc62c6 | 5174 | |
10f2d63a | 5175 | else |
e6cc62c6 | 5176 | |
10f2d63a VZ |
5177 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5178 | if test "x$LINE" != x ; then | |
5179 | eval "DEFAULT_$LINE" | |
5180 | else | |
5181 | no_cache=1 | |
5182 | fi | |
5183 | ||
5184 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5185 | |
e6cc62c6 | 5186 | fi; |
10f2d63a VZ |
5187 | |
5188 | eval "$ac_cv_use_fs_inet" | |
5189 | if test "$no_cache" != 1; then | |
5190 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5191 | fi | |
5192 | ||
5193 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5194 | echo "$as_me:$LINENO: result: yes" >&5 |
5195 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5196 | else |
e6cc62c6 VS |
5197 | echo "$as_me:$LINENO: result: no" >&5 |
5198 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5199 | fi |
e6cc62c6 | 5200 | |
10f2d63a | 5201 | |
5005acfe | 5202 | enablestring= |
e6cc62c6 VS |
5203 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5204 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5205 | no_cache=0 |
5206 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5207 | if test "${enable_fs_zip+set}" = set; then | |
5208 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5209 | |
10f2d63a VZ |
5210 | if test "$enableval" = yes; then |
5211 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5212 | else | |
5213 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5214 | fi | |
e6cc62c6 | 5215 | |
10f2d63a | 5216 | else |
e6cc62c6 | 5217 | |
10f2d63a VZ |
5218 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5219 | if test "x$LINE" != x ; then | |
5220 | eval "DEFAULT_$LINE" | |
5221 | else | |
5222 | no_cache=1 | |
5223 | fi | |
5224 | ||
5225 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5226 | |
e6cc62c6 | 5227 | fi; |
10f2d63a VZ |
5228 | |
5229 | eval "$ac_cv_use_fs_zip" | |
5230 | if test "$no_cache" != 1; then | |
5231 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5232 | fi | |
5233 | ||
5234 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5235 | echo "$as_me:$LINENO: result: yes" >&5 |
5236 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5237 | else |
e6cc62c6 VS |
5238 | echo "$as_me:$LINENO: result: no" >&5 |
5239 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5240 | fi |
e6cc62c6 | 5241 | |
10f2d63a | 5242 | |
5005acfe | 5243 | enablestring= |
e6cc62c6 VS |
5244 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5245 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5246 | no_cache=0 |
5247 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5248 | if test "${enable_zipstream+set}" = set; then | |
5249 | enableval="$enable_zipstream" | |
e6cc62c6 | 5250 | |
10f2d63a VZ |
5251 | if test "$enableval" = yes; then |
5252 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5253 | else | |
5254 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5255 | fi | |
e6cc62c6 | 5256 | |
10f2d63a | 5257 | else |
e6cc62c6 | 5258 | |
10f2d63a VZ |
5259 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5260 | if test "x$LINE" != x ; then | |
5261 | eval "DEFAULT_$LINE" | |
5262 | else | |
5263 | no_cache=1 | |
5264 | fi | |
5265 | ||
5266 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5267 | |
e6cc62c6 | 5268 | fi; |
10f2d63a VZ |
5269 | |
5270 | eval "$ac_cv_use_zipstream" | |
5271 | if test "$no_cache" != 1; then | |
5272 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5273 | fi | |
5274 | ||
5275 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5276 | echo "$as_me:$LINENO: result: yes" >&5 |
5277 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5278 | else |
e6cc62c6 VS |
5279 | echo "$as_me:$LINENO: result: no" >&5 |
5280 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5281 | fi |
e6cc62c6 | 5282 | |
8284b0c5 | 5283 | |
52127426 | 5284 | |
5005acfe | 5285 | enablestring= |
e6cc62c6 VS |
5286 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5287 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5288 | no_cache=0 |
5289 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5290 | if test "${enable_catch_segvs+set}" = set; then | |
5291 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5292 | |
eb4efbdc VZ |
5293 | if test "$enableval" = yes; then |
5294 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5295 | else | |
5296 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5297 | fi | |
e6cc62c6 | 5298 | |
eb4efbdc | 5299 | else |
e6cc62c6 | 5300 | |
eb4efbdc VZ |
5301 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5302 | if test "x$LINE" != x ; then | |
5303 | eval "DEFAULT_$LINE" | |
5304 | else | |
5305 | no_cache=1 | |
5306 | fi | |
5307 | ||
5308 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5309 | |
e6cc62c6 | 5310 | fi; |
eb4efbdc VZ |
5311 | |
5312 | eval "$ac_cv_use_catch_segvs" | |
5313 | if test "$no_cache" != 1; then | |
5314 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5315 | fi | |
5316 | ||
5317 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5318 | echo "$as_me:$LINENO: result: yes" >&5 |
5319 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5320 | else |
e6cc62c6 VS |
5321 | echo "$as_me:$LINENO: result: no" >&5 |
5322 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5323 | fi |
e6cc62c6 | 5324 | |
eb4efbdc | 5325 | |
5005acfe | 5326 | enablestring= |
e6cc62c6 VS |
5327 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5328 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5329 | no_cache=0 |
5330 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5331 | if test "${enable_snglinst+set}" = set; then | |
5332 | enableval="$enable_snglinst" | |
e6cc62c6 | 5333 | |
4f3c5f06 VZ |
5334 | if test "$enableval" = yes; then |
5335 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5336 | else | |
5337 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5338 | fi | |
e6cc62c6 | 5339 | |
4f3c5f06 | 5340 | else |
e6cc62c6 | 5341 | |
4f3c5f06 VZ |
5342 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5343 | if test "x$LINE" != x ; then | |
5344 | eval "DEFAULT_$LINE" | |
5345 | else | |
5346 | no_cache=1 | |
5347 | fi | |
5348 | ||
5349 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5350 | |
e6cc62c6 | 5351 | fi; |
4f3c5f06 VZ |
5352 | |
5353 | eval "$ac_cv_use_snglinst" | |
5354 | if test "$no_cache" != 1; then | |
5355 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5356 | fi | |
5357 | ||
5358 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5359 | echo "$as_me:$LINENO: result: yes" >&5 |
5360 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5361 | else |
e6cc62c6 VS |
5362 | echo "$as_me:$LINENO: result: no" >&5 |
5363 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5364 | fi |
e6cc62c6 | 5365 | |
52127426 | 5366 | |
8284b0c5 | 5367 | |
5005acfe | 5368 | enablestring= |
e6cc62c6 VS |
5369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5370 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5371 | no_cache=0 |
5372 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5373 | if test "${enable_mimetype+set}" = set; then | |
5374 | enableval="$enable_mimetype" | |
e6cc62c6 | 5375 | |
1e6feb95 VZ |
5376 | if test "$enableval" = yes; then |
5377 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5378 | else | |
5379 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5380 | fi | |
e6cc62c6 | 5381 | |
1e6feb95 | 5382 | else |
e6cc62c6 | 5383 | |
1e6feb95 VZ |
5384 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5392 | |
e6cc62c6 | 5393 | fi; |
1e6feb95 VZ |
5394 | |
5395 | eval "$ac_cv_use_mimetype" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5401 | echo "$as_me:$LINENO: result: yes" >&5 |
5402 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5403 | else |
e6cc62c6 VS |
5404 | echo "$as_me:$LINENO: result: no" >&5 |
5405 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5406 | fi |
e6cc62c6 | 5407 | |
1e6feb95 | 5408 | |
5005acfe | 5409 | enablestring= |
e6cc62c6 VS |
5410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5411 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5412 | no_cache=0 |
5413 | # Check whether --enable-system_options or --disable-system_options was given. | |
5414 | if test "${enable_system_options+set}" = set; then | |
5415 | enableval="$enable_system_options" | |
e6cc62c6 | 5416 | |
3e44f09d VZ |
5417 | if test "$enableval" = yes; then |
5418 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5419 | else | |
5420 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5421 | fi | |
e6cc62c6 | 5422 | |
3e44f09d | 5423 | else |
e6cc62c6 | 5424 | |
3e44f09d VZ |
5425 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5426 | if test "x$LINE" != x ; then | |
5427 | eval "DEFAULT_$LINE" | |
5428 | else | |
5429 | no_cache=1 | |
5430 | fi | |
5431 | ||
5432 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5433 | |
e6cc62c6 | 5434 | fi; |
3e44f09d VZ |
5435 | |
5436 | eval "$ac_cv_use_system_options" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5442 | echo "$as_me:$LINENO: result: yes" >&5 |
5443 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5444 | else |
e6cc62c6 VS |
5445 | echo "$as_me:$LINENO: result: no" >&5 |
5446 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5447 | fi |
e6cc62c6 | 5448 | |
8284b0c5 | 5449 | |
52127426 | 5450 | |
5005acfe | 5451 | enablestring= |
e6cc62c6 VS |
5452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5453 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5454 | no_cache=0 |
5455 | # Check whether --enable-url or --disable-url was given. | |
5456 | if test "${enable_url+set}" = set; then | |
5457 | enableval="$enable_url" | |
e6cc62c6 | 5458 | |
4cdb0ab0 VS |
5459 | if test "$enableval" = yes; then |
5460 | ac_cv_use_url='wxUSE_URL=yes' | |
5461 | else | |
5462 | ac_cv_use_url='wxUSE_URL=no' | |
5463 | fi | |
e6cc62c6 | 5464 | |
4cdb0ab0 | 5465 | else |
e6cc62c6 | 5466 | |
4cdb0ab0 VS |
5467 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5468 | if test "x$LINE" != x ; then | |
5469 | eval "DEFAULT_$LINE" | |
5470 | else | |
5471 | no_cache=1 | |
5472 | fi | |
5473 | ||
5474 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5475 | |
e6cc62c6 | 5476 | fi; |
4cdb0ab0 VS |
5477 | |
5478 | eval "$ac_cv_use_url" | |
5479 | if test "$no_cache" != 1; then | |
5480 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5481 | fi | |
5482 | ||
5483 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5484 | echo "$as_me:$LINENO: result: yes" >&5 |
5485 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5486 | else |
e6cc62c6 VS |
5487 | echo "$as_me:$LINENO: result: no" >&5 |
5488 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5489 | fi |
e6cc62c6 | 5490 | |
4cdb0ab0 | 5491 | |
5005acfe | 5492 | enablestring= |
e6cc62c6 VS |
5493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5494 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5495 | no_cache=0 |
5496 | # Check whether --enable-protocol or --disable-protocol was given. | |
5497 | if test "${enable_protocol+set}" = set; then | |
5498 | enableval="$enable_protocol" | |
e6cc62c6 | 5499 | |
4cdb0ab0 VS |
5500 | if test "$enableval" = yes; then |
5501 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5502 | else | |
5503 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5504 | fi | |
e6cc62c6 | 5505 | |
4cdb0ab0 | 5506 | else |
e6cc62c6 | 5507 | |
4cdb0ab0 VS |
5508 | LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5516 | |
e6cc62c6 | 5517 | fi; |
4cdb0ab0 VS |
5518 | |
5519 | eval "$ac_cv_use_protocol" | |
5520 | if test "$no_cache" != 1; then | |
5521 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5522 | fi | |
5523 | ||
5524 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5525 | echo "$as_me:$LINENO: result: yes" >&5 |
5526 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5527 | else |
e6cc62c6 VS |
5528 | echo "$as_me:$LINENO: result: no" >&5 |
5529 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5530 | fi |
e6cc62c6 | 5531 | |
4cdb0ab0 | 5532 | |
5005acfe | 5533 | enablestring= |
e6cc62c6 VS |
5534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5535 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5536 | no_cache=0 |
5537 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5538 | if test "${enable_protocol_http+set}" = set; then | |
5539 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5540 | |
4cdb0ab0 VS |
5541 | if test "$enableval" = yes; then |
5542 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5543 | else | |
5544 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5545 | fi | |
e6cc62c6 | 5546 | |
4cdb0ab0 | 5547 | else |
e6cc62c6 | 5548 | |
4cdb0ab0 VS |
5549 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5550 | if test "x$LINE" != x ; then | |
5551 | eval "DEFAULT_$LINE" | |
5552 | else | |
5553 | no_cache=1 | |
5554 | fi | |
5555 | ||
5556 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5557 | |
e6cc62c6 | 5558 | fi; |
4cdb0ab0 VS |
5559 | |
5560 | eval "$ac_cv_use_protocol_http" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5566 | echo "$as_me:$LINENO: result: yes" >&5 |
5567 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5568 | else |
e6cc62c6 VS |
5569 | echo "$as_me:$LINENO: result: no" >&5 |
5570 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5571 | fi |
e6cc62c6 | 5572 | |
4cdb0ab0 | 5573 | |
5005acfe | 5574 | enablestring= |
e6cc62c6 VS |
5575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5576 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5577 | no_cache=0 |
5578 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5579 | if test "${enable_protocol_ftp+set}" = set; then | |
5580 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5581 | |
4cdb0ab0 VS |
5582 | if test "$enableval" = yes; then |
5583 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5584 | else | |
5585 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5586 | fi | |
e6cc62c6 | 5587 | |
4cdb0ab0 | 5588 | else |
e6cc62c6 | 5589 | |
4cdb0ab0 VS |
5590 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5591 | if test "x$LINE" != x ; then | |
5592 | eval "DEFAULT_$LINE" | |
5593 | else | |
5594 | no_cache=1 | |
5595 | fi | |
5596 | ||
5597 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5598 | |
e6cc62c6 | 5599 | fi; |
4cdb0ab0 VS |
5600 | |
5601 | eval "$ac_cv_use_protocol_ftp" | |
5602 | if test "$no_cache" != 1; then | |
5603 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5604 | fi | |
5605 | ||
5606 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5607 | echo "$as_me:$LINENO: result: yes" >&5 |
5608 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5609 | else |
e6cc62c6 VS |
5610 | echo "$as_me:$LINENO: result: no" >&5 |
5611 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5612 | fi |
e6cc62c6 | 5613 | |
4cdb0ab0 | 5614 | |
5005acfe | 5615 | enablestring= |
e6cc62c6 VS |
5616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5617 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5618 | no_cache=0 |
5619 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5620 | if test "${enable_protocol_file+set}" = set; then | |
5621 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5622 | |
4cdb0ab0 VS |
5623 | if test "$enableval" = yes; then |
5624 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5625 | else | |
5626 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5627 | fi | |
e6cc62c6 | 5628 | |
4cdb0ab0 | 5629 | else |
e6cc62c6 | 5630 | |
4cdb0ab0 VS |
5631 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5639 | |
e6cc62c6 | 5640 | fi; |
4cdb0ab0 VS |
5641 | |
5642 | eval "$ac_cv_use_protocol_file" | |
5643 | if test "$no_cache" != 1; then | |
5644 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5645 | fi | |
5646 | ||
5647 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5648 | echo "$as_me:$LINENO: result: yes" >&5 |
5649 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5650 | else |
e6cc62c6 VS |
5651 | echo "$as_me:$LINENO: result: no" >&5 |
5652 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5653 | fi |
e6cc62c6 | 5654 | |
52127426 | 5655 | |
8284b0c5 MB |
5656 | |
5657 | ||
5658 | ||
5005acfe | 5659 | enablestring= |
e6cc62c6 VS |
5660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5661 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5662 | no_cache=0 |
5663 | # Check whether --enable-threads or --disable-threads was given. | |
5664 | if test "${enable_threads+set}" = set; then | |
5665 | enableval="$enable_threads" | |
e6cc62c6 | 5666 | |
10f2d63a VZ |
5667 | if test "$enableval" = yes; then |
5668 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5669 | else | |
5670 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5671 | fi | |
e6cc62c6 | 5672 | |
10f2d63a | 5673 | else |
e6cc62c6 | 5674 | |
10f2d63a VZ |
5675 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5676 | if test "x$LINE" != x ; then | |
5677 | eval "DEFAULT_$LINE" | |
5678 | else | |
5679 | no_cache=1 | |
5680 | fi | |
5681 | ||
5682 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5683 | |
e6cc62c6 | 5684 | fi; |
10f2d63a VZ |
5685 | |
5686 | eval "$ac_cv_use_threads" | |
5687 | if test "$no_cache" != 1; then | |
5688 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5689 | fi | |
5690 | ||
5691 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5692 | echo "$as_me:$LINENO: result: yes" >&5 |
5693 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5694 | else |
e6cc62c6 VS |
5695 | echo "$as_me:$LINENO: result: no" >&5 |
5696 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5697 | fi |
e6cc62c6 | 5698 | |
10f2d63a | 5699 | |
b12915c1 VZ |
5700 | if test "$wxUSE_GUI" = "yes"; then |
5701 | ||
8284b0c5 MB |
5702 | |
5703 | ||
5005acfe | 5704 | enablestring= |
e6cc62c6 VS |
5705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5706 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5707 | no_cache=0 |
5708 | # Check whether --enable-docview or --disable-docview was given. | |
5709 | if test "${enable_docview+set}" = set; then | |
5710 | enableval="$enable_docview" | |
e6cc62c6 | 5711 | |
10f2d63a VZ |
5712 | if test "$enableval" = yes; then |
5713 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5714 | else | |
5715 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5716 | fi | |
e6cc62c6 | 5717 | |
10f2d63a | 5718 | else |
e6cc62c6 | 5719 | |
10f2d63a VZ |
5720 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5721 | if test "x$LINE" != x ; then | |
5722 | eval "DEFAULT_$LINE" | |
5723 | else | |
5724 | no_cache=1 | |
5725 | fi | |
5726 | ||
5727 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5728 | |
e6cc62c6 | 5729 | fi; |
10f2d63a VZ |
5730 | |
5731 | eval "$ac_cv_use_docview" | |
5732 | if test "$no_cache" != 1; then | |
5733 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5734 | fi | |
5735 | ||
5736 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5737 | echo "$as_me:$LINENO: result: yes" >&5 |
5738 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5739 | else |
e6cc62c6 VS |
5740 | echo "$as_me:$LINENO: result: no" >&5 |
5741 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5742 | fi |
e6cc62c6 | 5743 | |
10f2d63a | 5744 | |
5005acfe | 5745 | enablestring= |
e6cc62c6 VS |
5746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5747 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5748 | no_cache=0 |
5749 | # Check whether --enable-help or --disable-help was given. | |
5750 | if test "${enable_help+set}" = set; then | |
5751 | enableval="$enable_help" | |
e6cc62c6 | 5752 | |
10f2d63a VZ |
5753 | if test "$enableval" = yes; then |
5754 | ac_cv_use_help='wxUSE_HELP=yes' | |
5755 | else | |
5756 | ac_cv_use_help='wxUSE_HELP=no' | |
5757 | fi | |
e6cc62c6 | 5758 | |
10f2d63a | 5759 | else |
e6cc62c6 | 5760 | |
10f2d63a VZ |
5761 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5762 | if test "x$LINE" != x ; then | |
5763 | eval "DEFAULT_$LINE" | |
5764 | else | |
5765 | no_cache=1 | |
5766 | fi | |
5767 | ||
5768 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5769 | |
e6cc62c6 | 5770 | fi; |
10f2d63a VZ |
5771 | |
5772 | eval "$ac_cv_use_help" | |
5773 | if test "$no_cache" != 1; then | |
5774 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5775 | fi | |
5776 | ||
5777 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5778 | echo "$as_me:$LINENO: result: yes" >&5 |
5779 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5780 | else |
e6cc62c6 VS |
5781 | echo "$as_me:$LINENO: result: no" >&5 |
5782 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5783 | fi |
e6cc62c6 | 5784 | |
10f2d63a | 5785 | |
5005acfe | 5786 | enablestring= |
e6cc62c6 VS |
5787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5788 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5789 | no_cache=0 |
5790 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5791 | if test "${enable_mshtmlhelp+set}" = set; then | |
5792 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5793 | |
29fd3c0c VS |
5794 | if test "$enableval" = yes; then |
5795 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5796 | else | |
5797 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5798 | fi | |
e6cc62c6 | 5799 | |
29fd3c0c | 5800 | else |
e6cc62c6 | 5801 | |
29fd3c0c VS |
5802 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5803 | if test "x$LINE" != x ; then | |
5804 | eval "DEFAULT_$LINE" | |
5805 | else | |
5806 | no_cache=1 | |
5807 | fi | |
5808 | ||
5809 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5810 | |
e6cc62c6 | 5811 | fi; |
29fd3c0c VS |
5812 | |
5813 | eval "$ac_cv_use_mshtmlhelp" | |
5814 | if test "$no_cache" != 1; then | |
5815 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5816 | fi | |
5817 | ||
5818 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5819 | echo "$as_me:$LINENO: result: yes" >&5 |
5820 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5821 | else |
e6cc62c6 VS |
5822 | echo "$as_me:$LINENO: result: no" >&5 |
5823 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5824 | fi |
e6cc62c6 | 5825 | |
29fd3c0c | 5826 | |
5005acfe | 5827 | enablestring= |
e6cc62c6 VS |
5828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5829 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5830 | no_cache=0 |
5831 | # Check whether --enable-html or --disable-html was given. | |
5832 | if test "${enable_html+set}" = set; then | |
5833 | enableval="$enable_html" | |
e6cc62c6 | 5834 | |
3379ed37 VZ |
5835 | if test "$enableval" = yes; then |
5836 | ac_cv_use_html='wxUSE_HTML=yes' | |
5837 | else | |
5838 | ac_cv_use_html='wxUSE_HTML=no' | |
5839 | fi | |
e6cc62c6 | 5840 | |
3379ed37 | 5841 | else |
e6cc62c6 | 5842 | |
3379ed37 VZ |
5843 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5844 | if test "x$LINE" != x ; then | |
5845 | eval "DEFAULT_$LINE" | |
5846 | else | |
5847 | no_cache=1 | |
5848 | fi | |
5849 | ||
5850 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5851 | |
e6cc62c6 | 5852 | fi; |
3379ed37 VZ |
5853 | |
5854 | eval "$ac_cv_use_html" | |
5855 | if test "$no_cache" != 1; then | |
5856 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5857 | fi | |
5858 | ||
5859 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5860 | echo "$as_me:$LINENO: result: yes" >&5 |
5861 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5862 | else |
e6cc62c6 VS |
5863 | echo "$as_me:$LINENO: result: no" >&5 |
5864 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5865 | fi |
e6cc62c6 | 5866 | |
3379ed37 | 5867 | |
5005acfe | 5868 | enablestring= |
e6cc62c6 VS |
5869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5870 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5871 | no_cache=0 |
5872 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5873 | if test "${enable_htmlhelp+set}" = set; then | |
5874 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5875 | |
3379ed37 VZ |
5876 | if test "$enableval" = yes; then |
5877 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5878 | else | |
5879 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5880 | fi | |
e6cc62c6 | 5881 | |
3379ed37 | 5882 | else |
e6cc62c6 | 5883 | |
3379ed37 VZ |
5884 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5885 | if test "x$LINE" != x ; then | |
5886 | eval "DEFAULT_$LINE" | |
5887 | else | |
5888 | no_cache=1 | |
5889 | fi | |
5890 | ||
5891 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5892 | |
e6cc62c6 | 5893 | fi; |
3379ed37 VZ |
5894 | |
5895 | eval "$ac_cv_use_htmlhelp" | |
5896 | if test "$no_cache" != 1; then | |
5897 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5898 | fi | |
5899 | ||
5900 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5901 | echo "$as_me:$LINENO: result: yes" >&5 |
5902 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5903 | else |
e6cc62c6 VS |
5904 | echo "$as_me:$LINENO: result: no" >&5 |
5905 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5906 | fi |
e6cc62c6 | 5907 | |
3379ed37 | 5908 | |
5005acfe | 5909 | enablestring= |
e6cc62c6 VS |
5910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5911 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5912 | no_cache=0 |
5913 | # Check whether --enable-constraints or --disable-constraints was given. | |
5914 | if test "${enable_constraints+set}" = set; then | |
5915 | enableval="$enable_constraints" | |
e6cc62c6 | 5916 | |
10f2d63a VZ |
5917 | if test "$enableval" = yes; then |
5918 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5919 | else | |
5920 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5921 | fi | |
e6cc62c6 | 5922 | |
10f2d63a | 5923 | else |
e6cc62c6 | 5924 | |
10f2d63a VZ |
5925 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5926 | if test "x$LINE" != x ; then | |
5927 | eval "DEFAULT_$LINE" | |
5928 | else | |
5929 | no_cache=1 | |
5930 | fi | |
5931 | ||
5932 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5933 | |
e6cc62c6 | 5934 | fi; |
10f2d63a VZ |
5935 | |
5936 | eval "$ac_cv_use_constraints" | |
5937 | if test "$no_cache" != 1; then | |
5938 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5939 | fi | |
5940 | ||
5941 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5942 | echo "$as_me:$LINENO: result: yes" >&5 |
5943 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5944 | else |
e6cc62c6 VS |
5945 | echo "$as_me:$LINENO: result: no" >&5 |
5946 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5947 | fi |
e6cc62c6 | 5948 | |
10f2d63a | 5949 | |
5005acfe | 5950 | enablestring= |
e6cc62c6 VS |
5951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5952 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5953 | no_cache=0 |
5954 | # Check whether --enable-printarch or --disable-printarch was given. | |
5955 | if test "${enable_printarch+set}" = set; then | |
5956 | enableval="$enable_printarch" | |
e6cc62c6 | 5957 | |
10f2d63a VZ |
5958 | if test "$enableval" = yes; then |
5959 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5960 | else | |
5961 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5962 | fi | |
e6cc62c6 | 5963 | |
10f2d63a | 5964 | else |
e6cc62c6 | 5965 | |
10f2d63a VZ |
5966 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5967 | if test "x$LINE" != x ; then | |
5968 | eval "DEFAULT_$LINE" | |
5969 | else | |
5970 | no_cache=1 | |
5971 | fi | |
5972 | ||
5973 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5974 | |
e6cc62c6 | 5975 | fi; |
10f2d63a VZ |
5976 | |
5977 | eval "$ac_cv_use_printarch" | |
5978 | if test "$no_cache" != 1; then | |
5979 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5980 | fi | |
5981 | ||
5982 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5983 | echo "$as_me:$LINENO: result: yes" >&5 |
5984 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5985 | else |
e6cc62c6 VS |
5986 | echo "$as_me:$LINENO: result: no" >&5 |
5987 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5988 | fi |
e6cc62c6 | 5989 | |
10f2d63a | 5990 | |
5005acfe | 5991 | enablestring= |
e6cc62c6 VS |
5992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
5993 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
5994 | no_cache=0 |
5995 | # Check whether --enable-mdi or --disable-mdi was given. | |
5996 | if test "${enable_mdi+set}" = set; then | |
5997 | enableval="$enable_mdi" | |
e6cc62c6 | 5998 | |
10f2d63a VZ |
5999 | if test "$enableval" = yes; then |
6000 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6001 | else | |
6002 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6003 | fi | |
e6cc62c6 | 6004 | |
10f2d63a | 6005 | else |
e6cc62c6 | 6006 | |
10f2d63a VZ |
6007 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6008 | if test "x$LINE" != x ; then | |
6009 | eval "DEFAULT_$LINE" | |
6010 | else | |
6011 | no_cache=1 | |
6012 | fi | |
6013 | ||
6014 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6015 | |
e6cc62c6 | 6016 | fi; |
10f2d63a VZ |
6017 | |
6018 | eval "$ac_cv_use_mdi" | |
6019 | if test "$no_cache" != 1; then | |
6020 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6021 | fi | |
6022 | ||
6023 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6024 | echo "$as_me:$LINENO: result: yes" >&5 |
6025 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6026 | else |
e6cc62c6 VS |
6027 | echo "$as_me:$LINENO: result: no" >&5 |
6028 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6029 | fi |
e6cc62c6 | 6030 | |
698dcdb6 | 6031 | |
5005acfe | 6032 | enablestring= |
e6cc62c6 VS |
6033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6034 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6035 | no_cache=0 |
6036 | # Check whether --enable-loggui or --disable-loggui was given. | |
6037 | if test "${enable_loggui+set}" = set; then | |
6038 | enableval="$enable_loggui" | |
e6cc62c6 | 6039 | |
1e6feb95 VZ |
6040 | if test "$enableval" = yes; then |
6041 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6042 | else | |
6043 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6044 | fi | |
e6cc62c6 | 6045 | |
1e6feb95 | 6046 | else |
e6cc62c6 | 6047 | |
1e6feb95 VZ |
6048 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6049 | if test "x$LINE" != x ; then | |
6050 | eval "DEFAULT_$LINE" | |
6051 | else | |
6052 | no_cache=1 | |
6053 | fi | |
6054 | ||
6055 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6056 | |
e6cc62c6 | 6057 | fi; |
1e6feb95 VZ |
6058 | |
6059 | eval "$ac_cv_use_loggui" | |
6060 | if test "$no_cache" != 1; then | |
6061 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6062 | fi | |
6063 | ||
6064 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6065 | echo "$as_me:$LINENO: result: yes" >&5 |
6066 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6067 | else |
e6cc62c6 VS |
6068 | echo "$as_me:$LINENO: result: no" >&5 |
6069 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6070 | fi |
e6cc62c6 | 6071 | |
1e6feb95 | 6072 | |
5005acfe | 6073 | enablestring= |
e6cc62c6 VS |
6074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6075 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6076 | no_cache=0 |
6077 | # Check whether --enable-logwin or --disable-logwin was given. | |
6078 | if test "${enable_logwin+set}" = set; then | |
6079 | enableval="$enable_logwin" | |
e6cc62c6 | 6080 | |
1e6feb95 VZ |
6081 | if test "$enableval" = yes; then |
6082 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6083 | else | |
6084 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6085 | fi | |
e6cc62c6 | 6086 | |
1e6feb95 | 6087 | else |
e6cc62c6 | 6088 | |
1e6feb95 VZ |
6089 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6090 | if test "x$LINE" != x ; then | |
6091 | eval "DEFAULT_$LINE" | |
6092 | else | |
6093 | no_cache=1 | |
6094 | fi | |
6095 | ||
6096 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6097 | |
e6cc62c6 | 6098 | fi; |
1e6feb95 VZ |
6099 | |
6100 | eval "$ac_cv_use_logwin" | |
6101 | if test "$no_cache" != 1; then | |
6102 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6103 | fi | |
6104 | ||
6105 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6106 | echo "$as_me:$LINENO: result: yes" >&5 |
6107 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6108 | else |
e6cc62c6 VS |
6109 | echo "$as_me:$LINENO: result: no" >&5 |
6110 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6111 | fi |
e6cc62c6 | 6112 | |
1e6feb95 | 6113 | |
5005acfe | 6114 | enablestring= |
e6cc62c6 VS |
6115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6116 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6117 | no_cache=0 |
6118 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6119 | if test "${enable_logdialog+set}" = set; then | |
6120 | enableval="$enable_logdialog" | |
e6cc62c6 | 6121 | |
69d27ff7 MB |
6122 | if test "$enableval" = yes; then |
6123 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6124 | else | |
6125 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6126 | fi | |
e6cc62c6 | 6127 | |
69d27ff7 | 6128 | else |
e6cc62c6 | 6129 | |
69d27ff7 MB |
6130 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6131 | if test "x$LINE" != x ; then | |
6132 | eval "DEFAULT_$LINE" | |
6133 | else | |
6134 | no_cache=1 | |
6135 | fi | |
6136 | ||
6137 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6138 | |
e6cc62c6 | 6139 | fi; |
69d27ff7 MB |
6140 | |
6141 | eval "$ac_cv_use_logdialog" | |
6142 | if test "$no_cache" != 1; then | |
6143 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6144 | fi | |
6145 | ||
6146 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6147 | echo "$as_me:$LINENO: result: yes" >&5 |
6148 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6149 | else |
e6cc62c6 VS |
6150 | echo "$as_me:$LINENO: result: no" >&5 |
6151 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6152 | fi |
e6cc62c6 | 6153 | |
8284b0c5 | 6154 | |
52127426 | 6155 | |
5005acfe | 6156 | enablestring= |
e6cc62c6 VS |
6157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6158 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6159 | no_cache=0 |
6160 | # Check whether --enable-postscript or --disable-postscript was given. | |
6161 | if test "${enable_postscript+set}" = set; then | |
6162 | enableval="$enable_postscript" | |
e6cc62c6 | 6163 | |
10f2d63a VZ |
6164 | if test "$enableval" = yes; then |
6165 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6166 | else | |
6167 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6168 | fi | |
e6cc62c6 | 6169 | |
10f2d63a | 6170 | else |
e6cc62c6 | 6171 | |
10f2d63a VZ |
6172 | LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6180 | |
e6cc62c6 | 6181 | fi; |
10f2d63a VZ |
6182 | |
6183 | eval "$ac_cv_use_postscript" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_POSTSCRIPT" = 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 | |
8284b0c5 MB |
6196 | |
6197 | ||
52127426 | 6198 | |
8284b0c5 | 6199 | |
5005acfe | 6200 | enablestring= |
e6cc62c6 VS |
6201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6202 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6203 | no_cache=0 |
3c907f20 VZ |
6204 | # Check whether --enable-prologio or --disable-prologio was given. |
6205 | if test "${enable_prologio+set}" = set; then | |
6206 | enableval="$enable_prologio" | |
e6cc62c6 | 6207 | |
10f2d63a | 6208 | if test "$enableval" = yes; then |
3c907f20 | 6209 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6210 | else |
3c907f20 | 6211 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6212 | fi |
e6cc62c6 | 6213 | |
10f2d63a | 6214 | else |
e6cc62c6 | 6215 | |
3c907f20 | 6216 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6217 | if test "x$LINE" != x ; then |
6218 | eval "DEFAULT_$LINE" | |
6219 | else | |
6220 | no_cache=1 | |
6221 | fi | |
6222 | ||
3c907f20 | 6223 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6224 | |
e6cc62c6 | 6225 | fi; |
10f2d63a | 6226 | |
3c907f20 | 6227 | eval "$ac_cv_use_prologio" |
10f2d63a | 6228 | if test "$no_cache" != 1; then |
3c907f20 | 6229 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6230 | fi |
6231 | ||
3c907f20 | 6232 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6233 | echo "$as_me:$LINENO: result: yes" >&5 |
6234 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6235 | else |
e6cc62c6 VS |
6236 | echo "$as_me:$LINENO: result: no" >&5 |
6237 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6238 | fi |
e6cc62c6 | 6239 | |
8284b0c5 | 6240 | |
5005acfe | 6241 | enablestring= |
e6cc62c6 VS |
6242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6243 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6244 | no_cache=0 |
3c907f20 VZ |
6245 | # Check whether --enable-resources or --disable-resources was given. |
6246 | if test "${enable_resources+set}" = set; then | |
6247 | enableval="$enable_resources" | |
e6cc62c6 | 6248 | |
10f2d63a | 6249 | if test "$enableval" = yes; then |
3c907f20 | 6250 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6251 | else |
3c907f20 | 6252 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6253 | fi |
e6cc62c6 | 6254 | |
10f2d63a | 6255 | else |
e6cc62c6 | 6256 | |
3c907f20 | 6257 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6258 | if test "x$LINE" != x ; then |
6259 | eval "DEFAULT_$LINE" | |
6260 | else | |
6261 | no_cache=1 | |
6262 | fi | |
6263 | ||
3c907f20 | 6264 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6265 | |
e6cc62c6 | 6266 | fi; |
10f2d63a | 6267 | |
3c907f20 | 6268 | eval "$ac_cv_use_resources" |
10f2d63a | 6269 | if test "$no_cache" != 1; then |
3c907f20 | 6270 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6271 | fi |
6272 | ||
3c907f20 | 6273 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6274 | echo "$as_me:$LINENO: result: yes" >&5 |
6275 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6276 | else |
e6cc62c6 VS |
6277 | echo "$as_me:$LINENO: result: no" >&5 |
6278 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6279 | fi |
e6cc62c6 | 6280 | |
8284b0c5 MB |
6281 | |
6282 | ||
52127426 | 6283 | |
5005acfe | 6284 | enablestring= |
e6cc62c6 VS |
6285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6286 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6287 | no_cache=0 |
6288 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6289 | if test "${enable_clipboard+set}" = set; then | |
6290 | enableval="$enable_clipboard" | |
e6cc62c6 | 6291 | |
10f2d63a VZ |
6292 | if test "$enableval" = yes; then |
6293 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6294 | else | |
6295 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6296 | fi | |
e6cc62c6 | 6297 | |
10f2d63a | 6298 | else |
e6cc62c6 | 6299 | |
10f2d63a VZ |
6300 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6301 | if test "x$LINE" != x ; then | |
6302 | eval "DEFAULT_$LINE" | |
6303 | else | |
6304 | no_cache=1 | |
6305 | fi | |
6306 | ||
6307 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6308 | |
e6cc62c6 | 6309 | fi; |
10f2d63a VZ |
6310 | |
6311 | eval "$ac_cv_use_clipboard" | |
6312 | if test "$no_cache" != 1; then | |
6313 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6314 | fi | |
6315 | ||
6316 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6317 | echo "$as_me:$LINENO: result: yes" >&5 |
6318 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6319 | else |
e6cc62c6 VS |
6320 | echo "$as_me:$LINENO: result: no" >&5 |
6321 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6322 | fi |
e6cc62c6 | 6323 | |
10f2d63a | 6324 | |
5005acfe | 6325 | enablestring= |
e6cc62c6 VS |
6326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6327 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6328 | no_cache=0 |
6329 | # Check whether --enable-dnd or --disable-dnd was given. | |
6330 | if test "${enable_dnd+set}" = set; then | |
6331 | enableval="$enable_dnd" | |
e6cc62c6 | 6332 | |
10f2d63a VZ |
6333 | if test "$enableval" = yes; then |
6334 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6335 | else | |
6336 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6337 | fi | |
e6cc62c6 | 6338 | |
10f2d63a | 6339 | else |
e6cc62c6 | 6340 | |
10f2d63a VZ |
6341 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6342 | if test "x$LINE" != x ; then | |
6343 | eval "DEFAULT_$LINE" | |
6344 | else | |
6345 | no_cache=1 | |
6346 | fi | |
6347 | ||
6348 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6349 | |
e6cc62c6 | 6350 | fi; |
10f2d63a VZ |
6351 | |
6352 | eval "$ac_cv_use_dnd" | |
6353 | if test "$no_cache" != 1; then | |
6354 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6355 | fi | |
6356 | ||
6357 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6358 | echo "$as_me:$LINENO: result: yes" >&5 |
6359 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6360 | else |
e6cc62c6 VS |
6361 | echo "$as_me:$LINENO: result: no" >&5 |
6362 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6363 | fi |
e6cc62c6 | 6364 | |
10f2d63a | 6365 | |
5005acfe | 6366 | enablestring= |
e6cc62c6 VS |
6367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6368 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6369 | no_cache=0 |
6370 | # Check whether --enable-metafile or --disable-metafile was given. | |
6371 | if test "${enable_metafile+set}" = set; then | |
6372 | enableval="$enable_metafile" | |
e6cc62c6 | 6373 | |
b64f0a5f RL |
6374 | if test "$enableval" = yes; then |
6375 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6376 | else | |
6377 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6378 | fi | |
e6cc62c6 | 6379 | |
b64f0a5f | 6380 | else |
e6cc62c6 | 6381 | |
b64f0a5f RL |
6382 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6383 | if test "x$LINE" != x ; then | |
6384 | eval "DEFAULT_$LINE" | |
6385 | else | |
6386 | no_cache=1 | |
6387 | fi | |
6388 | ||
6389 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6390 | |
e6cc62c6 | 6391 | fi; |
b64f0a5f RL |
6392 | |
6393 | eval "$ac_cv_use_metafile" | |
6394 | if test "$no_cache" != 1; then | |
6395 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6396 | fi | |
6397 | ||
6398 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6399 | echo "$as_me:$LINENO: result: yes" >&5 |
6400 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6401 | else |
e6cc62c6 VS |
6402 | echo "$as_me:$LINENO: result: no" >&5 |
6403 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6404 | fi |
e6cc62c6 | 6405 | |
52127426 | 6406 | |
8284b0c5 | 6407 | |
52127426 | 6408 | |
8284b0c5 | 6409 | |
5005acfe | 6410 | enablestring= |
e6cc62c6 VS |
6411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6412 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6413 | no_cache=0 |
6414 | # Check whether --enable-controls or --disable-controls was given. | |
6415 | if test "${enable_controls+set}" = set; then | |
6416 | enableval="$enable_controls" | |
e6cc62c6 | 6417 | |
10f2d63a VZ |
6418 | if test "$enableval" = yes; then |
6419 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6420 | else | |
6421 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6422 | fi | |
e6cc62c6 | 6423 | |
10f2d63a | 6424 | else |
e6cc62c6 | 6425 | |
10f2d63a VZ |
6426 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6427 | if test "x$LINE" != x ; then | |
6428 | eval "DEFAULT_$LINE" | |
6429 | else | |
6430 | no_cache=1 | |
6431 | fi | |
6432 | ||
6433 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6434 | |
e6cc62c6 | 6435 | fi; |
10f2d63a VZ |
6436 | |
6437 | eval "$ac_cv_use_controls" | |
6438 | if test "$no_cache" != 1; then | |
6439 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6440 | fi | |
6441 | ||
6442 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6443 | echo "$as_me:$LINENO: result: yes" >&5 |
6444 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6445 | else |
e6cc62c6 VS |
6446 | echo "$as_me:$LINENO: result: no" >&5 |
6447 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6448 | fi |
e6cc62c6 | 6449 | |
10f2d63a VZ |
6450 | |
6451 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6452 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6453 | DEFAULT_wxUSE_BMPBUTTON=yes |
6454 | DEFAULT_wxUSE_BUTTON=yes | |
6455 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6456 | DEFAULT_wxUSE_CARET=yes |
6457 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6458 | DEFAULT_wxUSE_CHECKBOX=yes |
6459 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6460 | DEFAULT_wxUSE_CHOICE=yes | |
6461 | DEFAULT_wxUSE_GAUGE=yes | |
6462 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6463 | DEFAULT_wxUSE_IMAGLIST=yes |
6464 | DEFAULT_wxUSE_LISTBOX=yes | |
6465 | DEFAULT_wxUSE_LISTCTRL=yes | |
6466 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6467 | DEFAULT_wxUSE_RADIOBOX=yes | |
6468 | DEFAULT_wxUSE_RADIOBTN=yes | |
6469 | DEFAULT_wxUSE_SASH=yes | |
6470 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6471 | DEFAULT_wxUSE_SLIDER=yes | |
6472 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6473 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6474 | DEFAULT_wxUSE_SPLITTER=yes |
6475 | DEFAULT_wxUSE_STATBMP=yes | |
6476 | DEFAULT_wxUSE_STATBOX=yes | |
6477 | DEFAULT_wxUSE_STATLINE=yes | |
6478 | DEFAULT_wxUSE_STATUSBAR=yes | |
6479 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6480 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6481 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6482 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6483 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6484 | DEFAULT_wxUSE_TOOLTIPS=yes |
6485 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6486 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6487 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6488 | elif test "$wxUSE_CONTROLS" = "no"; then |
6489 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6490 | DEFAULT_wxUSE_BMPBUTTON=no |
6491 | DEFAULT_wxUSE_BUTTON=no | |
6492 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6493 | DEFAULT_wxUSE_CARET=no |
6494 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6495 | DEFAULT_wxUSE_CHECKBOX=no |
6496 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6497 | DEFAULT_wxUSE_CHOICE=no | |
6498 | DEFAULT_wxUSE_GAUGE=no | |
6499 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6500 | DEFAULT_wxUSE_IMAGLIST=no |
6501 | DEFAULT_wxUSE_LISTBOX=no | |
6502 | DEFAULT_wxUSE_LISTCTRL=no | |
6503 | DEFAULT_wxUSE_NOTEBOOK=no | |
6504 | DEFAULT_wxUSE_RADIOBOX=no | |
6505 | DEFAULT_wxUSE_RADIOBTN=no | |
6506 | DEFAULT_wxUSE_SASH=no | |
6507 | DEFAULT_wxUSE_SCROLLBAR=no | |
6508 | DEFAULT_wxUSE_SLIDER=no | |
6509 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6510 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6511 | DEFAULT_wxUSE_SPLITTER=no |
6512 | DEFAULT_wxUSE_STATBMP=no | |
6513 | DEFAULT_wxUSE_STATBOX=no | |
6514 | DEFAULT_wxUSE_STATLINE=no | |
6515 | DEFAULT_wxUSE_STATUSBAR=no | |
6516 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6517 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6518 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6519 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6520 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6521 | DEFAULT_wxUSE_TOOLTIPS=no |
6522 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6523 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6524 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6525 | fi |
6526 | ||
ac0c4cc3 DE |
6527 | ## FIXME: This is a blatant hack |
6528 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6529 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6530 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6531 | # Generic notebook requires tab dialog |
6532 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6533 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6534 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6535 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6536 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6537 | fi |
6538 | ||
8284b0c5 | 6539 | |
5005acfe | 6540 | enablestring= |
e6cc62c6 VS |
6541 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6542 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6543 | no_cache=0 |
6544 | # Check whether --enable-accel or --disable-accel was given. | |
6545 | if test "${enable_accel+set}" = set; then | |
6546 | enableval="$enable_accel" | |
e6cc62c6 | 6547 | |
10f2d63a VZ |
6548 | if test "$enableval" = yes; then |
6549 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6550 | else | |
6551 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6552 | fi | |
e6cc62c6 | 6553 | |
10f2d63a | 6554 | else |
e6cc62c6 | 6555 | |
10f2d63a VZ |
6556 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6557 | if test "x$LINE" != x ; then | |
6558 | eval "DEFAULT_$LINE" | |
6559 | else | |
6560 | no_cache=1 | |
6561 | fi | |
6562 | ||
6563 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6564 | |
e6cc62c6 | 6565 | fi; |
10f2d63a VZ |
6566 | |
6567 | eval "$ac_cv_use_accel" | |
6568 | if test "$no_cache" != 1; then | |
6569 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6570 | fi | |
6571 | ||
6572 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6573 | echo "$as_me:$LINENO: result: yes" >&5 |
6574 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6575 | else |
e6cc62c6 VS |
6576 | echo "$as_me:$LINENO: result: no" >&5 |
6577 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6578 | fi |
e6cc62c6 | 6579 | |
10f2d63a | 6580 | |
5005acfe | 6581 | enablestring= |
e6cc62c6 VS |
6582 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6583 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6584 | no_cache=0 |
1e6feb95 VZ |
6585 | # Check whether --enable-button or --disable-button was given. |
6586 | if test "${enable_button+set}" = set; then | |
6587 | enableval="$enable_button" | |
e6cc62c6 | 6588 | |
10f2d63a | 6589 | if test "$enableval" = yes; then |
1e6feb95 | 6590 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6591 | else |
1e6feb95 | 6592 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6593 | fi |
e6cc62c6 | 6594 | |
10f2d63a | 6595 | else |
e6cc62c6 | 6596 | |
1e6feb95 | 6597 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6598 | if test "x$LINE" != x ; then |
6599 | eval "DEFAULT_$LINE" | |
6600 | else | |
6601 | no_cache=1 | |
6602 | fi | |
6603 | ||
1e6feb95 | 6604 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6605 | |
e6cc62c6 | 6606 | fi; |
10f2d63a | 6607 | |
1e6feb95 | 6608 | eval "$ac_cv_use_button" |
10f2d63a | 6609 | if test "$no_cache" != 1; then |
1e6feb95 | 6610 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6611 | fi |
6612 | ||
1e6feb95 | 6613 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6614 | echo "$as_me:$LINENO: result: yes" >&5 |
6615 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6616 | else |
e6cc62c6 VS |
6617 | echo "$as_me:$LINENO: result: no" >&5 |
6618 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6619 | fi |
e6cc62c6 | 6620 | |
10f2d63a | 6621 | |
5005acfe | 6622 | enablestring= |
e6cc62c6 VS |
6623 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6624 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6625 | no_cache=0 |
6626 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6627 | if test "${enable_bmpbutton+set}" = set; then | |
6628 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6629 | |
10f2d63a VZ |
6630 | if test "$enableval" = yes; then |
6631 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6632 | else | |
6633 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6634 | fi | |
e6cc62c6 | 6635 | |
10f2d63a | 6636 | else |
e6cc62c6 | 6637 | |
10f2d63a VZ |
6638 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6639 | if test "x$LINE" != x ; then | |
6640 | eval "DEFAULT_$LINE" | |
6641 | else | |
6642 | no_cache=1 | |
6643 | fi | |
6644 | ||
6645 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6646 | |
e6cc62c6 | 6647 | fi; |
10f2d63a VZ |
6648 | |
6649 | eval "$ac_cv_use_bmpbutton" | |
6650 | if test "$no_cache" != 1; then | |
6651 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6652 | fi | |
6653 | ||
6654 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6655 | echo "$as_me:$LINENO: result: yes" >&5 |
6656 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6657 | else |
e6cc62c6 VS |
6658 | echo "$as_me:$LINENO: result: no" >&5 |
6659 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6660 | fi |
e6cc62c6 | 6661 | |
10f2d63a | 6662 | |
5005acfe | 6663 | enablestring= |
e6cc62c6 VS |
6664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6665 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6666 | no_cache=0 |
6667 | # Check whether --enable-calendar or --disable-calendar was given. | |
6668 | if test "${enable_calendar+set}" = set; then | |
6669 | enableval="$enable_calendar" | |
e6cc62c6 | 6670 | |
1e6feb95 VZ |
6671 | if test "$enableval" = yes; then |
6672 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6673 | else | |
6674 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6675 | fi | |
e6cc62c6 | 6676 | |
1e6feb95 | 6677 | else |
e6cc62c6 | 6678 | |
1e6feb95 VZ |
6679 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6680 | if test "x$LINE" != x ; then | |
6681 | eval "DEFAULT_$LINE" | |
6682 | else | |
6683 | no_cache=1 | |
6684 | fi | |
6685 | ||
6686 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6687 | |
e6cc62c6 | 6688 | fi; |
1e6feb95 VZ |
6689 | |
6690 | eval "$ac_cv_use_calendar" | |
6691 | if test "$no_cache" != 1; then | |
6692 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6693 | fi | |
6694 | ||
6695 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6696 | echo "$as_me:$LINENO: result: yes" >&5 |
6697 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6698 | else |
e6cc62c6 VS |
6699 | echo "$as_me:$LINENO: result: no" >&5 |
6700 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6701 | fi |
e6cc62c6 | 6702 | |
1e6feb95 | 6703 | |
5005acfe | 6704 | enablestring= |
e6cc62c6 VS |
6705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6706 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6707 | no_cache=0 |
6708 | # Check whether --enable-caret or --disable-caret was given. | |
6709 | if test "${enable_caret+set}" = set; then | |
6710 | enableval="$enable_caret" | |
e6cc62c6 | 6711 | |
1e6feb95 VZ |
6712 | if test "$enableval" = yes; then |
6713 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6714 | else | |
6715 | ac_cv_use_caret='wxUSE_CARET=no' | |
6716 | fi | |
e6cc62c6 | 6717 | |
1e6feb95 | 6718 | else |
e6cc62c6 | 6719 | |
1e6feb95 VZ |
6720 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6721 | if test "x$LINE" != x ; then | |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
6727 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6728 | |
e6cc62c6 | 6729 | fi; |
1e6feb95 VZ |
6730 | |
6731 | eval "$ac_cv_use_caret" | |
6732 | if test "$no_cache" != 1; then | |
6733 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6737 | echo "$as_me:$LINENO: result: yes" >&5 |
6738 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6739 | else |
e6cc62c6 VS |
6740 | echo "$as_me:$LINENO: result: no" >&5 |
6741 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6742 | fi |
e6cc62c6 | 6743 | |
1e6feb95 | 6744 | |
5005acfe | 6745 | enablestring= |
e6cc62c6 VS |
6746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6747 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6748 | no_cache=0 |
6749 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6750 | if test "${enable_checkbox+set}" = set; then | |
6751 | enableval="$enable_checkbox" | |
e6cc62c6 | 6752 | |
10f2d63a VZ |
6753 | if test "$enableval" = yes; then |
6754 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6755 | else | |
6756 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6757 | fi | |
e6cc62c6 | 6758 | |
10f2d63a | 6759 | else |
e6cc62c6 | 6760 | |
10f2d63a VZ |
6761 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6762 | if test "x$LINE" != x ; then | |
6763 | eval "DEFAULT_$LINE" | |
6764 | else | |
6765 | no_cache=1 | |
6766 | fi | |
6767 | ||
6768 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6769 | |
e6cc62c6 | 6770 | fi; |
10f2d63a VZ |
6771 | |
6772 | eval "$ac_cv_use_checkbox" | |
6773 | if test "$no_cache" != 1; then | |
6774 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6775 | fi | |
6776 | ||
6777 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6778 | echo "$as_me:$LINENO: result: yes" >&5 |
6779 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6780 | else |
e6cc62c6 VS |
6781 | echo "$as_me:$LINENO: result: no" >&5 |
6782 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6783 | fi |
e6cc62c6 | 6784 | |
10f2d63a | 6785 | |
5005acfe | 6786 | enablestring= |
e6cc62c6 VS |
6787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6788 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6789 | no_cache=0 |
6790 | # Check whether --enable-checklst or --disable-checklst was given. | |
6791 | if test "${enable_checklst+set}" = set; then | |
6792 | enableval="$enable_checklst" | |
e6cc62c6 | 6793 | |
10f2d63a VZ |
6794 | if test "$enableval" = yes; then |
6795 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6796 | else | |
6797 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6798 | fi | |
e6cc62c6 | 6799 | |
10f2d63a | 6800 | else |
e6cc62c6 | 6801 | |
10f2d63a VZ |
6802 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6803 | if test "x$LINE" != x ; then | |
6804 | eval "DEFAULT_$LINE" | |
6805 | else | |
6806 | no_cache=1 | |
6807 | fi | |
6808 | ||
6809 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6810 | |
e6cc62c6 | 6811 | fi; |
10f2d63a VZ |
6812 | |
6813 | eval "$ac_cv_use_checklst" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6819 | echo "$as_me:$LINENO: result: yes" >&5 |
6820 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6821 | else |
e6cc62c6 VS |
6822 | echo "$as_me:$LINENO: result: no" >&5 |
6823 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6824 | fi |
e6cc62c6 | 6825 | |
10f2d63a | 6826 | |
5005acfe | 6827 | enablestring= |
e6cc62c6 VS |
6828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6829 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6830 | no_cache=0 |
6831 | # Check whether --enable-choice or --disable-choice was given. | |
6832 | if test "${enable_choice+set}" = set; then | |
6833 | enableval="$enable_choice" | |
e6cc62c6 | 6834 | |
10f2d63a VZ |
6835 | if test "$enableval" = yes; then |
6836 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6837 | else | |
6838 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6839 | fi | |
e6cc62c6 | 6840 | |
10f2d63a | 6841 | else |
e6cc62c6 | 6842 | |
10f2d63a VZ |
6843 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6844 | if test "x$LINE" != x ; then | |
6845 | eval "DEFAULT_$LINE" | |
6846 | else | |
6847 | no_cache=1 | |
6848 | fi | |
6849 | ||
6850 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6851 | |
e6cc62c6 | 6852 | fi; |
10f2d63a VZ |
6853 | |
6854 | eval "$ac_cv_use_choice" | |
6855 | if test "$no_cache" != 1; then | |
6856 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6857 | fi | |
6858 | ||
6859 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6860 | echo "$as_me:$LINENO: result: yes" >&5 |
6861 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6862 | else |
e6cc62c6 VS |
6863 | echo "$as_me:$LINENO: result: no" >&5 |
6864 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6865 | fi |
e6cc62c6 | 6866 | |
10f2d63a | 6867 | |
5005acfe | 6868 | enablestring= |
e6cc62c6 VS |
6869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6870 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6871 | no_cache=0 |
6872 | # Check whether --enable-combobox or --disable-combobox was given. | |
6873 | if test "${enable_combobox+set}" = set; then | |
6874 | enableval="$enable_combobox" | |
e6cc62c6 | 6875 | |
10f2d63a VZ |
6876 | if test "$enableval" = yes; then |
6877 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6878 | else | |
6879 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6880 | fi | |
e6cc62c6 | 6881 | |
10f2d63a | 6882 | else |
e6cc62c6 | 6883 | |
10f2d63a VZ |
6884 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6885 | if test "x$LINE" != x ; then | |
6886 | eval "DEFAULT_$LINE" | |
6887 | else | |
6888 | no_cache=1 | |
6889 | fi | |
6890 | ||
6891 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6892 | |
e6cc62c6 | 6893 | fi; |
10f2d63a VZ |
6894 | |
6895 | eval "$ac_cv_use_combobox" | |
6896 | if test "$no_cache" != 1; then | |
6897 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6898 | fi | |
6899 | ||
6900 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6901 | echo "$as_me:$LINENO: result: yes" >&5 |
6902 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6903 | else |
e6cc62c6 VS |
6904 | echo "$as_me:$LINENO: result: no" >&5 |
6905 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6906 | fi |
e6cc62c6 | 6907 | |
10f2d63a | 6908 | |
da494b40 | 6909 | enablestring= |
e6cc62c6 VS |
6910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6911 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6912 | no_cache=0 |
6913 | # Check whether --enable-display or --disable-display was given. | |
6914 | if test "${enable_display+set}" = set; then | |
6915 | enableval="$enable_display" | |
e6cc62c6 | 6916 | |
da494b40 MB |
6917 | if test "$enableval" = yes; then |
6918 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6919 | else | |
6920 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6921 | fi | |
e6cc62c6 | 6922 | |
da494b40 | 6923 | else |
e6cc62c6 | 6924 | |
da494b40 MB |
6925 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6926 | if test "x$LINE" != x ; then | |
6927 | eval "DEFAULT_$LINE" | |
6928 | else | |
6929 | no_cache=1 | |
6930 | fi | |
6931 | ||
6932 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6933 | |
e6cc62c6 | 6934 | fi; |
da494b40 MB |
6935 | |
6936 | eval "$ac_cv_use_display" | |
6937 | if test "$no_cache" != 1; then | |
6938 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6939 | fi | |
6940 | ||
6941 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6942 | echo "$as_me:$LINENO: result: yes" >&5 |
6943 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6944 | else |
e6cc62c6 VS |
6945 | echo "$as_me:$LINENO: result: no" >&5 |
6946 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6947 | fi |
e6cc62c6 | 6948 | |
da494b40 | 6949 | |
5005acfe | 6950 | enablestring= |
e6cc62c6 VS |
6951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6952 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6953 | no_cache=0 |
6954 | # Check whether --enable-gauge or --disable-gauge was given. | |
6955 | if test "${enable_gauge+set}" = set; then | |
6956 | enableval="$enable_gauge" | |
e6cc62c6 | 6957 | |
10f2d63a VZ |
6958 | if test "$enableval" = yes; then |
6959 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6960 | else | |
6961 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6962 | fi | |
e6cc62c6 | 6963 | |
10f2d63a | 6964 | else |
e6cc62c6 | 6965 | |
10f2d63a VZ |
6966 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6967 | if test "x$LINE" != x ; then | |
6968 | eval "DEFAULT_$LINE" | |
6969 | else | |
6970 | no_cache=1 | |
6971 | fi | |
6972 | ||
6973 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6974 | |
e6cc62c6 | 6975 | fi; |
10f2d63a VZ |
6976 | |
6977 | eval "$ac_cv_use_gauge" | |
6978 | if test "$no_cache" != 1; then | |
6979 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6980 | fi | |
6981 | ||
6982 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
6983 | echo "$as_me:$LINENO: result: yes" >&5 |
6984 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6985 | else |
e6cc62c6 VS |
6986 | echo "$as_me:$LINENO: result: no" >&5 |
6987 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6988 | fi |
e6cc62c6 | 6989 | |
10f2d63a | 6990 | |
5005acfe | 6991 | enablestring= |
e6cc62c6 VS |
6992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
6993 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
6994 | no_cache=0 |
6995 | # Check whether --enable-grid or --disable-grid was given. | |
6996 | if test "${enable_grid+set}" = set; then | |
6997 | enableval="$enable_grid" | |
e6cc62c6 | 6998 | |
10f2d63a VZ |
6999 | if test "$enableval" = yes; then |
7000 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7001 | else | |
7002 | ac_cv_use_grid='wxUSE_GRID=no' | |
7003 | fi | |
e6cc62c6 | 7004 | |
10f2d63a | 7005 | else |
e6cc62c6 | 7006 | |
10f2d63a VZ |
7007 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7008 | if test "x$LINE" != x ; then | |
7009 | eval "DEFAULT_$LINE" | |
7010 | else | |
7011 | no_cache=1 | |
7012 | fi | |
7013 | ||
7014 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7015 | |
e6cc62c6 | 7016 | fi; |
10f2d63a VZ |
7017 | |
7018 | eval "$ac_cv_use_grid" | |
7019 | if test "$no_cache" != 1; then | |
7020 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7021 | fi | |
7022 | ||
7023 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7024 | echo "$as_me:$LINENO: result: yes" >&5 |
7025 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7026 | else |
e6cc62c6 VS |
7027 | echo "$as_me:$LINENO: result: no" >&5 |
7028 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7029 | fi |
e6cc62c6 | 7030 | |
10f2d63a | 7031 | |
5005acfe | 7032 | enablestring= |
e6cc62c6 VS |
7033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7034 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7035 | no_cache=0 |
7036 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7037 | if test "${enable_imaglist+set}" = set; then | |
7038 | enableval="$enable_imaglist" | |
e6cc62c6 | 7039 | |
10f2d63a VZ |
7040 | if test "$enableval" = yes; then |
7041 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7042 | else | |
7043 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7044 | fi | |
e6cc62c6 | 7045 | |
10f2d63a | 7046 | else |
e6cc62c6 | 7047 | |
10f2d63a VZ |
7048 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7049 | if test "x$LINE" != x ; then | |
7050 | eval "DEFAULT_$LINE" | |
7051 | else | |
7052 | no_cache=1 | |
7053 | fi | |
7054 | ||
7055 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7056 | |
e6cc62c6 | 7057 | fi; |
10f2d63a VZ |
7058 | |
7059 | eval "$ac_cv_use_imaglist" | |
7060 | if test "$no_cache" != 1; then | |
7061 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7062 | fi | |
7063 | ||
7064 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7065 | echo "$as_me:$LINENO: result: yes" >&5 |
7066 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7067 | else |
e6cc62c6 VS |
7068 | echo "$as_me:$LINENO: result: no" >&5 |
7069 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7070 | fi |
e6cc62c6 | 7071 | |
10f2d63a | 7072 | |
5005acfe | 7073 | enablestring= |
e6cc62c6 VS |
7074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7075 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7076 | no_cache=0 |
7077 | # Check whether --enable-listbox or --disable-listbox was given. | |
7078 | if test "${enable_listbox+set}" = set; then | |
7079 | enableval="$enable_listbox" | |
e6cc62c6 | 7080 | |
10f2d63a VZ |
7081 | if test "$enableval" = yes; then |
7082 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7083 | else | |
7084 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7085 | fi | |
e6cc62c6 | 7086 | |
10f2d63a | 7087 | else |
e6cc62c6 | 7088 | |
10f2d63a VZ |
7089 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7090 | if test "x$LINE" != x ; then | |
7091 | eval "DEFAULT_$LINE" | |
7092 | else | |
7093 | no_cache=1 | |
7094 | fi | |
7095 | ||
7096 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7097 | |
e6cc62c6 | 7098 | fi; |
10f2d63a VZ |
7099 | |
7100 | eval "$ac_cv_use_listbox" | |
7101 | if test "$no_cache" != 1; then | |
7102 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7103 | fi | |
7104 | ||
7105 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7106 | echo "$as_me:$LINENO: result: yes" >&5 |
7107 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7108 | else |
e6cc62c6 VS |
7109 | echo "$as_me:$LINENO: result: no" >&5 |
7110 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7111 | fi |
e6cc62c6 | 7112 | |
10f2d63a | 7113 | |
5005acfe | 7114 | enablestring= |
e6cc62c6 VS |
7115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7116 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7117 | no_cache=0 |
7118 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7119 | if test "${enable_listctrl+set}" = set; then | |
7120 | enableval="$enable_listctrl" | |
e6cc62c6 | 7121 | |
10f2d63a VZ |
7122 | if test "$enableval" = yes; then |
7123 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7124 | else | |
7125 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7126 | fi | |
e6cc62c6 | 7127 | |
10f2d63a | 7128 | else |
e6cc62c6 | 7129 | |
10f2d63a VZ |
7130 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7131 | if test "x$LINE" != x ; then | |
7132 | eval "DEFAULT_$LINE" | |
7133 | else | |
7134 | no_cache=1 | |
7135 | fi | |
7136 | ||
7137 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7138 | |
e6cc62c6 | 7139 | fi; |
10f2d63a VZ |
7140 | |
7141 | eval "$ac_cv_use_listctrl" | |
7142 | if test "$no_cache" != 1; then | |
7143 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7144 | fi | |
7145 | ||
7146 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7147 | echo "$as_me:$LINENO: result: yes" >&5 |
7148 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7149 | else |
e6cc62c6 VS |
7150 | echo "$as_me:$LINENO: result: no" >&5 |
7151 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7152 | fi |
e6cc62c6 | 7153 | |
10f2d63a | 7154 | |
5005acfe | 7155 | enablestring= |
e6cc62c6 VS |
7156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7157 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7158 | no_cache=0 |
7159 | # Check whether --enable-notebook or --disable-notebook was given. | |
7160 | if test "${enable_notebook+set}" = set; then | |
7161 | enableval="$enable_notebook" | |
e6cc62c6 | 7162 | |
10f2d63a VZ |
7163 | if test "$enableval" = yes; then |
7164 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7165 | else | |
7166 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7167 | fi | |
e6cc62c6 | 7168 | |
10f2d63a | 7169 | else |
e6cc62c6 | 7170 | |
10f2d63a VZ |
7171 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7172 | if test "x$LINE" != x ; then | |
7173 | eval "DEFAULT_$LINE" | |
7174 | else | |
7175 | no_cache=1 | |
7176 | fi | |
7177 | ||
7178 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7179 | |
e6cc62c6 | 7180 | fi; |
10f2d63a VZ |
7181 | |
7182 | eval "$ac_cv_use_notebook" | |
7183 | if test "$no_cache" != 1; then | |
7184 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7185 | fi | |
7186 | ||
7187 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7188 | echo "$as_me:$LINENO: result: yes" >&5 |
7189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7190 | else |
e6cc62c6 VS |
7191 | echo "$as_me:$LINENO: result: no" >&5 |
7192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7193 | fi |
e6cc62c6 | 7194 | |
10f2d63a | 7195 | |
5005acfe | 7196 | enablestring= |
e6cc62c6 VS |
7197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7198 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7199 | no_cache=0 |
7200 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7201 | if test "${enable_radiobox+set}" = set; then | |
7202 | enableval="$enable_radiobox" | |
e6cc62c6 | 7203 | |
10f2d63a VZ |
7204 | if test "$enableval" = yes; then |
7205 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7206 | else | |
7207 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7208 | fi | |
e6cc62c6 | 7209 | |
10f2d63a | 7210 | else |
e6cc62c6 | 7211 | |
10f2d63a VZ |
7212 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7213 | if test "x$LINE" != x ; then | |
7214 | eval "DEFAULT_$LINE" | |
7215 | else | |
7216 | no_cache=1 | |
7217 | fi | |
7218 | ||
7219 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7220 | |
e6cc62c6 | 7221 | fi; |
10f2d63a VZ |
7222 | |
7223 | eval "$ac_cv_use_radiobox" | |
7224 | if test "$no_cache" != 1; then | |
7225 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7226 | fi | |
7227 | ||
7228 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7229 | echo "$as_me:$LINENO: result: yes" >&5 |
7230 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7231 | else |
e6cc62c6 VS |
7232 | echo "$as_me:$LINENO: result: no" >&5 |
7233 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7234 | fi |
e6cc62c6 | 7235 | |
10f2d63a | 7236 | |
5005acfe | 7237 | enablestring= |
e6cc62c6 VS |
7238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7239 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7240 | no_cache=0 |
7241 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7242 | if test "${enable_radiobtn+set}" = set; then | |
7243 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7244 | |
10f2d63a VZ |
7245 | if test "$enableval" = yes; then |
7246 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7247 | else | |
7248 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7249 | fi | |
e6cc62c6 | 7250 | |
10f2d63a | 7251 | else |
e6cc62c6 | 7252 | |
10f2d63a VZ |
7253 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7254 | if test "x$LINE" != x ; then | |
7255 | eval "DEFAULT_$LINE" | |
7256 | else | |
7257 | no_cache=1 | |
7258 | fi | |
7259 | ||
7260 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7261 | |
e6cc62c6 | 7262 | fi; |
10f2d63a VZ |
7263 | |
7264 | eval "$ac_cv_use_radiobtn" | |
7265 | if test "$no_cache" != 1; then | |
7266 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7267 | fi | |
7268 | ||
7269 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7270 | echo "$as_me:$LINENO: result: yes" >&5 |
7271 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7272 | else |
e6cc62c6 VS |
7273 | echo "$as_me:$LINENO: result: no" >&5 |
7274 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7275 | fi |
e6cc62c6 | 7276 | |
10f2d63a | 7277 | |
5005acfe | 7278 | enablestring= |
e6cc62c6 VS |
7279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7280 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7281 | no_cache=0 |
7282 | # Check whether --enable-sash or --disable-sash was given. | |
7283 | if test "${enable_sash+set}" = set; then | |
7284 | enableval="$enable_sash" | |
e6cc62c6 | 7285 | |
10f2d63a VZ |
7286 | if test "$enableval" = yes; then |
7287 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7288 | else | |
7289 | ac_cv_use_sash='wxUSE_SASH=no' | |
7290 | fi | |
e6cc62c6 | 7291 | |
10f2d63a | 7292 | else |
e6cc62c6 | 7293 | |
10f2d63a VZ |
7294 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7295 | if test "x$LINE" != x ; then | |
7296 | eval "DEFAULT_$LINE" | |
7297 | else | |
7298 | no_cache=1 | |
7299 | fi | |
7300 | ||
7301 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7302 | |
e6cc62c6 | 7303 | fi; |
10f2d63a VZ |
7304 | |
7305 | eval "$ac_cv_use_sash" | |
7306 | if test "$no_cache" != 1; then | |
7307 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7308 | fi | |
7309 | ||
7310 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7311 | echo "$as_me:$LINENO: result: yes" >&5 |
7312 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7313 | else |
e6cc62c6 VS |
7314 | echo "$as_me:$LINENO: result: no" >&5 |
7315 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7316 | fi |
e6cc62c6 | 7317 | |
10f2d63a | 7318 | |
5005acfe | 7319 | enablestring= |
e6cc62c6 VS |
7320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7321 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7322 | no_cache=0 |
7323 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7324 | if test "${enable_scrollbar+set}" = set; then | |
7325 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7326 | |
10f2d63a VZ |
7327 | if test "$enableval" = yes; then |
7328 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7329 | else | |
7330 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7331 | fi | |
e6cc62c6 | 7332 | |
10f2d63a | 7333 | else |
e6cc62c6 | 7334 | |
10f2d63a VZ |
7335 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7336 | if test "x$LINE" != x ; then | |
7337 | eval "DEFAULT_$LINE" | |
7338 | else | |
7339 | no_cache=1 | |
7340 | fi | |
7341 | ||
7342 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7343 | |
e6cc62c6 | 7344 | fi; |
10f2d63a VZ |
7345 | |
7346 | eval "$ac_cv_use_scrollbar" | |
7347 | if test "$no_cache" != 1; then | |
7348 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7349 | fi | |
7350 | ||
7351 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7352 | echo "$as_me:$LINENO: result: yes" >&5 |
7353 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7354 | else |
e6cc62c6 VS |
7355 | echo "$as_me:$LINENO: result: no" >&5 |
7356 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7357 | fi |
e6cc62c6 | 7358 | |
10f2d63a | 7359 | |
5005acfe | 7360 | enablestring= |
e6cc62c6 VS |
7361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7362 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7363 | no_cache=0 |
7364 | # Check whether --enable-slider or --disable-slider was given. | |
7365 | if test "${enable_slider+set}" = set; then | |
7366 | enableval="$enable_slider" | |
e6cc62c6 | 7367 | |
10f2d63a VZ |
7368 | if test "$enableval" = yes; then |
7369 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7370 | else | |
7371 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7372 | fi | |
e6cc62c6 | 7373 | |
10f2d63a | 7374 | else |
e6cc62c6 | 7375 | |
10f2d63a VZ |
7376 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7377 | if test "x$LINE" != x ; then | |
7378 | eval "DEFAULT_$LINE" | |
7379 | else | |
7380 | no_cache=1 | |
7381 | fi | |
7382 | ||
7383 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7384 | |
e6cc62c6 | 7385 | fi; |
10f2d63a VZ |
7386 | |
7387 | eval "$ac_cv_use_slider" | |
7388 | if test "$no_cache" != 1; then | |
7389 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7390 | fi | |
7391 | ||
7392 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7393 | echo "$as_me:$LINENO: result: yes" >&5 |
7394 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7395 | else |
e6cc62c6 VS |
7396 | echo "$as_me:$LINENO: result: no" >&5 |
7397 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7398 | fi |
e6cc62c6 | 7399 | |
10f2d63a | 7400 | |
5005acfe | 7401 | enablestring= |
e6cc62c6 VS |
7402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7403 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7404 | no_cache=0 |
7405 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7406 | if test "${enable_spinbtn+set}" = set; then | |
7407 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7408 | |
10f2d63a VZ |
7409 | if test "$enableval" = yes; then |
7410 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7411 | else | |
7412 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7413 | fi | |
e6cc62c6 | 7414 | |
10f2d63a | 7415 | else |
e6cc62c6 | 7416 | |
10f2d63a VZ |
7417 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7418 | if test "x$LINE" != x ; then | |
7419 | eval "DEFAULT_$LINE" | |
7420 | else | |
7421 | no_cache=1 | |
7422 | fi | |
7423 | ||
7424 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7425 | |
e6cc62c6 | 7426 | fi; |
10f2d63a VZ |
7427 | |
7428 | eval "$ac_cv_use_spinbtn" | |
7429 | if test "$no_cache" != 1; then | |
7430 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7431 | fi | |
7432 | ||
7433 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7434 | echo "$as_me:$LINENO: result: yes" >&5 |
7435 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7436 | else |
e6cc62c6 VS |
7437 | echo "$as_me:$LINENO: result: no" >&5 |
7438 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7439 | fi |
e6cc62c6 | 7440 | |
10f2d63a | 7441 | |
5005acfe | 7442 | enablestring= |
e6cc62c6 VS |
7443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7444 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7445 | no_cache=0 |
7446 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7447 | if test "${enable_spinctrl+set}" = set; then | |
7448 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7449 | |
56cfaa52 RR |
7450 | if test "$enableval" = yes; then |
7451 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7452 | else | |
7453 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7454 | fi | |
e6cc62c6 | 7455 | |
56cfaa52 | 7456 | else |
e6cc62c6 | 7457 | |
56cfaa52 RR |
7458 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7459 | if test "x$LINE" != x ; then | |
7460 | eval "DEFAULT_$LINE" | |
7461 | else | |
7462 | no_cache=1 | |
7463 | fi | |
7464 | ||
7465 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7466 | |
e6cc62c6 | 7467 | fi; |
56cfaa52 RR |
7468 | |
7469 | eval "$ac_cv_use_spinctrl" | |
7470 | if test "$no_cache" != 1; then | |
7471 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7472 | fi | |
7473 | ||
7474 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7475 | echo "$as_me:$LINENO: result: yes" >&5 |
7476 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7477 | else |
e6cc62c6 VS |
7478 | echo "$as_me:$LINENO: result: no" >&5 |
7479 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7480 | fi |
e6cc62c6 | 7481 | |
56cfaa52 | 7482 | |
5005acfe | 7483 | enablestring= |
e6cc62c6 VS |
7484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7485 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7486 | no_cache=0 |
7487 | # Check whether --enable-splitter or --disable-splitter was given. | |
7488 | if test "${enable_splitter+set}" = set; then | |
7489 | enableval="$enable_splitter" | |
e6cc62c6 | 7490 | |
10f2d63a VZ |
7491 | if test "$enableval" = yes; then |
7492 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7493 | else | |
7494 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7495 | fi | |
e6cc62c6 | 7496 | |
10f2d63a | 7497 | else |
e6cc62c6 | 7498 | |
10f2d63a VZ |
7499 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7500 | if test "x$LINE" != x ; then | |
7501 | eval "DEFAULT_$LINE" | |
7502 | else | |
7503 | no_cache=1 | |
7504 | fi | |
7505 | ||
7506 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7507 | |
e6cc62c6 | 7508 | fi; |
10f2d63a VZ |
7509 | |
7510 | eval "$ac_cv_use_splitter" | |
7511 | if test "$no_cache" != 1; then | |
7512 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7513 | fi | |
7514 | ||
7515 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7516 | echo "$as_me:$LINENO: result: yes" >&5 |
7517 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7518 | else |
e6cc62c6 VS |
7519 | echo "$as_me:$LINENO: result: no" >&5 |
7520 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7521 | fi |
e6cc62c6 | 7522 | |
10f2d63a | 7523 | |
5005acfe | 7524 | enablestring= |
e6cc62c6 VS |
7525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7526 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7527 | no_cache=0 |
7528 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7529 | if test "${enable_statbmp+set}" = set; then | |
7530 | enableval="$enable_statbmp" | |
e6cc62c6 | 7531 | |
10f2d63a VZ |
7532 | if test "$enableval" = yes; then |
7533 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7534 | else | |
7535 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7536 | fi | |
e6cc62c6 | 7537 | |
10f2d63a | 7538 | else |
e6cc62c6 | 7539 | |
10f2d63a VZ |
7540 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7541 | if test "x$LINE" != x ; then | |
7542 | eval "DEFAULT_$LINE" | |
7543 | else | |
7544 | no_cache=1 | |
7545 | fi | |
7546 | ||
7547 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7548 | |
e6cc62c6 | 7549 | fi; |
10f2d63a VZ |
7550 | |
7551 | eval "$ac_cv_use_statbmp" | |
7552 | if test "$no_cache" != 1; then | |
7553 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7554 | fi | |
7555 | ||
7556 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7557 | echo "$as_me:$LINENO: result: yes" >&5 |
7558 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7559 | else |
e6cc62c6 VS |
7560 | echo "$as_me:$LINENO: result: no" >&5 |
7561 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7562 | fi |
e6cc62c6 | 7563 | |
10f2d63a | 7564 | |
5005acfe | 7565 | enablestring= |
e6cc62c6 VS |
7566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7567 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7568 | no_cache=0 |
7569 | # Check whether --enable-statbox or --disable-statbox was given. | |
7570 | if test "${enable_statbox+set}" = set; then | |
7571 | enableval="$enable_statbox" | |
e6cc62c6 | 7572 | |
10f2d63a VZ |
7573 | if test "$enableval" = yes; then |
7574 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7575 | else | |
7576 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7577 | fi | |
e6cc62c6 | 7578 | |
10f2d63a | 7579 | else |
e6cc62c6 | 7580 | |
10f2d63a VZ |
7581 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7582 | if test "x$LINE" != x ; then | |
7583 | eval "DEFAULT_$LINE" | |
7584 | else | |
7585 | no_cache=1 | |
7586 | fi | |
7587 | ||
7588 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7589 | |
e6cc62c6 | 7590 | fi; |
10f2d63a VZ |
7591 | |
7592 | eval "$ac_cv_use_statbox" | |
7593 | if test "$no_cache" != 1; then | |
7594 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7595 | fi | |
7596 | ||
7597 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7598 | echo "$as_me:$LINENO: result: yes" >&5 |
7599 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7600 | else |
e6cc62c6 VS |
7601 | echo "$as_me:$LINENO: result: no" >&5 |
7602 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7603 | fi |
e6cc62c6 | 7604 | |
10f2d63a | 7605 | |
5005acfe | 7606 | enablestring= |
e6cc62c6 VS |
7607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7608 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7609 | no_cache=0 |
7610 | # Check whether --enable-statline or --disable-statline was given. | |
7611 | if test "${enable_statline+set}" = set; then | |
7612 | enableval="$enable_statline" | |
e6cc62c6 | 7613 | |
10f2d63a VZ |
7614 | if test "$enableval" = yes; then |
7615 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7616 | else | |
7617 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7618 | fi | |
e6cc62c6 | 7619 | |
10f2d63a | 7620 | else |
e6cc62c6 | 7621 | |
10f2d63a VZ |
7622 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7623 | if test "x$LINE" != x ; then | |
7624 | eval "DEFAULT_$LINE" | |
7625 | else | |
7626 | no_cache=1 | |
7627 | fi | |
7628 | ||
7629 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7630 | |
e6cc62c6 | 7631 | fi; |
10f2d63a VZ |
7632 | |
7633 | eval "$ac_cv_use_statline" | |
7634 | if test "$no_cache" != 1; then | |
7635 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7636 | fi | |
7637 | ||
7638 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7639 | echo "$as_me:$LINENO: result: yes" >&5 |
7640 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7641 | else |
e6cc62c6 VS |
7642 | echo "$as_me:$LINENO: result: no" >&5 |
7643 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7644 | fi |
e6cc62c6 | 7645 | |
10f2d63a | 7646 | |
5005acfe | 7647 | enablestring= |
e6cc62c6 VS |
7648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7649 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7650 | no_cache=0 |
7651 | # Check whether --enable-stattext or --disable-stattext was given. | |
7652 | if test "${enable_stattext+set}" = set; then | |
7653 | enableval="$enable_stattext" | |
e6cc62c6 | 7654 | |
1e6feb95 VZ |
7655 | if test "$enableval" = yes; then |
7656 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7657 | else | |
7658 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7659 | fi | |
e6cc62c6 | 7660 | |
1e6feb95 | 7661 | else |
e6cc62c6 | 7662 | |
1e6feb95 VZ |
7663 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7664 | if test "x$LINE" != x ; then | |
7665 | eval "DEFAULT_$LINE" | |
7666 | else | |
7667 | no_cache=1 | |
7668 | fi | |
7669 | ||
7670 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7671 | |
e6cc62c6 | 7672 | fi; |
1e6feb95 VZ |
7673 | |
7674 | eval "$ac_cv_use_stattext" | |
7675 | if test "$no_cache" != 1; then | |
7676 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7677 | fi | |
7678 | ||
7679 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7680 | echo "$as_me:$LINENO: result: yes" >&5 |
7681 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7682 | else |
e6cc62c6 VS |
7683 | echo "$as_me:$LINENO: result: no" >&5 |
7684 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7685 | fi |
e6cc62c6 | 7686 | |
1e6feb95 | 7687 | |
5005acfe | 7688 | enablestring= |
e6cc62c6 VS |
7689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7690 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7691 | no_cache=0 |
7692 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7693 | if test "${enable_statusbar+set}" = set; then | |
7694 | enableval="$enable_statusbar" | |
e6cc62c6 | 7695 | |
10f2d63a VZ |
7696 | if test "$enableval" = yes; then |
7697 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7698 | else | |
7699 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7700 | fi | |
e6cc62c6 | 7701 | |
10f2d63a | 7702 | else |
e6cc62c6 | 7703 | |
10f2d63a VZ |
7704 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7705 | if test "x$LINE" != x ; then | |
7706 | eval "DEFAULT_$LINE" | |
7707 | else | |
7708 | no_cache=1 | |
7709 | fi | |
7710 | ||
7711 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7712 | |
e6cc62c6 | 7713 | fi; |
10f2d63a VZ |
7714 | |
7715 | eval "$ac_cv_use_statusbar" | |
7716 | if test "$no_cache" != 1; then | |
7717 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7718 | fi | |
7719 | ||
7720 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7721 | echo "$as_me:$LINENO: result: yes" >&5 |
7722 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7723 | else |
e6cc62c6 VS |
7724 | echo "$as_me:$LINENO: result: no" >&5 |
7725 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7726 | fi |
e6cc62c6 | 7727 | |
10f2d63a | 7728 | |
5005acfe | 7729 | enablestring= |
e6cc62c6 VS |
7730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7731 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7732 | no_cache=0 |
7733 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7734 | if test "${enable_tabdialog+set}" = set; then | |
7735 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7736 | |
10f2d63a VZ |
7737 | if test "$enableval" = yes; then |
7738 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7739 | else | |
7740 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7741 | fi | |
e6cc62c6 | 7742 | |
10f2d63a | 7743 | else |
e6cc62c6 | 7744 | |
10f2d63a VZ |
7745 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7746 | if test "x$LINE" != x ; then | |
7747 | eval "DEFAULT_$LINE" | |
7748 | else | |
7749 | no_cache=1 | |
7750 | fi | |
7751 | ||
7752 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7753 | |
e6cc62c6 | 7754 | fi; |
10f2d63a VZ |
7755 | |
7756 | eval "$ac_cv_use_tabdialog" | |
7757 | if test "$no_cache" != 1; then | |
7758 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7759 | fi | |
7760 | ||
7761 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7762 | echo "$as_me:$LINENO: result: yes" >&5 |
7763 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7764 | else |
e6cc62c6 VS |
7765 | echo "$as_me:$LINENO: result: no" >&5 |
7766 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7767 | fi |
e6cc62c6 | 7768 | |
10f2d63a | 7769 | |
5005acfe | 7770 | enablestring= |
e6cc62c6 VS |
7771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7772 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7773 | no_cache=0 |
7774 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7775 | if test "${enable_textctrl+set}" = set; then | |
7776 | enableval="$enable_textctrl" | |
e6cc62c6 | 7777 | |
1e6feb95 VZ |
7778 | if test "$enableval" = yes; then |
7779 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7780 | else | |
7781 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7782 | fi | |
e6cc62c6 | 7783 | |
1e6feb95 | 7784 | else |
e6cc62c6 | 7785 | |
1e6feb95 VZ |
7786 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7787 | if test "x$LINE" != x ; then | |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
7793 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7794 | |
e6cc62c6 | 7795 | fi; |
1e6feb95 VZ |
7796 | |
7797 | eval "$ac_cv_use_textctrl" | |
7798 | if test "$no_cache" != 1; then | |
7799 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7800 | fi | |
7801 | ||
7802 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7803 | echo "$as_me:$LINENO: result: yes" >&5 |
7804 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7805 | else |
e6cc62c6 VS |
7806 | echo "$as_me:$LINENO: result: no" >&5 |
7807 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7808 | fi |
e6cc62c6 | 7809 | |
1e6feb95 | 7810 | |
5005acfe | 7811 | enablestring= |
e6cc62c6 VS |
7812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7813 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7814 | no_cache=0 |
7815 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7816 | if test "${enable_togglebtn+set}" = set; then | |
7817 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7818 | |
1db8dc4a VZ |
7819 | if test "$enableval" = yes; then |
7820 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7821 | else | |
7822 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7823 | fi | |
e6cc62c6 | 7824 | |
1db8dc4a | 7825 | else |
e6cc62c6 | 7826 | |
1db8dc4a VZ |
7827 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7828 | if test "x$LINE" != x ; then | |
7829 | eval "DEFAULT_$LINE" | |
7830 | else | |
7831 | no_cache=1 | |
7832 | fi | |
7833 | ||
7834 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7835 | |
e6cc62c6 | 7836 | fi; |
1db8dc4a VZ |
7837 | |
7838 | eval "$ac_cv_use_togglebtn" | |
7839 | if test "$no_cache" != 1; then | |
7840 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7841 | fi | |
7842 | ||
7843 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7844 | echo "$as_me:$LINENO: result: yes" >&5 |
7845 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7846 | else |
e6cc62c6 VS |
7847 | echo "$as_me:$LINENO: result: no" >&5 |
7848 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7849 | fi |
e6cc62c6 | 7850 | |
1db8dc4a | 7851 | |
5005acfe | 7852 | enablestring= |
e6cc62c6 VS |
7853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7854 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7855 | no_cache=0 |
7856 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7857 | if test "${enable_toolbar+set}" = set; then | |
7858 | enableval="$enable_toolbar" | |
e6cc62c6 | 7859 | |
10f2d63a VZ |
7860 | if test "$enableval" = yes; then |
7861 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7862 | else | |
7863 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7864 | fi | |
e6cc62c6 | 7865 | |
10f2d63a | 7866 | else |
e6cc62c6 | 7867 | |
10f2d63a VZ |
7868 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7869 | if test "x$LINE" != x ; then | |
7870 | eval "DEFAULT_$LINE" | |
7871 | else | |
7872 | no_cache=1 | |
7873 | fi | |
7874 | ||
7875 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7876 | |
e6cc62c6 | 7877 | fi; |
10f2d63a VZ |
7878 | |
7879 | eval "$ac_cv_use_toolbar" | |
7880 | if test "$no_cache" != 1; then | |
7881 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7882 | fi | |
7883 | ||
7884 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7885 | echo "$as_me:$LINENO: result: yes" >&5 |
7886 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7887 | else |
e6cc62c6 VS |
7888 | echo "$as_me:$LINENO: result: no" >&5 |
7889 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7890 | fi |
e6cc62c6 | 7891 | |
10f2d63a | 7892 | |
5005acfe | 7893 | enablestring= |
e6cc62c6 VS |
7894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7895 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7896 | no_cache=0 |
7897 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7898 | if test "${enable_tbarnative+set}" = set; then | |
7899 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7900 | |
360d6699 VZ |
7901 | if test "$enableval" = yes; then |
7902 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7903 | else | |
7904 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7905 | fi | |
e6cc62c6 | 7906 | |
360d6699 | 7907 | else |
e6cc62c6 | 7908 | |
360d6699 VZ |
7909 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7910 | if test "x$LINE" != x ; then | |
7911 | eval "DEFAULT_$LINE" | |
7912 | else | |
7913 | no_cache=1 | |
7914 | fi | |
7915 | ||
7916 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7917 | |
e6cc62c6 | 7918 | fi; |
360d6699 VZ |
7919 | |
7920 | eval "$ac_cv_use_tbarnative" | |
7921 | if test "$no_cache" != 1; then | |
7922 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7923 | fi | |
7924 | ||
7925 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7926 | echo "$as_me:$LINENO: result: yes" >&5 |
7927 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7928 | else |
e6cc62c6 VS |
7929 | echo "$as_me:$LINENO: result: no" >&5 |
7930 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7931 | fi |
e6cc62c6 | 7932 | |
360d6699 | 7933 | |
5005acfe | 7934 | enablestring= |
e6cc62c6 VS |
7935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7936 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7937 | no_cache=0 |
7938 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7939 | if test "${enable_tbarsmpl+set}" = set; then | |
7940 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7941 | |
360d6699 VZ |
7942 | if test "$enableval" = yes; then |
7943 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7944 | else | |
7945 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7946 | fi | |
e6cc62c6 | 7947 | |
360d6699 | 7948 | else |
e6cc62c6 | 7949 | |
360d6699 VZ |
7950 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7951 | if test "x$LINE" != x ; then | |
7952 | eval "DEFAULT_$LINE" | |
7953 | else | |
7954 | no_cache=1 | |
7955 | fi | |
7956 | ||
7957 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7958 | |
e6cc62c6 | 7959 | fi; |
360d6699 VZ |
7960 | |
7961 | eval "$ac_cv_use_tbarsmpl" | |
7962 | if test "$no_cache" != 1; then | |
7963 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7964 | fi | |
7965 | ||
7966 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
7967 | echo "$as_me:$LINENO: result: yes" >&5 |
7968 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7969 | else |
e6cc62c6 VS |
7970 | echo "$as_me:$LINENO: result: no" >&5 |
7971 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7972 | fi |
e6cc62c6 | 7973 | |
360d6699 | 7974 | |
5005acfe | 7975 | enablestring= |
e6cc62c6 VS |
7976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
7977 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7978 | no_cache=0 |
7979 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7980 | if test "${enable_treectrl+set}" = set; then | |
7981 | enableval="$enable_treectrl" | |
e6cc62c6 | 7982 | |
10f2d63a VZ |
7983 | if test "$enableval" = yes; then |
7984 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7985 | else | |
7986 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7987 | fi | |
e6cc62c6 | 7988 | |
10f2d63a | 7989 | else |
e6cc62c6 | 7990 | |
10f2d63a VZ |
7991 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7992 | if test "x$LINE" != x ; then | |
7993 | eval "DEFAULT_$LINE" | |
7994 | else | |
7995 | no_cache=1 | |
7996 | fi | |
7997 | ||
7998 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 7999 | |
e6cc62c6 | 8000 | fi; |
10f2d63a | 8001 | |
1e6feb95 VZ |
8002 | eval "$ac_cv_use_treectrl" |
8003 | if test "$no_cache" != 1; then | |
8004 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8005 | fi | |
8006 | ||
8007 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8008 | echo "$as_me:$LINENO: result: yes" >&5 |
8009 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8010 | else |
e6cc62c6 VS |
8011 | echo "$as_me:$LINENO: result: no" >&5 |
8012 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8013 | fi |
e6cc62c6 | 8014 | |
1e6feb95 | 8015 | |
5005acfe | 8016 | enablestring= |
e6cc62c6 VS |
8017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8018 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8019 | no_cache=0 |
8020 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8021 | if test "${enable_tipwindow+set}" = set; then | |
8022 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8023 | |
9926e4a4 VZ |
8024 | if test "$enableval" = yes; then |
8025 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8026 | else | |
8027 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8028 | fi | |
e6cc62c6 | 8029 | |
9926e4a4 | 8030 | else |
e6cc62c6 | 8031 | |
9926e4a4 VZ |
8032 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8033 | if test "x$LINE" != x ; then | |
8034 | eval "DEFAULT_$LINE" | |
8035 | else | |
8036 | no_cache=1 | |
8037 | fi | |
8038 | ||
8039 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8040 | |
e6cc62c6 | 8041 | fi; |
9926e4a4 VZ |
8042 | |
8043 | eval "$ac_cv_use_tipwindow" | |
8044 | if test "$no_cache" != 1; then | |
8045 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8046 | fi | |
8047 | ||
8048 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8049 | echo "$as_me:$LINENO: result: yes" >&5 |
8050 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8051 | else |
e6cc62c6 VS |
8052 | echo "$as_me:$LINENO: result: no" >&5 |
8053 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8054 | fi |
e6cc62c6 | 8055 | |
9926e4a4 | 8056 | |
5005acfe | 8057 | enablestring= |
e6cc62c6 VS |
8058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8059 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8060 | no_cache=0 |
8061 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8062 | if test "${enable_popupwin+set}" = set; then | |
8063 | enableval="$enable_popupwin" | |
e6cc62c6 | 8064 | |
9f41d601 RR |
8065 | if test "$enableval" = yes; then |
8066 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8067 | else | |
8068 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8069 | fi | |
e6cc62c6 | 8070 | |
9f41d601 | 8071 | else |
e6cc62c6 | 8072 | |
9f41d601 RR |
8073 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8074 | if test "x$LINE" != x ; then | |
8075 | eval "DEFAULT_$LINE" | |
8076 | else | |
8077 | no_cache=1 | |
8078 | fi | |
8079 | ||
8080 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8081 | |
e6cc62c6 | 8082 | fi; |
9f41d601 RR |
8083 | |
8084 | eval "$ac_cv_use_popupwin" | |
8085 | if test "$no_cache" != 1; then | |
8086 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8087 | fi | |
8088 | ||
8089 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8090 | echo "$as_me:$LINENO: result: yes" >&5 |
8091 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8092 | else |
e6cc62c6 VS |
8093 | echo "$as_me:$LINENO: result: no" >&5 |
8094 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8095 | fi |
e6cc62c6 | 8096 | |
52127426 | 8097 | |
8284b0c5 MB |
8098 | |
8099 | ||
5005acfe | 8100 | enablestring= |
e6cc62c6 VS |
8101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8102 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8103 | no_cache=0 |
8104 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8105 | if test "${enable_commondlg+set}" = set; then | |
8106 | enableval="$enable_commondlg" | |
e6cc62c6 | 8107 | |
1e6feb95 VZ |
8108 | if test "$enableval" = yes; then |
8109 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8110 | else | |
8111 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8112 | fi | |
e6cc62c6 | 8113 | |
1e6feb95 | 8114 | else |
e6cc62c6 | 8115 | |
1e6feb95 VZ |
8116 | LINE=`grep "wxUSE_COMMONDLGS" ${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_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8124 | |
e6cc62c6 | 8125 | fi; |
1e6feb95 VZ |
8126 | |
8127 | eval "$ac_cv_use_commondlg" | |
8128 | if test "$no_cache" != 1; then | |
8129 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8130 | fi | |
8131 | ||
8132 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8133 | echo "$as_me:$LINENO: result: yes" >&5 |
8134 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8135 | else |
e6cc62c6 VS |
8136 | echo "$as_me:$LINENO: result: no" >&5 |
8137 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8138 | fi |
e6cc62c6 | 8139 | |
1e6feb95 | 8140 | |
5005acfe | 8141 | enablestring= |
e6cc62c6 VS |
8142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8143 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8144 | no_cache=0 |
8145 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8146 | if test "${enable_choicedlg+set}" = set; then | |
8147 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8148 | |
1e6feb95 VZ |
8149 | if test "$enableval" = yes; then |
8150 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8151 | else | |
8152 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8153 | fi | |
e6cc62c6 | 8154 | |
1e6feb95 | 8155 | else |
e6cc62c6 | 8156 | |
1e6feb95 VZ |
8157 | LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8165 | |
e6cc62c6 | 8166 | fi; |
1e6feb95 VZ |
8167 | |
8168 | eval "$ac_cv_use_choicedlg" | |
8169 | if test "$no_cache" != 1; then | |
8170 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8171 | fi | |
8172 | ||
8173 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8174 | echo "$as_me:$LINENO: result: yes" >&5 |
8175 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8176 | else |
e6cc62c6 VS |
8177 | echo "$as_me:$LINENO: result: no" >&5 |
8178 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8179 | fi |
e6cc62c6 | 8180 | |
1e6feb95 | 8181 | |
5005acfe | 8182 | enablestring= |
e6cc62c6 VS |
8183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8184 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8185 | no_cache=0 |
8186 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8187 | if test "${enable_coldlg+set}" = set; then | |
8188 | enableval="$enable_coldlg" | |
e6cc62c6 | 8189 | |
1e6feb95 VZ |
8190 | if test "$enableval" = yes; then |
8191 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8192 | else | |
8193 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8194 | fi | |
e6cc62c6 | 8195 | |
1e6feb95 | 8196 | else |
e6cc62c6 | 8197 | |
1e6feb95 VZ |
8198 | LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8206 | |
e6cc62c6 | 8207 | fi; |
1e6feb95 VZ |
8208 | |
8209 | eval "$ac_cv_use_coldlg" | |
8210 | if test "$no_cache" != 1; then | |
8211 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8212 | fi | |
8213 | ||
8214 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8215 | echo "$as_me:$LINENO: result: yes" >&5 |
8216 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8217 | else |
e6cc62c6 VS |
8218 | echo "$as_me:$LINENO: result: no" >&5 |
8219 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8220 | fi |
e6cc62c6 | 8221 | |
1e6feb95 | 8222 | |
5005acfe | 8223 | enablestring= |
e6cc62c6 VS |
8224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8225 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8226 | no_cache=0 |
8227 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8228 | if test "${enable_filedlg+set}" = set; then | |
8229 | enableval="$enable_filedlg" | |
e6cc62c6 | 8230 | |
1e6feb95 VZ |
8231 | if test "$enableval" = yes; then |
8232 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8233 | else | |
8234 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8235 | fi | |
e6cc62c6 | 8236 | |
1e6feb95 | 8237 | else |
e6cc62c6 | 8238 | |
1e6feb95 VZ |
8239 | LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8247 | |
e6cc62c6 | 8248 | fi; |
1e6feb95 VZ |
8249 | |
8250 | eval "$ac_cv_use_filedlg" | |
8251 | if test "$no_cache" != 1; then | |
8252 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8253 | fi | |
8254 | ||
8255 | if test "$wxUSE_FILEDLG" = 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}-finddlg" >&5 |
8266 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8267 | no_cache=0 |
69d27ff7 MB |
8268 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8269 | if test "${enable_finddlg+set}" = set; then | |
8270 | enableval="$enable_finddlg" | |
e6cc62c6 | 8271 | |
8db37e06 | 8272 | if test "$enableval" = yes; then |
69d27ff7 | 8273 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8274 | else |
69d27ff7 | 8275 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8276 | fi |
e6cc62c6 | 8277 | |
8db37e06 | 8278 | else |
e6cc62c6 | 8279 | |
8db37e06 VZ |
8280 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8281 | if test "x$LINE" != x ; then | |
8282 | eval "DEFAULT_$LINE" | |
8283 | else | |
8284 | no_cache=1 | |
8285 | fi | |
8286 | ||
69d27ff7 | 8287 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8288 | |
e6cc62c6 | 8289 | fi; |
8db37e06 | 8290 | |
69d27ff7 | 8291 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8292 | if test "$no_cache" != 1; then |
69d27ff7 | 8293 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8294 | fi |
8295 | ||
8296 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8297 | echo "$as_me:$LINENO: result: yes" >&5 |
8298 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8299 | else |
e6cc62c6 VS |
8300 | echo "$as_me:$LINENO: result: no" >&5 |
8301 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8302 | fi |
e6cc62c6 | 8303 | |
8db37e06 | 8304 | |
5005acfe | 8305 | enablestring= |
e6cc62c6 VS |
8306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8307 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8308 | no_cache=0 |
8309 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8310 | if test "${enable_fontdlg+set}" = set; then | |
8311 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8312 | |
1e6feb95 VZ |
8313 | if test "$enableval" = yes; then |
8314 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8315 | else | |
8316 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8317 | fi | |
e6cc62c6 | 8318 | |
1e6feb95 | 8319 | else |
e6cc62c6 | 8320 | |
1e6feb95 VZ |
8321 | LINE=`grep "wxUSE_FONTDLG" ${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_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8329 | |
e6cc62c6 | 8330 | fi; |
1e6feb95 VZ |
8331 | |
8332 | eval "$ac_cv_use_fontdlg" | |
8333 | if test "$no_cache" != 1; then | |
8334 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8335 | fi | |
8336 | ||
8337 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8338 | echo "$as_me:$LINENO: result: yes" >&5 |
8339 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8340 | else |
e6cc62c6 VS |
8341 | echo "$as_me:$LINENO: result: no" >&5 |
8342 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8343 | fi |
e6cc62c6 | 8344 | |
1e6feb95 | 8345 | |
5005acfe | 8346 | enablestring= |
e6cc62c6 VS |
8347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8348 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8349 | no_cache=0 |
8350 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8351 | if test "${enable_dirdlg+set}" = set; then | |
8352 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8353 | |
1e6feb95 VZ |
8354 | if test "$enableval" = yes; then |
8355 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8356 | else | |
8357 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8358 | fi | |
e6cc62c6 | 8359 | |
1e6feb95 | 8360 | else |
e6cc62c6 | 8361 | |
1e6feb95 VZ |
8362 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8363 | if test "x$LINE" != x ; then | |
8364 | eval "DEFAULT_$LINE" | |
8365 | else | |
8366 | no_cache=1 | |
8367 | fi | |
8368 | ||
8369 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8370 | |
e6cc62c6 | 8371 | fi; |
1e6feb95 VZ |
8372 | |
8373 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8374 | if test "$no_cache" != 1; then |
1e6feb95 | 8375 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8376 | fi |
8377 | ||
1e6feb95 | 8378 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8379 | echo "$as_me:$LINENO: result: yes" >&5 |
8380 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8381 | else |
e6cc62c6 VS |
8382 | echo "$as_me:$LINENO: result: no" >&5 |
8383 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8384 | fi |
e6cc62c6 | 8385 | |
698dcdb6 | 8386 | |
5005acfe | 8387 | enablestring= |
e6cc62c6 VS |
8388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8389 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8390 | no_cache=0 |
1e6feb95 VZ |
8391 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8392 | if test "${enable_msgdlg+set}" = set; then | |
8393 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8394 | |
10f2d63a | 8395 | if test "$enableval" = yes; then |
1e6feb95 | 8396 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8397 | else |
1e6feb95 | 8398 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8399 | fi |
e6cc62c6 | 8400 | |
10f2d63a | 8401 | else |
e6cc62c6 | 8402 | |
1e6feb95 | 8403 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8404 | if test "x$LINE" != x ; then |
8405 | eval "DEFAULT_$LINE" | |
8406 | else | |
8407 | no_cache=1 | |
8408 | fi | |
8409 | ||
1e6feb95 | 8410 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8411 | |
e6cc62c6 | 8412 | fi; |
10f2d63a | 8413 | |
1e6feb95 | 8414 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8415 | if test "$no_cache" != 1; then |
1e6feb95 | 8416 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8417 | fi |
8418 | ||
1e6feb95 | 8419 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8420 | echo "$as_me:$LINENO: result: yes" >&5 |
8421 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8422 | else |
e6cc62c6 VS |
8423 | echo "$as_me:$LINENO: result: no" >&5 |
8424 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8425 | fi |
e6cc62c6 | 8426 | |
10f2d63a | 8427 | |
5005acfe | 8428 | enablestring= |
e6cc62c6 VS |
8429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8430 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8431 | no_cache=0 |
1e6feb95 VZ |
8432 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8433 | if test "${enable_numberdlg+set}" = set; then | |
8434 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8435 | |
10f2d63a | 8436 | if test "$enableval" = yes; then |
1e6feb95 | 8437 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8438 | else |
1e6feb95 | 8439 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8440 | fi |
e6cc62c6 | 8441 | |
10f2d63a | 8442 | else |
e6cc62c6 | 8443 | |
1e6feb95 | 8444 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8445 | if test "x$LINE" != x ; then |
8446 | eval "DEFAULT_$LINE" | |
8447 | else | |
8448 | no_cache=1 | |
8449 | fi | |
8450 | ||
1e6feb95 | 8451 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8452 | |
e6cc62c6 | 8453 | fi; |
10f2d63a | 8454 | |
1e6feb95 | 8455 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8456 | if test "$no_cache" != 1; then |
1e6feb95 | 8457 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8458 | fi |
8459 | ||
1e6feb95 | 8460 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8461 | echo "$as_me:$LINENO: result: yes" >&5 |
8462 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8463 | else |
e6cc62c6 VS |
8464 | echo "$as_me:$LINENO: result: no" >&5 |
8465 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8466 | fi |
e6cc62c6 | 8467 | |
10f2d63a | 8468 | |
5005acfe | 8469 | enablestring= |
e6cc62c6 VS |
8470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8471 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8472 | no_cache=0 |
8473 | # Check whether --enable-splash or --disable-splash was given. | |
8474 | if test "${enable_splash+set}" = set; then | |
8475 | enableval="$enable_splash" | |
e6cc62c6 | 8476 | |
cbca9943 VZ |
8477 | if test "$enableval" = yes; then |
8478 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8479 | else | |
8480 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8481 | fi | |
e6cc62c6 | 8482 | |
cbca9943 | 8483 | else |
e6cc62c6 | 8484 | |
cbca9943 VZ |
8485 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8486 | if test "x$LINE" != x ; then | |
8487 | eval "DEFAULT_$LINE" | |
8488 | else | |
8489 | no_cache=1 | |
8490 | fi | |
8491 | ||
8492 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8493 | |
e6cc62c6 | 8494 | fi; |
cbca9943 VZ |
8495 | |
8496 | eval "$ac_cv_use_splash" | |
8497 | if test "$no_cache" != 1; then | |
8498 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8499 | fi | |
8500 | ||
8501 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8502 | echo "$as_me:$LINENO: result: yes" >&5 |
8503 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8504 | else |
e6cc62c6 VS |
8505 | echo "$as_me:$LINENO: result: no" >&5 |
8506 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8507 | fi |
e6cc62c6 | 8508 | |
cbca9943 | 8509 | |
5005acfe | 8510 | enablestring= |
e6cc62c6 VS |
8511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8512 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8513 | no_cache=0 |
8514 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8515 | if test "${enable_textdlg+set}" = set; then | |
8516 | enableval="$enable_textdlg" | |
e6cc62c6 | 8517 | |
10f2d63a VZ |
8518 | if test "$enableval" = yes; then |
8519 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8520 | else | |
8521 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8522 | fi | |
e6cc62c6 | 8523 | |
10f2d63a | 8524 | else |
e6cc62c6 | 8525 | |
10f2d63a VZ |
8526 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8527 | if test "x$LINE" != x ; then | |
8528 | eval "DEFAULT_$LINE" | |
8529 | else | |
8530 | no_cache=1 | |
8531 | fi | |
8532 | ||
8533 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8534 | |
e6cc62c6 | 8535 | fi; |
10f2d63a VZ |
8536 | |
8537 | eval "$ac_cv_use_textdlg" | |
8538 | if test "$no_cache" != 1; then | |
8539 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8540 | fi | |
8541 | ||
8542 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8543 | echo "$as_me:$LINENO: result: yes" >&5 |
8544 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8545 | else |
e6cc62c6 VS |
8546 | echo "$as_me:$LINENO: result: no" >&5 |
8547 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8548 | fi |
e6cc62c6 | 8549 | |
10f2d63a | 8550 | |
5005acfe | 8551 | enablestring= |
e6cc62c6 VS |
8552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8553 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8554 | no_cache=0 |
8555 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8556 | if test "${enable_tipdlg+set}" = set; then | |
8557 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8558 | |
10f2d63a VZ |
8559 | if test "$enableval" = yes; then |
8560 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8561 | else | |
8562 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8563 | fi | |
e6cc62c6 | 8564 | |
10f2d63a | 8565 | else |
e6cc62c6 | 8566 | |
10f2d63a VZ |
8567 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8568 | if test "x$LINE" != x ; then | |
8569 | eval "DEFAULT_$LINE" | |
8570 | else | |
8571 | no_cache=1 | |
8572 | fi | |
8573 | ||
8574 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8575 | |
e6cc62c6 | 8576 | fi; |
10f2d63a VZ |
8577 | |
8578 | eval "$ac_cv_use_tipdlg" | |
8579 | if test "$no_cache" != 1; then | |
8580 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8581 | fi | |
8582 | ||
8583 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8584 | echo "$as_me:$LINENO: result: yes" >&5 |
8585 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8586 | else |
e6cc62c6 VS |
8587 | echo "$as_me:$LINENO: result: no" >&5 |
8588 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8589 | fi |
e6cc62c6 | 8590 | |
10f2d63a | 8591 | |
5005acfe | 8592 | enablestring= |
e6cc62c6 VS |
8593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8594 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8595 | no_cache=0 |
8596 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8597 | if test "${enable_progressdlg+set}" = set; then | |
8598 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8599 | |
10f2d63a VZ |
8600 | if test "$enableval" = yes; then |
8601 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8602 | else | |
8603 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8604 | fi | |
e6cc62c6 | 8605 | |
10f2d63a | 8606 | else |
e6cc62c6 | 8607 | |
10f2d63a VZ |
8608 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8609 | if test "x$LINE" != x ; then | |
8610 | eval "DEFAULT_$LINE" | |
8611 | else | |
8612 | no_cache=1 | |
8613 | fi | |
8614 | ||
8615 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8616 | |
e6cc62c6 | 8617 | fi; |
10f2d63a VZ |
8618 | |
8619 | eval "$ac_cv_use_progressdlg" | |
8620 | if test "$no_cache" != 1; then | |
8621 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8622 | fi | |
8623 | ||
8624 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8625 | echo "$as_me:$LINENO: result: yes" >&5 |
8626 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8627 | else |
e6cc62c6 VS |
8628 | echo "$as_me:$LINENO: result: no" >&5 |
8629 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8630 | fi |
e6cc62c6 | 8631 | |
10f2d63a | 8632 | |
5005acfe | 8633 | enablestring= |
e6cc62c6 VS |
8634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8635 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8636 | no_cache=0 |
8637 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8638 | if test "${enable_wizarddlg+set}" = set; then | |
8639 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8640 | |
b1f5d087 VZ |
8641 | if test "$enableval" = yes; then |
8642 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8643 | else | |
8644 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8645 | fi | |
e6cc62c6 | 8646 | |
b1f5d087 | 8647 | else |
e6cc62c6 | 8648 | |
b1f5d087 VZ |
8649 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8650 | if test "x$LINE" != x ; then | |
8651 | eval "DEFAULT_$LINE" | |
8652 | else | |
8653 | no_cache=1 | |
8654 | fi | |
8655 | ||
8656 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8657 | |
e6cc62c6 | 8658 | fi; |
b1f5d087 VZ |
8659 | |
8660 | eval "$ac_cv_use_wizarddlg" | |
8661 | if test "$no_cache" != 1; then | |
8662 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8663 | fi | |
8664 | ||
8665 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8666 | echo "$as_me:$LINENO: result: yes" >&5 |
8667 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8668 | else |
e6cc62c6 VS |
8669 | echo "$as_me:$LINENO: result: no" >&5 |
8670 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8671 | fi |
e6cc62c6 | 8672 | |
8284b0c5 MB |
8673 | |
8674 | ||
52127426 | 8675 | |
5005acfe | 8676 | enablestring= |
e6cc62c6 VS |
8677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8678 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8679 | no_cache=0 |
8680 | # Check whether --enable-menus or --disable-menus was given. | |
8681 | if test "${enable_menus+set}" = set; then | |
8682 | enableval="$enable_menus" | |
e6cc62c6 | 8683 | |
1e6feb95 VZ |
8684 | if test "$enableval" = yes; then |
8685 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8686 | else | |
8687 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8688 | fi | |
e6cc62c6 | 8689 | |
1e6feb95 | 8690 | else |
e6cc62c6 | 8691 | |
1e6feb95 VZ |
8692 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8693 | if test "x$LINE" != x ; then | |
8694 | eval "DEFAULT_$LINE" | |
8695 | else | |
8696 | no_cache=1 | |
8697 | fi | |
8698 | ||
8699 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8700 | |
e6cc62c6 | 8701 | fi; |
1e6feb95 VZ |
8702 | |
8703 | eval "$ac_cv_use_menus" | |
8704 | if test "$no_cache" != 1; then | |
8705 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8706 | fi | |
8707 | ||
8708 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8709 | echo "$as_me:$LINENO: result: yes" >&5 |
8710 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8711 | else |
e6cc62c6 VS |
8712 | echo "$as_me:$LINENO: result: no" >&5 |
8713 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8714 | fi |
e6cc62c6 | 8715 | |
1e6feb95 | 8716 | |
5005acfe | 8717 | enablestring= |
e6cc62c6 VS |
8718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8719 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8720 | no_cache=0 |
8721 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8722 | if test "${enable_miniframe+set}" = set; then | |
8723 | enableval="$enable_miniframe" | |
e6cc62c6 | 8724 | |
10f2d63a VZ |
8725 | if test "$enableval" = yes; then |
8726 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8727 | else | |
8728 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8729 | fi | |
e6cc62c6 | 8730 | |
10f2d63a | 8731 | else |
e6cc62c6 | 8732 | |
10f2d63a VZ |
8733 | LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8741 | |
e6cc62c6 | 8742 | fi; |
10f2d63a VZ |
8743 | |
8744 | eval "$ac_cv_use_miniframe" | |
8745 | if test "$no_cache" != 1; then | |
8746 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8747 | fi | |
8748 | ||
8749 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8750 | echo "$as_me:$LINENO: result: yes" >&5 |
8751 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8752 | else |
e6cc62c6 VS |
8753 | echo "$as_me:$LINENO: result: no" >&5 |
8754 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8755 | fi |
e6cc62c6 | 8756 | |
10f2d63a | 8757 | |
5005acfe | 8758 | enablestring= |
e6cc62c6 VS |
8759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8760 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8761 | no_cache=0 |
8762 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8763 | if test "${enable_tooltips+set}" = set; then | |
8764 | enableval="$enable_tooltips" | |
e6cc62c6 | 8765 | |
10f2d63a VZ |
8766 | if test "$enableval" = yes; then |
8767 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8768 | else | |
8769 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8770 | fi | |
e6cc62c6 | 8771 | |
10f2d63a | 8772 | else |
e6cc62c6 | 8773 | |
10f2d63a VZ |
8774 | LINE=`grep "wxUSE_TOOLTIPS" ${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_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8782 | |
e6cc62c6 | 8783 | fi; |
10f2d63a VZ |
8784 | |
8785 | eval "$ac_cv_use_tooltips" | |
8786 | if test "$no_cache" != 1; then | |
8787 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8788 | fi | |
8789 | ||
8790 | if test "$wxUSE_TOOLTIPS" = 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}-splines" >&5 |
8801 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8802 | no_cache=0 |
8803 | # Check whether --enable-splines or --disable-splines was given. | |
8804 | if test "${enable_splines+set}" = set; then | |
8805 | enableval="$enable_splines" | |
e6cc62c6 | 8806 | |
10f2d63a VZ |
8807 | if test "$enableval" = yes; then |
8808 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8809 | else | |
8810 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8811 | fi | |
e6cc62c6 | 8812 | |
10f2d63a | 8813 | else |
e6cc62c6 | 8814 | |
10f2d63a VZ |
8815 | LINE=`grep "wxUSE_SPLINES" ${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_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8823 | |
e6cc62c6 | 8824 | fi; |
10f2d63a VZ |
8825 | |
8826 | eval "$ac_cv_use_splines" | |
8827 | if test "$no_cache" != 1; then | |
8828 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8829 | fi | |
8830 | ||
8831 | if test "$wxUSE_SPLINES" = 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}-validators" >&5 |
8842 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8843 | no_cache=0 |
8844 | # Check whether --enable-validators or --disable-validators was given. | |
8845 | if test "${enable_validators+set}" = set; then | |
8846 | enableval="$enable_validators" | |
e6cc62c6 | 8847 | |
10f2d63a VZ |
8848 | if test "$enableval" = yes; then |
8849 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8850 | else | |
8851 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8852 | fi | |
e6cc62c6 | 8853 | |
10f2d63a | 8854 | else |
e6cc62c6 | 8855 | |
10f2d63a VZ |
8856 | LINE=`grep "wxUSE_VALIDATORS" ${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_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8864 | |
e6cc62c6 | 8865 | fi; |
10f2d63a VZ |
8866 | |
8867 | eval "$ac_cv_use_validators" | |
8868 | if test "$no_cache" != 1; then | |
8869 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8870 | fi | |
8871 | ||
8872 | if test "$wxUSE_VALIDATORS" = 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}-busyinfo" >&5 |
8883 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8884 | no_cache=0 |
8885 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8886 | if test "${enable_busyinfo+set}" = set; then | |
8887 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8888 | |
10f2d63a VZ |
8889 | if test "$enableval" = yes; then |
8890 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8891 | else | |
8892 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8893 | fi | |
e6cc62c6 | 8894 | |
10f2d63a | 8895 | else |
e6cc62c6 | 8896 | |
10f2d63a VZ |
8897 | LINE=`grep "wxUSE_BUSYINFO" ${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_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8905 | |
e6cc62c6 | 8906 | fi; |
10f2d63a VZ |
8907 | |
8908 | eval "$ac_cv_use_busyinfo" | |
8909 | if test "$no_cache" != 1; then | |
8910 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8911 | fi | |
8912 | ||
8913 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8914 | echo "$as_me:$LINENO: result: yes" >&5 |
8915 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8916 | else |
e6cc62c6 VS |
8917 | echo "$as_me:$LINENO: result: no" >&5 |
8918 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8919 | fi |
e6cc62c6 | 8920 | |
10f2d63a | 8921 | |
5005acfe | 8922 | enablestring= |
e6cc62c6 VS |
8923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8924 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8925 | no_cache=0 |
8926 | # Check whether --enable-joystick or --disable-joystick was given. | |
8927 | if test "${enable_joystick+set}" = set; then | |
8928 | enableval="$enable_joystick" | |
e6cc62c6 | 8929 | |
f6bcfd97 BP |
8930 | if test "$enableval" = yes; then |
8931 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8932 | else | |
8933 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8934 | fi | |
e6cc62c6 | 8935 | |
f6bcfd97 | 8936 | else |
e6cc62c6 | 8937 | |
f6bcfd97 BP |
8938 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8939 | if test "x$LINE" != x ; then | |
8940 | eval "DEFAULT_$LINE" | |
8941 | else | |
8942 | no_cache=1 | |
8943 | fi | |
8944 | ||
8945 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8946 | |
e6cc62c6 | 8947 | fi; |
f6bcfd97 BP |
8948 | |
8949 | eval "$ac_cv_use_joystick" | |
8950 | if test "$no_cache" != 1; then | |
8951 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8952 | fi | |
8953 | ||
8954 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8955 | echo "$as_me:$LINENO: result: yes" >&5 |
8956 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8957 | else |
e6cc62c6 VS |
8958 | echo "$as_me:$LINENO: result: no" >&5 |
8959 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8960 | fi |
e6cc62c6 | 8961 | |
698dcdb6 | 8962 | |
5005acfe | 8963 | enablestring= |
e6cc62c6 VS |
8964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
8965 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8966 | no_cache=0 |
8967 | # Check whether --enable-metafile or --disable-metafile was given. | |
8968 | if test "${enable_metafile+set}" = set; then | |
8969 | enableval="$enable_metafile" | |
e6cc62c6 | 8970 | |
1e6feb95 VZ |
8971 | if test "$enableval" = yes; then |
8972 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8973 | else | |
8974 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8975 | fi | |
e6cc62c6 | 8976 | |
1e6feb95 | 8977 | else |
e6cc62c6 | 8978 | |
1e6feb95 VZ |
8979 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8980 | if test "x$LINE" != x ; then | |
8981 | eval "DEFAULT_$LINE" | |
8982 | else | |
8983 | no_cache=1 | |
8984 | fi | |
8985 | ||
8986 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 8987 | |
e6cc62c6 | 8988 | fi; |
1e6feb95 VZ |
8989 | |
8990 | eval "$ac_cv_use_metafile" | |
8991 | if test "$no_cache" != 1; then | |
8992 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8993 | fi | |
8994 | ||
8995 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
8996 | echo "$as_me:$LINENO: result: yes" >&5 |
8997 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8998 | else |
e6cc62c6 VS |
8999 | echo "$as_me:$LINENO: result: no" >&5 |
9000 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9001 | fi |
e6cc62c6 | 9002 | |
1e6feb95 | 9003 | |
5005acfe | 9004 | enablestring= |
e6cc62c6 VS |
9005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9006 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9007 | no_cache=0 |
9008 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9009 | if test "${enable_dragimage+set}" = set; then | |
9010 | enableval="$enable_dragimage" | |
e6cc62c6 | 9011 | |
24fd6d87 VZ |
9012 | if test "$enableval" = yes; then |
9013 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9014 | else | |
9015 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9016 | fi | |
e6cc62c6 | 9017 | |
24fd6d87 | 9018 | else |
e6cc62c6 | 9019 | |
24fd6d87 VZ |
9020 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9021 | if test "x$LINE" != x ; then | |
9022 | eval "DEFAULT_$LINE" | |
9023 | else | |
9024 | no_cache=1 | |
9025 | fi | |
9026 | ||
9027 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9028 | |
e6cc62c6 | 9029 | fi; |
24fd6d87 VZ |
9030 | |
9031 | eval "$ac_cv_use_dragimage" | |
9032 | if test "$no_cache" != 1; then | |
9033 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9034 | fi | |
9035 | ||
9036 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9037 | echo "$as_me:$LINENO: result: yes" >&5 |
9038 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9039 | else |
e6cc62c6 VS |
9040 | echo "$as_me:$LINENO: result: no" >&5 |
9041 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9042 | fi |
e6cc62c6 | 9043 | |
52127426 | 9044 | |
7bb2947d | 9045 | enablestring= |
e6cc62c6 VS |
9046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9047 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9048 | no_cache=0 |
9049 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9050 | if test "${enable_accessibility+set}" = set; then | |
9051 | enableval="$enable_accessibility" | |
e6cc62c6 | 9052 | |
7bb2947d MB |
9053 | if test "$enableval" = yes; then |
9054 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9055 | else | |
9056 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9057 | fi | |
e6cc62c6 | 9058 | |
7bb2947d | 9059 | else |
e6cc62c6 | 9060 | |
7bb2947d MB |
9061 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9062 | if test "x$LINE" != x ; then | |
9063 | eval "DEFAULT_$LINE" | |
9064 | else | |
9065 | no_cache=1 | |
9066 | fi | |
9067 | ||
9068 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9069 | |
e6cc62c6 | 9070 | fi; |
7bb2947d MB |
9071 | |
9072 | eval "$ac_cv_use_accessibility" | |
9073 | if test "$no_cache" != 1; then | |
9074 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9075 | fi | |
9076 | ||
9077 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9078 | echo "$as_me:$LINENO: result: yes" >&5 |
9079 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9080 | else |
e6cc62c6 VS |
9081 | echo "$as_me:$LINENO: result: no" >&5 |
9082 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9083 | fi |
e6cc62c6 | 9084 | |
7bb2947d | 9085 | |
8284b0c5 MB |
9086 | |
9087 | ||
5005acfe | 9088 | enablestring= |
e6cc62c6 VS |
9089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9090 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9091 | no_cache=0 |
9092 | # Check whether --enable-palette or --disable-palette was given. | |
9093 | if test "${enable_palette+set}" = set; then | |
9094 | enableval="$enable_palette" | |
e6cc62c6 | 9095 | |
edae8572 VZ |
9096 | if test "$enableval" = yes; then |
9097 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9098 | else | |
9099 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9100 | fi | |
e6cc62c6 | 9101 | |
edae8572 | 9102 | else |
e6cc62c6 | 9103 | |
edae8572 VZ |
9104 | LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9112 | |
e6cc62c6 | 9113 | fi; |
edae8572 VZ |
9114 | |
9115 | eval "$ac_cv_use_palette" | |
9116 | if test "$no_cache" != 1; then | |
9117 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9118 | fi | |
9119 | ||
9120 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9121 | echo "$as_me:$LINENO: result: yes" >&5 |
9122 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9123 | else |
e6cc62c6 VS |
9124 | echo "$as_me:$LINENO: result: no" >&5 |
9125 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9126 | fi |
e6cc62c6 | 9127 | |
edae8572 | 9128 | |
5005acfe | 9129 | enablestring= |
e6cc62c6 VS |
9130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9131 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9132 | no_cache=0 |
9133 | # Check whether --enable-image or --disable-image was given. | |
9134 | if test "${enable_image+set}" = set; then | |
9135 | enableval="$enable_image" | |
e6cc62c6 | 9136 | |
0046ff7c VS |
9137 | if test "$enableval" = yes; then |
9138 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9139 | else | |
9140 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9141 | fi | |
e6cc62c6 | 9142 | |
0046ff7c | 9143 | else |
e6cc62c6 | 9144 | |
0046ff7c VS |
9145 | LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9153 | |
e6cc62c6 | 9154 | fi; |
0046ff7c VS |
9155 | |
9156 | eval "$ac_cv_use_image" | |
9157 | if test "$no_cache" != 1; then | |
9158 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9159 | fi | |
9160 | ||
9161 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9162 | echo "$as_me:$LINENO: result: yes" >&5 |
9163 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9164 | else |
e6cc62c6 VS |
9165 | echo "$as_me:$LINENO: result: no" >&5 |
9166 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9167 | fi |
e6cc62c6 | 9168 | |
0046ff7c | 9169 | |
5005acfe | 9170 | enablestring= |
e6cc62c6 VS |
9171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9172 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9173 | no_cache=0 |
9174 | # Check whether --enable-gif or --disable-gif was given. | |
9175 | if test "${enable_gif+set}" = set; then | |
9176 | enableval="$enable_gif" | |
e6cc62c6 | 9177 | |
10f2d63a VZ |
9178 | if test "$enableval" = yes; then |
9179 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9180 | else | |
9181 | ac_cv_use_gif='wxUSE_GIF=no' | |
9182 | fi | |
e6cc62c6 | 9183 | |
10f2d63a | 9184 | else |
e6cc62c6 | 9185 | |
10f2d63a VZ |
9186 | LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9194 | |
e6cc62c6 | 9195 | fi; |
10f2d63a VZ |
9196 | |
9197 | eval "$ac_cv_use_gif" | |
9198 | if test "$no_cache" != 1; then | |
9199 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9200 | fi | |
9201 | ||
9202 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9203 | echo "$as_me:$LINENO: result: yes" >&5 |
9204 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9205 | else |
e6cc62c6 VS |
9206 | echo "$as_me:$LINENO: result: no" >&5 |
9207 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9208 | fi |
e6cc62c6 | 9209 | |
10f2d63a | 9210 | |
5005acfe | 9211 | enablestring= |
e6cc62c6 VS |
9212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9213 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9214 | no_cache=0 |
9215 | # Check whether --enable-pcx or --disable-pcx was given. | |
9216 | if test "${enable_pcx+set}" = set; then | |
9217 | enableval="$enable_pcx" | |
e6cc62c6 | 9218 | |
10f2d63a VZ |
9219 | if test "$enableval" = yes; then |
9220 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9221 | else | |
9222 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9223 | fi | |
e6cc62c6 | 9224 | |
10f2d63a | 9225 | else |
e6cc62c6 | 9226 | |
10f2d63a VZ |
9227 | LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9235 | |
e6cc62c6 | 9236 | fi; |
10f2d63a VZ |
9237 | |
9238 | eval "$ac_cv_use_pcx" | |
9239 | if test "$no_cache" != 1; then | |
9240 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9241 | fi | |
9242 | ||
9243 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9244 | echo "$as_me:$LINENO: result: yes" >&5 |
9245 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9246 | else |
e6cc62c6 VS |
9247 | echo "$as_me:$LINENO: result: no" >&5 |
9248 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9249 | fi |
e6cc62c6 | 9250 | |
10f2d63a | 9251 | |
5005acfe | 9252 | enablestring= |
e6cc62c6 VS |
9253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9254 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9255 | no_cache=0 |
9256 | # Check whether --enable-iff or --disable-iff was given. | |
9257 | if test "${enable_iff+set}" = set; then | |
9258 | enableval="$enable_iff" | |
e6cc62c6 | 9259 | |
4b6b4dfc RR |
9260 | if test "$enableval" = yes; then |
9261 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9262 | else | |
9263 | ac_cv_use_iff='wxUSE_IFF=no' | |
9264 | fi | |
e6cc62c6 | 9265 | |
4b6b4dfc | 9266 | else |
e6cc62c6 | 9267 | |
4b6b4dfc RR |
9268 | LINE=`grep "wxUSE_IFF" ${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_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9276 | |
e6cc62c6 | 9277 | fi; |
4b6b4dfc RR |
9278 | |
9279 | eval "$ac_cv_use_iff" | |
9280 | if test "$no_cache" != 1; then | |
9281 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9282 | fi | |
9283 | ||
9284 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9285 | echo "$as_me:$LINENO: result: yes" >&5 |
9286 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9287 | else |
e6cc62c6 VS |
9288 | echo "$as_me:$LINENO: result: no" >&5 |
9289 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9290 | fi |
e6cc62c6 | 9291 | |
4b6b4dfc | 9292 | |
5005acfe | 9293 | enablestring= |
e6cc62c6 VS |
9294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9295 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9296 | no_cache=0 |
9297 | # Check whether --enable-pnm or --disable-pnm was given. | |
9298 | if test "${enable_pnm+set}" = set; then | |
9299 | enableval="$enable_pnm" | |
e6cc62c6 | 9300 | |
10f2d63a VZ |
9301 | if test "$enableval" = yes; then |
9302 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9303 | else | |
9304 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9305 | fi | |
e6cc62c6 | 9306 | |
10f2d63a | 9307 | else |
e6cc62c6 | 9308 | |
10f2d63a VZ |
9309 | LINE=`grep "wxUSE_PNM" ${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_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9317 | |
e6cc62c6 | 9318 | fi; |
10f2d63a VZ |
9319 | |
9320 | eval "$ac_cv_use_pnm" | |
9321 | if test "$no_cache" != 1; then | |
9322 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9323 | fi | |
9324 | ||
9325 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9326 | echo "$as_me:$LINENO: result: yes" >&5 |
9327 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9328 | else |
e6cc62c6 VS |
9329 | echo "$as_me:$LINENO: result: no" >&5 |
9330 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9331 | fi |
e6cc62c6 | 9332 | |
10f2d63a | 9333 | |
5005acfe | 9334 | enablestring= |
e6cc62c6 VS |
9335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9336 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9337 | no_cache=0 |
69d27ff7 MB |
9338 | # Check whether --enable-xpm or --disable-xpm was given. |
9339 | if test "${enable_xpm+set}" = set; then | |
9340 | enableval="$enable_xpm" | |
e6cc62c6 | 9341 | |
0046ff7c | 9342 | if test "$enableval" = yes; then |
69d27ff7 | 9343 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9344 | else |
69d27ff7 | 9345 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9346 | fi |
e6cc62c6 | 9347 | |
0046ff7c | 9348 | else |
e6cc62c6 | 9349 | |
0046ff7c VS |
9350 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9351 | if test "x$LINE" != x ; then | |
9352 | eval "DEFAULT_$LINE" | |
9353 | else | |
9354 | no_cache=1 | |
9355 | fi | |
9356 | ||
69d27ff7 | 9357 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9358 | |
e6cc62c6 | 9359 | fi; |
0046ff7c | 9360 | |
69d27ff7 | 9361 | eval "$ac_cv_use_xpm" |
0046ff7c | 9362 | if test "$no_cache" != 1; then |
69d27ff7 | 9363 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9364 | fi |
9365 | ||
9366 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9367 | echo "$as_me:$LINENO: result: yes" >&5 |
9368 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9369 | else |
e6cc62c6 VS |
9370 | echo "$as_me:$LINENO: result: no" >&5 |
9371 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9372 | fi |
e6cc62c6 | 9373 | |
0046ff7c | 9374 | |
5005acfe | 9375 | enablestring= |
e6cc62c6 VS |
9376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9377 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9378 | no_cache=0 |
c7206e64 VS |
9379 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9380 | if test "${enable_ico_cur+set}" = set; then | |
9381 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9382 | |
658974ae | 9383 | if test "$enableval" = yes; then |
c7206e64 | 9384 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9385 | else |
c7206e64 | 9386 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9387 | fi |
e6cc62c6 | 9388 | |
658974ae | 9389 | else |
e6cc62c6 | 9390 | |
658974ae VS |
9391 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9392 | if test "x$LINE" != x ; then | |
9393 | eval "DEFAULT_$LINE" | |
9394 | else | |
9395 | no_cache=1 | |
9396 | fi | |
9397 | ||
c7206e64 | 9398 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9399 | |
e6cc62c6 | 9400 | fi; |
658974ae | 9401 | |
c7206e64 | 9402 | eval "$ac_cv_use_ico_cur" |
658974ae | 9403 | if test "$no_cache" != 1; then |
c7206e64 | 9404 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9405 | fi |
9406 | ||
9407 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9408 | echo "$as_me:$LINENO: result: yes" >&5 |
9409 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9410 | else |
e6cc62c6 VS |
9411 | echo "$as_me:$LINENO: result: no" >&5 |
9412 | echo "${ECHO_T}no" >&6 | |
658974ae | 9413 | fi |
e6cc62c6 | 9414 | |
658974ae | 9415 | |
b12915c1 VZ |
9416 | fi |
9417 | ||
029b47ad VS |
9418 | |
9419 | ||
9420 | enablestring= | |
9421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9422 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9423 | no_cache=0 | |
9424 | # Check whether --enable-official_build or --disable-official_build was given. | |
9425 | if test "${enable_official_build+set}" = set; then | |
9426 | enableval="$enable_official_build" | |
9427 | ||
9428 | if test "$enableval" = yes; then | |
9429 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9430 | else | |
9431 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9432 | fi | |
9433 | ||
9434 | else | |
9435 | ||
9436 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9437 | if test "x$LINE" != x ; then | |
9438 | eval "DEFAULT_$LINE" | |
9439 | else | |
9440 | no_cache=1 | |
9441 | fi | |
9442 | ||
9443 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9444 | ||
9445 | fi; | |
9446 | ||
9447 | eval "$ac_cv_use_official_build" | |
9448 | if test "$no_cache" != 1; then | |
9449 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9450 | fi | |
9451 | ||
9452 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9453 | echo "$as_me:$LINENO: result: yes" >&5 | |
9454 | echo "${ECHO_T}yes" >&6 | |
9455 | else | |
9456 | echo "$as_me:$LINENO: result: no" >&5 | |
9457 | echo "${ECHO_T}no" >&6 | |
9458 | fi | |
9459 | ||
9460 | # Check whether --enable-vendor or --disable-vendor was given. | |
9461 | if test "${enable_vendor+set}" = set; then | |
9462 | enableval="$enable_vendor" | |
9463 | VENDOR="$enableval" | |
9464 | fi; | |
9465 | if test "x$VENDOR" = "x"; then | |
9466 | VENDOR="custom" | |
9467 | fi | |
9468 | ||
d558c907 VS |
9469 | case "${host}" in |
9470 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9471 | PATH_IFS=';' |
d558c907 VS |
9472 | ;; |
9473 | *) | |
9474 | PATH_IFS=':' | |
d558c907 VS |
9475 | ;; |
9476 | esac | |
9477 | ||
8284b0c5 MB |
9478 | |
9479 | ||
10f2d63a VZ |
9480 | echo "saving argument cache $wx_arg_cache_file" |
9481 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9482 | |
8284b0c5 | 9483 | |
e6cc62c6 VS |
9484 | |
9485 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9486 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9487 | |
9488 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9489 | if test "$wxUSE_WINE" = "yes"; then | |
9490 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9491 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9492 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9493 | fi | |
10f2d63a VZ |
9494 | |
9495 | if test "$wxUSE_GUI" = "yes"; then | |
9496 | ||
3a922bb4 | 9497 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9498 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9499 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9500 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9501 | fi |
b12915c1 | 9502 | |
3a922bb4 RL |
9503 | if test "$TOOLKIT_GIVEN" = 1; then |
9504 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9505 | var=wxUSE_$toolkit | |
9506 | eval "value=\$${var}" | |
9507 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9508 | done | |
10f2d63a | 9509 | else |
3a922bb4 RL |
9510 | for toolkit in `echo $ALL_TOOLKITS`; do |
9511 | if test "$has_toolkit_in_cache" != 1; then | |
9512 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9513 | else | |
9514 | var=DEFAULT_wxUSE_$toolkit | |
9515 | fi | |
9516 | eval "wxUSE_$toolkit=\$${var}" | |
9517 | done | |
10f2d63a | 9518 | fi |
10f2d63a | 9519 | |
ac0c4cc3 DE |
9520 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9521 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9522 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9523 | |
d558c907 | 9524 | case "${host}" in |
6fa882bd | 9525 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9526 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9527 | esac |
10f2d63a | 9528 | |
3a922bb4 RL |
9529 | case "$NUM_TOOLKITS" in |
9530 | 1) | |
9531 | ;; | |
9532 | 0) | |
e6cc62c6 VS |
9533 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9534 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9535 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9536 | ;; |
9537 | *) | |
e6cc62c6 VS |
9538 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9539 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9540 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9541 | esac |
10f2d63a | 9542 | |
3a922bb4 RL |
9543 | for toolkit in `echo $ALL_TOOLKITS`; do |
9544 | var=wxUSE_$toolkit | |
9545 | eval "value=\$${var}" | |
9546 | if test "x$value" != x; then | |
9547 | cache_var=CACHE_$toolkit | |
9548 | eval "cache=\$${cache_var}" | |
9549 | if test "$cache" = 1; then | |
9550 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9551 | fi | |
9552 | if test "$value" = 1; then | |
9553 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9554 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9555 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9556 | fi |
9557 | fi | |
9558 | done | |
10f2d63a | 9559 | else |
9de9b8f0 VZ |
9560 | if test "x$host_alias" != "x"; then |
9561 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9562 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9563 | else |
9564 | echo "$as_me:$LINENO: result: base only" >&5 | |
9565 | echo "${ECHO_T}base only" >&6 | |
9566 | fi | |
10f2d63a VZ |
9567 | fi |
9568 | ||
43d99b6d VS |
9569 | wants_win32=0 |
9570 | doesnt_want_win32=0 | |
17234b26 MB |
9571 | case "${host}" in |
9572 | *-*-cygwin*) | |
9573 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9574 | wants_win32=1 |
9575 | else | |
9576 | doesnt_want_win32=1 | |
17234b26 MB |
9577 | fi |
9578 | ;; | |
9579 | *-*-mingw*) | |
43d99b6d | 9580 | wants_win32=1 |
17234b26 MB |
9581 | ;; |
9582 | esac | |
9583 | ||
89e6bf6d VZ |
9584 | if test "$wxUSE_WINE" = "yes"; then |
9585 | wants_win32=1 | |
9586 | CC=winegcc | |
9587 | CXX=wineg++ | |
9588 | RESCOMP=wrc | |
9589 | fi | |
9590 | ||
43d99b6d | 9591 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9592 | USE_UNIX=0 |
9593 | USE_WIN32=1 | |
e6cc62c6 | 9594 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9595 | #define __WIN32__ 1 |
e6cc62c6 | 9596 | _ACEOF |
17234b26 | 9597 | |
e6cc62c6 | 9598 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9599 | #define __WIN95__ 1 |
e6cc62c6 | 9600 | _ACEOF |
17234b26 | 9601 | |
e6cc62c6 | 9602 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9603 | #define __WINDOWS__ 1 |
e6cc62c6 | 9604 | _ACEOF |
17234b26 | 9605 | |
e6cc62c6 | 9606 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9607 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9608 | _ACEOF |
17234b26 | 9609 | |
e6cc62c6 | 9610 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9611 | #define STRICT 1 |
e6cc62c6 | 9612 | _ACEOF |
17234b26 | 9613 | |
e6cc62c6 | 9614 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9615 | #define WINVER 0x0400 |
e6cc62c6 | 9616 | _ACEOF |
17234b26 | 9617 | |
43d99b6d VS |
9618 | fi |
9619 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9620 | USE_UNIX=1 |
9621 | USE_WIN32=0 | |
9622 | fi | |
9623 | ||
9624 | if test "$USE_UNIX" = 1 ; then | |
9625 | wxUSE_UNIX=yes | |
e6cc62c6 | 9626 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9627 | #define __UNIX__ 1 |
e6cc62c6 | 9628 | _ACEOF |
17234b26 MB |
9629 | |
9630 | fi | |
9631 | ||
8284b0c5 | 9632 | |
e6cc62c6 | 9633 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9634 | # This file is a shell script that caches the results of configure |
9635 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9636 | # scripts and configure runs, see configure's option --config-cache. |
9637 | # It is not useful on other systems. If it contains results you don't | |
9638 | # want to keep, you may remove or edit it. | |
10f2d63a | 9639 | # |
e6cc62c6 VS |
9640 | # config.status only pays attention to the cache file if you give it |
9641 | # the --recheck option to rerun configure. | |
10f2d63a | 9642 | # |
e6cc62c6 VS |
9643 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9644 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9645 | # following values. | |
9646 | ||
9647 | _ACEOF | |
9648 | ||
10f2d63a VZ |
9649 | # The following way of writing the cache mishandles newlines in values, |
9650 | # but we know of no workaround that is simple, portable, and efficient. | |
9651 | # So, don't put newlines in cache variables' values. | |
9652 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9653 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9654 | { |
9655 | (set) 2>&1 | | |
9656 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9657 | *ac_space=\ *) | |
9658 | # `set' does not quote correctly, so add quotes (double-quote | |
9659 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9660 | sed -n \ | |
9661 | "s/'/'\\\\''/g; | |
9662 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9663 | ;; | |
9664 | *) | |
9665 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9666 | sed -n \ | |
9667 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9668 | ;; | |
9669 | esac; | |
9670 | } | | |
9671 | sed ' | |
9672 | t clear | |
9673 | : clear | |
9674 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9675 | t end | |
9676 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9677 | : end' >>confcache | |
9678 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9679 | if test -w $cache_file; then |
e6cc62c6 VS |
9680 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9681 | cat confcache >$cache_file | |
10f2d63a VZ |
9682 | else |
9683 | echo "not updating unwritable cache $cache_file" | |
9684 | fi | |
9685 | fi | |
9686 | rm -f confcache | |
9687 | ||
e59890c3 | 9688 | if test "$build" != "$host" ; then |
9d353d4a | 9689 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9690 | CC=$host_alias-gcc |
9691 | CXX=$host_alias-c++ | |
9692 | AR=$host_alias-ar | |
9693 | RANLIB=$host_alias-ranlib | |
9694 | DLLTOOL=$host_alias-dlltool | |
9695 | RESCOMP=$host_alias-windres | |
9696 | LD=$host_alias-ld | |
9697 | NM=$host_alias-nm | |
9698 | STRIP=$host_alias-strip | |
9699 | else | |
e6cc62c6 VS |
9700 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9701 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9702 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9703 | fi |
10f2d63a VZ |
9704 | fi |
9705 | ||
ec603395 | 9706 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9707 | ac_ext=c |
9708 | ac_cpp='$CPP $CPPFLAGS' | |
9709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9712 | if test -n "$ac_tool_prefix"; then | |
9713 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9714 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9715 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9717 | if test "${ac_cv_prog_CC+set}" = set; then | |
9718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9719 | else | |
9720 | if test -n "$CC"; then | |
9721 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9722 | else | |
9723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9724 | for as_dir in $PATH | |
9725 | do | |
9726 | IFS=$as_save_IFS | |
9727 | test -z "$as_dir" && as_dir=. | |
9728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9729 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9730 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9732 | break 2 | |
9733 | fi | |
9734 | done | |
9735 | done | |
9736 | ||
9737 | fi | |
9738 | fi | |
9739 | CC=$ac_cv_prog_CC | |
9740 | if test -n "$CC"; then | |
9741 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9742 | echo "${ECHO_T}$CC" >&6 | |
9743 | else | |
9744 | echo "$as_me:$LINENO: result: no" >&5 | |
9745 | echo "${ECHO_T}no" >&6 | |
9746 | fi | |
9747 | ||
9748 | fi | |
9749 | if test -z "$ac_cv_prog_CC"; then | |
9750 | ac_ct_CC=$CC | |
9751 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9752 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9755 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9757 | else | |
9758 | if test -n "$ac_ct_CC"; then | |
9759 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9760 | else | |
9761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9762 | for as_dir in $PATH | |
9763 | do | |
9764 | IFS=$as_save_IFS | |
9765 | test -z "$as_dir" && as_dir=. | |
9766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9768 | ac_cv_prog_ac_ct_CC="gcc" | |
9769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9770 | break 2 | |
9771 | fi | |
9772 | done | |
9773 | done | |
9774 | ||
9775 | fi | |
9776 | fi | |
9777 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9778 | if test -n "$ac_ct_CC"; then | |
9779 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9780 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9781 | else | |
9782 | echo "$as_me:$LINENO: result: no" >&5 | |
9783 | echo "${ECHO_T}no" >&6 | |
9784 | fi | |
9785 | ||
9786 | CC=$ac_ct_CC | |
9787 | else | |
9788 | CC="$ac_cv_prog_CC" | |
9789 | fi | |
9790 | ||
9791 | if test -z "$CC"; then | |
9792 | if test -n "$ac_tool_prefix"; then | |
9793 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9794 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9795 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9797 | if test "${ac_cv_prog_CC+set}" = set; then | |
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9799 | else |
9800 | if test -n "$CC"; then | |
9801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9802 | else |
e6cc62c6 VS |
9803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9804 | for as_dir in $PATH | |
9805 | do | |
9806 | IFS=$as_save_IFS | |
9807 | test -z "$as_dir" && as_dir=. | |
9808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9810 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9812 | break 2 | |
9813 | fi | |
9814 | done | |
9815 | done | |
9816 | ||
10f2d63a | 9817 | fi |
6232543b | 9818 | fi |
e6cc62c6 | 9819 | CC=$ac_cv_prog_CC |
6232543b | 9820 | if test -n "$CC"; then |
e6cc62c6 VS |
9821 | echo "$as_me:$LINENO: result: $CC" >&5 |
9822 | echo "${ECHO_T}$CC" >&6 | |
9823 | else | |
9824 | echo "$as_me:$LINENO: result: no" >&5 | |
9825 | echo "${ECHO_T}no" >&6 | |
9826 | fi | |
9827 | ||
9828 | fi | |
9829 | if test -z "$ac_cv_prog_CC"; then | |
9830 | ac_ct_CC=$CC | |
9831 | # Extract the first word of "cc", so it can be a program name with args. | |
9832 | set dummy cc; ac_word=$2 | |
9833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9835 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9837 | else | |
9838 | if test -n "$ac_ct_CC"; then | |
9839 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9840 | else | |
9841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9842 | for as_dir in $PATH | |
9843 | do | |
9844 | IFS=$as_save_IFS | |
9845 | test -z "$as_dir" && as_dir=. | |
9846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9847 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9848 | ac_cv_prog_ac_ct_CC="cc" | |
9849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9850 | break 2 | |
9851 | fi | |
9852 | done | |
9853 | done | |
9854 | ||
9855 | fi | |
9856 | fi | |
9857 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9858 | if test -n "$ac_ct_CC"; then | |
9859 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9860 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9861 | else | |
9862 | echo "$as_me:$LINENO: result: no" >&5 | |
9863 | echo "${ECHO_T}no" >&6 | |
9864 | fi | |
9865 | ||
9866 | CC=$ac_ct_CC | |
247f5006 | 9867 | else |
e6cc62c6 | 9868 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9869 | fi |
9870 | ||
e6cc62c6 | 9871 | fi |
5c6fa7d2 RR |
9872 | if test -z "$CC"; then |
9873 | # Extract the first word of "cc", so it can be a program name with args. | |
9874 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9877 | if test "${ac_cv_prog_CC+set}" = set; then | |
9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9879 | else |
9880 | if test -n "$CC"; then | |
9881 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9882 | else | |
9883 | ac_prog_rejected=no | |
e6cc62c6 VS |
9884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9885 | for as_dir in $PATH | |
9886 | do | |
9887 | IFS=$as_save_IFS | |
9888 | test -z "$as_dir" && as_dir=. | |
9889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9891 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9892 | ac_prog_rejected=yes | |
9893 | continue | |
9894 | fi | |
9895 | ac_cv_prog_CC="cc" | |
9896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9897 | break 2 | |
9898 | fi | |
9899 | done | |
9900 | done | |
9901 | ||
328a083c RR |
9902 | if test $ac_prog_rejected = yes; then |
9903 | # We found a bogon in the path, so make sure we never use it. | |
9904 | set dummy $ac_cv_prog_CC | |
9905 | shift | |
e6cc62c6 | 9906 | if test $# != 0; then |
328a083c | 9907 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9908 | # However, it has the same basename, so the bogon will be chosen |
9909 | # first if we set CC to just the basename; use the full file name. | |
9910 | shift | |
e6cc62c6 | 9911 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9912 | fi |
1e487827 VS |
9913 | fi |
9914 | fi | |
9915 | fi | |
e6cc62c6 | 9916 | CC=$ac_cv_prog_CC |
1e487827 | 9917 | if test -n "$CC"; then |
e6cc62c6 VS |
9918 | echo "$as_me:$LINENO: result: $CC" >&5 |
9919 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9920 | else |
e6cc62c6 VS |
9921 | echo "$as_me:$LINENO: result: no" >&5 |
9922 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9923 | fi |
1e487827 | 9924 | |
e6cc62c6 VS |
9925 | fi |
9926 | if test -z "$CC"; then | |
9927 | if test -n "$ac_tool_prefix"; then | |
9928 | for ac_prog in cl | |
9929 | do | |
9930 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9931 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9934 | if test "${ac_cv_prog_CC+set}" = set; then | |
9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9936 | else |
9937 | if test -n "$CC"; then | |
9938 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9939 | else | |
e6cc62c6 VS |
9940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9941 | for as_dir in $PATH | |
9942 | do | |
9943 | IFS=$as_save_IFS | |
9944 | test -z "$as_dir" && as_dir=. | |
9945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9947 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9949 | break 2 | |
9950 | fi | |
9951 | done | |
9952 | done | |
9953 | ||
f09359cf VS |
9954 | fi |
9955 | fi | |
e6cc62c6 | 9956 | CC=$ac_cv_prog_CC |
f09359cf | 9957 | if test -n "$CC"; then |
e6cc62c6 VS |
9958 | echo "$as_me:$LINENO: result: $CC" >&5 |
9959 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9960 | else |
e6cc62c6 VS |
9961 | echo "$as_me:$LINENO: result: no" >&5 |
9962 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9963 | fi |
1e487827 | 9964 | |
e6cc62c6 VS |
9965 | test -n "$CC" && break |
9966 | done | |
9967 | fi | |
9968 | if test -z "$CC"; then | |
9969 | ac_ct_CC=$CC | |
9970 | for ac_prog in cl | |
9971 | do | |
9972 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9973 | set dummy $ac_prog; ac_word=$2 | |
9974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9976 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9978 | else | |
9979 | if test -n "$ac_ct_CC"; then | |
9980 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9981 | else | |
9982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9983 | for as_dir in $PATH | |
9984 | do | |
9985 | IFS=$as_save_IFS | |
9986 | test -z "$as_dir" && as_dir=. | |
9987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9989 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9991 | break 2 | |
9992 | fi | |
9993 | done | |
9994 | done | |
f09359cf | 9995 | |
e6cc62c6 VS |
9996 | fi |
9997 | fi | |
9998 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9999 | if test -n "$ac_ct_CC"; then | |
10000 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10001 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10002 | else | |
10003 | echo "$as_me:$LINENO: result: no" >&5 | |
10004 | echo "${ECHO_T}no" >&6 | |
10005 | fi | |
f09359cf | 10006 | |
e6cc62c6 VS |
10007 | test -n "$ac_ct_CC" && break |
10008 | done | |
247f5006 | 10009 | |
e6cc62c6 VS |
10010 | CC=$ac_ct_CC |
10011 | fi | |
10012 | ||
10013 | fi | |
10014 | ||
10015 | ||
10016 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10017 | See \`config.log' for more details." >&5 | |
10018 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10019 | See \`config.log' for more details." >&2;} | |
10020 | { (exit 1); exit 1; }; } | |
10021 | ||
10022 | # Provide some information about the compiler. | |
10023 | echo "$as_me:$LINENO:" \ | |
10024 | "checking for C compiler version" >&5 | |
10025 | ac_compiler=`set X $ac_compile; echo $2` | |
10026 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10027 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10028 | ac_status=$? | |
10029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10030 | (exit $ac_status); } | |
10031 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10032 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10033 | ac_status=$? | |
10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10035 | (exit $ac_status); } | |
10036 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10037 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10038 | ac_status=$? | |
10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10040 | (exit $ac_status); } | |
10041 | ||
10042 | cat >conftest.$ac_ext <<_ACEOF | |
10043 | #line $LINENO "configure" | |
10044 | /* confdefs.h. */ | |
10045 | _ACEOF | |
10046 | cat confdefs.h >>conftest.$ac_ext | |
10047 | cat >>conftest.$ac_ext <<_ACEOF | |
10048 | /* end confdefs.h. */ | |
10049 | ||
10050 | int | |
10051 | main () | |
10052 | { | |
247f5006 | 10053 | |
e6cc62c6 VS |
10054 | ; |
10055 | return 0; | |
10056 | } | |
10057 | _ACEOF | |
10058 | ac_clean_files_save=$ac_clean_files | |
10059 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10060 | # Try to create an executable without -o first, disregard a.out. | |
10061 | # It will help us diagnose broken compilers, and finding out an intuition | |
10062 | # of exeext. | |
10063 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10064 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10065 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10066 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10067 | (eval $ac_link_default) 2>&5 | |
10068 | ac_status=$? | |
10069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10070 | (exit $ac_status); }; then | |
10071 | # Find the output, starting from the most likely. This scheme is | |
10072 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10073 | # resort. | |
10074 | ||
10075 | # Be careful to initialize this variable, since it used to be cached. | |
10076 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10077 | ac_cv_exeext= | |
10078 | # b.out is created by i960 compilers. | |
10079 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10080 | do | |
10081 | test -f "$ac_file" || continue | |
10082 | case $ac_file in | |
10083 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10084 | ;; | |
10085 | conftest.$ac_ext ) | |
10086 | # This is the source file. | |
10087 | ;; | |
10088 | [ab].out ) | |
10089 | # We found the default executable, but exeext='' is most | |
10090 | # certainly right. | |
10091 | break;; | |
10092 | *.* ) | |
10093 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10094 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10095 | # but it would be cool to find out if it's true. Does anybody | |
10096 | # maintain Libtool? --akim. | |
10097 | export ac_cv_exeext | |
10098 | break;; | |
10099 | * ) | |
10100 | break;; | |
10101 | esac | |
10102 | done | |
10103 | else | |
10104 | echo "$as_me: failed program was:" >&5 | |
10105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10106 | ||
10107 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10108 | See \`config.log' for more details." >&5 | |
10109 | echo "$as_me: error: C compiler cannot create executables | |
10110 | See \`config.log' for more details." >&2;} | |
10111 | { (exit 77); exit 77; }; } | |
10112 | fi | |
10113 | ||
10114 | ac_exeext=$ac_cv_exeext | |
10115 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10116 | echo "${ECHO_T}$ac_file" >&6 | |
10117 | ||
10118 | # Check the compiler produces executables we can run. If not, either | |
10119 | # the compiler is broken, or we cross compile. | |
10120 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10121 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10122 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10123 | # If not cross compiling, check that we can run a simple program. | |
10124 | if test "$cross_compiling" != yes; then | |
10125 | if { ac_try='./$ac_file' | |
10126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10127 | (eval $ac_try) 2>&5 | |
10128 | ac_status=$? | |
10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10130 | (exit $ac_status); }; }; then | |
10131 | cross_compiling=no | |
698dcdb6 | 10132 | else |
e6cc62c6 VS |
10133 | if test "$cross_compiling" = maybe; then |
10134 | cross_compiling=yes | |
10135 | else | |
10136 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10137 | If you meant to cross compile, use \`--host'. | |
10138 | See \`config.log' for more details." >&5 | |
10139 | echo "$as_me: error: cannot run C compiled programs. | |
10140 | If you meant to cross compile, use \`--host'. | |
10141 | See \`config.log' for more details." >&2;} | |
10142 | { (exit 1); exit 1; }; } | |
10143 | fi | |
698dcdb6 | 10144 | fi |
52127426 | 10145 | fi |
e6cc62c6 VS |
10146 | echo "$as_me:$LINENO: result: yes" >&5 |
10147 | echo "${ECHO_T}yes" >&6 | |
10148 | ||
10149 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10150 | ac_clean_files=$ac_clean_files_save | |
10151 | # Check the compiler produces executables we can run. If not, either | |
10152 | # the compiler is broken, or we cross compile. | |
10153 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10154 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10155 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10156 | echo "${ECHO_T}$cross_compiling" >&6 | |
10157 | ||
10158 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10159 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10161 | (eval $ac_link) 2>&5 | |
10162 | ac_status=$? | |
10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10164 | (exit $ac_status); }; then | |
10165 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10166 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10167 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10168 | # `rm'. | |
10169 | for ac_file in conftest.exe conftest conftest.*; do | |
10170 | test -f "$ac_file" || continue | |
10171 | case $ac_file in | |
10172 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10173 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10174 | export ac_cv_exeext | |
10175 | break;; | |
10176 | * ) break;; | |
10177 | esac | |
10178 | done | |
5c6fa7d2 | 10179 | else |
e6cc62c6 VS |
10180 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10181 | See \`config.log' for more details." >&5 | |
10182 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10183 | See \`config.log' for more details." >&2;} | |
10184 | { (exit 1); exit 1; }; } | |
10185 | fi | |
10186 | ||
10187 | rm -f conftest$ac_cv_exeext | |
10188 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10189 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10190 | ||
10191 | rm -f conftest.$ac_ext | |
10192 | EXEEXT=$ac_cv_exeext | |
10193 | ac_exeext=$EXEEXT | |
10194 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10195 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10196 | if test "${ac_cv_objext+set}" = set; then | |
10197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10198 | else | |
10199 | cat >conftest.$ac_ext <<_ACEOF | |
10200 | #line $LINENO "configure" | |
10201 | /* confdefs.h. */ | |
10202 | _ACEOF | |
10203 | cat confdefs.h >>conftest.$ac_ext | |
10204 | cat >>conftest.$ac_ext <<_ACEOF | |
10205 | /* end confdefs.h. */ | |
10206 | ||
10207 | int | |
10208 | main () | |
10209 | { | |
f09359cf | 10210 | |
e6cc62c6 VS |
10211 | ; |
10212 | return 0; | |
10213 | } | |
10214 | _ACEOF | |
10215 | rm -f conftest.o conftest.obj | |
10216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10217 | (eval $ac_compile) 2>&5 | |
10218 | ac_status=$? | |
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10220 | (exit $ac_status); }; then | |
10221 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10222 | case $ac_file in | |
10223 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10224 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10225 | break;; | |
10226 | esac | |
10227 | done | |
a0b9e27f | 10228 | else |
e6cc62c6 VS |
10229 | echo "$as_me: failed program was:" >&5 |
10230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10231 | ||
10232 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10233 | See \`config.log' for more details." >&5 | |
10234 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10235 | See \`config.log' for more details." >&2;} | |
10236 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10237 | fi |
247f5006 | 10238 | |
e6cc62c6 VS |
10239 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10240 | fi | |
10241 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10242 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10243 | OBJEXT=$ac_cv_objext | |
10244 | ac_objext=$OBJEXT | |
10245 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10246 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10247 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10249 | else |
e6cc62c6 VS |
10250 | cat >conftest.$ac_ext <<_ACEOF |
10251 | #line $LINENO "configure" | |
10252 | /* confdefs.h. */ | |
10253 | _ACEOF | |
10254 | cat confdefs.h >>conftest.$ac_ext | |
10255 | cat >>conftest.$ac_ext <<_ACEOF | |
10256 | /* end confdefs.h. */ | |
10257 | ||
10258 | int | |
10259 | main () | |
10260 | { | |
10261 | #ifndef __GNUC__ | |
10262 | choke me | |
10263 | #endif | |
10264 | ||
10265 | ; | |
10266 | return 0; | |
10267 | } | |
10268 | _ACEOF | |
10269 | rm -f conftest.$ac_objext | |
10270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10271 | (eval $ac_compile) 2>&5 | |
10272 | ac_status=$? | |
10273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10274 | (exit $ac_status); } && | |
10275 | { ac_try='test -s conftest.$ac_objext' | |
10276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10277 | (eval $ac_try) 2>&5 | |
10278 | ac_status=$? | |
10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10280 | (exit $ac_status); }; }; then | |
10281 | ac_compiler_gnu=yes | |
10282 | else | |
10283 | echo "$as_me: failed program was:" >&5 | |
10284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10285 | ||
10286 | ac_compiler_gnu=no | |
10287 | fi | |
10288 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10289 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10290 | ||
10291 | fi | |
10292 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10293 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10294 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10295 | ac_test_CFLAGS=${CFLAGS+set} | |
10296 | ac_save_CFLAGS=$CFLAGS | |
10297 | CFLAGS="-g" | |
10298 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10299 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10300 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10302 | else | |
10303 | cat >conftest.$ac_ext <<_ACEOF | |
10304 | #line $LINENO "configure" | |
10305 | /* confdefs.h. */ | |
10306 | _ACEOF | |
10307 | cat confdefs.h >>conftest.$ac_ext | |
10308 | cat >>conftest.$ac_ext <<_ACEOF | |
10309 | /* end confdefs.h. */ | |
10310 | ||
10311 | int | |
10312 | main () | |
10313 | { | |
10314 | ||
10315 | ; | |
10316 | return 0; | |
10317 | } | |
10318 | _ACEOF | |
10319 | rm -f conftest.$ac_objext | |
10320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10321 | (eval $ac_compile) 2>&5 | |
10322 | ac_status=$? | |
10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10324 | (exit $ac_status); } && | |
10325 | { ac_try='test -s conftest.$ac_objext' | |
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10327 | (eval $ac_try) 2>&5 | |
10328 | ac_status=$? | |
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10330 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10331 | ac_cv_prog_cc_g=yes |
10332 | else | |
e6cc62c6 VS |
10333 | echo "$as_me: failed program was:" >&5 |
10334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10335 | |
e6cc62c6 | 10336 | ac_cv_prog_cc_g=no |
10f2d63a | 10337 | fi |
e6cc62c6 VS |
10338 | rm -f conftest.$ac_objext conftest.$ac_ext |
10339 | fi | |
10340 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10341 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10342 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10343 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10344 | elif test $ac_cv_prog_cc_g = yes; then |
10345 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10346 | CFLAGS="-g -O2" |
10347 | else | |
f09359cf | 10348 | CFLAGS="-g" |
10f2d63a | 10349 | fi |
5c0a20c3 | 10350 | else |
f09359cf VS |
10351 | if test "$GCC" = yes; then |
10352 | CFLAGS="-O2" | |
10353 | else | |
10354 | CFLAGS= | |
10355 | fi | |
10f2d63a | 10356 | fi |
e6cc62c6 VS |
10357 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10358 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10359 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10361 | else | |
10362 | ac_cv_prog_cc_stdc=no | |
10363 | ac_save_CC=$CC | |
10364 | cat >conftest.$ac_ext <<_ACEOF | |
10365 | #line $LINENO "configure" | |
10366 | /* confdefs.h. */ | |
10367 | _ACEOF | |
10368 | cat confdefs.h >>conftest.$ac_ext | |
10369 | cat >>conftest.$ac_ext <<_ACEOF | |
10370 | /* end confdefs.h. */ | |
10371 | #include <stdarg.h> | |
10372 | #include <stdio.h> | |
10373 | #include <sys/types.h> | |
10374 | #include <sys/stat.h> | |
10375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10376 | struct buf { int x; }; | |
10377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10378 | static char *e (p, i) | |
10379 | char **p; | |
10380 | int i; | |
10381 | { | |
10382 | return p[i]; | |
10383 | } | |
10384 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10385 | { | |
10386 | char *s; | |
10387 | va_list v; | |
10388 | va_start (v,p); | |
10389 | s = g (p, va_arg (v,int)); | |
10390 | va_end (v); | |
10391 | return s; | |
10392 | } | |
10393 | int test (int i, double x); | |
10394 | struct s1 {int (*f) (int a);}; | |
10395 | struct s2 {int (*f) (double a);}; | |
10396 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10397 | int argc; | |
10398 | char **argv; | |
10399 | int | |
10400 | main () | |
10401 | { | |
10402 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10403 | ; | |
10404 | return 0; | |
10405 | } | |
10406 | _ACEOF | |
10407 | # Don't try gcc -ansi; that turns off useful extensions and | |
10408 | # breaks some systems' header files. | |
10409 | # AIX -qlanglvl=ansi | |
10410 | # Ultrix and OSF/1 -std1 | |
10411 | # HP-UX 10.20 and later -Ae | |
10412 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10413 | # SVR4 -Xc -D__EXTENSIONS__ | |
10414 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10415 | do | |
10416 | CC="$ac_save_CC $ac_arg" | |
10417 | rm -f conftest.$ac_objext | |
10418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10419 | (eval $ac_compile) 2>&5 | |
10420 | ac_status=$? | |
10421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10422 | (exit $ac_status); } && | |
10423 | { ac_try='test -s conftest.$ac_objext' | |
10424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10425 | (eval $ac_try) 2>&5 | |
10426 | ac_status=$? | |
10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10428 | (exit $ac_status); }; }; then | |
10429 | ac_cv_prog_cc_stdc=$ac_arg | |
10430 | break | |
10431 | else | |
10432 | echo "$as_me: failed program was:" >&5 | |
10433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10434 | ||
10435 | fi | |
10436 | rm -f conftest.$ac_objext | |
10437 | done | |
10438 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10439 | CC=$ac_save_CC | |
10440 | ||
10441 | fi | |
10442 | ||
10443 | case "x$ac_cv_prog_cc_stdc" in | |
10444 | x|xno) | |
10445 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10446 | echo "${ECHO_T}none needed" >&6 ;; | |
10447 | *) | |
10448 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10449 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10450 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10451 | esac | |
10452 | ||
10453 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10454 | # in C++ we need to declare it. In case someone uses the same compiler | |
10455 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10456 | # the declaration of exit, since it's the most demanding environment. | |
10457 | cat >conftest.$ac_ext <<_ACEOF | |
10458 | #ifndef __cplusplus | |
10459 | choke me | |
10460 | #endif | |
10461 | _ACEOF | |
10462 | rm -f conftest.$ac_objext | |
10463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10464 | (eval $ac_compile) 2>&5 | |
10465 | ac_status=$? | |
10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10467 | (exit $ac_status); } && | |
10468 | { ac_try='test -s conftest.$ac_objext' | |
10469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10470 | (eval $ac_try) 2>&5 | |
10471 | ac_status=$? | |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10473 | (exit $ac_status); }; }; then | |
10474 | for ac_declaration in \ | |
6f628073 VS |
10475 | ''\ |
10476 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10477 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10478 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10479 | 'extern "C" void exit (int) throw ();' \ | |
10480 | 'extern "C" void exit (int);' \ | |
10481 | 'void exit (int);' | |
10482 | do | |
10483 | cat >conftest.$ac_ext <<_ACEOF | |
10484 | #line $LINENO "configure" | |
10485 | /* confdefs.h. */ | |
10486 | _ACEOF | |
10487 | cat confdefs.h >>conftest.$ac_ext | |
10488 | cat >>conftest.$ac_ext <<_ACEOF | |
10489 | /* end confdefs.h. */ | |
71e83a03 | 10490 | #include <stdlib.h> |
6f628073 | 10491 | $ac_declaration |
e6cc62c6 VS |
10492 | int |
10493 | main () | |
10494 | { | |
10495 | exit (42); | |
10496 | ; | |
10497 | return 0; | |
10498 | } | |
10499 | _ACEOF | |
10500 | rm -f conftest.$ac_objext | |
10501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10502 | (eval $ac_compile) 2>&5 | |
10503 | ac_status=$? | |
10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10505 | (exit $ac_status); } && | |
10506 | { ac_try='test -s conftest.$ac_objext' | |
10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10508 | (eval $ac_try) 2>&5 | |
10509 | ac_status=$? | |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10511 | (exit $ac_status); }; }; then | |
10512 | : | |
10513 | else | |
10514 | echo "$as_me: failed program was:" >&5 | |
10515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10516 | ||
10517 | continue | |
10518 | fi | |
10519 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10520 | cat >conftest.$ac_ext <<_ACEOF | |
10521 | #line $LINENO "configure" | |
10522 | /* confdefs.h. */ | |
10523 | _ACEOF | |
10524 | cat confdefs.h >>conftest.$ac_ext | |
10525 | cat >>conftest.$ac_ext <<_ACEOF | |
10526 | /* end confdefs.h. */ | |
10527 | $ac_declaration | |
10528 | int | |
10529 | main () | |
10530 | { | |
10531 | exit (42); | |
10532 | ; | |
10533 | return 0; | |
10534 | } | |
10535 | _ACEOF | |
10536 | rm -f conftest.$ac_objext | |
10537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10538 | (eval $ac_compile) 2>&5 | |
10539 | ac_status=$? | |
10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10541 | (exit $ac_status); } && | |
10542 | { ac_try='test -s conftest.$ac_objext' | |
10543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10544 | (eval $ac_try) 2>&5 | |
10545 | ac_status=$? | |
10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10547 | (exit $ac_status); }; }; then | |
10548 | break | |
10549 | else | |
10550 | echo "$as_me: failed program was:" >&5 | |
10551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10552 | ||
10553 | fi | |
10554 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10555 | done | |
10556 | rm -f conftest* | |
10557 | if test -n "$ac_declaration"; then | |
10558 | echo '#ifdef __cplusplus' >>confdefs.h | |
10559 | echo $ac_declaration >>confdefs.h | |
10560 | echo '#endif' >>confdefs.h | |
10561 | fi | |
10562 | ||
10563 | else | |
10564 | echo "$as_me: failed program was:" >&5 | |
10565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10566 | ||
10567 | fi | |
10568 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10569 | ac_ext=c | |
10570 | ac_cpp='$CPP $CPPFLAGS' | |
10571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10574 | |
10575 | ||
e6cc62c6 VS |
10576 | |
10577 | ac_ext=c | |
10578 | ac_cpp='$CPP $CPPFLAGS' | |
10579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10582 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10583 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10584 | # On Suns, sometimes $CPP names a directory. |
10585 | if test -n "$CPP" && test -d "$CPP"; then | |
10586 | CPP= | |
10587 | fi | |
10588 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10589 | if test "${ac_cv_prog_CPP+set}" = set; then |
10590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10591 | else | |
10592 | # Double quotes because CPP needs to be expanded | |
10593 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10594 | do | |
10595 | ac_preproc_ok=false | |
10596 | for ac_c_preproc_warn_flag in '' yes | |
10597 | do | |
10598 | # Use a header file that comes with gcc, so configuring glibc | |
10599 | # with a fresh cross-compiler works. | |
10600 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10601 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10602 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10603 | # not just through cpp. "Syntax error" is here to catch this case. |
10604 | cat >conftest.$ac_ext <<_ACEOF | |
10605 | #line $LINENO "configure" | |
10606 | /* confdefs.h. */ | |
10607 | _ACEOF | |
10608 | cat confdefs.h >>conftest.$ac_ext | |
10609 | cat >>conftest.$ac_ext <<_ACEOF | |
10610 | /* end confdefs.h. */ | |
10611 | #ifdef __STDC__ | |
10612 | # include <limits.h> | |
10613 | #else | |
10614 | # include <assert.h> | |
10615 | #endif | |
10616 | Syntax error | |
10617 | _ACEOF | |
10618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10620 | ac_status=$? | |
10621 | grep -v '^ *+' conftest.er1 >conftest.err | |
10622 | rm -f conftest.er1 | |
10623 | cat conftest.err >&5 | |
10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10625 | (exit $ac_status); } >/dev/null; then | |
10626 | if test -s conftest.err; then | |
10627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10628 | else | |
10629 | ac_cpp_err= | |
10630 | fi | |
10f2d63a | 10631 | else |
e6cc62c6 VS |
10632 | ac_cpp_err=yes |
10633 | fi | |
10634 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10635 | : |
247f5006 | 10636 | else |
e6cc62c6 VS |
10637 | echo "$as_me: failed program was:" >&5 |
10638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10639 | ||
10640 | # Broken: fails on valid input. | |
10641 | continue | |
10642 | fi | |
10643 | rm -f conftest.err conftest.$ac_ext | |
10644 | ||
10645 | # OK, works on sane cases. Now check whether non-existent headers | |
10646 | # can be detected and how. | |
10647 | cat >conftest.$ac_ext <<_ACEOF | |
10648 | #line $LINENO "configure" | |
10649 | /* confdefs.h. */ | |
10650 | _ACEOF | |
10651 | cat confdefs.h >>conftest.$ac_ext | |
10652 | cat >>conftest.$ac_ext <<_ACEOF | |
10653 | /* end confdefs.h. */ | |
10654 | #include <ac_nonexistent.h> | |
10655 | _ACEOF | |
10656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10657 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10658 | ac_status=$? | |
10659 | grep -v '^ *+' conftest.er1 >conftest.err | |
10660 | rm -f conftest.er1 | |
10661 | cat conftest.err >&5 | |
10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10663 | (exit $ac_status); } >/dev/null; then | |
10664 | if test -s conftest.err; then | |
10665 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10666 | else | |
10667 | ac_cpp_err= | |
10668 | fi | |
10f2d63a | 10669 | else |
e6cc62c6 | 10670 | ac_cpp_err=yes |
579d8138 | 10671 | fi |
e6cc62c6 VS |
10672 | if test -z "$ac_cpp_err"; then |
10673 | # Broken: success on invalid input. | |
10674 | continue | |
10675 | else | |
10676 | echo "$as_me: failed program was:" >&5 | |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10678 | ||
10679 | # Passes both tests. | |
10680 | ac_preproc_ok=: | |
10681 | break | |
52127426 | 10682 | fi |
e6cc62c6 VS |
10683 | rm -f conftest.err conftest.$ac_ext |
10684 | ||
10685 | done | |
10686 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10687 | rm -f conftest.err conftest.$ac_ext | |
10688 | if $ac_preproc_ok; then | |
10689 | break | |
8284b0c5 | 10690 | fi |
e6cc62c6 VS |
10691 | |
10692 | done | |
10693 | ac_cv_prog_CPP=$CPP | |
10694 | ||
10695 | fi | |
10696 | CPP=$ac_cv_prog_CPP | |
10697 | else | |
10698 | ac_cv_prog_CPP=$CPP | |
10699 | fi | |
10700 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10701 | echo "${ECHO_T}$CPP" >&6 | |
10702 | ac_preproc_ok=false | |
10703 | for ac_c_preproc_warn_flag in '' yes | |
10704 | do | |
10705 | # Use a header file that comes with gcc, so configuring glibc | |
10706 | # with a fresh cross-compiler works. | |
10707 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10708 | # <limits.h> exists even on freestanding compilers. | |
10709 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10710 | # not just through cpp. "Syntax error" is here to catch this case. | |
10711 | cat >conftest.$ac_ext <<_ACEOF | |
10712 | #line $LINENO "configure" | |
10713 | /* confdefs.h. */ | |
10714 | _ACEOF | |
10715 | cat confdefs.h >>conftest.$ac_ext | |
10716 | cat >>conftest.$ac_ext <<_ACEOF | |
10717 | /* end confdefs.h. */ | |
10718 | #ifdef __STDC__ | |
10719 | # include <limits.h> | |
10720 | #else | |
10721 | # include <assert.h> | |
10722 | #endif | |
10723 | Syntax error | |
10724 | _ACEOF | |
10725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10727 | ac_status=$? | |
10728 | grep -v '^ *+' conftest.er1 >conftest.err | |
10729 | rm -f conftest.er1 | |
10730 | cat conftest.err >&5 | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); } >/dev/null; then | |
10733 | if test -s conftest.err; then | |
10734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10735 | else | |
10736 | ac_cpp_err= | |
10737 | fi | |
10738 | else | |
10739 | ac_cpp_err=yes | |
10740 | fi | |
10741 | if test -z "$ac_cpp_err"; then | |
10742 | : | |
10743 | else | |
10744 | echo "$as_me: failed program was:" >&5 | |
10745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10746 | ||
10747 | # Broken: fails on valid input. | |
10748 | continue | |
10749 | fi | |
10750 | rm -f conftest.err conftest.$ac_ext | |
10751 | ||
10752 | # OK, works on sane cases. Now check whether non-existent headers | |
10753 | # can be detected and how. | |
10754 | cat >conftest.$ac_ext <<_ACEOF | |
10755 | #line $LINENO "configure" | |
10756 | /* confdefs.h. */ | |
10757 | _ACEOF | |
10758 | cat confdefs.h >>conftest.$ac_ext | |
10759 | cat >>conftest.$ac_ext <<_ACEOF | |
10760 | /* end confdefs.h. */ | |
10761 | #include <ac_nonexistent.h> | |
10762 | _ACEOF | |
10763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10765 | ac_status=$? | |
10766 | grep -v '^ *+' conftest.er1 >conftest.err | |
10767 | rm -f conftest.er1 | |
10768 | cat conftest.err >&5 | |
10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10770 | (exit $ac_status); } >/dev/null; then | |
10771 | if test -s conftest.err; then | |
10772 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10773 | else | |
10774 | ac_cpp_err= | |
10775 | fi | |
10776 | else | |
10777 | ac_cpp_err=yes | |
10778 | fi | |
10779 | if test -z "$ac_cpp_err"; then | |
10780 | # Broken: success on invalid input. | |
10781 | continue | |
10782 | else | |
10783 | echo "$as_me: failed program was:" >&5 | |
10784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10785 | ||
10786 | # Passes both tests. | |
10787 | ac_preproc_ok=: | |
10788 | break | |
a0b9e27f | 10789 | fi |
e6cc62c6 VS |
10790 | rm -f conftest.err conftest.$ac_ext |
10791 | ||
10792 | done | |
10793 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10794 | rm -f conftest.err conftest.$ac_ext | |
10795 | if $ac_preproc_ok; then | |
10796 | : | |
10797 | else | |
10798 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10799 | See \`config.log' for more details." >&5 | |
10800 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10801 | See \`config.log' for more details." >&2;} | |
10802 | { (exit 1); exit 1; }; } | |
10803 | fi | |
10804 | ||
10805 | ac_ext=c | |
10806 | ac_cpp='$CPP $CPPFLAGS' | |
10807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10810 | ||
10811 | ||
10812 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10813 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10814 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10816 | else |
e6cc62c6 VS |
10817 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10818 | then ac_cv_prog_egrep='grep -E' | |
10819 | else ac_cv_prog_egrep='egrep' | |
10820 | fi | |
10f2d63a | 10821 | fi |
e6cc62c6 VS |
10822 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10823 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10824 | EGREP=$ac_cv_prog_egrep | |
10825 | ||
10f2d63a | 10826 | |
e6cc62c6 VS |
10827 | if test $ac_cv_c_compiler_gnu = yes; then |
10828 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10829 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10830 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10832 | else |
10833 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10834 | cat >conftest.$ac_ext <<_ACEOF |
10835 | #line $LINENO "configure" | |
10836 | /* confdefs.h. */ | |
10837 | _ACEOF | |
10838 | cat confdefs.h >>conftest.$ac_ext | |
10839 | cat >>conftest.$ac_ext <<_ACEOF | |
10840 | /* end confdefs.h. */ | |
10f2d63a VZ |
10841 | #include <sgtty.h> |
10842 | Autoconf TIOCGETP | |
e6cc62c6 | 10843 | _ACEOF |
10f2d63a | 10844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10845 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10846 | ac_cv_prog_gcc_traditional=yes |
10847 | else | |
10f2d63a VZ |
10848 | ac_cv_prog_gcc_traditional=no |
10849 | fi | |
10850 | rm -f conftest* | |
10851 | ||
8284b0c5 | 10852 | |
10f2d63a | 10853 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10854 | cat >conftest.$ac_ext <<_ACEOF |
10855 | #line $LINENO "configure" | |
10856 | /* confdefs.h. */ | |
10857 | _ACEOF | |
10858 | cat confdefs.h >>conftest.$ac_ext | |
10859 | cat >>conftest.$ac_ext <<_ACEOF | |
10860 | /* end confdefs.h. */ | |
10f2d63a VZ |
10861 | #include <termio.h> |
10862 | Autoconf TCGETA | |
e6cc62c6 | 10863 | _ACEOF |
10f2d63a | 10864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10865 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10866 | ac_cv_prog_gcc_traditional=yes |
10867 | fi | |
10868 | rm -f conftest* | |
10869 | ||
10870 | fi | |
10871 | fi | |
e6cc62c6 VS |
10872 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10873 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10874 | if test $ac_cv_prog_gcc_traditional = yes; then |
10875 | CC="$CC -traditional" | |
10876 | fi | |
10877 | fi | |
10878 | ||
8284b0c5 MB |
10879 | |
10880 | ||
e6cc62c6 VS |
10881 | |
10882 | ac_ext=cc | |
1e487827 | 10883 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10887 | |
698dcdb6 | 10888 | |
ec603395 | 10889 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10890 | ac_ext=cc |
10891 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10895 | if test -n "$ac_tool_prefix"; then | |
10896 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10897 | do | |
10898 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10899 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10902 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10904 | else |
10905 | if test -n "$CXX"; then | |
10906 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10907 | else | |
e6cc62c6 VS |
10908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10909 | for as_dir in $PATH | |
10910 | do | |
10911 | IFS=$as_save_IFS | |
10912 | test -z "$as_dir" && as_dir=. | |
10913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10915 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10917 | break 2 | |
10918 | fi | |
10919 | done | |
10920 | done | |
10921 | ||
10f2d63a VZ |
10922 | fi |
10923 | fi | |
e6cc62c6 | 10924 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10925 | if test -n "$CXX"; then |
e6cc62c6 VS |
10926 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10927 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10928 | else |
e6cc62c6 VS |
10929 | echo "$as_me:$LINENO: result: no" >&5 |
10930 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10931 | fi |
10932 | ||
e6cc62c6 VS |
10933 | test -n "$CXX" && break |
10934 | done | |
10935 | fi | |
10936 | if test -z "$CXX"; then | |
10937 | ac_ct_CXX=$CXX | |
10938 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10939 | do | |
10940 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10941 | set dummy $ac_prog; ac_word=$2 | |
10942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10944 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10946 | else | |
10947 | if test -n "$ac_ct_CXX"; then | |
10948 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10949 | else | |
10950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10951 | for as_dir in $PATH | |
10952 | do | |
10953 | IFS=$as_save_IFS | |
10954 | test -z "$as_dir" && as_dir=. | |
10955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10957 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10959 | break 2 | |
10960 | fi | |
10961 | done | |
10f2d63a | 10962 | done |
a0b9e27f | 10963 | |
8284b0c5 | 10964 | fi |
a0b9e27f | 10965 | fi |
e6cc62c6 VS |
10966 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10967 | if test -n "$ac_ct_CXX"; then | |
10968 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10969 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10970 | else | |
10971 | echo "$as_me:$LINENO: result: no" >&5 | |
10972 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 10973 | fi |
10f2d63a | 10974 | |
e6cc62c6 VS |
10975 | test -n "$ac_ct_CXX" && break |
10976 | done | |
10977 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10978 | ||
10979 | CXX=$ac_ct_CXX | |
10980 | fi | |
10981 | ||
10982 | ||
10983 | # Provide some information about the compiler. | |
10984 | echo "$as_me:$LINENO:" \ | |
10985 | "checking for C++ compiler version" >&5 | |
10986 | ac_compiler=`set X $ac_compile; echo $2` | |
10987 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10988 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10989 | ac_status=$? | |
10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10991 | (exit $ac_status); } | |
10992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10993 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10994 | ac_status=$? | |
10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10996 | (exit $ac_status); } | |
10997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10998 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10999 | ac_status=$? | |
11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11001 | (exit $ac_status); } | |
11002 | ||
11003 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11004 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11005 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11007 | else | |
11008 | cat >conftest.$ac_ext <<_ACEOF | |
11009 | #line $LINENO "configure" | |
11010 | /* confdefs.h. */ | |
11011 | _ACEOF | |
11012 | cat confdefs.h >>conftest.$ac_ext | |
11013 | cat >>conftest.$ac_ext <<_ACEOF | |
11014 | /* end confdefs.h. */ | |
11015 | ||
11016 | int | |
11017 | main () | |
11018 | { | |
11019 | #ifndef __GNUC__ | |
11020 | choke me | |
11021 | #endif | |
10f2d63a | 11022 | |
e6cc62c6 VS |
11023 | ; |
11024 | return 0; | |
11025 | } | |
11026 | _ACEOF | |
11027 | rm -f conftest.$ac_objext | |
11028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11029 | (eval $ac_compile) 2>&5 | |
11030 | ac_status=$? | |
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11032 | (exit $ac_status); } && | |
11033 | { ac_try='test -s conftest.$ac_objext' | |
11034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11035 | (eval $ac_try) 2>&5 | |
11036 | ac_status=$? | |
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11038 | (exit $ac_status); }; }; then | |
11039 | ac_compiler_gnu=yes | |
11040 | else | |
11041 | echo "$as_me: failed program was:" >&5 | |
11042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11043 | ||
11044 | ac_compiler_gnu=no | |
11045 | fi | |
11046 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11047 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11048 | ||
11049 | fi | |
11050 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11051 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11052 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11053 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11054 | ac_save_CXXFLAGS=$CXXFLAGS | |
11055 | CXXFLAGS="-g" | |
11056 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11057 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11058 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11060 | else | |
11061 | cat >conftest.$ac_ext <<_ACEOF | |
11062 | #line $LINENO "configure" | |
11063 | /* confdefs.h. */ | |
11064 | _ACEOF | |
11065 | cat confdefs.h >>conftest.$ac_ext | |
11066 | cat >>conftest.$ac_ext <<_ACEOF | |
11067 | /* end confdefs.h. */ | |
11068 | ||
11069 | int | |
11070 | main () | |
11071 | { | |
f09359cf | 11072 | |
e6cc62c6 VS |
11073 | ; |
11074 | return 0; | |
11075 | } | |
11076 | _ACEOF | |
11077 | rm -f conftest.$ac_objext | |
11078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11079 | (eval $ac_compile) 2>&5 | |
11080 | ac_status=$? | |
11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11082 | (exit $ac_status); } && | |
11083 | { ac_try='test -s conftest.$ac_objext' | |
11084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11085 | (eval $ac_try) 2>&5 | |
11086 | ac_status=$? | |
11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11089 | ac_cv_prog_cxx_g=yes |
11090 | else | |
e6cc62c6 VS |
11091 | echo "$as_me: failed program was:" >&5 |
11092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11093 | |
e6cc62c6 | 11094 | ac_cv_prog_cxx_g=no |
10f2d63a | 11095 | fi |
e6cc62c6 VS |
11096 | rm -f conftest.$ac_objext conftest.$ac_ext |
11097 | fi | |
11098 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11099 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11100 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11101 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11102 | elif test $ac_cv_prog_cxx_g = yes; then |
11103 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11104 | CXXFLAGS="-g -O2" |
11105 | else | |
f09359cf | 11106 | CXXFLAGS="-g" |
10f2d63a | 11107 | fi |
5c0a20c3 | 11108 | else |
f09359cf VS |
11109 | if test "$GXX" = yes; then |
11110 | CXXFLAGS="-O2" | |
11111 | else | |
11112 | CXXFLAGS= | |
11113 | fi | |
10f2d63a | 11114 | fi |
e6cc62c6 | 11115 | for ac_declaration in \ |
6f628073 VS |
11116 | ''\ |
11117 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11118 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11119 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11120 | 'extern "C" void exit (int) throw ();' \ | |
11121 | 'extern "C" void exit (int);' \ | |
11122 | 'void exit (int);' | |
11123 | do | |
11124 | cat >conftest.$ac_ext <<_ACEOF | |
11125 | #line $LINENO "configure" | |
11126 | /* confdefs.h. */ | |
11127 | _ACEOF | |
11128 | cat confdefs.h >>conftest.$ac_ext | |
11129 | cat >>conftest.$ac_ext <<_ACEOF | |
11130 | /* end confdefs.h. */ | |
71e83a03 | 11131 | #include <stdlib.h> |
6f628073 | 11132 | $ac_declaration |
e6cc62c6 VS |
11133 | int |
11134 | main () | |
11135 | { | |
11136 | exit (42); | |
11137 | ; | |
11138 | return 0; | |
11139 | } | |
11140 | _ACEOF | |
11141 | rm -f conftest.$ac_objext | |
11142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11143 | (eval $ac_compile) 2>&5 | |
11144 | ac_status=$? | |
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11146 | (exit $ac_status); } && | |
11147 | { ac_try='test -s conftest.$ac_objext' | |
11148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11149 | (eval $ac_try) 2>&5 | |
11150 | ac_status=$? | |
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11152 | (exit $ac_status); }; }; then | |
11153 | : | |
11154 | else | |
11155 | echo "$as_me: failed program was:" >&5 | |
11156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11157 | ||
11158 | continue | |
11159 | fi | |
11160 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11161 | cat >conftest.$ac_ext <<_ACEOF | |
11162 | #line $LINENO "configure" | |
11163 | /* confdefs.h. */ | |
11164 | _ACEOF | |
11165 | cat confdefs.h >>conftest.$ac_ext | |
11166 | cat >>conftest.$ac_ext <<_ACEOF | |
11167 | /* end confdefs.h. */ | |
11168 | $ac_declaration | |
11169 | int | |
11170 | main () | |
11171 | { | |
11172 | exit (42); | |
11173 | ; | |
11174 | return 0; | |
11175 | } | |
11176 | _ACEOF | |
11177 | rm -f conftest.$ac_objext | |
11178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11179 | (eval $ac_compile) 2>&5 | |
11180 | ac_status=$? | |
11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11182 | (exit $ac_status); } && | |
11183 | { ac_try='test -s conftest.$ac_objext' | |
11184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11185 | (eval $ac_try) 2>&5 | |
11186 | ac_status=$? | |
11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11188 | (exit $ac_status); }; }; then | |
11189 | break | |
11190 | else | |
11191 | echo "$as_me: failed program was:" >&5 | |
11192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11193 | ||
11194 | fi | |
11195 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11196 | done | |
11197 | rm -f conftest* | |
11198 | if test -n "$ac_declaration"; then | |
11199 | echo '#ifdef __cplusplus' >>confdefs.h | |
11200 | echo $ac_declaration >>confdefs.h | |
11201 | echo '#endif' >>confdefs.h | |
11202 | fi | |
11203 | ||
11204 | ac_ext=cc | |
11205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11209 | |
11210 | ||
10f2d63a | 11211 | ac_ext=c |
10f2d63a | 11212 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11216 | |
11217 | ||
e6cc62c6 VS |
11218 | if test -n "$ac_tool_prefix"; then |
11219 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11220 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11223 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11225 | else |
11226 | if test -n "$RANLIB"; then | |
11227 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11228 | else | |
e6cc62c6 VS |
11229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11230 | for as_dir in $PATH | |
11231 | do | |
11232 | IFS=$as_save_IFS | |
11233 | test -z "$as_dir" && as_dir=. | |
11234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11236 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11238 | break 2 | |
11239 | fi | |
11240 | done | |
11241 | done | |
11242 | ||
10f2d63a VZ |
11243 | fi |
11244 | fi | |
e6cc62c6 | 11245 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11246 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11247 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11248 | echo "${ECHO_T}$RANLIB" >&6 | |
11249 | else | |
11250 | echo "$as_me:$LINENO: result: no" >&5 | |
11251 | echo "${ECHO_T}no" >&6 | |
11252 | fi | |
11253 | ||
11254 | fi | |
11255 | if test -z "$ac_cv_prog_RANLIB"; then | |
11256 | ac_ct_RANLIB=$RANLIB | |
11257 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11258 | set dummy ranlib; ac_word=$2 | |
11259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11261 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11263 | else |
e6cc62c6 VS |
11264 | if test -n "$ac_ct_RANLIB"; then |
11265 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11266 | else | |
11267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11268 | for as_dir in $PATH | |
11269 | do | |
11270 | IFS=$as_save_IFS | |
11271 | test -z "$as_dir" && as_dir=. | |
11272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11273 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11274 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11276 | break 2 | |
11277 | fi | |
11278 | done | |
11279 | done | |
11280 | ||
11281 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11282 | fi | |
11283 | fi | |
11284 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11285 | if test -n "$ac_ct_RANLIB"; then | |
11286 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11287 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11288 | else | |
11289 | echo "$as_me:$LINENO: result: no" >&5 | |
11290 | echo "${ECHO_T}no" >&6 | |
11291 | fi | |
11292 | ||
11293 | RANLIB=$ac_ct_RANLIB | |
11294 | else | |
11295 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11296 | fi |
11297 | ||
10f2d63a VZ |
11298 | |
11299 | # Extract the first word of "ar", so it can be a program name with args. | |
11300 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11303 | if test "${ac_cv_prog_AR+set}" = set; then | |
11304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11305 | else |
11306 | if test -n "$AR"; then | |
11307 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11308 | else | |
e6cc62c6 VS |
11309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11310 | for as_dir in $PATH | |
11311 | do | |
11312 | IFS=$as_save_IFS | |
11313 | test -z "$as_dir" && as_dir=. | |
11314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11315 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11316 | ac_cv_prog_AR="ar" | |
11317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11318 | break 2 | |
11319 | fi | |
11320 | done | |
11321 | done | |
11322 | ||
10f2d63a VZ |
11323 | fi |
11324 | fi | |
e6cc62c6 | 11325 | AR=$ac_cv_prog_AR |
10f2d63a | 11326 | if test -n "$AR"; then |
e6cc62c6 VS |
11327 | echo "$as_me:$LINENO: result: $AR" >&5 |
11328 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11329 | else |
e6cc62c6 VS |
11330 | echo "$as_me:$LINENO: result: no" >&5 |
11331 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11332 | fi |
11333 | ||
911740e7 VS |
11334 | if test "x$AR" = "x" ; then |
11335 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11336 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11337 | { (exit 1); exit 1; }; } | |
11338 | fi | |
8284b0c5 | 11339 | |
6054113a | 11340 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11341 | # so one script is as good as another. But avoid the broken or |
11342 | # incompatible versions: | |
11343 | # SysV /etc/install, /usr/sbin/install | |
11344 | # SunOS /usr/etc/install | |
11345 | # IRIX /sbin/install | |
11346 | # AIX /bin/install | |
e6cc62c6 | 11347 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11348 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11349 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11350 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11351 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11352 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11353 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11354 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11355 | if test "${ac_cv_path_install+set}" = set; then |
11356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11357 | else | |
11358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11359 | for as_dir in $PATH | |
11360 | do | |
11361 | IFS=$as_save_IFS | |
11362 | test -z "$as_dir" && as_dir=. | |
11363 | # Account for people who put trailing slashes in PATH elements. | |
11364 | case $as_dir/ in | |
11365 | ./ | .// | /cC/* | \ | |
11366 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11367 | /usr/ucb/* ) ;; | |
11368 | *) | |
11369 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11370 | # Don't use installbsd from OSF since it installs stuff as root | |
11371 | # by default. | |
11372 | for ac_prog in ginstall scoinst install; do | |
11373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11374 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11375 | if test $ac_prog = install && | |
11376 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11377 | # AIX install. It has an incompatible calling convention. | |
11378 | : | |
11379 | elif test $ac_prog = install && | |
11380 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11381 | # program-specific install script used by HP pwplus--don't use. | |
11382 | : | |
11383 | else | |
11384 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11385 | break 3 | |
11386 | fi | |
11387 | fi | |
10f2d63a | 11388 | done |
e6cc62c6 VS |
11389 | done |
11390 | ;; | |
11391 | esac | |
11392 | done | |
11393 | ||
10f2d63a VZ |
11394 | |
11395 | fi | |
11396 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11397 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11398 | else |
11399 | # As a last resort, use the slow shell script. We don't cache a | |
11400 | # path for INSTALL within a source directory, because that will | |
11401 | # break other packages using the cache if that directory is | |
11402 | # removed, or if the path is relative. | |
e6cc62c6 | 11403 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11404 | fi |
11405 | fi | |
e6cc62c6 VS |
11406 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11407 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11408 | |
11409 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11410 | # It thinks the first close brace ends the variable substitution. | |
11411 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11412 | ||
e6cc62c6 | 11413 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11414 | |
10f2d63a VZ |
11415 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11416 | ||
8284b0c5 | 11417 | |
1d1b75ac VZ |
11418 | case ${INSTALL} in |
11419 | /* ) # Absolute | |
11420 | ;; | |
4f5a7f74 VZ |
11421 | ?:* ) # Drive letter, considered as absolute. |
11422 | ;; | |
3bd8fb5f | 11423 | *) |
1d1b75ac VZ |
11424 | INSTALL=`pwd`/${INSTALL} ;; |
11425 | esac | |
11426 | ||
4f5a7f74 VZ |
11427 | case ${host} in |
11428 | *-hp-hpux* ) | |
11429 | INSTALL_DIR="mkdir" | |
11430 | ;; | |
11431 | ||
11432 | *) INSTALL_DIR="$INSTALL -d" | |
11433 | ;; | |
11434 | esac | |
11435 | ||
8284b0c5 | 11436 | |
6054113a GD |
11437 | case "${host}" in |
11438 | ||
b5853384 | 11439 | powerpc-*-darwin* ) |
eb99ae0b GD |
11440 | INSTALL_PROGRAM="cp -fp" |
11441 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11442 | ;; |
11443 | *) | |
11444 | ;; | |
d6853540 | 11445 | esac |
698dcdb6 | 11446 | |
10f2d63a VZ |
11447 | # Extract the first word of "strip", so it can be a program name with args. |
11448 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11451 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11453 | else |
11454 | if test -n "$STRIP"; then | |
11455 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11456 | else | |
e6cc62c6 VS |
11457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11458 | for as_dir in $PATH | |
11459 | do | |
11460 | IFS=$as_save_IFS | |
11461 | test -z "$as_dir" && as_dir=. | |
11462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11464 | ac_cv_prog_STRIP="strip" | |
11465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11466 | break 2 | |
11467 | fi | |
11468 | done | |
11469 | done | |
11470 | ||
10f2d63a VZ |
11471 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11472 | fi | |
11473 | fi | |
e6cc62c6 | 11474 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11475 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11476 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11477 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11478 | else |
e6cc62c6 VS |
11479 | echo "$as_me:$LINENO: result: no" >&5 |
11480 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11481 | fi |
11482 | ||
5c6fa7d2 | 11483 | |
e6cc62c6 VS |
11484 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11485 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11486 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11488 | else |
e6cc62c6 | 11489 | |
414eab6d | 11490 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11491 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11492 | wx_cv_prog_makeisgnu="yes" |
11493 | else | |
11494 | wx_cv_prog_makeisgnu="no" | |
11495 | fi | |
11496 | ||
11497 | fi | |
e6cc62c6 VS |
11498 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11499 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11500 | |
11501 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11502 | IF_GNU_MAKE="" | |
11503 | else | |
11504 | IF_GNU_MAKE="#" | |
11505 | fi | |
11506 | ||
8284b0c5 MB |
11507 | |
11508 | ||
414eab6d | 11509 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11510 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11511 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11512 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11514 | else |
e6cc62c6 | 11515 | |
10f2d63a VZ |
11516 | cat - << EOF > confMake |
11517 | check : file | |
11518 | cp \$? \$@ | |
11519 | cp \$? final_file | |
11520 | EOF | |
11521 | ||
11522 | if test ! -d sub ; then | |
11523 | mkdir sub | |
11524 | fi | |
11525 | echo dummy > sub/file | |
f6bcfd97 | 11526 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11527 | RESULT=$? |
11528 | rm -f sub/file check final_file confMake | |
11529 | rmdir sub | |
11530 | if test "$RESULT" = 0; then | |
04e7a216 | 11531 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11532 | else |
04e7a216 VZ |
11533 | wx_cv_prog_makevpath="no" |
11534 | fi | |
11535 | ||
11536 | fi | |
e6cc62c6 VS |
11537 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11538 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11539 | |
11540 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11541 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11542 | You need a make-utility that is able to use the variable |
11543 | VPATH correctly. | |
11544 | If your version of make does not support VPATH correctly, | |
11545 | please install GNU-make (possibly as gmake), and start | |
11546 | configure with the following command: | |
11547 | export MAKE=gmake; ./configure for sh-type shells | |
11548 | setenv MAKE gmake; ./configure for csh-type shells | |
11549 | Also please do remember to use gmake in this case every time | |
11550 | you are trying to compile. | |
e6cc62c6 VS |
11551 | " >&5 |
11552 | echo "$as_me: error: | |
11553 | You need a make-utility that is able to use the variable | |
11554 | VPATH correctly. | |
11555 | If your version of make does not support VPATH correctly, | |
11556 | please install GNU-make (possibly as gmake), and start | |
11557 | configure with the following command: | |
11558 | export MAKE=gmake; ./configure for sh-type shells | |
11559 | setenv MAKE gmake; ./configure for csh-type shells | |
11560 | Also please do remember to use gmake in this case every time | |
11561 | you are trying to compile. | |
11562 | " >&2;} | |
11563 | { (exit 1); exit 1; }; } | |
11564 | fi fi | |
e6cc62c6 VS |
11565 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11566 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11567 | LN_S=$as_ln_s | |
11568 | if test "$LN_S" = "ln -s"; then | |
11569 | echo "$as_me:$LINENO: result: yes" >&5 | |
11570 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11571 | else |
e6cc62c6 VS |
11572 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11573 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11574 | fi |
5c6fa7d2 | 11575 | |
247f5006 | 11576 | |
2b5f62a0 VZ |
11577 | case "${host}" in |
11578 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11579 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11580 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11581 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11582 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11584 | else |
e6cc62c6 | 11585 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11586 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11587 | cat >conftest.$ac_ext <<_ACEOF |
11588 | #line $LINENO "configure" | |
11589 | /* confdefs.h. */ | |
11590 | _ACEOF | |
11591 | cat confdefs.h >>conftest.$ac_ext | |
11592 | cat >>conftest.$ac_ext <<_ACEOF | |
11593 | /* end confdefs.h. */ | |
11594 | ||
2b5f62a0 | 11595 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11596 | #ifdef __cplusplus |
11597 | extern "C" | |
11598 | #endif | |
2b5f62a0 | 11599 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11600 | builtin and then its argument prototype would still apply. */ |
11601 | char drand48 (); | |
11602 | int | |
11603 | main () | |
11604 | { | |
11605 | drand48 (); | |
11606 | ; | |
11607 | return 0; | |
11608 | } | |
11609 | _ACEOF | |
11610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11612 | (eval $ac_link) 2>&5 | |
11613 | ac_status=$? | |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11615 | (exit $ac_status); } && | |
11616 | { ac_try='test -s conftest$ac_exeext' | |
11617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11618 | (eval $ac_try) 2>&5 | |
11619 | ac_status=$? | |
11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11621 | (exit $ac_status); }; }; then | |
11622 | ac_cv_lib_cExt_drand48=yes | |
11623 | else | |
11624 | echo "$as_me: failed program was:" >&5 | |
11625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11626 | ||
11627 | ac_cv_lib_cExt_drand48=no | |
11628 | fi | |
11629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11630 | LIBS=$ac_check_lib_save_LIBS | |
11631 | fi | |
11632 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11633 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11634 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11635 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11636 | fi |
11637 | ||
11638 | else | |
11639 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11640 | fi | |
11641 | ;; | |
11642 | esac | |
11643 | ||
a0b9e27f | 11644 | |
01aa5863 VS |
11645 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11646 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11647 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11648 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11650 | else | |
11651 | ac_cv_header_strings_h=no | |
11652 | fi | |
11653 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11654 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11655 | if test "$ac_cv_header_strings_h" = "no"; then | |
11656 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11657 | echo "${ECHO_T}forced no into cache" >&6 | |
11658 | else | |
11659 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11660 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11661 | fi | |
11662 | fi | |
11663 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11664 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11665 | if test "${ac_cv_header_stdc+set}" = set; then | |
11666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11667 | else | |
11668 | cat >conftest.$ac_ext <<_ACEOF | |
11669 | #line $LINENO "configure" | |
11670 | /* confdefs.h. */ | |
11671 | _ACEOF | |
11672 | cat confdefs.h >>conftest.$ac_ext | |
11673 | cat >>conftest.$ac_ext <<_ACEOF | |
11674 | /* end confdefs.h. */ | |
11675 | #include <stdlib.h> | |
11676 | #include <stdarg.h> | |
11677 | #include <string.h> | |
11678 | #include <float.h> | |
247f5006 | 11679 | |
e6cc62c6 VS |
11680 | int |
11681 | main () | |
11682 | { | |
90dd450c | 11683 | |
e6cc62c6 VS |
11684 | ; |
11685 | return 0; | |
11686 | } | |
11687 | _ACEOF | |
11688 | rm -f conftest.$ac_objext | |
11689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11690 | (eval $ac_compile) 2>&5 | |
11691 | ac_status=$? | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); } && | |
11694 | { ac_try='test -s conftest.$ac_objext' | |
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11696 | (eval $ac_try) 2>&5 | |
11697 | ac_status=$? | |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); }; }; then | |
11700 | ac_cv_header_stdc=yes | |
8284b0c5 | 11701 | else |
e6cc62c6 VS |
11702 | echo "$as_me: failed program was:" >&5 |
11703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11704 | ||
11705 | ac_cv_header_stdc=no | |
21d1c967 | 11706 | fi |
e6cc62c6 | 11707 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11708 | |
e6cc62c6 VS |
11709 | if test $ac_cv_header_stdc = yes; then |
11710 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11711 | cat >conftest.$ac_ext <<_ACEOF | |
11712 | #line $LINENO "configure" | |
11713 | /* confdefs.h. */ | |
11714 | _ACEOF | |
11715 | cat confdefs.h >>conftest.$ac_ext | |
11716 | cat >>conftest.$ac_ext <<_ACEOF | |
11717 | /* end confdefs.h. */ | |
11718 | #include <string.h> | |
11719 | ||
11720 | _ACEOF | |
11721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11722 | $EGREP "memchr" >/dev/null 2>&1; then | |
11723 | : | |
11724 | else | |
11725 | ac_cv_header_stdc=no | |
3a922bb4 | 11726 | fi |
a0b9e27f | 11727 | rm -f conftest* |
e6cc62c6 | 11728 | |
90dd450c | 11729 | fi |
e6cc62c6 VS |
11730 | |
11731 | if test $ac_cv_header_stdc = yes; then | |
11732 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11733 | cat >conftest.$ac_ext <<_ACEOF | |
11734 | #line $LINENO "configure" | |
11735 | /* confdefs.h. */ | |
11736 | _ACEOF | |
11737 | cat confdefs.h >>conftest.$ac_ext | |
11738 | cat >>conftest.$ac_ext <<_ACEOF | |
11739 | /* end confdefs.h. */ | |
11740 | #include <stdlib.h> | |
11741 | ||
11742 | _ACEOF | |
11743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11744 | $EGREP "free" >/dev/null 2>&1; then | |
11745 | : | |
a0b9e27f | 11746 | else |
e6cc62c6 | 11747 | ac_cv_header_stdc=no |
21d1c967 | 11748 | fi |
e6cc62c6 | 11749 | rm -f conftest* |
247f5006 VZ |
11750 | |
11751 | fi | |
e6cc62c6 VS |
11752 | |
11753 | if test $ac_cv_header_stdc = yes; then | |
11754 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11755 | if test "$cross_compiling" = yes; then | |
11756 | : | |
11757 | else | |
11758 | cat >conftest.$ac_ext <<_ACEOF | |
11759 | #line $LINENO "configure" | |
11760 | /* confdefs.h. */ | |
11761 | _ACEOF | |
11762 | cat confdefs.h >>conftest.$ac_ext | |
11763 | cat >>conftest.$ac_ext <<_ACEOF | |
11764 | /* end confdefs.h. */ | |
11765 | #include <ctype.h> | |
11766 | #if ((' ' & 0x0FF) == 0x020) | |
11767 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11768 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11769 | #else | |
11770 | # define ISLOWER(c) \ | |
11771 | (('a' <= (c) && (c) <= 'i') \ | |
11772 | || ('j' <= (c) && (c) <= 'r') \ | |
11773 | || ('s' <= (c) && (c) <= 'z')) | |
11774 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11775 | #endif | |
11776 | ||
11777 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11778 | int | |
11779 | main () | |
11780 | { | |
11781 | int i; | |
11782 | for (i = 0; i < 256; i++) | |
11783 | if (XOR (islower (i), ISLOWER (i)) | |
11784 | || toupper (i) != TOUPPER (i)) | |
11785 | exit(2); | |
11786 | exit (0); | |
11787 | } | |
11788 | _ACEOF | |
11789 | rm -f conftest$ac_exeext | |
11790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11791 | (eval $ac_link) 2>&5 | |
11792 | ac_status=$? | |
11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11794 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11796 | (eval $ac_try) 2>&5 | |
11797 | ac_status=$? | |
11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11799 | (exit $ac_status); }; }; then | |
11800 | : | |
a0b9e27f | 11801 | else |
e6cc62c6 VS |
11802 | echo "$as_me: program exited with status $ac_status" >&5 |
11803 | echo "$as_me: failed program was:" >&5 | |
11804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11805 | ||
11806 | ( exit $ac_status ) | |
11807 | ac_cv_header_stdc=no | |
11808 | fi | |
11809 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11810 | fi | |
11811 | fi | |
11812 | fi | |
11813 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11814 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
11815 | if test $ac_cv_header_stdc = yes; then | |
11816 | ||
11817 | cat >>confdefs.h <<\_ACEOF | |
11818 | #define STDC_HEADERS 1 | |
11819 | _ACEOF | |
11820 | ||
a0b9e27f | 11821 | fi |
e6cc62c6 VS |
11822 | |
11823 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
11824 | ||
11825 | ||
11826 | ||
11827 | ||
11828 | ||
11829 | ||
11830 | ||
11831 | ||
11832 | ||
11833 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
11834 | inttypes.h stdint.h unistd.h | |
11835 | do | |
11836 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11841 | else | |
11842 | cat >conftest.$ac_ext <<_ACEOF | |
11843 | #line $LINENO "configure" | |
11844 | /* confdefs.h. */ | |
11845 | _ACEOF | |
11846 | cat confdefs.h >>conftest.$ac_ext | |
11847 | cat >>conftest.$ac_ext <<_ACEOF | |
11848 | /* end confdefs.h. */ | |
11849 | $ac_includes_default | |
11850 | ||
11851 | #include <$ac_header> | |
11852 | _ACEOF | |
11853 | rm -f conftest.$ac_objext | |
11854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11855 | (eval $ac_compile) 2>&5 | |
11856 | ac_status=$? | |
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11858 | (exit $ac_status); } && | |
11859 | { ac_try='test -s conftest.$ac_objext' | |
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11861 | (eval $ac_try) 2>&5 | |
11862 | ac_status=$? | |
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11864 | (exit $ac_status); }; }; then | |
11865 | eval "$as_ac_Header=yes" | |
11866 | else | |
11867 | echo "$as_me: failed program was:" >&5 | |
11868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11869 | ||
11870 | eval "$as_ac_Header=no" | |
11871 | fi | |
11872 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11873 | fi | |
11874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11877 | cat >>confdefs.h <<_ACEOF | |
11878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11879 | _ACEOF | |
11880 | ||
11881 | fi | |
11882 | ||
a0b9e27f | 11883 | done |
90dd450c | 11884 | |
e6cc62c6 VS |
11885 | |
11886 | ||
11887 | for ac_header in strings.h | |
21d1c967 | 11888 | do |
e6cc62c6 VS |
11889 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11891 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11895 | fi | |
11896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11898 | else | |
11899 | # Is the header compilable? | |
11900 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11902 | cat >conftest.$ac_ext <<_ACEOF | |
11903 | #line $LINENO "configure" | |
11904 | /* confdefs.h. */ | |
11905 | _ACEOF | |
11906 | cat confdefs.h >>conftest.$ac_ext | |
11907 | cat >>conftest.$ac_ext <<_ACEOF | |
11908 | /* end confdefs.h. */ | |
11909 | $ac_includes_default | |
11910 | #include <$ac_header> | |
11911 | _ACEOF | |
11912 | rm -f conftest.$ac_objext | |
11913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11914 | (eval $ac_compile) 2>&5 | |
11915 | ac_status=$? | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); } && | |
11918 | { ac_try='test -s conftest.$ac_objext' | |
11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11920 | (eval $ac_try) 2>&5 | |
11921 | ac_status=$? | |
11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11923 | (exit $ac_status); }; }; then | |
11924 | ac_header_compiler=yes | |
11925 | else | |
11926 | echo "$as_me: failed program was:" >&5 | |
11927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11928 | ||
11929 | ac_header_compiler=no | |
11930 | fi | |
11931 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11932 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11933 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11934 | ||
11935 | # Is the header present? | |
11936 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11937 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11938 | cat >conftest.$ac_ext <<_ACEOF | |
11939 | #line $LINENO "configure" | |
11940 | /* confdefs.h. */ | |
11941 | _ACEOF | |
11942 | cat confdefs.h >>conftest.$ac_ext | |
11943 | cat >>conftest.$ac_ext <<_ACEOF | |
11944 | /* end confdefs.h. */ | |
11945 | #include <$ac_header> | |
11946 | _ACEOF | |
11947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11949 | ac_status=$? | |
11950 | grep -v '^ *+' conftest.er1 >conftest.err | |
11951 | rm -f conftest.er1 | |
11952 | cat conftest.err >&5 | |
11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11954 | (exit $ac_status); } >/dev/null; then | |
11955 | if test -s conftest.err; then | |
11956 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11957 | else | |
11958 | ac_cpp_err= | |
11959 | fi | |
11960 | else | |
11961 | ac_cpp_err=yes | |
11962 | fi | |
11963 | if test -z "$ac_cpp_err"; then | |
11964 | ac_header_preproc=yes | |
11965 | else | |
11966 | echo "$as_me: failed program was:" >&5 | |
11967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11968 | ||
11969 | ac_header_preproc=no | |
11970 | fi | |
11971 | rm -f conftest.err conftest.$ac_ext | |
11972 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11973 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11974 | ||
11975 | # So? What about this header? | |
11976 | case $ac_header_compiler:$ac_header_preproc in | |
11977 | yes:no ) | |
11978 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11979 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11982 | ( | |
11983 | cat <<\_ASBOX | |
11984 | ## ------------------------------------ ## | |
11985 | ## Report this to bug-autoconf@gnu.org. ## | |
11986 | ## ------------------------------------ ## | |
11987 | _ASBOX | |
11988 | ) | | |
11989 | sed "s/^/$as_me: WARNING: /" >&2 | |
11990 | ;; | |
11991 | no:yes ) | |
11992 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11994 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11995 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11997 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11998 | ( | |
11999 | cat <<\_ASBOX | |
12000 | ## ------------------------------------ ## | |
12001 | ## Report this to bug-autoconf@gnu.org. ## | |
12002 | ## ------------------------------------ ## | |
12003 | _ASBOX | |
12004 | ) | | |
12005 | sed "s/^/$as_me: WARNING: /" >&2 | |
12006 | ;; | |
12007 | esac | |
12008 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12012 | else | |
12013 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12014 | fi |
e6cc62c6 VS |
12015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12016 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12017 | ||
a0b9e27f | 12018 | fi |
e6cc62c6 VS |
12019 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12020 | cat >>confdefs.h <<_ACEOF | |
12021 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12022 | _ACEOF | |
12023 | ||
12024 | fi | |
12025 | ||
12026 | done | |
12027 | ||
e6cc62c6 VS |
12028 | |
12029 | ||
12030 | for ac_header in stdlib.h | |
12031 | do | |
12032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12038 | fi | |
12039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12041 | else | |
12042 | # Is the header compilable? | |
12043 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12044 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12045 | cat >conftest.$ac_ext <<_ACEOF | |
12046 | #line $LINENO "configure" | |
12047 | /* confdefs.h. */ | |
12048 | _ACEOF | |
12049 | cat confdefs.h >>conftest.$ac_ext | |
12050 | cat >>conftest.$ac_ext <<_ACEOF | |
12051 | /* end confdefs.h. */ | |
12052 | $ac_includes_default | |
12053 | #include <$ac_header> | |
12054 | _ACEOF | |
12055 | rm -f conftest.$ac_objext | |
12056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12057 | (eval $ac_compile) 2>&5 | |
12058 | ac_status=$? | |
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12060 | (exit $ac_status); } && | |
12061 | { ac_try='test -s conftest.$ac_objext' | |
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12063 | (eval $ac_try) 2>&5 | |
12064 | ac_status=$? | |
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12066 | (exit $ac_status); }; }; then | |
12067 | ac_header_compiler=yes | |
12068 | else | |
12069 | echo "$as_me: failed program was:" >&5 | |
12070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12071 | ||
12072 | ac_header_compiler=no | |
12073 | fi | |
12074 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12077 | ||
12078 | # Is the header present? | |
12079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
12082 | #line $LINENO "configure" | |
12083 | /* confdefs.h. */ | |
12084 | _ACEOF | |
12085 | cat confdefs.h >>conftest.$ac_ext | |
12086 | cat >>conftest.$ac_ext <<_ACEOF | |
12087 | /* end confdefs.h. */ | |
12088 | #include <$ac_header> | |
12089 | _ACEOF | |
12090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12092 | ac_status=$? | |
12093 | grep -v '^ *+' conftest.er1 >conftest.err | |
12094 | rm -f conftest.er1 | |
12095 | cat conftest.err >&5 | |
12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12097 | (exit $ac_status); } >/dev/null; then | |
12098 | if test -s conftest.err; then | |
12099 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12100 | else | |
12101 | ac_cpp_err= | |
12102 | fi | |
12103 | else | |
12104 | ac_cpp_err=yes | |
12105 | fi | |
12106 | if test -z "$ac_cpp_err"; then | |
12107 | ac_header_preproc=yes | |
12108 | else | |
12109 | echo "$as_me: failed program was:" >&5 | |
12110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12111 | ||
12112 | ac_header_preproc=no | |
12113 | fi | |
12114 | rm -f conftest.err conftest.$ac_ext | |
12115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12117 | ||
12118 | # So? What about this header? | |
12119 | case $ac_header_compiler:$ac_header_preproc in | |
12120 | yes:no ) | |
12121 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12122 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12125 | ( | |
12126 | cat <<\_ASBOX | |
12127 | ## ------------------------------------ ## | |
12128 | ## Report this to bug-autoconf@gnu.org. ## | |
12129 | ## ------------------------------------ ## | |
12130 | _ASBOX | |
12131 | ) | | |
12132 | sed "s/^/$as_me: WARNING: /" >&2 | |
12133 | ;; | |
12134 | no:yes ) | |
12135 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12136 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12137 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12138 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12140 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12141 | ( | |
12142 | cat <<\_ASBOX | |
12143 | ## ------------------------------------ ## | |
12144 | ## Report this to bug-autoconf@gnu.org. ## | |
12145 | ## ------------------------------------ ## | |
12146 | _ASBOX | |
12147 | ) | | |
12148 | sed "s/^/$as_me: WARNING: /" >&2 | |
12149 | ;; | |
12150 | esac | |
12151 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12155 | else |
e6cc62c6 VS |
12156 | eval "$as_ac_Header=$ac_header_preproc" |
12157 | fi | |
12158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12159 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12160 | ||
21d1c967 | 12161 | fi |
e6cc62c6 VS |
12162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12163 | cat >>confdefs.h <<_ACEOF | |
12164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12165 | _ACEOF | |
12166 | ||
12167 | fi | |
12168 | ||
21d1c967 | 12169 | done |
4f14bcd8 | 12170 | |
5c6fa7d2 | 12171 | |
e6cc62c6 | 12172 | for ac_header in malloc.h |
21d1c967 | 12173 | do |
e6cc62c6 VS |
12174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12180 | fi | |
12181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12183 | else | |
12184 | # Is the header compilable? | |
12185 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12186 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12187 | cat >conftest.$ac_ext <<_ACEOF | |
12188 | #line $LINENO "configure" | |
12189 | /* confdefs.h. */ | |
12190 | _ACEOF | |
12191 | cat confdefs.h >>conftest.$ac_ext | |
12192 | cat >>conftest.$ac_ext <<_ACEOF | |
12193 | /* end confdefs.h. */ | |
12194 | $ac_includes_default | |
12195 | #include <$ac_header> | |
12196 | _ACEOF | |
12197 | rm -f conftest.$ac_objext | |
12198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12199 | (eval $ac_compile) 2>&5 | |
12200 | ac_status=$? | |
12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12202 | (exit $ac_status); } && | |
12203 | { ac_try='test -s conftest.$ac_objext' | |
12204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12205 | (eval $ac_try) 2>&5 | |
12206 | ac_status=$? | |
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12208 | (exit $ac_status); }; }; then | |
12209 | ac_header_compiler=yes | |
12210 | else | |
12211 | echo "$as_me: failed program was:" >&5 | |
12212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12213 | ||
12214 | ac_header_compiler=no | |
12215 | fi | |
12216 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12217 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12218 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12219 | ||
12220 | # Is the header present? | |
12221 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12222 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12223 | cat >conftest.$ac_ext <<_ACEOF | |
12224 | #line $LINENO "configure" | |
12225 | /* confdefs.h. */ | |
12226 | _ACEOF | |
12227 | cat confdefs.h >>conftest.$ac_ext | |
12228 | cat >>conftest.$ac_ext <<_ACEOF | |
12229 | /* end confdefs.h. */ | |
12230 | #include <$ac_header> | |
12231 | _ACEOF | |
12232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12234 | ac_status=$? | |
12235 | grep -v '^ *+' conftest.er1 >conftest.err | |
12236 | rm -f conftest.er1 | |
12237 | cat conftest.err >&5 | |
12238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12239 | (exit $ac_status); } >/dev/null; then | |
12240 | if test -s conftest.err; then | |
12241 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12242 | else | |
12243 | ac_cpp_err= | |
12244 | fi | |
12245 | else | |
12246 | ac_cpp_err=yes | |
12247 | fi | |
12248 | if test -z "$ac_cpp_err"; then | |
12249 | ac_header_preproc=yes | |
12250 | else | |
12251 | echo "$as_me: failed program was:" >&5 | |
12252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12253 | ||
12254 | ac_header_preproc=no | |
12255 | fi | |
12256 | rm -f conftest.err conftest.$ac_ext | |
12257 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12258 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12259 | ||
12260 | # So? What about this header? | |
12261 | case $ac_header_compiler:$ac_header_preproc in | |
12262 | yes:no ) | |
12263 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12264 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12266 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12267 | ( | |
12268 | cat <<\_ASBOX | |
12269 | ## ------------------------------------ ## | |
12270 | ## Report this to bug-autoconf@gnu.org. ## | |
12271 | ## ------------------------------------ ## | |
12272 | _ASBOX | |
12273 | ) | | |
12274 | sed "s/^/$as_me: WARNING: /" >&2 | |
12275 | ;; | |
12276 | no:yes ) | |
12277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12283 | ( | |
12284 | cat <<\_ASBOX | |
12285 | ## ------------------------------------ ## | |
12286 | ## Report this to bug-autoconf@gnu.org. ## | |
12287 | ## ------------------------------------ ## | |
12288 | _ASBOX | |
12289 | ) | | |
12290 | sed "s/^/$as_me: WARNING: /" >&2 | |
12291 | ;; | |
12292 | esac | |
12293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12297 | else | |
12298 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12299 | fi |
e6cc62c6 VS |
12300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12302 | ||
21d1c967 | 12303 | fi |
e6cc62c6 VS |
12304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12305 | cat >>confdefs.h <<_ACEOF | |
12306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12307 | _ACEOF | |
12308 | ||
12309 | fi | |
12310 | ||
12311 | done | |
12312 | ||
12313 | ||
12314 | for ac_header in unistd.h | |
12315 | do | |
12316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12322 | fi | |
12323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12325 | else | |
12326 | # Is the header compilable? | |
12327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12329 | cat >conftest.$ac_ext <<_ACEOF | |
12330 | #line $LINENO "configure" | |
12331 | /* confdefs.h. */ | |
12332 | _ACEOF | |
12333 | cat confdefs.h >>conftest.$ac_ext | |
12334 | cat >>conftest.$ac_ext <<_ACEOF | |
12335 | /* end confdefs.h. */ | |
12336 | $ac_includes_default | |
12337 | #include <$ac_header> | |
12338 | _ACEOF | |
12339 | rm -f conftest.$ac_objext | |
12340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12341 | (eval $ac_compile) 2>&5 | |
12342 | ac_status=$? | |
12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12344 | (exit $ac_status); } && | |
12345 | { ac_try='test -s conftest.$ac_objext' | |
12346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12347 | (eval $ac_try) 2>&5 | |
12348 | ac_status=$? | |
12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12350 | (exit $ac_status); }; }; then | |
12351 | ac_header_compiler=yes | |
12352 | else | |
12353 | echo "$as_me: failed program was:" >&5 | |
12354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12355 | ||
12356 | ac_header_compiler=no | |
12357 | fi | |
12358 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12360 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12361 | ||
12362 | # Is the header present? | |
12363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12365 | cat >conftest.$ac_ext <<_ACEOF | |
12366 | #line $LINENO "configure" | |
12367 | /* confdefs.h. */ | |
12368 | _ACEOF | |
12369 | cat confdefs.h >>conftest.$ac_ext | |
12370 | cat >>conftest.$ac_ext <<_ACEOF | |
12371 | /* end confdefs.h. */ | |
12372 | #include <$ac_header> | |
12373 | _ACEOF | |
12374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12376 | ac_status=$? | |
12377 | grep -v '^ *+' conftest.er1 >conftest.err | |
12378 | rm -f conftest.er1 | |
12379 | cat conftest.err >&5 | |
12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12381 | (exit $ac_status); } >/dev/null; then | |
12382 | if test -s conftest.err; then | |
12383 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12384 | else | |
12385 | ac_cpp_err= | |
12386 | fi | |
a0b9e27f | 12387 | else |
e6cc62c6 VS |
12388 | ac_cpp_err=yes |
12389 | fi | |
12390 | if test -z "$ac_cpp_err"; then | |
12391 | ac_header_preproc=yes | |
12392 | else | |
12393 | echo "$as_me: failed program was:" >&5 | |
12394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12395 | ||
12396 | ac_header_preproc=no | |
12397 | fi | |
12398 | rm -f conftest.err conftest.$ac_ext | |
12399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12400 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12401 | ||
12402 | # So? What about this header? | |
12403 | case $ac_header_compiler:$ac_header_preproc in | |
12404 | yes:no ) | |
12405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12409 | ( | |
12410 | cat <<\_ASBOX | |
12411 | ## ------------------------------------ ## | |
12412 | ## Report this to bug-autoconf@gnu.org. ## | |
12413 | ## ------------------------------------ ## | |
12414 | _ASBOX | |
12415 | ) | | |
12416 | sed "s/^/$as_me: WARNING: /" >&2 | |
12417 | ;; | |
12418 | no:yes ) | |
12419 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12420 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12421 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12422 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12424 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12425 | ( | |
12426 | cat <<\_ASBOX | |
12427 | ## ------------------------------------ ## | |
12428 | ## Report this to bug-autoconf@gnu.org. ## | |
12429 | ## ------------------------------------ ## | |
12430 | _ASBOX | |
12431 | ) | | |
12432 | sed "s/^/$as_me: WARNING: /" >&2 | |
12433 | ;; | |
12434 | esac | |
12435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12439 | else | |
12440 | eval "$as_ac_Header=$ac_header_preproc" | |
12441 | fi | |
12442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12444 | ||
12445 | fi | |
12446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12447 | cat >>confdefs.h <<_ACEOF | |
12448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12449 | _ACEOF | |
12450 | ||
d4158b5d | 12451 | fi |
e6cc62c6 | 12452 | |
21d1c967 | 12453 | done |
f6bcfd97 | 12454 | |
e6cc62c6 VS |
12455 | |
12456 | for ac_header in wchar.h | |
12457 | do | |
12458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12464 | fi | |
12465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12467 | else | |
12468 | # Is the header compilable? | |
12469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12471 | cat >conftest.$ac_ext <<_ACEOF | |
12472 | #line $LINENO "configure" | |
12473 | /* confdefs.h. */ | |
12474 | _ACEOF | |
12475 | cat confdefs.h >>conftest.$ac_ext | |
12476 | cat >>conftest.$ac_ext <<_ACEOF | |
12477 | /* end confdefs.h. */ | |
12478 | $ac_includes_default | |
12479 | #include <$ac_header> | |
12480 | _ACEOF | |
12481 | rm -f conftest.$ac_objext | |
12482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12483 | (eval $ac_compile) 2>&5 | |
12484 | ac_status=$? | |
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12486 | (exit $ac_status); } && | |
12487 | { ac_try='test -s conftest.$ac_objext' | |
12488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12489 | (eval $ac_try) 2>&5 | |
12490 | ac_status=$? | |
12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12492 | (exit $ac_status); }; }; then | |
12493 | ac_header_compiler=yes | |
12494 | else | |
12495 | echo "$as_me: failed program was:" >&5 | |
12496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12497 | ||
12498 | ac_header_compiler=no | |
12499 | fi | |
12500 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12503 | ||
12504 | # Is the header present? | |
12505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12507 | cat >conftest.$ac_ext <<_ACEOF | |
12508 | #line $LINENO "configure" | |
12509 | /* confdefs.h. */ | |
12510 | _ACEOF | |
12511 | cat confdefs.h >>conftest.$ac_ext | |
12512 | cat >>conftest.$ac_ext <<_ACEOF | |
12513 | /* end confdefs.h. */ | |
12514 | #include <$ac_header> | |
12515 | _ACEOF | |
12516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12518 | ac_status=$? | |
12519 | grep -v '^ *+' conftest.er1 >conftest.err | |
12520 | rm -f conftest.er1 | |
12521 | cat conftest.err >&5 | |
12522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12523 | (exit $ac_status); } >/dev/null; then | |
12524 | if test -s conftest.err; then | |
12525 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12526 | else | |
12527 | ac_cpp_err= | |
12528 | fi | |
12529 | else | |
12530 | ac_cpp_err=yes | |
12531 | fi | |
12532 | if test -z "$ac_cpp_err"; then | |
12533 | ac_header_preproc=yes | |
12534 | else | |
12535 | echo "$as_me: failed program was:" >&5 | |
12536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12537 | ||
12538 | ac_header_preproc=no | |
12539 | fi | |
12540 | rm -f conftest.err conftest.$ac_ext | |
12541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12543 | ||
12544 | # So? What about this header? | |
12545 | case $ac_header_compiler:$ac_header_preproc in | |
12546 | yes:no ) | |
12547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12551 | ( | |
12552 | cat <<\_ASBOX | |
12553 | ## ------------------------------------ ## | |
12554 | ## Report this to bug-autoconf@gnu.org. ## | |
12555 | ## ------------------------------------ ## | |
12556 | _ASBOX | |
12557 | ) | | |
12558 | sed "s/^/$as_me: WARNING: /" >&2 | |
12559 | ;; | |
12560 | no:yes ) | |
12561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12567 | ( | |
12568 | cat <<\_ASBOX | |
12569 | ## ------------------------------------ ## | |
12570 | ## Report this to bug-autoconf@gnu.org. ## | |
12571 | ## ------------------------------------ ## | |
12572 | _ASBOX | |
12573 | ) | | |
12574 | sed "s/^/$as_me: WARNING: /" >&2 | |
12575 | ;; | |
12576 | esac | |
12577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12581 | else | |
12582 | eval "$as_ac_Header=$ac_header_preproc" | |
12583 | fi | |
12584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12585 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12586 | ||
90dd450c | 12587 | fi |
e6cc62c6 VS |
12588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12589 | cat >>confdefs.h <<_ACEOF | |
12590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12591 | _ACEOF | |
12592 | ||
12593 | fi | |
12594 | ||
12595 | done | |
90dd450c | 12596 | |
e6cc62c6 VS |
12597 | |
12598 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12599 | ||
12600 | for ac_header in wcstr.h | |
21d1c967 | 12601 | do |
e6cc62c6 VS |
12602 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12608 | fi | |
12609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12611 | else | |
12612 | # Is the header compilable? | |
12613 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12615 | cat >conftest.$ac_ext <<_ACEOF | |
12616 | #line $LINENO "configure" | |
12617 | /* confdefs.h. */ | |
12618 | _ACEOF | |
12619 | cat confdefs.h >>conftest.$ac_ext | |
12620 | cat >>conftest.$ac_ext <<_ACEOF | |
12621 | /* end confdefs.h. */ | |
12622 | $ac_includes_default | |
12623 | #include <$ac_header> | |
12624 | _ACEOF | |
12625 | rm -f conftest.$ac_objext | |
12626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12627 | (eval $ac_compile) 2>&5 | |
12628 | ac_status=$? | |
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12630 | (exit $ac_status); } && | |
12631 | { ac_try='test -s conftest.$ac_objext' | |
12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12633 | (eval $ac_try) 2>&5 | |
12634 | ac_status=$? | |
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12636 | (exit $ac_status); }; }; then | |
12637 | ac_header_compiler=yes | |
12638 | else | |
12639 | echo "$as_me: failed program was:" >&5 | |
12640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12641 | ||
12642 | ac_header_compiler=no | |
12643 | fi | |
12644 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12646 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12647 | ||
12648 | # Is the header present? | |
12649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12651 | cat >conftest.$ac_ext <<_ACEOF | |
12652 | #line $LINENO "configure" | |
12653 | /* confdefs.h. */ | |
12654 | _ACEOF | |
12655 | cat confdefs.h >>conftest.$ac_ext | |
12656 | cat >>conftest.$ac_ext <<_ACEOF | |
12657 | /* end confdefs.h. */ | |
12658 | #include <$ac_header> | |
12659 | _ACEOF | |
12660 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12661 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12662 | ac_status=$? | |
12663 | grep -v '^ *+' conftest.er1 >conftest.err | |
12664 | rm -f conftest.er1 | |
12665 | cat conftest.err >&5 | |
12666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12667 | (exit $ac_status); } >/dev/null; then | |
12668 | if test -s conftest.err; then | |
12669 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12670 | else | |
12671 | ac_cpp_err= | |
12672 | fi | |
12673 | else | |
12674 | ac_cpp_err=yes | |
12675 | fi | |
12676 | if test -z "$ac_cpp_err"; then | |
12677 | ac_header_preproc=yes | |
12678 | else | |
12679 | echo "$as_me: failed program was:" >&5 | |
12680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12681 | ||
12682 | ac_header_preproc=no | |
12683 | fi | |
12684 | rm -f conftest.err conftest.$ac_ext | |
12685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12686 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12687 | ||
12688 | # So? What about this header? | |
12689 | case $ac_header_compiler:$ac_header_preproc in | |
12690 | yes:no ) | |
12691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12694 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12695 | ( | |
12696 | cat <<\_ASBOX | |
12697 | ## ------------------------------------ ## | |
12698 | ## Report this to bug-autoconf@gnu.org. ## | |
12699 | ## ------------------------------------ ## | |
12700 | _ASBOX | |
12701 | ) | | |
12702 | sed "s/^/$as_me: WARNING: /" >&2 | |
12703 | ;; | |
12704 | no:yes ) | |
12705 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12706 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12707 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12708 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12710 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12711 | ( | |
12712 | cat <<\_ASBOX | |
12713 | ## ------------------------------------ ## | |
12714 | ## Report this to bug-autoconf@gnu.org. ## | |
12715 | ## ------------------------------------ ## | |
12716 | _ASBOX | |
12717 | ) | | |
12718 | sed "s/^/$as_me: WARNING: /" >&2 | |
12719 | ;; | |
12720 | esac | |
12721 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12723 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12725 | else | |
12726 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12727 | fi |
e6cc62c6 VS |
12728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12730 | ||
4f14bcd8 | 12731 | fi |
e6cc62c6 VS |
12732 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12733 | cat >>confdefs.h <<_ACEOF | |
12734 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12735 | _ACEOF | |
12736 | ||
12737 | fi | |
12738 | ||
12739 | done | |
12740 | ||
12741 | fi | |
12742 | ||
12743 | ||
12744 | for ac_header in fnmatch.h | |
12745 | do | |
12746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12752 | fi | |
12753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12755 | else | |
12756 | # Is the header compilable? | |
12757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12759 | cat >conftest.$ac_ext <<_ACEOF | |
12760 | #line $LINENO "configure" | |
12761 | /* confdefs.h. */ | |
12762 | _ACEOF | |
12763 | cat confdefs.h >>conftest.$ac_ext | |
12764 | cat >>conftest.$ac_ext <<_ACEOF | |
12765 | /* end confdefs.h. */ | |
12766 | $ac_includes_default | |
12767 | #include <$ac_header> | |
12768 | _ACEOF | |
12769 | rm -f conftest.$ac_objext | |
12770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12771 | (eval $ac_compile) 2>&5 | |
12772 | ac_status=$? | |
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); } && | |
12775 | { ac_try='test -s conftest.$ac_objext' | |
12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12777 | (eval $ac_try) 2>&5 | |
12778 | ac_status=$? | |
12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12780 | (exit $ac_status); }; }; then | |
12781 | ac_header_compiler=yes | |
12782 | else | |
12783 | echo "$as_me: failed program was:" >&5 | |
12784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12785 | ||
12786 | ac_header_compiler=no | |
12787 | fi | |
12788 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12789 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12790 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12791 | ||
12792 | # Is the header present? | |
12793 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12794 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12795 | cat >conftest.$ac_ext <<_ACEOF | |
12796 | #line $LINENO "configure" | |
12797 | /* confdefs.h. */ | |
12798 | _ACEOF | |
12799 | cat confdefs.h >>conftest.$ac_ext | |
12800 | cat >>conftest.$ac_ext <<_ACEOF | |
12801 | /* end confdefs.h. */ | |
12802 | #include <$ac_header> | |
12803 | _ACEOF | |
12804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12806 | ac_status=$? | |
12807 | grep -v '^ *+' conftest.er1 >conftest.err | |
12808 | rm -f conftest.er1 | |
12809 | cat conftest.err >&5 | |
12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12811 | (exit $ac_status); } >/dev/null; then | |
12812 | if test -s conftest.err; then | |
12813 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12814 | else | |
12815 | ac_cpp_err= | |
12816 | fi | |
12817 | else | |
12818 | ac_cpp_err=yes | |
12819 | fi | |
12820 | if test -z "$ac_cpp_err"; then | |
12821 | ac_header_preproc=yes | |
12822 | else | |
12823 | echo "$as_me: failed program was:" >&5 | |
12824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12825 | ||
12826 | ac_header_preproc=no | |
12827 | fi | |
12828 | rm -f conftest.err conftest.$ac_ext | |
12829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12830 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12831 | ||
12832 | # So? What about this header? | |
12833 | case $ac_header_compiler:$ac_header_preproc in | |
12834 | yes:no ) | |
12835 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12836 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12837 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12838 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12839 | ( | |
12840 | cat <<\_ASBOX | |
12841 | ## ------------------------------------ ## | |
12842 | ## Report this to bug-autoconf@gnu.org. ## | |
12843 | ## ------------------------------------ ## | |
12844 | _ASBOX | |
12845 | ) | | |
12846 | sed "s/^/$as_me: WARNING: /" >&2 | |
12847 | ;; | |
12848 | no:yes ) | |
12849 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12850 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12851 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12852 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12854 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12855 | ( | |
12856 | cat <<\_ASBOX | |
12857 | ## ------------------------------------ ## | |
12858 | ## Report this to bug-autoconf@gnu.org. ## | |
12859 | ## ------------------------------------ ## | |
12860 | _ASBOX | |
12861 | ) | | |
12862 | sed "s/^/$as_me: WARNING: /" >&2 | |
12863 | ;; | |
12864 | esac | |
12865 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12869 | else |
e6cc62c6 VS |
12870 | eval "$as_ac_Header=$ac_header_preproc" |
12871 | fi | |
12872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12874 | ||
21d1c967 | 12875 | fi |
e6cc62c6 VS |
12876 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12877 | cat >>confdefs.h <<_ACEOF | |
12878 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12879 | _ACEOF | |
12880 | ||
12881 | fi | |
12882 | ||
21d1c967 | 12883 | done |
90dd450c | 12884 | |
5c6fa7d2 | 12885 | |
a0b9e27f | 12886 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
12887 | |
12888 | for ac_func in fnmatch | |
21d1c967 | 12889 | do |
e6cc62c6 VS |
12890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12891 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12893 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12895 | else | |
12896 | cat >conftest.$ac_ext <<_ACEOF | |
12897 | #line $LINENO "configure" | |
12898 | /* confdefs.h. */ | |
12899 | _ACEOF | |
12900 | cat confdefs.h >>conftest.$ac_ext | |
12901 | cat >>conftest.$ac_ext <<_ACEOF | |
12902 | /* end confdefs.h. */ | |
a0b9e27f | 12903 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
12904 | which can conflict with char $ac_func (); below. |
12905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12906 | <limits.h> exists even on freestanding compilers. */ | |
12907 | #ifdef __STDC__ | |
12908 | # include <limits.h> | |
12909 | #else | |
12910 | # include <assert.h> | |
12911 | #endif | |
a0b9e27f | 12912 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
12913 | #ifdef __cplusplus |
12914 | extern "C" | |
12915 | { | |
12916 | #endif | |
a0b9e27f | 12917 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
12918 | builtin and then its argument prototype would still apply. */ |
12919 | char $ac_func (); | |
a0b9e27f MB |
12920 | /* The GNU C library defines this for functions which it implements |
12921 | to always fail with ENOSYS. Some functions are actually named | |
12922 | something starting with __ and the normal name is an alias. */ | |
12923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12924 | choke me | |
12925 | #else | |
e6cc62c6 VS |
12926 | char (*f) () = $ac_func; |
12927 | #endif | |
12928 | #ifdef __cplusplus | |
12929 | } | |
a0b9e27f MB |
12930 | #endif |
12931 | ||
e6cc62c6 VS |
12932 | int |
12933 | main () | |
12934 | { | |
12935 | return f != $ac_func; | |
12936 | ; | |
12937 | return 0; | |
12938 | } | |
12939 | _ACEOF | |
12940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12942 | (eval $ac_link) 2>&5 | |
12943 | ac_status=$? | |
12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12945 | (exit $ac_status); } && | |
12946 | { ac_try='test -s conftest$ac_exeext' | |
12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12948 | (eval $ac_try) 2>&5 | |
12949 | ac_status=$? | |
12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12951 | (exit $ac_status); }; }; then | |
12952 | eval "$as_ac_var=yes" | |
12953 | else | |
12954 | echo "$as_me: failed program was:" >&5 | |
12955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12956 | ||
12957 | eval "$as_ac_var=no" | |
12958 | fi | |
12959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12960 | fi | |
12961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12963 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12964 | cat >>confdefs.h <<_ACEOF | |
12965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12966 | _ACEOF | |
32832908 | 12967 | |
21d1c967 GD |
12968 | fi |
12969 | done | |
90dd450c | 12970 | |
a0b9e27f | 12971 | fi |
90dd450c | 12972 | |
e6cc62c6 VS |
12973 | |
12974 | for ac_header in langinfo.h | |
21d1c967 | 12975 | do |
e6cc62c6 VS |
12976 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12978 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12982 | fi | |
12983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12985 | else | |
12986 | # Is the header compilable? | |
12987 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12988 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12989 | cat >conftest.$ac_ext <<_ACEOF | |
12990 | #line $LINENO "configure" | |
12991 | /* confdefs.h. */ | |
12992 | _ACEOF | |
12993 | cat confdefs.h >>conftest.$ac_ext | |
12994 | cat >>conftest.$ac_ext <<_ACEOF | |
12995 | /* end confdefs.h. */ | |
12996 | $ac_includes_default | |
12997 | #include <$ac_header> | |
12998 | _ACEOF | |
12999 | rm -f conftest.$ac_objext | |
13000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13001 | (eval $ac_compile) 2>&5 | |
13002 | ac_status=$? | |
13003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13004 | (exit $ac_status); } && | |
13005 | { ac_try='test -s conftest.$ac_objext' | |
13006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13007 | (eval $ac_try) 2>&5 | |
13008 | ac_status=$? | |
13009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13010 | (exit $ac_status); }; }; then | |
13011 | ac_header_compiler=yes | |
13012 | else | |
13013 | echo "$as_me: failed program was:" >&5 | |
13014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13015 | ||
13016 | ac_header_compiler=no | |
13017 | fi | |
13018 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13020 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13021 | ||
13022 | # Is the header present? | |
13023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13025 | cat >conftest.$ac_ext <<_ACEOF | |
13026 | #line $LINENO "configure" | |
13027 | /* confdefs.h. */ | |
13028 | _ACEOF | |
13029 | cat confdefs.h >>conftest.$ac_ext | |
13030 | cat >>conftest.$ac_ext <<_ACEOF | |
13031 | /* end confdefs.h. */ | |
13032 | #include <$ac_header> | |
13033 | _ACEOF | |
13034 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13035 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13036 | ac_status=$? | |
13037 | grep -v '^ *+' conftest.er1 >conftest.err | |
13038 | rm -f conftest.er1 | |
13039 | cat conftest.err >&5 | |
13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13041 | (exit $ac_status); } >/dev/null; then | |
13042 | if test -s conftest.err; then | |
13043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13044 | else | |
13045 | ac_cpp_err= | |
13046 | fi | |
13047 | else | |
13048 | ac_cpp_err=yes | |
13049 | fi | |
13050 | if test -z "$ac_cpp_err"; then | |
13051 | ac_header_preproc=yes | |
13052 | else | |
13053 | echo "$as_me: failed program was:" >&5 | |
13054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13055 | ||
13056 | ac_header_preproc=no | |
13057 | fi | |
13058 | rm -f conftest.err conftest.$ac_ext | |
13059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13060 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13061 | ||
13062 | # So? What about this header? | |
13063 | case $ac_header_compiler:$ac_header_preproc in | |
13064 | yes:no ) | |
13065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13068 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13069 | ( | |
13070 | cat <<\_ASBOX | |
13071 | ## ------------------------------------ ## | |
13072 | ## Report this to bug-autoconf@gnu.org. ## | |
13073 | ## ------------------------------------ ## | |
13074 | _ASBOX | |
13075 | ) | | |
13076 | sed "s/^/$as_me: WARNING: /" >&2 | |
13077 | ;; | |
13078 | no:yes ) | |
13079 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13080 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13081 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13082 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13084 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13085 | ( | |
13086 | cat <<\_ASBOX | |
13087 | ## ------------------------------------ ## | |
13088 | ## Report this to bug-autoconf@gnu.org. ## | |
13089 | ## ------------------------------------ ## | |
13090 | _ASBOX | |
13091 | ) | | |
13092 | sed "s/^/$as_me: WARNING: /" >&2 | |
13093 | ;; | |
13094 | esac | |
13095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13099 | else | |
13100 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13101 | fi |
e6cc62c6 VS |
13102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13104 | ||
4f14bcd8 | 13105 | fi |
e6cc62c6 VS |
13106 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13107 | cat >>confdefs.h <<_ACEOF | |
13108 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13109 | _ACEOF | |
13110 | ||
21d1c967 | 13111 | fi |
e6cc62c6 | 13112 | |
21d1c967 | 13113 | done |
3a922bb4 | 13114 | |
8284b0c5 | 13115 | |
4f5a7f74 VZ |
13116 | case "${host}" in |
13117 | *-pc-os2_emx | *-pc-os2-emx ) | |
13118 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13119 | LIBS="$LIBS -lintl" | |
13120 | fi | |
13121 | ;; | |
13122 | esac | |
1542ea39 | 13123 | |
a0b9e27f MB |
13124 | if test "$wxUSE_GUI" = "yes"; then |
13125 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 | 13126 | |
eb69fda5 | 13127 | for ac_header in X11/Xlib.h |
21d1c967 | 13128 | do |
e6cc62c6 VS |
13129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13135 | fi | |
13136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13138 | else | |
13139 | # Is the header compilable? | |
13140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13142 | cat >conftest.$ac_ext <<_ACEOF | |
13143 | #line $LINENO "configure" | |
13144 | /* confdefs.h. */ | |
13145 | _ACEOF | |
13146 | cat confdefs.h >>conftest.$ac_ext | |
13147 | cat >>conftest.$ac_ext <<_ACEOF | |
13148 | /* end confdefs.h. */ | |
13149 | $ac_includes_default | |
13150 | #include <$ac_header> | |
13151 | _ACEOF | |
13152 | rm -f conftest.$ac_objext | |
13153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13154 | (eval $ac_compile) 2>&5 | |
13155 | ac_status=$? | |
13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13157 | (exit $ac_status); } && | |
13158 | { ac_try='test -s conftest.$ac_objext' | |
13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13160 | (eval $ac_try) 2>&5 | |
13161 | ac_status=$? | |
13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13163 | (exit $ac_status); }; }; then | |
13164 | ac_header_compiler=yes | |
13165 | else | |
13166 | echo "$as_me: failed program was:" >&5 | |
13167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13168 | ||
13169 | ac_header_compiler=no | |
13170 | fi | |
13171 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13173 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13174 | ||
13175 | # Is the header present? | |
13176 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13177 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13178 | cat >conftest.$ac_ext <<_ACEOF | |
13179 | #line $LINENO "configure" | |
13180 | /* confdefs.h. */ | |
13181 | _ACEOF | |
13182 | cat confdefs.h >>conftest.$ac_ext | |
13183 | cat >>conftest.$ac_ext <<_ACEOF | |
13184 | /* end confdefs.h. */ | |
13185 | #include <$ac_header> | |
13186 | _ACEOF | |
13187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13189 | ac_status=$? | |
13190 | grep -v '^ *+' conftest.er1 >conftest.err | |
13191 | rm -f conftest.er1 | |
13192 | cat conftest.err >&5 | |
13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13194 | (exit $ac_status); } >/dev/null; then | |
13195 | if test -s conftest.err; then | |
13196 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13197 | else | |
13198 | ac_cpp_err= | |
13199 | fi | |
13200 | else | |
13201 | ac_cpp_err=yes | |
13202 | fi | |
13203 | if test -z "$ac_cpp_err"; then | |
13204 | ac_header_preproc=yes | |
13205 | else | |
13206 | echo "$as_me: failed program was:" >&5 | |
13207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13208 | ||
13209 | ac_header_preproc=no | |
13210 | fi | |
13211 | rm -f conftest.err conftest.$ac_ext | |
13212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13213 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13214 | ||
13215 | # So? What about this header? | |
13216 | case $ac_header_compiler:$ac_header_preproc in | |
13217 | yes:no ) | |
13218 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13219 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13222 | ( | |
13223 | cat <<\_ASBOX | |
13224 | ## ------------------------------------ ## | |
13225 | ## Report this to bug-autoconf@gnu.org. ## | |
13226 | ## ------------------------------------ ## | |
13227 | _ASBOX | |
13228 | ) | | |
13229 | sed "s/^/$as_me: WARNING: /" >&2 | |
13230 | ;; | |
13231 | no:yes ) | |
13232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13238 | ( | |
13239 | cat <<\_ASBOX | |
13240 | ## ------------------------------------ ## | |
13241 | ## Report this to bug-autoconf@gnu.org. ## | |
13242 | ## ------------------------------------ ## | |
13243 | _ASBOX | |
13244 | ) | | |
13245 | sed "s/^/$as_me: WARNING: /" >&2 | |
13246 | ;; | |
13247 | esac | |
13248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13252 | else | |
13253 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13254 | fi |
e6cc62c6 VS |
13255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13257 | ||
90dd450c | 13258 | fi |
e6cc62c6 VS |
13259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13260 | cat >>confdefs.h <<_ACEOF | |
13261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13262 | _ACEOF | |
13263 | ||
247f5006 | 13264 | fi |
e6cc62c6 | 13265 | |
eb69fda5 VS |
13266 | done |
13267 | ||
13268 | ||
13269 | for ac_header in X11/XKBlib.h | |
13270 | do | |
13271 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13276 | else | |
13277 | cat >conftest.$ac_ext <<_ACEOF | |
13278 | #line $LINENO "configure" | |
13279 | /* confdefs.h. */ | |
13280 | _ACEOF | |
13281 | cat confdefs.h >>conftest.$ac_ext | |
13282 | cat >>conftest.$ac_ext <<_ACEOF | |
13283 | /* end confdefs.h. */ | |
13284 | ||
13285 | #if HAVE_X11_XLIB_H | |
13286 | #include <X11/Xlib.h> | |
13287 | #endif | |
13288 | ||
13289 | ||
13290 | #include <$ac_header> | |
13291 | _ACEOF | |
13292 | rm -f conftest.$ac_objext | |
13293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13294 | (eval $ac_compile) 2>&5 | |
13295 | ac_status=$? | |
13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13297 | (exit $ac_status); } && | |
13298 | { ac_try='test -s conftest.$ac_objext' | |
13299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13300 | (eval $ac_try) 2>&5 | |
13301 | ac_status=$? | |
13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13303 | (exit $ac_status); }; }; then | |
13304 | eval "$as_ac_Header=yes" | |
13305 | else | |
13306 | echo "$as_me: failed program was:" >&5 | |
13307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13308 | ||
13309 | eval "$as_ac_Header=no" | |
13310 | fi | |
13311 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13312 | fi | |
13313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13316 | cat >>confdefs.h <<_ACEOF | |
13317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13318 | _ACEOF | |
13319 | ||
13320 | fi | |
13321 | ||
247f5006 VZ |
13322 | done |
13323 | ||
a0b9e27f MB |
13324 | fi |
13325 | fi | |
247f5006 | 13326 | |
247f5006 | 13327 | |
e6cc62c6 VS |
13328 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13329 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13330 | if test "${ac_cv_c_const+set}" = set; then | |
13331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13332 | else | |
13333 | cat >conftest.$ac_ext <<_ACEOF | |
13334 | #line $LINENO "configure" | |
13335 | /* confdefs.h. */ | |
13336 | _ACEOF | |
13337 | cat confdefs.h >>conftest.$ac_ext | |
13338 | cat >>conftest.$ac_ext <<_ACEOF | |
13339 | /* end confdefs.h. */ | |
13340 | ||
13341 | int | |
13342 | main () | |
13343 | { | |
13344 | /* FIXME: Include the comments suggested by Paul. */ | |
13345 | #ifndef __cplusplus | |
13346 | /* Ultrix mips cc rejects this. */ | |
13347 | typedef int charset[2]; | |
13348 | const charset x; | |
13349 | /* SunOS 4.1.1 cc rejects this. */ | |
13350 | char const *const *ccp; | |
13351 | char **p; | |
13352 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13353 | struct point {int x, y;}; | |
13354 | static struct point const zero = {0,0}; | |
13355 | /* AIX XL C 1.02.0.0 rejects this. | |
13356 | It does not let you subtract one const X* pointer from another in | |
13357 | an arm of an if-expression whose if-part is not a constant | |
13358 | expression */ | |
13359 | const char *g = "string"; | |
13360 | ccp = &g + (g ? g-g : 0); | |
13361 | /* HPUX 7.0 cc rejects these. */ | |
13362 | ++ccp; | |
13363 | p = (char**) ccp; | |
13364 | ccp = (char const *const *) p; | |
13365 | { /* SCO 3.2v4 cc rejects this. */ | |
13366 | char *t; | |
13367 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13368 | ||
13369 | *t++ = 0; | |
13370 | } | |
13371 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13372 | int x[] = {25, 17}; | |
13373 | const int *foo = &x[0]; | |
13374 | ++foo; | |
13375 | } | |
13376 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13377 | typedef const int *iptr; | |
13378 | iptr p = 0; | |
13379 | ++p; | |
13380 | } | |
13381 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13382 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13383 | struct s { int j; const int *ap[3]; }; | |
13384 | struct s *b; b->j = 5; | |
13385 | } | |
13386 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13387 | const int foo = 10; | |
13388 | } | |
13389 | #endif | |
13390 | ||
13391 | ; | |
13392 | return 0; | |
13393 | } | |
13394 | _ACEOF | |
13395 | rm -f conftest.$ac_objext | |
13396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13397 | (eval $ac_compile) 2>&5 | |
13398 | ac_status=$? | |
13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13400 | (exit $ac_status); } && | |
13401 | { ac_try='test -s conftest.$ac_objext' | |
13402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13403 | (eval $ac_try) 2>&5 | |
13404 | ac_status=$? | |
13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13406 | (exit $ac_status); }; }; then | |
a0b9e27f | 13407 | ac_cv_c_const=yes |
247f5006 | 13408 | else |
e6cc62c6 VS |
13409 | echo "$as_me: failed program was:" >&5 |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13411 | ||
13412 | ac_cv_c_const=no | |
247f5006 | 13413 | fi |
e6cc62c6 | 13414 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13415 | fi |
e6cc62c6 VS |
13416 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13417 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13418 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13419 | |
13420 | cat >>confdefs.h <<\_ACEOF | |
13421 | #define const | |
13422 | _ACEOF | |
10f2d63a | 13423 | |
90dd450c | 13424 | fi |
81809c07 | 13425 | |
e6cc62c6 VS |
13426 | echo "$as_me:$LINENO: checking for inline" >&5 |
13427 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13428 | if test "${ac_cv_c_inline+set}" = set; then | |
13429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13430 | else |
a0b9e27f MB |
13431 | ac_cv_c_inline=no |
13432 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13433 | cat >conftest.$ac_ext <<_ACEOF |
13434 | #line $LINENO "configure" | |
13435 | /* confdefs.h. */ | |
13436 | _ACEOF | |
13437 | cat confdefs.h >>conftest.$ac_ext | |
13438 | cat >>conftest.$ac_ext <<_ACEOF | |
13439 | /* end confdefs.h. */ | |
13440 | #ifndef __cplusplus | |
13441 | typedef int foo_t; | |
13442 | static $ac_kw foo_t static_foo () {return 0; } | |
13443 | $ac_kw foo_t foo () {return 0; } | |
13444 | #endif | |
a0b9e27f | 13445 | |
e6cc62c6 VS |
13446 | _ACEOF |
13447 | rm -f conftest.$ac_objext | |
13448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13449 | (eval $ac_compile) 2>&5 | |
13450 | ac_status=$? | |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13452 | (exit $ac_status); } && | |
13453 | { ac_try='test -s conftest.$ac_objext' | |
13454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13455 | (eval $ac_try) 2>&5 | |
13456 | ac_status=$? | |
13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); }; }; then | |
a0b9e27f | 13459 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13460 | else |
e6cc62c6 VS |
13461 | echo "$as_me: failed program was:" >&5 |
13462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13463 | ||
247f5006 | 13464 | fi |
e6cc62c6 | 13465 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13466 | done |
247f5006 VZ |
13467 | |
13468 | fi | |
e6cc62c6 VS |
13469 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13470 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13471 | case $ac_cv_c_inline in | |
a0b9e27f | 13472 | inline | yes) ;; |
e6cc62c6 VS |
13473 | no) |
13474 | cat >>confdefs.h <<\_ACEOF | |
13475 | #define inline | |
13476 | _ACEOF | |
a0b9e27f | 13477 | ;; |
e6cc62c6 | 13478 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13479 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13480 | _ACEOF |
a0b9e27f MB |
13481 | ;; |
13482 | esac | |
247f5006 | 13483 | |
247f5006 | 13484 | |
e6cc62c6 VS |
13485 | echo "$as_me:$LINENO: checking for char" >&5 |
13486 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13487 | if test "${ac_cv_type_char+set}" = set; then | |
13488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13489 | else | |
13490 | cat >conftest.$ac_ext <<_ACEOF | |
13491 | #line $LINENO "configure" | |
13492 | /* confdefs.h. */ | |
13493 | _ACEOF | |
13494 | cat confdefs.h >>conftest.$ac_ext | |
13495 | cat >>conftest.$ac_ext <<_ACEOF | |
13496 | /* end confdefs.h. */ | |
13497 | $ac_includes_default | |
13498 | int | |
13499 | main () | |
13500 | { | |
13501 | if ((char *) 0) | |
13502 | return 0; | |
13503 | if (sizeof (char)) | |
13504 | return 0; | |
13505 | ; | |
13506 | return 0; | |
13507 | } | |
13508 | _ACEOF | |
13509 | rm -f conftest.$ac_objext | |
13510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13511 | (eval $ac_compile) 2>&5 | |
13512 | ac_status=$? | |
13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13514 | (exit $ac_status); } && | |
13515 | { ac_try='test -s conftest.$ac_objext' | |
13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13517 | (eval $ac_try) 2>&5 | |
13518 | ac_status=$? | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); }; }; then | |
13521 | ac_cv_type_char=yes | |
13522 | else | |
13523 | echo "$as_me: failed program was:" >&5 | |
13524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13525 | ||
13526 | ac_cv_type_char=no | |
13527 | fi | |
13528 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13529 | fi | |
13530 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13531 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13532 | ||
13533 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13534 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13535 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13537 | else | |
13538 | if test "$ac_cv_type_char" = yes; then | |
13539 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13542 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13543 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13544 | # Depending upon the size, compute the lo and hi bounds. |
13545 | cat >conftest.$ac_ext <<_ACEOF | |
13546 | #line $LINENO "configure" | |
13547 | /* confdefs.h. */ | |
13548 | _ACEOF | |
13549 | cat confdefs.h >>conftest.$ac_ext | |
13550 | cat >>conftest.$ac_ext <<_ACEOF | |
13551 | /* end confdefs.h. */ | |
13552 | $ac_includes_default | |
13553 | int | |
13554 | main () | |
13555 | { | |
13556 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13557 | test_array [0] = 0 | |
13558 | ||
13559 | ; | |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
13563 | rm -f conftest.$ac_objext | |
13564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13565 | (eval $ac_compile) 2>&5 | |
13566 | ac_status=$? | |
13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13568 | (exit $ac_status); } && | |
13569 | { ac_try='test -s conftest.$ac_objext' | |
13570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13571 | (eval $ac_try) 2>&5 | |
13572 | ac_status=$? | |
13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13574 | (exit $ac_status); }; }; then | |
13575 | ac_lo=0 ac_mid=0 | |
13576 | while :; do | |
13577 | cat >conftest.$ac_ext <<_ACEOF | |
13578 | #line $LINENO "configure" | |
13579 | /* confdefs.h. */ | |
13580 | _ACEOF | |
13581 | cat confdefs.h >>conftest.$ac_ext | |
13582 | cat >>conftest.$ac_ext <<_ACEOF | |
13583 | /* end confdefs.h. */ | |
13584 | $ac_includes_default | |
13585 | int | |
13586 | main () | |
13587 | { | |
13588 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13589 | test_array [0] = 0 | |
13590 | ||
13591 | ; | |
13592 | return 0; | |
13593 | } | |
13594 | _ACEOF | |
13595 | rm -f conftest.$ac_objext | |
13596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13597 | (eval $ac_compile) 2>&5 | |
13598 | ac_status=$? | |
13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13600 | (exit $ac_status); } && | |
13601 | { ac_try='test -s conftest.$ac_objext' | |
13602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13603 | (eval $ac_try) 2>&5 | |
13604 | ac_status=$? | |
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13606 | (exit $ac_status); }; }; then | |
13607 | ac_hi=$ac_mid; break | |
13608 | else | |
13609 | echo "$as_me: failed program was:" >&5 | |
13610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13611 | ||
13612 | ac_lo=`expr $ac_mid + 1` | |
13613 | if test $ac_lo -le $ac_mid; then | |
13614 | ac_lo= ac_hi= | |
13615 | break | |
13616 | fi | |
13617 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13618 | fi | |
13619 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13620 | done | |
a0b9e27f | 13621 | else |
e6cc62c6 VS |
13622 | echo "$as_me: failed program was:" >&5 |
13623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13624 | ||
13625 | cat >conftest.$ac_ext <<_ACEOF | |
13626 | #line $LINENO "configure" | |
13627 | /* confdefs.h. */ | |
13628 | _ACEOF | |
13629 | cat confdefs.h >>conftest.$ac_ext | |
13630 | cat >>conftest.$ac_ext <<_ACEOF | |
13631 | /* end confdefs.h. */ | |
13632 | $ac_includes_default | |
13633 | int | |
13634 | main () | |
13635 | { | |
13636 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13637 | test_array [0] = 0 | |
13638 | ||
13639 | ; | |
13640 | return 0; | |
13641 | } | |
13642 | _ACEOF | |
13643 | rm -f conftest.$ac_objext | |
13644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13645 | (eval $ac_compile) 2>&5 | |
13646 | ac_status=$? | |
13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13648 | (exit $ac_status); } && | |
13649 | { ac_try='test -s conftest.$ac_objext' | |
13650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13651 | (eval $ac_try) 2>&5 | |
13652 | ac_status=$? | |
13653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13654 | (exit $ac_status); }; }; then | |
13655 | ac_hi=-1 ac_mid=-1 | |
13656 | while :; do | |
13657 | cat >conftest.$ac_ext <<_ACEOF | |
13658 | #line $LINENO "configure" | |
13659 | /* confdefs.h. */ | |
13660 | _ACEOF | |
13661 | cat confdefs.h >>conftest.$ac_ext | |
13662 | cat >>conftest.$ac_ext <<_ACEOF | |
13663 | /* end confdefs.h. */ | |
13664 | $ac_includes_default | |
13665 | int | |
13666 | main () | |
13667 | { | |
13668 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13669 | test_array [0] = 0 | |
13670 | ||
13671 | ; | |
13672 | return 0; | |
13673 | } | |
13674 | _ACEOF | |
13675 | rm -f conftest.$ac_objext | |
13676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13677 | (eval $ac_compile) 2>&5 | |
13678 | ac_status=$? | |
13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13680 | (exit $ac_status); } && | |
13681 | { ac_try='test -s conftest.$ac_objext' | |
13682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13683 | (eval $ac_try) 2>&5 | |
13684 | ac_status=$? | |
13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13686 | (exit $ac_status); }; }; then | |
13687 | ac_lo=$ac_mid; break | |
13688 | else | |
13689 | echo "$as_me: failed program was:" >&5 | |
13690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13691 | ||
13692 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13693 | if test $ac_mid -le $ac_hi; then | |
13694 | ac_lo= ac_hi= | |
13695 | break | |
13696 | fi | |
13697 | ac_mid=`expr 2 '*' $ac_mid` | |
13698 | fi | |
13699 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13700 | done | |
13701 | else | |
13702 | echo "$as_me: failed program was:" >&5 | |
13703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13704 | ||
13705 | ac_lo= ac_hi= | |
13706 | fi | |
13707 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13708 | fi | |
13709 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13710 | # Binary search between lo and hi bounds. | |
13711 | while test "x$ac_lo" != "x$ac_hi"; do | |
13712 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13713 | cat >conftest.$ac_ext <<_ACEOF | |
13714 | #line $LINENO "configure" | |
13715 | /* confdefs.h. */ | |
13716 | _ACEOF | |
13717 | cat confdefs.h >>conftest.$ac_ext | |
13718 | cat >>conftest.$ac_ext <<_ACEOF | |
13719 | /* end confdefs.h. */ | |
13720 | $ac_includes_default | |
13721 | int | |
13722 | main () | |
13723 | { | |
13724 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13725 | test_array [0] = 0 | |
13726 | ||
13727 | ; | |
13728 | return 0; | |
13729 | } | |
13730 | _ACEOF | |
13731 | rm -f conftest.$ac_objext | |
13732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13733 | (eval $ac_compile) 2>&5 | |
13734 | ac_status=$? | |
13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13736 | (exit $ac_status); } && | |
13737 | { ac_try='test -s conftest.$ac_objext' | |
13738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13739 | (eval $ac_try) 2>&5 | |
13740 | ac_status=$? | |
13741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13742 | (exit $ac_status); }; }; then | |
13743 | ac_hi=$ac_mid | |
13744 | else | |
13745 | echo "$as_me: failed program was:" >&5 | |
13746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13747 | ||
13748 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13749 | fi | |
13750 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13751 | done | |
13752 | case $ac_lo in | |
13753 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13754 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13755 | See \`config.log' for more details." >&5 | |
13756 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13757 | See \`config.log' for more details." >&2;} | |
13758 | { (exit 1); exit 1; }; } ;; | |
13759 | esac | |
13760 | else | |
13761 | if test "$cross_compiling" = yes; then | |
13762 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13763 | See \`config.log' for more details." >&5 | |
13764 | echo "$as_me: error: cannot run test program while cross compiling | |
13765 | See \`config.log' for more details." >&2;} | |
13766 | { (exit 1); exit 1; }; } | |
13767 | else | |
13768 | cat >conftest.$ac_ext <<_ACEOF | |
13769 | #line $LINENO "configure" | |
13770 | /* confdefs.h. */ | |
13771 | _ACEOF | |
13772 | cat confdefs.h >>conftest.$ac_ext | |
13773 | cat >>conftest.$ac_ext <<_ACEOF | |
13774 | /* end confdefs.h. */ | |
13775 | $ac_includes_default | |
13776 | long longval () { return (long) (sizeof (char)); } | |
13777 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13778 | #include <stdio.h> |
e6cc62c6 VS |
13779 | #include <stdlib.h> |
13780 | int | |
13781 | main () | |
247f5006 | 13782 | { |
e6cc62c6 VS |
13783 | |
13784 | FILE *f = fopen ("conftest.val", "w"); | |
13785 | if (! f) | |
13786 | exit (1); | |
13787 | if (((long) (sizeof (char))) < 0) | |
13788 | { | |
13789 | long i = longval (); | |
13790 | if (i != ((long) (sizeof (char)))) | |
13791 | exit (1); | |
13792 | fprintf (f, "%ld\n", i); | |
13793 | } | |
13794 | else | |
13795 | { | |
13796 | unsigned long i = ulongval (); | |
13797 | if (i != ((long) (sizeof (char)))) | |
13798 | exit (1); | |
13799 | fprintf (f, "%lu\n", i); | |
13800 | } | |
13801 | exit (ferror (f) || fclose (f) != 0); | |
13802 | ||
13803 | ; | |
13804 | return 0; | |
52127426 | 13805 | } |
e6cc62c6 VS |
13806 | _ACEOF |
13807 | rm -f conftest$ac_exeext | |
13808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13809 | (eval $ac_link) 2>&5 | |
13810 | ac_status=$? | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13814 | (eval $ac_try) 2>&5 | |
13815 | ac_status=$? | |
13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13817 | (exit $ac_status); }; }; then | |
13818 | ac_cv_sizeof_char=`cat conftest.val` | |
13819 | else | |
13820 | echo "$as_me: program exited with status $ac_status" >&5 | |
13821 | echo "$as_me: failed program was:" >&5 | |
13822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13823 | ||
13824 | ( exit $ac_status ) | |
13825 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13826 | See \`config.log' for more details." >&5 | |
13827 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13828 | See \`config.log' for more details." >&2;} | |
13829 | { (exit 1); exit 1; }; } | |
13830 | fi | |
13831 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13832 | fi | |
13833 | fi | |
13834 | rm -f conftest.val | |
247f5006 | 13835 | else |
a0b9e27f | 13836 | ac_cv_sizeof_char=0 |
247f5006 | 13837 | fi |
247f5006 | 13838 | fi |
e6cc62c6 VS |
13839 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13840 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13841 | cat >>confdefs.h <<_ACEOF | |
13842 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13843 | _ACEOF | |
13844 | ||
13845 | ||
13846 | echo "$as_me:$LINENO: checking for short" >&5 | |
13847 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
13848 | if test "${ac_cv_type_short+set}" = set; then | |
13849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13850 | else | |
13851 | cat >conftest.$ac_ext <<_ACEOF | |
13852 | #line $LINENO "configure" | |
13853 | /* confdefs.h. */ | |
13854 | _ACEOF | |
13855 | cat confdefs.h >>conftest.$ac_ext | |
13856 | cat >>conftest.$ac_ext <<_ACEOF | |
13857 | /* end confdefs.h. */ | |
13858 | $ac_includes_default | |
13859 | int | |
13860 | main () | |
13861 | { | |
13862 | if ((short *) 0) | |
13863 | return 0; | |
13864 | if (sizeof (short)) | |
13865 | return 0; | |
13866 | ; | |
13867 | return 0; | |
13868 | } | |
13869 | _ACEOF | |
13870 | rm -f conftest.$ac_objext | |
13871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13872 | (eval $ac_compile) 2>&5 | |
13873 | ac_status=$? | |
13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13875 | (exit $ac_status); } && | |
13876 | { ac_try='test -s conftest.$ac_objext' | |
13877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13878 | (eval $ac_try) 2>&5 | |
13879 | ac_status=$? | |
13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13881 | (exit $ac_status); }; }; then | |
13882 | ac_cv_type_short=yes | |
13883 | else | |
13884 | echo "$as_me: failed program was:" >&5 | |
13885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13886 | ||
13887 | ac_cv_type_short=no | |
13888 | fi | |
13889 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13890 | fi | |
13891 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
13892 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
13893 | ||
13894 | echo "$as_me:$LINENO: checking size of short" >&5 | |
13895 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
13896 | if test "${ac_cv_sizeof_short+set}" = set; then | |
13897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13898 | else | |
13899 | if test "$ac_cv_type_short" = yes; then | |
13900 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13901 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13902 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13903 | # This bug is HP SR number 8606223364. | |
13904 | if test "$cross_compiling" = yes; then | |
13905 | # Depending upon the size, compute the lo and hi bounds. | |
13906 | cat >conftest.$ac_ext <<_ACEOF | |
13907 | #line $LINENO "configure" | |
13908 | /* confdefs.h. */ | |
13909 | _ACEOF | |
13910 | cat confdefs.h >>conftest.$ac_ext | |
13911 | cat >>conftest.$ac_ext <<_ACEOF | |
13912 | /* end confdefs.h. */ | |
13913 | $ac_includes_default | |
13914 | int | |
13915 | main () | |
13916 | { | |
13917 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
13918 | test_array [0] = 0 | |
247f5006 | 13919 | |
e6cc62c6 VS |
13920 | ; |
13921 | return 0; | |
13922 | } | |
13923 | _ACEOF | |
13924 | rm -f conftest.$ac_objext | |
13925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13926 | (eval $ac_compile) 2>&5 | |
13927 | ac_status=$? | |
13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13929 | (exit $ac_status); } && | |
13930 | { ac_try='test -s conftest.$ac_objext' | |
13931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13932 | (eval $ac_try) 2>&5 | |
13933 | ac_status=$? | |
13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13935 | (exit $ac_status); }; }; then | |
13936 | ac_lo=0 ac_mid=0 | |
13937 | while :; do | |
13938 | cat >conftest.$ac_ext <<_ACEOF | |
13939 | #line $LINENO "configure" | |
13940 | /* confdefs.h. */ | |
13941 | _ACEOF | |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
13945 | $ac_includes_default | |
13946 | int | |
13947 | main () | |
13948 | { | |
13949 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
13950 | test_array [0] = 0 | |
13951 | ||
13952 | ; | |
13953 | return 0; | |
13954 | } | |
13955 | _ACEOF | |
13956 | rm -f conftest.$ac_objext | |
13957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13958 | (eval $ac_compile) 2>&5 | |
13959 | ac_status=$? | |
13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13961 | (exit $ac_status); } && | |
13962 | { ac_try='test -s conftest.$ac_objext' | |
13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13964 | (eval $ac_try) 2>&5 | |
13965 | ac_status=$? | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); }; }; then | |
13968 | ac_hi=$ac_mid; break | |
13969 | else | |
13970 | echo "$as_me: failed program was:" >&5 | |
13971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13972 | ||
13973 | ac_lo=`expr $ac_mid + 1` | |
13974 | if test $ac_lo -le $ac_mid; then | |
13975 | ac_lo= ac_hi= | |
13976 | break | |
13977 | fi | |
13978 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 13979 | fi |
e6cc62c6 VS |
13980 | rm -f conftest.$ac_objext conftest.$ac_ext |
13981 | done | |
13982 | else | |
13983 | echo "$as_me: failed program was:" >&5 | |
13984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13985 | ||
13986 | cat >conftest.$ac_ext <<_ACEOF | |
13987 | #line $LINENO "configure" | |
13988 | /* confdefs.h. */ | |
13989 | _ACEOF | |
13990 | cat confdefs.h >>conftest.$ac_ext | |
13991 | cat >>conftest.$ac_ext <<_ACEOF | |
13992 | /* end confdefs.h. */ | |
13993 | $ac_includes_default | |
13994 | int | |
13995 | main () | |
13996 | { | |
13997 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
13998 | test_array [0] = 0 | |
247f5006 | 13999 | |
e6cc62c6 VS |
14000 | ; |
14001 | return 0; | |
14002 | } | |
14003 | _ACEOF | |
14004 | rm -f conftest.$ac_objext | |
14005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14006 | (eval $ac_compile) 2>&5 | |
14007 | ac_status=$? | |
14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14009 | (exit $ac_status); } && | |
14010 | { ac_try='test -s conftest.$ac_objext' | |
14011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14012 | (eval $ac_try) 2>&5 | |
14013 | ac_status=$? | |
14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14015 | (exit $ac_status); }; }; then | |
14016 | ac_hi=-1 ac_mid=-1 | |
14017 | while :; do | |
14018 | cat >conftest.$ac_ext <<_ACEOF | |
14019 | #line $LINENO "configure" | |
14020 | /* confdefs.h. */ | |
14021 | _ACEOF | |
14022 | cat confdefs.h >>conftest.$ac_ext | |
14023 | cat >>conftest.$ac_ext <<_ACEOF | |
14024 | /* end confdefs.h. */ | |
14025 | $ac_includes_default | |
14026 | int | |
14027 | main () | |
14028 | { | |
14029 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14030 | test_array [0] = 0 | |
247f5006 | 14031 | |
e6cc62c6 VS |
14032 | ; |
14033 | return 0; | |
14034 | } | |
14035 | _ACEOF | |
14036 | rm -f conftest.$ac_objext | |
14037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14038 | (eval $ac_compile) 2>&5 | |
14039 | ac_status=$? | |
14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14041 | (exit $ac_status); } && | |
14042 | { ac_try='test -s conftest.$ac_objext' | |
14043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14044 | (eval $ac_try) 2>&5 | |
14045 | ac_status=$? | |
14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14047 | (exit $ac_status); }; }; then | |
14048 | ac_lo=$ac_mid; break | |
14049 | else | |
14050 | echo "$as_me: failed program was:" >&5 | |
14051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14052 | ||
14053 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14054 | if test $ac_mid -le $ac_hi; then | |
14055 | ac_lo= ac_hi= | |
14056 | break | |
14057 | fi | |
14058 | ac_mid=`expr 2 '*' $ac_mid` | |
14059 | fi | |
14060 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14061 | done | |
247f5006 | 14062 | else |
e6cc62c6 VS |
14063 | echo "$as_me: failed program was:" >&5 |
14064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14065 | ||
14066 | ac_lo= ac_hi= | |
14067 | fi | |
14068 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14069 | fi | |
14070 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14071 | # Binary search between lo and hi bounds. | |
14072 | while test "x$ac_lo" != "x$ac_hi"; do | |
14073 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14074 | cat >conftest.$ac_ext <<_ACEOF | |
14075 | #line $LINENO "configure" | |
14076 | /* confdefs.h. */ | |
14077 | _ACEOF | |
14078 | cat confdefs.h >>conftest.$ac_ext | |
14079 | cat >>conftest.$ac_ext <<_ACEOF | |
14080 | /* end confdefs.h. */ | |
14081 | $ac_includes_default | |
14082 | int | |
14083 | main () | |
14084 | { | |
14085 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14086 | test_array [0] = 0 | |
14087 | ||
14088 | ; | |
14089 | return 0; | |
14090 | } | |
14091 | _ACEOF | |
14092 | rm -f conftest.$ac_objext | |
14093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14094 | (eval $ac_compile) 2>&5 | |
14095 | ac_status=$? | |
14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14097 | (exit $ac_status); } && | |
14098 | { ac_try='test -s conftest.$ac_objext' | |
14099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14100 | (eval $ac_try) 2>&5 | |
14101 | ac_status=$? | |
14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14103 | (exit $ac_status); }; }; then | |
14104 | ac_hi=$ac_mid | |
14105 | else | |
14106 | echo "$as_me: failed program was:" >&5 | |
14107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14108 | ||
14109 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14110 | fi | |
14111 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14112 | done | |
14113 | case $ac_lo in | |
14114 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14115 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14116 | See \`config.log' for more details." >&5 | |
14117 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14118 | See \`config.log' for more details." >&2;} | |
14119 | { (exit 1); exit 1; }; } ;; | |
14120 | esac | |
247f5006 | 14121 | else |
e6cc62c6 VS |
14122 | if test "$cross_compiling" = yes; then |
14123 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14124 | See \`config.log' for more details." >&5 | |
14125 | echo "$as_me: error: cannot run test program while cross compiling | |
14126 | See \`config.log' for more details." >&2;} | |
14127 | { (exit 1); exit 1; }; } | |
14128 | else | |
14129 | cat >conftest.$ac_ext <<_ACEOF | |
14130 | #line $LINENO "configure" | |
14131 | /* confdefs.h. */ | |
14132 | _ACEOF | |
14133 | cat confdefs.h >>conftest.$ac_ext | |
14134 | cat >>conftest.$ac_ext <<_ACEOF | |
14135 | /* end confdefs.h. */ | |
14136 | $ac_includes_default | |
14137 | long longval () { return (long) (sizeof (short)); } | |
14138 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14139 | #include <stdio.h> |
e6cc62c6 VS |
14140 | #include <stdlib.h> |
14141 | int | |
14142 | main () | |
a0b9e27f | 14143 | { |
e6cc62c6 VS |
14144 | |
14145 | FILE *f = fopen ("conftest.val", "w"); | |
14146 | if (! f) | |
14147 | exit (1); | |
14148 | if (((long) (sizeof (short))) < 0) | |
14149 | { | |
14150 | long i = longval (); | |
14151 | if (i != ((long) (sizeof (short)))) | |
14152 | exit (1); | |
14153 | fprintf (f, "%ld\n", i); | |
14154 | } | |
14155 | else | |
14156 | { | |
14157 | unsigned long i = ulongval (); | |
14158 | if (i != ((long) (sizeof (short)))) | |
14159 | exit (1); | |
14160 | fprintf (f, "%lu\n", i); | |
14161 | } | |
14162 | exit (ferror (f) || fclose (f) != 0); | |
14163 | ||
14164 | ; | |
14165 | return 0; | |
a0b9e27f | 14166 | } |
e6cc62c6 VS |
14167 | _ACEOF |
14168 | rm -f conftest$ac_exeext | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14170 | (eval $ac_link) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14175 | (eval $ac_try) 2>&5 | |
14176 | ac_status=$? | |
14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14178 | (exit $ac_status); }; }; then | |
14179 | ac_cv_sizeof_short=`cat conftest.val` | |
14180 | else | |
14181 | echo "$as_me: program exited with status $ac_status" >&5 | |
14182 | echo "$as_me: failed program was:" >&5 | |
14183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14184 | ||
14185 | ( exit $ac_status ) | |
14186 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14187 | See \`config.log' for more details." >&5 | |
14188 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14189 | See \`config.log' for more details." >&2;} | |
14190 | { (exit 1); exit 1; }; } | |
14191 | fi | |
14192 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14193 | fi | |
14194 | fi | |
14195 | rm -f conftest.val | |
247f5006 | 14196 | else |
a0b9e27f | 14197 | ac_cv_sizeof_short=0 |
247f5006 | 14198 | fi |
247f5006 | 14199 | fi |
e6cc62c6 VS |
14200 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14201 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14202 | cat >>confdefs.h <<_ACEOF | |
14203 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14204 | _ACEOF | |
14205 | ||
14206 | ||
14207 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14208 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14209 | if test "${ac_cv_type_void_p+set}" = set; then | |
14210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14211 | else | |
14212 | cat >conftest.$ac_ext <<_ACEOF | |
14213 | #line $LINENO "configure" | |
14214 | /* confdefs.h. */ | |
14215 | _ACEOF | |
14216 | cat confdefs.h >>conftest.$ac_ext | |
14217 | cat >>conftest.$ac_ext <<_ACEOF | |
14218 | /* end confdefs.h. */ | |
14219 | $ac_includes_default | |
14220 | int | |
14221 | main () | |
14222 | { | |
14223 | if ((void * *) 0) | |
14224 | return 0; | |
14225 | if (sizeof (void *)) | |
14226 | return 0; | |
14227 | ; | |
14228 | return 0; | |
14229 | } | |
14230 | _ACEOF | |
14231 | rm -f conftest.$ac_objext | |
14232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14233 | (eval $ac_compile) 2>&5 | |
14234 | ac_status=$? | |
14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14236 | (exit $ac_status); } && | |
14237 | { ac_try='test -s conftest.$ac_objext' | |
14238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14239 | (eval $ac_try) 2>&5 | |
14240 | ac_status=$? | |
14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14242 | (exit $ac_status); }; }; then | |
14243 | ac_cv_type_void_p=yes | |
14244 | else | |
14245 | echo "$as_me: failed program was:" >&5 | |
14246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14247 | ||
14248 | ac_cv_type_void_p=no | |
14249 | fi | |
14250 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14251 | fi | |
14252 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14253 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14254 | ||
14255 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14256 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14257 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14259 | else | |
14260 | if test "$ac_cv_type_void_p" = yes; then | |
14261 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14262 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14263 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14264 | # This bug is HP SR number 8606223364. | |
14265 | if test "$cross_compiling" = yes; then | |
14266 | # Depending upon the size, compute the lo and hi bounds. | |
14267 | cat >conftest.$ac_ext <<_ACEOF | |
14268 | #line $LINENO "configure" | |
14269 | /* confdefs.h. */ | |
14270 | _ACEOF | |
14271 | cat confdefs.h >>conftest.$ac_ext | |
14272 | cat >>conftest.$ac_ext <<_ACEOF | |
14273 | /* end confdefs.h. */ | |
14274 | $ac_includes_default | |
14275 | int | |
14276 | main () | |
14277 | { | |
14278 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14279 | test_array [0] = 0 | |
14280 | ||
14281 | ; | |
14282 | return 0; | |
14283 | } | |
14284 | _ACEOF | |
14285 | rm -f conftest.$ac_objext | |
14286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14287 | (eval $ac_compile) 2>&5 | |
14288 | ac_status=$? | |
14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14290 | (exit $ac_status); } && | |
14291 | { ac_try='test -s conftest.$ac_objext' | |
14292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14293 | (eval $ac_try) 2>&5 | |
14294 | ac_status=$? | |
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14296 | (exit $ac_status); }; }; then | |
14297 | ac_lo=0 ac_mid=0 | |
14298 | while :; do | |
14299 | cat >conftest.$ac_ext <<_ACEOF | |
14300 | #line $LINENO "configure" | |
14301 | /* confdefs.h. */ | |
14302 | _ACEOF | |
14303 | cat confdefs.h >>conftest.$ac_ext | |
14304 | cat >>conftest.$ac_ext <<_ACEOF | |
14305 | /* end confdefs.h. */ | |
14306 | $ac_includes_default | |
14307 | int | |
14308 | main () | |
14309 | { | |
14310 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14311 | test_array [0] = 0 | |
247f5006 | 14312 | |
e6cc62c6 VS |
14313 | ; |
14314 | return 0; | |
14315 | } | |
14316 | _ACEOF | |
14317 | rm -f conftest.$ac_objext | |
14318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14319 | (eval $ac_compile) 2>&5 | |
14320 | ac_status=$? | |
14321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14322 | (exit $ac_status); } && | |
14323 | { ac_try='test -s conftest.$ac_objext' | |
14324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14325 | (eval $ac_try) 2>&5 | |
14326 | ac_status=$? | |
14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14328 | (exit $ac_status); }; }; then | |
14329 | ac_hi=$ac_mid; break | |
14330 | else | |
14331 | echo "$as_me: failed program was:" >&5 | |
14332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14333 | ||
14334 | ac_lo=`expr $ac_mid + 1` | |
14335 | if test $ac_lo -le $ac_mid; then | |
14336 | ac_lo= ac_hi= | |
14337 | break | |
14338 | fi | |
14339 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14340 | fi |
e6cc62c6 VS |
14341 | rm -f conftest.$ac_objext conftest.$ac_ext |
14342 | done | |
14343 | else | |
14344 | echo "$as_me: failed program was:" >&5 | |
14345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14346 | ||
14347 | cat >conftest.$ac_ext <<_ACEOF | |
14348 | #line $LINENO "configure" | |
14349 | /* confdefs.h. */ | |
14350 | _ACEOF | |
14351 | cat confdefs.h >>conftest.$ac_ext | |
14352 | cat >>conftest.$ac_ext <<_ACEOF | |
14353 | /* end confdefs.h. */ | |
14354 | $ac_includes_default | |
14355 | int | |
14356 | main () | |
14357 | { | |
14358 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14359 | test_array [0] = 0 | |
247f5006 | 14360 | |
e6cc62c6 VS |
14361 | ; |
14362 | return 0; | |
14363 | } | |
14364 | _ACEOF | |
14365 | rm -f conftest.$ac_objext | |
14366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14367 | (eval $ac_compile) 2>&5 | |
14368 | ac_status=$? | |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); } && | |
14371 | { ac_try='test -s conftest.$ac_objext' | |
14372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14373 | (eval $ac_try) 2>&5 | |
14374 | ac_status=$? | |
14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14376 | (exit $ac_status); }; }; then | |
14377 | ac_hi=-1 ac_mid=-1 | |
14378 | while :; do | |
14379 | cat >conftest.$ac_ext <<_ACEOF | |
14380 | #line $LINENO "configure" | |
14381 | /* confdefs.h. */ | |
14382 | _ACEOF | |
14383 | cat confdefs.h >>conftest.$ac_ext | |
14384 | cat >>conftest.$ac_ext <<_ACEOF | |
14385 | /* end confdefs.h. */ | |
14386 | $ac_includes_default | |
14387 | int | |
14388 | main () | |
14389 | { | |
14390 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14391 | test_array [0] = 0 | |
247f5006 | 14392 | |
e6cc62c6 VS |
14393 | ; |
14394 | return 0; | |
14395 | } | |
14396 | _ACEOF | |
14397 | rm -f conftest.$ac_objext | |
14398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14399 | (eval $ac_compile) 2>&5 | |
14400 | ac_status=$? | |
14401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14402 | (exit $ac_status); } && | |
14403 | { ac_try='test -s conftest.$ac_objext' | |
14404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14405 | (eval $ac_try) 2>&5 | |
14406 | ac_status=$? | |
14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14408 | (exit $ac_status); }; }; then | |
14409 | ac_lo=$ac_mid; break | |
14410 | else | |
14411 | echo "$as_me: failed program was:" >&5 | |
14412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14413 | ||
14414 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14415 | if test $ac_mid -le $ac_hi; then | |
14416 | ac_lo= ac_hi= | |
14417 | break | |
14418 | fi | |
14419 | ac_mid=`expr 2 '*' $ac_mid` | |
14420 | fi | |
14421 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14422 | done | |
a0b9e27f | 14423 | else |
e6cc62c6 VS |
14424 | echo "$as_me: failed program was:" >&5 |
14425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14426 | ||
14427 | ac_lo= ac_hi= | |
14428 | fi | |
14429 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14430 | fi | |
14431 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14432 | # Binary search between lo and hi bounds. | |
14433 | while test "x$ac_lo" != "x$ac_hi"; do | |
14434 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14435 | cat >conftest.$ac_ext <<_ACEOF | |
14436 | #line $LINENO "configure" | |
14437 | /* confdefs.h. */ | |
14438 | _ACEOF | |
14439 | cat confdefs.h >>conftest.$ac_ext | |
14440 | cat >>conftest.$ac_ext <<_ACEOF | |
14441 | /* end confdefs.h. */ | |
14442 | $ac_includes_default | |
14443 | int | |
14444 | main () | |
14445 | { | |
14446 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14447 | test_array [0] = 0 | |
14448 | ||
14449 | ; | |
14450 | return 0; | |
14451 | } | |
14452 | _ACEOF | |
14453 | rm -f conftest.$ac_objext | |
14454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14455 | (eval $ac_compile) 2>&5 | |
14456 | ac_status=$? | |
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14458 | (exit $ac_status); } && | |
14459 | { ac_try='test -s conftest.$ac_objext' | |
14460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14461 | (eval $ac_try) 2>&5 | |
14462 | ac_status=$? | |
14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14464 | (exit $ac_status); }; }; then | |
14465 | ac_hi=$ac_mid | |
14466 | else | |
14467 | echo "$as_me: failed program was:" >&5 | |
14468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14469 | ||
14470 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14471 | fi | |
14472 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14473 | done | |
14474 | case $ac_lo in | |
14475 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14476 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14477 | See \`config.log' for more details." >&5 | |
14478 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14479 | See \`config.log' for more details." >&2;} | |
14480 | { (exit 1); exit 1; }; } ;; | |
14481 | esac | |
247f5006 | 14482 | else |
e6cc62c6 VS |
14483 | if test "$cross_compiling" = yes; then |
14484 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14485 | See \`config.log' for more details." >&5 | |
14486 | echo "$as_me: error: cannot run test program while cross compiling | |
14487 | See \`config.log' for more details." >&2;} | |
14488 | { (exit 1); exit 1; }; } | |
14489 | else | |
14490 | cat >conftest.$ac_ext <<_ACEOF | |
14491 | #line $LINENO "configure" | |
14492 | /* confdefs.h. */ | |
14493 | _ACEOF | |
14494 | cat confdefs.h >>conftest.$ac_ext | |
14495 | cat >>conftest.$ac_ext <<_ACEOF | |
14496 | /* end confdefs.h. */ | |
14497 | $ac_includes_default | |
14498 | long longval () { return (long) (sizeof (void *)); } | |
14499 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14500 | #include <stdio.h> |
e6cc62c6 VS |
14501 | #include <stdlib.h> |
14502 | int | |
14503 | main () | |
247f5006 | 14504 | { |
e6cc62c6 VS |
14505 | |
14506 | FILE *f = fopen ("conftest.val", "w"); | |
14507 | if (! f) | |
14508 | exit (1); | |
14509 | if (((long) (sizeof (void *))) < 0) | |
14510 | { | |
14511 | long i = longval (); | |
14512 | if (i != ((long) (sizeof (void *)))) | |
14513 | exit (1); | |
14514 | fprintf (f, "%ld\n", i); | |
14515 | } | |
14516 | else | |
14517 | { | |
14518 | unsigned long i = ulongval (); | |
14519 | if (i != ((long) (sizeof (void *)))) | |
14520 | exit (1); | |
14521 | fprintf (f, "%lu\n", i); | |
14522 | } | |
14523 | exit (ferror (f) || fclose (f) != 0); | |
14524 | ||
14525 | ; | |
14526 | return 0; | |
5c6fa7d2 | 14527 | } |
e6cc62c6 VS |
14528 | _ACEOF |
14529 | rm -f conftest$ac_exeext | |
14530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14531 | (eval $ac_link) 2>&5 | |
14532 | ac_status=$? | |
14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14534 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14536 | (eval $ac_try) 2>&5 | |
14537 | ac_status=$? | |
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14539 | (exit $ac_status); }; }; then | |
14540 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14541 | else | |
14542 | echo "$as_me: program exited with status $ac_status" >&5 | |
14543 | echo "$as_me: failed program was:" >&5 | |
14544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14545 | ||
14546 | ( exit $ac_status ) | |
14547 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14548 | See \`config.log' for more details." >&5 | |
14549 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14550 | See \`config.log' for more details." >&2;} | |
14551 | { (exit 1); exit 1; }; } | |
14552 | fi | |
14553 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14554 | fi | |
14555 | fi | |
14556 | rm -f conftest.val | |
a0b9e27f | 14557 | else |
a0b9e27f MB |
14558 | ac_cv_sizeof_void_p=0 |
14559 | fi | |
a0b9e27f | 14560 | fi |
e6cc62c6 VS |
14561 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14562 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14563 | cat >>confdefs.h <<_ACEOF | |
14564 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14565 | _ACEOF | |
14566 | ||
14567 | ||
14568 | echo "$as_me:$LINENO: checking for int" >&5 | |
14569 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14570 | if test "${ac_cv_type_int+set}" = set; then | |
14571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14572 | else | |
14573 | cat >conftest.$ac_ext <<_ACEOF | |
14574 | #line $LINENO "configure" | |
14575 | /* confdefs.h. */ | |
14576 | _ACEOF | |
14577 | cat confdefs.h >>conftest.$ac_ext | |
14578 | cat >>conftest.$ac_ext <<_ACEOF | |
14579 | /* end confdefs.h. */ | |
14580 | $ac_includes_default | |
14581 | int | |
14582 | main () | |
14583 | { | |
14584 | if ((int *) 0) | |
14585 | return 0; | |
14586 | if (sizeof (int)) | |
14587 | return 0; | |
14588 | ; | |
14589 | return 0; | |
14590 | } | |
14591 | _ACEOF | |
14592 | rm -f conftest.$ac_objext | |
14593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14594 | (eval $ac_compile) 2>&5 | |
14595 | ac_status=$? | |
14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14597 | (exit $ac_status); } && | |
14598 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
14604 | ac_cv_type_int=yes | |
14605 | else | |
14606 | echo "$as_me: failed program was:" >&5 | |
14607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14608 | ||
14609 | ac_cv_type_int=no | |
14610 | fi | |
14611 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14612 | fi | |
14613 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14614 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14615 | ||
14616 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14617 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14618 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14620 | else | |
14621 | if test "$ac_cv_type_int" = yes; then | |
14622 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14623 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14624 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14625 | # This bug is HP SR number 8606223364. | |
14626 | if test "$cross_compiling" = yes; then | |
14627 | # Depending upon the size, compute the lo and hi bounds. | |
14628 | cat >conftest.$ac_ext <<_ACEOF | |
14629 | #line $LINENO "configure" | |
14630 | /* confdefs.h. */ | |
14631 | _ACEOF | |
14632 | cat confdefs.h >>conftest.$ac_ext | |
14633 | cat >>conftest.$ac_ext <<_ACEOF | |
14634 | /* end confdefs.h. */ | |
14635 | $ac_includes_default | |
14636 | int | |
14637 | main () | |
14638 | { | |
14639 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14640 | test_array [0] = 0 | |
8284b0c5 | 14641 | |
e6cc62c6 VS |
14642 | ; |
14643 | return 0; | |
14644 | } | |
14645 | _ACEOF | |
14646 | rm -f conftest.$ac_objext | |
14647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14648 | (eval $ac_compile) 2>&5 | |
14649 | ac_status=$? | |
14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14651 | (exit $ac_status); } && | |
14652 | { ac_try='test -s conftest.$ac_objext' | |
14653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14654 | (eval $ac_try) 2>&5 | |
14655 | ac_status=$? | |
14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14657 | (exit $ac_status); }; }; then | |
14658 | ac_lo=0 ac_mid=0 | |
14659 | while :; do | |
14660 | cat >conftest.$ac_ext <<_ACEOF | |
14661 | #line $LINENO "configure" | |
14662 | /* confdefs.h. */ | |
14663 | _ACEOF | |
14664 | cat confdefs.h >>conftest.$ac_ext | |
14665 | cat >>conftest.$ac_ext <<_ACEOF | |
14666 | /* end confdefs.h. */ | |
14667 | $ac_includes_default | |
14668 | int | |
14669 | main () | |
14670 | { | |
14671 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14672 | test_array [0] = 0 | |
14673 | ||
14674 | ; | |
14675 | return 0; | |
14676 | } | |
14677 | _ACEOF | |
14678 | rm -f conftest.$ac_objext | |
14679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14680 | (eval $ac_compile) 2>&5 | |
14681 | ac_status=$? | |
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14683 | (exit $ac_status); } && | |
14684 | { ac_try='test -s conftest.$ac_objext' | |
14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14686 | (eval $ac_try) 2>&5 | |
14687 | ac_status=$? | |
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14689 | (exit $ac_status); }; }; then | |
14690 | ac_hi=$ac_mid; break | |
14691 | else | |
14692 | echo "$as_me: failed program was:" >&5 | |
14693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14694 | ||
14695 | ac_lo=`expr $ac_mid + 1` | |
14696 | if test $ac_lo -le $ac_mid; then | |
14697 | ac_lo= ac_hi= | |
14698 | break | |
14699 | fi | |
14700 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14701 | fi |
e6cc62c6 VS |
14702 | rm -f conftest.$ac_objext conftest.$ac_ext |
14703 | done | |
14704 | else | |
14705 | echo "$as_me: failed program was:" >&5 | |
14706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14707 | ||
14708 | cat >conftest.$ac_ext <<_ACEOF | |
14709 | #line $LINENO "configure" | |
14710 | /* confdefs.h. */ | |
14711 | _ACEOF | |
14712 | cat confdefs.h >>conftest.$ac_ext | |
14713 | cat >>conftest.$ac_ext <<_ACEOF | |
14714 | /* end confdefs.h. */ | |
14715 | $ac_includes_default | |
14716 | int | |
14717 | main () | |
14718 | { | |
14719 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14720 | test_array [0] = 0 | |
247f5006 | 14721 | |
e6cc62c6 VS |
14722 | ; |
14723 | return 0; | |
14724 | } | |
14725 | _ACEOF | |
14726 | rm -f conftest.$ac_objext | |
14727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14728 | (eval $ac_compile) 2>&5 | |
14729 | ac_status=$? | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); } && | |
14732 | { ac_try='test -s conftest.$ac_objext' | |
14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14734 | (eval $ac_try) 2>&5 | |
14735 | ac_status=$? | |
14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14737 | (exit $ac_status); }; }; then | |
14738 | ac_hi=-1 ac_mid=-1 | |
14739 | while :; do | |
14740 | cat >conftest.$ac_ext <<_ACEOF | |
14741 | #line $LINENO "configure" | |
14742 | /* confdefs.h. */ | |
14743 | _ACEOF | |
14744 | cat confdefs.h >>conftest.$ac_ext | |
14745 | cat >>conftest.$ac_ext <<_ACEOF | |
14746 | /* end confdefs.h. */ | |
14747 | $ac_includes_default | |
14748 | int | |
14749 | main () | |
14750 | { | |
14751 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14752 | test_array [0] = 0 | |
247f5006 | 14753 | |
e6cc62c6 VS |
14754 | ; |
14755 | return 0; | |
14756 | } | |
14757 | _ACEOF | |
14758 | rm -f conftest.$ac_objext | |
14759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14760 | (eval $ac_compile) 2>&5 | |
14761 | ac_status=$? | |
14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14763 | (exit $ac_status); } && | |
14764 | { ac_try='test -s conftest.$ac_objext' | |
14765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14766 | (eval $ac_try) 2>&5 | |
14767 | ac_status=$? | |
14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14769 | (exit $ac_status); }; }; then | |
14770 | ac_lo=$ac_mid; break | |
14771 | else | |
14772 | echo "$as_me: failed program was:" >&5 | |
14773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14774 | ||
14775 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14776 | if test $ac_mid -le $ac_hi; then | |
14777 | ac_lo= ac_hi= | |
14778 | break | |
14779 | fi | |
14780 | ac_mid=`expr 2 '*' $ac_mid` | |
14781 | fi | |
14782 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14783 | done | |
247f5006 | 14784 | else |
e6cc62c6 VS |
14785 | echo "$as_me: failed program was:" >&5 |
14786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14787 | ||
14788 | ac_lo= ac_hi= | |
14789 | fi | |
14790 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14791 | fi | |
14792 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14793 | # Binary search between lo and hi bounds. | |
14794 | while test "x$ac_lo" != "x$ac_hi"; do | |
14795 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14796 | cat >conftest.$ac_ext <<_ACEOF | |
14797 | #line $LINENO "configure" | |
14798 | /* confdefs.h. */ | |
14799 | _ACEOF | |
14800 | cat confdefs.h >>conftest.$ac_ext | |
14801 | cat >>conftest.$ac_ext <<_ACEOF | |
14802 | /* end confdefs.h. */ | |
14803 | $ac_includes_default | |
14804 | int | |
14805 | main () | |
14806 | { | |
14807 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14808 | test_array [0] = 0 | |
14809 | ||
14810 | ; | |
14811 | return 0; | |
14812 | } | |
14813 | _ACEOF | |
14814 | rm -f conftest.$ac_objext | |
14815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14816 | (eval $ac_compile) 2>&5 | |
14817 | ac_status=$? | |
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14819 | (exit $ac_status); } && | |
14820 | { ac_try='test -s conftest.$ac_objext' | |
14821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14822 | (eval $ac_try) 2>&5 | |
14823 | ac_status=$? | |
14824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14825 | (exit $ac_status); }; }; then | |
14826 | ac_hi=$ac_mid | |
14827 | else | |
14828 | echo "$as_me: failed program was:" >&5 | |
14829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14830 | ||
14831 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14832 | fi | |
14833 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14834 | done | |
14835 | case $ac_lo in | |
14836 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14837 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14838 | See \`config.log' for more details." >&5 | |
14839 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14840 | See \`config.log' for more details." >&2;} | |
14841 | { (exit 1); exit 1; }; } ;; | |
14842 | esac | |
a0b9e27f | 14843 | else |
e6cc62c6 VS |
14844 | if test "$cross_compiling" = yes; then |
14845 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14846 | See \`config.log' for more details." >&5 | |
14847 | echo "$as_me: error: cannot run test program while cross compiling | |
14848 | See \`config.log' for more details." >&2;} | |
14849 | { (exit 1); exit 1; }; } | |
14850 | else | |
14851 | cat >conftest.$ac_ext <<_ACEOF | |
14852 | #line $LINENO "configure" | |
14853 | /* confdefs.h. */ | |
14854 | _ACEOF | |
14855 | cat confdefs.h >>conftest.$ac_ext | |
14856 | cat >>conftest.$ac_ext <<_ACEOF | |
14857 | /* end confdefs.h. */ | |
14858 | $ac_includes_default | |
14859 | long longval () { return (long) (sizeof (int)); } | |
14860 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 14861 | #include <stdio.h> |
e6cc62c6 VS |
14862 | #include <stdlib.h> |
14863 | int | |
14864 | main () | |
247f5006 | 14865 | { |
e6cc62c6 VS |
14866 | |
14867 | FILE *f = fopen ("conftest.val", "w"); | |
14868 | if (! f) | |
14869 | exit (1); | |
14870 | if (((long) (sizeof (int))) < 0) | |
14871 | { | |
14872 | long i = longval (); | |
14873 | if (i != ((long) (sizeof (int)))) | |
14874 | exit (1); | |
14875 | fprintf (f, "%ld\n", i); | |
14876 | } | |
14877 | else | |
14878 | { | |
14879 | unsigned long i = ulongval (); | |
14880 | if (i != ((long) (sizeof (int)))) | |
14881 | exit (1); | |
14882 | fprintf (f, "%lu\n", i); | |
14883 | } | |
14884 | exit (ferror (f) || fclose (f) != 0); | |
14885 | ||
14886 | ; | |
14887 | return 0; | |
247f5006 | 14888 | } |
e6cc62c6 VS |
14889 | _ACEOF |
14890 | rm -f conftest$ac_exeext | |
14891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14892 | (eval $ac_link) 2>&5 | |
14893 | ac_status=$? | |
14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14897 | (eval $ac_try) 2>&5 | |
14898 | ac_status=$? | |
14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14900 | (exit $ac_status); }; }; then | |
14901 | ac_cv_sizeof_int=`cat conftest.val` | |
14902 | else | |
14903 | echo "$as_me: program exited with status $ac_status" >&5 | |
14904 | echo "$as_me: failed program was:" >&5 | |
14905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14906 | ||
14907 | ( exit $ac_status ) | |
14908 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14909 | See \`config.log' for more details." >&5 | |
14910 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14911 | See \`config.log' for more details." >&2;} | |
14912 | { (exit 1); exit 1; }; } | |
14913 | fi | |
14914 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14915 | fi | |
14916 | fi | |
14917 | rm -f conftest.val | |
6f72b082 | 14918 | else |
a0b9e27f | 14919 | ac_cv_sizeof_int=0 |
21d1c967 | 14920 | fi |
698dcdb6 | 14921 | fi |
e6cc62c6 VS |
14922 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
14923 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14924 | cat >>confdefs.h <<_ACEOF | |
14925 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14926 | _ACEOF | |
14927 | ||
14928 | ||
14929 | echo "$as_me:$LINENO: checking for long" >&5 | |
14930 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
14931 | if test "${ac_cv_type_long+set}" = set; then | |
14932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14933 | else | |
14934 | cat >conftest.$ac_ext <<_ACEOF | |
14935 | #line $LINENO "configure" | |
14936 | /* confdefs.h. */ | |
14937 | _ACEOF | |
14938 | cat confdefs.h >>conftest.$ac_ext | |
14939 | cat >>conftest.$ac_ext <<_ACEOF | |
14940 | /* end confdefs.h. */ | |
14941 | $ac_includes_default | |
14942 | int | |
14943 | main () | |
14944 | { | |
14945 | if ((long *) 0) | |
14946 | return 0; | |
14947 | if (sizeof (long)) | |
14948 | return 0; | |
14949 | ; | |
14950 | return 0; | |
14951 | } | |
14952 | _ACEOF | |
14953 | rm -f conftest.$ac_objext | |
14954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14955 | (eval $ac_compile) 2>&5 | |
14956 | ac_status=$? | |
14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14958 | (exit $ac_status); } && | |
14959 | { ac_try='test -s conftest.$ac_objext' | |
14960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14961 | (eval $ac_try) 2>&5 | |
14962 | ac_status=$? | |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14964 | (exit $ac_status); }; }; then | |
14965 | ac_cv_type_long=yes | |
14966 | else | |
14967 | echo "$as_me: failed program was:" >&5 | |
14968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14969 | ||
14970 | ac_cv_type_long=no | |
14971 | fi | |
14972 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14973 | fi | |
14974 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
14975 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
14976 | ||
14977 | echo "$as_me:$LINENO: checking size of long" >&5 | |
14978 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
14979 | if test "${ac_cv_sizeof_long+set}" = set; then | |
14980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14981 | else | |
14982 | if test "$ac_cv_type_long" = yes; then | |
14983 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14984 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14985 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14986 | # This bug is HP SR number 8606223364. | |
14987 | if test "$cross_compiling" = yes; then | |
14988 | # Depending upon the size, compute the lo and hi bounds. | |
14989 | cat >conftest.$ac_ext <<_ACEOF | |
14990 | #line $LINENO "configure" | |
14991 | /* confdefs.h. */ | |
14992 | _ACEOF | |
14993 | cat confdefs.h >>conftest.$ac_ext | |
14994 | cat >>conftest.$ac_ext <<_ACEOF | |
14995 | /* end confdefs.h. */ | |
14996 | $ac_includes_default | |
14997 | int | |
14998 | main () | |
14999 | { | |
15000 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15001 | test_array [0] = 0 | |
15002 | ||
15003 | ; | |
15004 | return 0; | |
15005 | } | |
15006 | _ACEOF | |
15007 | rm -f conftest.$ac_objext | |
15008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15009 | (eval $ac_compile) 2>&5 | |
15010 | ac_status=$? | |
15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15012 | (exit $ac_status); } && | |
15013 | { ac_try='test -s conftest.$ac_objext' | |
15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15015 | (eval $ac_try) 2>&5 | |
15016 | ac_status=$? | |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); }; }; then | |
15019 | ac_lo=0 ac_mid=0 | |
15020 | while :; do | |
15021 | cat >conftest.$ac_ext <<_ACEOF | |
15022 | #line $LINENO "configure" | |
15023 | /* confdefs.h. */ | |
15024 | _ACEOF | |
15025 | cat confdefs.h >>conftest.$ac_ext | |
15026 | cat >>conftest.$ac_ext <<_ACEOF | |
15027 | /* end confdefs.h. */ | |
15028 | $ac_includes_default | |
15029 | int | |
15030 | main () | |
15031 | { | |
15032 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15033 | test_array [0] = 0 | |
4f14bcd8 | 15034 | |
e6cc62c6 VS |
15035 | ; |
15036 | return 0; | |
15037 | } | |
15038 | _ACEOF | |
15039 | rm -f conftest.$ac_objext | |
15040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15041 | (eval $ac_compile) 2>&5 | |
15042 | ac_status=$? | |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15044 | (exit $ac_status); } && | |
15045 | { ac_try='test -s conftest.$ac_objext' | |
15046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15047 | (eval $ac_try) 2>&5 | |
15048 | ac_status=$? | |
15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15050 | (exit $ac_status); }; }; then | |
15051 | ac_hi=$ac_mid; break | |
15052 | else | |
15053 | echo "$as_me: failed program was:" >&5 | |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
15056 | ac_lo=`expr $ac_mid + 1` | |
15057 | if test $ac_lo -le $ac_mid; then | |
15058 | ac_lo= ac_hi= | |
15059 | break | |
15060 | fi | |
15061 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15062 | fi |
e6cc62c6 VS |
15063 | rm -f conftest.$ac_objext conftest.$ac_ext |
15064 | done | |
15065 | else | |
15066 | echo "$as_me: failed program was:" >&5 | |
15067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15068 | ||
15069 | cat >conftest.$ac_ext <<_ACEOF | |
15070 | #line $LINENO "configure" | |
15071 | /* confdefs.h. */ | |
15072 | _ACEOF | |
15073 | cat confdefs.h >>conftest.$ac_ext | |
15074 | cat >>conftest.$ac_ext <<_ACEOF | |
15075 | /* end confdefs.h. */ | |
15076 | $ac_includes_default | |
15077 | int | |
15078 | main () | |
15079 | { | |
15080 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15081 | test_array [0] = 0 | |
4f14bcd8 | 15082 | |
e6cc62c6 VS |
15083 | ; |
15084 | return 0; | |
15085 | } | |
15086 | _ACEOF | |
15087 | rm -f conftest.$ac_objext | |
15088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15089 | (eval $ac_compile) 2>&5 | |
15090 | ac_status=$? | |
15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15092 | (exit $ac_status); } && | |
15093 | { ac_try='test -s conftest.$ac_objext' | |
15094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15095 | (eval $ac_try) 2>&5 | |
15096 | ac_status=$? | |
15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15098 | (exit $ac_status); }; }; then | |
15099 | ac_hi=-1 ac_mid=-1 | |
15100 | while :; do | |
15101 | cat >conftest.$ac_ext <<_ACEOF | |
15102 | #line $LINENO "configure" | |
15103 | /* confdefs.h. */ | |
15104 | _ACEOF | |
15105 | cat confdefs.h >>conftest.$ac_ext | |
15106 | cat >>conftest.$ac_ext <<_ACEOF | |
15107 | /* end confdefs.h. */ | |
15108 | $ac_includes_default | |
15109 | int | |
15110 | main () | |
15111 | { | |
15112 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15113 | test_array [0] = 0 | |
5c6fa7d2 | 15114 | |
e6cc62c6 VS |
15115 | ; |
15116 | return 0; | |
15117 | } | |
15118 | _ACEOF | |
15119 | rm -f conftest.$ac_objext | |
15120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15121 | (eval $ac_compile) 2>&5 | |
15122 | ac_status=$? | |
15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15124 | (exit $ac_status); } && | |
15125 | { ac_try='test -s conftest.$ac_objext' | |
15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15127 | (eval $ac_try) 2>&5 | |
15128 | ac_status=$? | |
15129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15130 | (exit $ac_status); }; }; then | |
15131 | ac_lo=$ac_mid; break | |
15132 | else | |
15133 | echo "$as_me: failed program was:" >&5 | |
15134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15135 | ||
15136 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15137 | if test $ac_mid -le $ac_hi; then | |
15138 | ac_lo= ac_hi= | |
15139 | break | |
15140 | fi | |
15141 | ac_mid=`expr 2 '*' $ac_mid` | |
15142 | fi | |
15143 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15144 | done | |
247f5006 | 15145 | else |
e6cc62c6 VS |
15146 | echo "$as_me: failed program was:" >&5 |
15147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15148 | ||
15149 | ac_lo= ac_hi= | |
15150 | fi | |
15151 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15152 | fi | |
15153 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15154 | # Binary search between lo and hi bounds. | |
15155 | while test "x$ac_lo" != "x$ac_hi"; do | |
15156 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15157 | cat >conftest.$ac_ext <<_ACEOF | |
15158 | #line $LINENO "configure" | |
15159 | /* confdefs.h. */ | |
15160 | _ACEOF | |
15161 | cat confdefs.h >>conftest.$ac_ext | |
15162 | cat >>conftest.$ac_ext <<_ACEOF | |
15163 | /* end confdefs.h. */ | |
15164 | $ac_includes_default | |
15165 | int | |
15166 | main () | |
15167 | { | |
15168 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15169 | test_array [0] = 0 | |
15170 | ||
15171 | ; | |
15172 | return 0; | |
15173 | } | |
15174 | _ACEOF | |
15175 | rm -f conftest.$ac_objext | |
15176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15177 | (eval $ac_compile) 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' | |
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 | |
15194 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15195 | done | |
15196 | case $ac_lo in | |
15197 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15198 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15199 | See \`config.log' for more details." >&5 | |
15200 | echo "$as_me: error: cannot compute sizeof (long), 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 | |
15213 | #line $LINENO "configure" | |
15214 | /* confdefs.h. */ | |
15215 | _ACEOF | |
15216 | cat confdefs.h >>conftest.$ac_ext | |
15217 | cat >>conftest.$ac_ext <<_ACEOF | |
15218 | /* end confdefs.h. */ | |
15219 | $ac_includes_default | |
15220 | long longval () { return (long) (sizeof (long)); } | |
15221 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15222 | #include <stdio.h> |
e6cc62c6 VS |
15223 | #include <stdlib.h> |
15224 | int | |
15225 | main () | |
247f5006 | 15226 | { |
e6cc62c6 VS |
15227 | |
15228 | FILE *f = fopen ("conftest.val", "w"); | |
15229 | if (! f) | |
15230 | exit (1); | |
15231 | if (((long) (sizeof (long))) < 0) | |
15232 | { | |
15233 | long i = longval (); | |
15234 | if (i != ((long) (sizeof (long)))) | |
15235 | exit (1); | |
15236 | fprintf (f, "%ld\n", i); | |
15237 | } | |
15238 | else | |
15239 | { | |
15240 | unsigned long i = ulongval (); | |
15241 | if (i != ((long) (sizeof (long)))) | |
15242 | exit (1); | |
15243 | fprintf (f, "%lu\n", i); | |
15244 | } | |
15245 | exit (ferror (f) || fclose (f) != 0); | |
15246 | ||
15247 | ; | |
15248 | return 0; | |
247f5006 | 15249 | } |
e6cc62c6 VS |
15250 | _ACEOF |
15251 | rm -f conftest$ac_exeext | |
15252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15253 | (eval $ac_link) 2>&5 | |
15254 | ac_status=$? | |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15256 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15258 | (eval $ac_try) 2>&5 | |
15259 | ac_status=$? | |
15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15261 | (exit $ac_status); }; }; then | |
15262 | ac_cv_sizeof_long=`cat conftest.val` | |
15263 | else | |
15264 | echo "$as_me: program exited with status $ac_status" >&5 | |
15265 | echo "$as_me: failed program was:" >&5 | |
15266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15267 | ||
15268 | ( exit $ac_status ) | |
15269 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15270 | See \`config.log' for more details." >&5 | |
15271 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15272 | See \`config.log' for more details." >&2;} | |
15273 | { (exit 1); exit 1; }; } | |
15274 | fi | |
15275 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15276 | fi | |
15277 | fi | |
15278 | rm -f conftest.val | |
247f5006 | 15279 | else |
a0b9e27f | 15280 | ac_cv_sizeof_long=0 |
247f5006 | 15281 | fi |
247f5006 | 15282 | fi |
e6cc62c6 VS |
15283 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15284 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15285 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15286 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15287 | _ACEOF |
247f5006 | 15288 | |
a0b9e27f MB |
15289 | |
15290 | ||
15291 | case "${host}" in | |
15292 | arm-*-linux* ) | |
e6cc62c6 VS |
15293 | echo "$as_me:$LINENO: checking for long long" >&5 |
15294 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15295 | if test "${ac_cv_type_long_long+set}" = set; then | |
15296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15297 | else | |
15298 | cat >conftest.$ac_ext <<_ACEOF | |
15299 | #line $LINENO "configure" | |
15300 | /* confdefs.h. */ | |
15301 | _ACEOF | |
15302 | cat confdefs.h >>conftest.$ac_ext | |
15303 | cat >>conftest.$ac_ext <<_ACEOF | |
15304 | /* end confdefs.h. */ | |
15305 | $ac_includes_default | |
15306 | int | |
15307 | main () | |
15308 | { | |
15309 | if ((long long *) 0) | |
15310 | return 0; | |
15311 | if (sizeof (long long)) | |
15312 | return 0; | |
15313 | ; | |
15314 | return 0; | |
15315 | } | |
15316 | _ACEOF | |
15317 | rm -f conftest.$ac_objext | |
15318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15319 | (eval $ac_compile) 2>&5 | |
15320 | ac_status=$? | |
15321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15322 | (exit $ac_status); } && | |
15323 | { ac_try='test -s conftest.$ac_objext' | |
15324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15325 | (eval $ac_try) 2>&5 | |
15326 | ac_status=$? | |
15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15328 | (exit $ac_status); }; }; then | |
15329 | ac_cv_type_long_long=yes | |
15330 | else | |
15331 | echo "$as_me: failed program was:" >&5 | |
15332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15333 | ||
15334 | ac_cv_type_long_long=no | |
15335 | fi | |
15336 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15337 | fi | |
15338 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15339 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15340 | ||
15341 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15342 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15343 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15345 | else | |
15346 | if test "$ac_cv_type_long_long" = yes; then | |
15347 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15348 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15349 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15350 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15351 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15352 | # Depending upon the size, compute the lo and hi bounds. |
15353 | cat >conftest.$ac_ext <<_ACEOF | |
15354 | #line $LINENO "configure" | |
15355 | /* confdefs.h. */ | |
15356 | _ACEOF | |
15357 | cat confdefs.h >>conftest.$ac_ext | |
15358 | cat >>conftest.$ac_ext <<_ACEOF | |
15359 | /* end confdefs.h. */ | |
15360 | $ac_includes_default | |
15361 | int | |
15362 | main () | |
15363 | { | |
15364 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15365 | test_array [0] = 0 | |
15366 | ||
15367 | ; | |
15368 | return 0; | |
15369 | } | |
15370 | _ACEOF | |
15371 | rm -f conftest.$ac_objext | |
15372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15373 | (eval $ac_compile) 2>&5 | |
15374 | ac_status=$? | |
15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15376 | (exit $ac_status); } && | |
15377 | { ac_try='test -s conftest.$ac_objext' | |
15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15379 | (eval $ac_try) 2>&5 | |
15380 | ac_status=$? | |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15382 | (exit $ac_status); }; }; then | |
15383 | ac_lo=0 ac_mid=0 | |
15384 | while :; do | |
15385 | cat >conftest.$ac_ext <<_ACEOF | |
15386 | #line $LINENO "configure" | |
15387 | /* confdefs.h. */ | |
15388 | _ACEOF | |
15389 | cat confdefs.h >>conftest.$ac_ext | |
15390 | cat >>conftest.$ac_ext <<_ACEOF | |
15391 | /* end confdefs.h. */ | |
15392 | $ac_includes_default | |
15393 | int | |
15394 | main () | |
15395 | { | |
15396 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15397 | test_array [0] = 0 | |
15398 | ||
15399 | ; | |
15400 | return 0; | |
15401 | } | |
15402 | _ACEOF | |
15403 | rm -f conftest.$ac_objext | |
15404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15405 | (eval $ac_compile) 2>&5 | |
15406 | ac_status=$? | |
15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15408 | (exit $ac_status); } && | |
15409 | { ac_try='test -s conftest.$ac_objext' | |
15410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15411 | (eval $ac_try) 2>&5 | |
15412 | ac_status=$? | |
15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15414 | (exit $ac_status); }; }; then | |
15415 | ac_hi=$ac_mid; break | |
15416 | else | |
15417 | echo "$as_me: failed program was:" >&5 | |
15418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15419 | ||
15420 | ac_lo=`expr $ac_mid + 1` | |
15421 | if test $ac_lo -le $ac_mid; then | |
15422 | ac_lo= ac_hi= | |
15423 | break | |
15424 | fi | |
15425 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15426 | fi | |
15427 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15428 | done | |
15429 | else | |
15430 | echo "$as_me: failed program was:" >&5 | |
15431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15432 | ||
15433 | cat >conftest.$ac_ext <<_ACEOF | |
15434 | #line $LINENO "configure" | |
15435 | /* confdefs.h. */ | |
15436 | _ACEOF | |
15437 | cat confdefs.h >>conftest.$ac_ext | |
15438 | cat >>conftest.$ac_ext <<_ACEOF | |
15439 | /* end confdefs.h. */ | |
15440 | $ac_includes_default | |
15441 | int | |
15442 | main () | |
15443 | { | |
15444 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15445 | test_array [0] = 0 | |
15446 | ||
15447 | ; | |
15448 | return 0; | |
15449 | } | |
15450 | _ACEOF | |
15451 | rm -f conftest.$ac_objext | |
15452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15453 | (eval $ac_compile) 2>&5 | |
15454 | ac_status=$? | |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15456 | (exit $ac_status); } && | |
15457 | { ac_try='test -s conftest.$ac_objext' | |
15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15459 | (eval $ac_try) 2>&5 | |
15460 | ac_status=$? | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); }; }; then | |
15463 | ac_hi=-1 ac_mid=-1 | |
15464 | while :; do | |
15465 | cat >conftest.$ac_ext <<_ACEOF | |
15466 | #line $LINENO "configure" | |
15467 | /* confdefs.h. */ | |
15468 | _ACEOF | |
15469 | cat confdefs.h >>conftest.$ac_ext | |
15470 | cat >>conftest.$ac_ext <<_ACEOF | |
15471 | /* end confdefs.h. */ | |
15472 | $ac_includes_default | |
15473 | int | |
15474 | main () | |
15475 | { | |
15476 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15477 | test_array [0] = 0 | |
15478 | ||
15479 | ; | |
15480 | return 0; | |
15481 | } | |
15482 | _ACEOF | |
15483 | rm -f conftest.$ac_objext | |
15484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15485 | (eval $ac_compile) 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' | |
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_lo=$ac_mid; break | |
15496 | else | |
15497 | echo "$as_me: failed program was:" >&5 | |
15498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15499 | ||
15500 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15501 | if test $ac_mid -le $ac_hi; then | |
15502 | ac_lo= ac_hi= | |
15503 | break | |
15504 | fi | |
15505 | ac_mid=`expr 2 '*' $ac_mid` | |
15506 | fi | |
15507 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15508 | done | |
15509 | else | |
15510 | echo "$as_me: failed program was:" >&5 | |
15511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15512 | ||
15513 | ac_lo= ac_hi= | |
15514 | fi | |
15515 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15516 | fi | |
15517 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15518 | # Binary search between lo and hi bounds. | |
15519 | while test "x$ac_lo" != "x$ac_hi"; do | |
15520 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15521 | cat >conftest.$ac_ext <<_ACEOF | |
15522 | #line $LINENO "configure" | |
15523 | /* confdefs.h. */ | |
15524 | _ACEOF | |
15525 | cat confdefs.h >>conftest.$ac_ext | |
15526 | cat >>conftest.$ac_ext <<_ACEOF | |
15527 | /* end confdefs.h. */ | |
15528 | $ac_includes_default | |
15529 | int | |
15530 | main () | |
15531 | { | |
15532 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15533 | test_array [0] = 0 | |
15534 | ||
15535 | ; | |
15536 | return 0; | |
15537 | } | |
15538 | _ACEOF | |
15539 | rm -f conftest.$ac_objext | |
15540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15541 | (eval $ac_compile) 2>&5 | |
15542 | ac_status=$? | |
15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15544 | (exit $ac_status); } && | |
15545 | { ac_try='test -s conftest.$ac_objext' | |
15546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15547 | (eval $ac_try) 2>&5 | |
15548 | ac_status=$? | |
15549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15550 | (exit $ac_status); }; }; then | |
15551 | ac_hi=$ac_mid | |
15552 | else | |
15553 | echo "$as_me: failed program was:" >&5 | |
15554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15555 | ||
15556 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15557 | fi | |
15558 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15559 | done | |
15560 | case $ac_lo in | |
15561 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15562 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15563 | See \`config.log' for more details." >&5 | |
15564 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15565 | See \`config.log' for more details." >&2;} | |
15566 | { (exit 1); exit 1; }; } ;; | |
15567 | esac | |
a0b9e27f | 15568 | else |
e6cc62c6 VS |
15569 | if test "$cross_compiling" = yes; then |
15570 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15571 | See \`config.log' for more details." >&5 | |
15572 | echo "$as_me: error: cannot run test program while cross compiling | |
15573 | See \`config.log' for more details." >&2;} | |
15574 | { (exit 1); exit 1; }; } | |
15575 | else | |
15576 | cat >conftest.$ac_ext <<_ACEOF | |
15577 | #line $LINENO "configure" | |
15578 | /* confdefs.h. */ | |
15579 | _ACEOF | |
15580 | cat confdefs.h >>conftest.$ac_ext | |
15581 | cat >>conftest.$ac_ext <<_ACEOF | |
15582 | /* end confdefs.h. */ | |
15583 | $ac_includes_default | |
15584 | long longval () { return (long) (sizeof (long long)); } | |
15585 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15586 | #include <stdio.h> |
e6cc62c6 VS |
15587 | #include <stdlib.h> |
15588 | int | |
15589 | main () | |
247f5006 | 15590 | { |
e6cc62c6 VS |
15591 | |
15592 | FILE *f = fopen ("conftest.val", "w"); | |
15593 | if (! f) | |
15594 | exit (1); | |
15595 | if (((long) (sizeof (long long))) < 0) | |
15596 | { | |
15597 | long i = longval (); | |
15598 | if (i != ((long) (sizeof (long long)))) | |
15599 | exit (1); | |
15600 | fprintf (f, "%ld\n", i); | |
15601 | } | |
15602 | else | |
15603 | { | |
15604 | unsigned long i = ulongval (); | |
15605 | if (i != ((long) (sizeof (long long)))) | |
15606 | exit (1); | |
15607 | fprintf (f, "%lu\n", i); | |
15608 | } | |
15609 | exit (ferror (f) || fclose (f) != 0); | |
15610 | ||
15611 | ; | |
15612 | return 0; | |
247f5006 | 15613 | } |
e6cc62c6 VS |
15614 | _ACEOF |
15615 | rm -f conftest$ac_exeext | |
15616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15617 | (eval $ac_link) 2>&5 | |
15618 | ac_status=$? | |
15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15622 | (eval $ac_try) 2>&5 | |
15623 | ac_status=$? | |
15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15625 | (exit $ac_status); }; }; then | |
15626 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15627 | else | |
15628 | echo "$as_me: program exited with status $ac_status" >&5 | |
15629 | echo "$as_me: failed program was:" >&5 | |
15630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15631 | ||
15632 | ( exit $ac_status ) | |
15633 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15634 | See \`config.log' for more details." >&5 | |
15635 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15636 | See \`config.log' for more details." >&2;} | |
15637 | { (exit 1); exit 1; }; } | |
15638 | fi | |
15639 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15640 | fi | |
15641 | fi | |
15642 | rm -f conftest.val | |
7b4a847f | 15643 | else |
a0b9e27f | 15644 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15645 | fi |
15646 | fi | |
e6cc62c6 VS |
15647 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15648 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15649 | cat >>confdefs.h <<_ACEOF | |
15650 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15651 | _ACEOF | |
15652 | ||
15653 | ||
15654 | ;; | |
15655 | *-hp-hpux* ) | |
15656 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15657 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15658 | if test "${ac_cv_type_long_long+set}" = set; then | |
15659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15660 | else | |
15661 | cat >conftest.$ac_ext <<_ACEOF | |
15662 | #line $LINENO "configure" | |
15663 | /* confdefs.h. */ | |
15664 | _ACEOF | |
15665 | cat confdefs.h >>conftest.$ac_ext | |
15666 | cat >>conftest.$ac_ext <<_ACEOF | |
15667 | /* end confdefs.h. */ | |
15668 | $ac_includes_default | |
15669 | int | |
15670 | main () | |
15671 | { | |
15672 | if ((long long *) 0) | |
15673 | return 0; | |
15674 | if (sizeof (long long)) | |
15675 | return 0; | |
15676 | ; | |
15677 | return 0; | |
15678 | } | |
15679 | _ACEOF | |
15680 | rm -f conftest.$ac_objext | |
15681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15682 | (eval $ac_compile) 2>&5 | |
15683 | ac_status=$? | |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); } && | |
15686 | { ac_try='test -s conftest.$ac_objext' | |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15688 | (eval $ac_try) 2>&5 | |
15689 | ac_status=$? | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); }; }; then | |
15692 | ac_cv_type_long_long=yes | |
15693 | else | |
15694 | echo "$as_me: failed program was:" >&5 | |
15695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15696 | ||
15697 | ac_cv_type_long_long=no | |
15698 | fi | |
15699 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15700 | fi | |
15701 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15702 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15703 | ||
15704 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15705 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15706 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15708 | else | |
15709 | if test "$ac_cv_type_long_long" = yes; then | |
15710 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15711 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15712 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15713 | # This bug is HP SR number 8606223364. | |
15714 | if test "$cross_compiling" = yes; then | |
15715 | # Depending upon the size, compute the lo and hi bounds. | |
15716 | cat >conftest.$ac_ext <<_ACEOF | |
15717 | #line $LINENO "configure" | |
15718 | /* confdefs.h. */ | |
15719 | _ACEOF | |
15720 | cat confdefs.h >>conftest.$ac_ext | |
15721 | cat >>conftest.$ac_ext <<_ACEOF | |
15722 | /* end confdefs.h. */ | |
15723 | $ac_includes_default | |
15724 | int | |
15725 | main () | |
15726 | { | |
15727 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15728 | test_array [0] = 0 | |
15729 | ||
15730 | ; | |
15731 | return 0; | |
15732 | } | |
15733 | _ACEOF | |
15734 | rm -f conftest.$ac_objext | |
15735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15736 | (eval $ac_compile) 2>&5 | |
15737 | ac_status=$? | |
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15739 | (exit $ac_status); } && | |
15740 | { ac_try='test -s conftest.$ac_objext' | |
15741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15742 | (eval $ac_try) 2>&5 | |
15743 | ac_status=$? | |
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15745 | (exit $ac_status); }; }; then | |
15746 | ac_lo=0 ac_mid=0 | |
15747 | while :; do | |
15748 | cat >conftest.$ac_ext <<_ACEOF | |
15749 | #line $LINENO "configure" | |
15750 | /* confdefs.h. */ | |
15751 | _ACEOF | |
15752 | cat confdefs.h >>conftest.$ac_ext | |
15753 | cat >>conftest.$ac_ext <<_ACEOF | |
15754 | /* end confdefs.h. */ | |
15755 | $ac_includes_default | |
15756 | int | |
15757 | main () | |
15758 | { | |
15759 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15760 | test_array [0] = 0 | |
8284b0c5 | 15761 | |
e6cc62c6 VS |
15762 | ; |
15763 | return 0; | |
15764 | } | |
15765 | _ACEOF | |
15766 | rm -f conftest.$ac_objext | |
15767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15768 | (eval $ac_compile) 2>&5 | |
15769 | ac_status=$? | |
15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); } && | |
15772 | { ac_try='test -s conftest.$ac_objext' | |
15773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15774 | (eval $ac_try) 2>&5 | |
15775 | ac_status=$? | |
15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15777 | (exit $ac_status); }; }; then | |
15778 | ac_hi=$ac_mid; break | |
15779 | else | |
15780 | echo "$as_me: failed program was:" >&5 | |
15781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15782 | ||
15783 | ac_lo=`expr $ac_mid + 1` | |
15784 | if test $ac_lo -le $ac_mid; then | |
15785 | ac_lo= ac_hi= | |
15786 | break | |
15787 | fi | |
15788 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15789 | fi |
e6cc62c6 VS |
15790 | rm -f conftest.$ac_objext conftest.$ac_ext |
15791 | done | |
15792 | else | |
15793 | echo "$as_me: failed program was:" >&5 | |
15794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15795 | ||
15796 | cat >conftest.$ac_ext <<_ACEOF | |
15797 | #line $LINENO "configure" | |
15798 | /* confdefs.h. */ | |
15799 | _ACEOF | |
15800 | cat confdefs.h >>conftest.$ac_ext | |
15801 | cat >>conftest.$ac_ext <<_ACEOF | |
15802 | /* end confdefs.h. */ | |
15803 | $ac_includes_default | |
15804 | int | |
15805 | main () | |
15806 | { | |
15807 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15808 | test_array [0] = 0 | |
a0b9e27f | 15809 | |
e6cc62c6 VS |
15810 | ; |
15811 | return 0; | |
15812 | } | |
15813 | _ACEOF | |
15814 | rm -f conftest.$ac_objext | |
15815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15816 | (eval $ac_compile) 2>&5 | |
15817 | ac_status=$? | |
15818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15819 | (exit $ac_status); } && | |
15820 | { ac_try='test -s conftest.$ac_objext' | |
15821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15822 | (eval $ac_try) 2>&5 | |
15823 | ac_status=$? | |
15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15825 | (exit $ac_status); }; }; then | |
15826 | ac_hi=-1 ac_mid=-1 | |
15827 | while :; do | |
15828 | cat >conftest.$ac_ext <<_ACEOF | |
15829 | #line $LINENO "configure" | |
15830 | /* confdefs.h. */ | |
15831 | _ACEOF | |
15832 | cat confdefs.h >>conftest.$ac_ext | |
15833 | cat >>conftest.$ac_ext <<_ACEOF | |
15834 | /* end confdefs.h. */ | |
15835 | $ac_includes_default | |
15836 | int | |
15837 | main () | |
15838 | { | |
15839 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15840 | test_array [0] = 0 | |
a0b9e27f | 15841 | |
e6cc62c6 VS |
15842 | ; |
15843 | return 0; | |
15844 | } | |
15845 | _ACEOF | |
15846 | rm -f conftest.$ac_objext | |
15847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15848 | (eval $ac_compile) 2>&5 | |
15849 | ac_status=$? | |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15851 | (exit $ac_status); } && | |
15852 | { ac_try='test -s conftest.$ac_objext' | |
15853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15854 | (eval $ac_try) 2>&5 | |
15855 | ac_status=$? | |
15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15857 | (exit $ac_status); }; }; then | |
15858 | ac_lo=$ac_mid; break | |
15859 | else | |
15860 | echo "$as_me: failed program was:" >&5 | |
15861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15862 | ||
15863 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15864 | if test $ac_mid -le $ac_hi; then | |
15865 | ac_lo= ac_hi= | |
15866 | break | |
15867 | fi | |
15868 | ac_mid=`expr 2 '*' $ac_mid` | |
15869 | fi | |
15870 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15871 | done | |
8284b0c5 | 15872 | else |
e6cc62c6 VS |
15873 | echo "$as_me: failed program was:" >&5 |
15874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15875 | ||
15876 | ac_lo= ac_hi= | |
15877 | fi | |
15878 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15879 | fi | |
15880 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15881 | # Binary search between lo and hi bounds. | |
15882 | while test "x$ac_lo" != "x$ac_hi"; do | |
15883 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | #line $LINENO "configure" | |
15886 | /* confdefs.h. */ | |
15887 | _ACEOF | |
15888 | cat confdefs.h >>conftest.$ac_ext | |
15889 | cat >>conftest.$ac_ext <<_ACEOF | |
15890 | /* end confdefs.h. */ | |
15891 | $ac_includes_default | |
15892 | int | |
15893 | main () | |
15894 | { | |
15895 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15896 | test_array [0] = 0 | |
15897 | ||
15898 | ; | |
15899 | return 0; | |
15900 | } | |
15901 | _ACEOF | |
15902 | rm -f conftest.$ac_objext | |
15903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15904 | (eval $ac_compile) 2>&5 | |
15905 | ac_status=$? | |
15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15907 | (exit $ac_status); } && | |
15908 | { ac_try='test -s conftest.$ac_objext' | |
15909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15910 | (eval $ac_try) 2>&5 | |
15911 | ac_status=$? | |
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15913 | (exit $ac_status); }; }; then | |
15914 | ac_hi=$ac_mid | |
15915 | else | |
15916 | echo "$as_me: failed program was:" >&5 | |
15917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15918 | ||
15919 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15920 | fi | |
15921 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15922 | done | |
15923 | case $ac_lo in | |
15924 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15925 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15926 | See \`config.log' for more details." >&5 | |
15927 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15928 | See \`config.log' for more details." >&2;} | |
15929 | { (exit 1); exit 1; }; } ;; | |
15930 | esac | |
8284b0c5 | 15931 | else |
e6cc62c6 VS |
15932 | if test "$cross_compiling" = yes; then |
15933 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15934 | See \`config.log' for more details." >&5 | |
15935 | echo "$as_me: error: cannot run test program while cross compiling | |
15936 | See \`config.log' for more details." >&2;} | |
15937 | { (exit 1); exit 1; }; } | |
15938 | else | |
15939 | cat >conftest.$ac_ext <<_ACEOF | |
15940 | #line $LINENO "configure" | |
15941 | /* confdefs.h. */ | |
15942 | _ACEOF | |
15943 | cat confdefs.h >>conftest.$ac_ext | |
15944 | cat >>conftest.$ac_ext <<_ACEOF | |
15945 | /* end confdefs.h. */ | |
15946 | $ac_includes_default | |
15947 | long longval () { return (long) (sizeof (long long)); } | |
15948 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 15949 | #include <stdio.h> |
e6cc62c6 VS |
15950 | #include <stdlib.h> |
15951 | int | |
15952 | main () | |
8284b0c5 | 15953 | { |
e6cc62c6 VS |
15954 | |
15955 | FILE *f = fopen ("conftest.val", "w"); | |
15956 | if (! f) | |
15957 | exit (1); | |
15958 | if (((long) (sizeof (long long))) < 0) | |
15959 | { | |
15960 | long i = longval (); | |
15961 | if (i != ((long) (sizeof (long long)))) | |
15962 | exit (1); | |
15963 | fprintf (f, "%ld\n", i); | |
15964 | } | |
15965 | else | |
15966 | { | |
15967 | unsigned long i = ulongval (); | |
15968 | if (i != ((long) (sizeof (long long)))) | |
15969 | exit (1); | |
15970 | fprintf (f, "%lu\n", i); | |
15971 | } | |
15972 | exit (ferror (f) || fclose (f) != 0); | |
15973 | ||
15974 | ; | |
15975 | return 0; | |
8284b0c5 | 15976 | } |
e6cc62c6 VS |
15977 | _ACEOF |
15978 | rm -f conftest$ac_exeext | |
15979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15980 | (eval $ac_link) 2>&5 | |
15981 | ac_status=$? | |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15985 | (eval $ac_try) 2>&5 | |
15986 | ac_status=$? | |
15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15988 | (exit $ac_status); }; }; then | |
15989 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15990 | else | |
15991 | echo "$as_me: program exited with status $ac_status" >&5 | |
15992 | echo "$as_me: failed program was:" >&5 | |
15993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15994 | ||
15995 | ( exit $ac_status ) | |
15996 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15997 | See \`config.log' for more details." >&5 | |
15998 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15999 | See \`config.log' for more details." >&2;} | |
16000 | { (exit 1); exit 1; }; } | |
16001 | fi | |
16002 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16003 | fi | |
16004 | fi | |
16005 | rm -f conftest.val | |
5c6fa7d2 RR |
16006 | else |
16007 | ac_cv_sizeof_long_long=0 | |
52127426 | 16008 | fi |
4f57cf11 | 16009 | fi |
e6cc62c6 VS |
16010 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16011 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16012 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16013 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16014 | _ACEOF |
4f57cf11 GD |
16015 | |
16016 | ||
16017 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16018 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16019 | fi | |
16020 | ;; | |
16021 | * ) | |
e6cc62c6 VS |
16022 | echo "$as_me:$LINENO: checking for long long" >&5 |
16023 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16024 | if test "${ac_cv_type_long_long+set}" = set; then | |
16025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16026 | else | |
16027 | cat >conftest.$ac_ext <<_ACEOF | |
16028 | #line $LINENO "configure" | |
16029 | /* confdefs.h. */ | |
16030 | _ACEOF | |
16031 | cat confdefs.h >>conftest.$ac_ext | |
16032 | cat >>conftest.$ac_ext <<_ACEOF | |
16033 | /* end confdefs.h. */ | |
16034 | $ac_includes_default | |
16035 | int | |
16036 | main () | |
16037 | { | |
16038 | if ((long long *) 0) | |
16039 | return 0; | |
16040 | if (sizeof (long long)) | |
16041 | return 0; | |
16042 | ; | |
16043 | return 0; | |
16044 | } | |
16045 | _ACEOF | |
16046 | rm -f conftest.$ac_objext | |
16047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16048 | (eval $ac_compile) 2>&5 | |
16049 | ac_status=$? | |
16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16051 | (exit $ac_status); } && | |
16052 | { ac_try='test -s conftest.$ac_objext' | |
16053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16054 | (eval $ac_try) 2>&5 | |
16055 | ac_status=$? | |
16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16057 | (exit $ac_status); }; }; then | |
16058 | ac_cv_type_long_long=yes | |
16059 | else | |
16060 | echo "$as_me: failed program was:" >&5 | |
16061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16062 | ||
16063 | ac_cv_type_long_long=no | |
16064 | fi | |
16065 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16066 | fi | |
16067 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16068 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16069 | ||
16070 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16071 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16072 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16074 | else | |
16075 | if test "$ac_cv_type_long_long" = yes; then | |
16076 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16077 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16078 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16079 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16080 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16081 | # Depending upon the size, compute the lo and hi bounds. |
16082 | cat >conftest.$ac_ext <<_ACEOF | |
16083 | #line $LINENO "configure" | |
16084 | /* confdefs.h. */ | |
16085 | _ACEOF | |
16086 | cat confdefs.h >>conftest.$ac_ext | |
16087 | cat >>conftest.$ac_ext <<_ACEOF | |
16088 | /* end confdefs.h. */ | |
16089 | $ac_includes_default | |
16090 | int | |
16091 | main () | |
16092 | { | |
16093 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16094 | test_array [0] = 0 | |
16095 | ||
16096 | ; | |
16097 | return 0; | |
16098 | } | |
16099 | _ACEOF | |
16100 | rm -f conftest.$ac_objext | |
16101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16102 | (eval $ac_compile) 2>&5 | |
16103 | ac_status=$? | |
16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16105 | (exit $ac_status); } && | |
16106 | { ac_try='test -s conftest.$ac_objext' | |
16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16108 | (eval $ac_try) 2>&5 | |
16109 | ac_status=$? | |
16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16111 | (exit $ac_status); }; }; then | |
16112 | ac_lo=0 ac_mid=0 | |
16113 | while :; do | |
16114 | cat >conftest.$ac_ext <<_ACEOF | |
16115 | #line $LINENO "configure" | |
16116 | /* confdefs.h. */ | |
16117 | _ACEOF | |
16118 | cat confdefs.h >>conftest.$ac_ext | |
16119 | cat >>conftest.$ac_ext <<_ACEOF | |
16120 | /* end confdefs.h. */ | |
16121 | $ac_includes_default | |
16122 | int | |
16123 | main () | |
16124 | { | |
16125 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16126 | test_array [0] = 0 | |
16127 | ||
16128 | ; | |
16129 | return 0; | |
16130 | } | |
16131 | _ACEOF | |
16132 | rm -f conftest.$ac_objext | |
16133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16134 | (eval $ac_compile) 2>&5 | |
16135 | ac_status=$? | |
16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16137 | (exit $ac_status); } && | |
16138 | { ac_try='test -s conftest.$ac_objext' | |
16139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16140 | (eval $ac_try) 2>&5 | |
16141 | ac_status=$? | |
16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16143 | (exit $ac_status); }; }; then | |
16144 | ac_hi=$ac_mid; break | |
16145 | else | |
16146 | echo "$as_me: failed program was:" >&5 | |
16147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16148 | ||
16149 | ac_lo=`expr $ac_mid + 1` | |
16150 | if test $ac_lo -le $ac_mid; then | |
16151 | ac_lo= ac_hi= | |
16152 | break | |
16153 | fi | |
16154 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16155 | fi | |
16156 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16157 | done | |
16158 | else | |
16159 | echo "$as_me: failed program was:" >&5 | |
16160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16161 | ||
16162 | cat >conftest.$ac_ext <<_ACEOF | |
16163 | #line $LINENO "configure" | |
16164 | /* confdefs.h. */ | |
16165 | _ACEOF | |
16166 | cat confdefs.h >>conftest.$ac_ext | |
16167 | cat >>conftest.$ac_ext <<_ACEOF | |
16168 | /* end confdefs.h. */ | |
16169 | $ac_includes_default | |
16170 | int | |
16171 | main () | |
16172 | { | |
16173 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16174 | test_array [0] = 0 | |
16175 | ||
16176 | ; | |
16177 | return 0; | |
16178 | } | |
16179 | _ACEOF | |
16180 | rm -f conftest.$ac_objext | |
16181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16182 | (eval $ac_compile) 2>&5 | |
16183 | ac_status=$? | |
16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16185 | (exit $ac_status); } && | |
16186 | { ac_try='test -s conftest.$ac_objext' | |
16187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16188 | (eval $ac_try) 2>&5 | |
16189 | ac_status=$? | |
16190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16191 | (exit $ac_status); }; }; then | |
16192 | ac_hi=-1 ac_mid=-1 | |
16193 | while :; do | |
16194 | cat >conftest.$ac_ext <<_ACEOF | |
16195 | #line $LINENO "configure" | |
16196 | /* confdefs.h. */ | |
16197 | _ACEOF | |
16198 | cat confdefs.h >>conftest.$ac_ext | |
16199 | cat >>conftest.$ac_ext <<_ACEOF | |
16200 | /* end confdefs.h. */ | |
16201 | $ac_includes_default | |
16202 | int | |
16203 | main () | |
16204 | { | |
16205 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16206 | test_array [0] = 0 | |
16207 | ||
16208 | ; | |
16209 | return 0; | |
16210 | } | |
16211 | _ACEOF | |
16212 | rm -f conftest.$ac_objext | |
16213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16214 | (eval $ac_compile) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); } && | |
16218 | { ac_try='test -s conftest.$ac_objext' | |
16219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16220 | (eval $ac_try) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); }; }; then | |
16224 | ac_lo=$ac_mid; break | |
16225 | else | |
16226 | echo "$as_me: failed program was:" >&5 | |
16227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16228 | ||
16229 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16230 | if test $ac_mid -le $ac_hi; then | |
16231 | ac_lo= ac_hi= | |
16232 | break | |
16233 | fi | |
16234 | ac_mid=`expr 2 '*' $ac_mid` | |
16235 | fi | |
16236 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16237 | done | |
4f57cf11 | 16238 | else |
e6cc62c6 VS |
16239 | echo "$as_me: failed program was:" >&5 |
16240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16241 | ||
16242 | ac_lo= ac_hi= | |
16243 | fi | |
16244 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16245 | fi | |
16246 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16247 | # Binary search between lo and hi bounds. | |
16248 | while test "x$ac_lo" != "x$ac_hi"; do | |
16249 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16250 | cat >conftest.$ac_ext <<_ACEOF | |
16251 | #line $LINENO "configure" | |
16252 | /* confdefs.h. */ | |
16253 | _ACEOF | |
16254 | cat confdefs.h >>conftest.$ac_ext | |
16255 | cat >>conftest.$ac_ext <<_ACEOF | |
16256 | /* end confdefs.h. */ | |
16257 | $ac_includes_default | |
16258 | int | |
16259 | main () | |
16260 | { | |
16261 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16262 | test_array [0] = 0 | |
16263 | ||
16264 | ; | |
16265 | return 0; | |
16266 | } | |
16267 | _ACEOF | |
16268 | rm -f conftest.$ac_objext | |
16269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16270 | (eval $ac_compile) 2>&5 | |
16271 | ac_status=$? | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); } && | |
16274 | { ac_try='test -s conftest.$ac_objext' | |
16275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16276 | (eval $ac_try) 2>&5 | |
16277 | ac_status=$? | |
16278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16279 | (exit $ac_status); }; }; then | |
16280 | ac_hi=$ac_mid | |
16281 | else | |
16282 | echo "$as_me: failed program was:" >&5 | |
16283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16284 | ||
16285 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16286 | fi | |
16287 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16288 | done | |
16289 | case $ac_lo in | |
16290 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16291 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16292 | See \`config.log' for more details." >&5 | |
16293 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16294 | See \`config.log' for more details." >&2;} | |
16295 | { (exit 1); exit 1; }; } ;; | |
16296 | esac | |
16297 | else | |
16298 | if test "$cross_compiling" = yes; then | |
16299 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16300 | See \`config.log' for more details." >&5 | |
16301 | echo "$as_me: error: cannot run test program while cross compiling | |
16302 | See \`config.log' for more details." >&2;} | |
16303 | { (exit 1); exit 1; }; } | |
16304 | else | |
16305 | cat >conftest.$ac_ext <<_ACEOF | |
16306 | #line $LINENO "configure" | |
16307 | /* confdefs.h. */ | |
16308 | _ACEOF | |
16309 | cat confdefs.h >>conftest.$ac_ext | |
16310 | cat >>conftest.$ac_ext <<_ACEOF | |
16311 | /* end confdefs.h. */ | |
16312 | $ac_includes_default | |
16313 | long longval () { return (long) (sizeof (long long)); } | |
16314 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16315 | #include <stdio.h> |
e6cc62c6 VS |
16316 | #include <stdlib.h> |
16317 | int | |
16318 | main () | |
4f57cf11 | 16319 | { |
e6cc62c6 VS |
16320 | |
16321 | FILE *f = fopen ("conftest.val", "w"); | |
16322 | if (! f) | |
16323 | exit (1); | |
16324 | if (((long) (sizeof (long long))) < 0) | |
16325 | { | |
16326 | long i = longval (); | |
16327 | if (i != ((long) (sizeof (long long)))) | |
16328 | exit (1); | |
16329 | fprintf (f, "%ld\n", i); | |
16330 | } | |
16331 | else | |
16332 | { | |
16333 | unsigned long i = ulongval (); | |
16334 | if (i != ((long) (sizeof (long long)))) | |
16335 | exit (1); | |
16336 | fprintf (f, "%lu\n", i); | |
16337 | } | |
16338 | exit (ferror (f) || fclose (f) != 0); | |
16339 | ||
16340 | ; | |
16341 | return 0; | |
4f57cf11 | 16342 | } |
e6cc62c6 VS |
16343 | _ACEOF |
16344 | rm -f conftest$ac_exeext | |
16345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16346 | (eval $ac_link) 2>&5 | |
16347 | ac_status=$? | |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16349 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16351 | (eval $ac_try) 2>&5 | |
16352 | ac_status=$? | |
16353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16354 | (exit $ac_status); }; }; then | |
16355 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16356 | else | |
16357 | echo "$as_me: program exited with status $ac_status" >&5 | |
16358 | echo "$as_me: failed program was:" >&5 | |
16359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16360 | ||
16361 | ( exit $ac_status ) | |
16362 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16363 | See \`config.log' for more details." >&5 | |
16364 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16365 | See \`config.log' for more details." >&2;} | |
16366 | { (exit 1); exit 1; }; } | |
16367 | fi | |
16368 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16369 | fi | |
16370 | fi | |
16371 | rm -f conftest.val | |
4f57cf11 | 16372 | else |
4f57cf11 GD |
16373 | ac_cv_sizeof_long_long=0 |
16374 | fi | |
7b4a847f | 16375 | fi |
e6cc62c6 VS |
16376 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16377 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16378 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16379 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16380 | _ACEOF |
9e691f46 | 16381 | |
8284b0c5 | 16382 | |
21d1c967 GD |
16383 | esac |
16384 | ||
e6cc62c6 VS |
16385 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16386 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16387 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16389 | else |
e6cc62c6 | 16390 | |
21d1c967 | 16391 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16392 | |
2b5f62a0 VZ |
16393 | case "${host}" in |
16394 | *-pc-msdosdjgpp ) | |
16395 | wx_cv_sizeof_wchar_t=0 | |
16396 | ;; | |
16397 | * ) | |
16398 | wx_cv_sizeof_wchar_t=4 | |
16399 | ;; | |
16400 | esac | |
e6cc62c6 VS |
16401 | |
16402 | ||
6f72b082 | 16403 | else |
e6cc62c6 VS |
16404 | cat >conftest.$ac_ext <<_ACEOF |
16405 | #line $LINENO "configure" | |
16406 | /* confdefs.h. */ | |
16407 | _ACEOF | |
16408 | cat confdefs.h >>conftest.$ac_ext | |
16409 | cat >>conftest.$ac_ext <<_ACEOF | |
16410 | /* end confdefs.h. */ | |
21d1c967 | 16411 | |
2b5f62a0 VZ |
16412 | /* DJGPP only has fake wchar_t: */ |
16413 | #ifdef __DJGPP__ | |
16414 | # error "fake wchar_t" | |
16415 | #endif | |
21d1c967 GD |
16416 | #ifdef HAVE_WCHAR_H |
16417 | # ifdef __CYGWIN__ | |
16418 | # include <stddef.h> | |
16419 | # endif | |
16420 | # include <wchar.h> | |
16421 | #endif | |
16422 | #ifdef HAVE_STDLIB_H | |
16423 | # include <stdlib.h> | |
16424 | #endif | |
16425 | #include <stdio.h> | |
16426 | int main() | |
16427 | { | |
16428 | FILE *f=fopen("conftestval", "w"); | |
16429 | if (!f) exit(1); | |
16430 | fprintf(f, "%i", sizeof(wchar_t)); | |
16431 | exit(0); | |
16432 | } | |
e6cc62c6 VS |
16433 | |
16434 | _ACEOF | |
16435 | rm -f conftest$ac_exeext | |
16436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16437 | (eval $ac_link) 2>&5 | |
16438 | ac_status=$? | |
16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; }; then | |
21d1c967 | 16446 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16447 | else |
e6cc62c6 VS |
16448 | echo "$as_me: program exited with status $ac_status" >&5 |
16449 | echo "$as_me: failed program was:" >&5 | |
16450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16451 | ||
16452 | ( exit $ac_status ) | |
16453 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16454 | fi |
e6cc62c6 | 16455 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16456 | fi |
6f72b082 | 16457 | |
3f345b47 | 16458 | fi |
e6cc62c6 VS |
16459 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16460 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16461 | |
e6cc62c6 | 16462 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16463 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16464 | _ACEOF |
90dd450c | 16465 | |
8284b0c5 | 16466 | |
21d1c967 GD |
16467 | # Check whether --enable-largefile or --disable-largefile was given. |
16468 | if test "${enable_largefile+set}" = set; then | |
16469 | enableval="$enable_largefile" | |
3f345b47 | 16470 | |
e6cc62c6 | 16471 | fi; |
21d1c967 GD |
16472 | if test "$enable_largefile" != no; then |
16473 | wx_largefile=no | |
e6cc62c6 VS |
16474 | |
16475 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16476 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16477 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16479 | else | |
16480 | ||
16481 | cat >conftest.$ac_ext <<_ACEOF | |
16482 | #line $LINENO "configure" | |
16483 | /* confdefs.h. */ | |
16484 | _ACEOF | |
16485 | cat confdefs.h >>conftest.$ac_ext | |
16486 | cat >>conftest.$ac_ext <<_ACEOF | |
16487 | /* end confdefs.h. */ | |
21d1c967 GD |
16488 | #define _FILE_OFFSET_BITS 64 |
16489 | #include <sys/types.h> | |
e6cc62c6 VS |
16490 | int |
16491 | main () | |
16492 | { | |
21d1c967 GD |
16493 | typedef struct { |
16494 | unsigned int field: sizeof(off_t) == 8; | |
16495 | } wxlf; | |
16496 | ||
e6cc62c6 VS |
16497 | ; |
16498 | return 0; | |
16499 | } | |
16500 | _ACEOF | |
16501 | rm -f conftest.$ac_objext | |
16502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16503 | (eval $ac_compile) 2>&5 | |
16504 | ac_status=$? | |
16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16506 | (exit $ac_status); } && | |
16507 | { ac_try='test -s conftest.$ac_objext' | |
16508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16509 | (eval $ac_try) 2>&5 | |
16510 | ac_status=$? | |
16511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16512 | (exit $ac_status); }; }; then | |
21d1c967 | 16513 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16514 | else |
e6cc62c6 VS |
16515 | echo "$as_me: failed program was:" >&5 |
16516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16517 | ||
16518 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16519 | fi |
e6cc62c6 VS |
16520 | rm -f conftest.$ac_objext conftest.$ac_ext |
16521 | ||
a0b9e27f | 16522 | |
e6cc62c6 VS |
16523 | fi |
16524 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16525 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16526 | |
16527 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16528 | wx_largefile=yes | |
e6cc62c6 | 16529 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16530 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16531 | _ACEOF |
21d1c967 GD |
16532 | |
16533 | fi | |
16534 | ||
16535 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16536 | |
16537 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16538 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16539 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16541 | else | |
16542 | ||
16543 | cat >conftest.$ac_ext <<_ACEOF | |
16544 | #line $LINENO "configure" | |
16545 | /* confdefs.h. */ | |
16546 | _ACEOF | |
16547 | cat confdefs.h >>conftest.$ac_ext | |
16548 | cat >>conftest.$ac_ext <<_ACEOF | |
16549 | /* end confdefs.h. */ | |
21d1c967 GD |
16550 | #define _LARGE_FILES 1 |
16551 | #include <sys/types.h> | |
e6cc62c6 VS |
16552 | int |
16553 | main () | |
16554 | { | |
21d1c967 GD |
16555 | typedef struct { |
16556 | unsigned int field: sizeof(off_t) == 8; | |
16557 | } wxlf; | |
16558 | ||
e6cc62c6 VS |
16559 | ; |
16560 | return 0; | |
16561 | } | |
16562 | _ACEOF | |
16563 | rm -f conftest.$ac_objext | |
16564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16565 | (eval $ac_compile) 2>&5 | |
16566 | ac_status=$? | |
16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16568 | (exit $ac_status); } && | |
16569 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
21d1c967 | 16575 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16576 | else |
e6cc62c6 VS |
16577 | echo "$as_me: failed program was:" >&5 |
16578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16579 | ||
16580 | ac_cv_sys_large_files=no | |
247f5006 | 16581 | fi |
e6cc62c6 | 16582 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16583 | |
e6cc62c6 VS |
16584 | |
16585 | fi | |
16586 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16587 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16588 | |
21d1c967 GD |
16589 | if test "$ac_cv_sys_large_files" != no; then |
16590 | wx_largefile=yes | |
e6cc62c6 | 16591 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16592 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16593 | _ACEOF |
90dd450c | 16594 | |
90dd450c VZ |
16595 | fi |
16596 | ||
90dd450c | 16597 | fi |
90dd450c | 16598 | |
e6cc62c6 VS |
16599 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16600 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16601 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16602 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16603 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16604 | _ACEOF |
90dd450c | 16605 | |
90dd450c | 16606 | fi |
e6cc62c6 VS |
16607 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16608 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16609 | fi |
90dd450c | 16610 | |
8284b0c5 | 16611 | |
f02444d0 | 16612 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16613 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16614 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16615 | else |
e26c13cf | 16616 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16617 | fi |
e26c13cf | 16618 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16619 | fi |
16620 | ||
e6cc62c6 VS |
16621 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16622 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16623 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16625 | else |
21d1c967 GD |
16626 | ac_cv_c_bigendian=unknown |
16627 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16628 | cat >conftest.$ac_ext <<_ACEOF |
16629 | #line $LINENO "configure" | |
16630 | /* confdefs.h. */ | |
16631 | _ACEOF | |
16632 | cat confdefs.h >>conftest.$ac_ext | |
16633 | cat >>conftest.$ac_ext <<_ACEOF | |
16634 | /* end confdefs.h. */ | |
21d1c967 GD |
16635 | #include <sys/types.h> |
16636 | #include <sys/param.h> | |
e6cc62c6 VS |
16637 | int |
16638 | main () | |
16639 | { | |
21d1c967 GD |
16640 | |
16641 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16642 | bogus endian macros | |
16643 | #endif | |
e6cc62c6 VS |
16644 | ; |
16645 | return 0; | |
16646 | } | |
16647 | _ACEOF | |
16648 | rm -f conftest.$ac_objext | |
16649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16650 | (eval $ac_compile) 2>&5 | |
16651 | ac_status=$? | |
16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16653 | (exit $ac_status); } && | |
16654 | { ac_try='test -s conftest.$ac_objext' | |
16655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16656 | (eval $ac_try) 2>&5 | |
16657 | ac_status=$? | |
16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16659 | (exit $ac_status); }; }; then | |
21d1c967 | 16660 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16661 | cat >conftest.$ac_ext <<_ACEOF |
16662 | #line $LINENO "configure" | |
16663 | /* confdefs.h. */ | |
16664 | _ACEOF | |
16665 | cat confdefs.h >>conftest.$ac_ext | |
16666 | cat >>conftest.$ac_ext <<_ACEOF | |
16667 | /* end confdefs.h. */ | |
21d1c967 GD |
16668 | #include <sys/types.h> |
16669 | #include <sys/param.h> | |
e6cc62c6 VS |
16670 | int |
16671 | main () | |
16672 | { | |
21d1c967 GD |
16673 | |
16674 | #if BYTE_ORDER != BIG_ENDIAN | |
16675 | not big endian | |
16676 | #endif | |
e6cc62c6 VS |
16677 | ; |
16678 | return 0; | |
16679 | } | |
16680 | _ACEOF | |
16681 | rm -f conftest.$ac_objext | |
16682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16683 | (eval $ac_compile) 2>&5 | |
16684 | ac_status=$? | |
16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16686 | (exit $ac_status); } && | |
16687 | { ac_try='test -s conftest.$ac_objext' | |
16688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16689 | (eval $ac_try) 2>&5 | |
16690 | ac_status=$? | |
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16692 | (exit $ac_status); }; }; then | |
21d1c967 | 16693 | ac_cv_c_bigendian=yes |
3f345b47 | 16694 | else |
e6cc62c6 VS |
16695 | echo "$as_me: failed program was:" >&5 |
16696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16697 | ||
16698 | ac_cv_c_bigendian=no | |
3f345b47 | 16699 | fi |
e6cc62c6 | 16700 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16701 | else |
e6cc62c6 VS |
16702 | echo "$as_me: failed program was:" >&5 |
16703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16704 | ||
3f345b47 | 16705 | fi |
e6cc62c6 | 16706 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16707 | if test $ac_cv_c_bigendian = unknown; then |
16708 | if test "$cross_compiling" = yes; then | |
16709 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16710 | else |
e6cc62c6 VS |
16711 | cat >conftest.$ac_ext <<_ACEOF |
16712 | #line $LINENO "configure" | |
16713 | /* confdefs.h. */ | |
16714 | _ACEOF | |
16715 | cat confdefs.h >>conftest.$ac_ext | |
16716 | cat >>conftest.$ac_ext <<_ACEOF | |
16717 | /* end confdefs.h. */ | |
21d1c967 GD |
16718 | main () { |
16719 | /* Are we little or big endian? From Harbison&Steele. */ | |
16720 | union | |
16721 | { | |
16722 | long l; | |
16723 | char c[sizeof (long)]; | |
16724 | } u; | |
16725 | u.l = 1; | |
16726 | exit (u.c[sizeof (long) - 1] == 1); | |
16727 | } | |
e6cc62c6 VS |
16728 | _ACEOF |
16729 | rm -f conftest$ac_exeext | |
16730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16731 | (eval $ac_link) 2>&5 | |
16732 | ac_status=$? | |
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16736 | (eval $ac_try) 2>&5 | |
16737 | ac_status=$? | |
16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16739 | (exit $ac_status); }; }; then | |
21d1c967 | 16740 | ac_cv_c_bigendian=no |
3f345b47 | 16741 | else |
e6cc62c6 VS |
16742 | echo "$as_me: program exited with status $ac_status" >&5 |
16743 | echo "$as_me: failed program was:" >&5 | |
16744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16745 | ||
16746 | ( exit $ac_status ) | |
16747 | ac_cv_c_bigendian=yes | |
247f5006 | 16748 | fi |
e6cc62c6 | 16749 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16750 | fi |
3f345b47 | 16751 | fi |
8168de4c | 16752 | fi |
e6cc62c6 VS |
16753 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16754 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16755 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16756 | { 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 |
16757 | 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 |
16758 | fi |
16759 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16760 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16761 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16762 | _ACEOF |
247f5006 VZ |
16763 | |
16764 | fi | |
16765 | ||
16766 | ||
e6cc62c6 VS |
16767 | |
16768 | ac_ext=cc | |
16769 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16773 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16774 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16775 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16776 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16778 | else | |
16779 | # Double quotes because CXXCPP needs to be expanded | |
16780 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16781 | do | |
16782 | ac_preproc_ok=false | |
16783 | for ac_cxx_preproc_warn_flag in '' yes | |
16784 | do | |
16785 | # Use a header file that comes with gcc, so configuring glibc | |
16786 | # with a fresh cross-compiler works. | |
16787 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16788 | # <limits.h> exists even on freestanding compilers. | |
16789 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16790 | # not just through cpp. "Syntax error" is here to catch this case. | |
16791 | cat >conftest.$ac_ext <<_ACEOF | |
16792 | #line $LINENO "configure" | |
16793 | /* confdefs.h. */ | |
16794 | _ACEOF | |
16795 | cat confdefs.h >>conftest.$ac_ext | |
16796 | cat >>conftest.$ac_ext <<_ACEOF | |
16797 | /* end confdefs.h. */ | |
16798 | #ifdef __STDC__ | |
16799 | # include <limits.h> | |
16800 | #else | |
16801 | # include <assert.h> | |
16802 | #endif | |
16803 | Syntax error | |
16804 | _ACEOF | |
16805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16807 | ac_status=$? | |
16808 | grep -v '^ *+' conftest.er1 >conftest.err | |
16809 | rm -f conftest.er1 | |
16810 | cat conftest.err >&5 | |
16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16812 | (exit $ac_status); } >/dev/null; then | |
16813 | if test -s conftest.err; then | |
16814 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16815 | else | |
16816 | ac_cpp_err= | |
16817 | fi | |
247f5006 | 16818 | else |
e6cc62c6 VS |
16819 | ac_cpp_err=yes |
16820 | fi | |
16821 | if test -z "$ac_cpp_err"; then | |
16822 | : | |
16823 | else | |
16824 | echo "$as_me: failed program was:" >&5 | |
16825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16826 | ||
16827 | # Broken: fails on valid input. | |
16828 | continue | |
16829 | fi | |
16830 | rm -f conftest.err conftest.$ac_ext | |
16831 | ||
16832 | # OK, works on sane cases. Now check whether non-existent headers | |
16833 | # can be detected and how. | |
16834 | cat >conftest.$ac_ext <<_ACEOF | |
16835 | #line $LINENO "configure" | |
16836 | /* confdefs.h. */ | |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
16841 | #include <ac_nonexistent.h> | |
16842 | _ACEOF | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16845 | ac_status=$? | |
16846 | grep -v '^ *+' conftest.er1 >conftest.err | |
16847 | rm -f conftest.er1 | |
16848 | cat conftest.err >&5 | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); } >/dev/null; then | |
16851 | if test -s conftest.err; then | |
16852 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16853 | else | |
16854 | ac_cpp_err= | |
16855 | fi | |
16856 | else | |
16857 | ac_cpp_err=yes | |
16858 | fi | |
16859 | if test -z "$ac_cpp_err"; then | |
16860 | # Broken: success on invalid input. | |
16861 | continue | |
16862 | else | |
16863 | echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | ||
16866 | # Passes both tests. | |
16867 | ac_preproc_ok=: | |
16868 | break | |
16869 | fi | |
16870 | rm -f conftest.err conftest.$ac_ext | |
16871 | ||
16872 | done | |
16873 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16874 | rm -f conftest.err conftest.$ac_ext | |
16875 | if $ac_preproc_ok; then | |
16876 | break | |
16877 | fi | |
16878 | ||
16879 | done | |
16880 | ac_cv_prog_CXXCPP=$CXXCPP | |
16881 | ||
16882 | fi | |
16883 | CXXCPP=$ac_cv_prog_CXXCPP | |
16884 | else | |
16885 | ac_cv_prog_CXXCPP=$CXXCPP | |
16886 | fi | |
16887 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
16888 | echo "${ECHO_T}$CXXCPP" >&6 | |
16889 | ac_preproc_ok=false | |
16890 | for ac_cxx_preproc_warn_flag in '' yes | |
16891 | do | |
16892 | # Use a header file that comes with gcc, so configuring glibc | |
16893 | # with a fresh cross-compiler works. | |
16894 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16895 | # <limits.h> exists even on freestanding compilers. | |
16896 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16897 | # not just through cpp. "Syntax error" is here to catch this case. | |
16898 | cat >conftest.$ac_ext <<_ACEOF | |
16899 | #line $LINENO "configure" | |
16900 | /* confdefs.h. */ | |
16901 | _ACEOF | |
16902 | cat confdefs.h >>conftest.$ac_ext | |
16903 | cat >>conftest.$ac_ext <<_ACEOF | |
16904 | /* end confdefs.h. */ | |
16905 | #ifdef __STDC__ | |
16906 | # include <limits.h> | |
16907 | #else | |
16908 | # include <assert.h> | |
16909 | #endif | |
16910 | Syntax error | |
16911 | _ACEOF | |
16912 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16913 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16914 | ac_status=$? | |
16915 | grep -v '^ *+' conftest.er1 >conftest.err | |
16916 | rm -f conftest.er1 | |
16917 | cat conftest.err >&5 | |
16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16919 | (exit $ac_status); } >/dev/null; then | |
16920 | if test -s conftest.err; then | |
16921 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16922 | else | |
16923 | ac_cpp_err= | |
16924 | fi | |
16925 | else | |
16926 | ac_cpp_err=yes | |
16927 | fi | |
16928 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 16929 | : |
698dcdb6 | 16930 | else |
e6cc62c6 VS |
16931 | echo "$as_me: failed program was:" >&5 |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16933 | ||
16934 | # Broken: fails on valid input. | |
16935 | continue | |
16936 | fi | |
16937 | rm -f conftest.err conftest.$ac_ext | |
16938 | ||
16939 | # OK, works on sane cases. Now check whether non-existent headers | |
16940 | # can be detected and how. | |
16941 | cat >conftest.$ac_ext <<_ACEOF | |
16942 | #line $LINENO "configure" | |
16943 | /* confdefs.h. */ | |
16944 | _ACEOF | |
16945 | cat confdefs.h >>conftest.$ac_ext | |
16946 | cat >>conftest.$ac_ext <<_ACEOF | |
16947 | /* end confdefs.h. */ | |
16948 | #include <ac_nonexistent.h> | |
16949 | _ACEOF | |
16950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16952 | ac_status=$? | |
16953 | grep -v '^ *+' conftest.er1 >conftest.err | |
16954 | rm -f conftest.er1 | |
16955 | cat conftest.err >&5 | |
16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16957 | (exit $ac_status); } >/dev/null; then | |
16958 | if test -s conftest.err; then | |
16959 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16960 | else | |
16961 | ac_cpp_err= | |
16962 | fi | |
16963 | else | |
16964 | ac_cpp_err=yes | |
247f5006 | 16965 | fi |
e6cc62c6 VS |
16966 | if test -z "$ac_cpp_err"; then |
16967 | # Broken: success on invalid input. | |
16968 | continue | |
16969 | else | |
16970 | echo "$as_me: failed program was:" >&5 | |
16971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16972 | ||
16973 | # Passes both tests. | |
16974 | ac_preproc_ok=: | |
16975 | break | |
328a083c | 16976 | fi |
e6cc62c6 VS |
16977 | rm -f conftest.err conftest.$ac_ext |
16978 | ||
16979 | done | |
16980 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16981 | rm -f conftest.err conftest.$ac_ext | |
16982 | if $ac_preproc_ok; then | |
16983 | : | |
16984 | else | |
16985 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16986 | See \`config.log' for more details." >&5 | |
16987 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16988 | See \`config.log' for more details." >&2;} | |
16989 | { (exit 1); exit 1; }; } | |
90dd450c | 16990 | fi |
e6cc62c6 VS |
16991 | |
16992 | ac_ext=cc | |
16993 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16994 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16995 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16996 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16997 | ||
1e6feb95 | 16998 | |
1725144d | 16999 | |
21d1c967 | 17000 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17001 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17002 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17003 | _ACEOF |
ab9b9eab | 17004 | |
21d1c967 | 17005 | else |
e6cc62c6 VS |
17006 | |
17007 | ||
17008 | ac_ext=cc | |
5c6fa7d2 | 17009 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17013 | ||
52127426 | 17014 | |
247f5006 | 17015 | |
e6cc62c6 | 17016 | for ac_header in iostream |
21d1c967 | 17017 | do |
e6cc62c6 VS |
17018 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17020 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17024 | fi | |
17025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17027 | else | |
17028 | # Is the header compilable? | |
17029 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17030 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17031 | cat >conftest.$ac_ext <<_ACEOF | |
17032 | #line $LINENO "configure" | |
17033 | /* confdefs.h. */ | |
17034 | _ACEOF | |
17035 | cat confdefs.h >>conftest.$ac_ext | |
17036 | cat >>conftest.$ac_ext <<_ACEOF | |
17037 | /* end confdefs.h. */ | |
17038 | $ac_includes_default | |
17039 | #include <$ac_header> | |
17040 | _ACEOF | |
17041 | rm -f conftest.$ac_objext | |
17042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17043 | (eval $ac_compile) 2>&5 | |
17044 | ac_status=$? | |
17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17046 | (exit $ac_status); } && | |
17047 | { ac_try='test -s conftest.$ac_objext' | |
17048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17049 | (eval $ac_try) 2>&5 | |
17050 | ac_status=$? | |
17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | (exit $ac_status); }; }; then | |
17053 | ac_header_compiler=yes | |
17054 | else | |
17055 | echo "$as_me: failed program was:" >&5 | |
17056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17057 | ||
17058 | ac_header_compiler=no | |
17059 | fi | |
17060 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17062 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17063 | ||
17064 | # Is the header present? | |
17065 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17067 | cat >conftest.$ac_ext <<_ACEOF | |
17068 | #line $LINENO "configure" | |
17069 | /* confdefs.h. */ | |
17070 | _ACEOF | |
17071 | cat confdefs.h >>conftest.$ac_ext | |
17072 | cat >>conftest.$ac_ext <<_ACEOF | |
17073 | /* end confdefs.h. */ | |
17074 | #include <$ac_header> | |
17075 | _ACEOF | |
17076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17078 | ac_status=$? | |
17079 | grep -v '^ *+' conftest.er1 >conftest.err | |
17080 | rm -f conftest.er1 | |
17081 | cat conftest.err >&5 | |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17083 | (exit $ac_status); } >/dev/null; then | |
17084 | if test -s conftest.err; then | |
17085 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17086 | else | |
17087 | ac_cpp_err= | |
17088 | fi | |
17089 | else | |
17090 | ac_cpp_err=yes | |
17091 | fi | |
17092 | if test -z "$ac_cpp_err"; then | |
17093 | ac_header_preproc=yes | |
17094 | else | |
17095 | echo "$as_me: failed program was:" >&5 | |
17096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17097 | ||
17098 | ac_header_preproc=no | |
17099 | fi | |
17100 | rm -f conftest.err conftest.$ac_ext | |
17101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17102 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17103 | ||
17104 | # So? What about this header? | |
17105 | case $ac_header_compiler:$ac_header_preproc in | |
17106 | yes:no ) | |
17107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17110 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17111 | ( | |
17112 | cat <<\_ASBOX | |
17113 | ## ------------------------------------ ## | |
17114 | ## Report this to bug-autoconf@gnu.org. ## | |
17115 | ## ------------------------------------ ## | |
17116 | _ASBOX | |
17117 | ) | | |
17118 | sed "s/^/$as_me: WARNING: /" >&2 | |
17119 | ;; | |
17120 | no:yes ) | |
17121 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17122 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17123 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17124 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17126 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17127 | ( | |
17128 | cat <<\_ASBOX | |
17129 | ## ------------------------------------ ## | |
17130 | ## Report this to bug-autoconf@gnu.org. ## | |
17131 | ## ------------------------------------ ## | |
17132 | _ASBOX | |
17133 | ) | | |
17134 | sed "s/^/$as_me: WARNING: /" >&2 | |
17135 | ;; | |
17136 | esac | |
17137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17141 | else | |
17142 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17143 | fi |
e6cc62c6 VS |
17144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17146 | ||
90dd450c | 17147 | fi |
e6cc62c6 VS |
17148 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17149 | cat >>confdefs.h <<_ACEOF | |
17150 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17151 | _ACEOF | |
17152 | ||
90dd450c | 17153 | fi |
e6cc62c6 | 17154 | |
21d1c967 | 17155 | done |
10f2d63a | 17156 | |
8284b0c5 | 17157 | |
21d1c967 GD |
17158 | if test "$ac_cv_header_iostream" = "yes" ; then |
17159 | : | |
17160 | else | |
e6cc62c6 | 17161 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17162 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17163 | _ACEOF |
788deba1 | 17164 | |
90dd450c | 17165 | fi |
ab9b9eab | 17166 | |
21d1c967 | 17167 | ac_ext=c |
21d1c967 | 17168 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17172 | |
21d1c967 | 17173 | fi |
ab9b9eab | 17174 | |
52127426 | 17175 | |
8284b0c5 | 17176 | |
e6cc62c6 VS |
17177 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17178 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17179 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17181 | else |
e6cc62c6 VS |
17182 | |
17183 | ||
17184 | ||
17185 | ac_ext=cc | |
5c6fa7d2 | 17186 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17187 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17188 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17189 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17190 | |
8284b0c5 | 17191 | |
e6cc62c6 VS |
17192 | cat >conftest.$ac_ext <<_ACEOF |
17193 | #line $LINENO "configure" | |
17194 | /* confdefs.h. */ | |
17195 | _ACEOF | |
17196 | cat confdefs.h >>conftest.$ac_ext | |
17197 | cat >>conftest.$ac_ext <<_ACEOF | |
17198 | /* end confdefs.h. */ | |
21d1c967 | 17199 | |
e6cc62c6 VS |
17200 | |
17201 | int | |
17202 | main () | |
17203 | { | |
21d1c967 GD |
17204 | |
17205 | bool b = true; | |
17206 | ||
17207 | return 0; | |
e6cc62c6 VS |
17208 | |
17209 | ; | |
17210 | return 0; | |
17211 | } | |
17212 | _ACEOF | |
17213 | rm -f conftest.$ac_objext | |
17214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17215 | (eval $ac_compile) 2>&5 | |
17216 | ac_status=$? | |
17217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17218 | (exit $ac_status); } && | |
17219 | { ac_try='test -s conftest.$ac_objext' | |
17220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17221 | (eval $ac_try) 2>&5 | |
17222 | ac_status=$? | |
17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17224 | (exit $ac_status); }; }; then | |
17225 | ||
21d1c967 | 17226 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17227 | |
698dcdb6 | 17228 | else |
e6cc62c6 VS |
17229 | echo "$as_me: failed program was:" >&5 |
17230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17231 | ||
17232 | ||
21d1c967 | 17233 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17234 | |
17235 | ||
698dcdb6 | 17236 | fi |
e6cc62c6 | 17237 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17238 | |
17239 | ac_ext=c | |
21d1c967 | 17240 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17244 | |
a0b9e27f | 17245 | |
e6cc62c6 VS |
17246 | fi |
17247 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17248 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17249 | |
17250 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17251 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17252 | #define HAVE_BOOL 1 |
e6cc62c6 | 17253 | _ACEOF |
ab9b9eab | 17254 | |
21d1c967 GD |
17255 | fi |
17256 | ||
52127426 | 17257 | |
8284b0c5 | 17258 | |
e6cc62c6 VS |
17259 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17260 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17261 | if test "${wx_cv_explicit+set}" = set; then | |
17262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17263 | else |
e6cc62c6 VS |
17264 | |
17265 | ||
17266 | ||
17267 | ac_ext=cc | |
5c6fa7d2 | 17268 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17269 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17270 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17271 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17272 | |
8284b0c5 | 17273 | |
e6cc62c6 VS |
17274 | cat >conftest.$ac_ext <<_ACEOF |
17275 | #line $LINENO "configure" | |
17276 | /* confdefs.h. */ | |
17277 | _ACEOF | |
17278 | cat confdefs.h >>conftest.$ac_ext | |
17279 | cat >>conftest.$ac_ext <<_ACEOF | |
17280 | /* end confdefs.h. */ | |
986ecc86 VZ |
17281 | |
17282 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17283 | |
17284 | int | |
17285 | main () | |
17286 | { | |
986ecc86 VZ |
17287 | |
17288 | return 0; | |
e6cc62c6 VS |
17289 | |
17290 | ; | |
17291 | return 0; | |
17292 | } | |
17293 | _ACEOF | |
17294 | rm -f conftest.$ac_objext | |
17295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17296 | (eval $ac_compile) 2>&5 | |
17297 | ac_status=$? | |
17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17299 | (exit $ac_status); } && | |
17300 | { ac_try='test -s conftest.$ac_objext' | |
17301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17302 | (eval $ac_try) 2>&5 | |
17303 | ac_status=$? | |
17304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17305 | (exit $ac_status); }; }; then | |
17306 | ||
17307 | cat >conftest.$ac_ext <<_ACEOF | |
17308 | #line $LINENO "configure" | |
17309 | /* confdefs.h. */ | |
17310 | _ACEOF | |
17311 | cat confdefs.h >>conftest.$ac_ext | |
17312 | cat >>conftest.$ac_ext <<_ACEOF | |
17313 | /* end confdefs.h. */ | |
986ecc86 VZ |
17314 | |
17315 | class Foo { public: explicit Foo(int) {} }; | |
17316 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17317 | |
17318 | int | |
17319 | main () | |
17320 | { | |
986ecc86 VZ |
17321 | |
17322 | TakeFoo(17); | |
17323 | return 0; | |
e6cc62c6 VS |
17324 | |
17325 | ; | |
17326 | return 0; | |
17327 | } | |
17328 | _ACEOF | |
17329 | rm -f conftest.$ac_objext | |
17330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17331 | (eval $ac_compile) 2>&5 | |
17332 | ac_status=$? | |
17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17334 | (exit $ac_status); } && | |
17335 | { ac_try='test -s conftest.$ac_objext' | |
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 | |
986ecc86 VZ |
17341 | wx_cv_explicit=no |
17342 | else | |
e6cc62c6 VS |
17343 | echo "$as_me: failed program was:" >&5 |
17344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17345 | ||
17346 | wx_cv_explicit=yes | |
17347 | ||
986ecc86 | 17348 | fi |
e6cc62c6 VS |
17349 | rm -f conftest.$ac_objext conftest.$ac_ext |
17350 | ||
986ecc86 | 17351 | else |
e6cc62c6 VS |
17352 | echo "$as_me: failed program was:" >&5 |
17353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17354 | ||
17355 | wx_cv_explicit=no | |
17356 | ||
986ecc86 | 17357 | fi |
e6cc62c6 | 17358 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17359 | |
17360 | ac_ext=c | |
986ecc86 | 17361 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17365 | |
a0b9e27f | 17366 | |
e6cc62c6 VS |
17367 | fi |
17368 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17369 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17370 | |
17371 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17372 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17373 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17374 | _ACEOF |
986ecc86 VZ |
17375 | |
17376 | fi | |
17377 | ||
8284b0c5 | 17378 | |
e6cc62c6 VS |
17379 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17380 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17381 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17383 | else |
521196a2 | 17384 | |
521196a2 | 17385 | |
e6cc62c6 VS |
17386 | ac_ext=cc |
17387 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17388 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17389 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17390 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17391 | ||
17392 | cat >conftest.$ac_ext <<_ACEOF | |
17393 | #line $LINENO "configure" | |
17394 | /* confdefs.h. */ | |
17395 | _ACEOF | |
17396 | cat confdefs.h >>conftest.$ac_ext | |
17397 | cat >>conftest.$ac_ext <<_ACEOF | |
17398 | /* end confdefs.h. */ | |
17399 | ||
17400 | int | |
17401 | main () | |
17402 | { | |
521196a2 | 17403 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17404 | ; |
17405 | return 0; | |
17406 | } | |
17407 | _ACEOF | |
17408 | rm -f conftest.$ac_objext | |
17409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17410 | (eval $ac_compile) 2>&5 | |
17411 | ac_status=$? | |
17412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17413 | (exit $ac_status); } && | |
17414 | { ac_try='test -s conftest.$ac_objext' | |
17415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17416 | (eval $ac_try) 2>&5 | |
17417 | ac_status=$? | |
17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17419 | (exit $ac_status); }; }; then | |
521196a2 MB |
17420 | ac_cv_cxx_const_cast=yes |
17421 | else | |
e6cc62c6 VS |
17422 | echo "$as_me: failed program was:" >&5 |
17423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17424 | ||
17425 | ac_cv_cxx_const_cast=no | |
521196a2 | 17426 | fi |
e6cc62c6 | 17427 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17428 | ac_ext=c |
521196a2 | 17429 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17433 | |
17434 | ||
17435 | fi | |
e6cc62c6 VS |
17436 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17437 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17438 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17439 | |
17440 | cat >>confdefs.h <<\_ACEOF | |
17441 | #define HAVE_CONST_CAST | |
17442 | _ACEOF | |
521196a2 MB |
17443 | |
17444 | fi | |
17445 | ||
17446 | ||
e87b7833 MB |
17447 | if test "$wxUSE_STL" = "yes"; then |
17448 | ac_ext=cc | |
17449 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17450 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17451 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17452 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17453 | ||
17454 | ||
17455 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17456 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17457 | cat >conftest.$ac_ext <<_ACEOF | |
17458 | #line $LINENO "configure" | |
17459 | /* confdefs.h. */ | |
17460 | _ACEOF | |
17461 | cat confdefs.h >>conftest.$ac_ext | |
17462 | cat >>conftest.$ac_ext <<_ACEOF | |
17463 | /* end confdefs.h. */ | |
17464 | #include <string> | |
17465 | #include <functional> | |
17466 | #include <algorithm> | |
17467 | #include <vector> | |
17468 | #include <list> | |
17469 | int | |
17470 | main () | |
17471 | { | |
17472 | std::vector<int> moo; | |
17473 | std::list<int> foo; | |
17474 | std::vector<int>::iterator it = | |
17475 | std::find_if(moo.begin(), moo.end(), | |
17476 | std::bind2nd(std::less<int>(), 3)); | |
17477 | ; | |
17478 | return 0; | |
17479 | } | |
17480 | _ACEOF | |
17481 | rm -f conftest.$ac_objext | |
17482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17483 | (eval $ac_compile) 2>&5 | |
17484 | ac_status=$? | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); } && | |
17487 | { ac_try='test -s conftest.$ac_objext' | |
17488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17489 | (eval $ac_try) 2>&5 | |
17490 | ac_status=$? | |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17492 | (exit $ac_status); }; }; then | |
17493 | echo "$as_me:$LINENO: result: yes" >&5 | |
17494 | echo "${ECHO_T}yes" >&6 | |
17495 | else | |
17496 | echo "$as_me: failed program was:" >&5 | |
17497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17498 | ||
17499 | echo "$as_me:$LINENO: result: no" >&5 | |
17500 | echo "${ECHO_T}no" >&6 | |
17501 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17502 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17503 | { (exit 1); exit 1; }; } | |
17504 | fi | |
17505 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17506 | ||
17507 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17508 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17509 | cat >conftest.$ac_ext <<_ACEOF | |
17510 | #line $LINENO "configure" | |
17511 | /* confdefs.h. */ | |
17512 | _ACEOF | |
17513 | cat confdefs.h >>conftest.$ac_ext | |
17514 | cat >>conftest.$ac_ext <<_ACEOF | |
17515 | /* end confdefs.h. */ | |
17516 | #include <string> | |
17517 | int | |
17518 | main () | |
17519 | { | |
17520 | std::wstring foo; | |
17521 | ; | |
17522 | return 0; | |
17523 | } | |
17524 | _ACEOF | |
17525 | rm -f conftest.$ac_objext | |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17527 | (eval $ac_compile) 2>&5 | |
17528 | ac_status=$? | |
17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17530 | (exit $ac_status); } && | |
17531 | { ac_try='test -s conftest.$ac_objext' | |
17532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17533 | (eval $ac_try) 2>&5 | |
17534 | ac_status=$? | |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17536 | (exit $ac_status); }; }; then | |
17537 | echo "$as_me:$LINENO: result: yes" >&5 | |
17538 | echo "${ECHO_T}yes" >&6 | |
17539 | cat >>confdefs.h <<\_ACEOF | |
17540 | #define HAVE_STD_WSTRING 1 | |
17541 | _ACEOF | |
17542 | ||
17543 | else | |
17544 | echo "$as_me: failed program was:" >&5 | |
17545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17546 | ||
17547 | echo "$as_me:$LINENO: result: no" >&5 | |
17548 | echo "${ECHO_T}no" >&6 | |
17549 | fi | |
17550 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17551 | ||
17552 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17553 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17554 | cat >conftest.$ac_ext <<_ACEOF | |
17555 | #line $LINENO "configure" | |
17556 | /* confdefs.h. */ | |
17557 | _ACEOF | |
17558 | cat confdefs.h >>conftest.$ac_ext | |
17559 | cat >>conftest.$ac_ext <<_ACEOF | |
17560 | /* end confdefs.h. */ | |
17561 | #include <string> | |
17562 | int | |
17563 | main () | |
17564 | { | |
17565 | std::string foo, bar; | |
17566 | foo.compare(bar); | |
17567 | foo.compare(1, 1, bar); | |
17568 | foo.compare(1, 1, bar, 1, 1); | |
17569 | foo.compare(""); | |
17570 | foo.compare(1, 1, ""); | |
17571 | foo.compare(1, 1, "", 2); | |
17572 | ; | |
17573 | return 0; | |
17574 | } | |
17575 | _ACEOF | |
17576 | rm -f conftest.$ac_objext | |
17577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17578 | (eval $ac_compile) 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); } && | |
17582 | { ac_try='test -s conftest.$ac_objext' | |
17583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17584 | (eval $ac_try) 2>&5 | |
17585 | ac_status=$? | |
17586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17587 | (exit $ac_status); }; }; then | |
17588 | echo "$as_me:$LINENO: result: yes" >&5 | |
17589 | echo "${ECHO_T}yes" >&6 | |
17590 | cat >>confdefs.h <<\_ACEOF | |
17591 | #define HAVE_STD_STRING_COMPARE 1 | |
17592 | _ACEOF | |
17593 | ||
17594 | else | |
17595 | echo "$as_me: failed program was:" >&5 | |
17596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17597 | ||
17598 | echo "$as_me:$LINENO: result: no" >&5 | |
17599 | echo "${ECHO_T}no" >&6 | |
17600 | fi | |
17601 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17602 | ||
17603 | ac_ext=c | |
17604 | ac_cpp='$CPP $CPPFLAGS' | |
17605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17608 | ||
17609 | fi | |
17610 | ||
8284b0c5 | 17611 | |
21d1c967 GD |
17612 | SEARCH_INCLUDE="\ |
17613 | /usr/local/include \ | |
17614 | \ | |
17615 | /usr/Motif-1.2/include \ | |
17616 | /usr/Motif-2.1/include \ | |
17617 | \ | |
17618 | /usr/include/Motif1.2 \ | |
17619 | /opt/xpm/include/X11 \ | |
17620 | /opt/GBxpm/include/ \ | |
17621 | /opt/GBxpm/X11/include/ \ | |
17622 | \ | |
17623 | /usr/Motif1.2/include \ | |
17624 | /usr/dt/include \ | |
17625 | /usr/openwin/include \ | |
17626 | \ | |
17627 | /usr/include/Xm \ | |
17628 | \ | |
17629 | /usr/X11R6/include \ | |
17630 | /usr/X11R6.4/include \ | |
17631 | /usr/X11R5/include \ | |
17632 | /usr/X11R4/include \ | |
17633 | \ | |
17634 | /usr/include/X11R6 \ | |
17635 | /usr/include/X11R5 \ | |
17636 | /usr/include/X11R4 \ | |
17637 | \ | |
17638 | /usr/local/X11R6/include \ | |
17639 | /usr/local/X11R5/include \ | |
17640 | /usr/local/X11R4/include \ | |
17641 | \ | |
17642 | /usr/local/include/X11R6 \ | |
17643 | /usr/local/include/X11R5 \ | |
17644 | /usr/local/include/X11R4 \ | |
17645 | \ | |
17646 | /usr/X11/include \ | |
17647 | /usr/include/X11 \ | |
17648 | /usr/local/X11/include \ | |
17649 | /usr/local/include/X11 \ | |
17650 | \ | |
17651 | /usr/X386/include \ | |
17652 | /usr/x386/include \ | |
17653 | /usr/XFree86/include/X11 \ | |
17654 | \ | |
17655 | X:/XFree86/include \ | |
17656 | X:/XFree86/include/X11 \ | |
17657 | \ | |
17658 | /usr/include/gtk \ | |
17659 | /usr/local/include/gtk \ | |
17660 | /usr/include/glib \ | |
17661 | /usr/local/include/glib \ | |
17662 | \ | |
17663 | /usr/include/qt \ | |
17664 | /usr/local/include/qt \ | |
17665 | \ | |
17666 | /usr/include/windows \ | |
17667 | /usr/include/wine \ | |
17668 | /usr/local/include/wine \ | |
17669 | \ | |
17670 | /usr/unsupported/include \ | |
17671 | /usr/athena/include \ | |
17672 | /usr/local/x11r5/include \ | |
17673 | /usr/lpp/Xamples/include \ | |
17674 | \ | |
2b5f62a0 | 17675 | /usr/openwin/share/include" |
21d1c967 GD |
17676 | |
17677 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17678 | ||
8284b0c5 | 17679 | |
e6cc62c6 | 17680 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17681 | # This file is a shell script that caches the results of configure |
17682 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17683 | # scripts and configure runs, see configure's option --config-cache. |
17684 | # It is not useful on other systems. If it contains results you don't | |
17685 | # want to keep, you may remove or edit it. | |
21d1c967 | 17686 | # |
e6cc62c6 VS |
17687 | # config.status only pays attention to the cache file if you give it |
17688 | # the --recheck option to rerun configure. | |
21d1c967 | 17689 | # |
e6cc62c6 VS |
17690 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17691 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17692 | # following values. | |
17693 | ||
17694 | _ACEOF | |
17695 | ||
21d1c967 GD |
17696 | # The following way of writing the cache mishandles newlines in values, |
17697 | # but we know of no workaround that is simple, portable, and efficient. | |
17698 | # So, don't put newlines in cache variables' values. | |
17699 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17700 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17701 | { |
17702 | (set) 2>&1 | | |
17703 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17704 | *ac_space=\ *) | |
17705 | # `set' does not quote correctly, so add quotes (double-quote | |
17706 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17707 | sed -n \ | |
17708 | "s/'/'\\\\''/g; | |
17709 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17710 | ;; | |
17711 | *) | |
17712 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17713 | sed -n \ | |
17714 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17715 | ;; | |
17716 | esac; | |
17717 | } | | |
17718 | sed ' | |
17719 | t clear | |
17720 | : clear | |
17721 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17722 | t end | |
17723 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17724 | : end' >>confcache | |
17725 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17726 | if test -w $cache_file; then |
e6cc62c6 VS |
17727 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17728 | cat confcache >$cache_file | |
21d1c967 GD |
17729 | else |
17730 | echo "not updating unwritable cache $cache_file" | |
17731 | fi | |
ab9b9eab | 17732 | fi |
21d1c967 | 17733 | rm -f confcache |
ab9b9eab | 17734 | |
fe0895cf | 17735 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17736 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17737 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17738 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17740 | else | |
17741 | ||
17742 | cat >conftest.$ac_ext <<_ACEOF | |
17743 | #line $LINENO "configure" | |
17744 | /* confdefs.h. */ | |
17745 | _ACEOF | |
17746 | cat confdefs.h >>conftest.$ac_ext | |
17747 | cat >>conftest.$ac_ext <<_ACEOF | |
17748 | /* end confdefs.h. */ | |
21d1c967 | 17749 | #include <features.h> |
e6cc62c6 VS |
17750 | int |
17751 | main () | |
17752 | { | |
ab9b9eab | 17753 | |
21d1c967 GD |
17754 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17755 | #error not glibc2.1 | |
17756 | #endif | |
e6cc62c6 VS |
17757 | |
17758 | ; | |
17759 | return 0; | |
17760 | } | |
17761 | _ACEOF | |
17762 | rm -f conftest.$ac_objext | |
17763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17764 | (eval $ac_compile) 2>&5 | |
17765 | ac_status=$? | |
17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17767 | (exit $ac_status); } && | |
17768 | { ac_try='test -s conftest.$ac_objext' | |
17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17770 | (eval $ac_try) 2>&5 | |
17771 | ac_status=$? | |
17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17773 | (exit $ac_status); }; }; then | |
17774 | ||
21d1c967 | 17775 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17776 | |
698dcdb6 | 17777 | else |
e6cc62c6 VS |
17778 | echo "$as_me: failed program was:" >&5 |
17779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17780 | ||
17781 | ||
21d1c967 | 17782 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17783 | |
17784 | ||
247f5006 | 17785 | fi |
e6cc62c6 | 17786 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17787 | |
e6cc62c6 VS |
17788 | fi |
17789 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17790 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17791 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17792 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17793 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17794 | _ACEOF |
1e487827 | 17795 | |
90dd450c | 17796 | fi |
ab9b9eab VZ |
17797 | fi |
17798 | ||
5c0a20c3 VZ |
17799 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17800 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17801 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17802 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17803 | _ACEOF |
5c0a20c3 VZ |
17804 | |
17805 | fi | |
17806 | fi | |
17807 | ||
8284b0c5 MB |
17808 | |
17809 | ||
21d1c967 GD |
17810 | REGEX_INCLUDE= |
17811 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17812 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17813 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17814 | _ACEOF |
698dcdb6 | 17815 | |
8284b0c5 | 17816 | |
21d1c967 | 17817 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17818 | if test "${ac_cv_header_regex_h+set}" = set; then |
17819 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17820 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17821 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17823 | fi | |
17824 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17825 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17826 | else | |
17827 | # Is the header compilable? | |
17828 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17829 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17830 | cat >conftest.$ac_ext <<_ACEOF | |
17831 | #line $LINENO "configure" | |
17832 | /* confdefs.h. */ | |
17833 | _ACEOF | |
17834 | cat confdefs.h >>conftest.$ac_ext | |
17835 | cat >>conftest.$ac_ext <<_ACEOF | |
17836 | /* end confdefs.h. */ | |
17837 | $ac_includes_default | |
247f5006 | 17838 | #include <regex.h> |
e6cc62c6 VS |
17839 | _ACEOF |
17840 | rm -f conftest.$ac_objext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17842 | (eval $ac_compile) 2>&5 | |
17843 | ac_status=$? | |
17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17845 | (exit $ac_status); } && | |
17846 | { ac_try='test -s conftest.$ac_objext' | |
17847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17848 | (eval $ac_try) 2>&5 | |
17849 | ac_status=$? | |
17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17851 | (exit $ac_status); }; }; then | |
17852 | ac_header_compiler=yes | |
17853 | else | |
17854 | echo "$as_me: failed program was:" >&5 | |
17855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17856 | ||
17857 | ac_header_compiler=no | |
17858 | fi | |
17859 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17862 | ||
17863 | # Is the header present? | |
17864 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17865 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | #line $LINENO "configure" | |
17868 | /* confdefs.h. */ | |
17869 | _ACEOF | |
17870 | cat confdefs.h >>conftest.$ac_ext | |
17871 | cat >>conftest.$ac_ext <<_ACEOF | |
17872 | /* end confdefs.h. */ | |
17873 | #include <regex.h> | |
17874 | _ACEOF | |
17875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17877 | ac_status=$? | |
17878 | grep -v '^ *+' conftest.er1 >conftest.err | |
17879 | rm -f conftest.er1 | |
17880 | cat conftest.err >&5 | |
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17882 | (exit $ac_status); } >/dev/null; then | |
17883 | if test -s conftest.err; then | |
17884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17885 | else | |
17886 | ac_cpp_err= | |
17887 | fi | |
17888 | else | |
17889 | ac_cpp_err=yes | |
17890 | fi | |
17891 | if test -z "$ac_cpp_err"; then | |
17892 | ac_header_preproc=yes | |
17893 | else | |
17894 | echo "$as_me: failed program was:" >&5 | |
17895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17896 | ||
17897 | ac_header_preproc=no | |
17898 | fi | |
17899 | rm -f conftest.err conftest.$ac_ext | |
17900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17902 | ||
17903 | # So? What about this header? | |
17904 | case $ac_header_compiler:$ac_header_preproc in | |
17905 | yes:no ) | |
17906 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17907 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17908 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17909 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17910 | ( | |
17911 | cat <<\_ASBOX | |
17912 | ## ------------------------------------ ## | |
17913 | ## Report this to bug-autoconf@gnu.org. ## | |
17914 | ## ------------------------------------ ## | |
17915 | _ASBOX | |
17916 | ) | | |
17917 | sed "s/^/$as_me: WARNING: /" >&2 | |
17918 | ;; | |
17919 | no:yes ) | |
17920 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17921 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17922 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17923 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17924 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17925 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17926 | ( | |
17927 | cat <<\_ASBOX | |
17928 | ## ------------------------------------ ## | |
17929 | ## Report this to bug-autoconf@gnu.org. ## | |
17930 | ## ------------------------------------ ## | |
17931 | _ASBOX | |
17932 | ) | | |
17933 | sed "s/^/$as_me: WARNING: /" >&2 | |
17934 | ;; | |
17935 | esac | |
17936 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17937 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17938 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17940 | else | |
17941 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 17942 | fi |
e6cc62c6 VS |
17943 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
17944 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17945 | ||
698dcdb6 | 17946 | fi |
e6cc62c6 VS |
17947 | if test $ac_cv_header_regex_h = yes; then |
17948 | ||
17949 | for ac_func in regcomp | |
21d1c967 | 17950 | do |
e6cc62c6 VS |
17951 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17952 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17953 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17954 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17956 | else | |
17957 | cat >conftest.$ac_ext <<_ACEOF | |
17958 | #line $LINENO "configure" | |
17959 | /* confdefs.h. */ | |
17960 | _ACEOF | |
17961 | cat confdefs.h >>conftest.$ac_ext | |
17962 | cat >>conftest.$ac_ext <<_ACEOF | |
17963 | /* end confdefs.h. */ | |
a0b9e27f | 17964 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
17965 | which can conflict with char $ac_func (); below. |
17966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17967 | <limits.h> exists even on freestanding compilers. */ | |
17968 | #ifdef __STDC__ | |
17969 | # include <limits.h> | |
17970 | #else | |
17971 | # include <assert.h> | |
17972 | #endif | |
21d1c967 | 17973 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
17974 | #ifdef __cplusplus |
17975 | extern "C" | |
17976 | { | |
17977 | #endif | |
21d1c967 | 17978 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
17979 | builtin and then its argument prototype would still apply. */ |
17980 | char $ac_func (); | |
21d1c967 GD |
17981 | /* The GNU C library defines this for functions which it implements |
17982 | to always fail with ENOSYS. Some functions are actually named | |
17983 | something starting with __ and the normal name is an alias. */ | |
17984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17985 | choke me | |
17986 | #else | |
e6cc62c6 VS |
17987 | char (*f) () = $ac_func; |
17988 | #endif | |
17989 | #ifdef __cplusplus | |
17990 | } | |
21d1c967 | 17991 | #endif |
90dd450c | 17992 | |
e6cc62c6 VS |
17993 | int |
17994 | main () | |
17995 | { | |
17996 | return f != $ac_func; | |
17997 | ; | |
17998 | return 0; | |
17999 | } | |
18000 | _ACEOF | |
18001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18003 | (eval $ac_link) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); } && | |
18007 | { ac_try='test -s conftest$ac_exeext' | |
18008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18009 | (eval $ac_try) 2>&5 | |
18010 | ac_status=$? | |
18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18012 | (exit $ac_status); }; }; then | |
18013 | eval "$as_ac_var=yes" | |
18014 | else | |
18015 | echo "$as_me: failed program was:" >&5 | |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | eval "$as_ac_var=no" | |
18019 | fi | |
18020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18021 | fi | |
18022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18025 | cat >>confdefs.h <<_ACEOF | |
18026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18027 | _ACEOF | |
5c6fa7d2 | 18028 | |
698dcdb6 | 18029 | fi |
21d1c967 GD |
18030 | done |
18031 | ||
ab9b9eab VZ |
18032 | fi |
18033 | ||
8284b0c5 | 18034 | |
e6cc62c6 | 18035 | |
21d1c967 GD |
18036 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18037 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18038 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18039 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18040 | { (exit 1); exit 1; }; } | |
21d1c967 | 18041 | else |
e6cc62c6 VS |
18042 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18043 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18044 | wxUSE_REGEX=builtin |
18045 | fi | |
18046 | else | |
18047 | wxUSE_REGEX=sys | |
18048 | fi | |
ab9b9eab | 18049 | fi |
90dd450c | 18050 | |
21d1c967 GD |
18051 | if test "$wxUSE_REGEX" = "builtin" ; then |
18052 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18053 | fi |
21d1c967 | 18054 | fi |
90dd450c | 18055 | |
8284b0c5 | 18056 | |
21d1c967 GD |
18057 | ZLIB_INCLUDE= |
18058 | ZLIB_LINK= | |
18059 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18060 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18061 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18062 | _ACEOF |
21d1c967 | 18063 | |
8284b0c5 | 18064 | |
21d1c967 | 18065 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18066 | if test "$USE_DARWIN" = 1; then |
18067 | system_zlib_h_ok="yes" | |
18068 | else | |
e6cc62c6 VS |
18069 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18070 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18071 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18073 | else |
18074 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18075 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18076 | |
d643b80e | 18077 | else |
e6cc62c6 VS |
18078 | cat >conftest.$ac_ext <<_ACEOF |
18079 | #line $LINENO "configure" | |
18080 | /* confdefs.h. */ | |
18081 | _ACEOF | |
18082 | cat confdefs.h >>conftest.$ac_ext | |
18083 | cat >>conftest.$ac_ext <<_ACEOF | |
18084 | /* end confdefs.h. */ | |
18085 | ||
ef33c576 | 18086 | #include <zlib.h> |
d775acfa | 18087 | #include <stdio.h> |
d643b80e | 18088 | |
d775acfa VZ |
18089 | int main() |
18090 | { | |
18091 | FILE *f=fopen("conftestval", "w"); | |
18092 | if (!f) exit(1); | |
18093 | fprintf(f, "%s", | |
18094 | ZLIB_VERSION[0] == '1' && | |
18095 | (ZLIB_VERSION[2] > '1' || | |
18096 | (ZLIB_VERSION[2] == '1' && | |
18097 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18098 | exit(0); | |
18099 | } | |
e6cc62c6 VS |
18100 | |
18101 | _ACEOF | |
18102 | rm -f conftest$ac_exeext | |
18103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18104 | (eval $ac_link) 2>&5 | |
18105 | ac_status=$? | |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18113 | ac_cv_header_zlib_h=`cat conftestval` |
18114 | else | |
e6cc62c6 VS |
18115 | echo "$as_me: program exited with status $ac_status" >&5 |
18116 | echo "$as_me: failed program was:" >&5 | |
18117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18118 | ||
18119 | ( exit $ac_status ) | |
18120 | ac_cv_header_zlib_h=no | |
d643b80e | 18121 | fi |
e6cc62c6 | 18122 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18123 | fi |
18124 | ||
d643b80e | 18125 | fi |
e6cc62c6 VS |
18126 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18127 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18128 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18129 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18130 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18131 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18133 | fi | |
18134 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18135 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18136 | else |
e6cc62c6 VS |
18137 | # Is the header compilable? |
18138 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18139 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18140 | cat >conftest.$ac_ext <<_ACEOF | |
18141 | #line $LINENO "configure" | |
18142 | /* confdefs.h. */ | |
18143 | _ACEOF | |
18144 | cat confdefs.h >>conftest.$ac_ext | |
18145 | cat >>conftest.$ac_ext <<_ACEOF | |
18146 | /* end confdefs.h. */ | |
18147 | $ac_includes_default | |
89e6bf6d | 18148 | #include <zlib.h> |
e6cc62c6 VS |
18149 | _ACEOF |
18150 | rm -f conftest.$ac_objext | |
18151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18152 | (eval $ac_compile) 2>&5 | |
18153 | ac_status=$? | |
18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18155 | (exit $ac_status); } && | |
18156 | { ac_try='test -s conftest.$ac_objext' | |
18157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18158 | (eval $ac_try) 2>&5 | |
18159 | ac_status=$? | |
18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18161 | (exit $ac_status); }; }; then | |
18162 | ac_header_compiler=yes | |
18163 | else | |
18164 | echo "$as_me: failed program was:" >&5 | |
18165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18166 | ||
18167 | ac_header_compiler=no | |
18168 | fi | |
18169 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18171 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18172 | ||
18173 | # Is the header present? | |
18174 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18175 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18176 | cat >conftest.$ac_ext <<_ACEOF | |
18177 | #line $LINENO "configure" | |
18178 | /* confdefs.h. */ | |
18179 | _ACEOF | |
18180 | cat confdefs.h >>conftest.$ac_ext | |
18181 | cat >>conftest.$ac_ext <<_ACEOF | |
18182 | /* end confdefs.h. */ | |
18183 | #include <zlib.h> | |
18184 | _ACEOF | |
18185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18187 | ac_status=$? | |
18188 | grep -v '^ *+' conftest.er1 >conftest.err | |
18189 | rm -f conftest.er1 | |
18190 | cat conftest.err >&5 | |
18191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18192 | (exit $ac_status); } >/dev/null; then | |
18193 | if test -s conftest.err; then | |
18194 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18195 | else | |
18196 | ac_cpp_err= | |
18197 | fi | |
18198 | else | |
18199 | ac_cpp_err=yes | |
18200 | fi | |
18201 | if test -z "$ac_cpp_err"; then | |
18202 | ac_header_preproc=yes | |
18203 | else | |
18204 | echo "$as_me: failed program was:" >&5 | |
18205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18206 | ||
18207 | ac_header_preproc=no | |
18208 | fi | |
18209 | rm -f conftest.err conftest.$ac_ext | |
18210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18211 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18212 | ||
18213 | # So? What about this header? | |
18214 | case $ac_header_compiler:$ac_header_preproc in | |
18215 | yes:no ) | |
18216 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18217 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18218 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18219 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18220 | ( | |
18221 | cat <<\_ASBOX | |
18222 | ## ------------------------------------ ## | |
18223 | ## Report this to bug-autoconf@gnu.org. ## | |
18224 | ## ------------------------------------ ## | |
18225 | _ASBOX | |
18226 | ) | | |
18227 | sed "s/^/$as_me: WARNING: /" >&2 | |
18228 | ;; | |
18229 | no:yes ) | |
18230 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18231 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18232 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18233 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18234 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18235 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18236 | ( | |
18237 | cat <<\_ASBOX | |
18238 | ## ------------------------------------ ## | |
18239 | ## Report this to bug-autoconf@gnu.org. ## | |
18240 | ## ------------------------------------ ## | |
18241 | _ASBOX | |
18242 | ) | | |
18243 | sed "s/^/$as_me: WARNING: /" >&2 | |
18244 | ;; | |
18245 | esac | |
18246 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18247 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18248 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18250 | else |
e6cc62c6 VS |
18251 | ac_cv_header_zlib_h=$ac_header_preproc |
18252 | fi | |
18253 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18254 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18255 | ||
89e6bf6d VZ |
18256 | fi |
18257 | ||
d643b80e | 18258 | |
e6cc62c6 | 18259 | |
d775acfa VZ |
18260 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18261 | fi | |
18262 | ||
18263 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18264 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18265 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18266 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18268 | else |
e6cc62c6 | 18269 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18270 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18271 | cat >conftest.$ac_ext <<_ACEOF |
18272 | #line $LINENO "configure" | |
18273 | /* confdefs.h. */ | |
18274 | _ACEOF | |
18275 | cat confdefs.h >>conftest.$ac_ext | |
18276 | cat >>conftest.$ac_ext <<_ACEOF | |
18277 | /* end confdefs.h. */ | |
18278 | ||
21d1c967 | 18279 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18280 | #ifdef __cplusplus |
18281 | extern "C" | |
18282 | #endif | |
21d1c967 | 18283 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18284 | builtin and then its argument prototype would still apply. */ |
18285 | char deflate (); | |
18286 | int | |
18287 | main () | |
18288 | { | |
18289 | deflate (); | |
18290 | ; | |
18291 | return 0; | |
18292 | } | |
18293 | _ACEOF | |
18294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18296 | (eval $ac_link) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); } && | |
18300 | { ac_try='test -s conftest$ac_exeext' | |
18301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18302 | (eval $ac_try) 2>&5 | |
18303 | ac_status=$? | |
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18305 | (exit $ac_status); }; }; then | |
18306 | ac_cv_lib_z_deflate=yes | |
18307 | else | |
18308 | echo "$as_me: failed program was:" >&5 | |
18309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18310 | ||
18311 | ac_cv_lib_z_deflate=no | |
18312 | fi | |
18313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18314 | LIBS=$ac_check_lib_save_LIBS | |
18315 | fi | |
18316 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18317 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18318 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18319 | ZLIB_LINK=" -lz" |
a0b9e27f | 18320 | fi |
698dcdb6 | 18321 | |
d643b80e | 18322 | fi |
247f5006 | 18323 | |
21d1c967 GD |
18324 | if test "x$ZLIB_LINK" = "x" ; then |
18325 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18326 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18327 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18328 | { (exit 1); exit 1; }; } | |
21d1c967 | 18329 | else |
e6cc62c6 VS |
18330 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18331 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18332 | wxUSE_ZLIB=builtin |
18333 | fi | |
18334 | else | |
18335 | wxUSE_ZLIB=sys | |
18336 | fi | |
18337 | fi | |
18338 | ||
18339 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18340 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18341 | fi | |
ab9b9eab VZ |
18342 | fi |
18343 | ||
8284b0c5 | 18344 | |
21d1c967 GD |
18345 | PNG_INCLUDE= |
18346 | PNG_LINK= | |
18347 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18348 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18349 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18350 | _ACEOF |
90dd450c | 18351 | |
8284b0c5 | 18352 | |
21d1c967 | 18353 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18354 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18355 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18356 | wxUSE_LIBPNG=sys |
18357 | fi | |
90dd450c | 18358 | |
21d1c967 | 18359 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18360 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18361 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18362 | wxUSE_LIBPNG=builtin |
18363 | fi | |
18364 | ||
18365 | if test "$wxUSE_MGL" != 1 ; then | |
18366 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18367 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18368 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18369 | if test "${ac_cv_header_png_h+set}" = set; then | |
18370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18371 | else |
18372 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18373 | unset ac_cv_header_png_h |
e6cc62c6 | 18374 | |
5d3f766d | 18375 | else |
e6cc62c6 VS |
18376 | cat >conftest.$ac_ext <<_ACEOF |
18377 | #line $LINENO "configure" | |
18378 | /* confdefs.h. */ | |
18379 | _ACEOF | |
18380 | cat confdefs.h >>conftest.$ac_ext | |
18381 | cat >>conftest.$ac_ext <<_ACEOF | |
18382 | /* end confdefs.h. */ | |
18383 | ||
ef33c576 | 18384 | #include <png.h> |
5d3f766d VZ |
18385 | #include <stdio.h> |
18386 | ||
18387 | int main() | |
18388 | { | |
18389 | FILE *f=fopen("conftestval", "w"); | |
18390 | if (!f) exit(1); | |
18391 | fprintf(f, "%s", | |
18392 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18393 | exit(0); | |
18394 | } | |
e6cc62c6 VS |
18395 | |
18396 | _ACEOF | |
18397 | rm -f conftest$ac_exeext | |
18398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18399 | (eval $ac_link) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18404 | (eval $ac_try) 2>&5 | |
18405 | ac_status=$? | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18408 | ac_cv_header_png_h=`cat conftestval` |
18409 | else | |
e6cc62c6 VS |
18410 | echo "$as_me: program exited with status $ac_status" >&5 |
18411 | echo "$as_me: failed program was:" >&5 | |
18412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18413 | ||
18414 | ( exit $ac_status ) | |
18415 | ac_cv_header_png_h=no | |
5d3f766d | 18416 | fi |
e6cc62c6 | 18417 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18418 | fi |
18419 | ||
5d3f766d | 18420 | fi |
e6cc62c6 VS |
18421 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18422 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18423 | if test "${ac_cv_header_png_h+set}" = set; then | |
18424 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18425 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18426 | if test "${ac_cv_header_png_h+set}" = set; then | |
18427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18428 | fi | |
18429 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18430 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18431 | else |
e6cc62c6 VS |
18432 | # Is the header compilable? |
18433 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18434 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18435 | cat >conftest.$ac_ext <<_ACEOF | |
18436 | #line $LINENO "configure" | |
18437 | /* confdefs.h. */ | |
18438 | _ACEOF | |
18439 | cat confdefs.h >>conftest.$ac_ext | |
18440 | cat >>conftest.$ac_ext <<_ACEOF | |
18441 | /* end confdefs.h. */ | |
18442 | $ac_includes_default | |
89e6bf6d | 18443 | #include <png.h> |
e6cc62c6 VS |
18444 | _ACEOF |
18445 | rm -f conftest.$ac_objext | |
18446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18447 | (eval $ac_compile) 2>&5 | |
18448 | ac_status=$? | |
18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18450 | (exit $ac_status); } && | |
18451 | { ac_try='test -s conftest.$ac_objext' | |
18452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18453 | (eval $ac_try) 2>&5 | |
18454 | ac_status=$? | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); }; }; then | |
18457 | ac_header_compiler=yes | |
18458 | else | |
18459 | echo "$as_me: failed program was:" >&5 | |
18460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18461 | ||
18462 | ac_header_compiler=no | |
18463 | fi | |
18464 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18466 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18467 | ||
18468 | # Is the header present? | |
18469 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18470 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18471 | cat >conftest.$ac_ext <<_ACEOF | |
18472 | #line $LINENO "configure" | |
18473 | /* confdefs.h. */ | |
18474 | _ACEOF | |
18475 | cat confdefs.h >>conftest.$ac_ext | |
18476 | cat >>conftest.$ac_ext <<_ACEOF | |
18477 | /* end confdefs.h. */ | |
18478 | #include <png.h> | |
18479 | _ACEOF | |
18480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18482 | ac_status=$? | |
18483 | grep -v '^ *+' conftest.er1 >conftest.err | |
18484 | rm -f conftest.er1 | |
18485 | cat conftest.err >&5 | |
18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18487 | (exit $ac_status); } >/dev/null; then | |
18488 | if test -s conftest.err; then | |
18489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18490 | else | |
18491 | ac_cpp_err= | |
18492 | fi | |
18493 | else | |
18494 | ac_cpp_err=yes | |
18495 | fi | |
18496 | if test -z "$ac_cpp_err"; then | |
18497 | ac_header_preproc=yes | |
18498 | else | |
18499 | echo "$as_me: failed program was:" >&5 | |
18500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18501 | ||
18502 | ac_header_preproc=no | |
18503 | fi | |
18504 | rm -f conftest.err conftest.$ac_ext | |
18505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18506 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18507 | ||
18508 | # So? What about this header? | |
18509 | case $ac_header_compiler:$ac_header_preproc in | |
18510 | yes:no ) | |
18511 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18512 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18513 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18514 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18515 | ( | |
18516 | cat <<\_ASBOX | |
18517 | ## ------------------------------------ ## | |
18518 | ## Report this to bug-autoconf@gnu.org. ## | |
18519 | ## ------------------------------------ ## | |
18520 | _ASBOX | |
18521 | ) | | |
18522 | sed "s/^/$as_me: WARNING: /" >&2 | |
18523 | ;; | |
18524 | no:yes ) | |
18525 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18526 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18527 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18528 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18529 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18530 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18531 | ( | |
18532 | cat <<\_ASBOX | |
18533 | ## ------------------------------------ ## | |
18534 | ## Report this to bug-autoconf@gnu.org. ## | |
18535 | ## ------------------------------------ ## | |
18536 | _ASBOX | |
18537 | ) | | |
18538 | sed "s/^/$as_me: WARNING: /" >&2 | |
18539 | ;; | |
18540 | esac | |
18541 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18542 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18543 | if test "${ac_cv_header_png_h+set}" = set; then | |
18544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18545 | else |
e6cc62c6 VS |
18546 | ac_cv_header_png_h=$ac_header_preproc |
18547 | fi | |
18548 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18549 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18550 | ||
89e6bf6d VZ |
18551 | fi |
18552 | ||
5d3f766d | 18553 | |
e6cc62c6 | 18554 | |
5d3f766d | 18555 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18556 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18557 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18558 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18560 | else |
e6cc62c6 | 18561 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18562 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18563 | cat >conftest.$ac_ext <<_ACEOF |
18564 | #line $LINENO "configure" | |
18565 | /* confdefs.h. */ | |
18566 | _ACEOF | |
18567 | cat confdefs.h >>conftest.$ac_ext | |
18568 | cat >>conftest.$ac_ext <<_ACEOF | |
18569 | /* end confdefs.h. */ | |
18570 | ||
21d1c967 | 18571 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18572 | #ifdef __cplusplus |
18573 | extern "C" | |
18574 | #endif | |
21d1c967 | 18575 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18576 | builtin and then its argument prototype would still apply. */ |
18577 | char png_check_sig (); | |
18578 | int | |
18579 | main () | |
18580 | { | |
18581 | png_check_sig (); | |
18582 | ; | |
18583 | return 0; | |
18584 | } | |
18585 | _ACEOF | |
18586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18588 | (eval $ac_link) 2>&5 | |
18589 | ac_status=$? | |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18591 | (exit $ac_status); } && | |
18592 | { ac_try='test -s conftest$ac_exeext' | |
18593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18594 | (eval $ac_try) 2>&5 | |
18595 | ac_status=$? | |
18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18597 | (exit $ac_status); }; }; then | |
18598 | ac_cv_lib_png_png_check_sig=yes | |
18599 | else | |
18600 | echo "$as_me: failed program was:" >&5 | |
18601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18602 | ||
18603 | ac_cv_lib_png_png_check_sig=no | |
18604 | fi | |
18605 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18606 | LIBS=$ac_check_lib_save_LIBS | |
18607 | fi | |
18608 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18609 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18610 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18611 | PNG_LINK=" -lpng" |
a0b9e27f | 18612 | fi |
90dd450c | 18613 | |
5d3f766d | 18614 | fi |
247f5006 | 18615 | |
21d1c967 GD |
18616 | if test "x$PNG_LINK" = "x" ; then |
18617 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18618 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18619 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18620 | { (exit 1); exit 1; }; } | |
21d1c967 | 18621 | else |
e6cc62c6 VS |
18622 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18623 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18624 | wxUSE_LIBPNG=builtin |
18625 | fi | |
18626 | else | |
2b5f62a0 | 18627 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18628 | fi |
18629 | fi | |
18630 | fi | |
90dd450c | 18631 | |
21d1c967 GD |
18632 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18633 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18634 | fi | |
90dd450c | 18635 | |
21d1c967 | 18636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18637 | fi |
18638 | ||
8284b0c5 | 18639 | |
21d1c967 GD |
18640 | JPEG_INCLUDE= |
18641 | JPEG_LINK= | |
18642 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18643 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18644 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18645 | _ACEOF |
90dd450c | 18646 | |
8284b0c5 | 18647 | |
21d1c967 | 18648 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18649 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18650 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18651 | wxUSE_LIBJPEG=sys |
18652 | fi | |
90dd450c | 18653 | |
21d1c967 GD |
18654 | if test "$wxUSE_MGL" != 1 ; then |
18655 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18656 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18657 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18658 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18660 | else | |
18661 | cat >conftest.$ac_ext <<_ACEOF | |
18662 | #line $LINENO "configure" | |
18663 | /* confdefs.h. */ | |
18664 | _ACEOF | |
18665 | cat confdefs.h >>conftest.$ac_ext | |
18666 | cat >>conftest.$ac_ext <<_ACEOF | |
18667 | /* end confdefs.h. */ | |
90dd450c | 18668 | |
21d1c967 GD |
18669 | #undef HAVE_STDLIB_H |
18670 | #include <stdio.h> | |
18671 | #include <jpeglib.h> | |
90dd450c | 18672 | |
e6cc62c6 VS |
18673 | int |
18674 | main () | |
18675 | { | |
18676 | ||
18677 | ||
18678 | ; | |
18679 | return 0; | |
18680 | } | |
18681 | _ACEOF | |
18682 | rm -f conftest.$ac_objext | |
18683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18684 | (eval $ac_compile) 2>&5 | |
18685 | ac_status=$? | |
18686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18687 | (exit $ac_status); } && | |
18688 | { ac_try='test -s conftest.$ac_objext' | |
18689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18690 | (eval $ac_try) 2>&5 | |
18691 | ac_status=$? | |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18693 | (exit $ac_status); }; }; then | |
21d1c967 | 18694 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18695 | else |
e6cc62c6 VS |
18696 | echo "$as_me: failed program was:" >&5 |
18697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18698 | ||
18699 | ac_cv_header_jpeglib_h=no | |
18700 | ||
90dd450c | 18701 | fi |
e6cc62c6 VS |
18702 | rm -f conftest.$ac_objext conftest.$ac_ext |
18703 | ||
90dd450c VZ |
18704 | fi |
18705 | ||
e6cc62c6 VS |
18706 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18707 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18708 | |
21d1c967 | 18709 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18710 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18711 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18712 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18714 | else |
e6cc62c6 | 18715 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18716 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18717 | cat >conftest.$ac_ext <<_ACEOF |
18718 | #line $LINENO "configure" | |
18719 | /* confdefs.h. */ | |
18720 | _ACEOF | |
18721 | cat confdefs.h >>conftest.$ac_ext | |
18722 | cat >>conftest.$ac_ext <<_ACEOF | |
18723 | /* end confdefs.h. */ | |
18724 | ||
21d1c967 | 18725 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18726 | #ifdef __cplusplus |
18727 | extern "C" | |
18728 | #endif | |
21d1c967 | 18729 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18730 | builtin and then its argument prototype would still apply. */ |
18731 | char jpeg_read_header (); | |
18732 | int | |
18733 | main () | |
18734 | { | |
18735 | jpeg_read_header (); | |
18736 | ; | |
18737 | return 0; | |
18738 | } | |
18739 | _ACEOF | |
18740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18742 | (eval $ac_link) 2>&5 | |
18743 | ac_status=$? | |
18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18745 | (exit $ac_status); } && | |
18746 | { ac_try='test -s conftest$ac_exeext' | |
18747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18748 | (eval $ac_try) 2>&5 | |
18749 | ac_status=$? | |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18751 | (exit $ac_status); }; }; then | |
18752 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18753 | else | |
18754 | echo "$as_me: failed program was:" >&5 | |
18755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18756 | ||
18757 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18758 | fi | |
18759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18760 | LIBS=$ac_check_lib_save_LIBS | |
18761 | fi | |
18762 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18763 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18764 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18765 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18766 | fi |
18767 | ||
21d1c967 | 18768 | fi |
90dd450c | 18769 | |
21d1c967 GD |
18770 | if test "x$JPEG_LINK" = "x" ; then |
18771 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18772 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18773 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18774 | { (exit 1); exit 1; }; } | |
21d1c967 | 18775 | else |
e6cc62c6 VS |
18776 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18777 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18778 | wxUSE_LIBJPEG=builtin |
18779 | fi | |
18780 | else | |
18781 | wxUSE_LIBJPEG=sys | |
18782 | fi | |
18783 | fi | |
18784 | fi | |
90dd450c | 18785 | |
21d1c967 GD |
18786 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18787 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18788 | fi | |
18789 | fi | |
90dd450c | 18790 | |
8284b0c5 | 18791 | |
21d1c967 GD |
18792 | TIFF_INCLUDE= |
18793 | TIFF_LINK= | |
2b5f62a0 | 18794 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18795 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18796 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18797 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18798 | _ACEOF |
21d1c967 | 18799 | |
8284b0c5 | 18800 | |
21d1c967 | 18801 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18802 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18803 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18804 | fi | |
18805 | if test "$wxUSE_ZLIB" = "sys"; then | |
18806 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18807 | fi | |
e6cc62c6 VS |
18808 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18809 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18810 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18811 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18813 | fi | |
18814 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18815 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18816 | else | |
18817 | # Is the header compilable? | |
18818 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18819 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18820 | cat >conftest.$ac_ext <<_ACEOF | |
18821 | #line $LINENO "configure" | |
18822 | /* confdefs.h. */ | |
18823 | _ACEOF | |
18824 | cat confdefs.h >>conftest.$ac_ext | |
18825 | cat >>conftest.$ac_ext <<_ACEOF | |
18826 | /* end confdefs.h. */ | |
18827 | $ac_includes_default | |
247f5006 | 18828 | #include <tiffio.h> |
e6cc62c6 VS |
18829 | _ACEOF |
18830 | rm -f conftest.$ac_objext | |
18831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18832 | (eval $ac_compile) 2>&5 | |
18833 | ac_status=$? | |
18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18835 | (exit $ac_status); } && | |
18836 | { ac_try='test -s conftest.$ac_objext' | |
18837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18838 | (eval $ac_try) 2>&5 | |
18839 | ac_status=$? | |
18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18841 | (exit $ac_status); }; }; then | |
18842 | ac_header_compiler=yes | |
18843 | else | |
18844 | echo "$as_me: failed program was:" >&5 | |
18845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18846 | ||
18847 | ac_header_compiler=no | |
18848 | fi | |
18849 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18850 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18851 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18852 | ||
18853 | # Is the header present? | |
18854 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18855 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18856 | cat >conftest.$ac_ext <<_ACEOF | |
18857 | #line $LINENO "configure" | |
18858 | /* confdefs.h. */ | |
18859 | _ACEOF | |
18860 | cat confdefs.h >>conftest.$ac_ext | |
18861 | cat >>conftest.$ac_ext <<_ACEOF | |
18862 | /* end confdefs.h. */ | |
18863 | #include <tiffio.h> | |
18864 | _ACEOF | |
18865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18867 | ac_status=$? | |
18868 | grep -v '^ *+' conftest.er1 >conftest.err | |
18869 | rm -f conftest.er1 | |
18870 | cat conftest.err >&5 | |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18872 | (exit $ac_status); } >/dev/null; then | |
18873 | if test -s conftest.err; then | |
18874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18875 | else | |
18876 | ac_cpp_err= | |
18877 | fi | |
18878 | else | |
18879 | ac_cpp_err=yes | |
18880 | fi | |
18881 | if test -z "$ac_cpp_err"; then | |
18882 | ac_header_preproc=yes | |
18883 | else | |
18884 | echo "$as_me: failed program was:" >&5 | |
18885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18886 | ||
18887 | ac_header_preproc=no | |
18888 | fi | |
18889 | rm -f conftest.err conftest.$ac_ext | |
18890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18891 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18892 | ||
18893 | # So? What about this header? | |
18894 | case $ac_header_compiler:$ac_header_preproc in | |
18895 | yes:no ) | |
18896 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18897 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18898 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18899 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18900 | ( | |
18901 | cat <<\_ASBOX | |
18902 | ## ------------------------------------ ## | |
18903 | ## Report this to bug-autoconf@gnu.org. ## | |
18904 | ## ------------------------------------ ## | |
18905 | _ASBOX | |
18906 | ) | | |
18907 | sed "s/^/$as_me: WARNING: /" >&2 | |
18908 | ;; | |
18909 | no:yes ) | |
18910 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18911 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18912 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18913 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18914 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18915 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18916 | ( | |
18917 | cat <<\_ASBOX | |
18918 | ## ------------------------------------ ## | |
18919 | ## Report this to bug-autoconf@gnu.org. ## | |
18920 | ## ------------------------------------ ## | |
18921 | _ASBOX | |
18922 | ) | | |
18923 | sed "s/^/$as_me: WARNING: /" >&2 | |
18924 | ;; | |
18925 | esac | |
18926 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18927 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18928 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18930 | else | |
18931 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 18932 | fi |
e6cc62c6 VS |
18933 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
18934 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18935 | ||
21d1c967 | 18936 | fi |
e6cc62c6 VS |
18937 | if test $ac_cv_header_tiffio_h = yes; then |
18938 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18939 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18940 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 18942 | else |
e6cc62c6 | 18943 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 18944 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
18945 | cat >conftest.$ac_ext <<_ACEOF |
18946 | #line $LINENO "configure" | |
18947 | /* confdefs.h. */ | |
18948 | _ACEOF | |
18949 | cat confdefs.h >>conftest.$ac_ext | |
18950 | cat >>conftest.$ac_ext <<_ACEOF | |
18951 | /* end confdefs.h. */ | |
18952 | ||
ab9b9eab | 18953 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18954 | #ifdef __cplusplus |
18955 | extern "C" | |
18956 | #endif | |
ab9b9eab | 18957 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18958 | builtin and then its argument prototype would still apply. */ |
18959 | char TIFFError (); | |
18960 | int | |
18961 | main () | |
18962 | { | |
18963 | TIFFError (); | |
18964 | ; | |
18965 | return 0; | |
18966 | } | |
18967 | _ACEOF | |
18968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18970 | (eval $ac_link) 2>&5 | |
18971 | ac_status=$? | |
18972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18973 | (exit $ac_status); } && | |
18974 | { ac_try='test -s conftest$ac_exeext' | |
18975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18976 | (eval $ac_try) 2>&5 | |
18977 | ac_status=$? | |
18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18979 | (exit $ac_status); }; }; then | |
18980 | ac_cv_lib_tiff_TIFFError=yes | |
18981 | else | |
18982 | echo "$as_me: failed program was:" >&5 | |
18983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18984 | ||
18985 | ac_cv_lib_tiff_TIFFError=no | |
18986 | fi | |
18987 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18988 | LIBS=$ac_check_lib_save_LIBS | |
18989 | fi | |
18990 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
18991 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
18992 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 18993 | TIFF_LINK=" -ltiff" |
a0b9e27f | 18994 | fi |
cd6d6d5b | 18995 | |
e6cc62c6 | 18996 | |
a0b9e27f | 18997 | fi |
8284b0c5 | 18998 | |
247f5006 | 18999 | |
e6cc62c6 | 19000 | |
21d1c967 GD |
19001 | if test "x$TIFF_LINK" = "x" ; then |
19002 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19003 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19004 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19005 | { (exit 1); exit 1; }; } | |
90dd450c | 19006 | else |
e6cc62c6 VS |
19007 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19008 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19009 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19010 | fi |
d8356fa3 | 19011 | else |
21d1c967 | 19012 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19013 | fi |
21d1c967 | 19014 | fi |
d8356fa3 | 19015 | |
21d1c967 GD |
19016 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19017 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19018 | fi |
21d1c967 | 19019 | fi |
10f2d63a | 19020 | |
8284b0c5 | 19021 | |
672abd7a | 19022 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 19023 | wxUSE_XML=yes |
672abd7a VS |
19024 | cat >>confdefs.h <<\_ACEOF |
19025 | #define wxUSE_EXPAT 1 | |
19026 | _ACEOF | |
19027 | ||
19028 | cat >>confdefs.h <<\_ACEOF | |
19029 | #define wxUSE_XML 1 | |
19030 | _ACEOF | |
19031 | ||
19032 | ||
19033 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19034 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19035 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19036 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19037 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19039 | fi | |
19040 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19041 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19042 | else | |
19043 | # Is the header compilable? | |
19044 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19045 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19046 | cat >conftest.$ac_ext <<_ACEOF | |
19047 | #line $LINENO "configure" | |
19048 | /* confdefs.h. */ | |
19049 | _ACEOF | |
19050 | cat confdefs.h >>conftest.$ac_ext | |
19051 | cat >>conftest.$ac_ext <<_ACEOF | |
19052 | /* end confdefs.h. */ | |
19053 | $ac_includes_default | |
19054 | #include <expat.h> | |
19055 | _ACEOF | |
19056 | rm -f conftest.$ac_objext | |
19057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19058 | (eval $ac_compile) 2>&5 | |
19059 | ac_status=$? | |
19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19061 | (exit $ac_status); } && | |
19062 | { ac_try='test -s conftest.$ac_objext' | |
19063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19064 | (eval $ac_try) 2>&5 | |
19065 | ac_status=$? | |
19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19067 | (exit $ac_status); }; }; then | |
19068 | ac_header_compiler=yes | |
19069 | else | |
19070 | echo "$as_me: failed program was:" >&5 | |
19071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19072 | ||
19073 | ac_header_compiler=no | |
19074 | fi | |
19075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19078 | ||
19079 | # Is the header present? | |
19080 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19081 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19082 | cat >conftest.$ac_ext <<_ACEOF | |
19083 | #line $LINENO "configure" | |
19084 | /* confdefs.h. */ | |
19085 | _ACEOF | |
19086 | cat confdefs.h >>conftest.$ac_ext | |
19087 | cat >>conftest.$ac_ext <<_ACEOF | |
19088 | /* end confdefs.h. */ | |
19089 | #include <expat.h> | |
19090 | _ACEOF | |
19091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19093 | ac_status=$? | |
19094 | grep -v '^ *+' conftest.er1 >conftest.err | |
19095 | rm -f conftest.er1 | |
19096 | cat conftest.err >&5 | |
19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19098 | (exit $ac_status); } >/dev/null; then | |
19099 | if test -s conftest.err; then | |
19100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19101 | else | |
19102 | ac_cpp_err= | |
19103 | fi | |
19104 | else | |
19105 | ac_cpp_err=yes | |
19106 | fi | |
19107 | if test -z "$ac_cpp_err"; then | |
19108 | ac_header_preproc=yes | |
19109 | else | |
19110 | echo "$as_me: failed program was:" >&5 | |
19111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19112 | ||
19113 | ac_header_preproc=no | |
19114 | fi | |
19115 | rm -f conftest.err conftest.$ac_ext | |
19116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19118 | ||
19119 | # So? What about this header? | |
19120 | case $ac_header_compiler:$ac_header_preproc in | |
19121 | yes:no ) | |
19122 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19123 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19124 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19125 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19126 | ( | |
19127 | cat <<\_ASBOX | |
19128 | ## ------------------------------------ ## | |
19129 | ## Report this to bug-autoconf@gnu.org. ## | |
19130 | ## ------------------------------------ ## | |
19131 | _ASBOX | |
19132 | ) | | |
19133 | sed "s/^/$as_me: WARNING: /" >&2 | |
19134 | ;; | |
19135 | no:yes ) | |
19136 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 | |
19137 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
19138 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 | |
19139 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
19140 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19141 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19142 | ( | |
19143 | cat <<\_ASBOX | |
19144 | ## ------------------------------------ ## | |
19145 | ## Report this to bug-autoconf@gnu.org. ## | |
19146 | ## ------------------------------------ ## | |
19147 | _ASBOX | |
19148 | ) | | |
19149 | sed "s/^/$as_me: WARNING: /" >&2 | |
19150 | ;; | |
19151 | esac | |
19152 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19153 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19154 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19156 | else | |
19157 | ac_cv_header_expat_h=$ac_header_preproc | |
19158 | fi | |
19159 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19160 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19161 | ||
19162 | fi | |
5f0b6dff VS |
19163 | if test $ac_cv_header_expat_h = yes; then |
19164 | found_expat_h=1 | |
19165 | fi | |
19166 | ||
19167 | ||
19168 | if test "x$found_expat_h" = "x1"; then | |
19169 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19170 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19171 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19173 | else | |
19174 | ||
19175 | ||
672abd7a | 19176 | |
5f0b6dff VS |
19177 | ac_ext=cc |
19178 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19179 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19180 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19181 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19182 | ||
19183 | cat >conftest.$ac_ext <<_ACEOF | |
19184 | #line $LINENO "configure" | |
19185 | /* confdefs.h. */ | |
19186 | _ACEOF | |
19187 | cat confdefs.h >>conftest.$ac_ext | |
19188 | cat >>conftest.$ac_ext <<_ACEOF | |
19189 | /* end confdefs.h. */ | |
19190 | #include <expat.h> | |
19191 | int | |
19192 | main () | |
19193 | { | |
672abd7a | 19194 | |
5f0b6dff VS |
19195 | ; |
19196 | return 0; | |
19197 | } | |
19198 | _ACEOF | |
19199 | rm -f conftest.$ac_objext | |
19200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19201 | (eval $ac_compile) 2>&5 | |
19202 | ac_status=$? | |
19203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19204 | (exit $ac_status); } && | |
19205 | { ac_try='test -s conftest.$ac_objext' | |
19206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19207 | (eval $ac_try) 2>&5 | |
19208 | ac_status=$? | |
19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19210 | (exit $ac_status); }; }; then | |
19211 | wx_cv_expat_is_not_broken=yes | |
19212 | else | |
19213 | echo "$as_me: failed program was:" >&5 | |
19214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19215 | ||
19216 | wx_cv_expat_is_not_broken=no | |
19217 | ||
19218 | fi | |
19219 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19220 | ac_ext=c | |
19221 | ac_cpp='$CPP $CPPFLAGS' | |
19222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19225 | ||
19226 | ||
19227 | ||
19228 | fi | |
19229 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19230 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19231 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19232 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19233 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19234 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19236 | else | |
19237 | ac_check_lib_save_LIBS=$LIBS | |
19238 | LIBS="-lexpat $LIBS" | |
19239 | cat >conftest.$ac_ext <<_ACEOF | |
19240 | #line $LINENO "configure" | |
19241 | /* confdefs.h. */ | |
19242 | _ACEOF | |
19243 | cat confdefs.h >>conftest.$ac_ext | |
19244 | cat >>conftest.$ac_ext <<_ACEOF | |
19245 | /* end confdefs.h. */ | |
19246 | ||
19247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19248 | #ifdef __cplusplus | |
19249 | extern "C" | |
19250 | #endif | |
19251 | /* We use char because int might match the return type of a gcc2 | |
19252 | builtin and then its argument prototype would still apply. */ | |
19253 | char XML_ParserCreate (); | |
19254 | int | |
19255 | main () | |
19256 | { | |
19257 | XML_ParserCreate (); | |
19258 | ; | |
19259 | return 0; | |
19260 | } | |
19261 | _ACEOF | |
19262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19264 | (eval $ac_link) 2>&5 | |
19265 | ac_status=$? | |
19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19267 | (exit $ac_status); } && | |
19268 | { ac_try='test -s conftest$ac_exeext' | |
19269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19270 | (eval $ac_try) 2>&5 | |
19271 | ac_status=$? | |
19272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19273 | (exit $ac_status); }; }; then | |
19274 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19275 | else | |
19276 | echo "$as_me: failed program was:" >&5 | |
19277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19278 | ||
19279 | ac_cv_lib_expat_XML_ParserCreate=no | |
19280 | fi | |
19281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19282 | LIBS=$ac_check_lib_save_LIBS | |
19283 | fi | |
19284 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19285 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19286 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19287 | EXPAT_LINK=" -lexpat" | |
19288 | fi | |
19289 | ||
5f0b6dff | 19290 | fi |
672abd7a VS |
19291 | fi |
19292 | if test "x$EXPAT_LINK" = "x" ; then | |
19293 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19294 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19295 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19296 | { (exit 1); exit 1; }; } | |
19297 | else | |
19298 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19299 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19300 | wxUSE_EXPAT=builtin | |
19301 | fi | |
19302 | else | |
19303 | wxUSE_EXPAT=sys | |
19304 | fi | |
19305 | fi | |
19306 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19307 | ||
19308 | ||
19309 | subdirs="$subdirs src/expat" | |
19310 | ||
19311 | fi | |
19312 | fi | |
19313 | ||
19314 | ||
19315 | ||
21d1c967 | 19316 | AFMINSTALL= |
2b5f62a0 | 19317 | WIN32INSTALL= |
90dd450c | 19318 | |
21d1c967 GD |
19319 | TOOLKIT= |
19320 | TOOLKIT_INCLUDE= | |
19321 | WIDGET_SET= | |
19322 | ||
19323 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19324 | |
19325 | for ac_header in w32api.h | |
21d1c967 | 19326 | do |
e6cc62c6 VS |
19327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19333 | fi | |
19334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19336 | else | |
19337 | # Is the header compilable? | |
19338 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19340 | cat >conftest.$ac_ext <<_ACEOF | |
19341 | #line $LINENO "configure" | |
19342 | /* confdefs.h. */ | |
19343 | _ACEOF | |
19344 | cat confdefs.h >>conftest.$ac_ext | |
19345 | cat >>conftest.$ac_ext <<_ACEOF | |
19346 | /* end confdefs.h. */ | |
19347 | $ac_includes_default | |
19348 | #include <$ac_header> | |
19349 | _ACEOF | |
19350 | rm -f conftest.$ac_objext | |
19351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19352 | (eval $ac_compile) 2>&5 | |
19353 | ac_status=$? | |
19354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19355 | (exit $ac_status); } && | |
19356 | { ac_try='test -s conftest.$ac_objext' | |
19357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19358 | (eval $ac_try) 2>&5 | |
19359 | ac_status=$? | |
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19361 | (exit $ac_status); }; }; then | |
19362 | ac_header_compiler=yes | |
19363 | else | |
19364 | echo "$as_me: failed program was:" >&5 | |
19365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19366 | ||
19367 | ac_header_compiler=no | |
19368 | fi | |
19369 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19370 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19371 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19372 | ||
19373 | # Is the header present? | |
19374 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19375 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19376 | cat >conftest.$ac_ext <<_ACEOF | |
19377 | #line $LINENO "configure" | |
19378 | /* confdefs.h. */ | |
19379 | _ACEOF | |
19380 | cat confdefs.h >>conftest.$ac_ext | |
19381 | cat >>conftest.$ac_ext <<_ACEOF | |
19382 | /* end confdefs.h. */ | |
19383 | #include <$ac_header> | |
19384 | _ACEOF | |
19385 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19386 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19387 | ac_status=$? | |
19388 | grep -v '^ *+' conftest.er1 >conftest.err | |
19389 | rm -f conftest.er1 | |
19390 | cat conftest.err >&5 | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); } >/dev/null; then | |
19393 | if test -s conftest.err; then | |
19394 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19395 | else | |
19396 | ac_cpp_err= | |
19397 | fi | |
19398 | else | |
19399 | ac_cpp_err=yes | |
19400 | fi | |
19401 | if test -z "$ac_cpp_err"; then | |
19402 | ac_header_preproc=yes | |
19403 | else | |
19404 | echo "$as_me: failed program was:" >&5 | |
19405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19406 | ||
19407 | ac_header_preproc=no | |
19408 | fi | |
19409 | rm -f conftest.err conftest.$ac_ext | |
19410 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19411 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19412 | ||
19413 | # So? What about this header? | |
19414 | case $ac_header_compiler:$ac_header_preproc in | |
19415 | yes:no ) | |
19416 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19417 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19419 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19420 | ( | |
19421 | cat <<\_ASBOX | |
19422 | ## ------------------------------------ ## | |
19423 | ## Report this to bug-autoconf@gnu.org. ## | |
19424 | ## ------------------------------------ ## | |
19425 | _ASBOX | |
19426 | ) | | |
19427 | sed "s/^/$as_me: WARNING: /" >&2 | |
19428 | ;; | |
19429 | no:yes ) | |
19430 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19431 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19432 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19433 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19434 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19435 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19436 | ( | |
19437 | cat <<\_ASBOX | |
19438 | ## ------------------------------------ ## | |
19439 | ## Report this to bug-autoconf@gnu.org. ## | |
19440 | ## ------------------------------------ ## | |
19441 | _ASBOX | |
19442 | ) | | |
19443 | sed "s/^/$as_me: WARNING: /" >&2 | |
19444 | ;; | |
19445 | esac | |
19446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19450 | else | |
19451 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19452 | fi |
e6cc62c6 VS |
19453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19454 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19455 | ||
21d1c967 | 19456 | fi |
e6cc62c6 VS |
19457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19458 | cat >>confdefs.h <<_ACEOF | |
19459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19460 | _ACEOF | |
19461 | ||
21d1c967 | 19462 | fi |
e6cc62c6 | 19463 | |
21d1c967 | 19464 | done |
f79bd02d | 19465 | |
e6cc62c6 VS |
19466 | if test "${ac_cv_header_windows_h+set}" = set; then |
19467 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19468 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19469 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19471 | fi | |
19472 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19473 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19474 | else | |
19475 | # Is the header compilable? | |
19476 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19477 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19478 | cat >conftest.$ac_ext <<_ACEOF | |
19479 | #line $LINENO "configure" | |
19480 | /* confdefs.h. */ | |
19481 | _ACEOF | |
19482 | cat confdefs.h >>conftest.$ac_ext | |
19483 | cat >>conftest.$ac_ext <<_ACEOF | |
19484 | /* end confdefs.h. */ | |
19485 | $ac_includes_default | |
247f5006 | 19486 | #include <windows.h> |
e6cc62c6 VS |
19487 | _ACEOF |
19488 | rm -f conftest.$ac_objext | |
19489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19490 | (eval $ac_compile) 2>&5 | |
19491 | ac_status=$? | |
19492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19493 | (exit $ac_status); } && | |
19494 | { ac_try='test -s conftest.$ac_objext' | |
19495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19496 | (eval $ac_try) 2>&5 | |
19497 | ac_status=$? | |
19498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19499 | (exit $ac_status); }; }; then | |
19500 | ac_header_compiler=yes | |
19501 | else | |
19502 | echo "$as_me: failed program was:" >&5 | |
19503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19504 | ||
19505 | ac_header_compiler=no | |
19506 | fi | |
19507 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19509 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19510 | ||
19511 | # Is the header present? | |
19512 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19513 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19514 | cat >conftest.$ac_ext <<_ACEOF | |
19515 | #line $LINENO "configure" | |
19516 | /* confdefs.h. */ | |
19517 | _ACEOF | |
19518 | cat confdefs.h >>conftest.$ac_ext | |
19519 | cat >>conftest.$ac_ext <<_ACEOF | |
19520 | /* end confdefs.h. */ | |
19521 | #include <windows.h> | |
19522 | _ACEOF | |
19523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19525 | ac_status=$? | |
19526 | grep -v '^ *+' conftest.er1 >conftest.err | |
19527 | rm -f conftest.er1 | |
19528 | cat conftest.err >&5 | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); } >/dev/null; then | |
19531 | if test -s conftest.err; then | |
19532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19533 | else | |
19534 | ac_cpp_err= | |
19535 | fi | |
19536 | else | |
19537 | ac_cpp_err=yes | |
19538 | fi | |
19539 | if test -z "$ac_cpp_err"; then | |
19540 | ac_header_preproc=yes | |
19541 | else | |
19542 | echo "$as_me: failed program was:" >&5 | |
19543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19544 | ||
19545 | ac_header_preproc=no | |
19546 | fi | |
19547 | rm -f conftest.err conftest.$ac_ext | |
19548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19549 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19550 | ||
19551 | # So? What about this header? | |
19552 | case $ac_header_compiler:$ac_header_preproc in | |
19553 | yes:no ) | |
19554 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19555 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19556 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19557 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19558 | ( | |
19559 | cat <<\_ASBOX | |
19560 | ## ------------------------------------ ## | |
19561 | ## Report this to bug-autoconf@gnu.org. ## | |
19562 | ## ------------------------------------ ## | |
19563 | _ASBOX | |
19564 | ) | | |
19565 | sed "s/^/$as_me: WARNING: /" >&2 | |
19566 | ;; | |
19567 | no:yes ) | |
19568 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19569 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19570 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19571 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19572 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19573 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19574 | ( | |
19575 | cat <<\_ASBOX | |
19576 | ## ------------------------------------ ## | |
19577 | ## Report this to bug-autoconf@gnu.org. ## | |
19578 | ## ------------------------------------ ## | |
19579 | _ASBOX | |
19580 | ) | | |
19581 | sed "s/^/$as_me: WARNING: /" >&2 | |
19582 | ;; | |
19583 | esac | |
19584 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19585 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19586 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19588 | else | |
19589 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19590 | fi |
e6cc62c6 VS |
19591 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19592 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19593 | ||
90dd450c | 19594 | fi |
e6cc62c6 | 19595 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19596 | : |
90dd450c | 19597 | else |
21d1c967 | 19598 | |
e6cc62c6 VS |
19599 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19600 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19601 | { (exit 1); exit 1; }; } | |
19602 | ||
5c6fa7d2 | 19603 | fi |
7b4a847f | 19604 | |
5c6fa7d2 | 19605 | |
e6cc62c6 | 19606 | |
b3dfbbc9 | 19607 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19608 | |
7bb2947d MB |
19609 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19610 | LIBS="$LIBS -loleacc" | |
19611 | fi | |
19612 | ||
21d1c967 GD |
19613 | case "${host}" in |
19614 | *-*-cygwin* ) | |
b3dfbbc9 | 19615 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19616 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19617 | esac |
f79bd02d | 19618 | |
8647bec6 RG |
19619 | if test "$wxUSE_ODBC" = "sys" ; then |
19620 | wxUSE_ODBC = "yes" | |
21d1c967 | 19621 | fi |
8647bec6 RG |
19622 | if test "$wxUSE_ODBC" = "yes" ; then |
19623 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19624 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19625 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19626 | _ACEOF |
f79bd02d | 19627 | |
8647bec6 | 19628 | fi |
e6cc62c6 | 19629 | |
21d1c967 GD |
19630 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19631 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19632 | |
19633 | WIN32INSTALL=win32install | |
f79bd02d | 19634 | fi |
f79bd02d | 19635 | |
21d1c967 GD |
19636 | if test "$wxUSE_GUI" = "yes"; then |
19637 | USE_GUI=1 | |
f79bd02d | 19638 | |
21d1c967 | 19639 | GUI_TK_LIBRARY= |
f79bd02d | 19640 | |
21d1c967 GD |
19641 | WXGTK12= |
19642 | WXGTK127= | |
19643 | WXGTK20= | |
f79bd02d | 19644 | |
21d1c967 GD |
19645 | if test "$wxUSE_MSW" = 1 ; then |
19646 | TOOLKIT=MSW | |
19647 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
19648 | |
19649 | case "${host}" in | |
19650 | *-*-mingw32* ) | |
19651 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
19652 | esac | |
f79bd02d JS |
19653 | fi |
19654 | ||
21d1c967 | 19655 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19656 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19657 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19658 | |
19659 | gtk_version_cached=1 | |
e6cc62c6 VS |
19660 | if test "${wx_cv_lib_gtk+set}" = set; then |
19661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19662 | else |
e6cc62c6 | 19663 | |
21d1c967 | 19664 | gtk_version_cached=0 |
e6cc62c6 VS |
19665 | echo "$as_me:$LINENO: result: " >&5 |
19666 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19667 | |
21d1c967 GD |
19668 | GTK_MODULES= |
19669 | if test "$wxUSE_THREADS" = "yes"; then | |
19670 | GTK_MODULES=gthread | |
19671 | fi | |
f79bd02d | 19672 | |
2b5f62a0 | 19673 | wx_cv_lib_gtk= |
21d1c967 GD |
19674 | if test "x$wxUSE_GTK2" = "xyes"; then |
19675 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19676 | if test "${enable_gtktest+set}" = set; then | |
19677 | enableval="$enable_gtktest" | |
e6cc62c6 | 19678 | |
f79bd02d | 19679 | else |
21d1c967 | 19680 | enable_gtktest=yes |
e6cc62c6 | 19681 | fi; |
f79bd02d | 19682 | |
21d1c967 GD |
19683 | pkg_config_args=gtk+-2.0 |
19684 | for module in . $GTK_MODULES | |
19685 | do | |
19686 | case "$module" in | |
e6cc62c6 | 19687 | gthread) |
21d1c967 GD |
19688 | pkg_config_args="$pkg_config_args gthread-2.0" |
19689 | ;; | |
19690 | esac | |
19691 | done | |
19692 | ||
19693 | no_gtk="" | |
f79bd02d | 19694 | |
21d1c967 GD |
19695 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19696 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19699 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19701 | else |
e6cc62c6 VS |
19702 | case $PKG_CONFIG in |
19703 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19704 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19705 | ;; | |
21d1c967 | 19706 | *) |
e6cc62c6 VS |
19707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19708 | for as_dir in $PATH | |
19709 | do | |
19710 | IFS=$as_save_IFS | |
19711 | test -z "$as_dir" && as_dir=. | |
19712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19714 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19716 | break 2 | |
19717 | fi | |
19718 | done | |
19719 | done | |
19720 | ||
21d1c967 GD |
19721 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19722 | ;; | |
19723 | esac | |
f79bd02d | 19724 | fi |
e6cc62c6 VS |
19725 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19726 | ||
21d1c967 | 19727 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19728 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19729 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19730 | else |
e6cc62c6 VS |
19731 | echo "$as_me:$LINENO: result: no" >&5 |
19732 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19733 | fi |
19734 | ||
8284b0c5 | 19735 | |
21d1c967 GD |
19736 | if test x$PKG_CONFIG != xno ; then |
19737 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19738 | : | |
19739 | else | |
19740 | echo *** pkg-config too old; version 0.7 or better required. | |
19741 | no_gtk=yes | |
19742 | PKG_CONFIG=no | |
19743 | fi | |
19744 | else | |
19745 | no_gtk=yes | |
19746 | fi | |
f79bd02d | 19747 | |
21d1c967 | 19748 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19749 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19750 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19751 | |
21d1c967 GD |
19752 | if test x$PKG_CONFIG != xno ; then |
19753 | ## don't try to run the test against uninstalled libtool libs | |
19754 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19755 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19756 | enable_gtktest=no | |
19757 | fi | |
f79bd02d | 19758 | |
21d1c967 GD |
19759 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19760 | : | |
19761 | else | |
19762 | no_gtk=yes | |
19763 | fi | |
19764 | fi | |
f79bd02d | 19765 | |
21d1c967 GD |
19766 | if test x"$no_gtk" = x ; then |
19767 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19768 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19769 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19770 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19771 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19772 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19773 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19774 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19775 | if test "x$enable_gtktest" = "xyes" ; then | |
19776 | ac_save_CFLAGS="$CFLAGS" | |
19777 | ac_save_LIBS="$LIBS" | |
19778 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19779 | LIBS="$GTK_LIBS $LIBS" | |
19780 | rm -f conf.gtktest | |
19781 | if test "$cross_compiling" = yes; then | |
19782 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19783 | else |
e6cc62c6 VS |
19784 | cat >conftest.$ac_ext <<_ACEOF |
19785 | #line $LINENO "configure" | |
19786 | /* confdefs.h. */ | |
19787 | _ACEOF | |
19788 | cat confdefs.h >>conftest.$ac_ext | |
19789 | cat >>conftest.$ac_ext <<_ACEOF | |
19790 | /* end confdefs.h. */ | |
f79bd02d | 19791 | |
21d1c967 GD |
19792 | #include <gtk/gtk.h> |
19793 | #include <stdio.h> | |
19794 | #include <stdlib.h> | |
f79bd02d | 19795 | |
e6cc62c6 | 19796 | int |
21d1c967 GD |
19797 | main () |
19798 | { | |
19799 | int major, minor, micro; | |
19800 | char *tmp_version; | |
f79bd02d | 19801 | |
21d1c967 | 19802 | system ("touch conf.gtktest"); |
f79bd02d | 19803 | |
21d1c967 GD |
19804 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19805 | tmp_version = g_strdup("$min_gtk_version"); | |
19806 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19807 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19808 | exit(1); | |
19809 | } | |
f79bd02d | 19810 | |
21d1c967 GD |
19811 | if ((gtk_major_version != $gtk_config_major_version) || |
19812 | (gtk_minor_version != $gtk_config_minor_version) || | |
19813 | (gtk_micro_version != $gtk_config_micro_version)) | |
19814 | { | |
e6cc62c6 | 19815 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19816 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19817 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19818 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19819 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19820 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19821 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19822 | printf("*** required on your system.\n"); | |
19823 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19824 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19825 | } |
21d1c967 GD |
19826 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19827 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19828 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19829 | { | |
19830 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19831 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19832 | printf("*** library (version %d.%d.%d)\n", | |
19833 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19834 | } | |
19835 | else | |
19836 | { | |
19837 | if ((gtk_major_version > major) || | |
19838 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19839 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19840 | { | |
19841 | return 0; | |
19842 | } | |
19843 | else | |
19844 | { | |
19845 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19846 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19847 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19848 | major, minor, micro); | |
19849 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19850 | printf("***\n"); | |
19851 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19852 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19853 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19854 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19855 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19856 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19857 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19858 | } | |
19859 | } | |
19860 | return 1; | |
19861 | } | |
f79bd02d | 19862 | |
e6cc62c6 VS |
19863 | _ACEOF |
19864 | rm -f conftest$ac_exeext | |
19865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19866 | (eval $ac_link) 2>&5 | |
19867 | ac_status=$? | |
19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19869 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19871 | (eval $ac_try) 2>&5 | |
19872 | ac_status=$? | |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19874 | (exit $ac_status); }; }; then | |
21d1c967 | 19875 | : |
f79bd02d | 19876 | else |
e6cc62c6 VS |
19877 | echo "$as_me: program exited with status $ac_status" >&5 |
19878 | echo "$as_me: failed program was:" >&5 | |
19879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19880 | ||
19881 | ( exit $ac_status ) | |
19882 | no_gtk=yes | |
f79bd02d | 19883 | fi |
e6cc62c6 | 19884 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 19885 | fi |
21d1c967 GD |
19886 | CFLAGS="$ac_save_CFLAGS" |
19887 | LIBS="$ac_save_LIBS" | |
19888 | fi | |
19889 | fi | |
19890 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19891 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
19892 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19893 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 19894 | else |
e6cc62c6 VS |
19895 | echo "$as_me:$LINENO: result: no" >&5 |
19896 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19897 | if test "$PKG_CONFIG" = "no" ; then |
19898 | echo "*** A new enough version of pkg-config was not found." | |
19899 | echo "*** See http://pkgconfig.sourceforge.net" | |
19900 | else | |
19901 | if test -f conf.gtktest ; then | |
19902 | : | |
19903 | else | |
19904 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
19905 | ac_save_CFLAGS="$CFLAGS" |
19906 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
19907 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
19908 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19909 | cat >conftest.$ac_ext <<_ACEOF |
19910 | #line $LINENO "configure" | |
19911 | /* confdefs.h. */ | |
19912 | _ACEOF | |
19913 | cat confdefs.h >>conftest.$ac_ext | |
19914 | cat >>conftest.$ac_ext <<_ACEOF | |
19915 | /* end confdefs.h. */ | |
21d1c967 GD |
19916 | |
19917 | #include <gtk/gtk.h> | |
19918 | #include <stdio.h> | |
f79bd02d | 19919 | |
e6cc62c6 VS |
19920 | int |
19921 | main () | |
19922 | { | |
19923 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19924 | ; | |
19925 | return 0; | |
19926 | } | |
19927 | _ACEOF | |
19928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19930 | (eval $ac_link) 2>&5 | |
19931 | ac_status=$? | |
19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19933 | (exit $ac_status); } && | |
19934 | { ac_try='test -s conftest$ac_exeext' | |
19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19936 | (eval $ac_try) 2>&5 | |
19937 | ac_status=$? | |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19940 | echo "*** The test program compiled, but did not run. This usually means" |
19941 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19942 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19943 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19944 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19945 | echo "*** is required on your system" | |
19946 | echo "***" | |
19947 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 19948 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 19949 | else |
e6cc62c6 VS |
19950 | echo "$as_me: failed program was:" >&5 |
19951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19952 | ||
19953 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 19954 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 19955 | fi |
e6cc62c6 | 19956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
19957 | CFLAGS="$ac_save_CFLAGS" |
19958 | LIBS="$ac_save_LIBS" | |
19959 | fi | |
19960 | fi | |
19961 | GTK_CFLAGS="" | |
19962 | GTK_LIBS="" | |
19963 | : | |
19964 | fi | |
e6cc62c6 VS |
19965 | |
19966 | ||
21d1c967 | 19967 | rm -f conf.gtktest |
f79bd02d | 19968 | |
2b5f62a0 | 19969 | else |
e6cc62c6 VS |
19970 | |
19971 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
19972 | if test "${with_gtk_prefix+set}" = set; then |
19973 | withval="$with_gtk_prefix" | |
19974 | gtk_config_prefix="$withval" | |
19975 | else | |
19976 | gtk_config_prefix="" | |
e6cc62c6 | 19977 | fi; |
f79bd02d | 19978 | |
21d1c967 GD |
19979 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
19980 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19981 | withval="$with_gtk_exec_prefix" | |
19982 | gtk_config_exec_prefix="$withval" | |
19983 | else | |
19984 | gtk_config_exec_prefix="" | |
e6cc62c6 | 19985 | fi; |
21d1c967 GD |
19986 | # Check whether --enable-gtktest or --disable-gtktest was given. |
19987 | if test "${enable_gtktest+set}" = set; then | |
19988 | enableval="$enable_gtktest" | |
e6cc62c6 | 19989 | |
21d1c967 GD |
19990 | else |
19991 | enable_gtktest=yes | |
e6cc62c6 | 19992 | fi; |
21d1c967 GD |
19993 | |
19994 | for module in . $GTK_MODULES | |
19995 | do | |
19996 | case "$module" in | |
e6cc62c6 | 19997 | gthread) |
21d1c967 GD |
19998 | gtk_config_args="$gtk_config_args gthread" |
19999 | ;; | |
20000 | esac | |
20001 | done | |
20002 | ||
20003 | if test x$gtk_config_exec_prefix != x ; then | |
20004 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20005 | if test x${GTK_CONFIG+set} != xset ; then | |
20006 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20007 | fi | |
20008 | fi | |
20009 | if test x$gtk_config_prefix != x ; then | |
20010 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20011 | if test x${GTK_CONFIG+set} != xset ; then | |
20012 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20013 | fi | |
20014 | fi | |
20015 | ||
20016 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20017 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20020 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20022 | else |
e6cc62c6 VS |
20023 | case $GTK_CONFIG in |
20024 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20025 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20026 | ;; | |
21d1c967 | 20027 | *) |
e6cc62c6 VS |
20028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20029 | for as_dir in $PATH | |
20030 | do | |
20031 | IFS=$as_save_IFS | |
20032 | test -z "$as_dir" && as_dir=. | |
20033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20035 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20037 | break 2 | |
20038 | fi | |
20039 | done | |
20040 | done | |
20041 | ||
21d1c967 GD |
20042 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20043 | ;; | |
20044 | esac | |
20045 | fi | |
e6cc62c6 VS |
20046 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20047 | ||
21d1c967 | 20048 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20049 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20050 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20051 | else |
e6cc62c6 VS |
20052 | echo "$as_me:$LINENO: result: no" >&5 |
20053 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20054 | fi |
20055 | ||
20056 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20057 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20058 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20059 | no_gtk="" |
20060 | if test "$GTK_CONFIG" = "no" ; then | |
20061 | no_gtk=yes | |
20062 | else | |
20063 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20064 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20065 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20066 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20067 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20068 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20069 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20070 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20071 | if test "x$enable_gtktest" = "xyes" ; then | |
20072 | ac_save_CFLAGS="$CFLAGS" | |
20073 | ac_save_LIBS="$LIBS" | |
20074 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20075 | LIBS="$GTK_LIBS $LIBS" | |
20076 | rm -f conf.gtktest | |
20077 | if test "$cross_compiling" = yes; then | |
20078 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20079 | else |
e6cc62c6 VS |
20080 | cat >conftest.$ac_ext <<_ACEOF |
20081 | #line $LINENO "configure" | |
20082 | /* confdefs.h. */ | |
20083 | _ACEOF | |
20084 | cat confdefs.h >>conftest.$ac_ext | |
20085 | cat >>conftest.$ac_ext <<_ACEOF | |
20086 | /* end confdefs.h. */ | |
f79bd02d | 20087 | |
21d1c967 GD |
20088 | #include <gtk/gtk.h> |
20089 | #include <stdio.h> | |
20090 | #include <stdlib.h> | |
f79bd02d | 20091 | |
e6cc62c6 | 20092 | int |
21d1c967 GD |
20093 | main () |
20094 | { | |
20095 | int major, minor, micro; | |
20096 | char *tmp_version; | |
20097 | ||
20098 | system ("touch conf.gtktest"); | |
20099 | ||
20100 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20101 | tmp_version = g_strdup("$min_gtk_version"); | |
20102 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20103 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20104 | exit(1); | |
20105 | } | |
90dd450c | 20106 | |
21d1c967 GD |
20107 | if ((gtk_major_version != $gtk_config_major_version) || |
20108 | (gtk_minor_version != $gtk_config_minor_version) || | |
20109 | (gtk_micro_version != $gtk_config_micro_version)) | |
20110 | { | |
e6cc62c6 | 20111 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20112 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20113 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20114 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20115 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20116 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20117 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20118 | printf("*** required on your system.\n"); | |
20119 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20120 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20121 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20122 | } |
21d1c967 GD |
20123 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20124 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20125 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20126 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20127 | { | |
20128 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20129 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20130 | printf("*** library (version %d.%d.%d)\n", | |
20131 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20132 | } | |
20133 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20134 | else | |
20135 | { | |
20136 | if ((gtk_major_version > major) || | |
20137 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20138 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20139 | { | |
20140 | return 0; | |
20141 | } | |
20142 | else | |
20143 | { | |
20144 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20145 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20146 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20147 | major, minor, micro); | |
20148 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20149 | printf("***\n"); | |
20150 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20151 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20152 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20153 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20154 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20155 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20156 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20157 | } | |
20158 | } | |
20159 | return 1; | |
20160 | } | |
20161 | ||
e6cc62c6 VS |
20162 | _ACEOF |
20163 | rm -f conftest$ac_exeext | |
20164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20165 | (eval $ac_link) 2>&5 | |
20166 | ac_status=$? | |
20167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20170 | (eval $ac_try) 2>&5 | |
20171 | ac_status=$? | |
20172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20173 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20174 | : |
20175 | else | |
e6cc62c6 VS |
20176 | echo "$as_me: program exited with status $ac_status" >&5 |
20177 | echo "$as_me: failed program was:" >&5 | |
20178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20179 | ||
20180 | ( exit $ac_status ) | |
20181 | no_gtk=yes | |
21d1c967 | 20182 | fi |
e6cc62c6 | 20183 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20184 | fi |
21d1c967 GD |
20185 | CFLAGS="$ac_save_CFLAGS" |
20186 | LIBS="$ac_save_LIBS" | |
20187 | fi | |
20188 | fi | |
20189 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20190 | echo "$as_me:$LINENO: result: yes" >&5 |
20191 | echo "${ECHO_T}yes" >&6 | |
20192 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20193 | else |
e6cc62c6 VS |
20194 | echo "$as_me:$LINENO: result: no" >&5 |
20195 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20196 | if test "$GTK_CONFIG" = "no" ; then |
20197 | echo "*** The gtk-config script installed by GTK could not be found" | |
20198 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20199 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20200 | echo "*** full path to gtk-config." | |
20201 | else | |
20202 | if test -f conf.gtktest ; then | |
20203 | : | |
20204 | else | |
20205 | echo "*** Could not run GTK test program, checking why..." | |
20206 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20207 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20208 | cat >conftest.$ac_ext <<_ACEOF |
20209 | #line $LINENO "configure" | |
20210 | /* confdefs.h. */ | |
20211 | _ACEOF | |
20212 | cat confdefs.h >>conftest.$ac_ext | |
20213 | cat >>conftest.$ac_ext <<_ACEOF | |
20214 | /* end confdefs.h. */ | |
21d1c967 GD |
20215 | |
20216 | #include <gtk/gtk.h> | |
20217 | #include <stdio.h> | |
20218 | ||
e6cc62c6 VS |
20219 | int |
20220 | main () | |
20221 | { | |
20222 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20223 | ; | |
20224 | return 0; | |
20225 | } | |
20226 | _ACEOF | |
20227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20229 | (eval $ac_link) 2>&5 | |
20230 | ac_status=$? | |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); } && | |
20233 | { ac_try='test -s conftest$ac_exeext' | |
20234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20235 | (eval $ac_try) 2>&5 | |
20236 | ac_status=$? | |
20237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20238 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20239 | echo "*** The test program compiled, but did not run. This usually means" |
20240 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20241 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20242 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20243 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20244 | echo "*** is required on your system" | |
20245 | echo "***" | |
20246 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20247 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20248 | echo "***" | |
20249 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20250 | echo "*** came with the system with the command" | |
20251 | echo "***" | |
e6cc62c6 | 20252 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20253 | else |
e6cc62c6 VS |
20254 | echo "$as_me: failed program was:" >&5 |
20255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20256 | ||
20257 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20258 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20259 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20260 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20261 | fi |
e6cc62c6 | 20262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20263 | CFLAGS="$ac_save_CFLAGS" |
20264 | LIBS="$ac_save_LIBS" | |
20265 | fi | |
20266 | fi | |
20267 | GTK_CFLAGS="" | |
20268 | GTK_LIBS="" | |
20269 | : | |
20270 | fi | |
e6cc62c6 VS |
20271 | |
20272 | ||
21d1c967 GD |
20273 | rm -f conf.gtktest |
20274 | ||
21d1c967 | 20275 | |
2b5f62a0 | 20276 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20277 | |
20278 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20279 | if test "${with_gtk_prefix+set}" = set; then |
20280 | withval="$with_gtk_prefix" | |
20281 | gtk_config_prefix="$withval" | |
20282 | else | |
20283 | gtk_config_prefix="" | |
e6cc62c6 | 20284 | fi; |
f79bd02d | 20285 | |
21d1c967 GD |
20286 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20287 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20288 | withval="$with_gtk_exec_prefix" | |
20289 | gtk_config_exec_prefix="$withval" | |
20290 | else | |
20291 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20292 | fi; |
21d1c967 GD |
20293 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20294 | if test "${enable_gtktest+set}" = set; then | |
20295 | enableval="$enable_gtktest" | |
e6cc62c6 | 20296 | |
90dd450c | 20297 | else |
21d1c967 | 20298 | enable_gtktest=yes |
e6cc62c6 | 20299 | fi; |
21d1c967 GD |
20300 | |
20301 | for module in . $GTK_MODULES | |
20302 | do | |
20303 | case "$module" in | |
e6cc62c6 | 20304 | gthread) |
21d1c967 GD |
20305 | gtk_config_args="$gtk_config_args gthread" |
20306 | ;; | |
20307 | esac | |
20308 | done | |
20309 | ||
20310 | if test x$gtk_config_exec_prefix != x ; then | |
20311 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20312 | if test x${GTK_CONFIG+set} != xset ; then | |
20313 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20314 | fi | |
20315 | fi | |
20316 | if test x$gtk_config_prefix != x ; then | |
20317 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20318 | if test x${GTK_CONFIG+set} != xset ; then | |
20319 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20320 | fi | |
20321 | fi | |
20322 | ||
20323 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20324 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20327 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20329 | else |
e6cc62c6 VS |
20330 | case $GTK_CONFIG in |
20331 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20332 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20333 | ;; | |
21d1c967 | 20334 | *) |
e6cc62c6 VS |
20335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20336 | for as_dir in $PATH | |
20337 | do | |
20338 | IFS=$as_save_IFS | |
20339 | test -z "$as_dir" && as_dir=. | |
20340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20342 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20344 | break 2 | |
20345 | fi | |
20346 | done | |
20347 | done | |
20348 | ||
21d1c967 GD |
20349 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20350 | ;; | |
20351 | esac | |
20352 | fi | |
e6cc62c6 VS |
20353 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20354 | ||
21d1c967 | 20355 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20356 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20357 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20358 | else |
e6cc62c6 VS |
20359 | echo "$as_me:$LINENO: result: no" >&5 |
20360 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20361 | fi |
20362 | ||
20363 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20364 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20365 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20366 | no_gtk="" |
20367 | if test "$GTK_CONFIG" = "no" ; then | |
20368 | no_gtk=yes | |
20369 | else | |
20370 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20371 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20372 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20373 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20374 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20375 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20376 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20377 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20378 | if test "x$enable_gtktest" = "xyes" ; then | |
20379 | ac_save_CFLAGS="$CFLAGS" | |
20380 | ac_save_LIBS="$LIBS" | |
20381 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20382 | LIBS="$GTK_LIBS $LIBS" | |
20383 | rm -f conf.gtktest | |
20384 | if test "$cross_compiling" = yes; then | |
20385 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20386 | else | |
e6cc62c6 VS |
20387 | cat >conftest.$ac_ext <<_ACEOF |
20388 | #line $LINENO "configure" | |
20389 | /* confdefs.h. */ | |
20390 | _ACEOF | |
20391 | cat confdefs.h >>conftest.$ac_ext | |
20392 | cat >>conftest.$ac_ext <<_ACEOF | |
20393 | /* end confdefs.h. */ | |
21d1c967 GD |
20394 | |
20395 | #include <gtk/gtk.h> | |
20396 | #include <stdio.h> | |
20397 | #include <stdlib.h> | |
20398 | ||
e6cc62c6 | 20399 | int |
21d1c967 GD |
20400 | main () |
20401 | { | |
20402 | int major, minor, micro; | |
20403 | char *tmp_version; | |
20404 | ||
20405 | system ("touch conf.gtktest"); | |
20406 | ||
20407 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20408 | tmp_version = g_strdup("$min_gtk_version"); | |
20409 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20410 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20411 | exit(1); | |
20412 | } | |
20413 | ||
20414 | if ((gtk_major_version != $gtk_config_major_version) || | |
20415 | (gtk_minor_version != $gtk_config_minor_version) || | |
20416 | (gtk_micro_version != $gtk_config_micro_version)) | |
20417 | { | |
e6cc62c6 | 20418 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20419 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20420 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20421 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20422 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20423 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20424 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20425 | printf("*** required on your system.\n"); | |
20426 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20427 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20428 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20429 | } |
21d1c967 GD |
20430 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20431 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20432 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20433 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20434 | { | |
20435 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20436 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20437 | printf("*** library (version %d.%d.%d)\n", | |
20438 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20439 | } | |
20440 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20441 | else | |
20442 | { | |
20443 | if ((gtk_major_version > major) || | |
20444 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20445 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20446 | { | |
20447 | return 0; | |
20448 | } | |
20449 | else | |
20450 | { | |
20451 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20452 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20453 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20454 | major, minor, micro); | |
20455 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20456 | printf("***\n"); | |
20457 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20458 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20459 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20460 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20461 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20462 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20463 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20464 | } | |
20465 | } | |
20466 | return 1; | |
20467 | } | |
20468 | ||
e6cc62c6 VS |
20469 | _ACEOF |
20470 | rm -f conftest$ac_exeext | |
20471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20472 | (eval $ac_link) 2>&5 | |
20473 | ac_status=$? | |
20474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20475 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20477 | (eval $ac_try) 2>&5 | |
20478 | ac_status=$? | |
20479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20480 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20481 | : |
20482 | else | |
e6cc62c6 VS |
20483 | echo "$as_me: program exited with status $ac_status" >&5 |
20484 | echo "$as_me: failed program was:" >&5 | |
20485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20486 | ||
20487 | ( exit $ac_status ) | |
20488 | no_gtk=yes | |
21d1c967 | 20489 | fi |
e6cc62c6 | 20490 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20491 | fi |
21d1c967 GD |
20492 | CFLAGS="$ac_save_CFLAGS" |
20493 | LIBS="$ac_save_LIBS" | |
20494 | fi | |
20495 | fi | |
20496 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20497 | echo "$as_me:$LINENO: result: yes" >&5 |
20498 | echo "${ECHO_T}yes" >&6 | |
20499 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20500 | else |
e6cc62c6 VS |
20501 | echo "$as_me:$LINENO: result: no" >&5 |
20502 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20503 | if test "$GTK_CONFIG" = "no" ; then |
20504 | echo "*** The gtk-config script installed by GTK could not be found" | |
20505 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20506 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20507 | echo "*** full path to gtk-config." | |
20508 | else | |
20509 | if test -f conf.gtktest ; then | |
20510 | : | |
20511 | else | |
20512 | echo "*** Could not run GTK test program, checking why..." | |
20513 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20514 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20515 | cat >conftest.$ac_ext <<_ACEOF |
20516 | #line $LINENO "configure" | |
20517 | /* confdefs.h. */ | |
20518 | _ACEOF | |
20519 | cat confdefs.h >>conftest.$ac_ext | |
20520 | cat >>conftest.$ac_ext <<_ACEOF | |
20521 | /* end confdefs.h. */ | |
21d1c967 GD |
20522 | |
20523 | #include <gtk/gtk.h> | |
20524 | #include <stdio.h> | |
f79bd02d | 20525 | |
e6cc62c6 VS |
20526 | int |
20527 | main () | |
20528 | { | |
20529 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20530 | ; | |
20531 | return 0; | |
20532 | } | |
20533 | _ACEOF | |
20534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20536 | (eval $ac_link) 2>&5 | |
20537 | ac_status=$? | |
20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20539 | (exit $ac_status); } && | |
20540 | { ac_try='test -s conftest$ac_exeext' | |
20541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20542 | (eval $ac_try) 2>&5 | |
20543 | ac_status=$? | |
20544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20545 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20546 | echo "*** The test program compiled, but did not run. This usually means" |
20547 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20548 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20549 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20550 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20551 | echo "*** is required on your system" | |
20552 | echo "***" | |
20553 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20554 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20555 | echo "***" | |
20556 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20557 | echo "*** came with the system with the command" | |
20558 | echo "***" | |
e6cc62c6 | 20559 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20560 | else |
e6cc62c6 VS |
20561 | echo "$as_me: failed program was:" >&5 |
20562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20563 | ||
20564 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20565 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20566 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20567 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20568 | fi |
e6cc62c6 | 20569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20570 | CFLAGS="$ac_save_CFLAGS" |
20571 | LIBS="$ac_save_LIBS" | |
20572 | fi | |
20573 | fi | |
20574 | GTK_CFLAGS="" | |
20575 | GTK_LIBS="" | |
20576 | : | |
20577 | fi | |
e6cc62c6 VS |
20578 | |
20579 | ||
21d1c967 | 20580 | rm -f conf.gtktest |
f79bd02d | 20581 | |
2b5f62a0 | 20582 | fi |
21d1c967 GD |
20583 | fi |
20584 | ||
20585 | if test -z "$wx_cv_lib_gtk"; then | |
20586 | wx_cv_lib_gtk=none | |
20587 | else | |
20588 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20589 | wx_cv_libs_gtk=$GTK_LIBS | |
20590 | fi | |
e6cc62c6 VS |
20591 | |
20592 | ||
5c6fa7d2 | 20593 | fi |
52127426 | 20594 | |
8284b0c5 | 20595 | |
21d1c967 | 20596 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20597 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20598 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20599 | fi |
20600 | ||
20601 | case "$wx_cv_lib_gtk" in | |
20602 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20603 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20604 | ;; |
20605 | 1.2.7) WXGTK127=1 | |
20606 | WXGTK12=1 | |
20607 | ;; | |
20608 | 1.2.3) WXGTK12=1 | |
20609 | ;; | |
e6cc62c6 VS |
20610 | *) { { echo "$as_me:$LINENO: error: |
20611 | Please check that gtk-config is in path, the directory | |
20612 | where GTK+ libraries are installed (returned by | |
20613 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20614 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20615 | " >&5 | |
20616 | echo "$as_me: error: | |
247f5006 VZ |
20617 | Please check that gtk-config is in path, the directory |
20618 | where GTK+ libraries are installed (returned by | |
20619 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20620 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20621 | " >&2;} |
20622 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20623 | ;; |
20624 | esac | |
20625 | ||
b13cd66e VZ |
20626 | if test "$WXGTK20" = 1; then |
20627 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20628 | |
f09359cf VS |
20629 | succeeded=no |
20630 | ||
20631 | if test -z "$PKG_CONFIG"; then | |
20632 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20633 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20636 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20638 | else |
e6cc62c6 VS |
20639 | case $PKG_CONFIG in |
20640 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20641 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20642 | ;; | |
f09359cf | 20643 | *) |
e6cc62c6 VS |
20644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20645 | for as_dir in $PATH | |
20646 | do | |
20647 | IFS=$as_save_IFS | |
20648 | test -z "$as_dir" && as_dir=. | |
20649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20651 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20653 | break 2 | |
20654 | fi | |
20655 | done | |
20656 | done | |
20657 | ||
f09359cf VS |
20658 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20659 | ;; | |
20660 | esac | |
20661 | fi | |
e6cc62c6 VS |
20662 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20663 | ||
f09359cf | 20664 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20665 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20666 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20667 | else |
e6cc62c6 VS |
20668 | echo "$as_me:$LINENO: result: no" >&5 |
20669 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20670 | fi |
20671 | ||
20672 | fi | |
20673 | ||
20674 | if test "$PKG_CONFIG" = "no" ; then | |
20675 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20676 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20677 | echo "*** to the full path to pkg-config." | |
20678 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20679 | else | |
20680 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20681 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20682 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20683 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20684 | |
20685 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20686 | echo "$as_me:$LINENO: result: yes" >&5 |
20687 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20688 | succeeded=yes |
20689 | ||
e6cc62c6 VS |
20690 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20691 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20692 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20693 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20694 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20695 | |
e6cc62c6 VS |
20696 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20697 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20698 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20699 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20700 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20701 | else |
20702 | PANGOFT2_CFLAGS="" | |
20703 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20704 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20705 | ## do set a variable so people can do so. |
20706 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20707 | |
f09359cf VS |
20708 | fi |
20709 | ||
e6cc62c6 VS |
20710 | |
20711 | ||
f09359cf VS |
20712 | else |
20713 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20714 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20715 | fi | |
20716 | fi | |
20717 | ||
20718 | if test $succeeded = yes; then | |
e6cc62c6 | 20719 | |
b13cd66e | 20720 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20721 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20722 | |
f09359cf | 20723 | else |
e6cc62c6 VS |
20724 | |
20725 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20726 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20727 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20728 | |
20729 | ||
f09359cf VS |
20730 | fi |
20731 | ||
b13cd66e | 20732 | fi |
2b5f62a0 VZ |
20733 | else |
20734 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20735 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20736 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20737 | wxUSE_UNICODE=no |
20738 | fi | |
20739 | fi | |
20740 | ||
20741 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20742 | |
20743 | for ac_func in poll | |
2b5f62a0 | 20744 | do |
e6cc62c6 VS |
20745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20746 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20748 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20750 | else | |
20751 | cat >conftest.$ac_ext <<_ACEOF | |
20752 | #line $LINENO "configure" | |
20753 | /* confdefs.h. */ | |
20754 | _ACEOF | |
20755 | cat confdefs.h >>conftest.$ac_ext | |
20756 | cat >>conftest.$ac_ext <<_ACEOF | |
20757 | /* end confdefs.h. */ | |
2b5f62a0 | 20758 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20759 | which can conflict with char $ac_func (); below. |
20760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20761 | <limits.h> exists even on freestanding compilers. */ | |
20762 | #ifdef __STDC__ | |
20763 | # include <limits.h> | |
20764 | #else | |
20765 | # include <assert.h> | |
20766 | #endif | |
2b5f62a0 | 20767 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20768 | #ifdef __cplusplus |
20769 | extern "C" | |
20770 | { | |
20771 | #endif | |
2b5f62a0 | 20772 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20773 | builtin and then its argument prototype would still apply. */ |
20774 | char $ac_func (); | |
2b5f62a0 VZ |
20775 | /* The GNU C library defines this for functions which it implements |
20776 | to always fail with ENOSYS. Some functions are actually named | |
20777 | something starting with __ and the normal name is an alias. */ | |
20778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20779 | choke me | |
20780 | #else | |
e6cc62c6 VS |
20781 | char (*f) () = $ac_func; |
20782 | #endif | |
20783 | #ifdef __cplusplus | |
20784 | } | |
2b5f62a0 VZ |
20785 | #endif |
20786 | ||
e6cc62c6 VS |
20787 | int |
20788 | main () | |
20789 | { | |
20790 | return f != $ac_func; | |
20791 | ; | |
20792 | return 0; | |
20793 | } | |
20794 | _ACEOF | |
20795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20797 | (eval $ac_link) 2>&5 | |
20798 | ac_status=$? | |
20799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20800 | (exit $ac_status); } && | |
20801 | { ac_try='test -s conftest$ac_exeext' | |
20802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20803 | (eval $ac_try) 2>&5 | |
20804 | ac_status=$? | |
20805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20806 | (exit $ac_status); }; }; then | |
20807 | eval "$as_ac_var=yes" | |
20808 | else | |
20809 | echo "$as_me: failed program was:" >&5 | |
20810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20811 | ||
20812 | eval "$as_ac_var=no" | |
20813 | fi | |
20814 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20815 | fi | |
20816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20817 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20818 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20819 | cat >>confdefs.h <<_ACEOF | |
20820 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20821 | _ACEOF | |
2b5f62a0 | 20822 | |
2b5f62a0 VZ |
20823 | fi |
20824 | done | |
20825 | ||
f09359cf VS |
20826 | fi |
20827 | ||
21d1c967 | 20828 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 20829 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
20830 | |
20831 | AFMINSTALL=afminstall | |
20832 | TOOLKIT=GTK | |
20833 | GUIDIST=GTK_DIST | |
20834 | ||
e6cc62c6 VS |
20835 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20836 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20837 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20839 | else |
e6cc62c6 | 20840 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20841 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20842 | cat >conftest.$ac_ext <<_ACEOF |
20843 | #line $LINENO "configure" | |
20844 | /* confdefs.h. */ | |
20845 | _ACEOF | |
20846 | cat confdefs.h >>conftest.$ac_ext | |
20847 | cat >>conftest.$ac_ext <<_ACEOF | |
20848 | /* end confdefs.h. */ | |
20849 | ||
5c6fa7d2 | 20850 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20851 | #ifdef __cplusplus |
20852 | extern "C" | |
20853 | #endif | |
5c6fa7d2 | 20854 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20855 | builtin and then its argument prototype would still apply. */ |
20856 | char gdk_im_open (); | |
20857 | int | |
20858 | main () | |
20859 | { | |
20860 | gdk_im_open (); | |
20861 | ; | |
20862 | return 0; | |
20863 | } | |
20864 | _ACEOF | |
20865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20867 | (eval $ac_link) 2>&5 | |
20868 | ac_status=$? | |
20869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20870 | (exit $ac_status); } && | |
20871 | { ac_try='test -s conftest$ac_exeext' | |
20872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20873 | (eval $ac_try) 2>&5 | |
20874 | ac_status=$? | |
20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20876 | (exit $ac_status); }; }; then | |
20877 | ac_cv_lib_gdk_gdk_im_open=yes | |
20878 | else | |
20879 | echo "$as_me: failed program was:" >&5 | |
20880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20881 | ||
20882 | ac_cv_lib_gdk_gdk_im_open=no | |
20883 | fi | |
20884 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20885 | LIBS=$ac_check_lib_save_LIBS | |
20886 | fi | |
20887 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20888 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20889 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20890 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20891 | #define HAVE_XIM 1 |
e6cc62c6 | 20892 | _ACEOF |
21d1c967 | 20893 | |
90dd450c | 20894 | fi |
1e6feb95 | 20895 | |
21d1c967 | 20896 | fi |
1e6feb95 | 20897 | |
21d1c967 | 20898 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
20899 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
20900 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 20901 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
20902 | echo "$as_me:$LINENO: result: not found" >&5 |
20903 | echo "${ECHO_T}not found" >&6 | |
20904 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20905 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20906 | { (exit 1); exit 1; }; } | |
21d1c967 | 20907 | else |
e6cc62c6 VS |
20908 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
20909 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
20910 | fi |
20911 | ||
e6cc62c6 VS |
20912 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
20913 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
20914 | case "${host}" in |
20915 | *-*-linux* ) | |
63a76696 VS |
20916 | if test "x$wxUSE_SHARED" = xyes ; then |
20917 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20918 | else | |
20919 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20920 | fi | |
21d1c967 GD |
20921 | ;; |
20922 | *-pc-msdosdjgpp ) | |
63a76696 | 20923 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
20924 | ;; |
20925 | *) | |
e6cc62c6 VS |
20926 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
20927 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20928 | { (exit 1); exit 1; }; } | |
21d1c967 | 20929 | esac |
1e6feb95 | 20930 | |
21d1c967 | 20931 | mgl_lib_type="" |
63a76696 VS |
20932 | mgl_os="" |
20933 | ||
20934 | for mgl_os_i in $mgl_os_candidates ; do | |
20935 | if test "x$mgl_os" = x ; then | |
20936 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20937 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20938 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20939 | mgl_lib_type=debug | |
20940 | mgl_os=$mgl_os_i | |
20941 | fi | |
20942 | fi | |
20943 | if test "x$mgl_lib_type" = x ; then | |
20944 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20945 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20946 | mgl_lib_type=release | |
20947 | mgl_os=$mgl_os_i | |
20948 | fi | |
20949 | fi | |
21d1c967 | 20950 | fi |
63a76696 | 20951 | done |
2224580a | 20952 | |
63a76696 | 20953 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
20954 | echo "$as_me:$LINENO: result: not found" >&5 |
20955 | echo "${ECHO_T}not found" >&6 | |
20956 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20957 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20958 | { (exit 1); exit 1; }; } | |
63a76696 | 20959 | fi |
e6cc62c6 VS |
20960 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
20961 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 20962 | |
1d1b75ac VZ |
20963 | wxUSE_UNIVERSAL="yes" |
20964 | ||
21d1c967 GD |
20965 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
20966 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20967 | ||
90dd450c | 20968 | AFMINSTALL=afminstall |
21d1c967 GD |
20969 | TOOLKIT=MGL |
20970 | GUIDIST=MGL_DIST | |
20971 | fi | |
dad6c0ea | 20972 | |
21d1c967 | 20973 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
20974 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
20975 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 20976 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
20977 | echo "$as_me:$LINENO: result: not found" >&5 |
20978 | echo "${ECHO_T}not found" >&6 | |
20979 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20980 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20981 | { (exit 1); exit 1; }; } | |
21d1c967 | 20982 | else |
e6cc62c6 VS |
20983 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
20984 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 20985 | fi |
f6bcfd97 | 20986 | |
21d1c967 | 20987 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
20988 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
20989 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 20990 | else |
e6cc62c6 VS |
20991 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
20992 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
20993 | { (exit 1); exit 1; }; } | |
90dd450c | 20994 | fi |
0b2effe9 | 20995 | |
21d1c967 GD |
20996 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
20997 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
20998 | ||
1d1b75ac VZ |
20999 | wxUSE_UNIVERSAL="yes" |
21000 | ||
21d1c967 GD |
21001 | AFMINSTALL=afminstall |
21002 | TOOLKIT=MICROWIN | |
21003 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21004 | |
21005 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21006 | fi |
f6bcfd97 | 21007 | |
21d1c967 | 21008 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21009 | echo "$as_me:$LINENO: checking for X" >&5 |
21010 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21011 | ||
d8356fa3 | 21012 | |
21d1c967 GD |
21013 | # Check whether --with-x or --without-x was given. |
21014 | if test "${with_x+set}" = set; then | |
21015 | withval="$with_x" | |
2224580a | 21016 | |
e6cc62c6 | 21017 | fi; |
21d1c967 GD |
21018 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21019 | if test "x$with_x" = xno; then | |
21020 | # The user explicitly disabled X. | |
21021 | have_x=disabled | |
21022 | else | |
21023 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21024 | # Both variables are already set. | |
21025 | have_x=yes | |
21026 | else | |
e6cc62c6 VS |
21027 | if test "${ac_cv_have_x+set}" = set; then |
21028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21029 | else |
21030 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21031 | ac_x_includes=no ac_x_libraries=no |
21032 | rm -fr conftest.dir | |
21033 | if mkdir conftest.dir; then | |
21034 | cd conftest.dir | |
21d1c967 | 21035 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21036 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21037 | acfindx: |
21038 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21039 | _ACEOF |
21d1c967 GD |
21040 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21041 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21042 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21043 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21044 | for ac_extension in a so sl; do | |
21045 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 21046 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
21047 | ac_im_usrlibdir=$ac_im_libdir; break |
21048 | fi | |
21049 | done | |
21050 | # Screen out bogus values from the imake configuration. They are | |
21051 | # bogus both because they are the default anyway, and because | |
21052 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21053 | case $ac_im_incroot in |
21d1c967 | 21054 | /usr/include) ;; |
e6cc62c6 | 21055 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21056 | esac |
e6cc62c6 | 21057 | case $ac_im_usrlibdir in |
21d1c967 | 21058 | /usr/lib | /lib) ;; |
e6cc62c6 | 21059 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21060 | esac |
21061 | fi | |
21062 | cd .. | |
e6cc62c6 | 21063 | rm -fr conftest.dir |
21d1c967 | 21064 | fi |
10f2d63a | 21065 | |
e6cc62c6 VS |
21066 | # Standard set of common directories for X headers. |
21067 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21068 | ac_x_header_dirs=' | |
21069 | /usr/X11/include | |
21070 | /usr/X11R6/include | |
21071 | /usr/X11R5/include | |
21072 | /usr/X11R4/include | |
21073 | ||
21074 | /usr/include/X11 | |
21075 | /usr/include/X11R6 | |
21076 | /usr/include/X11R5 | |
21077 | /usr/include/X11R4 | |
21078 | ||
21079 | /usr/local/X11/include | |
21080 | /usr/local/X11R6/include | |
21081 | /usr/local/X11R5/include | |
21082 | /usr/local/X11R4/include | |
21083 | ||
21084 | /usr/local/include/X11 | |
21085 | /usr/local/include/X11R6 | |
21086 | /usr/local/include/X11R5 | |
21087 | /usr/local/include/X11R4 | |
21088 | ||
21089 | /usr/X386/include | |
21090 | /usr/x386/include | |
21091 | /usr/XFree86/include/X11 | |
21092 | ||
21093 | /usr/include | |
21094 | /usr/local/include | |
21095 | /usr/unsupported/include | |
21096 | /usr/athena/include | |
21097 | /usr/local/x11r5/include | |
21098 | /usr/lpp/Xamples/include | |
21099 | ||
21100 | /usr/openwin/include | |
21101 | /usr/openwin/share/include' | |
21102 | ||
21103 | if test "$ac_x_includes" = no; then | |
21104 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21105 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
21106 | cat >conftest.$ac_ext <<_ACEOF |
21107 | #line $LINENO "configure" | |
21108 | /* confdefs.h. */ | |
21109 | _ACEOF | |
21110 | cat confdefs.h >>conftest.$ac_ext | |
21111 | cat >>conftest.$ac_ext <<_ACEOF | |
21112 | /* end confdefs.h. */ | |
21113 | #include <X11/Intrinsic.h> | |
21114 | _ACEOF | |
21115 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21116 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21117 | ac_status=$? | |
21118 | grep -v '^ *+' conftest.er1 >conftest.err | |
21119 | rm -f conftest.er1 | |
21120 | cat conftest.err >&5 | |
21121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21122 | (exit $ac_status); } >/dev/null; then | |
21123 | if test -s conftest.err; then | |
21124 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21125 | else | |
21126 | ac_cpp_err= | |
21127 | fi | |
21128 | else | |
21129 | ac_cpp_err=yes | |
21130 | fi | |
21131 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21132 | # We can compile using X headers with no special include directory. |
21133 | ac_x_includes= | |
90dd450c | 21134 | else |
e6cc62c6 VS |
21135 | echo "$as_me: failed program was:" >&5 |
21136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21137 | ||
21138 | for ac_dir in $ac_x_header_dirs; do | |
21139 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21140 | ac_x_includes=$ac_dir | |
21141 | break | |
21142 | fi | |
21143 | done | |
3a922bb4 | 21144 | fi |
e6cc62c6 VS |
21145 | rm -f conftest.err conftest.$ac_ext |
21146 | fi # $ac_x_includes = no | |
10f2d63a | 21147 | |
e6cc62c6 | 21148 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21149 | # Check for the libraries. |
21d1c967 GD |
21150 | # See if we find them without any special options. |
21151 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21152 | ac_save_LIBS=$LIBS |
21153 | LIBS="-lXt $LIBS" | |
21154 | cat >conftest.$ac_ext <<_ACEOF | |
21155 | #line $LINENO "configure" | |
21156 | /* confdefs.h. */ | |
21157 | _ACEOF | |
21158 | cat confdefs.h >>conftest.$ac_ext | |
21159 | cat >>conftest.$ac_ext <<_ACEOF | |
21160 | /* end confdefs.h. */ | |
21161 | #include <X11/Intrinsic.h> | |
21162 | int | |
21163 | main () | |
21164 | { | |
21165 | XtMalloc (0) | |
21166 | ; | |
21167 | return 0; | |
21168 | } | |
21169 | _ACEOF | |
21170 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21172 | (eval $ac_link) 2>&5 | |
21173 | ac_status=$? | |
21174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21175 | (exit $ac_status); } && | |
21176 | { ac_try='test -s conftest$ac_exeext' | |
21177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21178 | (eval $ac_try) 2>&5 | |
21179 | ac_status=$? | |
21180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21181 | (exit $ac_status); }; }; then | |
21182 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21183 | # We can link X programs with no special library path. |
21184 | ac_x_libraries= | |
3a922bb4 | 21185 | else |
e6cc62c6 VS |
21186 | echo "$as_me: failed program was:" >&5 |
21187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21188 | ||
21189 | LIBS=$ac_save_LIBS | |
21190 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21191 | do |
e6cc62c6 | 21192 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21193 | for ac_extension in a so sl; do |
e6cc62c6 | 21194 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21195 | ac_x_libraries=$ac_dir |
21196 | break 2 | |
21197 | fi | |
21198 | done | |
21199 | done | |
3a922bb4 | 21200 | fi |
e6cc62c6 VS |
21201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21202 | fi # $ac_x_libraries = no | |
90dd450c | 21203 | |
e6cc62c6 | 21204 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21205 | # Didn't find X anywhere. Cache the known absence of X. |
21206 | ac_cv_have_x="have_x=no" | |
21207 | else | |
21208 | # Record where we found X for the cache. | |
21209 | ac_cv_have_x="have_x=yes \ | |
21210 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21211 | fi |
21d1c967 | 21212 | fi |
e6cc62c6 | 21213 | |
21d1c967 GD |
21214 | fi |
21215 | eval "$ac_cv_have_x" | |
21216 | fi # $with_x != no | |
90dd450c | 21217 | |
21d1c967 | 21218 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21219 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21220 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21221 | no_x=yes |
21222 | else | |
21223 | # If each of the values was on the command line, it overrides each guess. | |
21224 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21225 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21226 | # Update the cache value to reflect the command line values. | |
21227 | ac_cv_have_x="have_x=yes \ | |
21228 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21229 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21230 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21231 | fi |
90dd450c | 21232 | |
21d1c967 | 21233 | if test "$no_x" = yes; then |
90dd450c | 21234 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21235 | |
21236 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21237 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21238 | _ACEOF |
90dd450c VZ |
21239 | |
21240 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21241 | else | |
21242 | if test -n "$x_includes"; then | |
21243 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21244 | fi |
3a922bb4 | 21245 | |
90dd450c VZ |
21246 | # It would also be nice to do this for all -L options, not just this one. |
21247 | if test -n "$x_libraries"; then | |
21248 | X_LIBS="$X_LIBS -L$x_libraries" | |
21249 | # For Solaris; some versions of Sun CC require a space after -R and | |
21250 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21251 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21252 | "SunOS 5"*) |
e6cc62c6 VS |
21253 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21254 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21255 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21256 | cat >conftest.$ac_ext <<_ACEOF | |
21257 | #line $LINENO "configure" | |
21258 | /* confdefs.h. */ | |
21259 | _ACEOF | |
21260 | cat confdefs.h >>conftest.$ac_ext | |
21261 | cat >>conftest.$ac_ext <<_ACEOF | |
21262 | /* end confdefs.h. */ | |
21263 | ||
21264 | int | |
21265 | main () | |
21266 | { | |
90dd450c | 21267 | |
e6cc62c6 VS |
21268 | ; |
21269 | return 0; | |
21270 | } | |
21271 | _ACEOF | |
21272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21274 | (eval $ac_link) 2>&5 | |
21275 | ac_status=$? | |
21276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21277 | (exit $ac_status); } && | |
21278 | { ac_try='test -s conftest$ac_exeext' | |
21279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21280 | (eval $ac_try) 2>&5 | |
21281 | ac_status=$? | |
21282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21283 | (exit $ac_status); }; }; then | |
90dd450c | 21284 | ac_R_nospace=yes |
3a922bb4 | 21285 | else |
e6cc62c6 VS |
21286 | echo "$as_me: failed program was:" >&5 |
21287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21288 | ||
21289 | ac_R_nospace=no | |
3a922bb4 | 21290 | fi |
e6cc62c6 | 21291 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21292 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21293 | echo "$as_me:$LINENO: result: no" >&5 |
21294 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21295 | X_LIBS="$X_LIBS -R$x_libraries" |
21296 | else | |
21297 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21298 | cat >conftest.$ac_ext <<_ACEOF |
21299 | #line $LINENO "configure" | |
21300 | /* confdefs.h. */ | |
21301 | _ACEOF | |
21302 | cat confdefs.h >>conftest.$ac_ext | |
21303 | cat >>conftest.$ac_ext <<_ACEOF | |
21304 | /* end confdefs.h. */ | |
21305 | ||
21306 | int | |
21307 | main () | |
21308 | { | |
6f754473 | 21309 | |
e6cc62c6 VS |
21310 | ; |
21311 | return 0; | |
21312 | } | |
21313 | _ACEOF | |
21314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21316 | (eval $ac_link) 2>&5 | |
21317 | ac_status=$? | |
21318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21319 | (exit $ac_status); } && | |
21320 | { ac_try='test -s conftest$ac_exeext' | |
21321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21322 | (eval $ac_try) 2>&5 | |
21323 | ac_status=$? | |
21324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21325 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21326 | ac_R_space=yes |
21327 | else | |
e6cc62c6 VS |
21328 | echo "$as_me: failed program was:" >&5 |
21329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21330 | ||
21331 | ac_R_space=no | |
90dd450c | 21332 | fi |
e6cc62c6 | 21333 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21334 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21335 | echo "$as_me:$LINENO: result: yes" >&5 |
21336 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21337 | X_LIBS="$X_LIBS -R $x_libraries" |
21338 | else | |
e6cc62c6 VS |
21339 | echo "$as_me:$LINENO: result: neither works" >&5 |
21340 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21341 | fi |
21342 | fi | |
e6cc62c6 | 21343 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21344 | esac |
21345 | fi | |
21346 | ||
21347 | # Check for system-dependent libraries X programs must link with. | |
21348 | # Do this before checking for the system-independent R6 libraries | |
21349 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21350 | |
90dd450c VZ |
21351 | if test "$ISC" = yes; then |
21352 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21353 | else | |
e6cc62c6 VS |
21354 | # Martyn Johnson says this is needed for Ultrix, if the X |
21355 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21356 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21357 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21358 | cat >conftest.$ac_ext <<_ACEOF | |
21359 | #line $LINENO "configure" | |
21360 | /* confdefs.h. */ | |
21361 | _ACEOF | |
21362 | cat confdefs.h >>conftest.$ac_ext | |
21363 | cat >>conftest.$ac_ext <<_ACEOF | |
21364 | /* end confdefs.h. */ | |
21365 | ||
247f5006 | 21366 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21367 | #ifdef __cplusplus |
21368 | extern "C" | |
21369 | #endif | |
247f5006 | 21370 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21371 | builtin and then its argument prototype would still apply. */ |
21372 | char XOpenDisplay (); | |
21373 | int | |
21374 | main () | |
21375 | { | |
21376 | XOpenDisplay (); | |
21377 | ; | |
21378 | return 0; | |
21379 | } | |
21380 | _ACEOF | |
21381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21383 | (eval $ac_link) 2>&5 | |
21384 | ac_status=$? | |
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21386 | (exit $ac_status); } && | |
21387 | { ac_try='test -s conftest$ac_exeext' | |
21388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21389 | (eval $ac_try) 2>&5 | |
21390 | ac_status=$? | |
21391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21392 | (exit $ac_status); }; }; then | |
21393 | : | |
21394 | else | |
21395 | echo "$as_me: failed program was:" >&5 | |
21396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21397 | |
e6cc62c6 VS |
21398 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21399 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21400 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21402 | else |
e6cc62c6 VS |
21403 | ac_check_lib_save_LIBS=$LIBS |
21404 | LIBS="-ldnet $LIBS" | |
21405 | cat >conftest.$ac_ext <<_ACEOF | |
21406 | #line $LINENO "configure" | |
21407 | /* confdefs.h. */ | |
21408 | _ACEOF | |
21409 | cat confdefs.h >>conftest.$ac_ext | |
21410 | cat >>conftest.$ac_ext <<_ACEOF | |
21411 | /* end confdefs.h. */ | |
a0b9e27f | 21412 | |
e6cc62c6 VS |
21413 | /* Override any gcc2 internal prototype to avoid an error. */ |
21414 | #ifdef __cplusplus | |
21415 | extern "C" | |
21416 | #endif | |
21417 | /* We use char because int might match the return type of a gcc2 | |
21418 | builtin and then its argument prototype would still apply. */ | |
21419 | char dnet_ntoa (); | |
21420 | int | |
21421 | main () | |
21422 | { | |
21423 | dnet_ntoa (); | |
21424 | ; | |
21425 | return 0; | |
21426 | } | |
21427 | _ACEOF | |
21428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21430 | (eval $ac_link) 2>&5 | |
21431 | ac_status=$? | |
21432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21433 | (exit $ac_status); } && | |
21434 | { ac_try='test -s conftest$ac_exeext' | |
21435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21436 | (eval $ac_try) 2>&5 | |
21437 | ac_status=$? | |
21438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21439 | (exit $ac_status); }; }; then | |
21440 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21441 | else | |
21442 | echo "$as_me: failed program was:" >&5 | |
21443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21444 | ||
21445 | ac_cv_lib_dnet_dnet_ntoa=no | |
21446 | fi | |
21447 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21448 | LIBS=$ac_check_lib_save_LIBS | |
21449 | fi | |
21450 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21451 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21452 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21453 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21454 | fi |
21455 | ||
90dd450c | 21456 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21457 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21458 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21459 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21461 | else |
e6cc62c6 | 21462 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21463 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21464 | cat >conftest.$ac_ext <<_ACEOF |
21465 | #line $LINENO "configure" | |
21466 | /* confdefs.h. */ | |
21467 | _ACEOF | |
21468 | cat confdefs.h >>conftest.$ac_ext | |
21469 | cat >>conftest.$ac_ext <<_ACEOF | |
21470 | /* end confdefs.h. */ | |
21471 | ||
90dd450c | 21472 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21473 | #ifdef __cplusplus |
21474 | extern "C" | |
21475 | #endif | |
90dd450c | 21476 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21477 | builtin and then its argument prototype would still apply. */ |
21478 | char dnet_ntoa (); | |
21479 | int | |
21480 | main () | |
21481 | { | |
21482 | dnet_ntoa (); | |
21483 | ; | |
21484 | return 0; | |
21485 | } | |
21486 | _ACEOF | |
21487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21489 | (eval $ac_link) 2>&5 | |
21490 | ac_status=$? | |
21491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21492 | (exit $ac_status); } && | |
21493 | { ac_try='test -s conftest$ac_exeext' | |
21494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21495 | (eval $ac_try) 2>&5 | |
21496 | ac_status=$? | |
21497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21498 | (exit $ac_status); }; }; then | |
21499 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21500 | else | |
21501 | echo "$as_me: failed program was:" >&5 | |
21502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21503 | ||
21504 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21505 | fi | |
21506 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21507 | LIBS=$ac_check_lib_save_LIBS | |
21508 | fi | |
21509 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21510 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21511 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21512 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21513 | fi |
21514 | ||
90dd450c | 21515 | fi |
e6cc62c6 VS |
21516 | fi |
21517 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21518 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21519 | |
90dd450c VZ |
21520 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21521 | # to get the SysV transport functions. | |
e6cc62c6 | 21522 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21523 | # needs -lnsl. |
21524 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21525 | # on Irix 5.2, according to T.E. Dickey. |
21526 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21527 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21528 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21529 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21530 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21532 | else | |
21533 | cat >conftest.$ac_ext <<_ACEOF | |
21534 | #line $LINENO "configure" | |
21535 | /* confdefs.h. */ | |
21536 | _ACEOF | |
21537 | cat confdefs.h >>conftest.$ac_ext | |
21538 | cat >>conftest.$ac_ext <<_ACEOF | |
21539 | /* end confdefs.h. */ | |
90dd450c | 21540 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21541 | which can conflict with char gethostbyname (); below. |
21542 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21543 | <limits.h> exists even on freestanding compilers. */ | |
21544 | #ifdef __STDC__ | |
21545 | # include <limits.h> | |
21546 | #else | |
21547 | # include <assert.h> | |
21548 | #endif | |
90dd450c | 21549 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21550 | #ifdef __cplusplus |
21551 | extern "C" | |
21552 | { | |
21553 | #endif | |
90dd450c | 21554 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21555 | builtin and then its argument prototype would still apply. */ |
21556 | char gethostbyname (); | |
90dd450c VZ |
21557 | /* The GNU C library defines this for functions which it implements |
21558 | to always fail with ENOSYS. Some functions are actually named | |
21559 | something starting with __ and the normal name is an alias. */ | |
21560 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21561 | choke me | |
21562 | #else | |
e6cc62c6 VS |
21563 | char (*f) () = gethostbyname; |
21564 | #endif | |
21565 | #ifdef __cplusplus | |
21566 | } | |
90dd450c | 21567 | #endif |
978f1259 | 21568 | |
e6cc62c6 VS |
21569 | int |
21570 | main () | |
21571 | { | |
21572 | return f != gethostbyname; | |
21573 | ; | |
21574 | return 0; | |
21575 | } | |
21576 | _ACEOF | |
21577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21579 | (eval $ac_link) 2>&5 | |
21580 | ac_status=$? | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); } && | |
21583 | { ac_try='test -s conftest$ac_exeext' | |
21584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21585 | (eval $ac_try) 2>&5 | |
21586 | ac_status=$? | |
21587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21588 | (exit $ac_status); }; }; then | |
21589 | ac_cv_func_gethostbyname=yes | |
21590 | else | |
21591 | echo "$as_me: failed program was:" >&5 | |
21592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21593 | ||
21594 | ac_cv_func_gethostbyname=no | |
21595 | fi | |
21596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21597 | fi | |
21598 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21599 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21600 | |
90dd450c | 21601 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21602 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21603 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21604 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21606 | else |
e6cc62c6 | 21607 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21608 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21609 | cat >conftest.$ac_ext <<_ACEOF |
21610 | #line $LINENO "configure" | |
21611 | /* confdefs.h. */ | |
21612 | _ACEOF | |
21613 | cat confdefs.h >>conftest.$ac_ext | |
21614 | cat >>conftest.$ac_ext <<_ACEOF | |
21615 | /* end confdefs.h. */ | |
21616 | ||
90dd450c | 21617 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21618 | #ifdef __cplusplus |
21619 | extern "C" | |
21620 | #endif | |
90dd450c | 21621 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21622 | builtin and then its argument prototype would still apply. */ |
21623 | char gethostbyname (); | |
21624 | int | |
21625 | main () | |
21626 | { | |
21627 | gethostbyname (); | |
21628 | ; | |
21629 | return 0; | |
21630 | } | |
21631 | _ACEOF | |
21632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21634 | (eval $ac_link) 2>&5 | |
21635 | ac_status=$? | |
21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21637 | (exit $ac_status); } && | |
21638 | { ac_try='test -s conftest$ac_exeext' | |
21639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21640 | (eval $ac_try) 2>&5 | |
21641 | ac_status=$? | |
21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21643 | (exit $ac_status); }; }; then | |
21644 | ac_cv_lib_nsl_gethostbyname=yes | |
21645 | else | |
21646 | echo "$as_me: failed program was:" >&5 | |
21647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21648 | ||
21649 | ac_cv_lib_nsl_gethostbyname=no | |
21650 | fi | |
21651 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21652 | LIBS=$ac_check_lib_save_LIBS | |
21653 | fi | |
21654 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21655 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21656 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21657 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21658 | fi |
247f5006 | 21659 | |
e6cc62c6 VS |
21660 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21661 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21662 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21663 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21665 | else |
e6cc62c6 VS |
21666 | ac_check_lib_save_LIBS=$LIBS |
21667 | LIBS="-lbsd $LIBS" | |
21668 | cat >conftest.$ac_ext <<_ACEOF | |
21669 | #line $LINENO "configure" | |
21670 | /* confdefs.h. */ | |
21671 | _ACEOF | |
21672 | cat confdefs.h >>conftest.$ac_ext | |
21673 | cat >>conftest.$ac_ext <<_ACEOF | |
21674 | /* end confdefs.h. */ | |
21675 | ||
21676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21677 | #ifdef __cplusplus | |
21678 | extern "C" | |
21679 | #endif | |
21680 | /* We use char because int might match the return type of a gcc2 | |
21681 | builtin and then its argument prototype would still apply. */ | |
21682 | char gethostbyname (); | |
21683 | int | |
21684 | main () | |
21685 | { | |
21686 | gethostbyname (); | |
21687 | ; | |
21688 | return 0; | |
21689 | } | |
21690 | _ACEOF | |
21691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21693 | (eval $ac_link) 2>&5 | |
21694 | ac_status=$? | |
21695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21696 | (exit $ac_status); } && | |
21697 | { ac_try='test -s conftest$ac_exeext' | |
21698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21699 | (eval $ac_try) 2>&5 | |
21700 | ac_status=$? | |
21701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21702 | (exit $ac_status); }; }; then | |
21703 | ac_cv_lib_bsd_gethostbyname=yes | |
21704 | else | |
21705 | echo "$as_me: failed program was:" >&5 | |
21706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21707 | ||
21708 | ac_cv_lib_bsd_gethostbyname=no | |
21709 | fi | |
21710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21711 | LIBS=$ac_check_lib_save_LIBS | |
21712 | fi | |
21713 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21714 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21715 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21716 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21717 | fi |
b12915c1 | 21718 | |
e6cc62c6 | 21719 | fi |
90dd450c VZ |
21720 | fi |
21721 | ||
21722 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21723 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21724 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21725 | # on later versions), says Simon Leinen: it contains gethostby* |
21726 | # variants that don't use the name server (or something). -lsocket | |
21727 | # must be given before -lnsl if both are needed. We assume that | |
21728 | # if connect needs -lnsl, so does gethostbyname. | |
21729 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21730 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21731 | if test "${ac_cv_func_connect+set}" = set; then | |
21732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21733 | else | |
21734 | cat >conftest.$ac_ext <<_ACEOF | |
21735 | #line $LINENO "configure" | |
21736 | /* confdefs.h. */ | |
21737 | _ACEOF | |
21738 | cat confdefs.h >>conftest.$ac_ext | |
21739 | cat >>conftest.$ac_ext <<_ACEOF | |
21740 | /* end confdefs.h. */ | |
90dd450c | 21741 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21742 | which can conflict with char connect (); below. |
21743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21744 | <limits.h> exists even on freestanding compilers. */ | |
21745 | #ifdef __STDC__ | |
21746 | # include <limits.h> | |
21747 | #else | |
21748 | # include <assert.h> | |
21749 | #endif | |
90dd450c | 21750 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21751 | #ifdef __cplusplus |
21752 | extern "C" | |
21753 | { | |
21754 | #endif | |
90dd450c | 21755 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21756 | builtin and then its argument prototype would still apply. */ |
21757 | char connect (); | |
90dd450c VZ |
21758 | /* The GNU C library defines this for functions which it implements |
21759 | to always fail with ENOSYS. Some functions are actually named | |
21760 | something starting with __ and the normal name is an alias. */ | |
21761 | #if defined (__stub_connect) || defined (__stub___connect) | |
21762 | choke me | |
21763 | #else | |
e6cc62c6 VS |
21764 | char (*f) () = connect; |
21765 | #endif | |
21766 | #ifdef __cplusplus | |
21767 | } | |
90dd450c VZ |
21768 | #endif |
21769 | ||
e6cc62c6 VS |
21770 | int |
21771 | main () | |
21772 | { | |
21773 | return f != connect; | |
21774 | ; | |
21775 | return 0; | |
21776 | } | |
21777 | _ACEOF | |
21778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21780 | (eval $ac_link) 2>&5 | |
21781 | ac_status=$? | |
21782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21783 | (exit $ac_status); } && | |
21784 | { ac_try='test -s conftest$ac_exeext' | |
21785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21786 | (eval $ac_try) 2>&5 | |
21787 | ac_status=$? | |
21788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21789 | (exit $ac_status); }; }; then | |
21790 | ac_cv_func_connect=yes | |
21791 | else | |
21792 | echo "$as_me: failed program was:" >&5 | |
21793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21794 | ||
21795 | ac_cv_func_connect=no | |
21796 | fi | |
21797 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21798 | fi | |
21799 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21800 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21801 | |
90dd450c | 21802 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21803 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21804 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21805 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21807 | else |
e6cc62c6 | 21808 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21809 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21810 | cat >conftest.$ac_ext <<_ACEOF |
21811 | #line $LINENO "configure" | |
21812 | /* confdefs.h. */ | |
21813 | _ACEOF | |
21814 | cat confdefs.h >>conftest.$ac_ext | |
21815 | cat >>conftest.$ac_ext <<_ACEOF | |
21816 | /* end confdefs.h. */ | |
21817 | ||
90dd450c | 21818 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21819 | #ifdef __cplusplus |
21820 | extern "C" | |
21821 | #endif | |
90dd450c | 21822 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21823 | builtin and then its argument prototype would still apply. */ |
21824 | char connect (); | |
21825 | int | |
21826 | main () | |
21827 | { | |
21828 | connect (); | |
21829 | ; | |
21830 | return 0; | |
21831 | } | |
21832 | _ACEOF | |
21833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21835 | (eval $ac_link) 2>&5 | |
21836 | ac_status=$? | |
21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21838 | (exit $ac_status); } && | |
21839 | { ac_try='test -s conftest$ac_exeext' | |
21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21841 | (eval $ac_try) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); }; }; then | |
21845 | ac_cv_lib_socket_connect=yes | |
21846 | else | |
21847 | echo "$as_me: failed program was:" >&5 | |
21848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21849 | ||
21850 | ac_cv_lib_socket_connect=no | |
21851 | fi | |
21852 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21853 | LIBS=$ac_check_lib_save_LIBS | |
21854 | fi | |
21855 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21856 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21857 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21858 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21859 | fi |
77e13408 | 21860 | |
90dd450c | 21861 | fi |
25d0687a | 21862 | |
e6cc62c6 VS |
21863 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21864 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21865 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21866 | if test "${ac_cv_func_remove+set}" = set; then | |
21867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21868 | else | |
21869 | cat >conftest.$ac_ext <<_ACEOF | |
21870 | #line $LINENO "configure" | |
21871 | /* confdefs.h. */ | |
21872 | _ACEOF | |
21873 | cat confdefs.h >>conftest.$ac_ext | |
21874 | cat >>conftest.$ac_ext <<_ACEOF | |
21875 | /* end confdefs.h. */ | |
90dd450c | 21876 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21877 | which can conflict with char remove (); below. |
21878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21879 | <limits.h> exists even on freestanding compilers. */ | |
21880 | #ifdef __STDC__ | |
21881 | # include <limits.h> | |
21882 | #else | |
21883 | # include <assert.h> | |
21884 | #endif | |
90dd450c | 21885 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21886 | #ifdef __cplusplus |
21887 | extern "C" | |
21888 | { | |
21889 | #endif | |
90dd450c | 21890 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21891 | builtin and then its argument prototype would still apply. */ |
21892 | char remove (); | |
90dd450c VZ |
21893 | /* The GNU C library defines this for functions which it implements |
21894 | to always fail with ENOSYS. Some functions are actually named | |
21895 | something starting with __ and the normal name is an alias. */ | |
21896 | #if defined (__stub_remove) || defined (__stub___remove) | |
21897 | choke me | |
21898 | #else | |
e6cc62c6 VS |
21899 | char (*f) () = remove; |
21900 | #endif | |
21901 | #ifdef __cplusplus | |
21902 | } | |
90dd450c | 21903 | #endif |
55e80573 | 21904 | |
e6cc62c6 VS |
21905 | int |
21906 | main () | |
21907 | { | |
21908 | return f != remove; | |
21909 | ; | |
21910 | return 0; | |
21911 | } | |
21912 | _ACEOF | |
21913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21915 | (eval $ac_link) 2>&5 | |
21916 | ac_status=$? | |
21917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21918 | (exit $ac_status); } && | |
21919 | { ac_try='test -s conftest$ac_exeext' | |
21920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21921 | (eval $ac_try) 2>&5 | |
21922 | ac_status=$? | |
21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21924 | (exit $ac_status); }; }; then | |
21925 | ac_cv_func_remove=yes | |
21926 | else | |
21927 | echo "$as_me: failed program was:" >&5 | |
21928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21929 | ||
21930 | ac_cv_func_remove=no | |
21931 | fi | |
21932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21933 | fi | |
21934 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21935 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 21936 | |
90dd450c | 21937 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
21938 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21939 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21940 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21942 | else |
e6cc62c6 | 21943 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21944 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
21945 | cat >conftest.$ac_ext <<_ACEOF |
21946 | #line $LINENO "configure" | |
21947 | /* confdefs.h. */ | |
21948 | _ACEOF | |
21949 | cat confdefs.h >>conftest.$ac_ext | |
21950 | cat >>conftest.$ac_ext <<_ACEOF | |
21951 | /* end confdefs.h. */ | |
21952 | ||
90dd450c | 21953 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21954 | #ifdef __cplusplus |
21955 | extern "C" | |
21956 | #endif | |
90dd450c | 21957 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21958 | builtin and then its argument prototype would still apply. */ |
21959 | char remove (); | |
21960 | int | |
21961 | main () | |
21962 | { | |
21963 | remove (); | |
21964 | ; | |
21965 | return 0; | |
21966 | } | |
21967 | _ACEOF | |
21968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21970 | (eval $ac_link) 2>&5 | |
21971 | ac_status=$? | |
21972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21973 | (exit $ac_status); } && | |
21974 | { ac_try='test -s conftest$ac_exeext' | |
21975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21976 | (eval $ac_try) 2>&5 | |
21977 | ac_status=$? | |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); }; }; then | |
21980 | ac_cv_lib_posix_remove=yes | |
21981 | else | |
21982 | echo "$as_me: failed program was:" >&5 | |
21983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21984 | ||
21985 | ac_cv_lib_posix_remove=no | |
21986 | fi | |
21987 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21988 | LIBS=$ac_check_lib_save_LIBS | |
21989 | fi | |
21990 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21991 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21992 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 21993 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 21994 | fi |
f6bcfd97 | 21995 | |
6fa882bd RR |
21996 | fi |
21997 | ||
90dd450c | 21998 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
21999 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22000 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22001 | if test "${ac_cv_func_shmat+set}" = set; then | |
22002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22003 | else | |
22004 | cat >conftest.$ac_ext <<_ACEOF | |
22005 | #line $LINENO "configure" | |
22006 | /* confdefs.h. */ | |
22007 | _ACEOF | |
22008 | cat confdefs.h >>conftest.$ac_ext | |
22009 | cat >>conftest.$ac_ext <<_ACEOF | |
22010 | /* end confdefs.h. */ | |
90dd450c | 22011 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22012 | which can conflict with char shmat (); below. |
22013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22014 | <limits.h> exists even on freestanding compilers. */ | |
22015 | #ifdef __STDC__ | |
22016 | # include <limits.h> | |
22017 | #else | |
22018 | # include <assert.h> | |
22019 | #endif | |
90dd450c | 22020 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22021 | #ifdef __cplusplus |
22022 | extern "C" | |
22023 | { | |
22024 | #endif | |
90dd450c | 22025 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22026 | builtin and then its argument prototype would still apply. */ |
22027 | char shmat (); | |
90dd450c VZ |
22028 | /* The GNU C library defines this for functions which it implements |
22029 | to always fail with ENOSYS. Some functions are actually named | |
22030 | something starting with __ and the normal name is an alias. */ | |
22031 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22032 | choke me | |
22033 | #else | |
e6cc62c6 VS |
22034 | char (*f) () = shmat; |
22035 | #endif | |
22036 | #ifdef __cplusplus | |
22037 | } | |
90dd450c | 22038 | #endif |
10f2d63a | 22039 | |
e6cc62c6 VS |
22040 | int |
22041 | main () | |
22042 | { | |
22043 | return f != shmat; | |
22044 | ; | |
22045 | return 0; | |
22046 | } | |
22047 | _ACEOF | |
22048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22050 | (eval $ac_link) 2>&5 | |
22051 | ac_status=$? | |
22052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22053 | (exit $ac_status); } && | |
22054 | { ac_try='test -s conftest$ac_exeext' | |
22055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22056 | (eval $ac_try) 2>&5 | |
22057 | ac_status=$? | |
22058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22059 | (exit $ac_status); }; }; then | |
22060 | ac_cv_func_shmat=yes | |
22061 | else | |
22062 | echo "$as_me: failed program was:" >&5 | |
22063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22064 | ||
22065 | ac_cv_func_shmat=no | |
22066 | fi | |
22067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22068 | fi | |
22069 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22070 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22071 | |
90dd450c | 22072 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22073 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22074 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22075 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22077 | else |
e6cc62c6 | 22078 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22079 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
22080 | cat >conftest.$ac_ext <<_ACEOF |
22081 | #line $LINENO "configure" | |
22082 | /* confdefs.h. */ | |
22083 | _ACEOF | |
22084 | cat confdefs.h >>conftest.$ac_ext | |
22085 | cat >>conftest.$ac_ext <<_ACEOF | |
22086 | /* end confdefs.h. */ | |
22087 | ||
8284b0c5 | 22088 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22089 | #ifdef __cplusplus |
22090 | extern "C" | |
22091 | #endif | |
90dd450c | 22092 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22093 | builtin and then its argument prototype would still apply. */ |
22094 | char shmat (); | |
22095 | int | |
22096 | main () | |
22097 | { | |
22098 | shmat (); | |
22099 | ; | |
22100 | return 0; | |
22101 | } | |
22102 | _ACEOF | |
22103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22105 | (eval $ac_link) 2>&5 | |
22106 | ac_status=$? | |
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22108 | (exit $ac_status); } && | |
22109 | { ac_try='test -s conftest$ac_exeext' | |
22110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22111 | (eval $ac_try) 2>&5 | |
22112 | ac_status=$? | |
22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22114 | (exit $ac_status); }; }; then | |
22115 | ac_cv_lib_ipc_shmat=yes | |
22116 | else | |
22117 | echo "$as_me: failed program was:" >&5 | |
22118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22119 | ||
22120 | ac_cv_lib_ipc_shmat=no | |
22121 | fi | |
22122 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22123 | LIBS=$ac_check_lib_save_LIBS | |
22124 | fi | |
22125 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22126 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22127 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22128 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22129 | fi |
22130 | ||
d558c907 | 22131 | fi |
90dd450c | 22132 | fi |
3a922bb4 | 22133 | |
90dd450c | 22134 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22135 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22136 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22137 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22138 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22139 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22140 | # These have to be linked with before -lX11, unlike the other | |
22141 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22142 | # John Interrante, Karl Berry |
22143 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22144 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22145 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22147 | else | |
22148 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22149 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22150 | cat >conftest.$ac_ext <<_ACEOF |
22151 | #line $LINENO "configure" | |
22152 | /* confdefs.h. */ | |
22153 | _ACEOF | |
22154 | cat confdefs.h >>conftest.$ac_ext | |
22155 | cat >>conftest.$ac_ext <<_ACEOF | |
22156 | /* end confdefs.h. */ | |
22157 | ||
90dd450c | 22158 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22159 | #ifdef __cplusplus |
22160 | extern "C" | |
22161 | #endif | |
90dd450c | 22162 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22163 | builtin and then its argument prototype would still apply. */ |
22164 | char IceConnectionNumber (); | |
22165 | int | |
22166 | main () | |
22167 | { | |
22168 | IceConnectionNumber (); | |
22169 | ; | |
22170 | return 0; | |
22171 | } | |
22172 | _ACEOF | |
22173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22175 | (eval $ac_link) 2>&5 | |
22176 | ac_status=$? | |
22177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22178 | (exit $ac_status); } && | |
22179 | { ac_try='test -s conftest$ac_exeext' | |
22180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22181 | (eval $ac_try) 2>&5 | |
22182 | ac_status=$? | |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22184 | (exit $ac_status); }; }; then | |
22185 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22186 | else | |
22187 | echo "$as_me: failed program was:" >&5 | |
22188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22189 | ||
22190 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22191 | fi | |
22192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22193 | LIBS=$ac_check_lib_save_LIBS | |
22194 | fi | |
22195 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22196 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22197 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22198 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22199 | fi |
10f2d63a | 22200 | |
e6cc62c6 | 22201 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22202 | |
22203 | fi | |
22204 | ||
8284b0c5 | 22205 | |
90dd450c | 22206 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22207 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22208 | echo "$as_me: error: X11 not found" >&2;} | |
22209 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22210 | fi |
22211 | ||
22212 | GUI_TK_LIBRARY="$X_LIBS" | |
22213 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22214 | AFMINSTALL=afminstall | |
22215 | COMPILED_X_PROGRAM=0 | |
22216 | ||
21d1c967 | 22217 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22218 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22219 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22220 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22221 | echo "$as_me:$LINENO: result: not found" >&5 |
22222 | echo "${ECHO_T}not found" >&6 | |
22223 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22224 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22225 | { (exit 1); exit 1; }; } | |
90dd450c | 22226 | else |
e6cc62c6 VS |
22227 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22228 | echo "${ECHO_T}$MICROWIN" >&6 | |
22229 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22230 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22231 | _ACEOF |
21d1c967 | 22232 | |
90dd450c VZ |
22233 | fi |
22234 | fi | |
22235 | ||
22236 | xpm_link= | |
e6cc62c6 VS |
22237 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22238 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22239 | ||
90dd450c | 22240 | ac_find_libraries= |
2b5f62a0 | 22241 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22242 | do |
22243 | for ac_extension in a so sl dylib; do | |
22244 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22245 | ac_find_libraries=$ac_dir | |
22246 | break 2 | |
22247 | fi | |
22248 | done | |
22249 | done | |
22250 | ||
22251 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22252 | |
90dd450c VZ |
22253 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22254 | result=$? | |
22255 | if test $result = 0; then | |
22256 | ac_path_to_link="" | |
22257 | else | |
22258 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22259 | fi |
90dd450c | 22260 | |
21d1c967 GD |
22261 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22262 | xpm_link=" -lXpm" | |
e6cc62c6 | 22263 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22264 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22265 | _ACEOF |
90dd450c | 22266 | |
e6cc62c6 VS |
22267 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22268 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22269 | else |
e6cc62c6 VS |
22270 | cat >conftest.$ac_ext <<_ACEOF |
22271 | #line $LINENO "configure" | |
22272 | /* confdefs.h. */ | |
22273 | _ACEOF | |
22274 | cat confdefs.h >>conftest.$ac_ext | |
22275 | cat >>conftest.$ac_ext <<_ACEOF | |
22276 | /* end confdefs.h. */ | |
90dd450c | 22277 | |
21d1c967 | 22278 | #include <X11/xpm.h> |
e6cc62c6 VS |
22279 | |
22280 | int | |
22281 | main () | |
22282 | { | |
6f72b082 | 22283 | |
21d1c967 GD |
22284 | int version; |
22285 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22286 | |
22287 | ; | |
22288 | return 0; | |
22289 | } | |
22290 | _ACEOF | |
22291 | rm -f conftest.$ac_objext | |
22292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22293 | (eval $ac_compile) 2>&5 | |
22294 | ac_status=$? | |
22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22296 | (exit $ac_status); } && | |
22297 | { ac_try='test -s conftest.$ac_objext' | |
22298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22299 | (eval $ac_try) 2>&5 | |
22300 | ac_status=$? | |
22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22302 | (exit $ac_status); }; }; then | |
22303 | ||
21d1c967 | 22304 | xpm_link=" -lXpm" |
e6cc62c6 | 22305 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22306 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22307 | _ACEOF |
90dd450c | 22308 | |
e6cc62c6 VS |
22309 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22310 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22311 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22312 | |
21d1c967 | 22313 | else |
e6cc62c6 VS |
22314 | echo "$as_me: failed program was:" >&5 |
22315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22316 | ||
22317 | ||
22318 | echo "$as_me:$LINENO: result: no" >&5 | |
22319 | echo "${ECHO_T}no" >&6 | |
22320 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22321 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22322 | ||
22323 | ||
6f72b082 | 22324 | fi |
e6cc62c6 | 22325 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22326 | fi |
90dd450c | 22327 | |
e6cc62c6 VS |
22328 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22329 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22330 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22332 | else |
e6cc62c6 | 22333 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22334 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22335 | cat >conftest.$ac_ext <<_ACEOF |
22336 | #line $LINENO "configure" | |
22337 | /* confdefs.h. */ | |
22338 | _ACEOF | |
22339 | cat confdefs.h >>conftest.$ac_ext | |
22340 | cat >>conftest.$ac_ext <<_ACEOF | |
22341 | /* end confdefs.h. */ | |
22342 | ||
f7f78039 | 22343 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22344 | #ifdef __cplusplus |
22345 | extern "C" | |
22346 | #endif | |
f7f78039 | 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 XShapeQueryExtension (); | |
22350 | int | |
22351 | main () | |
22352 | { | |
22353 | XShapeQueryExtension (); | |
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 | |
22360 | (eval $ac_link) 2>&5 | |
22361 | ac_status=$? | |
22362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22363 | (exit $ac_status); } && | |
22364 | { ac_try='test -s conftest$ac_exeext' | |
22365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22366 | (eval $ac_try) 2>&5 | |
22367 | ac_status=$? | |
22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22369 | (exit $ac_status); }; }; then | |
22370 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22371 | else | |
22372 | echo "$as_me: failed program was:" >&5 | |
22373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22374 | ||
22375 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22376 | fi | |
22377 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22378 | LIBS=$ac_check_lib_save_LIBS | |
22379 | fi | |
22380 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22381 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22382 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22383 | |
f7f78039 MB |
22384 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22385 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22386 | |
f7f78039 MB |
22387 | fi |
22388 | ||
22389 | ||
2b5f62a0 | 22390 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22391 | |
2b5f62a0 | 22392 | succeeded=no |
90dd450c | 22393 | |
2b5f62a0 VZ |
22394 | if test -z "$PKG_CONFIG"; then |
22395 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22396 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22399 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22401 | else |
e6cc62c6 VS |
22402 | case $PKG_CONFIG in |
22403 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22404 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22405 | ;; | |
2b5f62a0 | 22406 | *) |
e6cc62c6 VS |
22407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22408 | for as_dir in $PATH | |
22409 | do | |
22410 | IFS=$as_save_IFS | |
22411 | test -z "$as_dir" && as_dir=. | |
22412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22414 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22416 | break 2 | |
22417 | fi | |
22418 | done | |
22419 | done | |
22420 | ||
2b5f62a0 VZ |
22421 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22422 | ;; | |
22423 | esac | |
22424 | fi | |
e6cc62c6 VS |
22425 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22426 | ||
2b5f62a0 | 22427 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22428 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22429 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22430 | else |
e6cc62c6 VS |
22431 | echo "$as_me:$LINENO: result: no" >&5 |
22432 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22433 | fi |
22434 | ||
22435 | fi | |
22436 | ||
22437 | if test "$PKG_CONFIG" = "no" ; then | |
22438 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22439 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22440 | echo "*** to the full path to pkg-config." | |
22441 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22442 | else | |
22443 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22444 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22445 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22446 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22447 | |
22448 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22449 | echo "$as_me:$LINENO: result: yes" >&5 |
22450 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22451 | succeeded=yes |
22452 | ||
e6cc62c6 VS |
22453 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22454 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22455 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22456 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22457 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22458 | |
e6cc62c6 VS |
22459 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22460 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22461 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22462 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22463 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22464 | else |
22465 | PANGOX_CFLAGS="" | |
22466 | PANGOX_LIBS="" | |
e6cc62c6 | 22467 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22468 | ## do set a variable so people can do so. |
22469 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22470 | |
2b5f62a0 VZ |
22471 | fi |
22472 | ||
e6cc62c6 VS |
22473 | |
22474 | ||
2b5f62a0 VZ |
22475 | else |
22476 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22477 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22478 | fi | |
22479 | fi | |
22480 | ||
22481 | if test $succeeded = yes; then | |
e6cc62c6 | 22482 | |
2b5f62a0 | 22483 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22484 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22485 | |
2b5f62a0 | 22486 | else |
e6cc62c6 VS |
22487 | |
22488 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22489 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22490 | { (exit 1); exit 1; }; } | |
22491 | ||
22492 | ||
2b5f62a0 VZ |
22493 | fi |
22494 | ||
e6cc62c6 | 22495 | |
2b5f62a0 VZ |
22496 | succeeded=no |
22497 | ||
22498 | if test -z "$PKG_CONFIG"; then | |
22499 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22500 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22503 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22505 | else |
e6cc62c6 VS |
22506 | case $PKG_CONFIG in |
22507 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22508 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22509 | ;; | |
2b5f62a0 | 22510 | *) |
e6cc62c6 VS |
22511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22512 | for as_dir in $PATH | |
22513 | do | |
22514 | IFS=$as_save_IFS | |
22515 | test -z "$as_dir" && as_dir=. | |
22516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22518 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22520 | break 2 | |
22521 | fi | |
22522 | done | |
22523 | done | |
22524 | ||
2b5f62a0 VZ |
22525 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22526 | ;; | |
22527 | esac | |
22528 | fi | |
e6cc62c6 VS |
22529 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22530 | ||
2b5f62a0 | 22531 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22532 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22533 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22534 | else |
e6cc62c6 VS |
22535 | echo "$as_me:$LINENO: result: no" >&5 |
22536 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22537 | fi |
22538 | ||
22539 | fi | |
22540 | ||
22541 | if test "$PKG_CONFIG" = "no" ; then | |
22542 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22543 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22544 | echo "*** to the full path to pkg-config." | |
22545 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22546 | else | |
22547 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22548 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22549 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22550 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22551 | |
22552 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22553 | echo "$as_me:$LINENO: result: yes" >&5 |
22554 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22555 | succeeded=yes |
22556 | ||
e6cc62c6 VS |
22557 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22558 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22559 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22560 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22561 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22562 | |
e6cc62c6 VS |
22563 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22564 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22565 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22566 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22567 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22568 | else |
22569 | PANGOFT2_CFLAGS="" | |
22570 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22571 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22572 | ## do set a variable so people can do so. |
22573 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22574 | |
2b5f62a0 VZ |
22575 | fi |
22576 | ||
e6cc62c6 VS |
22577 | |
22578 | ||
2b5f62a0 VZ |
22579 | else |
22580 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22581 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22582 | fi | |
22583 | fi | |
22584 | ||
22585 | if test $succeeded = yes; then | |
e6cc62c6 | 22586 | |
2b5f62a0 | 22587 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22588 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22589 | |
2b5f62a0 | 22590 | else |
e6cc62c6 VS |
22591 | |
22592 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22593 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22594 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22595 | |
22596 | ||
2b5f62a0 VZ |
22597 | fi |
22598 | ||
e6cc62c6 | 22599 | |
2b5f62a0 VZ |
22600 | succeeded=no |
22601 | ||
22602 | if test -z "$PKG_CONFIG"; then | |
22603 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22604 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22607 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22609 | else |
e6cc62c6 VS |
22610 | case $PKG_CONFIG in |
22611 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22612 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22613 | ;; | |
2b5f62a0 | 22614 | *) |
e6cc62c6 VS |
22615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22616 | for as_dir in $PATH | |
22617 | do | |
22618 | IFS=$as_save_IFS | |
22619 | test -z "$as_dir" && as_dir=. | |
22620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22622 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22624 | break 2 | |
22625 | fi | |
22626 | done | |
22627 | done | |
22628 | ||
2b5f62a0 VZ |
22629 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22630 | ;; | |
22631 | esac | |
22632 | fi | |
e6cc62c6 VS |
22633 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22634 | ||
2b5f62a0 | 22635 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22636 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22637 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22638 | else |
e6cc62c6 VS |
22639 | echo "$as_me:$LINENO: result: no" >&5 |
22640 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22641 | fi |
22642 | ||
22643 | fi | |
22644 | ||
22645 | if test "$PKG_CONFIG" = "no" ; then | |
22646 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22647 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22648 | echo "*** to the full path to pkg-config." | |
22649 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22650 | else | |
22651 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22652 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22653 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22654 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22655 | |
22656 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22657 | echo "$as_me:$LINENO: result: yes" >&5 |
22658 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22659 | succeeded=yes |
22660 | ||
e6cc62c6 VS |
22661 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22662 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22663 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22664 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22665 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22666 | |
e6cc62c6 VS |
22667 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22668 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22669 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22670 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22671 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22672 | else |
22673 | PANGOXFT_CFLAGS="" | |
22674 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22675 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22676 | ## do set a variable so people can do so. |
22677 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22678 | |
2b5f62a0 VZ |
22679 | fi |
22680 | ||
e6cc62c6 VS |
22681 | |
22682 | ||
2b5f62a0 VZ |
22683 | else |
22684 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22685 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22686 | fi | |
22687 | fi | |
22688 | ||
22689 | if test $succeeded = yes; then | |
e6cc62c6 | 22690 | |
2b5f62a0 | 22691 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22692 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22693 | |
2b5f62a0 | 22694 | else |
e6cc62c6 VS |
22695 | |
22696 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22697 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22698 | ||
22699 | ||
2b5f62a0 VZ |
22700 | fi |
22701 | ||
22702 | fi | |
22703 | ||
22704 | wxUSE_UNIVERSAL="yes" | |
22705 | ||
22706 | if test "$wxUSE_NANOX" = "yes"; then | |
22707 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22708 | 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 |
22709 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22710 | else | |
22711 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22712 | fi | |
22713 | ||
22714 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22715 | TOOLKIT=X11 | |
22716 | GUIDIST=X11_DIST | |
22717 | fi | |
22718 | ||
21d1c967 GD |
22719 | if test "$wxUSE_MOTIF" = 1; then |
22720 | if test "$no_x" = yes; then | |
22721 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22722 | |
22723 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22724 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22725 | _ACEOF |
21d1c967 GD |
22726 | |
22727 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22728 | else | |
22729 | if test -n "$x_includes"; then | |
22730 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22731 | fi |
22732 | ||
21d1c967 GD |
22733 | # It would also be nice to do this for all -L options, not just this one. |
22734 | if test -n "$x_libraries"; then | |
22735 | X_LIBS="$X_LIBS -L$x_libraries" | |
22736 | # For Solaris; some versions of Sun CC require a space after -R and | |
22737 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22738 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22739 | "SunOS 5"*) |
e6cc62c6 VS |
22740 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22741 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22742 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22743 | cat >conftest.$ac_ext <<_ACEOF | |
22744 | #line $LINENO "configure" | |
22745 | /* confdefs.h. */ | |
22746 | _ACEOF | |
22747 | cat confdefs.h >>conftest.$ac_ext | |
22748 | cat >>conftest.$ac_ext <<_ACEOF | |
22749 | /* end confdefs.h. */ | |
22750 | ||
22751 | int | |
22752 | main () | |
22753 | { | |
21d1c967 | 22754 | |
e6cc62c6 VS |
22755 | ; |
22756 | return 0; | |
22757 | } | |
22758 | _ACEOF | |
22759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22761 | (eval $ac_link) 2>&5 | |
22762 | ac_status=$? | |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22764 | (exit $ac_status); } && | |
22765 | { ac_try='test -s conftest$ac_exeext' | |
22766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22767 | (eval $ac_try) 2>&5 | |
22768 | ac_status=$? | |
22769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22770 | (exit $ac_status); }; }; then | |
21d1c967 | 22771 | ac_R_nospace=yes |
698dcdb6 | 22772 | else |
e6cc62c6 VS |
22773 | echo "$as_me: failed program was:" >&5 |
22774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22775 | ||
22776 | ac_R_nospace=no | |
10f2d63a | 22777 | fi |
e6cc62c6 | 22778 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22779 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22780 | echo "$as_me:$LINENO: result: no" >&5 |
22781 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22782 | X_LIBS="$X_LIBS -R$x_libraries" |
22783 | else | |
22784 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22785 | cat >conftest.$ac_ext <<_ACEOF |
22786 | #line $LINENO "configure" | |
22787 | /* confdefs.h. */ | |
22788 | _ACEOF | |
22789 | cat confdefs.h >>conftest.$ac_ext | |
22790 | cat >>conftest.$ac_ext <<_ACEOF | |
22791 | /* end confdefs.h. */ | |
22792 | ||
22793 | int | |
22794 | main () | |
22795 | { | |
f0c87536 | 22796 | |
e6cc62c6 VS |
22797 | ; |
22798 | return 0; | |
22799 | } | |
22800 | _ACEOF | |
22801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22803 | (eval $ac_link) 2>&5 | |
22804 | ac_status=$? | |
22805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22806 | (exit $ac_status); } && | |
22807 | { ac_try='test -s conftest$ac_exeext' | |
22808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22809 | (eval $ac_try) 2>&5 | |
22810 | ac_status=$? | |
22811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22812 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22813 | ac_R_space=yes |
22814 | else | |
e6cc62c6 VS |
22815 | echo "$as_me: failed program was:" >&5 |
22816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22817 | ||
22818 | ac_R_space=no | |
21d1c967 | 22819 | fi |
e6cc62c6 | 22820 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22821 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22822 | echo "$as_me:$LINENO: result: yes" >&5 |
22823 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22824 | X_LIBS="$X_LIBS -R $x_libraries" |
22825 | else | |
e6cc62c6 VS |
22826 | echo "$as_me:$LINENO: result: neither works" >&5 |
22827 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22828 | fi |
22829 | fi | |
e6cc62c6 | 22830 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22831 | esac |
22832 | fi | |
90dd450c | 22833 | |
21d1c967 GD |
22834 | # Check for system-dependent libraries X programs must link with. |
22835 | # Do this before checking for the system-independent R6 libraries | |
22836 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22837 | ||
22838 | if test "$ISC" = yes; then | |
22839 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22840 | else | |
e6cc62c6 VS |
22841 | # Martyn Johnson says this is needed for Ultrix, if the X |
22842 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22843 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22844 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22845 | cat >conftest.$ac_ext <<_ACEOF | |
22846 | #line $LINENO "configure" | |
22847 | /* confdefs.h. */ | |
22848 | _ACEOF | |
22849 | cat confdefs.h >>conftest.$ac_ext | |
22850 | cat >>conftest.$ac_ext <<_ACEOF | |
22851 | /* end confdefs.h. */ | |
22852 | ||
247f5006 | 22853 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22854 | #ifdef __cplusplus |
22855 | extern "C" | |
22856 | #endif | |
247f5006 | 22857 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22858 | builtin and then its argument prototype would still apply. */ |
22859 | char XOpenDisplay (); | |
22860 | int | |
22861 | main () | |
22862 | { | |
22863 | XOpenDisplay (); | |
22864 | ; | |
22865 | return 0; | |
22866 | } | |
22867 | _ACEOF | |
22868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22870 | (eval $ac_link) 2>&5 | |
22871 | ac_status=$? | |
22872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22873 | (exit $ac_status); } && | |
22874 | { ac_try='test -s conftest$ac_exeext' | |
22875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22876 | (eval $ac_try) 2>&5 | |
22877 | ac_status=$? | |
22878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22879 | (exit $ac_status); }; }; then | |
22880 | : | |
22881 | else | |
22882 | echo "$as_me: failed program was:" >&5 | |
22883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22884 | |
e6cc62c6 VS |
22885 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22886 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22887 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22889 | else |
e6cc62c6 VS |
22890 | ac_check_lib_save_LIBS=$LIBS |
22891 | LIBS="-ldnet $LIBS" | |
22892 | cat >conftest.$ac_ext <<_ACEOF | |
22893 | #line $LINENO "configure" | |
22894 | /* confdefs.h. */ | |
22895 | _ACEOF | |
22896 | cat confdefs.h >>conftest.$ac_ext | |
22897 | cat >>conftest.$ac_ext <<_ACEOF | |
22898 | /* end confdefs.h. */ | |
a0b9e27f | 22899 | |
e6cc62c6 VS |
22900 | /* Override any gcc2 internal prototype to avoid an error. */ |
22901 | #ifdef __cplusplus | |
22902 | extern "C" | |
22903 | #endif | |
22904 | /* We use char because int might match the return type of a gcc2 | |
22905 | builtin and then its argument prototype would still apply. */ | |
22906 | char dnet_ntoa (); | |
22907 | int | |
22908 | main () | |
22909 | { | |
22910 | dnet_ntoa (); | |
22911 | ; | |
22912 | return 0; | |
22913 | } | |
22914 | _ACEOF | |
22915 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22917 | (eval $ac_link) 2>&5 | |
22918 | ac_status=$? | |
22919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22920 | (exit $ac_status); } && | |
22921 | { ac_try='test -s conftest$ac_exeext' | |
22922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22923 | (eval $ac_try) 2>&5 | |
22924 | ac_status=$? | |
22925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22926 | (exit $ac_status); }; }; then | |
22927 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22928 | else | |
22929 | echo "$as_me: failed program was:" >&5 | |
22930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22931 | ||
22932 | ac_cv_lib_dnet_dnet_ntoa=no | |
22933 | fi | |
22934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22935 | LIBS=$ac_check_lib_save_LIBS | |
22936 | fi | |
22937 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22938 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22939 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 22940 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 22941 | fi |
0fb0dd83 | 22942 | |
21d1c967 | 22943 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22944 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22945 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22946 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22948 | else |
e6cc62c6 | 22949 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22950 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
22951 | cat >conftest.$ac_ext <<_ACEOF |
22952 | #line $LINENO "configure" | |
22953 | /* confdefs.h. */ | |
22954 | _ACEOF | |
22955 | cat confdefs.h >>conftest.$ac_ext | |
22956 | cat >>conftest.$ac_ext <<_ACEOF | |
22957 | /* end confdefs.h. */ | |
22958 | ||
21d1c967 | 22959 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22960 | #ifdef __cplusplus |
22961 | extern "C" | |
22962 | #endif | |
21d1c967 | 22963 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22964 | builtin and then its argument prototype would still apply. */ |
22965 | char dnet_ntoa (); | |
22966 | int | |
22967 | main () | |
22968 | { | |
22969 | dnet_ntoa (); | |
22970 | ; | |
22971 | return 0; | |
22972 | } | |
22973 | _ACEOF | |
22974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22976 | (eval $ac_link) 2>&5 | |
22977 | ac_status=$? | |
22978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22979 | (exit $ac_status); } && | |
22980 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
22986 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22987 | else | |
22988 | echo "$as_me: failed program was:" >&5 | |
22989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22990 | ||
22991 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22992 | fi | |
22993 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22994 | LIBS=$ac_check_lib_save_LIBS | |
22995 | fi | |
22996 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22997 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22998 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 22999 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23000 | fi |
23001 | ||
21d1c967 | 23002 | fi |
e6cc62c6 VS |
23003 | fi |
23004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23005 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 23006 | |
21d1c967 GD |
23007 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23008 | # to get the SysV transport functions. | |
e6cc62c6 | 23009 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23010 | # needs -lnsl. |
23011 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23012 | # on Irix 5.2, according to T.E. Dickey. |
23013 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23014 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23015 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23016 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23017 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23019 | else | |
23020 | cat >conftest.$ac_ext <<_ACEOF | |
23021 | #line $LINENO "configure" | |
23022 | /* confdefs.h. */ | |
23023 | _ACEOF | |
23024 | cat confdefs.h >>conftest.$ac_ext | |
23025 | cat >>conftest.$ac_ext <<_ACEOF | |
23026 | /* end confdefs.h. */ | |
21d1c967 | 23027 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23028 | which can conflict with char gethostbyname (); below. |
23029 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23030 | <limits.h> exists even on freestanding compilers. */ | |
23031 | #ifdef __STDC__ | |
23032 | # include <limits.h> | |
23033 | #else | |
23034 | # include <assert.h> | |
23035 | #endif | |
21d1c967 | 23036 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23037 | #ifdef __cplusplus |
23038 | extern "C" | |
23039 | { | |
23040 | #endif | |
21d1c967 | 23041 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23042 | builtin and then its argument prototype would still apply. */ |
23043 | char gethostbyname (); | |
21d1c967 GD |
23044 | /* The GNU C library defines this for functions which it implements |
23045 | to always fail with ENOSYS. Some functions are actually named | |
23046 | something starting with __ and the normal name is an alias. */ | |
23047 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23048 | choke me | |
23049 | #else | |
e6cc62c6 VS |
23050 | char (*f) () = gethostbyname; |
23051 | #endif | |
23052 | #ifdef __cplusplus | |
23053 | } | |
21d1c967 | 23054 | #endif |
90dd450c | 23055 | |
e6cc62c6 VS |
23056 | int |
23057 | main () | |
23058 | { | |
23059 | return f != gethostbyname; | |
23060 | ; | |
23061 | return 0; | |
23062 | } | |
23063 | _ACEOF | |
23064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23066 | (eval $ac_link) 2>&5 | |
23067 | ac_status=$? | |
23068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23069 | (exit $ac_status); } && | |
23070 | { ac_try='test -s conftest$ac_exeext' | |
23071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23072 | (eval $ac_try) 2>&5 | |
23073 | ac_status=$? | |
23074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23075 | (exit $ac_status); }; }; then | |
23076 | ac_cv_func_gethostbyname=yes | |
23077 | else | |
23078 | echo "$as_me: failed program was:" >&5 | |
23079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23080 | ||
23081 | ac_cv_func_gethostbyname=no | |
23082 | fi | |
23083 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23084 | fi | |
23085 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23086 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23087 | |
21d1c967 | 23088 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23089 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23090 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23091 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23093 | else |
e6cc62c6 | 23094 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23095 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
23096 | cat >conftest.$ac_ext <<_ACEOF |
23097 | #line $LINENO "configure" | |
23098 | /* confdefs.h. */ | |
23099 | _ACEOF | |
23100 | cat confdefs.h >>conftest.$ac_ext | |
23101 | cat >>conftest.$ac_ext <<_ACEOF | |
23102 | /* end confdefs.h. */ | |
23103 | ||
21d1c967 | 23104 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23105 | #ifdef __cplusplus |
23106 | extern "C" | |
23107 | #endif | |
21d1c967 | 23108 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23109 | builtin and then its argument prototype would still apply. */ |
23110 | char gethostbyname (); | |
23111 | int | |
23112 | main () | |
23113 | { | |
23114 | gethostbyname (); | |
23115 | ; | |
23116 | return 0; | |
23117 | } | |
23118 | _ACEOF | |
23119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23121 | (eval $ac_link) 2>&5 | |
23122 | ac_status=$? | |
23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23124 | (exit $ac_status); } && | |
23125 | { ac_try='test -s conftest$ac_exeext' | |
23126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23127 | (eval $ac_try) 2>&5 | |
23128 | ac_status=$? | |
23129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23130 | (exit $ac_status); }; }; then | |
23131 | ac_cv_lib_nsl_gethostbyname=yes | |
23132 | else | |
23133 | echo "$as_me: failed program was:" >&5 | |
23134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23135 | ||
23136 | ac_cv_lib_nsl_gethostbyname=no | |
23137 | fi | |
23138 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23139 | LIBS=$ac_check_lib_save_LIBS | |
23140 | fi | |
23141 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23142 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23143 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23144 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23145 | fi |
247f5006 | 23146 | |
e6cc62c6 VS |
23147 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
23148 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
23149 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
23150 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23152 | else |
e6cc62c6 VS |
23153 | ac_check_lib_save_LIBS=$LIBS |
23154 | LIBS="-lbsd $LIBS" | |
23155 | cat >conftest.$ac_ext <<_ACEOF | |
23156 | #line $LINENO "configure" | |
23157 | /* confdefs.h. */ | |
23158 | _ACEOF | |
23159 | cat confdefs.h >>conftest.$ac_ext | |
23160 | cat >>conftest.$ac_ext <<_ACEOF | |
23161 | /* end confdefs.h. */ | |
23162 | ||
23163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23164 | #ifdef __cplusplus | |
23165 | extern "C" | |
23166 | #endif | |
23167 | /* We use char because int might match the return type of a gcc2 | |
23168 | builtin and then its argument prototype would still apply. */ | |
23169 | char gethostbyname (); | |
23170 | int | |
23171 | main () | |
23172 | { | |
23173 | gethostbyname (); | |
23174 | ; | |
23175 | return 0; | |
23176 | } | |
23177 | _ACEOF | |
23178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23180 | (eval $ac_link) 2>&5 | |
23181 | ac_status=$? | |
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23183 | (exit $ac_status); } && | |
23184 | { ac_try='test -s conftest$ac_exeext' | |
23185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23186 | (eval $ac_try) 2>&5 | |
23187 | ac_status=$? | |
23188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23189 | (exit $ac_status); }; }; then | |
23190 | ac_cv_lib_bsd_gethostbyname=yes | |
23191 | else | |
23192 | echo "$as_me: failed program was:" >&5 | |
23193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23194 | ||
23195 | ac_cv_lib_bsd_gethostbyname=no | |
23196 | fi | |
23197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23198 | LIBS=$ac_check_lib_save_LIBS | |
23199 | fi | |
23200 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23201 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23202 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23203 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23204 | fi |
90dd450c | 23205 | |
e6cc62c6 | 23206 | fi |
90dd450c VZ |
23207 | fi |
23208 | ||
21d1c967 GD |
23209 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23210 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23211 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23212 | # on later versions), says Simon Leinen: it contains gethostby* |
23213 | # variants that don't use the name server (or something). -lsocket | |
23214 | # must be given before -lnsl if both are needed. We assume that | |
23215 | # if connect needs -lnsl, so does gethostbyname. | |
23216 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23217 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23218 | if test "${ac_cv_func_connect+set}" = set; then | |
23219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23220 | else | |
23221 | cat >conftest.$ac_ext <<_ACEOF | |
23222 | #line $LINENO "configure" | |
23223 | /* confdefs.h. */ | |
23224 | _ACEOF | |
23225 | cat confdefs.h >>conftest.$ac_ext | |
23226 | cat >>conftest.$ac_ext <<_ACEOF | |
23227 | /* end confdefs.h. */ | |
21d1c967 | 23228 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23229 | which can conflict with char connect (); below. |
23230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23231 | <limits.h> exists even on freestanding compilers. */ | |
23232 | #ifdef __STDC__ | |
23233 | # include <limits.h> | |
23234 | #else | |
23235 | # include <assert.h> | |
23236 | #endif | |
21d1c967 | 23237 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23238 | #ifdef __cplusplus |
23239 | extern "C" | |
23240 | { | |
23241 | #endif | |
21d1c967 | 23242 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23243 | builtin and then its argument prototype would still apply. */ |
23244 | char connect (); | |
21d1c967 GD |
23245 | /* The GNU C library defines this for functions which it implements |
23246 | to always fail with ENOSYS. Some functions are actually named | |
23247 | something starting with __ and the normal name is an alias. */ | |
23248 | #if defined (__stub_connect) || defined (__stub___connect) | |
23249 | choke me | |
23250 | #else | |
e6cc62c6 VS |
23251 | char (*f) () = connect; |
23252 | #endif | |
23253 | #ifdef __cplusplus | |
23254 | } | |
21d1c967 | 23255 | #endif |
90dd450c | 23256 | |
e6cc62c6 VS |
23257 | int |
23258 | main () | |
23259 | { | |
23260 | return f != connect; | |
23261 | ; | |
23262 | return 0; | |
23263 | } | |
23264 | _ACEOF | |
23265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23267 | (eval $ac_link) 2>&5 | |
23268 | ac_status=$? | |
23269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23270 | (exit $ac_status); } && | |
23271 | { ac_try='test -s conftest$ac_exeext' | |
23272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23273 | (eval $ac_try) 2>&5 | |
23274 | ac_status=$? | |
23275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23276 | (exit $ac_status); }; }; then | |
23277 | ac_cv_func_connect=yes | |
23278 | else | |
23279 | echo "$as_me: failed program was:" >&5 | |
23280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23281 | ||
23282 | ac_cv_func_connect=no | |
23283 | fi | |
23284 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23285 | fi | |
23286 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23287 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23288 | |
21d1c967 | 23289 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23290 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23291 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23292 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23294 | else |
e6cc62c6 | 23295 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23296 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23297 | cat >conftest.$ac_ext <<_ACEOF |
23298 | #line $LINENO "configure" | |
23299 | /* confdefs.h. */ | |
23300 | _ACEOF | |
23301 | cat confdefs.h >>conftest.$ac_ext | |
23302 | cat >>conftest.$ac_ext <<_ACEOF | |
23303 | /* end confdefs.h. */ | |
23304 | ||
21d1c967 | 23305 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23306 | #ifdef __cplusplus |
23307 | extern "C" | |
23308 | #endif | |
21d1c967 | 23309 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23310 | builtin and then its argument prototype would still apply. */ |
23311 | char connect (); | |
23312 | int | |
23313 | main () | |
23314 | { | |
23315 | connect (); | |
23316 | ; | |
23317 | return 0; | |
23318 | } | |
23319 | _ACEOF | |
23320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23322 | (eval $ac_link) 2>&5 | |
23323 | ac_status=$? | |
23324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23325 | (exit $ac_status); } && | |
23326 | { ac_try='test -s conftest$ac_exeext' | |
23327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23328 | (eval $ac_try) 2>&5 | |
23329 | ac_status=$? | |
23330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23331 | (exit $ac_status); }; }; then | |
23332 | ac_cv_lib_socket_connect=yes | |
23333 | else | |
23334 | echo "$as_me: failed program was:" >&5 | |
23335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23336 | ||
23337 | ac_cv_lib_socket_connect=no | |
23338 | fi | |
23339 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23340 | LIBS=$ac_check_lib_save_LIBS | |
23341 | fi | |
23342 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23343 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23344 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23345 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23346 | fi |
90dd450c | 23347 | |
21d1c967 | 23348 | fi |
90dd450c | 23349 | |
e6cc62c6 VS |
23350 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23351 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23352 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23353 | if test "${ac_cv_func_remove+set}" = set; then | |
23354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23355 | else | |
23356 | cat >conftest.$ac_ext <<_ACEOF | |
23357 | #line $LINENO "configure" | |
23358 | /* confdefs.h. */ | |
23359 | _ACEOF | |
23360 | cat confdefs.h >>conftest.$ac_ext | |
23361 | cat >>conftest.$ac_ext <<_ACEOF | |
23362 | /* end confdefs.h. */ | |
21d1c967 | 23363 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23364 | which can conflict with char remove (); below. |
23365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23366 | <limits.h> exists even on freestanding compilers. */ | |
23367 | #ifdef __STDC__ | |
23368 | # include <limits.h> | |
23369 | #else | |
23370 | # include <assert.h> | |
23371 | #endif | |
21d1c967 | 23372 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23373 | #ifdef __cplusplus |
23374 | extern "C" | |
23375 | { | |
23376 | #endif | |
21d1c967 | 23377 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23378 | builtin and then its argument prototype would still apply. */ |
23379 | char remove (); | |
21d1c967 GD |
23380 | /* The GNU C library defines this for functions which it implements |
23381 | to always fail with ENOSYS. Some functions are actually named | |
23382 | something starting with __ and the normal name is an alias. */ | |
23383 | #if defined (__stub_remove) || defined (__stub___remove) | |
23384 | choke me | |
23385 | #else | |
e6cc62c6 VS |
23386 | char (*f) () = remove; |
23387 | #endif | |
23388 | #ifdef __cplusplus | |
23389 | } | |
21d1c967 | 23390 | #endif |
90dd450c | 23391 | |
e6cc62c6 VS |
23392 | int |
23393 | main () | |
23394 | { | |
23395 | return f != remove; | |
23396 | ; | |
23397 | return 0; | |
23398 | } | |
23399 | _ACEOF | |
23400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23402 | (eval $ac_link) 2>&5 | |
23403 | ac_status=$? | |
23404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23405 | (exit $ac_status); } && | |
23406 | { ac_try='test -s conftest$ac_exeext' | |
23407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23408 | (eval $ac_try) 2>&5 | |
23409 | ac_status=$? | |
23410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23411 | (exit $ac_status); }; }; then | |
23412 | ac_cv_func_remove=yes | |
23413 | else | |
23414 | echo "$as_me: failed program was:" >&5 | |
23415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23416 | ||
23417 | ac_cv_func_remove=no | |
23418 | fi | |
23419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23420 | fi | |
23421 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23422 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23423 | |
21d1c967 | 23424 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23425 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23426 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23427 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23429 | else |
e6cc62c6 | 23430 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23431 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23432 | cat >conftest.$ac_ext <<_ACEOF |
23433 | #line $LINENO "configure" | |
23434 | /* confdefs.h. */ | |
23435 | _ACEOF | |
23436 | cat confdefs.h >>conftest.$ac_ext | |
23437 | cat >>conftest.$ac_ext <<_ACEOF | |
23438 | /* end confdefs.h. */ | |
23439 | ||
21d1c967 | 23440 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23441 | #ifdef __cplusplus |
23442 | extern "C" | |
23443 | #endif | |
21d1c967 | 23444 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23445 | builtin and then its argument prototype would still apply. */ |
23446 | char remove (); | |
23447 | int | |
23448 | main () | |
23449 | { | |
23450 | remove (); | |
23451 | ; | |
23452 | return 0; | |
23453 | } | |
23454 | _ACEOF | |
23455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23457 | (eval $ac_link) 2>&5 | |
23458 | ac_status=$? | |
23459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23460 | (exit $ac_status); } && | |
23461 | { ac_try='test -s conftest$ac_exeext' | |
23462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23463 | (eval $ac_try) 2>&5 | |
23464 | ac_status=$? | |
23465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23466 | (exit $ac_status); }; }; then | |
23467 | ac_cv_lib_posix_remove=yes | |
23468 | else | |
23469 | echo "$as_me: failed program was:" >&5 | |
23470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23471 | ||
23472 | ac_cv_lib_posix_remove=no | |
23473 | fi | |
23474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23475 | LIBS=$ac_check_lib_save_LIBS | |
23476 | fi | |
23477 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23478 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23479 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23480 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23481 | fi |
19bc6aad | 23482 | |
90dd450c | 23483 | fi |
19bc6aad | 23484 | |
21d1c967 | 23485 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23486 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23487 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23488 | if test "${ac_cv_func_shmat+set}" = set; then | |
23489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23490 | else | |
23491 | cat >conftest.$ac_ext <<_ACEOF | |
23492 | #line $LINENO "configure" | |
23493 | /* confdefs.h. */ | |
23494 | _ACEOF | |
23495 | cat confdefs.h >>conftest.$ac_ext | |
23496 | cat >>conftest.$ac_ext <<_ACEOF | |
23497 | /* end confdefs.h. */ | |
21d1c967 | 23498 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23499 | which can conflict with char shmat (); below. |
23500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23501 | <limits.h> exists even on freestanding compilers. */ | |
23502 | #ifdef __STDC__ | |
23503 | # include <limits.h> | |
23504 | #else | |
23505 | # include <assert.h> | |
23506 | #endif | |
21d1c967 | 23507 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23508 | #ifdef __cplusplus |
23509 | extern "C" | |
23510 | { | |
23511 | #endif | |
21d1c967 | 23512 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23513 | builtin and then its argument prototype would still apply. */ |
23514 | char shmat (); | |
21d1c967 GD |
23515 | /* The GNU C library defines this for functions which it implements |
23516 | to always fail with ENOSYS. Some functions are actually named | |
23517 | something starting with __ and the normal name is an alias. */ | |
23518 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23519 | choke me | |
23520 | #else | |
e6cc62c6 VS |
23521 | char (*f) () = shmat; |
23522 | #endif | |
23523 | #ifdef __cplusplus | |
23524 | } | |
21d1c967 | 23525 | #endif |
90dd450c | 23526 | |
e6cc62c6 VS |
23527 | int |
23528 | main () | |
23529 | { | |
23530 | return f != shmat; | |
23531 | ; | |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23537 | (eval $ac_link) 2>&5 | |
23538 | ac_status=$? | |
23539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23540 | (exit $ac_status); } && | |
23541 | { ac_try='test -s conftest$ac_exeext' | |
23542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23543 | (eval $ac_try) 2>&5 | |
23544 | ac_status=$? | |
23545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23546 | (exit $ac_status); }; }; then | |
23547 | ac_cv_func_shmat=yes | |
23548 | else | |
23549 | echo "$as_me: failed program was:" >&5 | |
23550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23551 | ||
23552 | ac_cv_func_shmat=no | |
23553 | fi | |
23554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23555 | fi | |
23556 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23557 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23558 | |
21d1c967 | 23559 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23560 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23561 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23562 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23564 | else |
e6cc62c6 | 23565 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23566 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23567 | cat >conftest.$ac_ext <<_ACEOF |
23568 | #line $LINENO "configure" | |
23569 | /* confdefs.h. */ | |
23570 | _ACEOF | |
23571 | cat confdefs.h >>conftest.$ac_ext | |
23572 | cat >>conftest.$ac_ext <<_ACEOF | |
23573 | /* end confdefs.h. */ | |
23574 | ||
5c6fa7d2 | 23575 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23576 | #ifdef __cplusplus |
23577 | extern "C" | |
23578 | #endif | |
5c6fa7d2 | 23579 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23580 | builtin and then its argument prototype would still apply. */ |
23581 | char shmat (); | |
23582 | int | |
23583 | main () | |
23584 | { | |
23585 | shmat (); | |
23586 | ; | |
23587 | return 0; | |
23588 | } | |
23589 | _ACEOF | |
23590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23592 | (eval $ac_link) 2>&5 | |
23593 | ac_status=$? | |
23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23595 | (exit $ac_status); } && | |
23596 | { ac_try='test -s conftest$ac_exeext' | |
23597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23598 | (eval $ac_try) 2>&5 | |
23599 | ac_status=$? | |
23600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23601 | (exit $ac_status); }; }; then | |
23602 | ac_cv_lib_ipc_shmat=yes | |
23603 | else | |
23604 | echo "$as_me: failed program was:" >&5 | |
23605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23606 | ||
23607 | ac_cv_lib_ipc_shmat=no | |
23608 | fi | |
23609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23610 | LIBS=$ac_check_lib_save_LIBS | |
23611 | fi | |
23612 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23613 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23614 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23615 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23616 | fi |
90dd450c | 23617 | |
90dd450c | 23618 | fi |
21d1c967 | 23619 | fi |
10f2d63a | 23620 | |
21d1c967 | 23621 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23622 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23623 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23624 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23625 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23626 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23627 | # These have to be linked with before -lX11, unlike the other | |
23628 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23629 | # John Interrante, Karl Berry |
23630 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23631 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23632 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23634 | else | |
23635 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23636 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23637 | cat >conftest.$ac_ext <<_ACEOF |
23638 | #line $LINENO "configure" | |
23639 | /* confdefs.h. */ | |
23640 | _ACEOF | |
23641 | cat confdefs.h >>conftest.$ac_ext | |
23642 | cat >>conftest.$ac_ext <<_ACEOF | |
23643 | /* end confdefs.h. */ | |
23644 | ||
21d1c967 | 23645 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23646 | #ifdef __cplusplus |
23647 | extern "C" | |
23648 | #endif | |
21d1c967 | 23649 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23650 | builtin and then its argument prototype would still apply. */ |
23651 | char IceConnectionNumber (); | |
23652 | int | |
23653 | main () | |
23654 | { | |
23655 | IceConnectionNumber (); | |
23656 | ; | |
23657 | return 0; | |
23658 | } | |
23659 | _ACEOF | |
23660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23662 | (eval $ac_link) 2>&5 | |
23663 | ac_status=$? | |
23664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23665 | (exit $ac_status); } && | |
23666 | { ac_try='test -s conftest$ac_exeext' | |
23667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23668 | (eval $ac_try) 2>&5 | |
23669 | ac_status=$? | |
23670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23671 | (exit $ac_status); }; }; then | |
23672 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23673 | else | |
23674 | echo "$as_me: failed program was:" >&5 | |
23675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23676 | ||
23677 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23678 | fi | |
23679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23680 | LIBS=$ac_check_lib_save_LIBS | |
23681 | fi | |
23682 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23683 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23684 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23685 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23686 | fi |
21d1c967 | 23687 | |
e6cc62c6 | 23688 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23689 | |
10f2d63a VZ |
23690 | fi |
23691 | ||
8284b0c5 | 23692 | |
21d1c967 | 23693 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23694 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23695 | echo "$as_me: error: X11 not found" >&2;} | |
23696 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23697 | fi |
23698 | ||
2b5f62a0 VZ |
23699 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23700 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23701 | AFMINSTALL=afminstall |
23702 | COMPILED_X_PROGRAM=0 | |
23703 | ||
e6cc62c6 VS |
23704 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23705 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23706 | ||
21d1c967 | 23707 | ac_find_includes= |
2b5f62a0 | 23708 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23709 | do |
23710 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23711 | ac_find_includes=$ac_dir | |
23712 | break | |
23713 | fi | |
23714 | done | |
23715 | ||
23716 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23717 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23718 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23719 | ||
2b5f62a0 | 23720 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23721 | ac_path_to_include="" |
23722 | else | |
2b5f62a0 VZ |
23723 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23724 | result=$? | |
23725 | if test $result = 0; then | |
23726 | ac_path_to_include="" | |
23727 | else | |
23728 | ac_path_to_include=" -I$ac_find_includes" | |
23729 | fi | |
dd0e4a90 VZ |
23730 | fi |
23731 | ||
23732 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23733 | else |
e6cc62c6 VS |
23734 | cat >conftest.$ac_ext <<_ACEOF |
23735 | #line $LINENO "configure" | |
23736 | /* confdefs.h. */ | |
23737 | _ACEOF | |
23738 | cat confdefs.h >>conftest.$ac_ext | |
23739 | cat >>conftest.$ac_ext <<_ACEOF | |
23740 | /* end confdefs.h. */ | |
21d1c967 GD |
23741 | |
23742 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23743 | |
23744 | int | |
23745 | main () | |
23746 | { | |
21d1c967 GD |
23747 | |
23748 | int version; | |
23749 | version = xmUseVersion; | |
e6cc62c6 VS |
23750 | |
23751 | ; | |
23752 | return 0; | |
23753 | } | |
23754 | _ACEOF | |
23755 | rm -f conftest.$ac_objext | |
23756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23757 | (eval $ac_compile) 2>&5 | |
23758 | ac_status=$? | |
23759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23760 | (exit $ac_status); } && | |
23761 | { ac_try='test -s conftest.$ac_objext' | |
23762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23763 | (eval $ac_try) 2>&5 | |
23764 | ac_status=$? | |
23765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23766 | (exit $ac_status); }; }; then | |
23767 | ||
23768 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23769 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23770 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23771 | |
10f2d63a | 23772 | else |
e6cc62c6 VS |
23773 | echo "$as_me: failed program was:" >&5 |
23774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23775 | ||
23776 | ||
23777 | echo "$as_me:$LINENO: result: no" >&5 | |
23778 | echo "${ECHO_T}no" >&6 | |
23779 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23780 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23781 | { (exit 1); exit 1; }; } | |
23782 | ||
23783 | ||
10f2d63a | 23784 | fi |
e6cc62c6 | 23785 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23786 | fi |
10f2d63a | 23787 | |
21d1c967 | 23788 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23789 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23790 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23791 | ||
21d1c967 | 23792 | ac_find_libraries= |
2b5f62a0 | 23793 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23794 | do |
23795 | for ac_extension in a so sl dylib; do | |
23796 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23797 | ac_find_libraries=$ac_dir | |
23798 | break 2 | |
23799 | fi | |
23800 | done | |
23801 | done | |
23802 | ||
23803 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23804 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23805 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23806 | ||
21d1c967 | 23807 | |
21d1c967 GD |
23808 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23809 | result=$? | |
23810 | if test $result = 0; then | |
23811 | ac_path_to_link="" | |
23812 | else | |
23813 | ac_path_to_link=" -L$ac_find_libraries" | |
23814 | fi | |
23815 | ||
21d1c967 | 23816 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23817 | else |
dd0e4a90 VZ |
23818 | save_CFLAGS=$CFLAGS |
23819 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23820 | ||
e6cc62c6 VS |
23821 | cat >conftest.$ac_ext <<_ACEOF |
23822 | #line $LINENO "configure" | |
23823 | /* confdefs.h. */ | |
23824 | _ACEOF | |
23825 | cat confdefs.h >>conftest.$ac_ext | |
23826 | cat >>conftest.$ac_ext <<_ACEOF | |
23827 | /* end confdefs.h. */ | |
21d1c967 GD |
23828 | |
23829 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23830 | |
23831 | int | |
23832 | main () | |
23833 | { | |
21d1c967 GD |
23834 | |
23835 | int version; | |
23836 | version = xmUseVersion; | |
e6cc62c6 VS |
23837 | |
23838 | ; | |
23839 | return 0; | |
23840 | } | |
23841 | _ACEOF | |
23842 | rm -f conftest.$ac_objext | |
23843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23844 | (eval $ac_compile) 2>&5 | |
23845 | ac_status=$? | |
23846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23847 | (exit $ac_status); } && | |
23848 | { ac_try='test -s conftest.$ac_objext' | |
23849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23850 | (eval $ac_try) 2>&5 | |
23851 | ac_status=$? | |
23852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23853 | (exit $ac_status); }; }; then | |
23854 | ||
23855 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23856 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23857 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23858 | |
d836ee96 | 23859 | else |
e6cc62c6 VS |
23860 | echo "$as_me: failed program was:" >&5 |
23861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23862 | ||
23863 | ||
23864 | echo "$as_me:$LINENO: result: no" >&5 | |
23865 | echo "${ECHO_T}no" >&6 | |
23866 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23867 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23868 | { (exit 1); exit 1; }; } | |
23869 | ||
23870 | ||
d836ee96 | 23871 | fi |
e6cc62c6 | 23872 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23873 | |
23874 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23875 | fi |
23876 | fi | |
23877 | ||
23878 | xpm_link= | |
e6cc62c6 VS |
23879 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
23880 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23881 | ||
21d1c967 | 23882 | ac_find_libraries= |
2b5f62a0 | 23883 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23884 | do |
23885 | for ac_extension in a so sl dylib; do | |
23886 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23887 | ac_find_libraries=$ac_dir | |
23888 | break 2 | |
23889 | fi | |
23890 | done | |
23891 | done | |
23892 | ||
23893 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 23894 | |
21d1c967 GD |
23895 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23896 | result=$? | |
23897 | if test $result = 0; then | |
23898 | ac_path_to_link="" | |
23899 | else | |
23900 | ac_path_to_link=" -L$ac_find_libraries" | |
23901 | fi | |
23902 | ||
23903 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 23904 | |
21d1c967 | 23905 | xpm_link=" -lXpm" |
e6cc62c6 | 23906 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23907 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23908 | _ACEOF |
90dd450c | 23909 | |
e6cc62c6 VS |
23910 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23911 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 23912 | else |
dd0e4a90 VZ |
23913 | save_CFLAGS=$CFLAGS |
23914 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23915 | ||
e6cc62c6 VS |
23916 | cat >conftest.$ac_ext <<_ACEOF |
23917 | #line $LINENO "configure" | |
23918 | /* confdefs.h. */ | |
23919 | _ACEOF | |
23920 | cat confdefs.h >>conftest.$ac_ext | |
23921 | cat >>conftest.$ac_ext <<_ACEOF | |
23922 | /* end confdefs.h. */ | |
21d1c967 GD |
23923 | |
23924 | #include <X11/xpm.h> | |
e6cc62c6 VS |
23925 | |
23926 | int | |
23927 | main () | |
23928 | { | |
21d1c967 GD |
23929 | |
23930 | int version; | |
23931 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
23932 | |
23933 | ; | |
23934 | return 0; | |
23935 | } | |
23936 | _ACEOF | |
23937 | rm -f conftest.$ac_objext | |
23938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23939 | (eval $ac_compile) 2>&5 | |
23940 | ac_status=$? | |
23941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23942 | (exit $ac_status); } && | |
23943 | { ac_try='test -s conftest.$ac_objext' | |
23944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23945 | (eval $ac_try) 2>&5 | |
23946 | ac_status=$? | |
23947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23948 | (exit $ac_status); }; }; then | |
23949 | ||
21d1c967 | 23950 | xpm_link=" -lXpm" |
e6cc62c6 | 23951 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23952 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23953 | _ACEOF |
21d1c967 | 23954 | |
e6cc62c6 VS |
23955 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
23956 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23957 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 23958 | |
d836ee96 | 23959 | else |
e6cc62c6 VS |
23960 | echo "$as_me: failed program was:" >&5 |
23961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23962 | ||
23963 | ||
23964 | echo "$as_me:$LINENO: result: no" >&5 | |
23965 | echo "${ECHO_T}no" >&6 | |
23966 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23967 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23968 | ||
23969 | ||
d836ee96 | 23970 | fi |
e6cc62c6 | 23971 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23972 | |
23973 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23974 | fi |
23975 | ||
e6cc62c6 VS |
23976 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
23977 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
23978 | libp_link="" |
23979 | libsm_ice_link="" | |
23980 | libs_found=0 | |
23981 | for libp in "" " -lXp"; do | |
23982 | if test "$libs_found" = "0"; then | |
23983 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 23984 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
23985 | save_LIBS="$LIBS" |
23986 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
23987 | save_CFLAGS=$CFLAGS |
23988 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23989 | ||
e6cc62c6 VS |
23990 | cat >conftest.$ac_ext <<_ACEOF |
23991 | #line $LINENO "configure" | |
23992 | /* confdefs.h. */ | |
23993 | _ACEOF | |
23994 | cat confdefs.h >>conftest.$ac_ext | |
23995 | cat >>conftest.$ac_ext <<_ACEOF | |
23996 | /* end confdefs.h. */ | |
17234b26 | 23997 | |
6a30f1c8 MB |
23998 | #include <Xm/Xm.h> |
23999 | #include <Xm/List.h> | |
e6cc62c6 VS |
24000 | |
24001 | int | |
24002 | main () | |
24003 | { | |
6a30f1c8 MB |
24004 | |
24005 | XmString string = NULL; | |
24006 | Widget w = NULL; | |
24007 | int position = 0; | |
24008 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24009 | |
24010 | ; | |
24011 | return 0; | |
24012 | } | |
24013 | _ACEOF | |
24014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24016 | (eval $ac_link) 2>&5 | |
24017 | ac_status=$? | |
24018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24019 | (exit $ac_status); } && | |
24020 | { ac_try='test -s conftest$ac_exeext' | |
24021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24022 | (eval $ac_try) 2>&5 | |
24023 | ac_status=$? | |
24024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24025 | (exit $ac_status); }; }; then | |
24026 | ||
6a30f1c8 MB |
24027 | libp_link="$libp" |
24028 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24029 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24030 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24031 | libs_found=1 |
e6cc62c6 | 24032 | |
6a30f1c8 | 24033 | else |
e6cc62c6 VS |
24034 | echo "$as_me: failed program was:" >&5 |
24035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24036 | ||
24037 | ||
24038 | ||
6a30f1c8 | 24039 | fi |
e6cc62c6 | 24040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24041 | |
6a30f1c8 | 24042 | LIBS="$save_LIBS" |
dd0e4a90 | 24043 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24044 | fi |
24045 | done | |
24046 | fi | |
24047 | done | |
24048 | ||
24049 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24050 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24051 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24052 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24053 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24054 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24055 | fi |
24056 | ||
da494b40 MB |
24057 | save_CFLAGS=$CFLAGS |
24058 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24059 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24060 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24061 | cat >conftest.$ac_ext <<_ACEOF | |
24062 | #line $LINENO "configure" | |
24063 | /* confdefs.h. */ | |
24064 | _ACEOF | |
24065 | cat confdefs.h >>conftest.$ac_ext | |
24066 | cat >>conftest.$ac_ext <<_ACEOF | |
24067 | /* end confdefs.h. */ | |
da494b40 MB |
24068 | |
24069 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24070 | |
24071 | int | |
24072 | main () | |
24073 | { | |
da494b40 MB |
24074 | |
24075 | #if XmVersion < 2000 | |
24076 | #error "Not Motif 2" | |
24077 | #endif | |
e6cc62c6 VS |
24078 | |
24079 | ; | |
24080 | return 0; | |
24081 | } | |
24082 | _ACEOF | |
24083 | rm -f conftest.$ac_objext | |
24084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24085 | (eval $ac_compile) 2>&5 | |
24086 | ac_status=$? | |
24087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24088 | (exit $ac_status); } && | |
24089 | { ac_try='test -s conftest.$ac_objext' | |
24090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24091 | (eval $ac_try) 2>&5 | |
24092 | ac_status=$? | |
24093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24094 | (exit $ac_status); }; }; then | |
24095 | ||
24096 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24097 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24098 | _ACEOF |
24099 | ||
24100 | echo "$as_me:$LINENO: result: found" >&5 | |
24101 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24102 | |
da494b40 | 24103 | else |
e6cc62c6 VS |
24104 | echo "$as_me: failed program was:" >&5 |
24105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24106 | ||
24107 | ||
24108 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24109 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24110 | _ACEOF |
24111 | ||
24112 | echo "$as_me:$LINENO: result: not found" >&5 | |
24113 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24114 | |
da494b40 | 24115 | fi |
e6cc62c6 | 24116 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24117 | CFLAGS=$save_CFLAGS |
24118 | ||
6a30f1c8 | 24119 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24120 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24121 | TOOLKIT=MOTIF |
24122 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24123 | wxHAVE_XEXT_LIB=1 |
24124 | fi | |
24125 | ||
24126 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
24127 | test "$wxHAVE_XEXT_LIB" = 1; then | |
24128 | save_CFLAGS="$CFLAGS" | |
24129 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24130 | ||
e6cc62c6 VS |
24131 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
24132 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
24133 | cat >conftest.$ac_ext <<_ACEOF | |
24134 | #line $LINENO "configure" | |
24135 | /* confdefs.h. */ | |
24136 | _ACEOF | |
24137 | cat confdefs.h >>conftest.$ac_ext | |
24138 | cat >>conftest.$ac_ext <<_ACEOF | |
24139 | /* end confdefs.h. */ | |
24140 | ||
24141 | #include <X11/Xlib.h> | |
f7f78039 | 24142 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
24143 | |
24144 | int | |
24145 | main () | |
24146 | { | |
f7f78039 MB |
24147 | |
24148 | int dummy1, dummy2; | |
24149 | XShapeQueryExtension((Display*)NULL, | |
24150 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24151 | |
24152 | ; | |
24153 | return 0; | |
24154 | } | |
24155 | _ACEOF | |
24156 | rm -f conftest.$ac_objext | |
24157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24158 | (eval $ac_compile) 2>&5 | |
24159 | ac_status=$? | |
24160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24161 | (exit $ac_status); } && | |
24162 | { ac_try='test -s conftest.$ac_objext' | |
24163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24164 | (eval $ac_try) 2>&5 | |
24165 | ac_status=$? | |
24166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24167 | (exit $ac_status); }; }; then | |
24168 | ||
24169 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 24170 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24171 | _ACEOF |
24172 | ||
24173 | echo "$as_me:$LINENO: result: found" >&5 | |
24174 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 24175 | |
f7f78039 | 24176 | else |
e6cc62c6 VS |
24177 | echo "$as_me: failed program was:" >&5 |
24178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24179 | ||
24180 | ||
24181 | echo "$as_me:$LINENO: result: not found" >&5 | |
24182 | echo "${ECHO_T}not found" >&6 | |
24183 | ||
f7f78039 | 24184 | fi |
e6cc62c6 | 24185 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24186 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24187 | fi |
24188 | ||
24189 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24190 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24191 | |
0c98a14e | 24192 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24193 | TOOLKIT=MAC |
24194 | GUIDIST=MACX_DIST | |
cf615ebb | 24195 | WXBASEPORT="_carbon" |
21d1c967 GD |
24196 | fi |
24197 | ||
ac0c4cc3 DE |
24198 | if test "$wxUSE_COCOA" = 1; then |
24199 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24200 | TOOLKIT=COCOA | |
24201 | GUIDIST=COCOA_DIST | |
24202 | fi | |
24203 | ||
21d1c967 GD |
24204 | if test "$wxUSE_PM" = 1; then |
24205 | TOOLKIT=PM | |
24206 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
24207 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
24208 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 24209 | wxUSE_THREADS="no" |
21d1c967 GD |
24210 | fi |
24211 | ||
24212 | if test "$TOOLKIT" = "PM" ; then | |
24213 | TOOLKIT_DIR="os2" | |
24214 | else | |
24215 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24216 | fi | |
24217 | ||
24218 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24219 | ||
24220 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24221 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24222 | ||
24223 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24224 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24225 | ||
24226 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24227 | if test "$wxUSE_X11" = 1; then | |
24228 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24229 | else | |
24230 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24231 | fi | |
24232 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24233 | WIDGET_SET=univ | |
24234 | else | |
24235 | ALL_OBJECTS="\$(GUIOBJS)" | |
24236 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24237 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24238 | fi | |
24239 | ||
24240 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24241 | ||
24242 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24243 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24244 | fi | |
24245 | ||
24246 | if test "$wxUSE_HTML" = "yes"; then | |
24247 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24248 | fi | |
24249 | ||
24250 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24251 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24252 | fi | |
24253 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24254 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24255 | fi | |
24256 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24257 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24258 | fi | |
24259 | ||
24260 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24261 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24262 | else |
21d1c967 GD |
24263 | USE_GUI=0 |
24264 | ||
24265 | TOOLKIT_DIR="base" | |
24266 | ||
24267 | if test "$USE_WIN32" = 1 ; then | |
24268 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24269 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24270 | ||
24271 | TOOLKIT="MSW" | |
24272 | else | |
24273 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24274 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24275 | fi | |
24276 | ||
24277 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24278 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24279 | ||
24280 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24281 | ||
24282 | GUIDIST="BASE_DIST" | |
24283 | DISTDIR="wxBase" | |
d836ee96 VZ |
24284 | fi |
24285 | ||
8284b0c5 | 24286 | |
8647bec6 RG |
24287 | |
24288 | ||
24289 | IODBC_C_SRC="" | |
24290 | ||
24291 | ||
24292 | if test "$TOOLKIT" != "MSW" ; then | |
24293 | ||
bb41dcbe | 24294 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24295 | |
bb41dcbe | 24296 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24297 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24298 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24299 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24301 | fi | |
24302 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24303 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24304 | else | |
24305 | # Is the header compilable? | |
24306 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24307 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24308 | cat >conftest.$ac_ext <<_ACEOF | |
24309 | #line $LINENO "configure" | |
24310 | /* confdefs.h. */ | |
24311 | _ACEOF | |
24312 | cat confdefs.h >>conftest.$ac_ext | |
24313 | cat >>conftest.$ac_ext <<_ACEOF | |
24314 | /* end confdefs.h. */ | |
24315 | $ac_includes_default | |
8647bec6 | 24316 | #include <sql.h> |
e6cc62c6 VS |
24317 | _ACEOF |
24318 | rm -f conftest.$ac_objext | |
24319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24320 | (eval $ac_compile) 2>&5 | |
24321 | ac_status=$? | |
24322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24323 | (exit $ac_status); } && | |
24324 | { ac_try='test -s conftest.$ac_objext' | |
24325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24326 | (eval $ac_try) 2>&5 | |
24327 | ac_status=$? | |
24328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24329 | (exit $ac_status); }; }; then | |
24330 | ac_header_compiler=yes | |
24331 | else | |
24332 | echo "$as_me: failed program was:" >&5 | |
24333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24334 | ||
24335 | ac_header_compiler=no | |
24336 | fi | |
24337 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24338 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24339 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24340 | ||
24341 | # Is the header present? | |
24342 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24343 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24344 | cat >conftest.$ac_ext <<_ACEOF | |
24345 | #line $LINENO "configure" | |
24346 | /* confdefs.h. */ | |
24347 | _ACEOF | |
24348 | cat confdefs.h >>conftest.$ac_ext | |
24349 | cat >>conftest.$ac_ext <<_ACEOF | |
24350 | /* end confdefs.h. */ | |
24351 | #include <sql.h> | |
24352 | _ACEOF | |
24353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24355 | ac_status=$? | |
24356 | grep -v '^ *+' conftest.er1 >conftest.err | |
24357 | rm -f conftest.er1 | |
24358 | cat conftest.err >&5 | |
24359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24360 | (exit $ac_status); } >/dev/null; then | |
24361 | if test -s conftest.err; then | |
24362 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24363 | else | |
24364 | ac_cpp_err= | |
24365 | fi | |
24366 | else | |
24367 | ac_cpp_err=yes | |
24368 | fi | |
24369 | if test -z "$ac_cpp_err"; then | |
24370 | ac_header_preproc=yes | |
24371 | else | |
24372 | echo "$as_me: failed program was:" >&5 | |
24373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24374 | ||
24375 | ac_header_preproc=no | |
24376 | fi | |
24377 | rm -f conftest.err conftest.$ac_ext | |
24378 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24379 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24380 | ||
24381 | # So? What about this header? | |
24382 | case $ac_header_compiler:$ac_header_preproc in | |
24383 | yes:no ) | |
24384 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24385 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24386 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24387 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24388 | ( | |
24389 | cat <<\_ASBOX | |
24390 | ## ------------------------------------ ## | |
24391 | ## Report this to bug-autoconf@gnu.org. ## | |
24392 | ## ------------------------------------ ## | |
24393 | _ASBOX | |
24394 | ) | | |
24395 | sed "s/^/$as_me: WARNING: /" >&2 | |
24396 | ;; | |
24397 | no:yes ) | |
24398 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24399 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24400 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24401 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24402 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24403 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24404 | ( | |
24405 | cat <<\_ASBOX | |
24406 | ## ------------------------------------ ## | |
24407 | ## Report this to bug-autoconf@gnu.org. ## | |
24408 | ## ------------------------------------ ## | |
24409 | _ASBOX | |
24410 | ) | | |
24411 | sed "s/^/$as_me: WARNING: /" >&2 | |
24412 | ;; | |
24413 | esac | |
24414 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24415 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24416 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24418 | else |
e6cc62c6 VS |
24419 | ac_cv_header_sql_h=$ac_header_preproc |
24420 | fi | |
24421 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24422 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24423 | ||
bb41dcbe VS |
24424 | fi |
24425 | if test $ac_cv_header_sql_h = yes; then | |
24426 | found_sql_h=1 | |
8647bec6 RG |
24427 | fi |
24428 | ||
e6cc62c6 | 24429 | |
bb41dcbe VS |
24430 | if test "x$found_sql_h" = "x1" ; then |
24431 | echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5 | |
24432 | echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24433 | if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then | |
e6cc62c6 | 24434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24435 | else |
bb41dcbe VS |
24436 | ac_check_lib_save_LIBS=$LIBS |
24437 | LIBS="-lSQLAllocEnv $LIBS" | |
e6cc62c6 VS |
24438 | cat >conftest.$ac_ext <<_ACEOF |
24439 | #line $LINENO "configure" | |
24440 | /* confdefs.h. */ | |
24441 | _ACEOF | |
24442 | cat confdefs.h >>conftest.$ac_ext | |
24443 | cat >>conftest.$ac_ext <<_ACEOF | |
24444 | /* end confdefs.h. */ | |
24445 | ||
8647bec6 | 24446 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24447 | #ifdef __cplusplus |
24448 | extern "C" | |
24449 | #endif | |
8647bec6 | 24450 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24451 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24452 | char iodbc (); |
e6cc62c6 VS |
24453 | int |
24454 | main () | |
24455 | { | |
bb41dcbe | 24456 | iodbc (); |
e6cc62c6 VS |
24457 | ; |
24458 | return 0; | |
24459 | } | |
24460 | _ACEOF | |
24461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24463 | (eval $ac_link) 2>&5 | |
24464 | ac_status=$? | |
24465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24466 | (exit $ac_status); } && | |
24467 | { ac_try='test -s conftest$ac_exeext' | |
24468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24469 | (eval $ac_try) 2>&5 | |
24470 | ac_status=$? | |
24471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24472 | (exit $ac_status); }; }; then | |
bb41dcbe | 24473 | ac_cv_lib_SQLAllocEnv_iodbc=yes |
8647bec6 | 24474 | else |
e6cc62c6 VS |
24475 | echo "$as_me: failed program was:" >&5 |
24476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24477 | ||
bb41dcbe | 24478 | ac_cv_lib_SQLAllocEnv_iodbc=no |
8647bec6 | 24479 | fi |
e6cc62c6 | 24480 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24481 | LIBS=$ac_check_lib_save_LIBS |
24482 | fi | |
24483 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5 | |
24484 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6 | |
24485 | if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then | |
24486 | ODBC_LINK=" -liodbc" | |
24487 | else | |
24488 | ||
24489 | echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5 | |
24490 | echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24491 | if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then | |
24492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24493 | else | |
24494 | ac_check_lib_save_LIBS=$LIBS | |
24495 | LIBS="-lSQLAllocEnv $LIBS" | |
24496 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24497 | #line $LINENO "configure" |
24498 | /* confdefs.h. */ | |
24499 | _ACEOF | |
24500 | cat confdefs.h >>conftest.$ac_ext | |
24501 | cat >>conftest.$ac_ext <<_ACEOF | |
24502 | /* end confdefs.h. */ | |
24503 | ||
8647bec6 | 24504 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24505 | #ifdef __cplusplus |
24506 | extern "C" | |
24507 | #endif | |
8647bec6 | 24508 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24509 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24510 | char unixodbc (); |
e6cc62c6 VS |
24511 | int |
24512 | main () | |
24513 | { | |
bb41dcbe | 24514 | unixodbc (); |
e6cc62c6 VS |
24515 | ; |
24516 | return 0; | |
24517 | } | |
24518 | _ACEOF | |
24519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24521 | (eval $ac_link) 2>&5 | |
24522 | ac_status=$? | |
24523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24524 | (exit $ac_status); } && | |
24525 | { ac_try='test -s conftest$ac_exeext' | |
24526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24527 | (eval $ac_try) 2>&5 | |
24528 | ac_status=$? | |
24529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24530 | (exit $ac_status); }; }; then | |
bb41dcbe | 24531 | ac_cv_lib_SQLAllocEnv_unixodbc=yes |
8647bec6 | 24532 | else |
e6cc62c6 VS |
24533 | echo "$as_me: failed program was:" >&5 |
24534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24535 | ||
bb41dcbe | 24536 | ac_cv_lib_SQLAllocEnv_unixodbc=no |
8647bec6 | 24537 | fi |
e6cc62c6 | 24538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24539 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24540 | fi |
bb41dcbe VS |
24541 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5 |
24542 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6 | |
24543 | if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then | |
24544 | ODBC_LINK=" -lunixodbc" | |
24545 | else | |
24546 | ||
24547 | echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5 | |
24548 | echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24549 | if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then | |
24550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24551 | else | |
24552 | ac_check_lib_save_LIBS=$LIBS | |
24553 | LIBS="-lSQLAllocEnv $LIBS" | |
24554 | cat >conftest.$ac_ext <<_ACEOF | |
24555 | #line $LINENO "configure" | |
24556 | /* confdefs.h. */ | |
24557 | _ACEOF | |
24558 | cat confdefs.h >>conftest.$ac_ext | |
24559 | cat >>conftest.$ac_ext <<_ACEOF | |
24560 | /* end confdefs.h. */ | |
e6cc62c6 | 24561 | |
bb41dcbe VS |
24562 | /* Override any gcc2 internal prototype to avoid an error. */ |
24563 | #ifdef __cplusplus | |
24564 | extern "C" | |
24565 | #endif | |
24566 | /* We use char because int might match the return type of a gcc2 | |
24567 | builtin and then its argument prototype would still apply. */ | |
24568 | char odbc (); | |
24569 | int | |
24570 | main () | |
24571 | { | |
24572 | odbc (); | |
24573 | ; | |
24574 | return 0; | |
24575 | } | |
24576 | _ACEOF | |
24577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24579 | (eval $ac_link) 2>&5 | |
24580 | ac_status=$? | |
24581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24582 | (exit $ac_status); } && | |
24583 | { ac_try='test -s conftest$ac_exeext' | |
24584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24585 | (eval $ac_try) 2>&5 | |
24586 | ac_status=$? | |
24587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24588 | (exit $ac_status); }; }; then | |
24589 | ac_cv_lib_SQLAllocEnv_odbc=yes | |
e6cc62c6 | 24590 | else |
bb41dcbe VS |
24591 | echo "$as_me: failed program was:" >&5 |
24592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24593 | ||
24594 | ac_cv_lib_SQLAllocEnv_odbc=no | |
24595 | fi | |
24596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24597 | LIBS=$ac_check_lib_save_LIBS | |
24598 | fi | |
24599 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5 | |
24600 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6 | |
24601 | if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then | |
24602 | ODBC_LINK=" -lodbc" | |
24603 | fi | |
24604 | ||
24605 | ||
24606 | fi | |
e6cc62c6 | 24607 | |
e6cc62c6 | 24608 | |
8647bec6 | 24609 | fi |
e6cc62c6 | 24610 | |
fd3d7534 | 24611 | fi |
bb41dcbe VS |
24612 | if test "x$ODBC_LINK" = "x" ; then |
24613 | if test "$wxUSE_ODBC" = "sys" ; then | |
24614 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
24615 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
24616 | { (exit 1); exit 1; }; } | |
24617 | else | |
24618 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
24619 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
24620 | wxUSE_ODBC=builtin | |
24621 | fi | |
24622 | else | |
24623 | wxUSE_ODBC=sys | |
8647bec6 | 24624 | fi |
8647bec6 | 24625 | fi |
bb41dcbe VS |
24626 | if test "$wxUSE_ODBC" != "no" ; then |
24627 | cat >>confdefs.h <<\_ACEOF | |
24628 | #define wxUSE_ODBC 1 | |
24629 | _ACEOF | |
e6cc62c6 | 24630 | |
bb41dcbe VS |
24631 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
24632 | ||
24633 | WXODBCFLAG="-D_IODBC_" | |
24634 | fi | |
6232543b | 24635 | fi |
21d1c967 GD |
24636 | |
24637 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24638 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24639 | fi |
21d1c967 GD |
24640 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24641 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24642 | fi |
24643 | ||
8284b0c5 | 24644 | |
4d264332 | 24645 | USE_OPENGL=0 |
21d1c967 | 24646 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24647 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24648 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24649 | elif test "$wxUSE_MSW" = 1; then | |
24650 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24651 | else | |
01aa5863 VS |
24652 | |
24653 | ||
24654 | ac_find_includes= | |
24655 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24656 | do | |
24657 | if test -f "$ac_dir/GL/gl.h"; then | |
24658 | ac_find_includes=$ac_dir | |
24659 | break | |
24660 | fi | |
24661 | done | |
24662 | ||
24663 | if test "$ac_find_includes" != "" ; then | |
24664 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24665 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
24666 | |
24667 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24668 | ac_path_to_include="" | |
24669 | else | |
24670 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24671 | result=$? | |
24672 | if test $result = 0; then | |
24673 | ac_path_to_include="" | |
24674 | else | |
24675 | ac_path_to_include=" -I$ac_find_includes" | |
24676 | fi | |
24677 | fi | |
24678 | ||
24679 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
24680 | fi |
24681 | ||
e6cc62c6 VS |
24682 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24683 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24684 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24685 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24687 | fi | |
24688 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24689 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24690 | else | |
24691 | # Is the header compilable? | |
24692 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24693 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24694 | cat >conftest.$ac_ext <<_ACEOF | |
24695 | #line $LINENO "configure" | |
24696 | /* confdefs.h. */ | |
24697 | _ACEOF | |
24698 | cat confdefs.h >>conftest.$ac_ext | |
24699 | cat >>conftest.$ac_ext <<_ACEOF | |
24700 | /* end confdefs.h. */ | |
24701 | $ac_includes_default | |
21d1c967 | 24702 | #include <GL/gl.h> |
e6cc62c6 VS |
24703 | _ACEOF |
24704 | rm -f conftest.$ac_objext | |
24705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24706 | (eval $ac_compile) 2>&5 | |
24707 | ac_status=$? | |
24708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24709 | (exit $ac_status); } && | |
24710 | { ac_try='test -s conftest.$ac_objext' | |
24711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24712 | (eval $ac_try) 2>&5 | |
24713 | ac_status=$? | |
24714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24715 | (exit $ac_status); }; }; then | |
24716 | ac_header_compiler=yes | |
24717 | else | |
24718 | echo "$as_me: failed program was:" >&5 | |
24719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24720 | ||
24721 | ac_header_compiler=no | |
24722 | fi | |
24723 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24726 | ||
24727 | # Is the header present? | |
24728 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24729 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24730 | cat >conftest.$ac_ext <<_ACEOF | |
24731 | #line $LINENO "configure" | |
24732 | /* confdefs.h. */ | |
24733 | _ACEOF | |
24734 | cat confdefs.h >>conftest.$ac_ext | |
24735 | cat >>conftest.$ac_ext <<_ACEOF | |
24736 | /* end confdefs.h. */ | |
24737 | #include <GL/gl.h> | |
24738 | _ACEOF | |
24739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24740 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24741 | ac_status=$? | |
24742 | grep -v '^ *+' conftest.er1 >conftest.err | |
24743 | rm -f conftest.er1 | |
24744 | cat conftest.err >&5 | |
24745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24746 | (exit $ac_status); } >/dev/null; then | |
24747 | if test -s conftest.err; then | |
24748 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24749 | else | |
24750 | ac_cpp_err= | |
24751 | fi | |
24752 | else | |
24753 | ac_cpp_err=yes | |
24754 | fi | |
24755 | if test -z "$ac_cpp_err"; then | |
24756 | ac_header_preproc=yes | |
24757 | else | |
24758 | echo "$as_me: failed program was:" >&5 | |
24759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24760 | ||
24761 | ac_header_preproc=no | |
24762 | fi | |
24763 | rm -f conftest.err conftest.$ac_ext | |
24764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24766 | ||
24767 | # So? What about this header? | |
24768 | case $ac_header_compiler:$ac_header_preproc in | |
24769 | yes:no ) | |
24770 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24771 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24772 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24773 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24774 | ( | |
24775 | cat <<\_ASBOX | |
24776 | ## ------------------------------------ ## | |
24777 | ## Report this to bug-autoconf@gnu.org. ## | |
24778 | ## ------------------------------------ ## | |
24779 | _ASBOX | |
24780 | ) | | |
24781 | sed "s/^/$as_me: WARNING: /" >&2 | |
24782 | ;; | |
24783 | no:yes ) | |
24784 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24785 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24786 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24787 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24788 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24789 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24790 | ( | |
24791 | cat <<\_ASBOX | |
24792 | ## ------------------------------------ ## | |
24793 | ## Report this to bug-autoconf@gnu.org. ## | |
24794 | ## ------------------------------------ ## | |
24795 | _ASBOX | |
24796 | ) | | |
24797 | sed "s/^/$as_me: WARNING: /" >&2 | |
24798 | ;; | |
24799 | esac | |
24800 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24801 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24802 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24804 | else | |
24805 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24806 | fi |
e6cc62c6 VS |
24807 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24808 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24809 | ||
698dcdb6 | 24810 | fi |
e6cc62c6 VS |
24811 | if test $ac_cv_header_GL_gl_h = yes; then |
24812 | ||
89e3b3e4 VZ |
24813 | found_gl=0 |
24814 | ||
e6cc62c6 VS |
24815 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24816 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24817 | ||
21d1c967 | 24818 | ac_find_libraries= |
2b5f62a0 | 24819 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24820 | do |
24821 | for ac_extension in a so sl dylib; do | |
24822 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24823 | ac_find_libraries=$ac_dir | |
24824 | break 2 | |
24825 | fi | |
24826 | done | |
24827 | done | |
24828 | ||
24829 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24830 | |
21d1c967 GD |
24831 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24832 | result=$? | |
24833 | if test $result = 0; then | |
24834 | ac_path_to_link="" | |
24835 | else | |
24836 | ac_path_to_link=" -L$ac_find_libraries" | |
24837 | fi | |
24838 | ||
89e3b3e4 VZ |
24839 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24840 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24841 | fi |
89e3b3e4 | 24842 | |
e6cc62c6 | 24843 | |
89e3b3e4 VZ |
24844 | ac_find_libraries= |
24845 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24846 | do | |
24847 | for ac_extension in a so sl dylib; do | |
24848 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24849 | ac_find_libraries=$ac_dir | |
24850 | break 2 | |
24851 | fi | |
24852 | done | |
24853 | done | |
24854 | ||
24855 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24856 | |
89e3b3e4 VZ |
24857 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24858 | result=$? | |
24859 | if test $result = 0; then | |
24860 | ac_path_to_link="" | |
24861 | else | |
24862 | ac_path_to_link=" -L$ac_find_libraries" | |
24863 | fi | |
24864 | ||
24865 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24866 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24867 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24868 | fi | |
24869 | ||
24870 | found_gl=1 | |
24871 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
24872 | echo "$as_me:$LINENO: result: yes" >&5 |
24873 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
24874 | fi |
24875 | fi | |
24876 | ||
bb41dcbe | 24877 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
24878 | echo "$as_me:$LINENO: result: no" >&5 |
24879 | echo "${ECHO_T}no" >&6 | |
24880 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24881 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24882 | ||
21d1c967 | 24883 | ac_find_libraries= |
2b5f62a0 | 24884 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24885 | do |
24886 | for ac_extension in a so sl dylib; do | |
24887 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24888 | ac_find_libraries=$ac_dir | |
24889 | break 2 | |
24890 | fi | |
24891 | done | |
24892 | done | |
24893 | ||
24894 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24895 | |
21d1c967 GD |
24896 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24897 | result=$? | |
24898 | if test $result = 0; then | |
24899 | ac_path_to_link="" | |
24900 | else | |
24901 | ac_path_to_link=" -L$ac_find_libraries" | |
24902 | fi | |
24903 | ||
24904 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24905 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
24906 | echo "$as_me:$LINENO: result: yes" >&5 |
24907 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 24908 | else |
e6cc62c6 VS |
24909 | echo "$as_me:$LINENO: result: no" >&5 |
24910 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24911 | fi |
24912 | fi | |
e6cc62c6 | 24913 | |
5c6fa7d2 | 24914 | fi |
52127426 | 24915 | |
8284b0c5 | 24916 | |
e6cc62c6 | 24917 | |
21d1c967 | 24918 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
24919 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
24920 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24921 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
24922 | fi |
24923 | fi | |
90dd450c | 24924 | |
21d1c967 | 24925 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 24926 | USE_OPENGL=1 |
e6cc62c6 | 24927 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24928 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 24929 | _ACEOF |
21d1c967 | 24930 | |
e6cc62c6 | 24931 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24932 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 24933 | _ACEOF |
21d1c967 | 24934 | |
520755bb | 24935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 24936 | fi |
10f2d63a | 24937 | fi |
21d1c967 GD |
24938 | |
24939 | if test -z "$TOOLKIT_VPATH" ; then | |
24940 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 24941 | fi |
21d1c967 GD |
24942 | |
24943 | if test -n "$TOOLKIT" ; then | |
24944 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24945 | fi | |
24946 | ||
fe0895cf | 24947 | UNICODE=0 |
21d1c967 GD |
24948 | lib_unicode_suffix= |
24949 | if test "$wxUSE_UNICODE" = "yes"; then | |
24950 | lib_unicode_suffix=u | |
fe0895cf | 24951 | UNICODE=1 |
90dd450c | 24952 | fi |
698dcdb6 | 24953 | |
21d1c967 | 24954 | lib_debug_suffix= |
6c67131a | 24955 | DEBUG_FLAG=0 |
21d1c967 GD |
24956 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
24957 | lib_debug_suffix=d | |
6c67131a VS |
24958 | DEBUG_FLAG=1 |
24959 | fi | |
24960 | ||
24961 | DEBUG_INFO=0 | |
24962 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
24963 | DEBUG_INFO=1 | |
21d1c967 | 24964 | fi |
698dcdb6 | 24965 | |
1cbb95a2 | 24966 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
24967 | |
24968 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24969 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
24970 | |
24971 | if test "$cross_compiling" = "yes"; then | |
24972 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24973 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 24974 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
24975 | fi |
24976 | ||
24977 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24978 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
24979 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
24980 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
24981 | |
24982 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24983 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24984 | ||
24985 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
24986 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24987 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
24988 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24989 | ||
24990 | case "${host}" in | |
24991 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
24992 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
24993 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
24994 | ;; |
24995 | ||
24996 | *-*-darwin* ) | |
e6cc62c6 | 24997 | |
05159a27 GD |
24998 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
24999 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25000 | ||
25001 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25002 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25003 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25004 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25005 | ||
21d1c967 | 25006 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
25007 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
25008 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
25009 | fi |
25010 | ;; | |
25011 | esac | |
25012 | ||
25013 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25014 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25015 | ||
25016 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25017 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25018 | ||
25019 | if test "$wxUSE_OPENGL" = "yes"; then | |
25020 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25021 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25022 | fi | |
25023 | ||
8284b0c5 MB |
25024 | |
25025 | ||
21d1c967 GD |
25026 | if test "$wxUSE_SHARED" = "yes"; then |
25027 | case "${host}" in | |
25028 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25029 | *-pc-msdosdjgpp ) | |
25030 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25031 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25032 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25033 | ;; |
25034 | esac | |
25035 | fi | |
25036 | ||
fe0895cf | 25037 | SHARED=0 |
2b5f62a0 | 25038 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25039 | SHARED=1 |
2b5f62a0 | 25040 | |
e6cc62c6 | 25041 | |
2b5f62a0 VZ |
25042 | found_versioning=no |
25043 | ||
e6cc62c6 | 25044 | |
2b5f62a0 | 25045 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25046 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25047 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25048 | if test "${wx_cv_version_script+set}" = set; then | |
25049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25050 | else |
e6cc62c6 | 25051 | |
2b5f62a0 VZ |
25052 | echo "VER_1 { *; };" >conftest.sym |
25053 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25054 | |
2b5f62a0 VZ |
25055 | if { ac_try=' |
25056 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25057 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25059 | (eval $ac_try) 2>&5 | |
25060 | ac_status=$? | |
25061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25062 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25063 | if test -s conftest.stderr ; then |
25064 | wx_cv_version_script=no | |
25065 | else | |
25066 | wx_cv_version_script=yes | |
25067 | fi | |
25068 | else | |
25069 | wx_cv_version_script=no | |
25070 | fi | |
25071 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25072 | |
e6cc62c6 VS |
25073 | fi |
25074 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25075 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25076 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25077 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25078 | fi |
25079 | fi | |
21d1c967 | 25080 | |
21d1c967 | 25081 | |
21d1c967 | 25082 | case "${host}" in |
fe0895cf | 25083 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25084 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 25085 | ;; |
21d1c967 GD |
25086 | |
25087 | *-*-solaris2* ) | |
25088 | if test "$GCC" = yes ; then | |
25089 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25090 | |
25091 | saveLdflags="$LDFLAGS" | |
25092 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25093 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25094 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25095 | cat >conftest.$ac_ext <<_ACEOF | |
25096 | #line $LINENO "configure" | |
25097 | /* confdefs.h. */ | |
25098 | _ACEOF | |
25099 | cat confdefs.h >>conftest.$ac_ext | |
25100 | cat >>conftest.$ac_ext <<_ACEOF | |
25101 | /* end confdefs.h. */ | |
25102 | ||
25103 | int | |
25104 | main () | |
25105 | { | |
fe0895cf | 25106 | |
e6cc62c6 VS |
25107 | ; |
25108 | return 0; | |
25109 | } | |
25110 | _ACEOF | |
25111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25113 | (eval $ac_link) 2>&5 | |
25114 | ac_status=$? | |
25115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25116 | (exit $ac_status); } && | |
25117 | { ac_try='test -s conftest$ac_exeext' | |
25118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25119 | (eval $ac_try) 2>&5 | |
25120 | ac_status=$? | |
25121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25122 | (exit $ac_status); }; }; then | |
25123 | ||
25124 | echo "$as_me:$LINENO: result: yes" >&5 | |
25125 | echo "${ECHO_T}yes" >&6 | |
25126 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25127 | ||
25128 | else | |
25129 | echo "$as_me: failed program was:" >&5 | |
25130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25131 | ||
25132 | ||
25133 | echo "$as_me:$LINENO: result: no" >&5 | |
25134 | echo "${ECHO_T}no" >&6 | |
25135 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25136 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25137 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
25138 | cat >conftest.$ac_ext <<_ACEOF |
25139 | #line $LINENO "configure" | |
25140 | /* confdefs.h. */ | |
25141 | _ACEOF | |
25142 | cat confdefs.h >>conftest.$ac_ext | |
25143 | cat >>conftest.$ac_ext <<_ACEOF | |
25144 | /* end confdefs.h. */ | |
25145 | ||
25146 | int | |
25147 | main () | |
25148 | { | |
25149 | ||
25150 | ; | |
25151 | return 0; | |
25152 | } | |
25153 | _ACEOF | |
25154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25156 | (eval $ac_link) 2>&5 | |
25157 | ac_status=$? | |
25158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25159 | (exit $ac_status); } && | |
25160 | { ac_try='test -s conftest$ac_exeext' | |
25161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25162 | (eval $ac_try) 2>&5 | |
25163 | ac_status=$? | |
25164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25165 | (exit $ac_status); }; }; then | |
25166 | ||
25167 | echo "$as_me:$LINENO: result: yes" >&5 | |
25168 | echo "${ECHO_T}yes" >&6 | |
25169 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25170 | else | |
25171 | echo "$as_me: failed program was:" >&5 | |
25172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25173 | |
fe0895cf | 25174 | |
e6cc62c6 VS |
25175 | echo "$as_me:$LINENO: result: no" >&5 |
25176 | echo "${ECHO_T}no" >&6 | |
25177 | ||
fe0895cf | 25178 | fi |
e6cc62c6 VS |
25179 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
25180 | ||
25181 | fi | |
25182 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 25183 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25184 | else |
25185 | SHARED_LD="${CXX} -G -o" | |
25186 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25187 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25188 | fi |
25189 | ;; | |
0f1bc9c2 VS |
25190 | |
25191 | powerpc-*-darwin* ) | |
ef0add05 VS |
25192 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
25193 | cat <<EOF >change-install-names | |
25194 | #!/bin/sh | |
25195 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
25196 | inst_cmd="install_name_tool " | |
25197 | for i in \${libnames} ; do | |
25198 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
25199 | done | |
25200 | \${inst_cmd} \${3} | |
25201 | EOF | |
25202 | chmod +x change-install-names | |
0f1bc9c2 VS |
25203 | ;; |
25204 | ||
21d1c967 GD |
25205 | esac |
25206 | ||
25207 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25208 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25209 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25210 | fi | |
25211 | ||
25212 | WX_TARGET_LIBRARY_TYPE="so" | |
25213 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25214 | fi |
10f2d63a | 25215 | |
21d1c967 GD |
25216 | if test "$wxUSE_SHARED" = "no"; then |
25217 | ||
25218 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25219 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25220 | fi | |
25221 | ||
ac0c4cc3 | 25222 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25223 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25224 | fi | |
25225 | ||
25226 | if test "$wxUSE_OPENGL" = "yes"; then | |
25227 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25228 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25229 | else | |
25230 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25231 | fi | |
25232 | ||
25233 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25234 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25235 | ||
25236 | WX_TARGET_LIBRARY_TYPE="a" | |
25237 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25238 | |
25239 | STATIC_FLAG="yes" | |
25240 | else | |
25241 | STATIC_FLAG="no" | |
90dd450c | 25242 | fi |
1e487827 | 25243 | |
93fac604 VZ |
25244 | MACRESCOMP="@#" |
25245 | MACSETFILE="@#" | |
36825681 | 25246 | MACRESWXCONFIG="#" |
21d1c967 | 25247 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25248 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25249 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25250 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25251 | # Extract the first word of "Rez", so it can be a program name with args. | |
25252 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25255 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25257 | else |
21d1c967 GD |
25258 | if test -n "$RESCOMP"; then |
25259 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25260 | else |
e6cc62c6 VS |
25261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25262 | for as_dir in $PATH | |
25263 | do | |
25264 | IFS=$as_save_IFS | |
25265 | test -z "$as_dir" && as_dir=. | |
25266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25268 | ac_cv_prog_RESCOMP="Rez" | |
25269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25270 | break 2 | |
25271 | fi | |
25272 | done | |
25273 | done | |
25274 | ||
21d1c967 | 25275 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25276 | fi |
b93d0d08 | 25277 | fi |
e6cc62c6 | 25278 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25279 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25280 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25281 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25282 | else |
e6cc62c6 VS |
25283 | echo "$as_me:$LINENO: result: no" >&5 |
25284 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25285 | fi |
b93d0d08 | 25286 | |
21d1c967 GD |
25287 | # Extract the first word of "DeRez", so it can be a program name with args. |
25288 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25291 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25293 | else |
21d1c967 GD |
25294 | if test -n "$DEREZ"; then |
25295 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25296 | else |
e6cc62c6 VS |
25297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25298 | for as_dir in $PATH | |
25299 | do | |
25300 | IFS=$as_save_IFS | |
25301 | test -z "$as_dir" && as_dir=. | |
25302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25304 | ac_cv_prog_DEREZ="DeRez" | |
25305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25306 | break 2 | |
25307 | fi | |
25308 | done | |
25309 | done | |
25310 | ||
21d1c967 | 25311 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25312 | fi |
90dd450c | 25313 | fi |
e6cc62c6 | 25314 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25315 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25316 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25317 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25318 | else |
e6cc62c6 VS |
25319 | echo "$as_me:$LINENO: result: no" >&5 |
25320 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25321 | fi |
698dcdb6 | 25322 | |
36825681 GD |
25323 | # Extract the first word of "SetFile", so it can be a program name with args. |
25324 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25327 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25329 | else |
25330 | if test -n "$SETFILE"; then | |
25331 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25332 | else | |
e6cc62c6 VS |
25333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25334 | for as_dir in $PATH | |
25335 | do | |
25336 | IFS=$as_save_IFS | |
25337 | test -z "$as_dir" && as_dir=. | |
25338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25340 | ac_cv_prog_SETFILE="SetFile" | |
25341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25342 | break 2 | |
25343 | fi | |
25344 | done | |
25345 | done | |
25346 | ||
36825681 GD |
25347 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25348 | fi | |
25349 | fi | |
e6cc62c6 | 25350 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25351 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25352 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25353 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25354 | else |
e6cc62c6 VS |
25355 | echo "$as_me:$LINENO: result: no" >&5 |
25356 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25357 | fi |
25358 | ||
21d1c967 | 25359 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25360 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25361 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25362 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25363 | elif test "$wxUSE_COCOA" = 1; then |
25364 | # Extract the first word of "Rez", so it can be a program name with args. | |
25365 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25366 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25368 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25370 | else |
25371 | if test -n "$RESCOMP"; then | |
25372 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25373 | else | |
e6cc62c6 VS |
25374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25375 | for as_dir in $PATH | |
25376 | do | |
25377 | IFS=$as_save_IFS | |
25378 | test -z "$as_dir" && as_dir=. | |
25379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25381 | ac_cv_prog_RESCOMP="Rez" | |
25382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25383 | break 2 | |
25384 | fi | |
25385 | done | |
25386 | done | |
25387 | ||
64440d77 DE |
25388 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25389 | fi | |
25390 | fi | |
e6cc62c6 | 25391 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25392 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25393 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25394 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25395 | else |
e6cc62c6 VS |
25396 | echo "$as_me:$LINENO: result: no" >&5 |
25397 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25398 | fi |
25399 | ||
25400 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25401 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25402 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25404 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25406 | else |
25407 | if test -n "$DEREZ"; then | |
25408 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25409 | else | |
e6cc62c6 VS |
25410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25411 | for as_dir in $PATH | |
25412 | do | |
25413 | IFS=$as_save_IFS | |
25414 | test -z "$as_dir" && as_dir=. | |
25415 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25416 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25417 | ac_cv_prog_DEREZ="DeRez" | |
25418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25419 | break 2 | |
25420 | fi | |
25421 | done | |
25422 | done | |
25423 | ||
64440d77 DE |
25424 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25425 | fi | |
25426 | fi | |
e6cc62c6 | 25427 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25428 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25429 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25430 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25431 | else |
e6cc62c6 VS |
25432 | echo "$as_me:$LINENO: result: no" >&5 |
25433 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25434 | fi |
25435 | ||
25436 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25437 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25440 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25442 | else |
25443 | if test -n "$SETFILE"; then | |
25444 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25445 | else | |
e6cc62c6 VS |
25446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25447 | for as_dir in $PATH | |
25448 | do | |
25449 | IFS=$as_save_IFS | |
25450 | test -z "$as_dir" && as_dir=. | |
25451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25453 | ac_cv_prog_SETFILE="SetFile" | |
25454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25455 | break 2 | |
25456 | fi | |
25457 | done | |
25458 | done | |
25459 | ||
64440d77 DE |
25460 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25461 | fi | |
25462 | fi | |
e6cc62c6 | 25463 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25464 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25465 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25466 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25467 | else |
e6cc62c6 VS |
25468 | echo "$as_me:$LINENO: result: no" >&5 |
25469 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25470 | fi |
25471 | ||
25472 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25473 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25474 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25475 | else |
25476 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25477 | MACRESCOMP="emxbind -ep" |
90dd450c | 25478 | fi |
4f14bcd8 | 25479 | fi |
10f2d63a | 25480 | |
8284b0c5 | 25481 | |
e6cc62c6 VS |
25482 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25483 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25484 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25486 | else |
e6cc62c6 VS |
25487 | cat >conftest.$ac_ext <<_ACEOF |
25488 | #line $LINENO "configure" | |
25489 | /* confdefs.h. */ | |
25490 | _ACEOF | |
25491 | cat confdefs.h >>conftest.$ac_ext | |
25492 | cat >>conftest.$ac_ext <<_ACEOF | |
25493 | /* end confdefs.h. */ | |
25494 | $ac_includes_default | |
25495 | int | |
25496 | main () | |
25497 | { | |
25498 | if ((mode_t *) 0) | |
25499 | return 0; | |
25500 | if (sizeof (mode_t)) | |
25501 | return 0; | |
25502 | ; | |
25503 | return 0; | |
25504 | } | |
25505 | _ACEOF | |
25506 | rm -f conftest.$ac_objext | |
25507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25508 | (eval $ac_compile) 2>&5 | |
25509 | ac_status=$? | |
25510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25511 | (exit $ac_status); } && | |
25512 | { ac_try='test -s conftest.$ac_objext' | |
25513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25514 | (eval $ac_try) 2>&5 | |
25515 | ac_status=$? | |
25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25517 | (exit $ac_status); }; }; then | |
25518 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25519 | else |
e6cc62c6 VS |
25520 | echo "$as_me: failed program was:" >&5 |
25521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25522 | |
e6cc62c6 | 25523 | ac_cv_type_mode_t=no |
a0b9e27f | 25524 | fi |
e6cc62c6 | 25525 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25526 | fi |
e6cc62c6 VS |
25527 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25528 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25529 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25530 | : |
25531 | else | |
a0b9e27f | 25532 | |
e6cc62c6 VS |
25533 | cat >>confdefs.h <<_ACEOF |
25534 | #define mode_t int | |
25535 | _ACEOF | |
8284b0c5 MB |
25536 | |
25537 | fi | |
25538 | ||
e6cc62c6 VS |
25539 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25540 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25541 | if test "${ac_cv_type_off_t+set}" = set; then | |
25542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25543 | else |
e6cc62c6 VS |
25544 | cat >conftest.$ac_ext <<_ACEOF |
25545 | #line $LINENO "configure" | |
25546 | /* confdefs.h. */ | |
25547 | _ACEOF | |
25548 | cat confdefs.h >>conftest.$ac_ext | |
25549 | cat >>conftest.$ac_ext <<_ACEOF | |
25550 | /* end confdefs.h. */ | |
25551 | $ac_includes_default | |
25552 | int | |
25553 | main () | |
25554 | { | |
25555 | if ((off_t *) 0) | |
25556 | return 0; | |
25557 | if (sizeof (off_t)) | |
25558 | return 0; | |
25559 | ; | |
25560 | return 0; | |
25561 | } | |
25562 | _ACEOF | |
25563 | rm -f conftest.$ac_objext | |
25564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25565 | (eval $ac_compile) 2>&5 | |
25566 | ac_status=$? | |
25567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25568 | (exit $ac_status); } && | |
25569 | { ac_try='test -s conftest.$ac_objext' | |
25570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25571 | (eval $ac_try) 2>&5 | |
25572 | ac_status=$? | |
25573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25574 | (exit $ac_status); }; }; then | |
25575 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25576 | else |
e6cc62c6 VS |
25577 | echo "$as_me: failed program was:" >&5 |
25578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25579 | |
e6cc62c6 | 25580 | ac_cv_type_off_t=no |
8284b0c5 | 25581 | fi |
e6cc62c6 | 25582 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25583 | fi |
e6cc62c6 VS |
25584 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25585 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25586 | if test $ac_cv_type_off_t = yes; then | |
25587 | : | |
247f5006 VZ |
25588 | else |
25589 | ||
e6cc62c6 | 25590 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25591 | #define off_t long |
e6cc62c6 | 25592 | _ACEOF |
10f2d63a | 25593 | |
90dd450c | 25594 | fi |
10f2d63a | 25595 | |
e6cc62c6 VS |
25596 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25597 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25598 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25600 | else |
e6cc62c6 VS |
25601 | cat >conftest.$ac_ext <<_ACEOF |
25602 | #line $LINENO "configure" | |
25603 | /* confdefs.h. */ | |
25604 | _ACEOF | |
25605 | cat confdefs.h >>conftest.$ac_ext | |
25606 | cat >>conftest.$ac_ext <<_ACEOF | |
25607 | /* end confdefs.h. */ | |
25608 | $ac_includes_default | |
25609 | int | |
25610 | main () | |
25611 | { | |
25612 | if ((pid_t *) 0) | |
25613 | return 0; | |
25614 | if (sizeof (pid_t)) | |
25615 | return 0; | |
25616 | ; | |
25617 | return 0; | |
25618 | } | |
25619 | _ACEOF | |
25620 | rm -f conftest.$ac_objext | |
25621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25622 | (eval $ac_compile) 2>&5 | |
25623 | ac_status=$? | |
25624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25625 | (exit $ac_status); } && | |
25626 | { ac_try='test -s conftest.$ac_objext' | |
25627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25628 | (eval $ac_try) 2>&5 | |
25629 | ac_status=$? | |
25630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25631 | (exit $ac_status); }; }; then | |
90dd450c | 25632 | ac_cv_type_pid_t=yes |
698dcdb6 | 25633 | else |
e6cc62c6 VS |
25634 | echo "$as_me: failed program was:" >&5 |
25635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25636 | |
e6cc62c6 VS |
25637 | ac_cv_type_pid_t=no |
25638 | fi | |
25639 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25640 | fi |
e6cc62c6 VS |
25641 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25642 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25643 | if test $ac_cv_type_pid_t = yes; then | |
25644 | : | |
25645 | else | |
25646 | ||
25647 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25648 | #define pid_t int |
e6cc62c6 | 25649 | _ACEOF |
10f2d63a | 25650 | |
7b4a847f RR |
25651 | fi |
25652 | ||
e6cc62c6 VS |
25653 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25654 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25655 | if test "${ac_cv_type_size_t+set}" = set; then | |
25656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25657 | else |
e6cc62c6 VS |
25658 | cat >conftest.$ac_ext <<_ACEOF |
25659 | #line $LINENO "configure" | |
25660 | /* confdefs.h. */ | |
25661 | _ACEOF | |
25662 | cat confdefs.h >>conftest.$ac_ext | |
25663 | cat >>conftest.$ac_ext <<_ACEOF | |
25664 | /* end confdefs.h. */ | |
25665 | $ac_includes_default | |
25666 | int | |
25667 | main () | |
25668 | { | |
25669 | if ((size_t *) 0) | |
25670 | return 0; | |
25671 | if (sizeof (size_t)) | |
25672 | return 0; | |
25673 | ; | |
25674 | return 0; | |
25675 | } | |
25676 | _ACEOF | |
25677 | rm -f conftest.$ac_objext | |
25678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25679 | (eval $ac_compile) 2>&5 | |
25680 | ac_status=$? | |
25681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25682 | (exit $ac_status); } && | |
25683 | { ac_try='test -s conftest.$ac_objext' | |
25684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25685 | (eval $ac_try) 2>&5 | |
25686 | ac_status=$? | |
25687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25688 | (exit $ac_status); }; }; then | |
90dd450c | 25689 | ac_cv_type_size_t=yes |
18dbb1f6 | 25690 | else |
e6cc62c6 VS |
25691 | echo "$as_me: failed program was:" >&5 |
25692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25693 | |
e6cc62c6 | 25694 | ac_cv_type_size_t=no |
a0b9e27f | 25695 | fi |
e6cc62c6 VS |
25696 | rm -f conftest.$ac_objext conftest.$ac_ext |
25697 | fi | |
25698 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25699 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25700 | if test $ac_cv_type_size_t = yes; then | |
25701 | : | |
25702 | else | |
25703 | ||
25704 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25705 | #define size_t unsigned |
e6cc62c6 | 25706 | _ACEOF |
90dd450c VZ |
25707 | |
25708 | fi | |
25709 | ||
e6cc62c6 VS |
25710 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25711 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25712 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25714 | else |
e6cc62c6 VS |
25715 | cat >conftest.$ac_ext <<_ACEOF |
25716 | #line $LINENO "configure" | |
25717 | /* confdefs.h. */ | |
25718 | _ACEOF | |
25719 | cat confdefs.h >>conftest.$ac_ext | |
25720 | cat >>conftest.$ac_ext <<_ACEOF | |
25721 | /* end confdefs.h. */ | |
90dd450c | 25722 | #include <sys/types.h> |
e6cc62c6 VS |
25723 | |
25724 | _ACEOF | |
90dd450c | 25725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25726 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25727 | ac_cv_type_uid_t=yes |
b3e8d00a | 25728 | else |
90dd450c | 25729 | ac_cv_type_uid_t=no |
b3e8d00a | 25730 | fi |
90dd450c | 25731 | rm -f conftest* |
b3e8d00a | 25732 | |
4f14bcd8 | 25733 | fi |
e6cc62c6 VS |
25734 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25735 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25736 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25737 | |
25738 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25739 | #define uid_t int |
e6cc62c6 | 25740 | _ACEOF |
247f5006 | 25741 | |
e6cc62c6 VS |
25742 | |
25743 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25744 | #define gid_t int |
e6cc62c6 | 25745 | _ACEOF |
4f14bcd8 | 25746 | |
b3e8d00a | 25747 | fi |
b3e8d00a | 25748 | |
8284b0c5 MB |
25749 | |
25750 | ||
e6cc62c6 VS |
25751 | |
25752 | ac_ext=cc | |
4f14bcd8 | 25753 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25754 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25755 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25756 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25757 | ||
25758 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25759 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25760 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25762 | else | |
25763 | ||
25764 | cat >conftest.$ac_ext <<_ACEOF | |
25765 | #line $LINENO "configure" | |
25766 | /* confdefs.h. */ | |
25767 | _ACEOF | |
25768 | cat confdefs.h >>conftest.$ac_ext | |
25769 | cat >>conftest.$ac_ext <<_ACEOF | |
25770 | /* end confdefs.h. */ | |
90dd450c | 25771 | #include <stddef.h> |
e6cc62c6 VS |
25772 | int |
25773 | main () | |
25774 | { | |
90dd450c VZ |
25775 | |
25776 | return 0; } | |
25777 | ||
25778 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25779 | ||
25780 | int bar() { | |
e6cc62c6 VS |
25781 | |
25782 | ; | |
25783 | return 0; | |
25784 | } | |
25785 | _ACEOF | |
25786 | rm -f conftest.$ac_objext | |
25787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25788 | (eval $ac_compile) 2>&5 | |
25789 | ac_status=$? | |
25790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25791 | (exit $ac_status); } && | |
25792 | { ac_try='test -s conftest.$ac_objext' | |
25793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25794 | (eval $ac_try) 2>&5 | |
25795 | ac_status=$? | |
25796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25797 | (exit $ac_status); }; }; then | |
90dd450c | 25798 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25799 | else |
e6cc62c6 VS |
25800 | echo "$as_me: failed program was:" >&5 |
25801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25802 | ||
25803 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25804 | |
247f5006 | 25805 | fi |
e6cc62c6 VS |
25806 | rm -f conftest.$ac_objext conftest.$ac_ext |
25807 | ||
a0b9e27f | 25808 | |
e6cc62c6 VS |
25809 | fi |
25810 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25811 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25812 | |
90dd450c | 25813 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25814 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25815 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25816 | _ACEOF |
698dcdb6 | 25817 | |
90dd450c | 25818 | else |
e6cc62c6 VS |
25819 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25820 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25821 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25823 | else |
e6cc62c6 VS |
25824 | cat >conftest.$ac_ext <<_ACEOF |
25825 | #line $LINENO "configure" | |
25826 | /* confdefs.h. */ | |
25827 | _ACEOF | |
25828 | cat confdefs.h >>conftest.$ac_ext | |
25829 | cat >>conftest.$ac_ext <<_ACEOF | |
25830 | /* end confdefs.h. */ | |
90dd450c | 25831 | #include <stddef.h> |
e6cc62c6 VS |
25832 | int |
25833 | main () | |
25834 | { | |
90dd450c VZ |
25835 | |
25836 | return 0; } | |
25837 | ||
25838 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25839 | ||
25840 | int bar() { | |
e6cc62c6 VS |
25841 | |
25842 | ; | |
25843 | return 0; | |
25844 | } | |
25845 | _ACEOF | |
25846 | rm -f conftest.$ac_objext | |
25847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25848 | (eval $ac_compile) 2>&5 | |
25849 | ac_status=$? | |
25850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25851 | (exit $ac_status); } && | |
25852 | { ac_try='test -s conftest.$ac_objext' | |
25853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25854 | (eval $ac_try) 2>&5 | |
25855 | ac_status=$? | |
25856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25857 | (exit $ac_status); }; }; then | |
90dd450c | 25858 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25859 | else |
e6cc62c6 VS |
25860 | echo "$as_me: failed program was:" >&5 |
25861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25862 | ||
25863 | wx_cv_size_t_is_ulong=yes | |
25864 | ||
247f5006 | 25865 | fi |
e6cc62c6 | 25866 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25867 | |
e6cc62c6 VS |
25868 | fi |
25869 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25870 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25871 | |
90dd450c | 25872 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 25873 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25874 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 25875 | _ACEOF |
4f14bcd8 GD |
25876 | |
25877 | fi | |
90dd450c | 25878 | fi |
1e487827 | 25879 | |
90dd450c | 25880 | ac_ext=c |
4f14bcd8 | 25881 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
25882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 25885 | |
5c6fa7d2 | 25886 | |
8284b0c5 | 25887 | |
e6cc62c6 VS |
25888 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
25889 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25890 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25892 | else |
e6cc62c6 VS |
25893 | |
25894 | cat >conftest.$ac_ext <<_ACEOF | |
25895 | #line $LINENO "configure" | |
25896 | /* confdefs.h. */ | |
25897 | _ACEOF | |
25898 | cat confdefs.h >>conftest.$ac_ext | |
25899 | cat >>conftest.$ac_ext <<_ACEOF | |
25900 | /* end confdefs.h. */ | |
90dd450c | 25901 | #include <pwd.h> |
e6cc62c6 VS |
25902 | int |
25903 | main () | |
25904 | { | |
f6bcfd97 | 25905 | |
90dd450c VZ |
25906 | char *p; |
25907 | struct passwd *pw; | |
25908 | p = pw->pw_gecos; | |
e6cc62c6 VS |
25909 | |
25910 | ; | |
25911 | return 0; | |
25912 | } | |
25913 | _ACEOF | |
25914 | rm -f conftest.$ac_objext | |
25915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25916 | (eval $ac_compile) 2>&5 | |
25917 | ac_status=$? | |
25918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25919 | (exit $ac_status); } && | |
25920 | { ac_try='test -s conftest.$ac_objext' | |
25921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25922 | (eval $ac_try) 2>&5 | |
25923 | ac_status=$? | |
25924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25925 | (exit $ac_status); }; }; then | |
25926 | ||
90dd450c | 25927 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 25928 | |
10f2d63a | 25929 | else |
e6cc62c6 VS |
25930 | echo "$as_me: failed program was:" >&5 |
25931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25932 | ||
25933 | ||
90dd450c | 25934 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 25935 | |
247f5006 VZ |
25936 | |
25937 | fi | |
e6cc62c6 | 25938 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25939 | |
e6cc62c6 VS |
25940 | |
25941 | fi | |
25942 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25943 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 25944 | |
90dd450c | 25945 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 25946 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25947 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 25948 | _ACEOF |
c521c494 | 25949 | |
90dd450c | 25950 | fi |
4f14bcd8 | 25951 | |
8284b0c5 | 25952 | |
d29b553b | 25953 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 25954 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25955 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 25956 | _ACEOF |
d74f4b5a | 25957 | |
8284b0c5 | 25958 | |
d74f4b5a VZ |
25959 | WCSLEN_FOUND=0 |
25960 | WCHAR_LINK= | |
e6cc62c6 VS |
25961 | |
25962 | for ac_func in wcslen | |
7a30264c | 25963 | do |
e6cc62c6 VS |
25964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25969 | else | |
25970 | cat >conftest.$ac_ext <<_ACEOF | |
25971 | #line $LINENO "configure" | |
25972 | /* confdefs.h. */ | |
25973 | _ACEOF | |
25974 | cat confdefs.h >>conftest.$ac_ext | |
25975 | cat >>conftest.$ac_ext <<_ACEOF | |
25976 | /* end confdefs.h. */ | |
7a30264c | 25977 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25978 | which can conflict with char $ac_func (); below. |
25979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25980 | <limits.h> exists even on freestanding compilers. */ | |
25981 | #ifdef __STDC__ | |
25982 | # include <limits.h> | |
25983 | #else | |
25984 | # include <assert.h> | |
25985 | #endif | |
4f14bcd8 | 25986 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25987 | #ifdef __cplusplus |
25988 | extern "C" | |
25989 | { | |
25990 | #endif | |
4f14bcd8 | 25991 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25992 | builtin and then its argument prototype would still apply. */ |
25993 | char $ac_func (); | |
7a30264c VZ |
25994 | /* The GNU C library defines this for functions which it implements |
25995 | to always fail with ENOSYS. Some functions are actually named | |
25996 | something starting with __ and the normal name is an alias. */ | |
25997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25998 | choke me | |
25999 | #else | |
e6cc62c6 VS |
26000 | char (*f) () = $ac_func; |
26001 | #endif | |
26002 | #ifdef __cplusplus | |
26003 | } | |
7a30264c VZ |
26004 | #endif |
26005 | ||
e6cc62c6 VS |
26006 | int |
26007 | main () | |
26008 | { | |
26009 | return f != $ac_func; | |
26010 | ; | |
26011 | return 0; | |
26012 | } | |
26013 | _ACEOF | |
26014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26016 | (eval $ac_link) 2>&5 | |
26017 | ac_status=$? | |
26018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26019 | (exit $ac_status); } && | |
26020 | { ac_try='test -s conftest$ac_exeext' | |
26021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26022 | (eval $ac_try) 2>&5 | |
26023 | ac_status=$? | |
26024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26025 | (exit $ac_status); }; }; then | |
26026 | eval "$as_ac_var=yes" | |
26027 | else | |
26028 | echo "$as_me: failed program was:" >&5 | |
26029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26030 | ||
26031 | eval "$as_ac_var=no" | |
26032 | fi | |
26033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26034 | fi | |
26035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26038 | cat >>confdefs.h <<_ACEOF | |
26039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26040 | _ACEOF | |
d74f4b5a | 26041 | WCSLEN_FOUND=1 |
7a30264c VZ |
26042 | fi |
26043 | done | |
9d8deca0 | 26044 | |
8284b0c5 | 26045 | |
d74f4b5a | 26046 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26047 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26048 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26049 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26050 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26052 | else |
e6cc62c6 | 26053 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26054 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
26055 | cat >conftest.$ac_ext <<_ACEOF |
26056 | #line $LINENO "configure" | |
26057 | /* confdefs.h. */ | |
26058 | _ACEOF | |
26059 | cat confdefs.h >>conftest.$ac_ext | |
26060 | cat >>conftest.$ac_ext <<_ACEOF | |
26061 | /* end confdefs.h. */ | |
26062 | ||
4f14bcd8 | 26063 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26064 | #ifdef __cplusplus |
26065 | extern "C" | |
26066 | #endif | |
4f14bcd8 | 26067 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26068 | builtin and then its argument prototype would still apply. */ |
26069 | char wcslen (); | |
26070 | int | |
26071 | main () | |
26072 | { | |
26073 | wcslen (); | |
26074 | ; | |
26075 | return 0; | |
26076 | } | |
26077 | _ACEOF | |
26078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26080 | (eval $ac_link) 2>&5 | |
26081 | ac_status=$? | |
26082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26083 | (exit $ac_status); } && | |
26084 | { ac_try='test -s conftest$ac_exeext' | |
26085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26086 | (eval $ac_try) 2>&5 | |
26087 | ac_status=$? | |
26088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26089 | (exit $ac_status); }; }; then | |
26090 | ac_cv_lib_msvcrt_wcslen=yes | |
26091 | else | |
26092 | echo "$as_me: failed program was:" >&5 | |
26093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26094 | ||
26095 | ac_cv_lib_msvcrt_wcslen=no | |
26096 | fi | |
26097 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26098 | LIBS=$ac_check_lib_save_LIBS | |
26099 | fi | |
26100 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26101 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26102 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26103 | WCHAR_OK=1 |
d29b553b | 26104 | fi |
698dcdb6 | 26105 | |
7a30264c | 26106 | else |
e6cc62c6 VS |
26107 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26108 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26109 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26111 | else |
e6cc62c6 | 26112 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26113 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
26114 | cat >conftest.$ac_ext <<_ACEOF |
26115 | #line $LINENO "configure" | |
26116 | /* confdefs.h. */ | |
26117 | _ACEOF | |
26118 | cat confdefs.h >>conftest.$ac_ext | |
26119 | cat >>conftest.$ac_ext <<_ACEOF | |
26120 | /* end confdefs.h. */ | |
26121 | ||
4f14bcd8 | 26122 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26123 | #ifdef __cplusplus |
26124 | extern "C" | |
26125 | #endif | |
4f14bcd8 | 26126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26127 | builtin and then its argument prototype would still apply. */ |
26128 | char wcslen (); | |
26129 | int | |
26130 | main () | |
26131 | { | |
26132 | wcslen (); | |
26133 | ; | |
26134 | return 0; | |
26135 | } | |
26136 | _ACEOF | |
26137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26139 | (eval $ac_link) 2>&5 | |
26140 | ac_status=$? | |
26141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26142 | (exit $ac_status); } && | |
26143 | { ac_try='test -s conftest$ac_exeext' | |
26144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26145 | (eval $ac_try) 2>&5 | |
26146 | ac_status=$? | |
26147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26148 | (exit $ac_status); }; }; then | |
26149 | ac_cv_lib_w_wcslen=yes | |
26150 | else | |
26151 | echo "$as_me: failed program was:" >&5 | |
26152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26153 | ||
26154 | ac_cv_lib_w_wcslen=no | |
26155 | fi | |
26156 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26157 | LIBS=$ac_check_lib_save_LIBS | |
26158 | fi | |
26159 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26160 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26161 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26162 | |
7a30264c | 26163 | WCHAR_LINK=" -lw" |
d74f4b5a | 26164 | WCSLEN_FOUND=1 |
e6cc62c6 | 26165 | |
4f14bcd8 | 26166 | fi |
10f2d63a | 26167 | |
7a30264c | 26168 | fi |
d29b553b | 26169 | fi |
95c8801c | 26170 | |
d74f4b5a | 26171 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26172 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26173 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26174 | _ACEOF |
10f2d63a | 26175 | |
d74f4b5a | 26176 | fi |
52127426 | 26177 | |
e6cc62c6 VS |
26178 | |
26179 | for ac_func in wcsrtombs | |
eb4efbdc | 26180 | do |
e6cc62c6 VS |
26181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26184 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26186 | else | |
26187 | cat >conftest.$ac_ext <<_ACEOF | |
26188 | #line $LINENO "configure" | |
26189 | /* confdefs.h. */ | |
26190 | _ACEOF | |
26191 | cat confdefs.h >>conftest.$ac_ext | |
26192 | cat >>conftest.$ac_ext <<_ACEOF | |
26193 | /* end confdefs.h. */ | |
eb4efbdc | 26194 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26195 | which can conflict with char $ac_func (); below. |
26196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26197 | <limits.h> exists even on freestanding compilers. */ | |
26198 | #ifdef __STDC__ | |
26199 | # include <limits.h> | |
26200 | #else | |
26201 | # include <assert.h> | |
26202 | #endif | |
eb4efbdc | 26203 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26204 | #ifdef __cplusplus |
26205 | extern "C" | |
26206 | { | |
26207 | #endif | |
4f14bcd8 | 26208 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26209 | builtin and then its argument prototype would still apply. */ |
26210 | char $ac_func (); | |
10f2d63a VZ |
26211 | /* The GNU C library defines this for functions which it implements |
26212 | to always fail with ENOSYS. Some functions are actually named | |
26213 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26215 | choke me |
26216 | #else | |
e6cc62c6 VS |
26217 | char (*f) () = $ac_func; |
26218 | #endif | |
26219 | #ifdef __cplusplus | |
26220 | } | |
10f2d63a VZ |
26221 | #endif |
26222 | ||
e6cc62c6 VS |
26223 | int |
26224 | main () | |
26225 | { | |
26226 | return f != $ac_func; | |
26227 | ; | |
26228 | return 0; | |
26229 | } | |
26230 | _ACEOF | |
26231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26233 | (eval $ac_link) 2>&5 | |
26234 | ac_status=$? | |
26235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26236 | (exit $ac_status); } && | |
26237 | { ac_try='test -s conftest$ac_exeext' | |
26238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26239 | (eval $ac_try) 2>&5 | |
26240 | ac_status=$? | |
26241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26242 | (exit $ac_status); }; }; then | |
26243 | eval "$as_ac_var=yes" | |
26244 | else | |
26245 | echo "$as_me: failed program was:" >&5 | |
26246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26247 | ||
26248 | eval "$as_ac_var=no" | |
26249 | fi | |
26250 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26251 | fi | |
26252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26253 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26254 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26255 | cat >>confdefs.h <<_ACEOF | |
26256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26257 | _ACEOF | |
270a909e | 26258 | |
4f14bcd8 | 26259 | fi |
247f5006 | 26260 | done |
1e487827 | 26261 | |
af15babd | 26262 | else |
e6cc62c6 VS |
26263 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26264 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26265 | fi |
52127426 | 26266 | |
8284b0c5 | 26267 | |
e6cc62c6 VS |
26268 | |
26269 | ac_ext=cc | |
247f5006 | 26270 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26274 | ||
af15babd | 26275 | |
247f5006 VZ |
26276 | |
26277 | for ac_func in vsnprintf | |
26278 | do | |
e6cc62c6 VS |
26279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26282 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26284 | else | |
26285 | cat >conftest.$ac_ext <<_ACEOF | |
26286 | #line $LINENO "configure" | |
26287 | /* confdefs.h. */ | |
26288 | _ACEOF | |
26289 | cat confdefs.h >>conftest.$ac_ext | |
26290 | cat >>conftest.$ac_ext <<_ACEOF | |
26291 | /* end confdefs.h. */ | |
247f5006 | 26292 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26293 | which can conflict with char $ac_func (); below. |
26294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26295 | <limits.h> exists even on freestanding compilers. */ | |
26296 | #ifdef __STDC__ | |
26297 | # include <limits.h> | |
26298 | #else | |
26299 | # include <assert.h> | |
26300 | #endif | |
247f5006 VZ |
26301 | /* Override any gcc2 internal prototype to avoid an error. */ |
26302 | #ifdef __cplusplus | |
26303 | extern "C" | |
e6cc62c6 | 26304 | { |
247f5006 VZ |
26305 | #endif |
26306 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26307 | builtin and then its argument prototype would still apply. */ |
26308 | char $ac_func (); | |
247f5006 VZ |
26309 | /* The GNU C library defines this for functions which it implements |
26310 | to always fail with ENOSYS. Some functions are actually named | |
26311 | something starting with __ and the normal name is an alias. */ | |
26312 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26313 | choke me | |
26314 | #else | |
e6cc62c6 VS |
26315 | char (*f) () = $ac_func; |
26316 | #endif | |
26317 | #ifdef __cplusplus | |
26318 | } | |
247f5006 | 26319 | #endif |
af15babd | 26320 | |
e6cc62c6 VS |
26321 | int |
26322 | main () | |
26323 | { | |
26324 | return f != $ac_func; | |
26325 | ; | |
26326 | return 0; | |
26327 | } | |
26328 | _ACEOF | |
26329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26331 | (eval $ac_link) 2>&5 | |
26332 | ac_status=$? | |
26333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26334 | (exit $ac_status); } && | |
26335 | { ac_try='test -s conftest$ac_exeext' | |
26336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26337 | (eval $ac_try) 2>&5 | |
26338 | ac_status=$? | |
26339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26340 | (exit $ac_status); }; }; then | |
26341 | eval "$as_ac_var=yes" | |
26342 | else | |
26343 | echo "$as_me: failed program was:" >&5 | |
26344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26345 | ||
26346 | eval "$as_ac_var=no" | |
26347 | fi | |
26348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26349 | fi | |
26350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26351 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26352 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26353 | cat >>confdefs.h <<_ACEOF | |
26354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26355 | _ACEOF | |
52127426 | 26356 | |
5c6fa7d2 | 26357 | fi |
247f5006 | 26358 | done |
8284b0c5 | 26359 | |
4f14bcd8 | 26360 | |
8d90d2f2 | 26361 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26362 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26363 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26364 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26366 | else |
e6cc62c6 VS |
26367 | |
26368 | cat >conftest.$ac_ext <<_ACEOF | |
26369 | #line $LINENO "configure" | |
26370 | /* confdefs.h. */ | |
26371 | _ACEOF | |
26372 | cat confdefs.h >>conftest.$ac_ext | |
26373 | cat >>conftest.$ac_ext <<_ACEOF | |
26374 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26375 | |
26376 | #include <stdio.h> | |
26377 | #include <stdarg.h> | |
e6cc62c6 VS |
26378 | |
26379 | int | |
26380 | main () | |
26381 | { | |
8d90d2f2 VZ |
26382 | |
26383 | char *buf; | |
26384 | va_list ap; | |
26385 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26386 | |
26387 | ; | |
26388 | return 0; | |
26389 | } | |
26390 | _ACEOF | |
26391 | rm -f conftest.$ac_objext | |
26392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26393 | (eval $ac_compile) 2>&5 | |
26394 | ac_status=$? | |
26395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26396 | (exit $ac_status); } && | |
26397 | { ac_try='test -s conftest.$ac_objext' | |
26398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26399 | (eval $ac_try) 2>&5 | |
26400 | ac_status=$? | |
26401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26402 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26403 | wx_cv_func_vsnprintf_decl=yes |
26404 | else | |
e6cc62c6 VS |
26405 | echo "$as_me: failed program was:" >&5 |
26406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26407 | ||
26408 | wx_cv_func_vsnprintf_decl=no | |
26409 | ||
8d90d2f2 | 26410 | fi |
e6cc62c6 VS |
26411 | rm -f conftest.$ac_objext conftest.$ac_ext |
26412 | ||
8d90d2f2 | 26413 | |
e6cc62c6 VS |
26414 | fi |
26415 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26416 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26417 | |
26418 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26419 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26420 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26421 | _ACEOF |
8d90d2f2 VZ |
26422 | |
26423 | fi | |
26424 | fi | |
26425 | ||
247f5006 | 26426 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26427 | |
26428 | ||
26429 | ||
26430 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26431 | do |
e6cc62c6 VS |
26432 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26433 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26434 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26435 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26437 | else | |
26438 | cat >conftest.$ac_ext <<_ACEOF | |
26439 | #line $LINENO "configure" | |
26440 | /* confdefs.h. */ | |
26441 | _ACEOF | |
26442 | cat confdefs.h >>conftest.$ac_ext | |
26443 | cat >>conftest.$ac_ext <<_ACEOF | |
26444 | /* end confdefs.h. */ | |
d74f4b5a | 26445 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26446 | which can conflict with char $ac_func (); below. |
26447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26448 | <limits.h> exists even on freestanding compilers. */ | |
26449 | #ifdef __STDC__ | |
26450 | # include <limits.h> | |
26451 | #else | |
26452 | # include <assert.h> | |
26453 | #endif | |
d74f4b5a | 26454 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26455 | #ifdef __cplusplus |
26456 | extern "C" | |
e6cc62c6 | 26457 | { |
247f5006 | 26458 | #endif |
d74f4b5a | 26459 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26460 | builtin and then its argument prototype would still apply. */ |
26461 | char $ac_func (); | |
d74f4b5a VZ |
26462 | /* The GNU C library defines this for functions which it implements |
26463 | to always fail with ENOSYS. Some functions are actually named | |
26464 | something starting with __ and the normal name is an alias. */ | |
26465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26466 | choke me | |
26467 | #else | |
e6cc62c6 VS |
26468 | char (*f) () = $ac_func; |
26469 | #endif | |
26470 | #ifdef __cplusplus | |
26471 | } | |
d74f4b5a VZ |
26472 | #endif |
26473 | ||
e6cc62c6 VS |
26474 | int |
26475 | main () | |
26476 | { | |
26477 | return f != $ac_func; | |
26478 | ; | |
26479 | return 0; | |
26480 | } | |
26481 | _ACEOF | |
26482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26484 | (eval $ac_link) 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' | |
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 | |
26494 | eval "$as_ac_var=yes" | |
26495 | else | |
26496 | echo "$as_me: failed program was:" >&5 | |
26497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26498 | ||
26499 | eval "$as_ac_var=no" | |
26500 | fi | |
26501 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26502 | fi | |
26503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26504 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26505 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26506 | cat >>confdefs.h <<_ACEOF | |
26507 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26508 | _ACEOF | |
d74f4b5a | 26509 | |
d74f4b5a VZ |
26510 | fi |
26511 | done | |
26512 | ||
8d90d2f2 | 26513 | |
e6cc62c6 VS |
26514 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26515 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26516 | cat >conftest.$ac_ext <<_ACEOF | |
26517 | #line $LINENO "configure" | |
26518 | /* confdefs.h. */ | |
26519 | _ACEOF | |
26520 | cat confdefs.h >>conftest.$ac_ext | |
26521 | cat >>conftest.$ac_ext <<_ACEOF | |
26522 | /* end confdefs.h. */ | |
79668cae | 26523 | #include <wchar.h> |
e6cc62c6 VS |
26524 | int |
26525 | main () | |
26526 | { | |
79668cae | 26527 | &_vsnwprintf; |
e6cc62c6 VS |
26528 | ; |
26529 | return 0; | |
26530 | } | |
26531 | _ACEOF | |
26532 | rm -f conftest.$ac_objext | |
26533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26534 | (eval $ac_compile) 2>&5 | |
26535 | ac_status=$? | |
26536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26537 | (exit $ac_status); } && | |
26538 | { ac_try='test -s conftest.$ac_objext' | |
26539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26540 | (eval $ac_try) 2>&5 | |
26541 | ac_status=$? | |
26542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26543 | (exit $ac_status); }; }; then | |
26544 | echo "$as_me:$LINENO: result: yes" >&5 | |
26545 | echo "${ECHO_T}yes" >&6 | |
26546 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26547 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26548 | _ACEOF |
79668cae MB |
26549 | |
26550 | else | |
e6cc62c6 VS |
26551 | echo "$as_me: failed program was:" >&5 |
26552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26553 | ||
26554 | echo "$as_me:$LINENO: result: no" >&5 | |
26555 | echo "${ECHO_T}no" >&6 | |
79668cae | 26556 | fi |
e6cc62c6 | 26557 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26558 | fi |
26559 | ||
247f5006 VZ |
26560 | ac_ext=c |
26561 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26565 | |
26566 | ||
26567 | ||
26568 | ||
4f14bcd8 | 26569 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26570 | |
8284b0c5 MB |
26571 | |
26572 | ||
e6cc62c6 VS |
26573 | |
26574 | ac_ext=cc | |
4f14bcd8 | 26575 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26576 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26577 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26578 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26579 | |
52127426 | 26580 | |
e6cc62c6 VS |
26581 | |
26582 | ||
26583 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26584 | if test "${with_libiconv_prefix+set}" = set; then |
26585 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26586 | |
b040e242 VS |
26587 | for dir in `echo "$withval" | tr : ' '`; do |
26588 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26589 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26590 | done | |
b040e242 | 26591 | |
e6cc62c6 | 26592 | fi; |
b040e242 | 26593 | |
e6cc62c6 VS |
26594 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26595 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26596 | if test "${am_cv_func_iconv+set}" = set; then | |
26597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26598 | else |
e6cc62c6 | 26599 | |
b040e242 VS |
26600 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26601 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26602 | cat >conftest.$ac_ext <<_ACEOF |
26603 | #line $LINENO "configure" | |
26604 | /* confdefs.h. */ | |
26605 | _ACEOF | |
26606 | cat confdefs.h >>conftest.$ac_ext | |
26607 | cat >>conftest.$ac_ext <<_ACEOF | |
26608 | /* end confdefs.h. */ | |
b040e242 | 26609 | #include <stdlib.h> |
4f14bcd8 | 26610 | #include <iconv.h> |
e6cc62c6 VS |
26611 | int |
26612 | main () | |
26613 | { | |
b040e242 VS |
26614 | iconv_t cd = iconv_open("",""); |
26615 | iconv(cd,NULL,NULL,NULL,NULL); | |
26616 | iconv_close(cd); | |
e6cc62c6 VS |
26617 | ; |
26618 | return 0; | |
26619 | } | |
26620 | _ACEOF | |
26621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26623 | (eval $ac_link) 2>&5 | |
26624 | ac_status=$? | |
26625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26626 | (exit $ac_status); } && | |
26627 | { ac_try='test -s conftest$ac_exeext' | |
26628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26629 | (eval $ac_try) 2>&5 | |
26630 | ac_status=$? | |
26631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26632 | (exit $ac_status); }; }; then | |
b040e242 | 26633 | am_cv_func_iconv=yes |
af15babd | 26634 | else |
e6cc62c6 VS |
26635 | echo "$as_me: failed program was:" >&5 |
26636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26637 | ||
b040e242 | 26638 | fi |
e6cc62c6 | 26639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26640 | if test "$am_cv_func_iconv" != yes; then |
26641 | am_save_LIBS="$LIBS" | |
26642 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26643 | cat >conftest.$ac_ext <<_ACEOF |
26644 | #line $LINENO "configure" | |
26645 | /* confdefs.h. */ | |
26646 | _ACEOF | |
26647 | cat confdefs.h >>conftest.$ac_ext | |
26648 | cat >>conftest.$ac_ext <<_ACEOF | |
26649 | /* end confdefs.h. */ | |
b040e242 VS |
26650 | #include <stdlib.h> |
26651 | #include <iconv.h> | |
e6cc62c6 VS |
26652 | int |
26653 | main () | |
26654 | { | |
b040e242 VS |
26655 | iconv_t cd = iconv_open("",""); |
26656 | iconv(cd,NULL,NULL,NULL,NULL); | |
26657 | iconv_close(cd); | |
e6cc62c6 VS |
26658 | ; |
26659 | return 0; | |
26660 | } | |
26661 | _ACEOF | |
26662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26664 | (eval $ac_link) 2>&5 | |
26665 | ac_status=$? | |
26666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26667 | (exit $ac_status); } && | |
26668 | { ac_try='test -s conftest$ac_exeext' | |
26669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26670 | (eval $ac_try) 2>&5 | |
26671 | ac_status=$? | |
26672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26673 | (exit $ac_status); }; }; then | |
b040e242 VS |
26674 | am_cv_lib_iconv=yes |
26675 | am_cv_func_iconv=yes | |
26676 | else | |
e6cc62c6 VS |
26677 | echo "$as_me: failed program was:" >&5 |
26678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26679 | ||
af15babd | 26680 | fi |
e6cc62c6 | 26681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26682 | LIBS="$am_save_LIBS" |
26683 | fi | |
247f5006 | 26684 | |
e6cc62c6 VS |
26685 | fi |
26686 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26687 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26688 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26689 | |
26690 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26691 | #define HAVE_ICONV 1 |
e6cc62c6 | 26692 | _ACEOF |
b040e242 | 26693 | |
e6cc62c6 VS |
26694 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26695 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26696 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26698 | else |
e6cc62c6 VS |
26699 | cat >conftest.$ac_ext <<_ACEOF |
26700 | #line $LINENO "configure" | |
26701 | /* confdefs.h. */ | |
26702 | _ACEOF | |
26703 | cat confdefs.h >>conftest.$ac_ext | |
26704 | cat >>conftest.$ac_ext <<_ACEOF | |
26705 | /* end confdefs.h. */ | |
b040e242 VS |
26706 | |
26707 | #include <stdlib.h> | |
26708 | #include <iconv.h> | |
26709 | extern | |
26710 | #ifdef __cplusplus | |
26711 | "C" | |
26712 | #endif | |
26713 | #if defined(__STDC__) || defined(__cplusplus) | |
26714 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26715 | #else | |
26716 | size_t iconv(); | |
26717 | #endif | |
af15babd | 26718 | |
e6cc62c6 VS |
26719 | int |
26720 | main () | |
26721 | { | |
26722 | ||
26723 | ; | |
26724 | return 0; | |
26725 | } | |
26726 | _ACEOF | |
26727 | rm -f conftest.$ac_objext | |
26728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26729 | (eval $ac_compile) 2>&5 | |
26730 | ac_status=$? | |
26731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26732 | (exit $ac_status); } && | |
26733 | { ac_try='test -s conftest.$ac_objext' | |
26734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26735 | (eval $ac_try) 2>&5 | |
26736 | ac_status=$? | |
26737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26738 | (exit $ac_status); }; }; then | |
b7043674 | 26739 | wx_cv_func_iconv_const="no" |
b040e242 | 26740 | else |
e6cc62c6 VS |
26741 | echo "$as_me: failed program was:" >&5 |
26742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26743 | ||
26744 | wx_cv_func_iconv_const="yes" | |
26745 | ||
247f5006 | 26746 | fi |
e6cc62c6 | 26747 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26748 | |
e6cc62c6 VS |
26749 | fi |
26750 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26751 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26752 | |
26753 | iconv_const= | |
1c405bb5 | 26754 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26755 | iconv_const="const" |
26756 | fi | |
26757 | ||
e6cc62c6 VS |
26758 | |
26759 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26760 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26761 | _ACEOF |
b040e242 VS |
26762 | |
26763 | fi | |
26764 | LIBICONV= | |
26765 | if test "$am_cv_lib_iconv" = yes; then | |
26766 | LIBICONV="-liconv" | |
26767 | fi | |
e6cc62c6 | 26768 | |
b040e242 VS |
26769 | |
26770 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26771 | ac_ext=c |
4f14bcd8 | 26772 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26776 | |
5c6fa7d2 | 26777 | |
8284b0c5 | 26778 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26779 | |
26780 | for ac_func in sigaction | |
af15babd | 26781 | do |
e6cc62c6 VS |
26782 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26783 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26784 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26785 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26787 | else | |
26788 | cat >conftest.$ac_ext <<_ACEOF | |
26789 | #line $LINENO "configure" | |
26790 | /* confdefs.h. */ | |
26791 | _ACEOF | |
26792 | cat confdefs.h >>conftest.$ac_ext | |
26793 | cat >>conftest.$ac_ext <<_ACEOF | |
26794 | /* end confdefs.h. */ | |
af15babd | 26795 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26796 | which can conflict with char $ac_func (); below. |
26797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26798 | <limits.h> exists even on freestanding compilers. */ | |
26799 | #ifdef __STDC__ | |
26800 | # include <limits.h> | |
26801 | #else | |
26802 | # include <assert.h> | |
26803 | #endif | |
af15babd | 26804 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26805 | #ifdef __cplusplus |
26806 | extern "C" | |
26807 | { | |
26808 | #endif | |
af15babd | 26809 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26810 | builtin and then its argument prototype would still apply. */ |
26811 | char $ac_func (); | |
af15babd VZ |
26812 | /* The GNU C library defines this for functions which it implements |
26813 | to always fail with ENOSYS. Some functions are actually named | |
26814 | something starting with __ and the normal name is an alias. */ | |
26815 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26816 | choke me | |
26817 | #else | |
e6cc62c6 VS |
26818 | char (*f) () = $ac_func; |
26819 | #endif | |
26820 | #ifdef __cplusplus | |
26821 | } | |
af15babd VZ |
26822 | #endif |
26823 | ||
e6cc62c6 VS |
26824 | int |
26825 | main () | |
26826 | { | |
26827 | return f != $ac_func; | |
26828 | ; | |
26829 | return 0; | |
26830 | } | |
26831 | _ACEOF | |
26832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26834 | (eval $ac_link) 2>&5 | |
26835 | ac_status=$? | |
26836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26837 | (exit $ac_status); } && | |
26838 | { ac_try='test -s conftest$ac_exeext' | |
26839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26840 | (eval $ac_try) 2>&5 | |
26841 | ac_status=$? | |
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26843 | (exit $ac_status); }; }; then | |
26844 | eval "$as_ac_var=yes" | |
26845 | else | |
26846 | echo "$as_me: failed program was:" >&5 | |
26847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26848 | ||
26849 | eval "$as_ac_var=no" | |
26850 | fi | |
26851 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26852 | fi | |
26853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26854 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26855 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26856 | cat >>confdefs.h <<_ACEOF | |
26857 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26858 | _ACEOF | |
7b4a847f | 26859 | |
4f14bcd8 GD |
26860 | fi |
26861 | done | |
26862 | ||
8284b0c5 | 26863 | |
4f14bcd8 | 26864 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26865 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26866 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26867 | wxUSE_ON_FATAL_EXCEPTION=no |
26868 | fi | |
26869 | ||
26870 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26871 | |
26872 | ||
26873 | ac_ext=cc | |
5c6fa7d2 | 26874 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 26878 | |
5c6fa7d2 | 26879 | |
e6cc62c6 VS |
26880 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
26881 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26882 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26884 | else |
e6cc62c6 VS |
26885 | |
26886 | cat >conftest.$ac_ext <<_ACEOF | |
26887 | #line $LINENO "configure" | |
26888 | /* confdefs.h. */ | |
26889 | _ACEOF | |
26890 | cat confdefs.h >>conftest.$ac_ext | |
26891 | cat >>conftest.$ac_ext <<_ACEOF | |
26892 | /* end confdefs.h. */ | |
4f14bcd8 | 26893 | #include <signal.h> |
e6cc62c6 VS |
26894 | int |
26895 | main () | |
26896 | { | |
4f14bcd8 GD |
26897 | |
26898 | extern void testSigHandler(int); | |
26899 | ||
26900 | struct sigaction sa; | |
26901 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
26902 | |
26903 | ; | |
26904 | return 0; | |
26905 | } | |
26906 | _ACEOF | |
26907 | rm -f conftest.$ac_objext | |
26908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26909 | (eval $ac_compile) 2>&5 | |
26910 | ac_status=$? | |
26911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26912 | (exit $ac_status); } && | |
26913 | { ac_try='test -s conftest.$ac_objext' | |
26914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26915 | (eval $ac_try) 2>&5 | |
26916 | ac_status=$? | |
26917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26918 | (exit $ac_status); }; }; then | |
26919 | ||
4f14bcd8 | 26920 | wx_cv_type_sa_handler=int |
e6cc62c6 | 26921 | |
af15babd | 26922 | else |
e6cc62c6 VS |
26923 | echo "$as_me: failed program was:" >&5 |
26924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26925 | ||
26926 | ||
4f14bcd8 | 26927 | wx_cv_type_sa_handler=void |
e6cc62c6 | 26928 | |
247f5006 | 26929 | fi |
e6cc62c6 | 26930 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26931 | |
e6cc62c6 VS |
26932 | fi |
26933 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26934 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
26935 | |
26936 | ac_ext=c | |
4f14bcd8 | 26937 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 26941 | |
8284b0c5 | 26942 | |
e6cc62c6 | 26943 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26944 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 26945 | _ACEOF |
af15babd | 26946 | |
4f14bcd8 GD |
26947 | fi |
26948 | fi | |
af15babd | 26949 | |
e6cc62c6 VS |
26950 | |
26951 | ||
a1d22ad7 | 26952 | for ac_func in mkstemp mktemp |
af15babd | 26953 | do |
e6cc62c6 VS |
26954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26959 | else | |
26960 | cat >conftest.$ac_ext <<_ACEOF | |
26961 | #line $LINENO "configure" | |
26962 | /* confdefs.h. */ | |
26963 | _ACEOF | |
26964 | cat confdefs.h >>conftest.$ac_ext | |
26965 | cat >>conftest.$ac_ext <<_ACEOF | |
26966 | /* end confdefs.h. */ | |
af15babd | 26967 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26968 | which can conflict with char $ac_func (); below. |
26969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26970 | <limits.h> exists even on freestanding compilers. */ | |
26971 | #ifdef __STDC__ | |
26972 | # include <limits.h> | |
26973 | #else | |
26974 | # include <assert.h> | |
26975 | #endif | |
af15babd | 26976 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26977 | #ifdef __cplusplus |
26978 | extern "C" | |
26979 | { | |
26980 | #endif | |
af15babd | 26981 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26982 | builtin and then its argument prototype would still apply. */ |
26983 | char $ac_func (); | |
af15babd VZ |
26984 | /* The GNU C library defines this for functions which it implements |
26985 | to always fail with ENOSYS. Some functions are actually named | |
26986 | something starting with __ and the normal name is an alias. */ | |
26987 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26988 | choke me | |
26989 | #else | |
e6cc62c6 VS |
26990 | char (*f) () = $ac_func; |
26991 | #endif | |
26992 | #ifdef __cplusplus | |
26993 | } | |
af15babd VZ |
26994 | #endif |
26995 | ||
e6cc62c6 VS |
26996 | int |
26997 | main () | |
26998 | { | |
26999 | return f != $ac_func; | |
27000 | ; | |
27001 | return 0; | |
27002 | } | |
27003 | _ACEOF | |
27004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27006 | (eval $ac_link) 2>&5 | |
27007 | ac_status=$? | |
27008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27009 | (exit $ac_status); } && | |
27010 | { ac_try='test -s conftest$ac_exeext' | |
27011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27012 | (eval $ac_try) 2>&5 | |
27013 | ac_status=$? | |
27014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27015 | (exit $ac_status); }; }; then | |
27016 | eval "$as_ac_var=yes" | |
27017 | else | |
27018 | echo "$as_me: failed program was:" >&5 | |
27019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27020 | ||
27021 | eval "$as_ac_var=no" | |
27022 | fi | |
27023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27024 | fi | |
27025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27026 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27027 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27028 | cat >>confdefs.h <<_ACEOF | |
27029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27030 | _ACEOF | |
ade35f11 | 27031 | break |
ade35f11 VZ |
27032 | fi |
27033 | done | |
27034 | ||
8284b0c5 | 27035 | |
e6cc62c6 VS |
27036 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27037 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27038 | if test "${wx_cv_func_statfs+set}" = set; then | |
27039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27040 | else |
e6cc62c6 VS |
27041 | cat >conftest.$ac_ext <<_ACEOF |
27042 | #line $LINENO "configure" | |
27043 | /* confdefs.h. */ | |
27044 | _ACEOF | |
27045 | cat confdefs.h >>conftest.$ac_ext | |
27046 | cat >>conftest.$ac_ext <<_ACEOF | |
27047 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27048 | |
27049 | #if defined(__BSD__) | |
27050 | #include <sys/param.h> | |
27051 | #include <sys/mount.h> | |
27052 | #else | |
27053 | #include <sys/vfs.h> | |
27054 | #endif | |
e6cc62c6 VS |
27055 | |
27056 | int | |
27057 | main () | |
27058 | { | |
4f14bcd8 GD |
27059 | |
27060 | long l; | |
27061 | struct statfs fs; | |
27062 | statfs("/", &fs); | |
27063 | l = fs.f_bsize; | |
27064 | l += fs.f_blocks; | |
27065 | l += fs.f_bavail; | |
e6cc62c6 VS |
27066 | |
27067 | ; | |
27068 | return 0; | |
27069 | } | |
27070 | _ACEOF | |
27071 | rm -f conftest.$ac_objext | |
27072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27073 | (eval $ac_compile) 2>&5 | |
27074 | ac_status=$? | |
27075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27076 | (exit $ac_status); } && | |
27077 | { ac_try='test -s conftest.$ac_objext' | |
27078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27079 | (eval $ac_try) 2>&5 | |
27080 | ac_status=$? | |
27081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27082 | (exit $ac_status); }; }; then | |
27083 | ||
4f14bcd8 | 27084 | wx_cv_func_statfs=yes |
e6cc62c6 | 27085 | |
4f14bcd8 | 27086 | else |
e6cc62c6 VS |
27087 | echo "$as_me: failed program was:" >&5 |
27088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27089 | ||
27090 | ||
4f14bcd8 | 27091 | wx_cv_func_statfs=no |
e6cc62c6 | 27092 | |
8284b0c5 | 27093 | |
247f5006 | 27094 | fi |
e6cc62c6 | 27095 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27096 | |
e6cc62c6 VS |
27097 | fi |
27098 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27099 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27100 | |
27101 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27102 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27103 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27104 | #define HAVE_STATFS 1 |
e6cc62c6 | 27105 | _ACEOF |
4f14bcd8 GD |
27106 | |
27107 | else | |
e6cc62c6 VS |
27108 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27109 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27110 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27112 | else |
e6cc62c6 VS |
27113 | cat >conftest.$ac_ext <<_ACEOF |
27114 | #line $LINENO "configure" | |
27115 | /* confdefs.h. */ | |
27116 | _ACEOF | |
27117 | cat confdefs.h >>conftest.$ac_ext | |
27118 | cat >>conftest.$ac_ext <<_ACEOF | |
27119 | /* end confdefs.h. */ | |
af15babd | 27120 | |
54ab82b3 VZ |
27121 | #include <stddef.h> |
27122 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27123 | |
27124 | int | |
27125 | main () | |
27126 | { | |
af15babd | 27127 | |
54ab82b3 | 27128 | statvfs("/", NULL); |
e6cc62c6 VS |
27129 | |
27130 | ; | |
27131 | return 0; | |
27132 | } | |
27133 | _ACEOF | |
27134 | rm -f conftest.$ac_objext | |
27135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27136 | (eval $ac_compile) 2>&5 | |
27137 | ac_status=$? | |
27138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27139 | (exit $ac_status); } && | |
27140 | { ac_try='test -s conftest.$ac_objext' | |
27141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27142 | (eval $ac_try) 2>&5 | |
27143 | ac_status=$? | |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27145 | (exit $ac_status); }; }; then | |
54ab82b3 | 27146 | wx_cv_func_statvfs=yes |
af15babd | 27147 | else |
e6cc62c6 VS |
27148 | echo "$as_me: failed program was:" >&5 |
27149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27150 | ||
27151 | wx_cv_func_statvfs=no | |
27152 | ||
247f5006 | 27153 | fi |
e6cc62c6 | 27154 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27155 | |
e6cc62c6 VS |
27156 | fi |
27157 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27158 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27159 | |
4f14bcd8 | 27160 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27161 | |
27162 | ||
27163 | ac_ext=cc | |
54ab82b3 | 27164 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27165 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27166 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27167 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27168 | |
27169 | ||
e6cc62c6 VS |
27170 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27171 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27172 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27174 | else |
e6cc62c6 VS |
27175 | cat >conftest.$ac_ext <<_ACEOF |
27176 | #line $LINENO "configure" | |
27177 | /* confdefs.h. */ | |
27178 | _ACEOF | |
27179 | cat confdefs.h >>conftest.$ac_ext | |
27180 | cat >>conftest.$ac_ext <<_ACEOF | |
27181 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27182 | |
27183 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27184 | |
27185 | int | |
27186 | main () | |
27187 | { | |
54ab82b3 VZ |
27188 | |
27189 | long l; | |
27190 | statvfs_t fs; | |
27191 | statvfs("/", &fs); | |
27192 | l = fs.f_bsize; | |
27193 | l += fs.f_blocks; | |
27194 | l += fs.f_bavail; | |
e6cc62c6 VS |
27195 | |
27196 | ; | |
27197 | return 0; | |
27198 | } | |
27199 | _ACEOF | |
27200 | rm -f conftest.$ac_objext | |
27201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27202 | (eval $ac_compile) 2>&5 | |
27203 | ac_status=$? | |
27204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27205 | (exit $ac_status); } && | |
27206 | { ac_try='test -s conftest.$ac_objext' | |
27207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27208 | (eval $ac_try) 2>&5 | |
27209 | ac_status=$? | |
27210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27211 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27212 | wx_cv_type_statvfs_t=statvfs_t |
27213 | else | |
e6cc62c6 VS |
27214 | echo "$as_me: failed program was:" >&5 |
27215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27216 | ||
27217 | ||
27218 | cat >conftest.$ac_ext <<_ACEOF | |
27219 | #line $LINENO "configure" | |
27220 | /* confdefs.h. */ | |
27221 | _ACEOF | |
27222 | cat confdefs.h >>conftest.$ac_ext | |
27223 | cat >>conftest.$ac_ext <<_ACEOF | |
27224 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27225 | |
27226 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27227 | |
27228 | int | |
27229 | main () | |
27230 | { | |
54ab82b3 VZ |
27231 | |
27232 | long l; | |
65d8ef1e | 27233 | struct statvfs fs; |
54ab82b3 VZ |
27234 | statvfs("/", &fs); |
27235 | l = fs.f_bsize; | |
27236 | l += fs.f_blocks; | |
27237 | l += fs.f_bavail; | |
e6cc62c6 VS |
27238 | |
27239 | ; | |
27240 | return 0; | |
27241 | } | |
27242 | _ACEOF | |
27243 | rm -f conftest.$ac_objext | |
27244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27245 | (eval $ac_compile) 2>&5 | |
27246 | ac_status=$? | |
27247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27248 | (exit $ac_status); } && | |
27249 | { ac_try='test -s conftest.$ac_objext' | |
27250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27251 | (eval $ac_try) 2>&5 | |
27252 | ac_status=$? | |
27253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27254 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27255 | wx_cv_type_statvfs_t="struct statvfs" |
27256 | else | |
e6cc62c6 VS |
27257 | echo "$as_me: failed program was:" >&5 |
27258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27259 | ||
27260 | wx_cv_type_statvfs_t="unknown" | |
27261 | ||
54ab82b3 | 27262 | fi |
e6cc62c6 VS |
27263 | rm -f conftest.$ac_objext conftest.$ac_ext |
27264 | ||
27265 | ||
54ab82b3 | 27266 | fi |
e6cc62c6 | 27267 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27268 | |
e6cc62c6 VS |
27269 | fi |
27270 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27271 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27272 | |
27273 | ac_ext=c | |
54ab82b3 | 27274 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27278 | |
27279 | ||
27280 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27281 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27282 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27283 | _ACEOF |
af15babd | 27284 | |
54ab82b3 | 27285 | fi |
4f14bcd8 | 27286 | else |
54ab82b3 | 27287 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27288 | fi |
27289 | fi | |
af15babd | 27290 | |
54ab82b3 | 27291 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27292 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27293 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27294 | _ACEOF |
54ab82b3 VZ |
27295 | |
27296 | else | |
e6cc62c6 VS |
27297 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27298 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27299 | fi |
27300 | ||
4f14bcd8 | 27301 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27302 | |
27303 | ||
27304 | for ac_func in fcntl flock | |
af15babd | 27305 | do |
e6cc62c6 VS |
27306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27307 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27309 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27311 | else | |
27312 | cat >conftest.$ac_ext <<_ACEOF | |
27313 | #line $LINENO "configure" | |
27314 | /* confdefs.h. */ | |
27315 | _ACEOF | |
27316 | cat confdefs.h >>conftest.$ac_ext | |
27317 | cat >>conftest.$ac_ext <<_ACEOF | |
27318 | /* end confdefs.h. */ | |
af15babd | 27319 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27320 | which can conflict with char $ac_func (); below. |
27321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27322 | <limits.h> exists even on freestanding compilers. */ | |
27323 | #ifdef __STDC__ | |
27324 | # include <limits.h> | |
27325 | #else | |
27326 | # include <assert.h> | |
27327 | #endif | |
af15babd | 27328 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27329 | #ifdef __cplusplus |
27330 | extern "C" | |
27331 | { | |
27332 | #endif | |
af15babd | 27333 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27334 | builtin and then its argument prototype would still apply. */ |
27335 | char $ac_func (); | |
af15babd VZ |
27336 | /* The GNU C library defines this for functions which it implements |
27337 | to always fail with ENOSYS. Some functions are actually named | |
27338 | something starting with __ and the normal name is an alias. */ | |
27339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27340 | choke me | |
27341 | #else | |
e6cc62c6 VS |
27342 | char (*f) () = $ac_func; |
27343 | #endif | |
27344 | #ifdef __cplusplus | |
27345 | } | |
af15babd VZ |
27346 | #endif |
27347 | ||
e6cc62c6 VS |
27348 | int |
27349 | main () | |
27350 | { | |
27351 | return f != $ac_func; | |
27352 | ; | |
27353 | return 0; | |
27354 | } | |
27355 | _ACEOF | |
27356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27358 | (eval $ac_link) 2>&5 | |
27359 | ac_status=$? | |
27360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27361 | (exit $ac_status); } && | |
27362 | { ac_try='test -s conftest$ac_exeext' | |
27363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27364 | (eval $ac_try) 2>&5 | |
27365 | ac_status=$? | |
27366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27367 | (exit $ac_status); }; }; then | |
27368 | eval "$as_ac_var=yes" | |
27369 | else | |
27370 | echo "$as_me: failed program was:" >&5 | |
27371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27372 | ||
27373 | eval "$as_ac_var=no" | |
27374 | fi | |
27375 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27376 | fi | |
27377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27378 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27379 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27380 | cat >>confdefs.h <<_ACEOF | |
27381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27382 | _ACEOF | |
4f14bcd8 | 27383 | break |
af15babd VZ |
27384 | fi |
27385 | done | |
27386 | ||
8284b0c5 | 27387 | |
4f14bcd8 | 27388 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27389 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27390 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27391 | wxUSE_SNGLINST_CHECKER=no |
27392 | fi | |
27393 | fi | |
af15babd | 27394 | |
e6cc62c6 | 27395 | |
4f14bcd8 | 27396 | for ac_func in timegm |
af15babd | 27397 | do |
e6cc62c6 VS |
27398 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27399 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27400 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27401 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27403 | else | |
27404 | cat >conftest.$ac_ext <<_ACEOF | |
27405 | #line $LINENO "configure" | |
27406 | /* confdefs.h. */ | |
27407 | _ACEOF | |
27408 | cat confdefs.h >>conftest.$ac_ext | |
27409 | cat >>conftest.$ac_ext <<_ACEOF | |
27410 | /* end confdefs.h. */ | |
af15babd | 27411 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27412 | which can conflict with char $ac_func (); below. |
27413 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27414 | <limits.h> exists even on freestanding compilers. */ | |
27415 | #ifdef __STDC__ | |
27416 | # include <limits.h> | |
27417 | #else | |
27418 | # include <assert.h> | |
27419 | #endif | |
af15babd | 27420 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27421 | #ifdef __cplusplus |
27422 | extern "C" | |
27423 | { | |
27424 | #endif | |
af15babd | 27425 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27426 | builtin and then its argument prototype would still apply. */ |
27427 | char $ac_func (); | |
af15babd VZ |
27428 | /* The GNU C library defines this for functions which it implements |
27429 | to always fail with ENOSYS. Some functions are actually named | |
27430 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27432 | choke me | |
27433 | #else | |
e6cc62c6 VS |
27434 | char (*f) () = $ac_func; |
27435 | #endif | |
27436 | #ifdef __cplusplus | |
27437 | } | |
247f5006 VZ |
27438 | #endif |
27439 | ||
e6cc62c6 VS |
27440 | int |
27441 | main () | |
27442 | { | |
27443 | return f != $ac_func; | |
27444 | ; | |
27445 | return 0; | |
27446 | } | |
27447 | _ACEOF | |
27448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27450 | (eval $ac_link) 2>&5 | |
27451 | ac_status=$? | |
27452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27453 | (exit $ac_status); } && | |
27454 | { ac_try='test -s conftest$ac_exeext' | |
27455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27456 | (eval $ac_try) 2>&5 | |
27457 | ac_status=$? | |
27458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27459 | (exit $ac_status); }; }; then | |
27460 | eval "$as_ac_var=yes" | |
27461 | else | |
27462 | echo "$as_me: failed program was:" >&5 | |
27463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27464 | ||
27465 | eval "$as_ac_var=no" | |
27466 | fi | |
27467 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27468 | fi | |
27469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27472 | cat >>confdefs.h <<_ACEOF | |
27473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27474 | _ACEOF | |
703e0a69 | 27475 | |
af15babd VZ |
27476 | fi |
27477 | done | |
27478 | ||
8284b0c5 | 27479 | |
e6cc62c6 VS |
27480 | |
27481 | ||
4f14bcd8 | 27482 | for ac_func in putenv setenv |
10f2d63a | 27483 | do |
e6cc62c6 VS |
27484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27485 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27487 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27489 | else | |
27490 | cat >conftest.$ac_ext <<_ACEOF | |
27491 | #line $LINENO "configure" | |
27492 | /* confdefs.h. */ | |
27493 | _ACEOF | |
27494 | cat confdefs.h >>conftest.$ac_ext | |
27495 | cat >>conftest.$ac_ext <<_ACEOF | |
27496 | /* end confdefs.h. */ | |
af15babd | 27497 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27498 | which can conflict with char $ac_func (); below. |
27499 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27500 | <limits.h> exists even on freestanding compilers. */ | |
27501 | #ifdef __STDC__ | |
27502 | # include <limits.h> | |
27503 | #else | |
27504 | # include <assert.h> | |
27505 | #endif | |
af15babd | 27506 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27507 | #ifdef __cplusplus |
27508 | extern "C" | |
27509 | { | |
27510 | #endif | |
af15babd | 27511 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27512 | builtin and then its argument prototype would still apply. */ |
27513 | char $ac_func (); | |
af15babd VZ |
27514 | /* The GNU C library defines this for functions which it implements |
27515 | to always fail with ENOSYS. Some functions are actually named | |
27516 | something starting with __ and the normal name is an alias. */ | |
27517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27518 | choke me | |
27519 | #else | |
e6cc62c6 VS |
27520 | char (*f) () = $ac_func; |
27521 | #endif | |
27522 | #ifdef __cplusplus | |
27523 | } | |
af15babd VZ |
27524 | #endif |
27525 | ||
e6cc62c6 VS |
27526 | int |
27527 | main () | |
27528 | { | |
27529 | return f != $ac_func; | |
27530 | ; | |
27531 | return 0; | |
27532 | } | |
27533 | _ACEOF | |
27534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27536 | (eval $ac_link) 2>&5 | |
27537 | ac_status=$? | |
27538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27539 | (exit $ac_status); } && | |
27540 | { ac_try='test -s conftest$ac_exeext' | |
27541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27542 | (eval $ac_try) 2>&5 | |
27543 | ac_status=$? | |
27544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27545 | (exit $ac_status); }; }; then | |
27546 | eval "$as_ac_var=yes" | |
27547 | else | |
27548 | echo "$as_me: failed program was:" >&5 | |
27549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27550 | ||
27551 | eval "$as_ac_var=no" | |
27552 | fi | |
27553 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27554 | fi | |
27555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27556 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27558 | cat >>confdefs.h <<_ACEOF | |
27559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27560 | _ACEOF | |
4f14bcd8 | 27561 | break |
af15babd | 27562 | fi |
af15babd VZ |
27563 | done |
27564 | ||
8284b0c5 | 27565 | |
4f14bcd8 GD |
27566 | HAVE_SOME_SLEEP_FUNC=0 |
27567 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27568 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27569 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27570 | _ACEOF |
af15babd | 27571 | |
4f14bcd8 | 27572 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27573 | fi |
27574 | ||
4f14bcd8 | 27575 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27576 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27577 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27578 | _ACEOF |
10f2d63a | 27579 | |
4f14bcd8 | 27580 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27581 | fi |
27582 | ||
4f14bcd8 GD |
27583 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27584 | POSIX4_LINK= | |
e6cc62c6 VS |
27585 | |
27586 | for ac_func in nanosleep | |
4f14bcd8 | 27587 | do |
e6cc62c6 VS |
27588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27593 | else | |
27594 | cat >conftest.$ac_ext <<_ACEOF | |
27595 | #line $LINENO "configure" | |
27596 | /* confdefs.h. */ | |
27597 | _ACEOF | |
27598 | cat confdefs.h >>conftest.$ac_ext | |
27599 | cat >>conftest.$ac_ext <<_ACEOF | |
27600 | /* end confdefs.h. */ | |
4f14bcd8 | 27601 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27602 | which can conflict with char $ac_func (); below. |
27603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27604 | <limits.h> exists even on freestanding compilers. */ | |
27605 | #ifdef __STDC__ | |
27606 | # include <limits.h> | |
27607 | #else | |
27608 | # include <assert.h> | |
27609 | #endif | |
10f2d63a | 27610 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27611 | #ifdef __cplusplus |
27612 | extern "C" | |
27613 | { | |
27614 | #endif | |
10f2d63a | 27615 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27616 | builtin and then its argument prototype would still apply. */ |
27617 | char $ac_func (); | |
4f14bcd8 GD |
27618 | /* The GNU C library defines this for functions which it implements |
27619 | to always fail with ENOSYS. Some functions are actually named | |
27620 | something starting with __ and the normal name is an alias. */ | |
27621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27622 | choke me | |
27623 | #else | |
e6cc62c6 VS |
27624 | char (*f) () = $ac_func; |
27625 | #endif | |
27626 | #ifdef __cplusplus | |
27627 | } | |
4f14bcd8 GD |
27628 | #endif |
27629 | ||
e6cc62c6 VS |
27630 | int |
27631 | main () | |
27632 | { | |
27633 | return f != $ac_func; | |
27634 | ; | |
27635 | return 0; | |
27636 | } | |
27637 | _ACEOF | |
27638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27640 | (eval $ac_link) 2>&5 | |
27641 | ac_status=$? | |
27642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27643 | (exit $ac_status); } && | |
27644 | { ac_try='test -s conftest$ac_exeext' | |
27645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27646 | (eval $ac_try) 2>&5 | |
27647 | ac_status=$? | |
27648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27649 | (exit $ac_status); }; }; then | |
27650 | eval "$as_ac_var=yes" | |
27651 | else | |
27652 | echo "$as_me: failed program was:" >&5 | |
27653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27654 | ||
27655 | eval "$as_ac_var=no" | |
27656 | fi | |
27657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27658 | fi | |
27659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27660 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27661 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27662 | cat >>confdefs.h <<_ACEOF | |
27663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27664 | _ACEOF | |
27665 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27666 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27667 | _ACEOF |
4f14bcd8 | 27668 | |
10f2d63a | 27669 | else |
e6cc62c6 VS |
27670 | |
27671 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27672 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27673 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27675 | else |
e6cc62c6 | 27676 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27677 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27678 | cat >conftest.$ac_ext <<_ACEOF |
27679 | #line $LINENO "configure" | |
27680 | /* confdefs.h. */ | |
27681 | _ACEOF | |
27682 | cat confdefs.h >>conftest.$ac_ext | |
27683 | cat >>conftest.$ac_ext <<_ACEOF | |
27684 | /* end confdefs.h. */ | |
27685 | ||
10f2d63a | 27686 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27687 | #ifdef __cplusplus |
27688 | extern "C" | |
27689 | #endif | |
10f2d63a | 27690 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27691 | builtin and then its argument prototype would still apply. */ |
27692 | char nanosleep (); | |
27693 | int | |
27694 | main () | |
27695 | { | |
27696 | nanosleep (); | |
27697 | ; | |
27698 | return 0; | |
27699 | } | |
27700 | _ACEOF | |
27701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27703 | (eval $ac_link) 2>&5 | |
27704 | ac_status=$? | |
27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27706 | (exit $ac_status); } && | |
27707 | { ac_try='test -s conftest$ac_exeext' | |
27708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27709 | (eval $ac_try) 2>&5 | |
27710 | ac_status=$? | |
27711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27712 | (exit $ac_status); }; }; then | |
27713 | ac_cv_lib_posix4_nanosleep=yes | |
27714 | else | |
27715 | echo "$as_me: failed program was:" >&5 | |
27716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27717 | ||
27718 | ac_cv_lib_posix4_nanosleep=no | |
27719 | fi | |
27720 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27721 | LIBS=$ac_check_lib_save_LIBS | |
27722 | fi | |
27723 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27724 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27725 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27726 | ||
27727 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27728 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27729 | _ACEOF |
4f14bcd8 | 27730 | |
3d63bc3a | 27731 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27732 | |
10f2d63a | 27733 | else |
10f2d63a | 27734 | |
e6cc62c6 VS |
27735 | |
27736 | for ac_func in usleep | |
4f14bcd8 | 27737 | do |
e6cc62c6 VS |
27738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27739 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27741 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27743 | else | |
27744 | cat >conftest.$ac_ext <<_ACEOF | |
27745 | #line $LINENO "configure" | |
27746 | /* confdefs.h. */ | |
27747 | _ACEOF | |
27748 | cat confdefs.h >>conftest.$ac_ext | |
27749 | cat >>conftest.$ac_ext <<_ACEOF | |
27750 | /* end confdefs.h. */ | |
4f14bcd8 | 27751 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27752 | which can conflict with char $ac_func (); below. |
27753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27754 | <limits.h> exists even on freestanding compilers. */ | |
27755 | #ifdef __STDC__ | |
27756 | # include <limits.h> | |
27757 | #else | |
27758 | # include <assert.h> | |
27759 | #endif | |
4f14bcd8 | 27760 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27761 | #ifdef __cplusplus |
27762 | extern "C" | |
27763 | { | |
27764 | #endif | |
4f14bcd8 | 27765 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27766 | builtin and then its argument prototype would still apply. */ |
27767 | char $ac_func (); | |
4f14bcd8 GD |
27768 | /* The GNU C library defines this for functions which it implements |
27769 | to always fail with ENOSYS. Some functions are actually named | |
27770 | something starting with __ and the normal name is an alias. */ | |
27771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27772 | choke me | |
27773 | #else | |
e6cc62c6 VS |
27774 | char (*f) () = $ac_func; |
27775 | #endif | |
27776 | #ifdef __cplusplus | |
27777 | } | |
4f14bcd8 GD |
27778 | #endif |
27779 | ||
e6cc62c6 VS |
27780 | int |
27781 | main () | |
27782 | { | |
27783 | return f != $ac_func; | |
27784 | ; | |
27785 | return 0; | |
27786 | } | |
27787 | _ACEOF | |
27788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27790 | (eval $ac_link) 2>&5 | |
27791 | ac_status=$? | |
27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27793 | (exit $ac_status); } && | |
27794 | { ac_try='test -s conftest$ac_exeext' | |
27795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27796 | (eval $ac_try) 2>&5 | |
27797 | ac_status=$? | |
27798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27799 | (exit $ac_status); }; }; then | |
27800 | eval "$as_ac_var=yes" | |
27801 | else | |
27802 | echo "$as_me: failed program was:" >&5 | |
27803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27804 | ||
27805 | eval "$as_ac_var=no" | |
27806 | fi | |
27807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27808 | fi | |
27809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27810 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27811 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27812 | cat >>confdefs.h <<_ACEOF | |
27813 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27814 | _ACEOF | |
27815 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27816 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27817 | _ACEOF |
4f14bcd8 | 27818 | |
698dcdb6 | 27819 | else |
e6cc62c6 VS |
27820 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27821 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27822 | ||
10f2d63a | 27823 | fi |
4f14bcd8 | 27824 | done |
10f2d63a | 27825 | |
e6cc62c6 VS |
27826 | |
27827 | ||
6232543b | 27828 | fi |
10f2d63a | 27829 | |
e6cc62c6 VS |
27830 | |
27831 | ||
1e487827 | 27832 | fi |
4f14bcd8 | 27833 | done |
703e0a69 | 27834 | |
10f2d63a VZ |
27835 | fi |
27836 | ||
e6cc62c6 VS |
27837 | |
27838 | ||
4f14bcd8 | 27839 | for ac_func in uname gethostname |
70846f0a | 27840 | do |
e6cc62c6 VS |
27841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27842 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27844 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27846 | else | |
27847 | cat >conftest.$ac_ext <<_ACEOF | |
27848 | #line $LINENO "configure" | |
27849 | /* confdefs.h. */ | |
27850 | _ACEOF | |
27851 | cat confdefs.h >>conftest.$ac_ext | |
27852 | cat >>conftest.$ac_ext <<_ACEOF | |
27853 | /* end confdefs.h. */ | |
70846f0a | 27854 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27855 | which can conflict with char $ac_func (); below. |
27856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27857 | <limits.h> exists even on freestanding compilers. */ | |
27858 | #ifdef __STDC__ | |
27859 | # include <limits.h> | |
27860 | #else | |
27861 | # include <assert.h> | |
27862 | #endif | |
70846f0a | 27863 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27864 | #ifdef __cplusplus |
27865 | extern "C" | |
27866 | { | |
27867 | #endif | |
70846f0a | 27868 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27869 | builtin and then its argument prototype would still apply. */ |
27870 | char $ac_func (); | |
70846f0a VZ |
27871 | /* The GNU C library defines this for functions which it implements |
27872 | to always fail with ENOSYS. Some functions are actually named | |
27873 | something starting with __ and the normal name is an alias. */ | |
27874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27875 | choke me | |
27876 | #else | |
e6cc62c6 VS |
27877 | char (*f) () = $ac_func; |
27878 | #endif | |
27879 | #ifdef __cplusplus | |
27880 | } | |
70846f0a VZ |
27881 | #endif |
27882 | ||
e6cc62c6 VS |
27883 | int |
27884 | main () | |
27885 | { | |
27886 | return f != $ac_func; | |
27887 | ; | |
27888 | return 0; | |
27889 | } | |
27890 | _ACEOF | |
27891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27893 | (eval $ac_link) 2>&5 | |
27894 | ac_status=$? | |
27895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27896 | (exit $ac_status); } && | |
27897 | { ac_try='test -s conftest$ac_exeext' | |
27898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27899 | (eval $ac_try) 2>&5 | |
27900 | ac_status=$? | |
27901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27902 | (exit $ac_status); }; }; then | |
27903 | eval "$as_ac_var=yes" | |
27904 | else | |
27905 | echo "$as_me: failed program was:" >&5 | |
27906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27907 | ||
27908 | eval "$as_ac_var=no" | |
27909 | fi | |
27910 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27911 | fi | |
27912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27913 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27914 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27915 | cat >>confdefs.h <<_ACEOF | |
27916 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27917 | _ACEOF | |
4f14bcd8 | 27918 | break |
70846f0a VZ |
27919 | fi |
27920 | done | |
27921 | ||
8284b0c5 MB |
27922 | |
27923 | ||
e6cc62c6 VS |
27924 | |
27925 | ac_ext=cc | |
4f14bcd8 | 27926 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27927 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27928 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27929 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27930 | ||
8284b0c5 | 27931 | |
4f14bcd8 GD |
27932 | |
27933 | for ac_func in strtok_r | |
10f2d63a | 27934 | do |
e6cc62c6 VS |
27935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27936 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27938 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27940 | else | |
27941 | cat >conftest.$ac_ext <<_ACEOF | |
27942 | #line $LINENO "configure" | |
27943 | /* confdefs.h. */ | |
27944 | _ACEOF | |
27945 | cat confdefs.h >>conftest.$ac_ext | |
27946 | cat >>conftest.$ac_ext <<_ACEOF | |
27947 | /* end confdefs.h. */ | |
4f14bcd8 | 27948 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27949 | which can conflict with char $ac_func (); below. |
27950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27951 | <limits.h> exists even on freestanding compilers. */ | |
27952 | #ifdef __STDC__ | |
27953 | # include <limits.h> | |
27954 | #else | |
27955 | # include <assert.h> | |
27956 | #endif | |
4f14bcd8 GD |
27957 | /* Override any gcc2 internal prototype to avoid an error. */ |
27958 | #ifdef __cplusplus | |
27959 | extern "C" | |
e6cc62c6 | 27960 | { |
4f14bcd8 GD |
27961 | #endif |
27962 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27963 | builtin and then its argument prototype would still apply. */ |
27964 | char $ac_func (); | |
4f14bcd8 GD |
27965 | /* The GNU C library defines this for functions which it implements |
27966 | to always fail with ENOSYS. Some functions are actually named | |
27967 | something starting with __ and the normal name is an alias. */ | |
27968 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27969 | choke me | |
27970 | #else | |
e6cc62c6 VS |
27971 | char (*f) () = $ac_func; |
27972 | #endif | |
27973 | #ifdef __cplusplus | |
27974 | } | |
4f14bcd8 GD |
27975 | #endif |
27976 | ||
e6cc62c6 VS |
27977 | int |
27978 | main () | |
27979 | { | |
27980 | return f != $ac_func; | |
27981 | ; | |
27982 | return 0; | |
27983 | } | |
27984 | _ACEOF | |
27985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27987 | (eval $ac_link) 2>&5 | |
27988 | ac_status=$? | |
27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27990 | (exit $ac_status); } && | |
27991 | { ac_try='test -s conftest$ac_exeext' | |
27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27993 | (eval $ac_try) 2>&5 | |
27994 | ac_status=$? | |
27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27996 | (exit $ac_status); }; }; then | |
27997 | eval "$as_ac_var=yes" | |
27998 | else | |
27999 | echo "$as_me: failed program was:" >&5 | |
28000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28001 | ||
28002 | eval "$as_ac_var=no" | |
28003 | fi | |
28004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28005 | fi | |
28006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28007 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28008 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28009 | cat >>confdefs.h <<_ACEOF | |
28010 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28011 | _ACEOF | |
4f14bcd8 | 28012 | |
10f2d63a VZ |
28013 | fi |
28014 | done | |
28015 | ||
8284b0c5 | 28016 | |
4f14bcd8 | 28017 | ac_ext=c |
4f14bcd8 | 28018 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28022 | |
5c6fa7d2 | 28023 | |
8284b0c5 | 28024 | INET_LINK= |
e6cc62c6 | 28025 | |
4f14bcd8 GD |
28026 | for ac_func in inet_addr |
28027 | do | |
e6cc62c6 VS |
28028 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28029 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28030 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28031 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28033 | else | |
28034 | cat >conftest.$ac_ext <<_ACEOF | |
28035 | #line $LINENO "configure" | |
28036 | /* confdefs.h. */ | |
28037 | _ACEOF | |
28038 | cat confdefs.h >>conftest.$ac_ext | |
28039 | cat >>conftest.$ac_ext <<_ACEOF | |
28040 | /* end confdefs.h. */ | |
4f14bcd8 | 28041 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28042 | which can conflict with char $ac_func (); below. |
28043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28044 | <limits.h> exists even on freestanding compilers. */ | |
28045 | #ifdef __STDC__ | |
28046 | # include <limits.h> | |
28047 | #else | |
28048 | # include <assert.h> | |
28049 | #endif | |
10f2d63a | 28050 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28051 | #ifdef __cplusplus |
28052 | extern "C" | |
28053 | { | |
28054 | #endif | |
10f2d63a | 28055 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28056 | builtin and then its argument prototype would still apply. */ |
28057 | char $ac_func (); | |
4f14bcd8 GD |
28058 | /* The GNU C library defines this for functions which it implements |
28059 | to always fail with ENOSYS. Some functions are actually named | |
28060 | something starting with __ and the normal name is an alias. */ | |
28061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28062 | choke me | |
28063 | #else | |
e6cc62c6 VS |
28064 | char (*f) () = $ac_func; |
28065 | #endif | |
28066 | #ifdef __cplusplus | |
28067 | } | |
4f14bcd8 GD |
28068 | #endif |
28069 | ||
e6cc62c6 VS |
28070 | int |
28071 | main () | |
28072 | { | |
28073 | return f != $ac_func; | |
28074 | ; | |
28075 | return 0; | |
28076 | } | |
28077 | _ACEOF | |
28078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28080 | (eval $ac_link) 2>&5 | |
28081 | ac_status=$? | |
28082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28083 | (exit $ac_status); } && | |
28084 | { ac_try='test -s conftest$ac_exeext' | |
28085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28086 | (eval $ac_try) 2>&5 | |
28087 | ac_status=$? | |
28088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28089 | (exit $ac_status); }; }; then | |
28090 | eval "$as_ac_var=yes" | |
28091 | else | |
28092 | echo "$as_me: failed program was:" >&5 | |
28093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28094 | ||
28095 | eval "$as_ac_var=no" | |
28096 | fi | |
28097 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28098 | fi | |
28099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28100 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28101 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28102 | cat >>confdefs.h <<_ACEOF | |
28103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28104 | _ACEOF | |
28105 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28106 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28107 | _ACEOF |
10f2d63a VZ |
28108 | |
28109 | else | |
e6cc62c6 VS |
28110 | |
28111 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28112 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28113 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28115 | else |
e6cc62c6 | 28116 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28117 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
28118 | cat >conftest.$ac_ext <<_ACEOF |
28119 | #line $LINENO "configure" | |
28120 | /* confdefs.h. */ | |
28121 | _ACEOF | |
28122 | cat confdefs.h >>conftest.$ac_ext | |
28123 | cat >>conftest.$ac_ext <<_ACEOF | |
28124 | /* end confdefs.h. */ | |
28125 | ||
10f2d63a | 28126 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28127 | #ifdef __cplusplus |
28128 | extern "C" | |
28129 | #endif | |
10f2d63a | 28130 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28131 | builtin and then its argument prototype would still apply. */ |
28132 | char inet_addr (); | |
28133 | int | |
28134 | main () | |
28135 | { | |
28136 | inet_addr (); | |
28137 | ; | |
28138 | return 0; | |
28139 | } | |
28140 | _ACEOF | |
28141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28143 | (eval $ac_link) 2>&5 | |
28144 | ac_status=$? | |
28145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28146 | (exit $ac_status); } && | |
28147 | { ac_try='test -s conftest$ac_exeext' | |
28148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28149 | (eval $ac_try) 2>&5 | |
28150 | ac_status=$? | |
28151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28152 | (exit $ac_status); }; }; then | |
28153 | ac_cv_lib_nsl_inet_addr=yes | |
28154 | else | |
28155 | echo "$as_me: failed program was:" >&5 | |
28156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28157 | ||
28158 | ac_cv_lib_nsl_inet_addr=no | |
28159 | fi | |
28160 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28161 | LIBS=$ac_check_lib_save_LIBS | |
28162 | fi | |
28163 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28164 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28165 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28166 | INET_LINK="nsl" |
10f2d63a | 28167 | else |
e6cc62c6 VS |
28168 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
28169 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
28170 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28172 | else |
e6cc62c6 | 28173 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28174 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28175 | cat >conftest.$ac_ext <<_ACEOF |
28176 | #line $LINENO "configure" | |
28177 | /* confdefs.h. */ | |
28178 | _ACEOF | |
28179 | cat confdefs.h >>conftest.$ac_ext | |
28180 | cat >>conftest.$ac_ext <<_ACEOF | |
28181 | /* end confdefs.h. */ | |
28182 | ||
5c6fa7d2 | 28183 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28184 | #ifdef __cplusplus |
28185 | extern "C" | |
28186 | #endif | |
5c6fa7d2 | 28187 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28188 | builtin and then its argument prototype would still apply. */ |
28189 | char inet_addr (); | |
28190 | int | |
28191 | main () | |
28192 | { | |
28193 | inet_addr (); | |
28194 | ; | |
28195 | return 0; | |
28196 | } | |
28197 | _ACEOF | |
28198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28200 | (eval $ac_link) 2>&5 | |
28201 | ac_status=$? | |
28202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28203 | (exit $ac_status); } && | |
28204 | { ac_try='test -s conftest$ac_exeext' | |
28205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28206 | (eval $ac_try) 2>&5 | |
28207 | ac_status=$? | |
28208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28209 | (exit $ac_status); }; }; then | |
28210 | ac_cv_lib_resolv_inet_addr=yes | |
28211 | else | |
28212 | echo "$as_me: failed program was:" >&5 | |
28213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28214 | ||
28215 | ac_cv_lib_resolv_inet_addr=no | |
28216 | fi | |
28217 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28218 | LIBS=$ac_check_lib_save_LIBS | |
28219 | fi | |
28220 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28221 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28222 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28223 | INET_LINK="resolv" |
698dcdb6 | 28224 | else |
e6cc62c6 VS |
28225 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
28226 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
28227 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28229 | else |
e6cc62c6 | 28230 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28231 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28232 | cat >conftest.$ac_ext <<_ACEOF |
28233 | #line $LINENO "configure" | |
28234 | /* confdefs.h. */ | |
28235 | _ACEOF | |
28236 | cat confdefs.h >>conftest.$ac_ext | |
28237 | cat >>conftest.$ac_ext <<_ACEOF | |
28238 | /* end confdefs.h. */ | |
28239 | ||
3c011993 | 28240 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28241 | #ifdef __cplusplus |
28242 | extern "C" | |
28243 | #endif | |
3c011993 | 28244 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28245 | builtin and then its argument prototype would still apply. */ |
28246 | char inet_addr (); | |
28247 | int | |
28248 | main () | |
28249 | { | |
28250 | inet_addr (); | |
28251 | ; | |
28252 | return 0; | |
28253 | } | |
28254 | _ACEOF | |
28255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28257 | (eval $ac_link) 2>&5 | |
28258 | ac_status=$? | |
28259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28260 | (exit $ac_status); } && | |
28261 | { ac_try='test -s conftest$ac_exeext' | |
28262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28263 | (eval $ac_try) 2>&5 | |
28264 | ac_status=$? | |
28265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28266 | (exit $ac_status); }; }; then | |
28267 | ac_cv_lib_socket_inet_addr=yes | |
28268 | else | |
28269 | echo "$as_me: failed program was:" >&5 | |
28270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28271 | ||
28272 | ac_cv_lib_socket_inet_addr=no | |
28273 | fi | |
28274 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28275 | LIBS=$ac_check_lib_save_LIBS | |
28276 | fi | |
28277 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28278 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28279 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28280 | INET_LINK="socket" | |
4f14bcd8 | 28281 | |
8284b0c5 | 28282 | fi |
e6cc62c6 | 28283 | |
698dcdb6 | 28284 | |
7b4a847f | 28285 | fi |
e6cc62c6 VS |
28286 | |
28287 | ||
a0b9e27f | 28288 | fi |
579d8138 | 28289 | |
e6cc62c6 VS |
28290 | |
28291 | ||
5c6fa7d2 | 28292 | fi |
e6cc62c6 VS |
28293 | done |
28294 | ||
28295 | ||
28296 | ||
28297 | for ac_func in inet_aton | |
28298 | do | |
28299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28302 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28304 | else | |
28305 | cat >conftest.$ac_ext <<_ACEOF | |
28306 | #line $LINENO "configure" | |
28307 | /* confdefs.h. */ | |
28308 | _ACEOF | |
28309 | cat confdefs.h >>conftest.$ac_ext | |
28310 | cat >>conftest.$ac_ext <<_ACEOF | |
28311 | /* end confdefs.h. */ | |
28312 | /* System header to define __stub macros and hopefully few prototypes, | |
28313 | which can conflict with char $ac_func (); below. | |
28314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28315 | <limits.h> exists even on freestanding compilers. */ | |
28316 | #ifdef __STDC__ | |
28317 | # include <limits.h> | |
28318 | #else | |
28319 | # include <assert.h> | |
28320 | #endif | |
28321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28322 | #ifdef __cplusplus | |
28323 | extern "C" | |
28324 | { | |
28325 | #endif | |
28326 | /* We use char because int might match the return type of a gcc2 | |
28327 | builtin and then its argument prototype would still apply. */ | |
28328 | char $ac_func (); | |
28329 | /* The GNU C library defines this for functions which it implements | |
28330 | to always fail with ENOSYS. Some functions are actually named | |
28331 | something starting with __ and the normal name is an alias. */ | |
28332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28333 | choke me | |
28334 | #else | |
28335 | char (*f) () = $ac_func; | |
28336 | #endif | |
28337 | #ifdef __cplusplus | |
28338 | } | |
28339 | #endif | |
28340 | ||
28341 | int | |
28342 | main () | |
28343 | { | |
28344 | return f != $ac_func; | |
28345 | ; | |
28346 | return 0; | |
28347 | } | |
28348 | _ACEOF | |
28349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28351 | (eval $ac_link) 2>&5 | |
28352 | ac_status=$? | |
28353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28354 | (exit $ac_status); } && | |
28355 | { ac_try='test -s conftest$ac_exeext' | |
28356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28357 | (eval $ac_try) 2>&5 | |
28358 | ac_status=$? | |
28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28360 | (exit $ac_status); }; }; then | |
28361 | eval "$as_ac_var=yes" | |
28362 | else | |
28363 | echo "$as_me: failed program was:" >&5 | |
28364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28365 | ||
28366 | eval "$as_ac_var=no" | |
28367 | fi | |
28368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28369 | fi | |
28370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28372 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28373 | cat >>confdefs.h <<_ACEOF | |
28374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28375 | _ACEOF | |
28376 | cat >>confdefs.h <<\_ACEOF | |
28377 | #define HAVE_INET_ATON 1 | |
28378 | _ACEOF | |
28379 | ||
28380 | else | |
28381 | ||
28382 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28383 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28384 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28385 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28387 | else | |
28388 | ac_check_lib_save_LIBS=$LIBS | |
28389 | LIBS="-l$INET_LINK $LIBS" | |
28390 | cat >conftest.$ac_ext <<_ACEOF | |
28391 | #line $LINENO "configure" | |
28392 | /* confdefs.h. */ | |
28393 | _ACEOF | |
28394 | cat confdefs.h >>conftest.$ac_ext | |
28395 | cat >>conftest.$ac_ext <<_ACEOF | |
28396 | /* end confdefs.h. */ | |
28397 | ||
28398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28399 | #ifdef __cplusplus | |
28400 | extern "C" | |
28401 | #endif | |
28402 | /* We use char because int might match the return type of a gcc2 | |
28403 | builtin and then its argument prototype would still apply. */ | |
28404 | char inet_aton (); | |
28405 | int | |
28406 | main () | |
28407 | { | |
28408 | inet_aton (); | |
28409 | ; | |
28410 | return 0; | |
28411 | } | |
28412 | _ACEOF | |
28413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28415 | (eval $ac_link) 2>&5 | |
28416 | ac_status=$? | |
28417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28418 | (exit $ac_status); } && | |
28419 | { ac_try='test -s conftest$ac_exeext' | |
28420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28421 | (eval $ac_try) 2>&5 | |
28422 | ac_status=$? | |
28423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28424 | (exit $ac_status); }; }; then | |
28425 | eval "$as_ac_Lib=yes" | |
28426 | else | |
28427 | echo "$as_me: failed program was:" >&5 | |
28428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28429 | ||
28430 | eval "$as_ac_Lib=no" | |
28431 | fi | |
28432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28433 | LIBS=$ac_check_lib_save_LIBS | |
28434 | fi | |
28435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28436 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28437 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28438 | cat >>confdefs.h <<\_ACEOF | |
28439 | #define HAVE_INET_ATON 1 | |
28440 | _ACEOF | |
52127426 | 28441 | |
a0b9e27f | 28442 | fi |
247f5006 | 28443 | |
8284b0c5 | 28444 | |
698dcdb6 | 28445 | fi |
4f14bcd8 GD |
28446 | done |
28447 | ||
8284b0c5 | 28448 | |
e6cc62c6 VS |
28449 | if test "x$INET_LINK" != "x"; then |
28450 | cat >>confdefs.h <<\_ACEOF | |
28451 | #define HAVE_INET_ADDR 1 | |
28452 | _ACEOF | |
28453 | ||
28454 | INET_LINK=" -l$INET_LINK" | |
28455 | fi | |
28456 | ||
28457 | fi | |
a0b9e27f | 28458 | |
a0b9e27f | 28459 | |
4f14bcd8 | 28460 | |
edd891e2 VS |
28461 | EXTRALIBS_ESD= |
28462 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28463 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28464 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28466 | else | |
28467 | ac_check_lib_save_LIBS=$LIBS | |
28468 | LIBS="-lesd $LIBS" | |
28469 | cat >conftest.$ac_ext <<_ACEOF | |
28470 | #line $LINENO "configure" | |
28471 | /* confdefs.h. */ | |
28472 | _ACEOF | |
28473 | cat confdefs.h >>conftest.$ac_ext | |
28474 | cat >>conftest.$ac_ext <<_ACEOF | |
28475 | /* end confdefs.h. */ | |
28476 | ||
28477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28478 | #ifdef __cplusplus | |
28479 | extern "C" | |
28480 | #endif | |
28481 | /* We use char because int might match the return type of a gcc2 | |
28482 | builtin and then its argument prototype would still apply. */ | |
28483 | char esd_close (); | |
28484 | int | |
28485 | main () | |
28486 | { | |
28487 | esd_close (); | |
28488 | ; | |
28489 | return 0; | |
28490 | } | |
28491 | _ACEOF | |
28492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28494 | (eval $ac_link) 2>&5 | |
28495 | ac_status=$? | |
28496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28497 | (exit $ac_status); } && | |
28498 | { ac_try='test -s conftest$ac_exeext' | |
28499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28500 | (eval $ac_try) 2>&5 | |
28501 | ac_status=$? | |
28502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28503 | (exit $ac_status); }; }; then | |
28504 | ac_cv_lib_esd_esd_close=yes | |
28505 | else | |
28506 | echo "$as_me: failed program was:" >&5 | |
28507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28508 | ||
28509 | ac_cv_lib_esd_esd_close=no | |
28510 | fi | |
28511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28512 | LIBS=$ac_check_lib_save_LIBS | |
28513 | fi | |
28514 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28515 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28516 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28517 | ||
28518 | ||
28519 | for ac_header in esd.h | |
28520 | do | |
28521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28523 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28527 | fi | |
edd891e2 VS |
28528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28530 | else |
28531 | # Is the header compilable? | |
edd891e2 VS |
28532 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28533 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 VS |
28534 | cat >conftest.$ac_ext <<_ACEOF |
28535 | #line $LINENO "configure" | |
28536 | /* confdefs.h. */ | |
28537 | _ACEOF | |
28538 | cat confdefs.h >>conftest.$ac_ext | |
28539 | cat >>conftest.$ac_ext <<_ACEOF | |
28540 | /* end confdefs.h. */ | |
28541 | $ac_includes_default | |
edd891e2 | 28542 | #include <$ac_header> |
e6cc62c6 VS |
28543 | _ACEOF |
28544 | rm -f conftest.$ac_objext | |
28545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28546 | (eval $ac_compile) 2>&5 | |
28547 | ac_status=$? | |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28549 | (exit $ac_status); } && | |
28550 | { ac_try='test -s conftest.$ac_objext' | |
28551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28552 | (eval $ac_try) 2>&5 | |
28553 | ac_status=$? | |
28554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28555 | (exit $ac_status); }; }; then | |
28556 | ac_header_compiler=yes | |
28557 | else | |
28558 | echo "$as_me: failed program was:" >&5 | |
28559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28560 | ||
28561 | ac_header_compiler=no | |
28562 | fi | |
28563 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28564 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28565 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28566 | ||
28567 | # Is the header present? | |
edd891e2 VS |
28568 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28569 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 VS |
28570 | cat >conftest.$ac_ext <<_ACEOF |
28571 | #line $LINENO "configure" | |
28572 | /* confdefs.h. */ | |
28573 | _ACEOF | |
28574 | cat confdefs.h >>conftest.$ac_ext | |
28575 | cat >>conftest.$ac_ext <<_ACEOF | |
28576 | /* end confdefs.h. */ | |
edd891e2 | 28577 | #include <$ac_header> |
e6cc62c6 VS |
28578 | _ACEOF |
28579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28581 | ac_status=$? | |
28582 | grep -v '^ *+' conftest.er1 >conftest.err | |
28583 | rm -f conftest.er1 | |
28584 | cat conftest.err >&5 | |
28585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28586 | (exit $ac_status); } >/dev/null; then | |
28587 | if test -s conftest.err; then | |
28588 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28589 | else | |
28590 | ac_cpp_err= | |
28591 | fi | |
a0b9e27f | 28592 | else |
e6cc62c6 VS |
28593 | ac_cpp_err=yes |
28594 | fi | |
28595 | if test -z "$ac_cpp_err"; then | |
28596 | ac_header_preproc=yes | |
28597 | else | |
28598 | echo "$as_me: failed program was:" >&5 | |
28599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28600 | ||
28601 | ac_header_preproc=no | |
28602 | fi | |
28603 | rm -f conftest.err conftest.$ac_ext | |
28604 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28605 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28606 | ||
28607 | # So? What about this header? | |
28608 | case $ac_header_compiler:$ac_header_preproc in | |
28609 | yes:no ) | |
edd891e2 VS |
28610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28613 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28614 | ( |
28615 | cat <<\_ASBOX | |
28616 | ## ------------------------------------ ## | |
28617 | ## Report this to bug-autoconf@gnu.org. ## | |
28618 | ## ------------------------------------ ## | |
28619 | _ASBOX | |
28620 | ) | | |
28621 | sed "s/^/$as_me: WARNING: /" >&2 | |
28622 | ;; | |
28623 | no:yes ) | |
edd891e2 VS |
28624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28629 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28630 | ( |
28631 | cat <<\_ASBOX | |
28632 | ## ------------------------------------ ## | |
28633 | ## Report this to bug-autoconf@gnu.org. ## | |
28634 | ## ------------------------------------ ## | |
28635 | _ASBOX | |
28636 | ) | | |
28637 | sed "s/^/$as_me: WARNING: /" >&2 | |
28638 | ;; | |
28639 | esac | |
edd891e2 VS |
28640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
28641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28644 | else | |
edd891e2 | 28645 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 28646 | fi |
edd891e2 VS |
28647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 28649 | |
e6cc62c6 | 28650 | fi |
edd891e2 VS |
28651 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28652 | cat >>confdefs.h <<_ACEOF | |
28653 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 28654 | _ACEOF |
e6cc62c6 | 28655 | |
edd891e2 | 28656 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 28657 | |
a0b9e27f | 28658 | fi |
247f5006 | 28659 | |
edd891e2 | 28660 | done |
8284b0c5 | 28661 | |
4f14bcd8 | 28662 | |
6232543b | 28663 | fi |
10f2d63a | 28664 | |
703e0a69 | 28665 | |
8284b0c5 | 28666 | |
e6cc62c6 VS |
28667 | |
28668 | ||
28669 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28670 | # This file is a shell script that caches the results of configure |
28671 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28672 | # scripts and configure runs, see configure's option --config-cache. |
28673 | # It is not useful on other systems. If it contains results you don't | |
28674 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28675 | # |
e6cc62c6 VS |
28676 | # config.status only pays attention to the cache file if you give it |
28677 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28678 | # |
e6cc62c6 VS |
28679 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28680 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28681 | # following values. | |
28682 | ||
28683 | _ACEOF | |
28684 | ||
4f14bcd8 GD |
28685 | # The following way of writing the cache mishandles newlines in values, |
28686 | # but we know of no workaround that is simple, portable, and efficient. | |
28687 | # So, don't put newlines in cache variables' values. | |
28688 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28689 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28690 | { |
28691 | (set) 2>&1 | | |
28692 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28693 | *ac_space=\ *) | |
28694 | # `set' does not quote correctly, so add quotes (double-quote | |
28695 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28696 | sed -n \ | |
28697 | "s/'/'\\\\''/g; | |
28698 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28699 | ;; | |
28700 | *) | |
28701 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28702 | sed -n \ | |
28703 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28704 | ;; | |
28705 | esac; | |
28706 | } | | |
28707 | sed ' | |
28708 | t clear | |
28709 | : clear | |
28710 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28711 | t end | |
28712 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28713 | : end' >>confcache | |
28714 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28715 | if test -w $cache_file; then |
e6cc62c6 VS |
28716 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28717 | cat confcache >$cache_file | |
f6bcfd97 | 28718 | else |
4f14bcd8 | 28719 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28720 | fi |
4f14bcd8 GD |
28721 | fi |
28722 | rm -f confcache | |
f6bcfd97 | 28723 | |
8284b0c5 | 28724 | |
009fead0 | 28725 | CPP_MT_FLAG= |
4f14bcd8 GD |
28726 | if test "$TOOLKIT" != "MSW"; then |
28727 | ||
e6cc62c6 | 28728 | |
7274f1c7 | 28729 | THREADS_LINK= |
009fead0 | 28730 | THREADS_CFLAGS= |
7274f1c7 RL |
28731 | |
28732 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28733 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28734 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28735 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28736 | wxUSE_THREADS="no" |
28737 | fi | |
4f14bcd8 | 28738 | fi |
4f14bcd8 | 28739 | |
7274f1c7 | 28740 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28741 | |
28742 | ||
009fead0 VZ |
28743 | THREAD_OPTS="-pthread" |
28744 | case "${host}" in | |
28745 | *-*-solaris2* | *-*-sunos4* ) | |
28746 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28747 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28748 | else |
28749 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28750 | fi | |
28751 | ;; | |
28752 | *-*-freebsd*) | |
28753 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28754 | ;; | |
17234b26 MB |
28755 | *-*-darwin* | *-*-cygwin* ) |
28756 | THREAD_OPTS="" | |
4101db81 | 28757 | ;; |
8f4a9a10 | 28758 | *-*-aix*) |
009fead0 VZ |
28759 | THREAD_OPTS="pthreads" |
28760 | ;; | |
4f5a7f74 VZ |
28761 | *-hp-hpux* ) |
28762 | if test "x$GCC" != "xyes"; then | |
28763 | THREAD_OPTS="" | |
28764 | fi | |
89e3b3e4 VZ |
28765 | ;; |
28766 | ||
28767 | *-*-irix* ) | |
28768 | if test "x$GCC" = "xyes"; then | |
28769 | THREAD_OPTS="" | |
28770 | fi | |
28771 | ;; | |
28772 | ||
28773 | *-*-*UnixWare*) | |
28774 | if test "x$GCC" != "xyes"; then | |
28775 | THREAD_OPTS="-Ethread" | |
28776 | fi | |
28777 | ;; | |
009fead0 | 28778 | esac |
4f14bcd8 | 28779 | |
02a1dfba | 28780 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28781 | |
009fead0 VZ |
28782 | THREADS_OK=no |
28783 | for flag in $THREAD_OPTS; do | |
28784 | case $flag in | |
28785 | none) | |
e6cc62c6 VS |
28786 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28787 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28788 | ;; |
698dcdb6 | 28789 | |
009fead0 | 28790 | -*) |
e6cc62c6 VS |
28791 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28792 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28793 | THREADS_CFLAGS="$flag" |
28794 | ;; | |
698dcdb6 | 28795 | |
009fead0 | 28796 | *) |
e6cc62c6 VS |
28797 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28798 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28799 | THREADS_LINK="-l$flag" |
28800 | ;; | |
28801 | esac | |
10f2d63a | 28802 | |
009fead0 VZ |
28803 | save_LIBS="$LIBS" |
28804 | save_CFLAGS="$CFLAGS" | |
28805 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28806 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28807 | |
e6cc62c6 VS |
28808 | cat >conftest.$ac_ext <<_ACEOF |
28809 | #line $LINENO "configure" | |
28810 | /* confdefs.h. */ | |
28811 | _ACEOF | |
28812 | cat confdefs.h >>conftest.$ac_ext | |
28813 | cat >>conftest.$ac_ext <<_ACEOF | |
28814 | /* end confdefs.h. */ | |
009fead0 | 28815 | #include <pthread.h> |
e6cc62c6 VS |
28816 | int |
28817 | main () | |
28818 | { | |
009fead0 | 28819 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
28820 | ; |
28821 | return 0; | |
28822 | } | |
28823 | _ACEOF | |
28824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28826 | (eval $ac_link) 2>&5 | |
28827 | ac_status=$? | |
28828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28829 | (exit $ac_status); } && | |
28830 | { ac_try='test -s conftest$ac_exeext' | |
28831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28832 | (eval $ac_try) 2>&5 | |
28833 | ac_status=$? | |
28834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28835 | (exit $ac_status); }; }; then | |
009fead0 | 28836 | THREADS_OK=yes |
10f2d63a | 28837 | else |
e6cc62c6 VS |
28838 | echo "$as_me: failed program was:" >&5 |
28839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28840 | ||
6232543b | 28841 | fi |
e6cc62c6 | 28842 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 28843 | |
009fead0 VZ |
28844 | LIBS="$save_LIBS" |
28845 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 28846 | |
e6cc62c6 VS |
28847 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
28848 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
28849 | if test "x$THREADS_OK" = "xyes"; then |
28850 | break; | |
28851 | fi | |
d9b9876f | 28852 | |
009fead0 VZ |
28853 | THREADS_LINK="" |
28854 | THREADS_CFLAGS="" | |
28855 | done | |
4f14bcd8 | 28856 | |
009fead0 VZ |
28857 | if test "x$THREADS_OK" != "xyes"; then |
28858 | wxUSE_THREADS=no | |
e6cc62c6 VS |
28859 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
28860 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 28861 | else |
db82f09e VZ |
28862 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
28863 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 28864 | |
e6cc62c6 VS |
28865 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
28866 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
28867 | flag=no |
28868 | case "${host}" in | |
2b5f62a0 VZ |
28869 | *-aix*) |
28870 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28871 | flag="-D_THREAD_SAFE" | |
28872 | ;; | |
28873 | *-freebsd*) | |
009fead0 VZ |
28874 | flag="-D_THREAD_SAFE" |
28875 | ;; | |
06313569 GD |
28876 | *-hp-hpux* ) |
28877 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
28878 | if test "x$GCC" != "xyes"; then |
28879 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28880 | fi | |
06313569 | 28881 | ;; |
009fead0 VZ |
28882 | *solaris* | alpha*-osf*) |
28883 | flag="-D_REENTRANT" | |
28884 | ;; | |
28885 | esac | |
e6cc62c6 VS |
28886 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
28887 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 28888 | if test "x$flag" != xno; then |
04727afd | 28889 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
28890 | fi |
28891 | ||
009fead0 | 28892 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 28893 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
28894 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
28895 | fi | |
28896 | fi | |
4f14bcd8 | 28897 | fi |
4f14bcd8 | 28898 | |
7274f1c7 | 28899 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28900 | |
28901 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 28902 | do |
e6cc62c6 VS |
28903 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28904 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28905 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28906 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28908 | else | |
28909 | cat >conftest.$ac_ext <<_ACEOF | |
28910 | #line $LINENO "configure" | |
28911 | /* confdefs.h. */ | |
28912 | _ACEOF | |
28913 | cat confdefs.h >>conftest.$ac_ext | |
28914 | cat >>conftest.$ac_ext <<_ACEOF | |
28915 | /* end confdefs.h. */ | |
4f14bcd8 | 28916 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28917 | which can conflict with char $ac_func (); below. |
28918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28919 | <limits.h> exists even on freestanding compilers. */ | |
28920 | #ifdef __STDC__ | |
28921 | # include <limits.h> | |
28922 | #else | |
28923 | # include <assert.h> | |
28924 | #endif | |
4f14bcd8 | 28925 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28926 | #ifdef __cplusplus |
28927 | extern "C" | |
28928 | { | |
28929 | #endif | |
4f14bcd8 | 28930 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28931 | builtin and then its argument prototype would still apply. */ |
28932 | char $ac_func (); | |
4f14bcd8 GD |
28933 | /* The GNU C library defines this for functions which it implements |
28934 | to always fail with ENOSYS. Some functions are actually named | |
28935 | something starting with __ and the normal name is an alias. */ | |
28936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28937 | choke me | |
28938 | #else | |
e6cc62c6 VS |
28939 | char (*f) () = $ac_func; |
28940 | #endif | |
28941 | #ifdef __cplusplus | |
28942 | } | |
4f14bcd8 GD |
28943 | #endif |
28944 | ||
e6cc62c6 VS |
28945 | int |
28946 | main () | |
28947 | { | |
28948 | return f != $ac_func; | |
28949 | ; | |
28950 | return 0; | |
28951 | } | |
28952 | _ACEOF | |
28953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28955 | (eval $ac_link) 2>&5 | |
28956 | ac_status=$? | |
28957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28958 | (exit $ac_status); } && | |
28959 | { ac_try='test -s conftest$ac_exeext' | |
28960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28961 | (eval $ac_try) 2>&5 | |
28962 | ac_status=$? | |
28963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28964 | (exit $ac_status); }; }; then | |
28965 | eval "$as_ac_var=yes" | |
28966 | else | |
28967 | echo "$as_me: failed program was:" >&5 | |
28968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28969 | ||
28970 | eval "$as_ac_var=no" | |
28971 | fi | |
28972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28973 | fi | |
28974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28976 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28977 | cat >>confdefs.h <<_ACEOF | |
28978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28979 | _ACEOF | |
698dcdb6 | 28980 | |
10f2d63a | 28981 | fi |
4f14bcd8 | 28982 | done |
10f2d63a | 28983 | |
8284b0c5 | 28984 | |
e6cc62c6 VS |
28985 | |
28986 | for ac_header in sched.h | |
4f14bcd8 | 28987 | do |
e6cc62c6 VS |
28988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28994 | fi | |
28995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28997 | else | |
28998 | # Is the header compilable? | |
28999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29001 | cat >conftest.$ac_ext <<_ACEOF | |
29002 | #line $LINENO "configure" | |
29003 | /* confdefs.h. */ | |
29004 | _ACEOF | |
29005 | cat confdefs.h >>conftest.$ac_ext | |
29006 | cat >>conftest.$ac_ext <<_ACEOF | |
29007 | /* end confdefs.h. */ | |
29008 | $ac_includes_default | |
29009 | #include <$ac_header> | |
29010 | _ACEOF | |
29011 | rm -f conftest.$ac_objext | |
29012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29013 | (eval $ac_compile) 2>&5 | |
29014 | ac_status=$? | |
29015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29016 | (exit $ac_status); } && | |
29017 | { ac_try='test -s conftest.$ac_objext' | |
29018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29019 | (eval $ac_try) 2>&5 | |
29020 | ac_status=$? | |
29021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29022 | (exit $ac_status); }; }; then | |
29023 | ac_header_compiler=yes | |
29024 | else | |
29025 | echo "$as_me: failed program was:" >&5 | |
29026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29027 | ||
29028 | ac_header_compiler=no | |
29029 | fi | |
29030 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29032 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29033 | ||
29034 | # Is the header present? | |
29035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29037 | cat >conftest.$ac_ext <<_ACEOF | |
29038 | #line $LINENO "configure" | |
29039 | /* confdefs.h. */ | |
29040 | _ACEOF | |
29041 | cat confdefs.h >>conftest.$ac_ext | |
29042 | cat >>conftest.$ac_ext <<_ACEOF | |
29043 | /* end confdefs.h. */ | |
29044 | #include <$ac_header> | |
29045 | _ACEOF | |
29046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29048 | ac_status=$? | |
29049 | grep -v '^ *+' conftest.er1 >conftest.err | |
29050 | rm -f conftest.er1 | |
29051 | cat conftest.err >&5 | |
29052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29053 | (exit $ac_status); } >/dev/null; then | |
29054 | if test -s conftest.err; then | |
29055 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29056 | else | |
29057 | ac_cpp_err= | |
29058 | fi | |
29059 | else | |
29060 | ac_cpp_err=yes | |
29061 | fi | |
29062 | if test -z "$ac_cpp_err"; then | |
29063 | ac_header_preproc=yes | |
29064 | else | |
29065 | echo "$as_me: failed program was:" >&5 | |
29066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29067 | ||
29068 | ac_header_preproc=no | |
29069 | fi | |
29070 | rm -f conftest.err conftest.$ac_ext | |
29071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29072 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29073 | ||
29074 | # So? What about this header? | |
29075 | case $ac_header_compiler:$ac_header_preproc in | |
29076 | yes:no ) | |
29077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29080 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29081 | ( | |
29082 | cat <<\_ASBOX | |
29083 | ## ------------------------------------ ## | |
29084 | ## Report this to bug-autoconf@gnu.org. ## | |
29085 | ## ------------------------------------ ## | |
29086 | _ASBOX | |
29087 | ) | | |
29088 | sed "s/^/$as_me: WARNING: /" >&2 | |
29089 | ;; | |
29090 | no:yes ) | |
29091 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29092 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29093 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29094 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29095 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29096 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29097 | ( | |
29098 | cat <<\_ASBOX | |
29099 | ## ------------------------------------ ## | |
29100 | ## Report this to bug-autoconf@gnu.org. ## | |
29101 | ## ------------------------------------ ## | |
29102 | _ASBOX | |
29103 | ) | | |
29104 | sed "s/^/$as_me: WARNING: /" >&2 | |
29105 | ;; | |
29106 | esac | |
29107 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29111 | else | |
29112 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 29113 | fi |
e6cc62c6 VS |
29114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29116 | ||
10f2d63a | 29117 | fi |
e6cc62c6 VS |
29118 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29119 | cat >>confdefs.h <<_ACEOF | |
29120 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29121 | _ACEOF | |
29122 | ||
f6bcfd97 | 29123 | fi |
e6cc62c6 | 29124 | |
4f14bcd8 | 29125 | done |
f6bcfd97 | 29126 | |
009fead0 | 29127 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29128 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29129 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29130 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29132 | else | |
29133 | cat >conftest.$ac_ext <<_ACEOF | |
29134 | #line $LINENO "configure" | |
29135 | /* confdefs.h. */ | |
29136 | _ACEOF | |
29137 | cat confdefs.h >>conftest.$ac_ext | |
29138 | cat >>conftest.$ac_ext <<_ACEOF | |
29139 | /* end confdefs.h. */ | |
009fead0 | 29140 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29141 | which can conflict with char sched_yield (); below. |
29142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29143 | <limits.h> exists even on freestanding compilers. */ | |
29144 | #ifdef __STDC__ | |
29145 | # include <limits.h> | |
29146 | #else | |
29147 | # include <assert.h> | |
29148 | #endif | |
4f14bcd8 | 29149 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29150 | #ifdef __cplusplus |
29151 | extern "C" | |
29152 | { | |
29153 | #endif | |
4f14bcd8 | 29154 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29155 | builtin and then its argument prototype would still apply. */ |
29156 | char sched_yield (); | |
009fead0 VZ |
29157 | /* The GNU C library defines this for functions which it implements |
29158 | to always fail with ENOSYS. Some functions are actually named | |
29159 | something starting with __ and the normal name is an alias. */ | |
29160 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29161 | choke me | |
29162 | #else | |
e6cc62c6 VS |
29163 | char (*f) () = sched_yield; |
29164 | #endif | |
29165 | #ifdef __cplusplus | |
29166 | } | |
009fead0 VZ |
29167 | #endif |
29168 | ||
e6cc62c6 VS |
29169 | int |
29170 | main () | |
29171 | { | |
29172 | return f != sched_yield; | |
29173 | ; | |
29174 | return 0; | |
29175 | } | |
29176 | _ACEOF | |
29177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29179 | (eval $ac_link) 2>&5 | |
29180 | ac_status=$? | |
29181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29182 | (exit $ac_status); } && | |
29183 | { ac_try='test -s conftest$ac_exeext' | |
29184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29185 | (eval $ac_try) 2>&5 | |
29186 | ac_status=$? | |
29187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29188 | (exit $ac_status); }; }; then | |
29189 | ac_cv_func_sched_yield=yes | |
29190 | else | |
29191 | echo "$as_me: failed program was:" >&5 | |
29192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29193 | ||
29194 | ac_cv_func_sched_yield=no | |
29195 | fi | |
29196 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29197 | fi | |
29198 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29199 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29200 | if test $ac_cv_func_sched_yield = yes; then | |
29201 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29202 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29203 | _ACEOF |
10f2d63a | 29204 | |
4f14bcd8 | 29205 | else |
009fead0 | 29206 | |
e6cc62c6 VS |
29207 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29208 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29209 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29211 | else |
e6cc62c6 | 29212 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29213 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29214 | cat >conftest.$ac_ext <<_ACEOF |
29215 | #line $LINENO "configure" | |
29216 | /* confdefs.h. */ | |
29217 | _ACEOF | |
29218 | cat confdefs.h >>conftest.$ac_ext | |
29219 | cat >>conftest.$ac_ext <<_ACEOF | |
29220 | /* end confdefs.h. */ | |
29221 | ||
4f14bcd8 | 29222 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29223 | #ifdef __cplusplus |
29224 | extern "C" | |
29225 | #endif | |
4f14bcd8 | 29226 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29227 | builtin and then its argument prototype would still apply. */ |
29228 | char sched_yield (); | |
29229 | int | |
29230 | main () | |
29231 | { | |
29232 | sched_yield (); | |
29233 | ; | |
29234 | return 0; | |
29235 | } | |
29236 | _ACEOF | |
29237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29239 | (eval $ac_link) 2>&5 | |
29240 | ac_status=$? | |
29241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29242 | (exit $ac_status); } && | |
29243 | { ac_try='test -s conftest$ac_exeext' | |
29244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29245 | (eval $ac_try) 2>&5 | |
29246 | ac_status=$? | |
29247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29248 | (exit $ac_status); }; }; then | |
29249 | ac_cv_lib_posix4_sched_yield=yes | |
29250 | else | |
29251 | echo "$as_me: failed program was:" >&5 | |
29252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29253 | ||
29254 | ac_cv_lib_posix4_sched_yield=no | |
29255 | fi | |
29256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29257 | LIBS=$ac_check_lib_save_LIBS | |
29258 | fi | |
29259 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29260 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29261 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29262 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29263 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29264 | _ACEOF |
3d63bc3a | 29265 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29266 | else |
e6cc62c6 VS |
29267 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29268 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29269 | ||
54276ccf VZ |
29270 | fi |
29271 | ||
e6cc62c6 VS |
29272 | |
29273 | ||
4f14bcd8 | 29274 | fi |
698dcdb6 | 29275 | |
009fead0 | 29276 | fi |
10f2d63a | 29277 | |
7274f1c7 | 29278 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29279 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29280 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29281 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29283 | else | |
29284 | cat >conftest.$ac_ext <<_ACEOF | |
29285 | #line $LINENO "configure" | |
29286 | /* confdefs.h. */ | |
29287 | _ACEOF | |
29288 | cat confdefs.h >>conftest.$ac_ext | |
29289 | cat >>conftest.$ac_ext <<_ACEOF | |
29290 | /* end confdefs.h. */ | |
009fead0 | 29291 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29292 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29294 | <limits.h> exists even on freestanding compilers. */ | |
29295 | #ifdef __STDC__ | |
29296 | # include <limits.h> | |
29297 | #else | |
29298 | # include <assert.h> | |
29299 | #endif | |
4f14bcd8 | 29300 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29301 | #ifdef __cplusplus |
29302 | extern "C" | |
29303 | { | |
29304 | #endif | |
4f14bcd8 | 29305 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29306 | builtin and then its argument prototype would still apply. */ |
29307 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29308 | /* The GNU C library defines this for functions which it implements |
29309 | to always fail with ENOSYS. Some functions are actually named | |
29310 | something starting with __ and the normal name is an alias. */ | |
29311 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29312 | choke me | |
29313 | #else | |
e6cc62c6 VS |
29314 | char (*f) () = pthread_attr_getschedpolicy; |
29315 | #endif | |
29316 | #ifdef __cplusplus | |
29317 | } | |
009fead0 VZ |
29318 | #endif |
29319 | ||
e6cc62c6 VS |
29320 | int |
29321 | main () | |
29322 | { | |
29323 | return f != pthread_attr_getschedpolicy; | |
29324 | ; | |
29325 | return 0; | |
29326 | } | |
29327 | _ACEOF | |
29328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29330 | (eval $ac_link) 2>&5 | |
29331 | ac_status=$? | |
29332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29333 | (exit $ac_status); } && | |
29334 | { ac_try='test -s conftest$ac_exeext' | |
29335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29336 | (eval $ac_try) 2>&5 | |
29337 | ac_status=$? | |
29338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29339 | (exit $ac_status); }; }; then | |
29340 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29341 | else | |
29342 | echo "$as_me: failed program was:" >&5 | |
29343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29344 | ||
29345 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29346 | fi | |
29347 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29348 | fi | |
29349 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29350 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29351 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29352 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29353 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29354 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29356 | else | |
29357 | cat >conftest.$ac_ext <<_ACEOF | |
29358 | #line $LINENO "configure" | |
29359 | /* confdefs.h. */ | |
29360 | _ACEOF | |
29361 | cat confdefs.h >>conftest.$ac_ext | |
29362 | cat >>conftest.$ac_ext <<_ACEOF | |
29363 | /* end confdefs.h. */ | |
a0b9e27f | 29364 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29365 | which can conflict with char pthread_attr_setschedparam (); below. |
29366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29367 | <limits.h> exists even on freestanding compilers. */ | |
29368 | #ifdef __STDC__ | |
29369 | # include <limits.h> | |
29370 | #else | |
29371 | # include <assert.h> | |
29372 | #endif | |
422107f9 | 29373 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29374 | #ifdef __cplusplus |
29375 | extern "C" | |
29376 | { | |
29377 | #endif | |
422107f9 | 29378 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29379 | builtin and then its argument prototype would still apply. */ |
29380 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29381 | /* The GNU C library defines this for functions which it implements |
29382 | to always fail with ENOSYS. Some functions are actually named | |
29383 | something starting with __ and the normal name is an alias. */ | |
29384 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29385 | choke me | |
29386 | #else | |
e6cc62c6 VS |
29387 | char (*f) () = pthread_attr_setschedparam; |
29388 | #endif | |
29389 | #ifdef __cplusplus | |
29390 | } | |
009fead0 VZ |
29391 | #endif |
29392 | ||
e6cc62c6 VS |
29393 | int |
29394 | main () | |
29395 | { | |
29396 | return f != pthread_attr_setschedparam; | |
29397 | ; | |
29398 | return 0; | |
29399 | } | |
29400 | _ACEOF | |
29401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29403 | (eval $ac_link) 2>&5 | |
29404 | ac_status=$? | |
29405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29406 | (exit $ac_status); } && | |
29407 | { ac_try='test -s conftest$ac_exeext' | |
29408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29409 | (eval $ac_try) 2>&5 | |
29410 | ac_status=$? | |
29411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29412 | (exit $ac_status); }; }; then | |
29413 | ac_cv_func_pthread_attr_setschedparam=yes | |
29414 | else | |
29415 | echo "$as_me: failed program was:" >&5 | |
29416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29417 | ||
29418 | ac_cv_func_pthread_attr_setschedparam=no | |
29419 | fi | |
29420 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29421 | fi | |
29422 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29423 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29424 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29425 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29426 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29427 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29429 | else | |
29430 | cat >conftest.$ac_ext <<_ACEOF | |
29431 | #line $LINENO "configure" | |
29432 | /* confdefs.h. */ | |
29433 | _ACEOF | |
29434 | cat confdefs.h >>conftest.$ac_ext | |
29435 | cat >>conftest.$ac_ext <<_ACEOF | |
29436 | /* end confdefs.h. */ | |
ef33c576 | 29437 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29438 | which can conflict with char sched_get_priority_max (); below. |
29439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29440 | <limits.h> exists even on freestanding compilers. */ | |
29441 | #ifdef __STDC__ | |
29442 | # include <limits.h> | |
29443 | #else | |
29444 | # include <assert.h> | |
29445 | #endif | |
4f14bcd8 | 29446 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29447 | #ifdef __cplusplus |
29448 | extern "C" | |
29449 | { | |
29450 | #endif | |
4f14bcd8 | 29451 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29452 | builtin and then its argument prototype would still apply. */ |
29453 | char sched_get_priority_max (); | |
009fead0 VZ |
29454 | /* The GNU C library defines this for functions which it implements |
29455 | to always fail with ENOSYS. Some functions are actually named | |
29456 | something starting with __ and the normal name is an alias. */ | |
29457 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29458 | choke me | |
29459 | #else | |
e6cc62c6 VS |
29460 | char (*f) () = sched_get_priority_max; |
29461 | #endif | |
29462 | #ifdef __cplusplus | |
29463 | } | |
009fead0 VZ |
29464 | #endif |
29465 | ||
e6cc62c6 VS |
29466 | int |
29467 | main () | |
29468 | { | |
29469 | return f != sched_get_priority_max; | |
29470 | ; | |
29471 | return 0; | |
29472 | } | |
29473 | _ACEOF | |
29474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29476 | (eval $ac_link) 2>&5 | |
29477 | ac_status=$? | |
29478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29479 | (exit $ac_status); } && | |
29480 | { ac_try='test -s conftest$ac_exeext' | |
29481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29482 | (eval $ac_try) 2>&5 | |
29483 | ac_status=$? | |
29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29485 | (exit $ac_status); }; }; then | |
29486 | ac_cv_func_sched_get_priority_max=yes | |
29487 | else | |
29488 | echo "$as_me: failed program was:" >&5 | |
29489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29490 | ||
29491 | ac_cv_func_sched_get_priority_max=no | |
29492 | fi | |
29493 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29494 | fi | |
29495 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29496 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29497 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29498 | HAVE_PRIOR_FUNCS=1 |
29499 | else | |
e6cc62c6 VS |
29500 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29501 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29502 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29504 | else |
e6cc62c6 | 29505 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29506 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29507 | cat >conftest.$ac_ext <<_ACEOF |
29508 | #line $LINENO "configure" | |
29509 | /* confdefs.h. */ | |
29510 | _ACEOF | |
29511 | cat confdefs.h >>conftest.$ac_ext | |
29512 | cat >>conftest.$ac_ext <<_ACEOF | |
29513 | /* end confdefs.h. */ | |
29514 | ||
422107f9 | 29515 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29516 | #ifdef __cplusplus |
29517 | extern "C" | |
29518 | #endif | |
422107f9 | 29519 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29520 | builtin and then its argument prototype would still apply. */ |
29521 | char sched_get_priority_max (); | |
29522 | int | |
29523 | main () | |
29524 | { | |
29525 | sched_get_priority_max (); | |
29526 | ; | |
29527 | return 0; | |
29528 | } | |
29529 | _ACEOF | |
29530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29532 | (eval $ac_link) 2>&5 | |
29533 | ac_status=$? | |
29534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29535 | (exit $ac_status); } && | |
29536 | { ac_try='test -s conftest$ac_exeext' | |
29537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29538 | (eval $ac_try) 2>&5 | |
29539 | ac_status=$? | |
29540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29541 | (exit $ac_status); }; }; then | |
29542 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29543 | else | |
29544 | echo "$as_me: failed program was:" >&5 | |
29545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29546 | ||
29547 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29548 | fi | |
29549 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29550 | LIBS=$ac_check_lib_save_LIBS | |
29551 | fi | |
29552 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29553 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29554 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29555 | |
7274f1c7 RL |
29556 | HAVE_PRIOR_FUNCS=1 |
29557 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29558 | |
4f14bcd8 | 29559 | fi |
463abc64 | 29560 | |
e6cc62c6 | 29561 | |
328a083c | 29562 | fi |
463abc64 | 29563 | |
e6cc62c6 | 29564 | |
7b4a847f | 29565 | fi |
579d8138 | 29566 | |
e6cc62c6 | 29567 | |
5c6fa7d2 | 29568 | fi |
52127426 | 29569 | |
8284b0c5 | 29570 | |
7274f1c7 | 29571 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29572 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29573 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29574 | _ACEOF |
463abc64 | 29575 | |
7274f1c7 | 29576 | else |
e6cc62c6 VS |
29577 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29578 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29579 | fi |
463abc64 | 29580 | |
e6cc62c6 VS |
29581 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29582 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29583 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29585 | else | |
29586 | cat >conftest.$ac_ext <<_ACEOF | |
29587 | #line $LINENO "configure" | |
29588 | /* confdefs.h. */ | |
29589 | _ACEOF | |
29590 | cat confdefs.h >>conftest.$ac_ext | |
29591 | cat >>conftest.$ac_ext <<_ACEOF | |
29592 | /* end confdefs.h. */ | |
009fead0 | 29593 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29594 | which can conflict with char pthread_cancel (); below. |
29595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29596 | <limits.h> exists even on freestanding compilers. */ | |
29597 | #ifdef __STDC__ | |
29598 | # include <limits.h> | |
29599 | #else | |
29600 | # include <assert.h> | |
29601 | #endif | |
422107f9 | 29602 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29603 | #ifdef __cplusplus |
29604 | extern "C" | |
29605 | { | |
29606 | #endif | |
422107f9 | 29607 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29608 | builtin and then its argument prototype would still apply. */ |
29609 | char pthread_cancel (); | |
009fead0 VZ |
29610 | /* The GNU C library defines this for functions which it implements |
29611 | to always fail with ENOSYS. Some functions are actually named | |
29612 | something starting with __ and the normal name is an alias. */ | |
29613 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29614 | choke me | |
29615 | #else | |
e6cc62c6 VS |
29616 | char (*f) () = pthread_cancel; |
29617 | #endif | |
29618 | #ifdef __cplusplus | |
29619 | } | |
009fead0 VZ |
29620 | #endif |
29621 | ||
e6cc62c6 VS |
29622 | int |
29623 | main () | |
29624 | { | |
29625 | return f != pthread_cancel; | |
29626 | ; | |
29627 | return 0; | |
29628 | } | |
29629 | _ACEOF | |
29630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29632 | (eval $ac_link) 2>&5 | |
29633 | ac_status=$? | |
29634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29635 | (exit $ac_status); } && | |
29636 | { ac_try='test -s conftest$ac_exeext' | |
29637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29638 | (eval $ac_try) 2>&5 | |
29639 | ac_status=$? | |
29640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29641 | (exit $ac_status); }; }; then | |
29642 | ac_cv_func_pthread_cancel=yes | |
29643 | else | |
29644 | echo "$as_me: failed program was:" >&5 | |
29645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29646 | ||
29647 | ac_cv_func_pthread_cancel=no | |
29648 | fi | |
29649 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29650 | fi | |
29651 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29652 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29653 | if test $ac_cv_func_pthread_cancel = yes; then | |
29654 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29655 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29656 | _ACEOF |
4f14bcd8 | 29657 | |
698dcdb6 | 29658 | else |
e6cc62c6 VS |
29659 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29660 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29661 | fi |
29662 | ||
5c6fa7d2 | 29663 | |
e6cc62c6 VS |
29664 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29665 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29666 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29668 | else |
e6cc62c6 VS |
29669 | |
29670 | cat >conftest.$ac_ext <<_ACEOF | |
29671 | #line $LINENO "configure" | |
29672 | /* confdefs.h. */ | |
29673 | _ACEOF | |
29674 | cat confdefs.h >>conftest.$ac_ext | |
29675 | cat >>conftest.$ac_ext <<_ACEOF | |
29676 | /* end confdefs.h. */ | |
4f14bcd8 | 29677 | #include <pthread.h> |
e6cc62c6 VS |
29678 | int |
29679 | main () | |
29680 | { | |
4f14bcd8 | 29681 | |
7274f1c7 RL |
29682 | pthread_cleanup_push(NULL, NULL); |
29683 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29684 | |
29685 | ; | |
29686 | return 0; | |
29687 | } | |
29688 | _ACEOF | |
29689 | rm -f conftest.$ac_objext | |
29690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29691 | (eval $ac_compile) 2>&5 | |
29692 | ac_status=$? | |
29693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29694 | (exit $ac_status); } && | |
29695 | { ac_try='test -s conftest.$ac_objext' | |
29696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29697 | (eval $ac_try) 2>&5 | |
29698 | ac_status=$? | |
29699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29700 | (exit $ac_status); }; }; then | |
29701 | ||
7274f1c7 | 29702 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29703 | |
4f14bcd8 | 29704 | else |
e6cc62c6 VS |
29705 | echo "$as_me: failed program was:" >&5 |
29706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29707 | ||
29708 | ||
7274f1c7 | 29709 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29710 | |
247f5006 | 29711 | fi |
e6cc62c6 | 29712 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29713 | |
e6cc62c6 VS |
29714 | fi |
29715 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29716 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29717 | |
7274f1c7 | 29718 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29719 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29720 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29721 | _ACEOF |
c7a2bf27 | 29722 | |
7274f1c7 | 29723 | fi |
4f14bcd8 | 29724 | |
e6cc62c6 VS |
29725 | |
29726 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29727 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29728 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29730 | else |
e6cc62c6 VS |
29731 | |
29732 | cat >conftest.$ac_ext <<_ACEOF | |
29733 | #line $LINENO "configure" | |
29734 | /* confdefs.h. */ | |
29735 | _ACEOF | |
29736 | cat confdefs.h >>conftest.$ac_ext | |
29737 | cat >>conftest.$ac_ext <<_ACEOF | |
29738 | /* end confdefs.h. */ | |
4f14bcd8 | 29739 | #include <pthread.h> |
e6cc62c6 VS |
29740 | int |
29741 | main () | |
29742 | { | |
4f14bcd8 | 29743 | |
7274f1c7 RL |
29744 | pthread_mutexattr_t attr; |
29745 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29746 | |
29747 | ; | |
29748 | return 0; | |
29749 | } | |
29750 | _ACEOF | |
29751 | rm -f conftest.$ac_objext | |
29752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29753 | (eval $ac_compile) 2>&5 | |
29754 | ac_status=$? | |
29755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29756 | (exit $ac_status); } && | |
29757 | { ac_try='test -s conftest.$ac_objext' | |
29758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29759 | (eval $ac_try) 2>&5 | |
29760 | ac_status=$? | |
29761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29762 | (exit $ac_status); }; }; then | |
29763 | ||
7274f1c7 | 29764 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29765 | |
3fed1840 | 29766 | else |
e6cc62c6 VS |
29767 | echo "$as_me: failed program was:" >&5 |
29768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29769 | ||
29770 | ||
7274f1c7 | 29771 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29772 | |
29773 | ||
247f5006 | 29774 | fi |
e6cc62c6 | 29775 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29776 | |
e6cc62c6 VS |
29777 | fi |
29778 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29779 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29780 | |
7274f1c7 | 29781 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29782 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29783 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29784 | _ACEOF |
4f14bcd8 | 29785 | |
7274f1c7 | 29786 | else |
e6cc62c6 VS |
29787 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29788 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29789 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29791 | else | |
29792 | ||
29793 | cat >conftest.$ac_ext <<_ACEOF | |
29794 | #line $LINENO "configure" | |
29795 | /* confdefs.h. */ | |
29796 | _ACEOF | |
29797 | cat confdefs.h >>conftest.$ac_ext | |
29798 | cat >>conftest.$ac_ext <<_ACEOF | |
29799 | /* end confdefs.h. */ | |
4f14bcd8 | 29800 | #include <pthread.h> |
e6cc62c6 VS |
29801 | int |
29802 | main () | |
29803 | { | |
4f14bcd8 | 29804 | |
7274f1c7 | 29805 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29806 | |
29807 | ; | |
29808 | return 0; | |
29809 | } | |
29810 | _ACEOF | |
29811 | rm -f conftest.$ac_objext | |
29812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29813 | (eval $ac_compile) 2>&5 | |
29814 | ac_status=$? | |
29815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29816 | (exit $ac_status); } && | |
29817 | { ac_try='test -s conftest.$ac_objext' | |
29818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29819 | (eval $ac_try) 2>&5 | |
29820 | ac_status=$? | |
29821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29822 | (exit $ac_status); }; }; then | |
29823 | ||
7274f1c7 | 29824 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 29825 | |
698dcdb6 | 29826 | else |
e6cc62c6 VS |
29827 | echo "$as_me: failed program was:" >&5 |
29828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29829 | ||
29830 | ||
7274f1c7 | 29831 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
29832 | |
29833 | ||
247f5006 | 29834 | fi |
e6cc62c6 | 29835 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29836 | |
e6cc62c6 VS |
29837 | fi |
29838 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29839 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 29840 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 29841 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29842 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 29843 | _ACEOF |
3fed1840 | 29844 | |
7274f1c7 | 29845 | else |
e6cc62c6 VS |
29846 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
29847 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
29848 | fi |
29849 | fi | |
7274f1c7 | 29850 | fi |
3fed1840 | 29851 | |
a0b9e27f MB |
29852 | else |
29853 | if test "$wxUSE_THREADS" = "yes" ; then | |
29854 | case "${host}" in | |
29855 | *-*-mingw32* ) | |
e6cc62c6 VS |
29856 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
29857 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29858 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 29860 | else |
e6cc62c6 | 29861 | |
ca8e52b3 VZ |
29862 | CFLAGS_OLD="$CFLAGS" |
29863 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
29864 | cat >conftest.$ac_ext <<_ACEOF |
29865 | #line $LINENO "configure" | |
29866 | /* confdefs.h. */ | |
29867 | _ACEOF | |
29868 | cat confdefs.h >>conftest.$ac_ext | |
29869 | cat >>conftest.$ac_ext <<_ACEOF | |
29870 | /* end confdefs.h. */ | |
29871 | ||
29872 | int | |
29873 | main () | |
29874 | { | |
ca8e52b3 | 29875 | |
e6cc62c6 VS |
29876 | ; |
29877 | return 0; | |
29878 | } | |
29879 | _ACEOF | |
29880 | rm -f conftest.$ac_objext | |
29881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29882 | (eval $ac_compile) 2>&5 | |
29883 | ac_status=$? | |
29884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29885 | (exit $ac_status); } && | |
29886 | { ac_try='test -s conftest.$ac_objext' | |
29887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29888 | (eval $ac_try) 2>&5 | |
29889 | ac_status=$? | |
29890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29891 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
29892 | wx_cv_cflags_mthread=yes |
29893 | else | |
e6cc62c6 VS |
29894 | echo "$as_me: failed program was:" >&5 |
29895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29896 | ||
29897 | wx_cv_cflags_mthread=no | |
29898 | ||
ca8e52b3 | 29899 | fi |
e6cc62c6 VS |
29900 | rm -f conftest.$ac_objext conftest.$ac_ext |
29901 | ||
ca8e52b3 | 29902 | |
e6cc62c6 VS |
29903 | fi |
29904 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29905 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
29906 | |
29907 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29908 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29909 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29910 | LDFLAGS="$LDFLAGS -mthreads" | |
29911 | else | |
29912 | CFLAGS="$CFLAGS_OLD" | |
29913 | fi | |
a0b9e27f MB |
29914 | ;; |
29915 | esac | |
29916 | fi | |
4f14bcd8 GD |
29917 | fi |
29918 | ||
29919 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 29920 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29921 | #define wxUSE_THREADS 1 |
e6cc62c6 | 29922 | _ACEOF |
7b6058cd | 29923 | |
8284b0c5 | 29924 | |
4f14bcd8 | 29925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 29926 | else |
4f14bcd8 | 29927 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
29928 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
29929 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
29930 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
29931 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
29932 | echo "$as_me:$LINENO: result: yes" >&5 |
29933 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 29934 | else |
e6cc62c6 VS |
29935 | echo "$as_me:$LINENO: result: no" >&5 |
29936 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
29937 | fi |
29938 | fi | |
29939 | fi | |
29940 | ||
29941 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 29942 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29943 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 29944 | _ACEOF |
4f14bcd8 GD |
29945 | |
29946 | WXGTK12=1 | |
10f2d63a | 29947 | fi |
4f14bcd8 GD |
29948 | |
29949 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 29950 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29951 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 29952 | _ACEOF |
4f14bcd8 | 29953 | |
10f2d63a | 29954 | fi |
698dcdb6 | 29955 | |
4f14bcd8 | 29956 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 29957 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29958 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 29959 | _ACEOF |
4f14bcd8 | 29960 | |
698dcdb6 | 29961 | fi |
10f2d63a | 29962 | |
4f14bcd8 GD |
29963 | WXDEBUG= |
29964 | ||
29965 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29966 | WXDEBUG="-g" | |
29967 | wxUSE_OPTIMISE=no | |
698dcdb6 | 29968 | fi |
4f14bcd8 GD |
29969 | |
29970 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29971 | wxUSE_DEBUG_INFO=yes | |
29972 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
29973 | fi |
29974 | ||
4f14bcd8 | 29975 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 29976 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29977 | #define WXDEBUG 1 |
e6cc62c6 | 29978 | _ACEOF |
4f14bcd8 GD |
29979 | |
29980 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 29981 | else |
4f14bcd8 GD |
29982 | if test "$wxUSE_GTK" = 1 ; then |
29983 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29984 | fi | |
29985 | fi | |
29986 | ||
29987 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 29988 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29989 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 29990 | _ACEOF |
4f14bcd8 | 29991 | |
e6cc62c6 | 29992 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29993 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 29994 | _ACEOF |
4f14bcd8 | 29995 | |
e6cc62c6 | 29996 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29997 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 29998 | _ACEOF |
4f14bcd8 GD |
29999 | |
30000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30001 | fi | |
30002 | ||
30003 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30004 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30005 | fi |
30006 | ||
30007 | PROFILE= | |
30008 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30009 | PROFILE=" -pg" |
10f2d63a VZ |
30010 | fi |
30011 | ||
009fead0 VZ |
30012 | CODE_GEN_FLAGS= |
30013 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30014 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30015 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30016 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30017 | fi |
4f14bcd8 GD |
30018 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30019 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30020 | fi | |
30021 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30022 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30023 | fi | |
1d1b75ac | 30024 | |
2b5f62a0 | 30025 | case "${host}" in |
1d1b75ac VZ |
30026 | powerpc*-*-aix* ) |
30027 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30028 | ;; | |
2b5f62a0 VZ |
30029 | *-hppa* ) |
30030 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30031 | ;; | |
1d1b75ac | 30032 | esac |
4f14bcd8 GD |
30033 | fi |
30034 | ||
af7b5345 | 30035 | OPTIMISE= |
4f14bcd8 | 30036 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30037 | if test "$GCC" = yes ; then |
30038 | OPTIMISE="-O0" | |
30039 | fi | |
4f14bcd8 GD |
30040 | else |
30041 | if test "$GCC" = yes ; then | |
30042 | OPTIMISE="-O2" | |
af7b5345 VZ |
30043 | |
30044 | case "${host}" in | |
4f14bcd8 GD |
30045 | i586-*-*|i686-*-* ) |
30046 | OPTIMISE="${OPTIMISE} " | |
30047 | ;; | |
30048 | esac | |
30049 | else | |
30050 | OPTIMISE="-O" | |
30051 | fi | |
30052 | fi | |
30053 | ||
8d90d2f2 | 30054 | |
65d8ef1e | 30055 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30056 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30057 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30058 | _ACEOF |
4f14bcd8 | 30059 | |
8d90d2f2 VZ |
30060 | |
30061 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30062 | fi |
30063 | ||
65d8ef1e | 30064 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30065 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30066 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30067 | _ACEOF |
65d8ef1e VS |
30068 | |
30069 | fi | |
30070 | ||
8284b0c5 | 30071 | |
10f2d63a | 30072 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30073 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30074 | #define wxUSE_GUI 1 |
e6cc62c6 | 30075 | _ACEOF |
10f2d63a | 30076 | |
8284b0c5 | 30077 | |
10f2d63a | 30078 | else |
e6cc62c6 | 30079 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30080 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30081 | _ACEOF |
10f2d63a VZ |
30082 | |
30083 | fi | |
30084 | ||
8284b0c5 | 30085 | |
10f2d63a | 30086 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30087 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30088 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30089 | _ACEOF |
10f2d63a VZ |
30090 | |
30091 | fi | |
30092 | ||
8284b0c5 | 30093 | |
df5168c4 MB |
30094 | if test "$wxUSE_STL" = "yes"; then |
30095 | cat >>confdefs.h <<\_ACEOF | |
30096 | #define wxUSE_STL 1 | |
30097 | _ACEOF | |
30098 | ||
30099 | fi | |
30100 | ||
10f2d63a | 30101 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30102 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30103 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30104 | _ACEOF |
10f2d63a VZ |
30105 | |
30106 | fi | |
30107 | ||
1e6feb95 | 30108 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30109 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30110 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30111 | _ACEOF |
1e6feb95 VZ |
30112 | |
30113 | fi | |
30114 | ||
10f2d63a | 30115 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30116 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30117 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30118 | _ACEOF |
10f2d63a VZ |
30119 | |
30120 | fi | |
30121 | ||
1e6feb95 | 30122 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30123 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30124 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30125 | _ACEOF |
1e6feb95 VZ |
30126 | |
30127 | fi | |
30128 | ||
30129 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30130 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30131 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30132 | _ACEOF |
1e6feb95 VZ |
30133 | |
30134 | fi | |
30135 | ||
30136 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30137 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30138 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30139 | _ACEOF |
1e6feb95 VZ |
30140 | |
30141 | fi | |
30142 | ||
10f2d63a | 30143 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30144 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30145 | #define wxUSE_FILE 1 |
e6cc62c6 | 30146 | _ACEOF |
10f2d63a VZ |
30147 | |
30148 | fi | |
30149 | ||
1e6feb95 | 30150 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30151 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30152 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30153 | _ACEOF |
1e6feb95 VZ |
30154 | |
30155 | fi | |
30156 | ||
24528b0c | 30157 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30158 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30159 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30160 | _ACEOF |
24528b0c VS |
30161 | |
30162 | fi | |
30163 | ||
10f2d63a | 30164 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30165 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30166 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30167 | _ACEOF |
10f2d63a VZ |
30168 | |
30169 | fi | |
30170 | ||
30171 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30172 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30173 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30174 | _ACEOF |
10f2d63a VZ |
30175 | |
30176 | fi | |
30177 | ||
eb4efbdc | 30178 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30179 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30180 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30181 | _ACEOF |
eb4efbdc VZ |
30182 | |
30183 | fi | |
30184 | ||
4f3c5f06 | 30185 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30186 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30187 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30188 | _ACEOF |
4f3c5f06 VZ |
30189 | |
30190 | fi | |
30191 | ||
10f2d63a | 30192 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30193 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30194 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30195 | _ACEOF |
10f2d63a VZ |
30196 | |
30197 | fi | |
30198 | ||
30199 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30200 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30201 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30202 | _ACEOF |
10f2d63a VZ |
30203 | |
30204 | fi | |
30205 | ||
a3a584a7 | 30206 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30207 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30208 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30209 | _ACEOF |
a3a584a7 VZ |
30210 | |
30211 | fi | |
30212 | ||
10f2d63a | 30213 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30214 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30215 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30216 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30217 | else |
e6cc62c6 | 30218 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30219 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30220 | _ACEOF |
10f2d63a VZ |
30221 | |
30222 | fi | |
30223 | fi | |
30224 | ||
30225 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30226 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30227 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30228 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30229 | else |
e6cc62c6 | 30230 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30231 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30232 | _ACEOF |
10f2d63a VZ |
30233 | |
30234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30235 | fi | |
30236 | fi | |
30237 | ||
30238 | if test "$wxUSE_INTL" = "yes" ; then | |
30239 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30240 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30241 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30242 | else |
e6cc62c6 | 30243 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30244 | #define wxUSE_INTL 1 |
e6cc62c6 | 30245 | _ACEOF |
10f2d63a VZ |
30246 | |
30247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30248 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30249 | fi |
30250 | fi | |
30251 | ||
30252 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30253 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30254 | #define wxUSE_LOG 1 |
e6cc62c6 | 30255 | _ACEOF |
10f2d63a | 30256 | |
8284b0c5 | 30257 | |
d73be714 | 30258 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30259 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30260 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30261 | _ACEOF |
d73be714 VZ |
30262 | |
30263 | fi | |
30264 | ||
30265 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30266 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30267 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30268 | _ACEOF |
69d27ff7 MB |
30269 | |
30270 | fi | |
30271 | ||
30272 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30273 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30274 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30275 | _ACEOF |
d73be714 VZ |
30276 | |
30277 | fi | |
10f2d63a VZ |
30278 | fi |
30279 | ||
30280 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30281 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30282 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30283 | _ACEOF |
10f2d63a VZ |
30284 | |
30285 | fi | |
30286 | ||
e8f65ba6 | 30287 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30288 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30289 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30290 | _ACEOF |
e8f65ba6 RR |
30291 | |
30292 | fi | |
30293 | ||
10f2d63a | 30294 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30295 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30296 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30297 | _ACEOF |
10f2d63a | 30298 | |
70f7a477 | 30299 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30300 | fi |
30301 | ||
30302 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30303 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30304 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30305 | _ACEOF |
10f2d63a VZ |
30306 | |
30307 | fi | |
30308 | ||
5c6fa7d2 | 30309 | |
8284b0c5 | 30310 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30311 | |
30312 | for ac_func in strptime | |
83307f33 | 30313 | do |
e6cc62c6 VS |
30314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30317 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30319 | else | |
30320 | cat >conftest.$ac_ext <<_ACEOF | |
30321 | #line $LINENO "configure" | |
30322 | /* confdefs.h. */ | |
30323 | _ACEOF | |
30324 | cat confdefs.h >>conftest.$ac_ext | |
30325 | cat >>conftest.$ac_ext <<_ACEOF | |
30326 | /* end confdefs.h. */ | |
83307f33 | 30327 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30328 | which can conflict with char $ac_func (); below. |
30329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30330 | <limits.h> exists even on freestanding compilers. */ | |
30331 | #ifdef __STDC__ | |
30332 | # include <limits.h> | |
30333 | #else | |
30334 | # include <assert.h> | |
30335 | #endif | |
83307f33 | 30336 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30337 | #ifdef __cplusplus |
30338 | extern "C" | |
30339 | { | |
30340 | #endif | |
83307f33 | 30341 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30342 | builtin and then its argument prototype would still apply. */ |
30343 | char $ac_func (); | |
83307f33 VZ |
30344 | /* The GNU C library defines this for functions which it implements |
30345 | to always fail with ENOSYS. Some functions are actually named | |
30346 | something starting with __ and the normal name is an alias. */ | |
30347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30348 | choke me | |
30349 | #else | |
e6cc62c6 VS |
30350 | char (*f) () = $ac_func; |
30351 | #endif | |
30352 | #ifdef __cplusplus | |
30353 | } | |
83307f33 VZ |
30354 | #endif |
30355 | ||
e6cc62c6 VS |
30356 | int |
30357 | main () | |
30358 | { | |
30359 | return f != $ac_func; | |
30360 | ; | |
30361 | return 0; | |
30362 | } | |
30363 | _ACEOF | |
30364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30366 | (eval $ac_link) 2>&5 | |
30367 | ac_status=$? | |
30368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30369 | (exit $ac_status); } && | |
30370 | { ac_try='test -s conftest$ac_exeext' | |
30371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30372 | (eval $ac_try) 2>&5 | |
30373 | ac_status=$? | |
30374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30375 | (exit $ac_status); }; }; then | |
30376 | eval "$as_ac_var=yes" | |
30377 | else | |
30378 | echo "$as_me: failed program was:" >&5 | |
30379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30380 | ||
30381 | eval "$as_ac_var=no" | |
30382 | fi | |
30383 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30384 | fi | |
30385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30386 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30387 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30388 | cat >>confdefs.h <<_ACEOF | |
30389 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30390 | _ACEOF | |
83307f33 | 30391 | |
83307f33 VZ |
30392 | fi |
30393 | done | |
30394 | ||
5c6fa7d2 | 30395 | |
e6cc62c6 VS |
30396 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30397 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30398 | if test "${wx_cv_var_timezone+set}" = set; then | |
30399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30400 | else |
e6cc62c6 VS |
30401 | |
30402 | cat >conftest.$ac_ext <<_ACEOF | |
30403 | #line $LINENO "configure" | |
30404 | /* confdefs.h. */ | |
30405 | _ACEOF | |
30406 | cat confdefs.h >>conftest.$ac_ext | |
30407 | cat >>conftest.$ac_ext <<_ACEOF | |
30408 | /* end confdefs.h. */ | |
360d6699 | 30409 | |
b4085ce6 | 30410 | #include <time.h> |
e6cc62c6 VS |
30411 | |
30412 | int | |
30413 | main () | |
30414 | { | |
360d6699 VZ |
30415 | |
30416 | int tz; | |
4f11a343 | 30417 | tz = timezone; |
e6cc62c6 VS |
30418 | |
30419 | ; | |
30420 | return 0; | |
30421 | } | |
30422 | _ACEOF | |
30423 | rm -f conftest.$ac_objext | |
30424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30425 | (eval $ac_compile) 2>&5 | |
30426 | ac_status=$? | |
30427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30428 | (exit $ac_status); } && | |
30429 | { ac_try='test -s conftest.$ac_objext' | |
30430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30431 | (eval $ac_try) 2>&5 | |
30432 | ac_status=$? | |
30433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30434 | (exit $ac_status); }; }; then | |
30435 | ||
4f11a343 | 30436 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30437 | |
360d6699 | 30438 | else |
e6cc62c6 VS |
30439 | echo "$as_me: failed program was:" >&5 |
30440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30441 | ||
30442 | ||
30443 | cat >conftest.$ac_ext <<_ACEOF | |
30444 | #line $LINENO "configure" | |
30445 | /* confdefs.h. */ | |
30446 | _ACEOF | |
30447 | cat confdefs.h >>conftest.$ac_ext | |
30448 | cat >>conftest.$ac_ext <<_ACEOF | |
30449 | /* end confdefs.h. */ | |
360d6699 | 30450 | |
b4085ce6 | 30451 | #include <time.h> |
e6cc62c6 VS |
30452 | |
30453 | int | |
30454 | main () | |
30455 | { | |
360d6699 VZ |
30456 | |
30457 | int tz; | |
30458 | tz = _timezone; | |
e6cc62c6 VS |
30459 | |
30460 | ; | |
30461 | return 0; | |
30462 | } | |
30463 | _ACEOF | |
30464 | rm -f conftest.$ac_objext | |
30465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30466 | (eval $ac_compile) 2>&5 | |
30467 | ac_status=$? | |
30468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30469 | (exit $ac_status); } && | |
30470 | { ac_try='test -s conftest.$ac_objext' | |
30471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30472 | (eval $ac_try) 2>&5 | |
30473 | ac_status=$? | |
30474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30475 | (exit $ac_status); }; }; then | |
30476 | ||
360d6699 | 30477 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30478 | |
5357c8e8 | 30479 | else |
e6cc62c6 VS |
30480 | echo "$as_me: failed program was:" >&5 |
30481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30482 | ||
30483 | ||
30484 | cat >conftest.$ac_ext <<_ACEOF | |
30485 | #line $LINENO "configure" | |
30486 | /* confdefs.h. */ | |
30487 | _ACEOF | |
30488 | cat confdefs.h >>conftest.$ac_ext | |
30489 | cat >>conftest.$ac_ext <<_ACEOF | |
30490 | /* end confdefs.h. */ | |
5357c8e8 | 30491 | |
b4085ce6 | 30492 | #include <time.h> |
e6cc62c6 VS |
30493 | |
30494 | int | |
30495 | main () | |
30496 | { | |
5357c8e8 VZ |
30497 | |
30498 | int tz; | |
4f11a343 | 30499 | tz = __timezone; |
e6cc62c6 VS |
30500 | |
30501 | ; | |
30502 | return 0; | |
30503 | } | |
30504 | _ACEOF | |
30505 | rm -f conftest.$ac_objext | |
30506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30507 | (eval $ac_compile) 2>&5 | |
30508 | ac_status=$? | |
30509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30510 | (exit $ac_status); } && | |
30511 | { ac_try='test -s conftest.$ac_objext' | |
30512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30513 | (eval $ac_try) 2>&5 | |
30514 | ac_status=$? | |
30515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30516 | (exit $ac_status); }; }; then | |
30517 | ||
4f11a343 | 30518 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30519 | |
360d6699 | 30520 | else |
e6cc62c6 VS |
30521 | echo "$as_me: failed program was:" >&5 |
30522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30523 | ||
30524 | ||
f9bc1684 | 30525 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30526 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30527 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30528 | fi |
e6cc62c6 VS |
30529 | |
30530 | ||
7b4a847f | 30531 | fi |
e6cc62c6 VS |
30532 | rm -f conftest.$ac_objext conftest.$ac_ext |
30533 | ||
30534 | ||
5c6fa7d2 | 30535 | fi |
e6cc62c6 VS |
30536 | rm -f conftest.$ac_objext conftest.$ac_ext |
30537 | ||
30538 | ||
247f5006 | 30539 | fi |
e6cc62c6 | 30540 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30541 | |
e6cc62c6 VS |
30542 | |
30543 | fi | |
30544 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30545 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30546 | |
f9bc1684 | 30547 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30548 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30549 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30550 | _ACEOF |
360d6699 | 30551 | |
f9bc1684 | 30552 | fi |
698dcdb6 | 30553 | |
e6cc62c6 VS |
30554 | |
30555 | for ac_func in localtime | |
afc31813 | 30556 | do |
e6cc62c6 VS |
30557 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30558 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30559 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30560 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30562 | else | |
30563 | cat >conftest.$ac_ext <<_ACEOF | |
30564 | #line $LINENO "configure" | |
30565 | /* confdefs.h. */ | |
30566 | _ACEOF | |
30567 | cat confdefs.h >>conftest.$ac_ext | |
30568 | cat >>conftest.$ac_ext <<_ACEOF | |
30569 | /* end confdefs.h. */ | |
afc31813 | 30570 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30571 | which can conflict with char $ac_func (); below. |
30572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30573 | <limits.h> exists even on freestanding compilers. */ | |
30574 | #ifdef __STDC__ | |
30575 | # include <limits.h> | |
30576 | #else | |
30577 | # include <assert.h> | |
30578 | #endif | |
afc31813 | 30579 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30580 | #ifdef __cplusplus |
30581 | extern "C" | |
30582 | { | |
30583 | #endif | |
afc31813 | 30584 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30585 | builtin and then its argument prototype would still apply. */ |
30586 | char $ac_func (); | |
afc31813 VZ |
30587 | /* The GNU C library defines this for functions which it implements |
30588 | to always fail with ENOSYS. Some functions are actually named | |
30589 | something starting with __ and the normal name is an alias. */ | |
30590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30591 | choke me | |
30592 | #else | |
e6cc62c6 VS |
30593 | char (*f) () = $ac_func; |
30594 | #endif | |
30595 | #ifdef __cplusplus | |
30596 | } | |
afc31813 VZ |
30597 | #endif |
30598 | ||
e6cc62c6 VS |
30599 | int |
30600 | main () | |
30601 | { | |
30602 | return f != $ac_func; | |
30603 | ; | |
30604 | return 0; | |
30605 | } | |
30606 | _ACEOF | |
30607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30609 | (eval $ac_link) 2>&5 | |
30610 | ac_status=$? | |
30611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30612 | (exit $ac_status); } && | |
30613 | { ac_try='test -s conftest$ac_exeext' | |
30614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30615 | (eval $ac_try) 2>&5 | |
30616 | ac_status=$? | |
30617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30618 | (exit $ac_status); }; }; then | |
30619 | eval "$as_ac_var=yes" | |
30620 | else | |
30621 | echo "$as_me: failed program was:" >&5 | |
30622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30623 | ||
30624 | eval "$as_ac_var=no" | |
30625 | fi | |
30626 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30627 | fi | |
30628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30629 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30630 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30631 | cat >>confdefs.h <<_ACEOF | |
30632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30633 | _ACEOF | |
afc31813 | 30634 | |
afc31813 VZ |
30635 | fi |
30636 | done | |
30637 | ||
5c6fa7d2 | 30638 | |
8284b0c5 | 30639 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30640 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30641 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30642 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30644 | else |
e6cc62c6 VS |
30645 | |
30646 | cat >conftest.$ac_ext <<_ACEOF | |
30647 | #line $LINENO "configure" | |
30648 | /* confdefs.h. */ | |
30649 | _ACEOF | |
30650 | cat confdefs.h >>conftest.$ac_ext | |
30651 | cat >>conftest.$ac_ext <<_ACEOF | |
30652 | /* end confdefs.h. */ | |
0470b1e6 | 30653 | |
b4085ce6 | 30654 | #include <time.h> |
e6cc62c6 VS |
30655 | |
30656 | int | |
30657 | main () | |
30658 | { | |
0470b1e6 VZ |
30659 | |
30660 | struct tm tm; | |
30661 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30662 | |
30663 | ; | |
30664 | return 0; | |
30665 | } | |
30666 | _ACEOF | |
30667 | rm -f conftest.$ac_objext | |
30668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30669 | (eval $ac_compile) 2>&5 | |
30670 | ac_status=$? | |
30671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30672 | (exit $ac_status); } && | |
30673 | { ac_try='test -s conftest.$ac_objext' | |
30674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30675 | (eval $ac_try) 2>&5 | |
30676 | ac_status=$? | |
30677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30678 | (exit $ac_status); }; }; then | |
30679 | ||
f03a98d8 | 30680 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30681 | |
0470b1e6 | 30682 | else |
e6cc62c6 VS |
30683 | echo "$as_me: failed program was:" >&5 |
30684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30685 | ||
30686 | wx_cv_struct_tm_has_gmtoff=no | |
30687 | ||
247f5006 | 30688 | fi |
e6cc62c6 | 30689 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30690 | |
e6cc62c6 VS |
30691 | fi |
30692 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30693 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30694 | fi |
30695 | ||
30696 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30697 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30698 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30699 | _ACEOF |
0470b1e6 | 30700 | |
3fcdd07b VZ |
30701 | fi |
30702 | ||
e6cc62c6 VS |
30703 | |
30704 | ||
30705 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30706 | do |
e6cc62c6 VS |
30707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30708 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30710 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30712 | else | |
30713 | cat >conftest.$ac_ext <<_ACEOF | |
30714 | #line $LINENO "configure" | |
30715 | /* confdefs.h. */ | |
30716 | _ACEOF | |
30717 | cat confdefs.h >>conftest.$ac_ext | |
30718 | cat >>conftest.$ac_ext <<_ACEOF | |
30719 | /* end confdefs.h. */ | |
3fcdd07b | 30720 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30721 | which can conflict with char $ac_func (); below. |
30722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30723 | <limits.h> exists even on freestanding compilers. */ | |
30724 | #ifdef __STDC__ | |
30725 | # include <limits.h> | |
30726 | #else | |
30727 | # include <assert.h> | |
30728 | #endif | |
3fcdd07b | 30729 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30730 | #ifdef __cplusplus |
30731 | extern "C" | |
30732 | { | |
30733 | #endif | |
3fcdd07b | 30734 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30735 | builtin and then its argument prototype would still apply. */ |
30736 | char $ac_func (); | |
3fcdd07b VZ |
30737 | /* The GNU C library defines this for functions which it implements |
30738 | to always fail with ENOSYS. Some functions are actually named | |
30739 | something starting with __ and the normal name is an alias. */ | |
30740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30741 | choke me | |
30742 | #else | |
e6cc62c6 VS |
30743 | char (*f) () = $ac_func; |
30744 | #endif | |
30745 | #ifdef __cplusplus | |
30746 | } | |
3fcdd07b VZ |
30747 | #endif |
30748 | ||
e6cc62c6 VS |
30749 | int |
30750 | main () | |
30751 | { | |
30752 | return f != $ac_func; | |
30753 | ; | |
30754 | return 0; | |
30755 | } | |
30756 | _ACEOF | |
30757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30759 | (eval $ac_link) 2>&5 | |
30760 | ac_status=$? | |
30761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30762 | (exit $ac_status); } && | |
30763 | { ac_try='test -s conftest$ac_exeext' | |
30764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30765 | (eval $ac_try) 2>&5 | |
30766 | ac_status=$? | |
30767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30768 | (exit $ac_status); }; }; then | |
30769 | eval "$as_ac_var=yes" | |
30770 | else | |
30771 | echo "$as_me: failed program was:" >&5 | |
30772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30773 | ||
30774 | eval "$as_ac_var=no" | |
30775 | fi | |
30776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30777 | fi | |
30778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30779 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30780 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30781 | cat >>confdefs.h <<_ACEOF | |
30782 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30783 | _ACEOF | |
3fcdd07b | 30784 | break |
3fcdd07b VZ |
30785 | fi |
30786 | done | |
30787 | ||
698dcdb6 | 30788 | |
8284b0c5 | 30789 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30790 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30791 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30792 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30794 | else | |
30795 | ||
30796 | ||
30797 | ||
30798 | ac_ext=cc | |
5c6fa7d2 | 30799 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30800 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30801 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30802 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30803 | |
8284b0c5 | 30804 | |
e6cc62c6 VS |
30805 | cat >conftest.$ac_ext <<_ACEOF |
30806 | #line $LINENO "configure" | |
30807 | /* confdefs.h. */ | |
30808 | _ACEOF | |
30809 | cat confdefs.h >>conftest.$ac_ext | |
30810 | cat >>conftest.$ac_ext <<_ACEOF | |
30811 | /* end confdefs.h. */ | |
afc31813 VZ |
30812 | |
30813 | #include <sys/time.h> | |
30814 | #include <unistd.h> | |
e6cc62c6 VS |
30815 | |
30816 | int | |
30817 | main () | |
30818 | { | |
afc31813 VZ |
30819 | |
30820 | struct timeval tv; | |
776862b4 | 30821 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
30822 | |
30823 | ; | |
30824 | return 0; | |
30825 | } | |
30826 | _ACEOF | |
30827 | rm -f conftest.$ac_objext | |
30828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30829 | (eval $ac_compile) 2>&5 | |
30830 | ac_status=$? | |
30831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30832 | (exit $ac_status); } && | |
30833 | { ac_try='test -s conftest.$ac_objext' | |
30834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30835 | (eval $ac_try) 2>&5 | |
30836 | ac_status=$? | |
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30838 | (exit $ac_status); }; }; then | |
afc31813 | 30839 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 30840 | else |
e6cc62c6 VS |
30841 | echo "$as_me: failed program was:" >&5 |
30842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30843 | ||
30844 | cat >conftest.$ac_ext <<_ACEOF | |
30845 | #line $LINENO "configure" | |
30846 | /* confdefs.h. */ | |
30847 | _ACEOF | |
30848 | cat confdefs.h >>conftest.$ac_ext | |
30849 | cat >>conftest.$ac_ext <<_ACEOF | |
30850 | /* end confdefs.h. */ | |
afc31813 VZ |
30851 | |
30852 | #include <sys/time.h> | |
30853 | #include <unistd.h> | |
e6cc62c6 VS |
30854 | |
30855 | int | |
30856 | main () | |
30857 | { | |
afc31813 VZ |
30858 | |
30859 | struct timeval tv; | |
30860 | gettimeofday(&tv); | |
e6cc62c6 VS |
30861 | |
30862 | ; | |
30863 | return 0; | |
30864 | } | |
30865 | _ACEOF | |
30866 | rm -f conftest.$ac_objext | |
30867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30868 | (eval $ac_compile) 2>&5 | |
30869 | ac_status=$? | |
30870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30871 | (exit $ac_status); } && | |
30872 | { ac_try='test -s conftest.$ac_objext' | |
30873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30874 | (eval $ac_try) 2>&5 | |
30875 | ac_status=$? | |
30876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30877 | (exit $ac_status); }; }; then | |
afc31813 | 30878 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 30879 | else |
e6cc62c6 VS |
30880 | echo "$as_me: failed program was:" >&5 |
30881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30882 | ||
30883 | ||
30884 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30885 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 30886 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
30887 | |
30888 | ||
10f2d63a | 30889 | fi |
e6cc62c6 VS |
30890 | rm -f conftest.$ac_objext conftest.$ac_ext |
30891 | ||
10f2d63a | 30892 | fi |
e6cc62c6 | 30893 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 30894 | ac_ext=c |
10f2d63a | 30895 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 30899 | |
a0b9e27f | 30900 | |
e6cc62c6 VS |
30901 | fi |
30902 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30903 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 30904 | |
afc31813 | 30905 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 30906 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30907 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 30908 | _ACEOF |
afc31813 VZ |
30909 | |
30910 | fi | |
30911 | fi | |
30912 | ||
afc31813 VZ |
30913 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
30914 | fi | |
30915 | ||
8284b0c5 | 30916 | |
52127426 | 30917 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 30918 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
30919 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
30920 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
30921 | wxUSE_SOCKETS="no" |
30922 | fi | |
3879ecda VZ |
30923 | if test "$wxUSE_COCOA" = "1"; then |
30924 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
30925 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
30926 | wxUSE_SOCKETS="no" | |
30927 | fi | |
0feee163 | 30928 | fi |
b089607b | 30929 | |
0feee163 VZ |
30930 | if test "$wxUSE_SOCKETS" = "yes"; then |
30931 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30932 | echo "$as_me:$LINENO: checking for socket" >&5 |
30933 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30934 | if test "${ac_cv_func_socket+set}" = set; then | |
30935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30936 | else | |
30937 | cat >conftest.$ac_ext <<_ACEOF | |
30938 | #line $LINENO "configure" | |
30939 | /* confdefs.h. */ | |
30940 | _ACEOF | |
30941 | cat confdefs.h >>conftest.$ac_ext | |
30942 | cat >>conftest.$ac_ext <<_ACEOF | |
30943 | /* end confdefs.h. */ | |
c63c7106 | 30944 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30945 | which can conflict with char socket (); below. |
30946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30947 | <limits.h> exists even on freestanding compilers. */ | |
30948 | #ifdef __STDC__ | |
30949 | # include <limits.h> | |
30950 | #else | |
30951 | # include <assert.h> | |
30952 | #endif | |
c63c7106 | 30953 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30954 | #ifdef __cplusplus |
30955 | extern "C" | |
30956 | { | |
30957 | #endif | |
c63c7106 | 30958 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30959 | builtin and then its argument prototype would still apply. */ |
30960 | char socket (); | |
c63c7106 VZ |
30961 | /* The GNU C library defines this for functions which it implements |
30962 | to always fail with ENOSYS. Some functions are actually named | |
30963 | something starting with __ and the normal name is an alias. */ | |
30964 | #if defined (__stub_socket) || defined (__stub___socket) | |
30965 | choke me | |
30966 | #else | |
e6cc62c6 VS |
30967 | char (*f) () = socket; |
30968 | #endif | |
30969 | #ifdef __cplusplus | |
30970 | } | |
c63c7106 VZ |
30971 | #endif |
30972 | ||
e6cc62c6 VS |
30973 | int |
30974 | main () | |
30975 | { | |
30976 | return f != socket; | |
30977 | ; | |
30978 | return 0; | |
30979 | } | |
30980 | _ACEOF | |
30981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30983 | (eval $ac_link) 2>&5 | |
30984 | ac_status=$? | |
30985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30986 | (exit $ac_status); } && | |
30987 | { ac_try='test -s conftest$ac_exeext' | |
30988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30989 | (eval $ac_try) 2>&5 | |
30990 | ac_status=$? | |
30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30992 | (exit $ac_status); }; }; then | |
30993 | ac_cv_func_socket=yes | |
30994 | else | |
30995 | echo "$as_me: failed program was:" >&5 | |
30996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30997 | ||
30998 | ac_cv_func_socket=no | |
30999 | fi | |
31000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31001 | fi | |
31002 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31003 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31004 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31005 | : |
31006 | else | |
e6cc62c6 VS |
31007 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
31008 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
31009 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31011 | else |
e6cc62c6 | 31012 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31013 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
31014 | cat >conftest.$ac_ext <<_ACEOF |
31015 | #line $LINENO "configure" | |
31016 | /* confdefs.h. */ | |
31017 | _ACEOF | |
31018 | cat confdefs.h >>conftest.$ac_ext | |
31019 | cat >>conftest.$ac_ext <<_ACEOF | |
31020 | /* end confdefs.h. */ | |
31021 | ||
c63c7106 | 31022 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31023 | #ifdef __cplusplus |
31024 | extern "C" | |
31025 | #endif | |
c63c7106 | 31026 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31027 | builtin and then its argument prototype would still apply. */ |
31028 | char socket (); | |
31029 | int | |
31030 | main () | |
31031 | { | |
31032 | socket (); | |
31033 | ; | |
31034 | return 0; | |
31035 | } | |
31036 | _ACEOF | |
31037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31039 | (eval $ac_link) 2>&5 | |
31040 | ac_status=$? | |
31041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31042 | (exit $ac_status); } && | |
31043 | { ac_try='test -s conftest$ac_exeext' | |
31044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31045 | (eval $ac_try) 2>&5 | |
31046 | ac_status=$? | |
31047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31048 | (exit $ac_status); }; }; then | |
31049 | ac_cv_lib_socket_socket=yes | |
31050 | else | |
31051 | echo "$as_me: failed program was:" >&5 | |
31052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31053 | ||
31054 | ac_cv_lib_socket_socket=no | |
31055 | fi | |
31056 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31057 | LIBS=$ac_check_lib_save_LIBS | |
31058 | fi | |
31059 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31060 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31061 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
31062 | if test "$INET_LINK" != " -lsocket"; then |
31063 | INET_LINK="$INET_LINK -lsocket" | |
31064 | fi | |
c63c7106 | 31065 | else |
afc31813 | 31066 | |
e6cc62c6 VS |
31067 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
31068 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 31069 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31070 | |
31071 | ||
6232543b | 31072 | fi |
b089607b | 31073 | |
e6cc62c6 | 31074 | |
1e487827 | 31075 | fi |
afc31813 | 31076 | |
3a922bb4 | 31077 | fi |
0feee163 | 31078 | fi |
51a9faba | 31079 | |
0feee163 VZ |
31080 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31081 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31082 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31083 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31084 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31086 | else |
e6cc62c6 VS |
31087 | |
31088 | cat >conftest.$ac_ext <<_ACEOF | |
31089 | #line $LINENO "configure" | |
31090 | /* confdefs.h. */ | |
31091 | _ACEOF | |
31092 | cat confdefs.h >>conftest.$ac_ext | |
31093 | cat >>conftest.$ac_ext <<_ACEOF | |
31094 | /* end confdefs.h. */ | |
51a9faba | 31095 | |
3a922bb4 RL |
31096 | #include <sys/types.h> |
31097 | #include <sys/socket.h> | |
e6cc62c6 VS |
31098 | |
31099 | int | |
31100 | main () | |
31101 | { | |
51a9faba | 31102 | |
3a922bb4 RL |
31103 | socklen_t len; |
31104 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31105 | |
31106 | ; | |
31107 | return 0; | |
31108 | } | |
31109 | _ACEOF | |
31110 | rm -f conftest.$ac_objext | |
31111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31112 | (eval $ac_compile) 2>&5 | |
31113 | ac_status=$? | |
31114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31115 | (exit $ac_status); } && | |
31116 | { ac_try='test -s conftest.$ac_objext' | |
31117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31118 | (eval $ac_try) 2>&5 | |
31119 | ac_status=$? | |
31120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31121 | (exit $ac_status); }; }; then | |
51a9faba | 31122 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31123 | else |
e6cc62c6 VS |
31124 | echo "$as_me: failed program was:" >&5 |
31125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31126 | ||
31127 | ||
9711d31e GD |
31128 | CFLAGS_OLD="$CFLAGS" |
31129 | if test "$GCC" = yes ; then | |
31130 | CFLAGS="$CFLAGS -Werror" | |
31131 | fi | |
31132 | ||
e6cc62c6 VS |
31133 | cat >conftest.$ac_ext <<_ACEOF |
31134 | #line $LINENO "configure" | |
31135 | /* confdefs.h. */ | |
31136 | _ACEOF | |
31137 | cat confdefs.h >>conftest.$ac_ext | |
31138 | cat >>conftest.$ac_ext <<_ACEOF | |
31139 | /* end confdefs.h. */ | |
51a9faba | 31140 | |
9711d31e GD |
31141 | #include <sys/types.h> |
31142 | #include <sys/socket.h> | |
e6cc62c6 VS |
31143 | |
31144 | int | |
31145 | main () | |
31146 | { | |
51a9faba | 31147 | |
9711d31e GD |
31148 | size_t len; |
31149 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31150 | |
31151 | ; | |
31152 | return 0; | |
31153 | } | |
31154 | _ACEOF | |
31155 | rm -f conftest.$ac_objext | |
31156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31157 | (eval $ac_compile) 2>&5 | |
31158 | ac_status=$? | |
31159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31160 | (exit $ac_status); } && | |
31161 | { ac_try='test -s conftest.$ac_objext' | |
31162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31163 | (eval $ac_try) 2>&5 | |
31164 | ac_status=$? | |
31165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31166 | (exit $ac_status); }; }; then | |
51a9faba | 31167 | wx_cv_type_getsockname3=size_t |
afc31813 | 31168 | else |
e6cc62c6 VS |
31169 | echo "$as_me: failed program was:" >&5 |
31170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31171 | ||
31172 | cat >conftest.$ac_ext <<_ACEOF | |
31173 | #line $LINENO "configure" | |
31174 | /* confdefs.h. */ | |
31175 | _ACEOF | |
31176 | cat confdefs.h >>conftest.$ac_ext | |
31177 | cat >>conftest.$ac_ext <<_ACEOF | |
31178 | /* end confdefs.h. */ | |
51a9faba | 31179 | |
9711d31e GD |
31180 | #include <sys/types.h> |
31181 | #include <sys/socket.h> | |
e6cc62c6 VS |
31182 | |
31183 | int | |
31184 | main () | |
31185 | { | |
51a9faba | 31186 | |
9711d31e GD |
31187 | int len; |
31188 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31189 | |
31190 | ; | |
31191 | return 0; | |
31192 | } | |
31193 | _ACEOF | |
31194 | rm -f conftest.$ac_objext | |
31195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31196 | (eval $ac_compile) 2>&5 | |
31197 | ac_status=$? | |
31198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31199 | (exit $ac_status); } && | |
31200 | { ac_try='test -s conftest.$ac_objext' | |
31201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31202 | (eval $ac_try) 2>&5 | |
31203 | ac_status=$? | |
31204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31205 | (exit $ac_status); }; }; then | |
51a9faba | 31206 | wx_cv_type_getsockname3=int |
afc31813 | 31207 | else |
e6cc62c6 VS |
31208 | echo "$as_me: failed program was:" >&5 |
31209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31210 | ||
31211 | wx_cv_type_getsockname3=unknown | |
31212 | ||
afc31813 | 31213 | fi |
e6cc62c6 VS |
31214 | rm -f conftest.$ac_objext conftest.$ac_ext |
31215 | ||
afc31813 | 31216 | fi |
e6cc62c6 | 31217 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31218 | |
31219 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31220 | |
31221 | ||
247f5006 | 31222 | fi |
e6cc62c6 | 31223 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31224 | |
e6cc62c6 VS |
31225 | fi |
31226 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31227 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31228 | |
3a922bb4 RL |
31229 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31230 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31231 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31232 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31233 | else |
e6cc62c6 | 31234 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31235 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31236 | _ACEOF |
51a9faba | 31237 | |
3a922bb4 | 31238 | fi |
51a9faba VZ |
31239 | fi |
31240 | fi | |
afc31813 | 31241 | |
51a9faba | 31242 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31243 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31244 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31245 | _ACEOF |
afc31813 | 31246 | |
70f7a477 | 31247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31248 | fi |
31249 | ||
3879ecda VZ |
31250 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31251 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31252 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31253 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31254 | wxUSE_PROTOCOL=no | |
31255 | fi | |
31256 | fi | |
31257 | ||
31258 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31259 | cat >>confdefs.h <<\_ACEOF | |
31260 | #define wxUSE_PROTOCOL 1 | |
31261 | _ACEOF | |
31262 | ||
31263 | ||
31264 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31265 | cat >>confdefs.h <<\_ACEOF | |
31266 | #define wxUSE_PROTOCOL_HTTP 1 | |
31267 | _ACEOF | |
31268 | ||
31269 | fi | |
31270 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31271 | cat >>confdefs.h <<\_ACEOF | |
31272 | #define wxUSE_PROTOCOL_FTP 1 | |
31273 | _ACEOF | |
31274 | ||
31275 | fi | |
31276 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31277 | cat >>confdefs.h <<\_ACEOF | |
31278 | #define wxUSE_PROTOCOL_FILE 1 | |
31279 | _ACEOF | |
31280 | ||
31281 | fi | |
31282 | else | |
31283 | if test "$wxUSE_FS_INET" = "yes"; then | |
31284 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31285 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31286 | wxUSE_FS_INET="no" | |
31287 | fi | |
31288 | fi | |
31289 | ||
31290 | if test "$wxUSE_URL" = "yes"; then | |
31291 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31292 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31293 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31294 | wxUSE_URL=no | |
31295 | fi | |
31296 | if test "$wxUSE_URL" = "yes"; then | |
31297 | cat >>confdefs.h <<\_ACEOF | |
31298 | #define wxUSE_URL 1 | |
31299 | _ACEOF | |
31300 | ||
31301 | fi | |
31302 | fi | |
31303 | ||
31304 | if test "$wxUSE_FS_INET" = "yes"; then | |
31305 | cat >>confdefs.h <<\_ACEOF | |
31306 | #define wxUSE_FS_INET 1 | |
31307 | _ACEOF | |
31308 | ||
31309 | fi | |
31310 | ||
8284b0c5 | 31311 | |
dc3d889d VZ |
31312 | if test "$wxUSE_GUI" = "yes"; then |
31313 | ||
ac0c4cc3 | 31314 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31315 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31316 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31317 | wxUSE_JOYSTICK=no |
156b2523 GD |
31318 | fi |
31319 | ||
131f235d | 31320 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31321 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31322 | |
31323 | for ac_header in linux/joystick.h | |
10f2d63a | 31324 | do |
e6cc62c6 VS |
31325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31331 | fi | |
31332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31334 | else | |
31335 | # Is the header compilable? | |
31336 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31337 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31338 | cat >conftest.$ac_ext <<_ACEOF | |
31339 | #line $LINENO "configure" | |
31340 | /* confdefs.h. */ | |
31341 | _ACEOF | |
31342 | cat confdefs.h >>conftest.$ac_ext | |
31343 | cat >>conftest.$ac_ext <<_ACEOF | |
31344 | /* end confdefs.h. */ | |
31345 | $ac_includes_default | |
31346 | #include <$ac_header> | |
31347 | _ACEOF | |
31348 | rm -f conftest.$ac_objext | |
31349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31350 | (eval $ac_compile) 2>&5 | |
31351 | ac_status=$? | |
31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31353 | (exit $ac_status); } && | |
31354 | { ac_try='test -s conftest.$ac_objext' | |
31355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31356 | (eval $ac_try) 2>&5 | |
31357 | ac_status=$? | |
31358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31359 | (exit $ac_status); }; }; then | |
31360 | ac_header_compiler=yes | |
31361 | else | |
31362 | echo "$as_me: failed program was:" >&5 | |
31363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31364 | ||
31365 | ac_header_compiler=no | |
31366 | fi | |
31367 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31368 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31369 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31370 | ||
31371 | # Is the header present? | |
31372 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31373 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31374 | cat >conftest.$ac_ext <<_ACEOF | |
31375 | #line $LINENO "configure" | |
31376 | /* confdefs.h. */ | |
31377 | _ACEOF | |
31378 | cat confdefs.h >>conftest.$ac_ext | |
31379 | cat >>conftest.$ac_ext <<_ACEOF | |
31380 | /* end confdefs.h. */ | |
31381 | #include <$ac_header> | |
31382 | _ACEOF | |
31383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31385 | ac_status=$? | |
31386 | grep -v '^ *+' conftest.er1 >conftest.err | |
31387 | rm -f conftest.er1 | |
31388 | cat conftest.err >&5 | |
31389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31390 | (exit $ac_status); } >/dev/null; then | |
31391 | if test -s conftest.err; then | |
31392 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31393 | else | |
31394 | ac_cpp_err= | |
31395 | fi | |
31396 | else | |
31397 | ac_cpp_err=yes | |
31398 | fi | |
31399 | if test -z "$ac_cpp_err"; then | |
31400 | ac_header_preproc=yes | |
31401 | else | |
31402 | echo "$as_me: failed program was:" >&5 | |
31403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31404 | ||
31405 | ac_header_preproc=no | |
31406 | fi | |
31407 | rm -f conftest.err conftest.$ac_ext | |
31408 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31409 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31410 | ||
31411 | # So? What about this header? | |
31412 | case $ac_header_compiler:$ac_header_preproc in | |
31413 | yes:no ) | |
31414 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31415 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31418 | ( | |
31419 | cat <<\_ASBOX | |
31420 | ## ------------------------------------ ## | |
31421 | ## Report this to bug-autoconf@gnu.org. ## | |
31422 | ## ------------------------------------ ## | |
31423 | _ASBOX | |
31424 | ) | | |
31425 | sed "s/^/$as_me: WARNING: /" >&2 | |
31426 | ;; | |
31427 | no:yes ) | |
31428 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31429 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31430 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31431 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31433 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31434 | ( | |
31435 | cat <<\_ASBOX | |
31436 | ## ------------------------------------ ## | |
31437 | ## Report this to bug-autoconf@gnu.org. ## | |
31438 | ## ------------------------------------ ## | |
31439 | _ASBOX | |
31440 | ) | | |
31441 | sed "s/^/$as_me: WARNING: /" >&2 | |
31442 | ;; | |
31443 | esac | |
31444 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31448 | else | |
31449 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31450 | fi |
e6cc62c6 VS |
31451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31453 | ||
10f2d63a | 31454 | fi |
e6cc62c6 VS |
31455 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31456 | cat >>confdefs.h <<_ACEOF | |
31457 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31458 | _ACEOF | |
31459 | ||
247f5006 | 31460 | fi |
e6cc62c6 | 31461 | |
10f2d63a VZ |
31462 | done |
31463 | ||
3a922bb4 RL |
31464 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31465 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31466 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31467 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31468 | fi |
31469 | fi | |
31470 | fi | |
b089607b | 31471 | |
3a922bb4 | 31472 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31473 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31474 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31475 | _ACEOF |
10f2d63a | 31476 | |
3a922bb4 RL |
31477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31478 | fi | |
dc3d889d VZ |
31479 | fi |
31480 | ||
8284b0c5 | 31481 | |
b089607b VZ |
31482 | if test "$TOOLKIT" != "MSW"; then |
31483 | ||
3a922bb4 RL |
31484 | HAVE_DL_FUNCS=0 |
31485 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31486 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31487 | if test "$USE_DARWIN" = 1; then |
31488 | HAVE_DL_FUNCS=1 | |
31489 | else | |
e6cc62c6 VS |
31490 | |
31491 | for ac_func in dlopen | |
10f2d63a | 31492 | do |
e6cc62c6 VS |
31493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31494 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31496 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31498 | else | |
31499 | cat >conftest.$ac_ext <<_ACEOF | |
31500 | #line $LINENO "configure" | |
31501 | /* confdefs.h. */ | |
31502 | _ACEOF | |
31503 | cat confdefs.h >>conftest.$ac_ext | |
31504 | cat >>conftest.$ac_ext <<_ACEOF | |
31505 | /* end confdefs.h. */ | |
10f2d63a | 31506 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31507 | which can conflict with char $ac_func (); below. |
31508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31509 | <limits.h> exists even on freestanding compilers. */ | |
31510 | #ifdef __STDC__ | |
31511 | # include <limits.h> | |
31512 | #else | |
31513 | # include <assert.h> | |
31514 | #endif | |
10f2d63a | 31515 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31516 | #ifdef __cplusplus |
31517 | extern "C" | |
31518 | { | |
31519 | #endif | |
10f2d63a | 31520 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31521 | builtin and then its argument prototype would still apply. */ |
31522 | char $ac_func (); | |
10f2d63a VZ |
31523 | /* The GNU C library defines this for functions which it implements |
31524 | to always fail with ENOSYS. Some functions are actually named | |
31525 | something starting with __ and the normal name is an alias. */ | |
31526 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31527 | choke me | |
31528 | #else | |
e6cc62c6 VS |
31529 | char (*f) () = $ac_func; |
31530 | #endif | |
31531 | #ifdef __cplusplus | |
31532 | } | |
10f2d63a VZ |
31533 | #endif |
31534 | ||
e6cc62c6 VS |
31535 | int |
31536 | main () | |
31537 | { | |
31538 | return f != $ac_func; | |
31539 | ; | |
31540 | return 0; | |
31541 | } | |
31542 | _ACEOF | |
31543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31545 | (eval $ac_link) 2>&5 | |
31546 | ac_status=$? | |
31547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31548 | (exit $ac_status); } && | |
31549 | { ac_try='test -s conftest$ac_exeext' | |
31550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31551 | (eval $ac_try) 2>&5 | |
31552 | ac_status=$? | |
31553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31554 | (exit $ac_status); }; }; then | |
31555 | eval "$as_ac_var=yes" | |
31556 | else | |
31557 | echo "$as_me: failed program was:" >&5 | |
31558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31559 | ||
31560 | eval "$as_ac_var=no" | |
31561 | fi | |
31562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31563 | fi | |
31564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31567 | cat >>confdefs.h <<_ACEOF | |
31568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31569 | _ACEOF | |
31570 | ||
31571 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31572 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31573 | _ACEOF |
10f2d63a | 31574 | |
3a922bb4 | 31575 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31576 | |
10f2d63a | 31577 | else |
e6cc62c6 VS |
31578 | |
31579 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31580 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31581 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31583 | else |
e6cc62c6 | 31584 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31585 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31586 | cat >conftest.$ac_ext <<_ACEOF |
31587 | #line $LINENO "configure" | |
31588 | /* confdefs.h. */ | |
31589 | _ACEOF | |
31590 | cat confdefs.h >>conftest.$ac_ext | |
31591 | cat >>conftest.$ac_ext <<_ACEOF | |
31592 | /* end confdefs.h. */ | |
31593 | ||
10f2d63a | 31594 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31595 | #ifdef __cplusplus |
31596 | extern "C" | |
31597 | #endif | |
10f2d63a | 31598 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31599 | builtin and then its argument prototype would still apply. */ |
31600 | char dlopen (); | |
31601 | int | |
31602 | main () | |
31603 | { | |
31604 | dlopen (); | |
31605 | ; | |
31606 | return 0; | |
31607 | } | |
31608 | _ACEOF | |
31609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31611 | (eval $ac_link) 2>&5 | |
31612 | ac_status=$? | |
31613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31614 | (exit $ac_status); } && | |
31615 | { ac_try='test -s conftest$ac_exeext' | |
31616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31617 | (eval $ac_try) 2>&5 | |
31618 | ac_status=$? | |
31619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31620 | (exit $ac_status); }; }; then | |
31621 | ac_cv_lib_dl_dlopen=yes | |
31622 | else | |
31623 | echo "$as_me: failed program was:" >&5 | |
31624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31625 | ||
31626 | ac_cv_lib_dl_dlopen=no | |
31627 | fi | |
31628 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31629 | LIBS=$ac_check_lib_save_LIBS | |
31630 | fi | |
31631 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31632 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31633 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31634 | ||
31635 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31636 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31637 | _ACEOF |
10f2d63a | 31638 | |
3a922bb4 | 31639 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31640 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31641 | |
10f2d63a | 31642 | else |
10f2d63a | 31643 | |
e6cc62c6 VS |
31644 | |
31645 | for ac_func in shl_load | |
10f2d63a | 31646 | do |
e6cc62c6 VS |
31647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31648 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31650 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31652 | else | |
31653 | cat >conftest.$ac_ext <<_ACEOF | |
31654 | #line $LINENO "configure" | |
31655 | /* confdefs.h. */ | |
31656 | _ACEOF | |
31657 | cat confdefs.h >>conftest.$ac_ext | |
31658 | cat >>conftest.$ac_ext <<_ACEOF | |
31659 | /* end confdefs.h. */ | |
10f2d63a | 31660 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31661 | which can conflict with char $ac_func (); below. |
31662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31663 | <limits.h> exists even on freestanding compilers. */ | |
31664 | #ifdef __STDC__ | |
31665 | # include <limits.h> | |
31666 | #else | |
31667 | # include <assert.h> | |
31668 | #endif | |
10f2d63a | 31669 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31670 | #ifdef __cplusplus |
31671 | extern "C" | |
31672 | { | |
31673 | #endif | |
10f2d63a | 31674 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31675 | builtin and then its argument prototype would still apply. */ |
31676 | char $ac_func (); | |
10f2d63a VZ |
31677 | /* The GNU C library defines this for functions which it implements |
31678 | to always fail with ENOSYS. Some functions are actually named | |
31679 | something starting with __ and the normal name is an alias. */ | |
31680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31681 | choke me | |
31682 | #else | |
e6cc62c6 VS |
31683 | char (*f) () = $ac_func; |
31684 | #endif | |
31685 | #ifdef __cplusplus | |
31686 | } | |
10f2d63a VZ |
31687 | #endif |
31688 | ||
e6cc62c6 VS |
31689 | int |
31690 | main () | |
31691 | { | |
31692 | return f != $ac_func; | |
31693 | ; | |
31694 | return 0; | |
31695 | } | |
31696 | _ACEOF | |
31697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31699 | (eval $ac_link) 2>&5 | |
31700 | ac_status=$? | |
31701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31702 | (exit $ac_status); } && | |
31703 | { ac_try='test -s conftest$ac_exeext' | |
31704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31705 | (eval $ac_try) 2>&5 | |
31706 | ac_status=$? | |
31707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31708 | (exit $ac_status); }; }; then | |
31709 | eval "$as_ac_var=yes" | |
31710 | else | |
31711 | echo "$as_me: failed program was:" >&5 | |
31712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31713 | ||
31714 | eval "$as_ac_var=no" | |
31715 | fi | |
31716 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31717 | fi | |
31718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31719 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31720 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31721 | cat >>confdefs.h <<_ACEOF | |
31722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31723 | _ACEOF | |
31724 | ||
31725 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31726 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31727 | _ACEOF |
10f2d63a | 31728 | |
3a922bb4 | 31729 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31730 | |
10f2d63a | 31731 | else |
e6cc62c6 VS |
31732 | |
31733 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31734 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31735 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31737 | else |
e6cc62c6 | 31738 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31739 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31740 | cat >conftest.$ac_ext <<_ACEOF |
31741 | #line $LINENO "configure" | |
31742 | /* confdefs.h. */ | |
31743 | _ACEOF | |
31744 | cat confdefs.h >>conftest.$ac_ext | |
31745 | cat >>conftest.$ac_ext <<_ACEOF | |
31746 | /* end confdefs.h. */ | |
31747 | ||
8284b0c5 | 31748 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31749 | #ifdef __cplusplus |
31750 | extern "C" | |
31751 | #endif | |
f6bcfd97 | 31752 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31753 | builtin and then its argument prototype would still apply. */ |
31754 | char dld (); | |
31755 | int | |
31756 | main () | |
31757 | { | |
31758 | dld (); | |
31759 | ; | |
31760 | return 0; | |
31761 | } | |
31762 | _ACEOF | |
31763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31765 | (eval $ac_link) 2>&5 | |
31766 | ac_status=$? | |
31767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31768 | (exit $ac_status); } && | |
31769 | { ac_try='test -s conftest$ac_exeext' | |
31770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31771 | (eval $ac_try) 2>&5 | |
31772 | ac_status=$? | |
31773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31774 | (exit $ac_status); }; }; then | |
31775 | ac_cv_lib_shl_load_dld=yes | |
31776 | else | |
31777 | echo "$as_me: failed program was:" >&5 | |
31778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31779 | ||
31780 | ac_cv_lib_shl_load_dld=no | |
31781 | fi | |
31782 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31783 | LIBS=$ac_check_lib_save_LIBS | |
31784 | fi | |
31785 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31786 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31787 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31788 | |
3a922bb4 | 31789 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31790 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31791 | |
f6bcfd97 BP |
31792 | fi |
31793 | ||
e6cc62c6 | 31794 | |
10f2d63a VZ |
31795 | fi |
31796 | done | |
31797 | ||
e6cc62c6 | 31798 | |
10f2d63a VZ |
31799 | fi |
31800 | ||
e6cc62c6 | 31801 | |
10f2d63a VZ |
31802 | fi |
31803 | done | |
31804 | ||
5c6fa7d2 | 31805 | |
8284b0c5 | 31806 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31807 | |
31808 | for ac_func in dlerror | |
f6bcfd97 | 31809 | do |
e6cc62c6 VS |
31810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31815 | else | |
31816 | cat >conftest.$ac_ext <<_ACEOF | |
31817 | #line $LINENO "configure" | |
31818 | /* confdefs.h. */ | |
31819 | _ACEOF | |
31820 | cat confdefs.h >>conftest.$ac_ext | |
31821 | cat >>conftest.$ac_ext <<_ACEOF | |
31822 | /* end confdefs.h. */ | |
f6bcfd97 | 31823 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31824 | which can conflict with char $ac_func (); below. |
31825 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31826 | <limits.h> exists even on freestanding compilers. */ | |
31827 | #ifdef __STDC__ | |
31828 | # include <limits.h> | |
31829 | #else | |
31830 | # include <assert.h> | |
31831 | #endif | |
f6bcfd97 | 31832 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31833 | #ifdef __cplusplus |
31834 | extern "C" | |
31835 | { | |
31836 | #endif | |
f6bcfd97 | 31837 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31838 | builtin and then its argument prototype would still apply. */ |
31839 | char $ac_func (); | |
f6bcfd97 BP |
31840 | /* The GNU C library defines this for functions which it implements |
31841 | to always fail with ENOSYS. Some functions are actually named | |
31842 | something starting with __ and the normal name is an alias. */ | |
31843 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31844 | choke me | |
31845 | #else | |
e6cc62c6 VS |
31846 | char (*f) () = $ac_func; |
31847 | #endif | |
31848 | #ifdef __cplusplus | |
31849 | } | |
f6bcfd97 BP |
31850 | #endif |
31851 | ||
e6cc62c6 VS |
31852 | int |
31853 | main () | |
31854 | { | |
31855 | return f != $ac_func; | |
31856 | ; | |
31857 | return 0; | |
31858 | } | |
31859 | _ACEOF | |
31860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31862 | (eval $ac_link) 2>&5 | |
31863 | ac_status=$? | |
31864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31865 | (exit $ac_status); } && | |
31866 | { ac_try='test -s conftest$ac_exeext' | |
31867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31868 | (eval $ac_try) 2>&5 | |
31869 | ac_status=$? | |
31870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31871 | (exit $ac_status); }; }; then | |
31872 | eval "$as_ac_var=yes" | |
31873 | else | |
31874 | echo "$as_me: failed program was:" >&5 | |
31875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31876 | ||
31877 | eval "$as_ac_var=no" | |
31878 | fi | |
31879 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31880 | fi | |
31881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31882 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31883 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31884 | cat >>confdefs.h <<_ACEOF | |
31885 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31886 | _ACEOF | |
31887 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31888 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31889 | _ACEOF |
f6bcfd97 BP |
31890 | |
31891 | else | |
e6cc62c6 VS |
31892 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31893 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31894 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31896 | else |
e6cc62c6 | 31897 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31898 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31899 | cat >conftest.$ac_ext <<_ACEOF |
31900 | #line $LINENO "configure" | |
31901 | /* confdefs.h. */ | |
31902 | _ACEOF | |
31903 | cat confdefs.h >>conftest.$ac_ext | |
31904 | cat >>conftest.$ac_ext <<_ACEOF | |
31905 | /* end confdefs.h. */ | |
31906 | ||
f6bcfd97 | 31907 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31908 | #ifdef __cplusplus |
31909 | extern "C" | |
31910 | #endif | |
f6bcfd97 | 31911 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31912 | builtin and then its argument prototype would still apply. */ |
31913 | char dlerror (); | |
31914 | int | |
31915 | main () | |
31916 | { | |
31917 | dlerror (); | |
31918 | ; | |
31919 | return 0; | |
31920 | } | |
31921 | _ACEOF | |
31922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31924 | (eval $ac_link) 2>&5 | |
31925 | ac_status=$? | |
31926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31927 | (exit $ac_status); } && | |
31928 | { ac_try='test -s conftest$ac_exeext' | |
31929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31930 | (eval $ac_try) 2>&5 | |
31931 | ac_status=$? | |
31932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31933 | (exit $ac_status); }; }; then | |
31934 | ac_cv_lib_dl_dlerror=yes | |
31935 | else | |
31936 | echo "$as_me: failed program was:" >&5 | |
31937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31938 | ||
31939 | ac_cv_lib_dl_dlerror=no | |
31940 | fi | |
31941 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31942 | LIBS=$ac_check_lib_save_LIBS | |
31943 | fi | |
31944 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31945 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31946 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31947 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31948 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31949 | _ACEOF |
f6bcfd97 | 31950 | |
f6bcfd97 BP |
31951 | fi |
31952 | ||
31953 | fi | |
31954 | done | |
31955 | ||
3a922bb4 RL |
31956 | fi |
31957 | fi | |
f6bcfd97 | 31958 | |
3a922bb4 RL |
31959 | if test "$HAVE_DL_FUNCS" = 0; then |
31960 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31961 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
31962 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
31963 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 31964 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
31965 | wxUSE_DYNLIB_CLASS=no |
31966 | else | |
e6cc62c6 VS |
31967 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
31968 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
31969 | fi |
31970 | fi | |
10f2d63a VZ |
31971 | fi |
31972 | fi | |
31973 | fi | |
31974 | ||
0b9ab0bd | 31975 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 31976 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 31977 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 31978 | _ACEOF |
0b9ab0bd | 31979 | |
1948bb32 VS |
31980 | fi |
31981 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 31982 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31983 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 31984 | _ACEOF |
10f2d63a VZ |
31985 | |
31986 | fi | |
31987 | ||
8284b0c5 | 31988 | |
1e6feb95 | 31989 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 31990 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 31991 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 31992 | _ACEOF |
1e6feb95 VZ |
31993 | |
31994 | fi | |
31995 | ||
10f2d63a | 31996 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 31997 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31998 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 31999 | _ACEOF |
10f2d63a | 32000 | |
8284b0c5 | 32001 | |
eb854003 | 32002 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
32003 | wxUSE_UNICODE_MSLU=no |
32004 | fi | |
a72a4bfa | 32005 | |
eb854003 | 32006 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
32007 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32008 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32009 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32011 | else |
e6cc62c6 | 32012 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32013 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
32014 | cat >conftest.$ac_ext <<_ACEOF |
32015 | #line $LINENO "configure" | |
32016 | /* confdefs.h. */ | |
32017 | _ACEOF | |
32018 | cat confdefs.h >>conftest.$ac_ext | |
32019 | cat >>conftest.$ac_ext <<_ACEOF | |
32020 | /* end confdefs.h. */ | |
a72a4bfa | 32021 | |
8284b0c5 | 32022 | |
e6cc62c6 VS |
32023 | int |
32024 | main () | |
32025 | { | |
32026 | main (); | |
32027 | ; | |
32028 | return 0; | |
32029 | } | |
32030 | _ACEOF | |
32031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32033 | (eval $ac_link) 2>&5 | |
32034 | ac_status=$? | |
32035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32036 | (exit $ac_status); } && | |
32037 | { ac_try='test -s conftest$ac_exeext' | |
32038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32039 | (eval $ac_try) 2>&5 | |
32040 | ac_status=$? | |
32041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32042 | (exit $ac_status); }; }; then | |
32043 | ac_cv_lib_unicows_main=yes | |
32044 | else | |
32045 | echo "$as_me: failed program was:" >&5 | |
32046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32047 | ||
32048 | ac_cv_lib_unicows_main=no | |
32049 | fi | |
32050 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32051 | LIBS=$ac_check_lib_save_LIBS | |
32052 | fi | |
32053 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32054 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32055 | if test $ac_cv_lib_unicows_main = yes; then | |
32056 | ||
32057 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32058 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32059 | _ACEOF |
32060 | ||
a72a4bfa | 32061 | |
a72a4bfa | 32062 | else |
a72a4bfa | 32063 | |
e6cc62c6 VS |
32064 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32065 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32066 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32067 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32068 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32069 | |
a72a4bfa VS |
32070 | fi |
32071 | ||
32072 | fi | |
10f2d63a VZ |
32073 | fi |
32074 | ||
10f2d63a | 32075 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32076 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32077 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32078 | _ACEOF |
10f2d63a VZ |
32079 | |
32080 | fi | |
32081 | ||
8284b0c5 | 32082 | |
10f2d63a | 32083 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32084 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32085 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32086 | _ACEOF |
10f2d63a VZ |
32087 | |
32088 | fi | |
32089 | ||
e6cc62c6 | 32090 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32091 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32092 | _ACEOF |
10f2d63a | 32093 | |
8284b0c5 | 32094 | |
e6cc62c6 | 32095 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32096 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32097 | _ACEOF |
10f2d63a | 32098 | |
8284b0c5 MB |
32099 | |
32100 | ||
10f2d63a | 32101 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32102 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32103 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32104 | _ACEOF |
10f2d63a VZ |
32105 | |
32106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32107 | fi | |
32108 | ||
3879ecda | 32109 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32110 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32111 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32112 | _ACEOF |
10f2d63a | 32113 | |
1772d20c | 32114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32115 | fi |
32116 | ||
32117 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32118 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32119 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32120 | _ACEOF |
10f2d63a VZ |
32121 | |
32122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32123 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32124 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32125 | fi | |
32126 | fi | |
32127 | ||
32128 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32129 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32130 | #define wxUSE_HELP 1 |
e6cc62c6 | 32131 | _ACEOF |
10f2d63a VZ |
32132 | |
32133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32134 | |
77e13408 | 32135 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32136 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32137 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32138 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32139 | _ACEOF |
29fd3c0c | 32140 | |
3e44f09d | 32141 | fi |
3379ed37 | 32142 | fi |
031d8228 VS |
32143 | |
32144 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32145 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32146 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32147 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32148 | _ACEOF |
031d8228 VS |
32149 | |
32150 | else | |
e6cc62c6 VS |
32151 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32152 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32153 | wxUSE_WXHTML_HELP=no |
32154 | fi | |
32155 | fi | |
10f2d63a VZ |
32156 | fi |
32157 | ||
32158 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32159 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32160 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32161 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32162 | else |
e6cc62c6 | 32163 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32164 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32165 | _ACEOF |
10f2d63a VZ |
32166 | |
32167 | fi | |
32168 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32169 | fi | |
32170 | ||
e6cc62c6 VS |
32171 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32172 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32173 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32174 | { (exit 1); exit 1; }; } | |
32175 | fi | |
32176 | ||
32177 | ||
32178 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32179 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32180 | -o "$wxUSE_OLE" = "yes" \ | |
32181 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32182 | ||
32183 | for ac_header in ole2.h | |
32184 | do | |
32185 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32191 | fi | |
32192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32194 | else | |
32195 | # Is the header compilable? | |
32196 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32197 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32198 | cat >conftest.$ac_ext <<_ACEOF | |
32199 | #line $LINENO "configure" | |
32200 | /* confdefs.h. */ | |
32201 | _ACEOF | |
32202 | cat confdefs.h >>conftest.$ac_ext | |
32203 | cat >>conftest.$ac_ext <<_ACEOF | |
32204 | /* end confdefs.h. */ | |
32205 | $ac_includes_default | |
32206 | #include <$ac_header> | |
32207 | _ACEOF | |
32208 | rm -f conftest.$ac_objext | |
32209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32210 | (eval $ac_compile) 2>&5 | |
32211 | ac_status=$? | |
32212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32213 | (exit $ac_status); } && | |
32214 | { ac_try='test -s conftest.$ac_objext' | |
32215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32216 | (eval $ac_try) 2>&5 | |
32217 | ac_status=$? | |
32218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32219 | (exit $ac_status); }; }; then | |
32220 | ac_header_compiler=yes | |
32221 | else | |
32222 | echo "$as_me: failed program was:" >&5 | |
32223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32224 | ||
32225 | ac_header_compiler=no | |
32226 | fi | |
32227 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32228 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32229 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32230 | ||
32231 | # Is the header present? | |
32232 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32234 | cat >conftest.$ac_ext <<_ACEOF | |
32235 | #line $LINENO "configure" | |
32236 | /* confdefs.h. */ | |
32237 | _ACEOF | |
32238 | cat confdefs.h >>conftest.$ac_ext | |
32239 | cat >>conftest.$ac_ext <<_ACEOF | |
32240 | /* end confdefs.h. */ | |
32241 | #include <$ac_header> | |
32242 | _ACEOF | |
32243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32245 | ac_status=$? | |
32246 | grep -v '^ *+' conftest.er1 >conftest.err | |
32247 | rm -f conftest.er1 | |
32248 | cat conftest.err >&5 | |
32249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32250 | (exit $ac_status); } >/dev/null; then | |
32251 | if test -s conftest.err; then | |
32252 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32253 | else | |
32254 | ac_cpp_err= | |
32255 | fi | |
32256 | else | |
32257 | ac_cpp_err=yes | |
32258 | fi | |
32259 | if test -z "$ac_cpp_err"; then | |
32260 | ac_header_preproc=yes | |
32261 | else | |
32262 | echo "$as_me: failed program was:" >&5 | |
32263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32264 | ||
32265 | ac_header_preproc=no | |
32266 | fi | |
32267 | rm -f conftest.err conftest.$ac_ext | |
32268 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32269 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32270 | ||
32271 | # So? What about this header? | |
32272 | case $ac_header_compiler:$ac_header_preproc in | |
32273 | yes:no ) | |
32274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32275 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32277 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32278 | ( | |
32279 | cat <<\_ASBOX | |
32280 | ## ------------------------------------ ## | |
32281 | ## Report this to bug-autoconf@gnu.org. ## | |
32282 | ## ------------------------------------ ## | |
32283 | _ASBOX | |
32284 | ) | | |
32285 | sed "s/^/$as_me: WARNING: /" >&2 | |
32286 | ;; | |
32287 | no:yes ) | |
32288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32293 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32294 | ( | |
32295 | cat <<\_ASBOX | |
32296 | ## ------------------------------------ ## | |
32297 | ## Report this to bug-autoconf@gnu.org. ## | |
32298 | ## ------------------------------------ ## | |
32299 | _ASBOX | |
32300 | ) | | |
32301 | sed "s/^/$as_me: WARNING: /" >&2 | |
32302 | ;; | |
32303 | esac | |
32304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32308 | else | |
32309 | eval "$as_ac_Header=$ac_header_preproc" | |
32310 | fi | |
32311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32313 | ||
10f2d63a | 32314 | fi |
e6cc62c6 VS |
32315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32316 | cat >>confdefs.h <<_ACEOF | |
32317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32318 | _ACEOF | |
10f2d63a | 32319 | |
10f2d63a | 32320 | fi |
e6cc62c6 | 32321 | |
10f2d63a VZ |
32322 | done |
32323 | ||
8284b0c5 | 32324 | |
2b9bdf71 VZ |
32325 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32326 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32327 | |
32328 | ||
e6cc62c6 VS |
32329 | ac_ext=cc |
32330 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32331 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32332 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32333 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32334 | ||
32335 | ||
32336 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32337 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32338 | cat >conftest.$ac_ext <<_ACEOF | |
32339 | #line $LINENO "configure" | |
32340 | /* confdefs.h. */ | |
32341 | _ACEOF | |
32342 | cat confdefs.h >>conftest.$ac_ext | |
32343 | cat >>conftest.$ac_ext <<_ACEOF | |
32344 | /* end confdefs.h. */ | |
8284b0c5 MB |
32345 | #include <windows.h> |
32346 | #include <ole2.h> | |
e6cc62c6 VS |
32347 | int |
32348 | main () | |
32349 | { | |
8284b0c5 | 32350 | |
e6cc62c6 VS |
32351 | ; |
32352 | return 0; | |
32353 | } | |
32354 | _ACEOF | |
32355 | rm -f conftest.$ac_objext | |
32356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32357 | (eval $ac_compile) 2>&5 | |
32358 | ac_status=$? | |
32359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32360 | (exit $ac_status); } && | |
32361 | { ac_try='test -s conftest.$ac_objext' | |
32362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32363 | (eval $ac_try) 2>&5 | |
32364 | ac_status=$? | |
32365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32366 | (exit $ac_status); }; }; then | |
32367 | echo "$as_me:$LINENO: result: no" >&5 | |
32368 | echo "${ECHO_T}no" >&6 | |
32369 | else | |
32370 | echo "$as_me: failed program was:" >&5 | |
32371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32372 | ||
32373 | echo "$as_me:$LINENO: result: yes" >&5 | |
32374 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32375 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32376 | fi | |
e6cc62c6 | 32377 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32378 | ac_ext=c |
8284b0c5 | 32379 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32383 | |
2b9bdf71 | 32384 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32385 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32386 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32387 | #define wxUSE_OLE 1 |
e6cc62c6 | 32388 | _ACEOF |
4f11a343 | 32389 | |
8284b0c5 | 32390 | |
2b9bdf71 VZ |
32391 | fi |
32392 | ||
e6cc62c6 | 32393 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32394 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32395 | _ACEOF |
2b9bdf71 VZ |
32396 | |
32397 | else | |
e6cc62c6 VS |
32398 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32399 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32400 | |
32401 | wxUSE_CLIPBOARD=no | |
32402 | wxUSE_DRAG_AND_DROP=no | |
32403 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32404 | wxUSE_OLE=no |
32405 | fi | |
32406 | ||
32407 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32408 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32409 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32410 | _ACEOF |
3bce6687 JS |
32411 | |
32412 | ||
e6cc62c6 | 32413 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32414 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32415 | _ACEOF |
3bce6687 JS |
32416 | |
32417 | fi | |
32418 | fi | |
32419 | ||
2b9bdf71 VZ |
32420 | if test "$wxUSE_IPC" = "yes"; then |
32421 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32422 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32423 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32424 | fi |
32425 | ||
e6cc62c6 | 32426 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32427 | #define wxUSE_IPC 1 |
e6cc62c6 | 32428 | _ACEOF |
2b9bdf71 VZ |
32429 | |
32430 | fi | |
32431 | ||
32432 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32433 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32434 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32435 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32436 | wxUSE_CLIPBOARD=no |
32437 | fi | |
32438 | ||
32439 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32440 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32441 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32442 | _ACEOF |
2b9bdf71 | 32443 | |
8284b0c5 | 32444 | |
e6cc62c6 | 32445 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32446 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32447 | _ACEOF |
673f4220 | 32448 | |
6c657b52 | 32449 | fi |
2b9bdf71 VZ |
32450 | fi |
32451 | ||
32452 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32453 | if test "$wxUSE_GTK" = 1; then | |
32454 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32455 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32456 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32457 | wxUSE_DRAG_AND_DROP=no |
32458 | fi | |
32459 | fi | |
32460 | ||
2b9bdf71 | 32461 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32462 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32463 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32464 | wxUSE_DRAG_AND_DROP=no |
32465 | fi | |
32466 | ||
f79bd02d | 32467 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32468 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32469 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32470 | wxUSE_DRAG_AND_DROP=no |
32471 | fi | |
32472 | ||
6c657b52 | 32473 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32474 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32475 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32476 | wxUSE_DRAG_AND_DROP=no |
32477 | fi | |
32478 | ||
10f2d63a | 32479 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32480 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32481 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32482 | _ACEOF |
10f2d63a VZ |
32483 | |
32484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32485 | fi | |
32486 | ||
32487 | fi | |
32488 | ||
32489 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32490 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32491 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32492 | _ACEOF |
10f2d63a VZ |
32493 | |
32494 | fi | |
32495 | ||
8284b0c5 | 32496 | |
1e6feb95 VZ |
32497 | USES_CONTROLS=0 |
32498 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32499 | USES_CONTROLS=1 | |
32500 | fi | |
32501 | ||
10f2d63a | 32502 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32503 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32504 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32505 | _ACEOF |
10f2d63a | 32506 | |
1e6feb95 VZ |
32507 | USES_CONTROLS=1 |
32508 | fi | |
32509 | ||
32510 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32511 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32512 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32513 | _ACEOF |
1e6feb95 VZ |
32514 | |
32515 | USES_CONTROLS=1 | |
32516 | fi | |
32517 | ||
32518 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32519 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32520 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32521 | _ACEOF |
1e6feb95 VZ |
32522 | |
32523 | USES_CONTROLS=1 | |
32524 | fi | |
32525 | ||
32526 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32527 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32528 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32529 | _ACEOF |
1e6feb95 VZ |
32530 | |
32531 | USES_CONTROLS=1 | |
32532 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32533 | fi |
32534 | ||
32535 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32536 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32537 | #define wxUSE_CARET 1 |
e6cc62c6 | 32538 | _ACEOF |
10f2d63a | 32539 | |
1e6feb95 | 32540 | USES_CONTROLS=1 |
10f2d63a VZ |
32541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32542 | fi | |
32543 | ||
32544 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32545 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32546 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32547 | _ACEOF |
10f2d63a | 32548 | |
1e6feb95 | 32549 | USES_CONTROLS=1 |
10f2d63a VZ |
32550 | fi |
32551 | ||
32552 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32553 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32554 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32555 | _ACEOF |
10f2d63a | 32556 | |
1e6feb95 | 32557 | USES_CONTROLS=1 |
10f2d63a VZ |
32558 | fi |
32559 | ||
32560 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32561 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32562 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32563 | _ACEOF |
10f2d63a | 32564 | |
1e6feb95 | 32565 | USES_CONTROLS=1 |
10f2d63a VZ |
32566 | fi |
32567 | ||
32568 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32569 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32570 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32571 | _ACEOF |
10f2d63a | 32572 | |
1e6feb95 | 32573 | USES_CONTROLS=1 |
10f2d63a VZ |
32574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32575 | fi | |
32576 | ||
da494b40 | 32577 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32578 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32579 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32580 | _ACEOF |
da494b40 MB |
32581 | |
32582 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32583 | fi | |
32584 | ||
10f2d63a | 32585 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32586 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32587 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32588 | _ACEOF |
10f2d63a | 32589 | |
1e6feb95 | 32590 | USES_CONTROLS=1 |
10f2d63a VZ |
32591 | fi |
32592 | ||
d6a55c4b | 32593 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32594 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32595 | #define wxUSE_GRID 1 |
e6cc62c6 | 32596 | _ACEOF |
10f2d63a | 32597 | |
1e6feb95 | 32598 | USES_CONTROLS=1 |
d6a55c4b | 32599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32600 | fi |
32601 | ||
32602 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32603 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32604 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32605 | _ACEOF |
10f2d63a VZ |
32606 | |
32607 | fi | |
32608 | ||
32609 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32610 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32611 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32612 | _ACEOF |
10f2d63a | 32613 | |
1e6feb95 | 32614 | USES_CONTROLS=1 |
10f2d63a VZ |
32615 | fi |
32616 | ||
32617 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32618 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32619 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32620 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32621 | _ACEOF |
10f2d63a | 32622 | |
1e6feb95 | 32623 | USES_CONTROLS=1 |
10f2d63a VZ |
32624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32625 | else | |
e6cc62c6 VS |
32626 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32627 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32628 | fi |
32629 | fi | |
32630 | ||
32631 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32632 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32633 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32634 | _ACEOF |
10f2d63a | 32635 | |
1e6feb95 | 32636 | USES_CONTROLS=1 |
10f2d63a VZ |
32637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32638 | fi | |
32639 | ||
24176f2c | 32640 | |
10f2d63a | 32641 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32642 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32643 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32644 | _ACEOF |
10f2d63a | 32645 | |
1e6feb95 | 32646 | USES_CONTROLS=1 |
10f2d63a VZ |
32647 | fi |
32648 | ||
32649 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32650 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32651 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32652 | _ACEOF |
10f2d63a | 32653 | |
1e6feb95 | 32654 | USES_CONTROLS=1 |
10f2d63a VZ |
32655 | fi |
32656 | ||
32657 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32658 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32659 | #define wxUSE_SASH 1 |
e6cc62c6 | 32660 | _ACEOF |
10f2d63a VZ |
32661 | |
32662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32663 | fi | |
32664 | ||
32665 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32666 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32667 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32668 | _ACEOF |
10f2d63a | 32669 | |
1e6feb95 | 32670 | USES_CONTROLS=1 |
741a9306 | 32671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32672 | fi |
32673 | ||
32674 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32675 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32676 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32677 | _ACEOF |
10f2d63a | 32678 | |
1e6feb95 | 32679 | USES_CONTROLS=1 |
10f2d63a VZ |
32680 | fi |
32681 | ||
32682 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32683 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32684 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32685 | _ACEOF |
10f2d63a | 32686 | |
1e6feb95 | 32687 | USES_CONTROLS=1 |
10f2d63a VZ |
32688 | fi |
32689 | ||
56cfaa52 | 32690 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32691 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32692 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32693 | _ACEOF |
56cfaa52 | 32694 | |
1e6feb95 | 32695 | USES_CONTROLS=1 |
56cfaa52 RR |
32696 | fi |
32697 | ||
10f2d63a | 32698 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32699 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32700 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32701 | _ACEOF |
10f2d63a VZ |
32702 | |
32703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32704 | fi | |
32705 | ||
32706 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32707 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32708 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32709 | _ACEOF |
10f2d63a | 32710 | |
1e6feb95 | 32711 | USES_CONTROLS=1 |
10f2d63a VZ |
32712 | fi |
32713 | ||
32714 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32715 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32716 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32717 | _ACEOF |
10f2d63a | 32718 | |
1e6feb95 VZ |
32719 | USES_CONTROLS=1 |
32720 | fi | |
32721 | ||
32722 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32723 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32724 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32725 | _ACEOF |
1e6feb95 VZ |
32726 | |
32727 | USES_CONTROLS=1 | |
10f2d63a VZ |
32728 | fi |
32729 | ||
32730 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32731 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32732 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32733 | _ACEOF |
10f2d63a | 32734 | |
89e6bf6d | 32735 | USES_CONTROLS=1 |
10f2d63a VZ |
32736 | fi |
32737 | ||
32738 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32739 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32740 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32741 | _ACEOF |
10f2d63a | 32742 | |
1e6feb95 | 32743 | USES_CONTROLS=1 |
698dcdb6 | 32744 | |
2286341c | 32745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32746 | fi |
32747 | ||
32748 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32749 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32750 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32751 | _ACEOF |
10f2d63a VZ |
32752 | |
32753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32754 | fi | |
32755 | ||
1e6feb95 | 32756 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32757 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32758 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32759 | _ACEOF |
1e6feb95 VZ |
32760 | |
32761 | USES_CONTROLS=1 | |
32762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32763 | fi | |
32764 | ||
1db8dc4a | 32765 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32766 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32767 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32768 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32769 | wxUSE_TOGGLEBTN=no |
32770 | fi | |
32771 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32772 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32773 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32774 | wxUSE_TOGGLEBTN=no |
32775 | fi | |
32776 | ||
32777 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32778 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32779 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32780 | _ACEOF |
1db8dc4a | 32781 | |
1e6feb95 | 32782 | USES_CONTROLS=1 |
a45d7ab7 | 32783 | fi |
1db8dc4a VZ |
32784 | fi |
32785 | ||
360d6699 | 32786 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32787 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32788 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32789 | _ACEOF |
360d6699 VZ |
32790 | |
32791 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32792 | USES_CONTROLS=1 |
360d6699 VZ |
32793 | fi |
32794 | ||
10f2d63a | 32795 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32796 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32797 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32798 | _ACEOF |
10f2d63a | 32799 | |
1e6feb95 | 32800 | USES_CONTROLS=1 |
698dcdb6 | 32801 | |
360d6699 VZ |
32802 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
32803 | wxUSE_TOOLBAR_NATIVE="yes" | |
32804 | fi | |
32805 | ||
1e6feb95 | 32806 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 32807 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32808 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 32809 | _ACEOF |
360d6699 | 32810 | |
1e6feb95 VZ |
32811 | USES_CONTROLS=1 |
32812 | fi | |
32813 | ||
32814 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
32815 | fi |
32816 | ||
10f2d63a VZ |
32817 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
32818 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
32819 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
32820 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 32821 | else |
89e6bf6d | 32822 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
32823 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
32824 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 32825 | else |
e6cc62c6 | 32826 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32827 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 32828 | _ACEOF |
10f2d63a VZ |
32829 | |
32830 | fi | |
32831 | fi | |
32832 | fi | |
32833 | ||
32834 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32835 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32836 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32837 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 32838 | _ACEOF |
10f2d63a | 32839 | |
1e6feb95 | 32840 | USES_CONTROLS=1 |
10f2d63a VZ |
32841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
32842 | else | |
e6cc62c6 VS |
32843 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
32844 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32845 | fi |
32846 | fi | |
32847 | ||
9f41d601 | 32848 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 32849 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32850 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
32851 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 32852 | else |
485cf710 | 32853 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32854 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
32855 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 32856 | else |
3c011993 | 32857 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32858 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
32859 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32860 | else |
e6cc62c6 | 32861 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 32862 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 32863 | _ACEOF |
9f41d601 | 32864 | |
8284b0c5 | 32865 | |
3c011993 VZ |
32866 | USES_CONTROLS=1 |
32867 | fi | |
485cf710 | 32868 | fi |
6abe4b65 | 32869 | fi |
9f41d601 RR |
32870 | fi |
32871 | ||
dd964dcc | 32872 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 32873 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32874 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
32875 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32876 | else |
e6cc62c6 | 32877 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 32878 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 32879 | _ACEOF |
dd964dcc | 32880 | |
3c011993 | 32881 | fi |
dd964dcc VZ |
32882 | fi |
32883 | ||
1e6feb95 | 32884 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 32885 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32886 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 32887 | _ACEOF |
10f2d63a | 32888 | |
10f2d63a VZ |
32889 | fi |
32890 | ||
8284b0c5 | 32891 | |
1e6feb95 | 32892 | |
24fd6d87 | 32893 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 32894 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 32895 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 32896 | _ACEOF |
24fd6d87 VZ |
32897 | |
32898 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32899 | fi | |
32900 | ||
7bb2947d | 32901 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 32902 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 32903 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 32904 | _ACEOF |
7bb2947d MB |
32905 | |
32906 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32907 | fi | |
32908 | ||
1e6feb95 | 32909 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 32910 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32911 | #define wxUSE_MENUS 1 |
e6cc62c6 | 32912 | _ACEOF |
10f2d63a | 32913 | |
1e6feb95 | 32914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
32915 | fi |
32916 | ||
1e6feb95 | 32917 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 32918 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32919 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32920 | _ACEOF |
10f2d63a | 32921 | |
10f2d63a VZ |
32922 | fi |
32923 | ||
1e6feb95 | 32924 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 32925 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32926 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 32927 | _ACEOF |
10f2d63a | 32928 | |
10f2d63a VZ |
32929 | fi |
32930 | ||
3e44f09d | 32931 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 32932 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 32933 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 32934 | _ACEOF |
3e44f09d | 32935 | |
131f235d VS |
32936 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
32937 | "$TOOLKIT" = "MOTIF"; then | |
321d2b14 VZ |
32938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
32939 | fi | |
32940 | ||
3e44f09d VZ |
32941 | fi |
32942 | ||
10f2d63a | 32943 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 32944 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32945 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 32946 | _ACEOF |
10f2d63a VZ |
32947 | |
32948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32949 | fi | |
32950 | ||
4d264332 | 32951 | USE_HTML=0 |
10f2d63a | 32952 | if test "$wxUSE_HTML" = "yes"; then |
e6cc62c6 | 32953 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32954 | #define wxUSE_HTML 1 |
e6cc62c6 | 32955 | _ACEOF |
10f2d63a | 32956 | |
4d264332 | 32957 | USE_HTML=1 |
c74dc163 | 32958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
32959 | fi |
32960 | ||
32961 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 32962 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 32963 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 32964 | _ACEOF |
703e0a69 | 32965 | |
698dcdb6 VZ |
32966 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
32967 | fi | |
32968 | ||
edae8572 | 32969 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 32970 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 32971 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 32972 | _ACEOF |
edae8572 VZ |
32973 | |
32974 | fi | |
32975 | ||
698dcdb6 | 32976 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 32977 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32978 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 32979 | _ACEOF |
698dcdb6 VZ |
32980 | |
32981 | fi | |
32982 | ||
32983 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 32984 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32985 | #define wxUSE_GIF 1 |
e6cc62c6 | 32986 | _ACEOF |
698dcdb6 VZ |
32987 | |
32988 | fi | |
32989 | ||
32990 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 32991 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32992 | #define wxUSE_PCX 1 |
e6cc62c6 | 32993 | _ACEOF |
698dcdb6 VZ |
32994 | |
32995 | fi | |
32996 | ||
4b6b4dfc | 32997 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 32998 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 32999 | #define wxUSE_IFF 1 |
e6cc62c6 | 33000 | _ACEOF |
4b6b4dfc RR |
33001 | |
33002 | fi | |
33003 | ||
698dcdb6 | 33004 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 33005 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33006 | #define wxUSE_PNM 1 |
e6cc62c6 | 33007 | _ACEOF |
698dcdb6 VZ |
33008 | |
33009 | fi | |
33010 | ||
33011 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 33012 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33013 | #define wxUSE_XPM 1 |
e6cc62c6 | 33014 | _ACEOF |
698dcdb6 VZ |
33015 | |
33016 | fi | |
33017 | ||
658974ae | 33018 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 33019 | cat >>confdefs.h <<\_ACEOF |
658974ae | 33020 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33021 | _ACEOF |
658974ae VS |
33022 | |
33023 | fi | |
33024 | ||
a72a4bfa VS |
33025 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33026 | LIBS=" -lunicows $LIBS" | |
33027 | fi | |
33028 | ||
8284b0c5 | 33029 | |
1e6feb95 | 33030 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33031 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33032 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33033 | _ACEOF |
1e6feb95 VZ |
33034 | |
33035 | fi | |
33036 | ||
33037 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33038 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33039 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33040 | _ACEOF |
1e6feb95 VZ |
33041 | |
33042 | fi | |
33043 | ||
33044 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33045 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33046 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33047 | _ACEOF |
1e6feb95 VZ |
33048 | |
33049 | fi | |
33050 | ||
8db37e06 | 33051 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33052 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33053 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33054 | _ACEOF |
8db37e06 VZ |
33055 | |
33056 | fi | |
33057 | ||
1e6feb95 | 33058 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33059 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33060 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33061 | _ACEOF |
1e6feb95 VZ |
33062 | |
33063 | fi | |
33064 | ||
33065 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33066 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33067 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33068 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33069 | else |
e6cc62c6 | 33070 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33071 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33072 | _ACEOF |
1e6feb95 | 33073 | |
1e6feb95 VZ |
33074 | fi |
33075 | fi | |
33076 | ||
33077 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33078 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33079 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33080 | _ACEOF |
1e6feb95 VZ |
33081 | |
33082 | fi | |
33083 | ||
33084 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33085 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33086 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33087 | _ACEOF |
1e6feb95 VZ |
33088 | |
33089 | fi | |
33090 | ||
33091 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33092 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33093 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33094 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33095 | else |
e6cc62c6 | 33096 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33097 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33098 | _ACEOF |
1e6feb95 VZ |
33099 | |
33100 | fi | |
33101 | fi | |
33102 | ||
cbca9943 | 33103 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33104 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33105 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33106 | _ACEOF |
cbca9943 VZ |
33107 | |
33108 | fi | |
33109 | ||
1e6feb95 VZ |
33110 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33111 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33112 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33113 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33114 | else |
e6cc62c6 | 33115 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33116 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33117 | _ACEOF |
1e6feb95 | 33118 | |
7b4a847f RR |
33119 | fi |
33120 | fi | |
579d8138 | 33121 | |
8284b0c5 | 33122 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33123 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33124 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33125 | _ACEOF |
8284b0c5 MB |
33126 | |
33127 | fi | |
33128 | ||
33129 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33130 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33131 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33132 | _ACEOF |
8284b0c5 MB |
33133 | |
33134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33135 | fi | |
33136 | ||
33137 | ||
33138 | if test "$cross_compiling" = "yes"; then | |
33139 | OSINFO="\"$host\"" | |
33140 | else | |
33141 | OSINFO=`uname -s -r -m` | |
33142 | OSINFO="\"$OSINFO\"" | |
33143 | fi | |
33144 | ||
e6cc62c6 | 33145 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33146 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33147 | _ACEOF |
8284b0c5 MB |
33148 | |
33149 | ||
33150 | ||
33151 | if test "x$prefix" != "xNONE"; then | |
33152 | wxPREFIX=$prefix | |
33153 | else | |
33154 | wxPREFIX=$ac_default_prefix | |
33155 | fi | |
33156 | ||
e6cc62c6 | 33157 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33158 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33159 | _ACEOF |
8284b0c5 MB |
33160 | |
33161 | ||
e6cc62c6 | 33162 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33163 | |
8284b0c5 MB |
33164 | |
33165 | ||
edd891e2 VS |
33166 | CORE_BASE_LIBS="net base" |
33167 | CORE_GUI_LIBS="adv core" | |
33168 | ||
33169 | if test "$wxUSE_XML" = "yes" ; then | |
33170 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33171 | fi | |
45293562 VS |
33172 | if test "$wxUSE_ODBC" != "no" ; then |
33173 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33174 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33175 | fi |
33176 | if test "$wxUSE_HTML" = "yes" ; then | |
33177 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33178 | fi | |
33179 | ||
33180 | ||
33181 | ||
33182 | ||
33183 | ||
33184 | ||
33185 | ||
8284b0c5 MB |
33186 | |
33187 | if test "$wxUSE_MAC" = 1 ; then | |
33188 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33189 | fi | |
ac0c4cc3 DE |
33190 | if test "$wxUSE_COCOA" = 1 ; then |
33191 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33192 | fi | |
8284b0c5 MB |
33193 | |
33194 | ||
2b5f62a0 VZ |
33195 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33196 | ||
33197 | have_cos=0 | |
33198 | have_floor=0 | |
e6cc62c6 | 33199 | |
2b5f62a0 VZ |
33200 | for ac_func in cos |
33201 | do | |
e6cc62c6 VS |
33202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33205 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33207 | else | |
33208 | cat >conftest.$ac_ext <<_ACEOF | |
33209 | #line $LINENO "configure" | |
33210 | /* confdefs.h. */ | |
33211 | _ACEOF | |
33212 | cat confdefs.h >>conftest.$ac_ext | |
33213 | cat >>conftest.$ac_ext <<_ACEOF | |
33214 | /* end confdefs.h. */ | |
2b5f62a0 | 33215 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33216 | which can conflict with char $ac_func (); below. |
33217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33218 | <limits.h> exists even on freestanding compilers. */ | |
33219 | #ifdef __STDC__ | |
33220 | # include <limits.h> | |
33221 | #else | |
33222 | # include <assert.h> | |
33223 | #endif | |
2b5f62a0 | 33224 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33225 | #ifdef __cplusplus |
33226 | extern "C" | |
33227 | { | |
33228 | #endif | |
2b5f62a0 | 33229 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33230 | builtin and then its argument prototype would still apply. */ |
33231 | char $ac_func (); | |
2b5f62a0 VZ |
33232 | /* The GNU C library defines this for functions which it implements |
33233 | to always fail with ENOSYS. Some functions are actually named | |
33234 | something starting with __ and the normal name is an alias. */ | |
33235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33236 | choke me | |
33237 | #else | |
e6cc62c6 VS |
33238 | char (*f) () = $ac_func; |
33239 | #endif | |
33240 | #ifdef __cplusplus | |
33241 | } | |
2b5f62a0 VZ |
33242 | #endif |
33243 | ||
e6cc62c6 VS |
33244 | int |
33245 | main () | |
33246 | { | |
33247 | return f != $ac_func; | |
33248 | ; | |
33249 | return 0; | |
33250 | } | |
33251 | _ACEOF | |
33252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33254 | (eval $ac_link) 2>&5 | |
33255 | ac_status=$? | |
33256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33257 | (exit $ac_status); } && | |
33258 | { ac_try='test -s conftest$ac_exeext' | |
33259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33260 | (eval $ac_try) 2>&5 | |
33261 | ac_status=$? | |
33262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33263 | (exit $ac_status); }; }; then | |
33264 | eval "$as_ac_var=yes" | |
33265 | else | |
33266 | echo "$as_me: failed program was:" >&5 | |
33267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33268 | ||
33269 | eval "$as_ac_var=no" | |
33270 | fi | |
33271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33272 | fi | |
33273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33276 | cat >>confdefs.h <<_ACEOF | |
33277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33278 | _ACEOF | |
2b5f62a0 | 33279 | have_cos=1 |
2b5f62a0 VZ |
33280 | fi |
33281 | done | |
33282 | ||
e6cc62c6 | 33283 | |
2b5f62a0 VZ |
33284 | for ac_func in floor |
33285 | do | |
e6cc62c6 VS |
33286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33287 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33289 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33291 | else | |
33292 | cat >conftest.$ac_ext <<_ACEOF | |
33293 | #line $LINENO "configure" | |
33294 | /* confdefs.h. */ | |
33295 | _ACEOF | |
33296 | cat confdefs.h >>conftest.$ac_ext | |
33297 | cat >>conftest.$ac_ext <<_ACEOF | |
33298 | /* end confdefs.h. */ | |
2b5f62a0 | 33299 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33300 | which can conflict with char $ac_func (); below. |
33301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33302 | <limits.h> exists even on freestanding compilers. */ | |
33303 | #ifdef __STDC__ | |
33304 | # include <limits.h> | |
33305 | #else | |
33306 | # include <assert.h> | |
33307 | #endif | |
2b5f62a0 | 33308 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33309 | #ifdef __cplusplus |
33310 | extern "C" | |
33311 | { | |
33312 | #endif | |
2b5f62a0 | 33313 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33314 | builtin and then its argument prototype would still apply. */ |
33315 | char $ac_func (); | |
2b5f62a0 VZ |
33316 | /* The GNU C library defines this for functions which it implements |
33317 | to always fail with ENOSYS. Some functions are actually named | |
33318 | something starting with __ and the normal name is an alias. */ | |
33319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33320 | choke me | |
33321 | #else | |
e6cc62c6 VS |
33322 | char (*f) () = $ac_func; |
33323 | #endif | |
33324 | #ifdef __cplusplus | |
33325 | } | |
2b5f62a0 VZ |
33326 | #endif |
33327 | ||
e6cc62c6 VS |
33328 | int |
33329 | main () | |
33330 | { | |
33331 | return f != $ac_func; | |
33332 | ; | |
33333 | return 0; | |
33334 | } | |
33335 | _ACEOF | |
33336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33338 | (eval $ac_link) 2>&5 | |
33339 | ac_status=$? | |
33340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33341 | (exit $ac_status); } && | |
33342 | { ac_try='test -s conftest$ac_exeext' | |
33343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33344 | (eval $ac_try) 2>&5 | |
33345 | ac_status=$? | |
33346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33347 | (exit $ac_status); }; }; then | |
33348 | eval "$as_ac_var=yes" | |
33349 | else | |
33350 | echo "$as_me: failed program was:" >&5 | |
33351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33352 | ||
33353 | eval "$as_ac_var=no" | |
33354 | fi | |
33355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33356 | fi | |
33357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33360 | cat >>confdefs.h <<_ACEOF | |
33361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33362 | _ACEOF | |
2b5f62a0 | 33363 | have_floor=1 |
2b5f62a0 VZ |
33364 | fi |
33365 | done | |
33366 | ||
e6cc62c6 VS |
33367 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33368 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33369 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33370 | echo "$as_me:$LINENO: result: yes" >&5 |
33371 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33372 | else |
e6cc62c6 VS |
33373 | echo "$as_me:$LINENO: result: no" >&5 |
33374 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33375 | LIBS="$LIBS -lm" |
33376 | # use different functions to avoid configure caching | |
33377 | have_sin=0 | |
33378 | have_ceil=0 | |
e6cc62c6 VS |
33379 | |
33380 | for ac_func in sin | |
2b5f62a0 | 33381 | do |
e6cc62c6 VS |
33382 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33383 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33384 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33385 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33387 | else | |
33388 | cat >conftest.$ac_ext <<_ACEOF | |
33389 | #line $LINENO "configure" | |
33390 | /* confdefs.h. */ | |
33391 | _ACEOF | |
33392 | cat confdefs.h >>conftest.$ac_ext | |
33393 | cat >>conftest.$ac_ext <<_ACEOF | |
33394 | /* end confdefs.h. */ | |
2b5f62a0 | 33395 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33396 | which can conflict with char $ac_func (); below. |
33397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33398 | <limits.h> exists even on freestanding compilers. */ | |
33399 | #ifdef __STDC__ | |
33400 | # include <limits.h> | |
33401 | #else | |
33402 | # include <assert.h> | |
33403 | #endif | |
2b5f62a0 | 33404 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33405 | #ifdef __cplusplus |
33406 | extern "C" | |
33407 | { | |
33408 | #endif | |
2b5f62a0 | 33409 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33410 | builtin and then its argument prototype would still apply. */ |
33411 | char $ac_func (); | |
2b5f62a0 VZ |
33412 | /* The GNU C library defines this for functions which it implements |
33413 | to always fail with ENOSYS. Some functions are actually named | |
33414 | something starting with __ and the normal name is an alias. */ | |
33415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33416 | choke me | |
33417 | #else | |
e6cc62c6 VS |
33418 | char (*f) () = $ac_func; |
33419 | #endif | |
33420 | #ifdef __cplusplus | |
33421 | } | |
2b5f62a0 VZ |
33422 | #endif |
33423 | ||
e6cc62c6 VS |
33424 | int |
33425 | main () | |
33426 | { | |
33427 | return f != $ac_func; | |
33428 | ; | |
33429 | return 0; | |
33430 | } | |
33431 | _ACEOF | |
33432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33434 | (eval $ac_link) 2>&5 | |
33435 | ac_status=$? | |
33436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33437 | (exit $ac_status); } && | |
33438 | { ac_try='test -s conftest$ac_exeext' | |
33439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33440 | (eval $ac_try) 2>&5 | |
33441 | ac_status=$? | |
33442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33443 | (exit $ac_status); }; }; then | |
33444 | eval "$as_ac_var=yes" | |
33445 | else | |
33446 | echo "$as_me: failed program was:" >&5 | |
33447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33448 | ||
33449 | eval "$as_ac_var=no" | |
33450 | fi | |
33451 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33452 | fi | |
33453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33456 | cat >>confdefs.h <<_ACEOF | |
33457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33458 | _ACEOF | |
2b5f62a0 | 33459 | have_sin=1 |
2b5f62a0 VZ |
33460 | fi |
33461 | done | |
33462 | ||
e6cc62c6 VS |
33463 | |
33464 | for ac_func in ceil | |
2b5f62a0 | 33465 | do |
e6cc62c6 VS |
33466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33467 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33469 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33471 | else | |
33472 | cat >conftest.$ac_ext <<_ACEOF | |
33473 | #line $LINENO "configure" | |
33474 | /* confdefs.h. */ | |
33475 | _ACEOF | |
33476 | cat confdefs.h >>conftest.$ac_ext | |
33477 | cat >>conftest.$ac_ext <<_ACEOF | |
33478 | /* end confdefs.h. */ | |
2b5f62a0 | 33479 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33480 | which can conflict with char $ac_func (); below. |
33481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33482 | <limits.h> exists even on freestanding compilers. */ | |
33483 | #ifdef __STDC__ | |
33484 | # include <limits.h> | |
33485 | #else | |
33486 | # include <assert.h> | |
33487 | #endif | |
2b5f62a0 | 33488 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33489 | #ifdef __cplusplus |
33490 | extern "C" | |
33491 | { | |
33492 | #endif | |
2b5f62a0 | 33493 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33494 | builtin and then its argument prototype would still apply. */ |
33495 | char $ac_func (); | |
2b5f62a0 VZ |
33496 | /* The GNU C library defines this for functions which it implements |
33497 | to always fail with ENOSYS. Some functions are actually named | |
33498 | something starting with __ and the normal name is an alias. */ | |
33499 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33500 | choke me | |
33501 | #else | |
e6cc62c6 VS |
33502 | char (*f) () = $ac_func; |
33503 | #endif | |
33504 | #ifdef __cplusplus | |
33505 | } | |
2b5f62a0 VZ |
33506 | #endif |
33507 | ||
e6cc62c6 VS |
33508 | int |
33509 | main () | |
33510 | { | |
33511 | return f != $ac_func; | |
33512 | ; | |
33513 | return 0; | |
33514 | } | |
33515 | _ACEOF | |
33516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33518 | (eval $ac_link) 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' | |
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 | |
33535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33536 | fi | |
33537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33538 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33539 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33540 | cat >>confdefs.h <<_ACEOF | |
33541 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33542 | _ACEOF | |
2b5f62a0 | 33543 | have_ceil=1 |
2b5f62a0 VZ |
33544 | fi |
33545 | done | |
33546 | ||
e6cc62c6 VS |
33547 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33548 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33549 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33550 | echo "$as_me:$LINENO: result: yes" >&5 |
33551 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33552 | else |
e6cc62c6 VS |
33553 | echo "$as_me:$LINENO: result: no" >&5 |
33554 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33555 | # not sure we should warn the user, crash, etc. |
33556 | fi | |
33557 | fi | |
8284b0c5 MB |
33558 | |
33559 | if test "$wxUSE_GUI" = "yes"; then | |
33560 | ||
e6cc62c6 | 33561 | |
8284b0c5 MB |
33562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33563 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 33564 | minimal propsize rotate shaped widgets render" |
b625909c VS |
33565 | |
33566 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33567 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33568 | fi | |
8284b0c5 MB |
33569 | else |
33570 | SAMPLES_SUBDIRS="console" | |
33571 | fi | |
33572 | ||
33573 | ||
e6cc62c6 | 33574 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33575 | -I\${top_srcdir}/include \ |
33576 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33577 | $TOOLKIT_INCLUDE" | |
33578 | ||
fddeb06b VS |
33579 | if test "$GXX" = yes ; then |
33580 | CXXWARNINGS="-Wall" | |
33581 | fi | |
33582 | ||
33583 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33584 | ||
95318f7d | 33585 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33586 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33587 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33588 | |
33589 | ||
fddeb06b | 33590 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 33591 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 33592 | EXTRALIBS_XML="$EXPAT_LINK" |
bb41dcbe | 33593 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
33594 | if test "$wxUSE_GUI" = "yes"; then |
33595 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33596 | fi | |
34b08d2c VS |
33597 | if test "$wxUSE_OPENGL" = "yes"; then |
33598 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
33599 | fi | |
fddeb06b VS |
33600 | |
33601 | LDFLAGS="$LDFLAGS $PROFILE" | |
33602 | ||
8284b0c5 MB |
33603 | if test "$wxUSE_GTK" = 1; then |
33604 | WXCONFIG_INCLUDE= | |
33605 | else | |
33606 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33607 | fi | |
33608 | ||
67c13b6c VS |
33609 | WXCONFIG_EXTRALIBS="$LIBS" |
33610 | ||
33611 | if test "$wxUSE_REGEX" = "builtin" ; then | |
33612 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
33613 | fi | |
33614 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
33615 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
33616 | fi | |
33617 | if test "$wxUSE_ODBC" = "builtin" ; then | |
33618 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33619 | fi | |
33620 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
33621 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
33622 | fi | |
33623 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
33624 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
33625 | fi | |
33626 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
33627 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
33628 | fi | |
33629 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
33630 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
33631 | fi | |
bb41dcbe VS |
33632 | if test "$wxUSE_ODBC" = "builtin" ; then |
33633 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33634 | fi | |
67c13b6c VS |
33635 | |
33636 | for i in $wxconfig_3rdparty ; do | |
33637 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
33638 | done | |
33639 | ||
33640 | ||
fe0895cf VS |
33641 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33642 | WXUNIV=1 | |
33643 | else | |
33644 | WXUNIV=0 | |
8284b0c5 MB |
33645 | fi |
33646 | ||
8284b0c5 MB |
33647 | |
33648 | ||
33649 | ||
33650 | ||
33651 | ||
33652 | ||
33653 | ||
672abd7a | 33654 | |
9747f85d VS |
33655 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33656 | MONOLITHIC=1 | |
33657 | else | |
33658 | MONOLITHIC=0 | |
33659 | fi | |
8284b0c5 | 33660 | |
bb41dcbe VS |
33661 | if test $wxUSE_ODBC != "no" ; then |
33662 | USE_ODBC=1 | |
33663 | else | |
33664 | USE_ODBC=0 | |
33665 | fi | |
33666 | ||
029b47ad VS |
33667 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
33668 | OFFICIAL_BUILD=1 | |
33669 | else | |
33670 | OFFICIAL_BUILD=0 | |
33671 | fi | |
33672 | ||
8ee2dd05 VS |
33673 | |
33674 | ||
33675 | ||
8284b0c5 MB |
33676 | |
33677 | ||
33678 | ||
33679 | ||
33680 | ||
33681 | ||
c74dc163 | 33682 | |
34b08d2c | 33683 | |
672abd7a | 33684 | |
cf615ebb | 33685 | |
6c67131a VS |
33686 | |
33687 | ||
bb41dcbe | 33688 | |
fe0895cf | 33689 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33690 | |
33691 | ||
33692 | ||
33693 | ||
33694 | ||
ea66c762 | 33695 | |
0f1bc9c2 | 33696 | |
fe0895cf | 33697 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33698 | |
33699 | if test -n "$ac_tool_prefix"; then | |
33700 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33701 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33704 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33706 | else |
fe0895cf VS |
33707 | if test -n "$RANLIB"; then |
33708 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33709 | else |
e6cc62c6 VS |
33710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33711 | for as_dir in $PATH | |
33712 | do | |
33713 | IFS=$as_save_IFS | |
33714 | test -z "$as_dir" && as_dir=. | |
33715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33717 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33719 | break 2 | |
33720 | fi | |
33721 | done | |
33722 | done | |
33723 | ||
10f2d63a | 33724 | fi |
10f2d63a | 33725 | fi |
e6cc62c6 | 33726 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33727 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33728 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33729 | echo "${ECHO_T}$RANLIB" >&6 | |
33730 | else | |
33731 | echo "$as_me:$LINENO: result: no" >&5 | |
33732 | echo "${ECHO_T}no" >&6 | |
33733 | fi | |
33734 | ||
33735 | fi | |
33736 | if test -z "$ac_cv_prog_RANLIB"; then | |
33737 | ac_ct_RANLIB=$RANLIB | |
33738 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33739 | set dummy ranlib; ac_word=$2 | |
33740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33742 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33744 | else | |
33745 | if test -n "$ac_ct_RANLIB"; then | |
33746 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33747 | else | |
33748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33749 | for as_dir in $PATH | |
33750 | do | |
33751 | IFS=$as_save_IFS | |
33752 | test -z "$as_dir" && as_dir=. | |
33753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33755 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33757 | break 2 | |
33758 | fi | |
33759 | done | |
33760 | done | |
33761 | ||
33762 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33763 | fi | |
33764 | fi | |
33765 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33766 | if test -n "$ac_ct_RANLIB"; then | |
33767 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33768 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33769 | else |
e6cc62c6 VS |
33770 | echo "$as_me:$LINENO: result: no" >&5 |
33771 | echo "${ECHO_T}no" >&6 | |
33772 | fi | |
33773 | ||
33774 | RANLIB=$ac_ct_RANLIB | |
33775 | else | |
33776 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33777 | fi |
665bbe97 | 33778 | |
fe0895cf VS |
33779 | # Find a good install program. We prefer a C program (faster), |
33780 | # so one script is as good as another. But avoid the broken or | |
33781 | # incompatible versions: | |
33782 | # SysV /etc/install, /usr/sbin/install | |
33783 | # SunOS /usr/etc/install | |
33784 | # IRIX /sbin/install | |
33785 | # AIX /bin/install | |
e6cc62c6 | 33786 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33787 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33788 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33789 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33790 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33791 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33792 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33793 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33794 | if test "${ac_cv_path_install+set}" = set; then |
33795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33796 | else | |
33797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33798 | for as_dir in $PATH | |
33799 | do | |
33800 | IFS=$as_save_IFS | |
33801 | test -z "$as_dir" && as_dir=. | |
33802 | # Account for people who put trailing slashes in PATH elements. | |
33803 | case $as_dir/ in | |
33804 | ./ | .// | /cC/* | \ | |
33805 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33806 | /usr/ucb/* ) ;; | |
33807 | *) | |
33808 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33809 | # Don't use installbsd from OSF since it installs stuff as root | |
33810 | # by default. | |
33811 | for ac_prog in ginstall scoinst install; do | |
33812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33813 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33814 | if test $ac_prog = install && | |
33815 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33816 | # AIX install. It has an incompatible calling convention. | |
33817 | : | |
33818 | elif test $ac_prog = install && | |
33819 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33820 | # program-specific install script used by HP pwplus--don't use. | |
33821 | : | |
33822 | else | |
33823 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33824 | break 3 | |
33825 | fi | |
33826 | fi | |
fe0895cf | 33827 | done |
e6cc62c6 VS |
33828 | done |
33829 | ;; | |
33830 | esac | |
33831 | done | |
33832 | ||
fe0895cf VS |
33833 | |
33834 | fi | |
33835 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 33836 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
33837 | else |
33838 | # As a last resort, use the slow shell script. We don't cache a | |
33839 | # path for INSTALL within a source directory, because that will | |
33840 | # break other packages using the cache if that directory is | |
33841 | # removed, or if the path is relative. | |
e6cc62c6 | 33842 | INSTALL=$ac_install_sh |
fe0895cf VS |
33843 | fi |
33844 | fi | |
e6cc62c6 VS |
33845 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
33846 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
33847 | |
33848 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33849 | # It thinks the first close brace ends the variable substitution. | |
33850 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33851 | ||
e6cc62c6 | 33852 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
33853 | |
33854 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33855 | ||
e6cc62c6 VS |
33856 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
33857 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33858 | LN_S=$as_ln_s | |
33859 | if test "$LN_S" = "ln -s"; then | |
33860 | echo "$as_me:$LINENO: result: yes" >&5 | |
33861 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 33862 | else |
e6cc62c6 VS |
33863 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
33864 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
33865 | fi |
33866 | ||
33867 | ||
e6cc62c6 VS |
33868 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33869 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33870 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33871 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33873 | else |
e6cc62c6 | 33874 | cat >conftest.make <<\_ACEOF |
fe0895cf | 33875 | all: |
e6cc62c6 VS |
33876 | @echo 'ac_maketemp="$(MAKE)"' |
33877 | _ACEOF | |
fe0895cf | 33878 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 33879 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
33880 | if test -n "$ac_maketemp"; then |
33881 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33882 | else | |
33883 | eval ac_cv_prog_make_${ac_make}_set=no | |
33884 | fi | |
e6cc62c6 | 33885 | rm -f conftest.make |
fe0895cf VS |
33886 | fi |
33887 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
33888 | echo "$as_me:$LINENO: result: yes" >&5 |
33889 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
33890 | SET_MAKE= |
33891 | else | |
e6cc62c6 VS |
33892 | echo "$as_me:$LINENO: result: no" >&5 |
33893 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33894 | SET_MAKE="MAKE=${MAKE-make}" |
33895 | fi | |
33896 | ||
e6cc62c6 VS |
33897 | |
33898 | ||
fe0895cf VS |
33899 | if test "$build" != "$host" ; then |
33900 | AR=$host_alias-ar | |
33901 | STRIP=$host_alias-strip | |
33902 | else | |
33903 | # Extract the first word of "ar", so it can be a program name with args. | |
33904 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
33905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33907 | if test "${ac_cv_prog_AR+set}" = set; then | |
33908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33909 | else |
33910 | if test -n "$AR"; then | |
33911 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33912 | else | |
e6cc62c6 VS |
33913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33914 | for as_dir in $PATH | |
33915 | do | |
33916 | IFS=$as_save_IFS | |
33917 | test -z "$as_dir" && as_dir=. | |
33918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33920 | ac_cv_prog_AR="ar" | |
33921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33922 | break 2 | |
33923 | fi | |
33924 | done | |
33925 | done | |
33926 | ||
fe0895cf VS |
33927 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
33928 | fi | |
33929 | fi | |
e6cc62c6 | 33930 | AR=$ac_cv_prog_AR |
fe0895cf | 33931 | if test -n "$AR"; then |
e6cc62c6 VS |
33932 | echo "$as_me:$LINENO: result: $AR" >&5 |
33933 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 33934 | else |
e6cc62c6 VS |
33935 | echo "$as_me:$LINENO: result: no" >&5 |
33936 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33937 | fi |
33938 | ||
33939 | # Extract the first word of "strip", so it can be a program name with args. | |
33940 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
33941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33943 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33945 | else |
33946 | if test -n "$STRIP"; then | |
33947 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33948 | else | |
e6cc62c6 VS |
33949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33950 | for as_dir in $PATH | |
33951 | do | |
33952 | IFS=$as_save_IFS | |
33953 | test -z "$as_dir" && as_dir=. | |
33954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33956 | ac_cv_prog_STRIP="strip" | |
33957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33958 | break 2 | |
33959 | fi | |
33960 | done | |
33961 | done | |
33962 | ||
fe0895cf VS |
33963 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
33964 | fi | |
33965 | fi | |
e6cc62c6 | 33966 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 33967 | if test -n "$STRIP"; then |
e6cc62c6 VS |
33968 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
33969 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 33970 | else |
e6cc62c6 VS |
33971 | echo "$as_me:$LINENO: result: no" >&5 |
33972 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33973 | fi |
33974 | ||
33975 | fi | |
33976 | ||
33977 | case ${host} in | |
33978 | *-hp-hpux* ) | |
33979 | INSTALL_DIR="mkdir" | |
33980 | ;; | |
33981 | *) INSTALL_DIR="$INSTALL -d" | |
33982 | ;; | |
33983 | esac | |
e6cc62c6 | 33984 | |
fe0895cf | 33985 | |
6b9d41a5 VS |
33986 | LDFLAGS_GUI= |
33987 | case ${host} in | |
33988 | *-*-cygwin* | *-*-mingw32* ) | |
33989 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
33990 | esac | |
33991 | ||
33992 | ||
fe0895cf | 33993 | fi |
e6cc62c6 VS |
33994 | |
33995 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
33996 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 33997 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 33998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 33999 | else |
e6cc62c6 | 34000 | |
fe0895cf VS |
34001 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34002 | egrep -s GNU > /dev/null); then | |
34003 | bakefile_cv_prog_makeisgnu="yes" | |
34004 | else | |
34005 | bakefile_cv_prog_makeisgnu="no" | |
34006 | fi | |
fe0895cf | 34007 | |
e6cc62c6 | 34008 | fi |
49b0a3aa VS |
34009 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34010 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34011 | |
34012 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34013 | IF_GNU_MAKE="" | |
34014 | else | |
34015 | IF_GNU_MAKE="#" | |
34016 | fi | |
fe0895cf | 34017 | |
e6cc62c6 VS |
34018 | |
34019 | ||
fe0895cf VS |
34020 | PLATFORM_UNIX=0 |
34021 | PLATFORM_WIN32=0 | |
34022 | PLATFORM_MSDOS=0 | |
34023 | PLATFORM_MAC=0 | |
34024 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 34025 | |
fe0895cf VS |
34026 | case "${host}" in |
34027 | *-*-cygwin* | *-*-mingw32* ) | |
34028 | PLATFORM_WIN32=1 | |
34029 | ;; | |
34030 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34031 | PLATFORM_MSDOS=1 | |
34032 | ;; | |
34033 | powerpc-*-darwin* ) | |
34034 | PLATFORM_MAC=1 | |
34035 | PLATFORM_MACOSX=1 | |
34036 | ;; | |
34037 | * ) | |
34038 | PLATFORM_UNIX=1 | |
34039 | ;; | |
34040 | esac | |
34041 | ||
fe0895cf | 34042 | |
e6cc62c6 VS |
34043 | |
34044 | ||
34045 | ||
34046 | ||
34047 | ||
34048 | ||
fe0895cf | 34049 | SO_SUFFIX="so" |
131f235d | 34050 | SO_SUFFIX_MODULE="so" |
fe0895cf VS |
34051 | EXEEXT="" |
34052 | DLLPREFIX=lib | |
131f235d | 34053 | DLLPREFIX_MODULE= |
e6cc62c6 | 34054 | |
fe0895cf VS |
34055 | case "${host}" in |
34056 | *-hp-hpux* ) | |
34057 | SO_SUFFIX="sl" | |
131f235d | 34058 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34059 | ;; |
34060 | *-*-aix* ) | |
34061 | SO_SUFFIX="a" | |
131f235d | 34062 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34063 | ;; |
34064 | *-*-cygwin* | *-*-mingw32* ) | |
34065 | SO_SUFFIX="dll" | |
131f235d | 34066 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34067 | EXEEXT=".exe" |
34068 | DLLPREFIX="" | |
34069 | ;; | |
34070 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34071 | EXEEXT=".exe" | |
34072 | DLLPREFIX="" | |
34073 | ;; | |
34074 | powerpc-*-darwin* ) | |
34075 | SO_SUFFIX="dylib" | |
131f235d | 34076 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34077 | ;; |
34078 | esac | |
34079 | ||
fe0895cf | 34080 | |
e6cc62c6 VS |
34081 | |
34082 | ||
34083 | ||
34084 | ||
131f235d VS |
34085 | |
34086 | ||
fe0895cf VS |
34087 | SHARED_LD_CC="\$(CC) -shared -o" |
34088 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34089 | ||
34090 | if test "x$GCC" = "xyes"; then | |
34091 | PIC_FLAG="-fPIC" | |
34092 | fi | |
34093 | ||
34094 | case "${host}" in | |
34095 | *-hp-hpux* ) | |
34096 | if test "x$GCC" = "xyes"; then | |
34097 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34098 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34099 | else | |
34100 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34101 | ||
34102 | SHARED_LD_CC="${CC} -b -o" | |
34103 | SHARED_LD_CXX="${CXX} -b -o" | |
34104 | PIC_FLAG="+Z" | |
34105 | fi | |
34106 | ;; | |
34107 | ||
34108 | *-*-linux* ) | |
34109 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34110 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34111 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34112 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34114 | else |
fe0895cf | 34115 | |
e6cc62c6 VS |
34116 | cat >conftest.$ac_ext <<_ACEOF |
34117 | #line $LINENO "configure" | |
34118 | /* confdefs.h. */ | |
34119 | _ACEOF | |
34120 | cat confdefs.h >>conftest.$ac_ext | |
34121 | cat >>conftest.$ac_ext <<_ACEOF | |
34122 | /* end confdefs.h. */ | |
34123 | ||
34124 | int | |
34125 | main () | |
34126 | { | |
fe0895cf VS |
34127 | |
34128 | #ifndef __INTEL_COMPILER | |
34129 | #error Not icc | |
34130 | #endif | |
e6cc62c6 VS |
34131 | |
34132 | ; | |
34133 | return 0; | |
34134 | } | |
34135 | _ACEOF | |
34136 | rm -f conftest.$ac_objext | |
34137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34138 | (eval $ac_compile) 2>&5 | |
34139 | ac_status=$? | |
34140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34141 | (exit $ac_status); } && | |
34142 | { ac_try='test -s conftest.$ac_objext' | |
34143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34144 | (eval $ac_try) 2>&5 | |
34145 | ac_status=$? | |
34146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34147 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34148 | bakefile_cv_prog_icc=yes |
34149 | else | |
e6cc62c6 VS |
34150 | echo "$as_me: failed program was:" >&5 |
34151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34152 | ||
34153 | bakefile_cv_prog_icc=no | |
34154 | ||
fe0895cf | 34155 | fi |
e6cc62c6 | 34156 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34157 | |
e6cc62c6 VS |
34158 | fi |
34159 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34160 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34161 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34162 | PIC_FLAG="-KPIC" | |
34163 | fi | |
34164 | fi | |
34165 | ;; | |
34166 | ||
34167 | *-*-solaris2* ) | |
34168 | if test "x$GCC" != xyes ; then | |
34169 | SHARED_LD_CC="${CC} -G -o" | |
34170 | SHARED_LD_CXX="${CXX} -G -o" | |
34171 | PIC_FLAG="-KPIC" | |
34172 | fi | |
34173 | ;; | |
34174 | ||
34175 | *-*-darwin* ) | |
34176 | CFLAGS="$CFLAGS -fno-common" | |
34177 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34178 | |
34179 | ||
fe0895cf VS |
34180 | cat <<EOF >shared-ld-sh |
34181 | #!/bin/sh | |
34182 | #----------------------------------------------------------------------------- | |
34183 | #-- Name: distrib/mac/shared-ld-sh | |
34184 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34185 | #-- Author: Gilles Depeyrot | |
34186 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34187 | #-- Licence: any use permitted | |
34188 | #----------------------------------------------------------------------------- | |
34189 | ||
34190 | verbose=0 | |
34191 | args="" | |
34192 | objects="" | |
131f235d | 34193 | linking_flag="-dynamiclib" |
fe0895cf VS |
34194 | |
34195 | while test \${#} -gt 0; do | |
34196 | case \${1} in | |
34197 | ||
34198 | -v) | |
34199 | verbose=1 | |
34200 | ;; | |
34201 | ||
34202 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34203 | # collect these options and values | |
34204 | args="\${args} \${1} \${2}" | |
34205 | shift | |
34206 | ;; | |
34207 | ||
34208 | -l*|-L*|-flat_namespace) | |
34209 | # collect these options | |
34210 | args="\${args} \${1}" | |
34211 | ;; | |
34212 | ||
131f235d VS |
34213 | -dynamiclib|-bundle) |
34214 | linking_flag="\${1}" | |
fe0895cf VS |
34215 | ;; |
34216 | ||
34217 | -*) | |
34218 | echo "shared-ld: unhandled option '\${1}'" | |
34219 | exit 1 | |
34220 | ;; | |
34221 | ||
4d264332 | 34222 | *.o | *.a | *.dylib) |
fe0895cf VS |
34223 | # collect object files |
34224 | objects="\${objects} \${1}" | |
34225 | ;; | |
34226 | ||
34227 | *) | |
34228 | echo "shared-ld: unhandled argument '\${1}'" | |
34229 | exit 1 | |
34230 | ;; | |
34231 | ||
34232 | esac | |
34233 | shift | |
34234 | done | |
34235 | ||
34236 | # | |
34237 | # Link one module containing all the others | |
34238 | # | |
34239 | if test \${verbose} = 1; then | |
34240 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34241 | fi | |
34242 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34243 | status=\$? | |
34244 | if test \${status} != 0; then | |
34245 | exit \${status} | |
34246 | fi | |
34247 | ||
34248 | # | |
34249 | # Link the shared library from the single module created | |
34250 | # | |
34251 | if test \${verbose} = 1; then | |
131f235d | 34252 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34253 | fi |
131f235d | 34254 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34255 | status=\$? |
34256 | if test \${status} != 0; then | |
34257 | exit \${status} | |
34258 | fi | |
34259 | ||
34260 | # | |
34261 | # Remove intermediate module | |
34262 | # | |
34263 | rm -f master.\$\$.o | |
34264 | ||
34265 | exit 0 | |
34266 | EOF | |
34267 | chmod +x shared-ld-sh | |
34268 | ||
131f235d VS |
34269 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o" |
34270 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o" | |
fe0895cf | 34271 | SHARED_LD_CXX="$SHARED_LD_CC" |
131f235d | 34272 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" |
fe0895cf VS |
34273 | PIC_FLAG="-dynamic -fPIC" |
34274 | ;; | |
34275 | ||
34276 | *-*-aix* ) | |
34277 | if test "x$GCC" != "xyes"; then | |
34278 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34279 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34280 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34282 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34284 | else |
34285 | if test -n "$AIX_CXX_LD"; then | |
34286 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34287 | else | |
e6cc62c6 VS |
34288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34289 | for as_dir in $PATH | |
34290 | do | |
34291 | IFS=$as_save_IFS | |
34292 | test -z "$as_dir" && as_dir=. | |
34293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34294 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34295 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34297 | break 2 | |
34298 | fi | |
34299 | done | |
34300 | done | |
34301 | ||
fe0895cf VS |
34302 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34303 | fi | |
34304 | fi | |
e6cc62c6 | 34305 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34306 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34307 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34308 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34309 | else |
e6cc62c6 VS |
34310 | echo "$as_me:$LINENO: result: no" >&5 |
34311 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34312 | fi |
34313 | ||
34314 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34315 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34316 | fi | |
34317 | ;; | |
34318 | ||
34319 | *-*-beos* ) | |
34320 | SHARED_LD_CC="${LD} -shared -o" | |
34321 | SHARED_LD_CXX="${LD} -shared -o" | |
34322 | ;; | |
34323 | ||
34324 | *-*-irix* ) | |
34325 | if test "x$GCC" != "xyes"; then | |
34326 | PIC_FLAG="-KPIC" | |
34327 | fi | |
34328 | ;; | |
e6cc62c6 | 34329 | |
fe0895cf VS |
34330 | *-*-cygwin* | *-*-mingw32* ) |
34331 | PIC_FLAG="" | |
34332 | ;; | |
e6cc62c6 | 34333 | |
fe0895cf VS |
34334 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34335 | *-*-sunos4* | \ | |
34336 | *-*-osf* | \ | |
34337 | *-*-dgux5* | \ | |
34338 | *-*-sysv5* ) | |
34339 | ;; | |
34340 | ||
34341 | *) | |
e6cc62c6 VS |
34342 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34343 | echo "$as_me: error: unknown system type $host." >&2;} | |
34344 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34345 | esac |
34346 | ||
131f235d VS |
34347 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
34348 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
34349 | fi | |
34350 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 34351 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
34352 | fi |
34353 | ||
34354 | ||
34355 | ||
fe0895cf | 34356 | |
e6cc62c6 VS |
34357 | |
34358 | ||
34359 | ||
34360 | ||
fe0895cf VS |
34361 | USE_SOVERSION=0 |
34362 | USE_SOVERLINUX=0 | |
34363 | USE_SOVERSOLARIS=0 | |
34364 | USE_SOSYMLINKS=0 | |
34365 | USE_MACVERSION=0 | |
34366 | SONAME_FLAG= | |
34367 | ||
34368 | case "${host}" in | |
34369 | *-*-linux* ) | |
34370 | SONAME_FLAG="-Wl,-soname," | |
34371 | USE_SOVERSION=1 | |
34372 | USE_SOVERLINUX=1 | |
34373 | USE_SOSYMLINKS=1 | |
34374 | ;; | |
34375 | ||
34376 | *-*-solaris2* ) | |
34377 | SONAME_FLAG="-h " | |
34378 | USE_SOVERSION=1 | |
34379 | USE_SOVERSOLARIS=1 | |
34380 | USE_SOSYMLINKS=1 | |
34381 | ;; | |
34382 | ||
34383 | *-*-darwin* ) | |
34384 | USE_MACVERSION=1 | |
34385 | USE_SOVERSION=1 | |
34386 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34387 | ;; |
fe0895cf VS |
34388 | esac |
34389 | ||
fe0895cf | 34390 | |
e6cc62c6 VS |
34391 | |
34392 | ||
34393 | ||
34394 | ||
34395 | ||
34396 | ||
34397 | ||
49b0a3aa VS |
34398 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34399 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34400 | DEPS_TRACKING=0 | |
34401 | ||
fe0895cf | 34402 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34403 | DEPSMODE=gcc |
34404 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
34405 | case "${host}" in |
34406 | powerpc-*-darwin* ) | |
34407 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
34408 | ;; | |
34409 | * ) | |
34410 | DEPSFLAG_GCC="-MMD" | |
34411 | ;; | |
34412 | esac | |
49b0a3aa VS |
34413 | echo "$as_me:$LINENO: result: gcc" >&5 |
34414 | echo "${ECHO_T}gcc" >&6 | |
34415 | else | |
34416 | echo "$as_me:$LINENO: result: none" >&5 | |
34417 | echo "${ECHO_T}none" >&6 | |
34418 | fi | |
34419 | ||
34420 | if test $DEPS_TRACKING = 1 ; then | |
34421 | cat <<EOF >bk-deps | |
34422 | #!/bin/sh | |
34423 | ||
45842500 VS |
34424 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
34425 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
34426 | # |
34427 | # Permission is given to use this file in any way. | |
34428 | ||
34429 | DEPSMODE=$DEPSMODE | |
34430 | DEPSDIR=.deps | |
3e5c3c83 | 34431 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
34432 | |
34433 | mkdir -p \$DEPSDIR | |
34434 | ||
34435 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 34436 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
34437 | status=\${?} |
34438 | if test \${status} != 0 ; then | |
34439 | exit \${status} | |
34440 | fi | |
34441 | # move created file to the location we want it in: | |
34442 | while test \${#} -gt 0; do | |
34443 | case "\${1}" in | |
34444 | -o ) | |
34445 | shift | |
34446 | objfile=\${1} | |
34447 | ;; | |
34448 | -* ) | |
34449 | ;; | |
34450 | * ) | |
34451 | srcfile=\${1} | |
34452 | ;; | |
34453 | esac | |
34454 | shift | |
34455 | done | |
34456 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34457 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34458 | if test -f \$depfile ; then |
34459 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34460 | rm -f \$depfile | |
34461 | else | |
34462 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34463 | if test -f \$depfile ; then | |
4c8b7f4b | 34464 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34465 | rm -f \$depfile |
34466 | fi | |
34467 | fi | |
49b0a3aa VS |
34468 | exit 0 |
34469 | else | |
34470 | \${*} | |
34471 | exit \${?} | |
34472 | fi | |
34473 | EOF | |
34474 | chmod +x bk-deps | |
fe0895cf | 34475 | fi |
fe0895cf | 34476 | |
e6cc62c6 VS |
34477 | |
34478 | ||
34479 | ||
fe0895cf VS |
34480 | RESCOMP= |
34481 | SETFILE= | |
34482 | ||
e6cc62c6 | 34483 | case ${host} in |
fe0895cf VS |
34484 | *-*-cygwin* | *-*-mingw32* ) |
34485 | if test "$build" != "$host" ; then | |
34486 | RESCOMP=$host_alias-windres | |
34487 | else | |
34488 | # Extract the first word of "windres", so it can be a program name with args. | |
34489 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34492 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34494 | else |
34495 | if test -n "$RESCOMP"; then | |
34496 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34497 | else | |
e6cc62c6 VS |
34498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34499 | for as_dir in $PATH | |
34500 | do | |
34501 | IFS=$as_save_IFS | |
34502 | test -z "$as_dir" && as_dir=. | |
34503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34505 | ac_cv_prog_RESCOMP="windres" | |
34506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34507 | break 2 | |
34508 | fi | |
34509 | done | |
34510 | done | |
34511 | ||
fe0895cf VS |
34512 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34513 | fi | |
34514 | fi | |
e6cc62c6 | 34515 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34516 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34517 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34518 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34519 | else |
e6cc62c6 VS |
34520 | echo "$as_me:$LINENO: result: no" >&5 |
34521 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34522 | fi |
34523 | ||
34524 | fi | |
34525 | ;; | |
e6cc62c6 | 34526 | |
fe0895cf VS |
34527 | *-*-darwin* ) |
34528 | # Extract the first word of "Rez", so it can be a program name with args. | |
34529 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34532 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34534 | else |
34535 | if test -n "$RESCOMP"; then | |
34536 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34537 | else | |
e6cc62c6 VS |
34538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34539 | for as_dir in $PATH | |
34540 | do | |
34541 | IFS=$as_save_IFS | |
34542 | test -z "$as_dir" && as_dir=. | |
34543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34545 | ac_cv_prog_RESCOMP="Rez" | |
34546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34547 | break 2 | |
34548 | fi | |
34549 | done | |
34550 | done | |
34551 | ||
fe0895cf VS |
34552 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34553 | fi | |
34554 | fi | |
e6cc62c6 | 34555 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34556 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34557 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34558 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34559 | else |
e6cc62c6 VS |
34560 | echo "$as_me:$LINENO: result: no" >&5 |
34561 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34562 | fi |
34563 | ||
34564 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34565 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34568 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34570 | else |
34571 | if test -n "$SETFILE"; then | |
34572 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34573 | else | |
e6cc62c6 VS |
34574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34575 | for as_dir in $PATH | |
34576 | do | |
34577 | IFS=$as_save_IFS | |
34578 | test -z "$as_dir" && as_dir=. | |
34579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34581 | ac_cv_prog_SETFILE="SetFile" | |
34582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34583 | break 2 | |
34584 | fi | |
34585 | done | |
34586 | done | |
34587 | ||
fe0895cf VS |
34588 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34589 | fi | |
34590 | fi | |
e6cc62c6 | 34591 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34592 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34593 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34594 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34595 | else |
e6cc62c6 VS |
34596 | echo "$as_me:$LINENO: result: no" >&5 |
34597 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34598 | fi |
34599 | ||
34600 | ;; | |
34601 | esac | |
34602 | ||
fe0895cf VS |
34603 | |
34604 | ||
e6cc62c6 VS |
34605 | |
34606 | ||
34607 | ||
34608 | ||
45842500 | 34609 | |
40b46a49 VS |
34610 | |
34611 | ||
45842500 VS |
34612 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
34613 | if test "${enable_precomp_headers+set}" = set; then | |
34614 | enableval="$enable_precomp_headers" | |
34615 | bk_use_pch="$enableval" | |
34616 | fi; | |
34617 | ||
34618 | GCC_PCH=0 | |
34619 | ||
34620 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
34621 | if test "x$GCC" = "xyes"; then | |
34622 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
34623 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
34624 | cat >conftest.$ac_ext <<_ACEOF | |
34625 | #line $LINENO "configure" | |
34626 | /* confdefs.h. */ | |
34627 | _ACEOF | |
34628 | cat confdefs.h >>conftest.$ac_ext | |
34629 | cat >>conftest.$ac_ext <<_ACEOF | |
34630 | /* end confdefs.h. */ | |
34631 | ||
34632 | int | |
34633 | main () | |
34634 | { | |
34635 | ||
8bcf2d20 VS |
34636 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
34637 | #error "no pch support" | |
34638 | #endif | |
34639 | #if (__GNUC__ < 3) | |
34640 | #error "no pch support" | |
34641 | #endif | |
34642 | #if (__GNUC__ == 3) && \ | |
34643 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
34644 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
34645 | #error "no pch support" | |
45842500 VS |
34646 | #endif |
34647 | ||
34648 | ; | |
34649 | return 0; | |
34650 | } | |
34651 | _ACEOF | |
34652 | rm -f conftest.$ac_objext | |
34653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34654 | (eval $ac_compile) 2>&5 | |
34655 | ac_status=$? | |
34656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34657 | (exit $ac_status); } && | |
34658 | { ac_try='test -s conftest.$ac_objext' | |
34659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34660 | (eval $ac_try) 2>&5 | |
34661 | ac_status=$? | |
34662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34663 | (exit $ac_status); }; }; then | |
34664 | ||
34665 | echo "$as_me:$LINENO: result: yes" >&5 | |
34666 | echo "${ECHO_T}yes" >&6 | |
34667 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
34668 | GCC_PCH=1 | |
34669 | ||
34670 | else | |
34671 | echo "$as_me: failed program was:" >&5 | |
34672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34673 | ||
34674 | ||
34675 | echo "$as_me:$LINENO: result: no" >&5 | |
34676 | echo "${ECHO_T}no" >&6 | |
34677 | ||
34678 | fi | |
34679 | rm -f conftest.$ac_objext conftest.$ac_ext | |
34680 | if test $GCC_PCH = 1 ; then | |
34681 | cat <<EOF >bk-make-pch | |
34682 | #!/bin/sh | |
34683 | ||
34684 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
34685 | # script. It is used to generated precompiled headers. | |
34686 | # | |
34687 | # Permission is given to use this file in any way. | |
34688 | ||
34689 | outfile="\${1}" | |
34690 | header="\${2}" | |
34691 | shift | |
34692 | shift | |
34693 | ||
34694 | compiler= | |
34695 | headerfile= | |
34696 | while test \${#} -gt 0; do | |
34697 | case "\${1}" in | |
34698 | -I* ) | |
34699 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
34700 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
34701 | headerfile="\${incdir}/\${header}" | |
34702 | fi | |
34703 | ;; | |
34704 | esac | |
34705 | compiler="\${compiler} \${1}" | |
34706 | shift | |
34707 | done | |
34708 | ||
34709 | if test "x\${headerfile}" = "x" ; then | |
34710 | echo "error: can't find header \${header} in include paths" >2 | |
34711 | else | |
34712 | if test -f \${outfile} ; then | |
34713 | rm -f \${outfile} | |
34714 | else | |
34715 | mkdir -p \`dirname \${outfile}\` | |
34716 | fi | |
34717 | depsfile=".deps/\`basename \${outfile}\`.d" | |
34718 | mkdir -p .deps | |
34719 | # can do this because gcc is >= 3.4: | |
34720 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
34721 | exit \${?} | |
34722 | fi | |
34723 | EOF | |
34724 | chmod +x bk-make-pch | |
34725 | fi | |
34726 | fi | |
34727 | fi | |
34728 | ||
34729 | ||
34730 | ||
34731 | ||
34732 | ||
d78c94f2 | 34733 | COND_BUILD_DEBUG="#" |
6f628073 | 34734 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34735 | COND_BUILD_DEBUG="" |
6f628073 VS |
34736 | fi |
34737 | ||
6c67131a VS |
34738 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
34739 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
34740 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
34741 | fi | |
34742 | ||
34743 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
34744 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34745 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
34746 | fi | |
34747 | ||
d78c94f2 | 34748 | COND_BUILD_RELEASE="#" |
6f628073 | 34749 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34750 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34751 | fi |
34752 | ||
6c67131a VS |
34753 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
34754 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34755 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
34756 | fi | |
34757 | ||
34758 | COND_DEBUG_FLAG_1="#" | |
34759 | if test "x$DEBUG_FLAG" = "x1" ; then | |
34760 | COND_DEBUG_FLAG_1="" | |
34761 | fi | |
34762 | ||
34763 | COND_DEBUG_INFO_0="#" | |
34764 | if test "x$DEBUG_INFO" = "x0" ; then | |
34765 | COND_DEBUG_INFO_0="" | |
34766 | fi | |
34767 | ||
34768 | COND_DEBUG_INFO_1="#" | |
34769 | if test "x$DEBUG_INFO" = "x1" ; then | |
34770 | COND_DEBUG_INFO_1="" | |
34771 | fi | |
34772 | ||
f95cd8fa VS |
34773 | COND_DEPS_TRACKING_0="#" |
34774 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34775 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34776 | fi |
34777 | ||
8ee2dd05 VS |
34778 | COND_DEPS_TRACKING_1="#" |
34779 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34780 | COND_DEPS_TRACKING_1="" | |
34781 | fi | |
34782 | ||
45842500 VS |
34783 | COND_GCC_PCH_1="#" |
34784 | if test "x$GCC_PCH" = "x1" ; then | |
34785 | COND_GCC_PCH_1="" | |
34786 | fi | |
34787 | ||
6f628073 VS |
34788 | COND_MONOLITHIC_0="#" |
34789 | if test "x$MONOLITHIC" = "x0" ; then | |
34790 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
34791 | fi |
34792 | ||
6f628073 VS |
34793 | COND_MONOLITHIC_0_SHARED_0="#" |
34794 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34795 | COND_MONOLITHIC_0_SHARED_0="" | |
34796 | fi | |
34797 | ||
34798 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34799 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34800 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 34801 | fi |
e6cc62c6 | 34802 | |
8772a1a7 VS |
34803 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
34804 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34805 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
34806 | fi | |
34807 | ||
250700e4 RD |
34808 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
34809 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
34810 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
34811 | fi | |
34812 | ||
eb69fda5 VS |
34813 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
34814 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
34815 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
34816 | fi | |
34817 | ||
8ee2dd05 VS |
34818 | COND_MONOLITHIC_0_SHARED_1="#" |
34819 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34820 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 34821 | fi |
e6cc62c6 | 34822 | |
6f628073 VS |
34823 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
34824 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34825 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34826 | fi | |
34827 | ||
8772a1a7 VS |
34828 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
34829 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34830 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
34831 | fi | |
34832 | ||
250700e4 RD |
34833 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
34834 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
34835 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
34836 | fi | |
34837 | ||
eb69fda5 VS |
34838 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
34839 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
34840 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
34841 | fi | |
34842 | ||
3af038c0 VS |
34843 | COND_MONOLITHIC_1="#" |
34844 | if test "x$MONOLITHIC" = "x1" ; then | |
34845 | COND_MONOLITHIC_1="" | |
34846 | fi | |
34847 | ||
6f628073 VS |
34848 | COND_MONOLITHIC_1_SHARED_0="#" |
34849 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34850 | COND_MONOLITHIC_1_SHARED_0="" | |
34851 | fi | |
34852 | ||
34853 | COND_MONOLITHIC_1_SHARED_1="#" | |
34854 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34855 | COND_MONOLITHIC_1_SHARED_1="" | |
34856 | fi | |
34857 | ||
3af038c0 VS |
34858 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
34859 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34860 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34861 | fi | |
34862 | ||
34863 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34864 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34865 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34866 | fi | |
34867 | ||
6f628073 VS |
34868 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
34869 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34870 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34871 | fi | |
34872 | ||
3af038c0 VS |
34873 | COND_PLATFORM_MACOSX_1="#" |
34874 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34875 | COND_PLATFORM_MACOSX_1="" | |
34876 | fi | |
34877 | ||
250700e4 RD |
34878 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
34879 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
34880 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
34881 | fi | |
34882 | ||
34883 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
34884 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
34885 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
34886 | fi | |
34887 | ||
34888 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
34889 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
34890 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
34891 | fi | |
34892 | ||
8ee2dd05 VS |
34893 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
34894 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
34895 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
34896 | fi | |
34897 | ||
45842500 VS |
34898 | COND_PLATFORM_MAC_1="#" |
34899 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34900 | COND_PLATFORM_MAC_1="" | |
34901 | fi | |
34902 | ||
8772a1a7 VS |
34903 | COND_PLATFORM_UNIX_0="#" |
34904 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
34905 | COND_PLATFORM_UNIX_0="" | |
34906 | fi | |
34907 | ||
3af038c0 VS |
34908 | COND_PLATFORM_UNIX_1="#" |
34909 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34910 | COND_PLATFORM_UNIX_1="" | |
34911 | fi | |
34912 | ||
34913 | COND_PLATFORM_WIN32_0="#" | |
34914 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34915 | COND_PLATFORM_WIN32_0="" | |
34916 | fi | |
34917 | ||
34918 | COND_PLATFORM_WIN32_1="#" | |
34919 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34920 | COND_PLATFORM_WIN32_1="" | |
34921 | fi | |
34922 | ||
45842500 VS |
34923 | COND_SHARED_0="#" |
34924 | if test "x$SHARED" = "x0" ; then | |
34925 | COND_SHARED_0="" | |
34926 | fi | |
34927 | ||
250700e4 RD |
34928 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
34929 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
34930 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
34931 | fi | |
34932 | ||
52a5a009 VS |
34933 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
34934 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34935 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
34936 | fi | |
34937 | ||
34938 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
34939 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34940 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
34941 | fi | |
34942 | ||
34943 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
34944 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34945 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
34946 | fi | |
34947 | ||
34948 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
34949 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
34950 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
34951 | fi | |
34952 | ||
34953 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
34954 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34955 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
34956 | fi | |
34957 | ||
34958 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
34959 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34960 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
34961 | fi | |
34962 | ||
34963 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
34964 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34965 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
34966 | fi | |
34967 | ||
45842500 VS |
34968 | COND_SHARED_1="#" |
34969 | if test "x$SHARED" = "x1" ; then | |
34970 | COND_SHARED_1="" | |
34971 | fi | |
34972 | ||
250700e4 RD |
34973 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
34974 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
34975 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
34976 | fi | |
34977 | ||
6f628073 VS |
34978 | COND_TOOLKIT_COCOA="#" |
34979 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34980 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
34981 | fi |
34982 | ||
6f628073 VS |
34983 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
34984 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34985 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34986 | fi |
34987 | ||
6f628073 VS |
34988 | COND_TOOLKIT_GTK="#" |
34989 | if test "x$TOOLKIT" = "xGTK" ; then | |
34990 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
34991 | fi |
34992 | ||
6f628073 VS |
34993 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
34994 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
34995 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
34996 | fi |
34997 | ||
6f628073 VS |
34998 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
34999 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35000 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35001 | fi |
35002 | ||
3af038c0 VS |
35003 | COND_TOOLKIT_MAC="#" |
35004 | if test "x$TOOLKIT" = "xMAC" ; then | |
35005 | COND_TOOLKIT_MAC="" | |
35006 | fi | |
35007 | ||
8772a1a7 VS |
35008 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35009 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35010 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35011 | fi | |
35012 | ||
6f628073 VS |
35013 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35014 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35015 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35016 | fi |
35017 | ||
6f628073 VS |
35018 | COND_TOOLKIT_MGL="#" |
35019 | if test "x$TOOLKIT" = "xMGL" ; then | |
35020 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35021 | fi |
35022 | ||
6f628073 VS |
35023 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35024 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35025 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35026 | fi |
35027 | ||
6f628073 VS |
35028 | COND_TOOLKIT_MOTIF="#" |
35029 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35030 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35031 | fi |
35032 | ||
6f628073 VS |
35033 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35034 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35035 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35036 | fi |
e6cc62c6 | 35037 | |
6f628073 VS |
35038 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35039 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35040 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35041 | fi |
35042 | ||
6f628073 VS |
35043 | COND_TOOLKIT_MSW="#" |
35044 | if test "x$TOOLKIT" = "xMSW" ; then | |
35045 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35046 | fi |
35047 | ||
6f628073 VS |
35048 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35049 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35050 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35051 | fi |
e6cc62c6 | 35052 | |
6f628073 VS |
35053 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35054 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35055 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35056 | fi |
e6cc62c6 | 35057 | |
6f628073 VS |
35058 | COND_TOOLKIT_OS2="#" |
35059 | if test "x$TOOLKIT" = "xOS2" ; then | |
35060 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
35061 | fi |
35062 | ||
8772a1a7 VS |
35063 | COND_TOOLKIT_OS2_USE_GUI_1="#" |
35064 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then | |
35065 | COND_TOOLKIT_OS2_USE_GUI_1="" | |
35066 | fi | |
35067 | ||
6f628073 VS |
35068 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
35069 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35070 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
35071 | fi |
35072 | ||
6f628073 VS |
35073 | COND_TOOLKIT_X11="#" |
35074 | if test "x$TOOLKIT" = "xX11" ; then | |
35075 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35076 | fi |
35077 | ||
6f628073 VS |
35078 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35079 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35080 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35081 | fi |
35082 | ||
3af038c0 VS |
35083 | COND_UNICODE_1="#" |
35084 | if test "x$UNICODE" = "x1" ; then | |
35085 | COND_UNICODE_1="" | |
35086 | fi | |
35087 | ||
35088 | COND_USE_GUI_0="#" | |
35089 | if test "x$USE_GUI" = "x0" ; then | |
35090 | COND_USE_GUI_0="" | |
35091 | fi | |
35092 | ||
35093 | COND_USE_GUI_1="#" | |
35094 | if test "x$USE_GUI" = "x1" ; then | |
35095 | COND_USE_GUI_1="" | |
35096 | fi | |
35097 | ||
e6cc62c6 | 35098 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35099 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35100 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35101 | fi |
e6cc62c6 VS |
35102 | |
35103 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35104 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35105 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35106 | fi |
35107 | ||
66a96744 VS |
35108 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35109 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35110 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35111 | fi | |
35112 | ||
35113 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35114 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35115 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35116 | fi | |
35117 | ||
35118 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35119 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35120 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35121 | fi | |
35122 | ||
6f628073 VS |
35123 | COND_USE_SOSYMLINKS_1="#" |
35124 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35125 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35126 | fi |
35127 | ||
6f628073 VS |
35128 | COND_USE_SOVERLINUX_1="#" |
35129 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35130 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35131 | fi |
35132 | ||
6f628073 VS |
35133 | COND_USE_SOVERSION_0="#" |
35134 | if test "x$USE_SOVERSION" = "x0" ; then | |
35135 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35136 | fi |
fe0895cf | 35137 | |
6f628073 VS |
35138 | COND_USE_SOVERSOLARIS_1="#" |
35139 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35140 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35141 | fi |
fe0895cf | 35142 | |
3af038c0 VS |
35143 | COND_WXUNIV_1="#" |
35144 | if test "x$WXUNIV" = "x1" ; then | |
35145 | COND_WXUNIV_1="" | |
35146 | fi | |
35147 | ||
66a96744 VS |
35148 | COND_WXUSE_EXPAT_BUILTIN="#" |
35149 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35150 | COND_WXUSE_EXPAT_BUILTIN="" | |
35151 | fi | |
35152 | ||
02980527 VS |
35153 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35154 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35155 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35156 | fi | |
35157 | ||
35158 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35159 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35160 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35161 | fi | |
35162 | ||
35163 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35164 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35165 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35166 | fi | |
35167 | ||
35168 | COND_WXUSE_ODBC_BUILTIN="#" | |
35169 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35170 | COND_WXUSE_ODBC_BUILTIN="" | |
35171 | fi | |
35172 | ||
35173 | COND_WXUSE_REGEX_BUILTIN="#" | |
35174 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35175 | COND_WXUSE_REGEX_BUILTIN="" | |
35176 | fi | |
35177 | ||
35178 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35179 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35180 | COND_WXUSE_ZLIB_BUILTIN="" | |
35181 | fi | |
35182 | ||
1772d20c | 35183 | |
fe0895cf | 35184 | |
fe0895cf | 35185 | |
fe0895cf | 35186 | |
45842500 VS |
35187 | if test $GCC_PCH = 1 ; then |
35188 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
35189 | else | |
35190 | case "${host}" in | |
35191 | powerpc-*-darwin* ) | |
35192 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
35193 | ;; | |
45842500 VS |
35194 | esac |
35195 | fi | |
2c6f14e1 VS |
35196 | case "${host}" in |
35197 | powerpc-*-darwin* ) | |
35198 | CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX" | |
35199 | ;; | |
35200 | esac | |
fe0895cf VS |
35201 | |
35202 | ||
fddeb06b | 35203 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35204 | |
35205 | ||
35206 | ||
35207 | ||
35208 | ||
35209 | ||
35210 | ||
35211 | ||
35212 | ||
35213 | ||
35214 | ||
35215 | ||
35216 | ||
35217 | ||
35218 | ||
35219 | ||
35220 | ||
35221 | ||
35222 | ||
35223 | ||
35224 | ||
35225 | ||
35226 | ||
35227 | ||
35228 | ||
35229 | ||
35230 | ||
35231 | ||
35232 | ||
35233 | ||
35234 | ||
35235 | ||
35236 | ||
35237 | ||
35238 | ||
35239 | ||
35240 | ||
35241 | ||
35242 | ||
35243 | ||
35244 | ||
35245 | ||
35246 | ||
35247 | ||
35248 | ||
35249 | ||
35250 | ||
35251 | ||
35252 | ||
35253 | ||
35254 | ||
35255 | ||
35256 | ||
35257 | ||
35258 | ||
35259 | ||
35260 | ||
35261 | ||
35262 | ||
35263 | ||
35264 | ||
35265 | ||
35266 | ||
35267 | ||
35268 | ||
35269 | ||
35270 | ||
35271 | ||
35272 | ||
35273 | ||
35274 | ||
35275 | ||
35276 | ||
35277 | ||
35278 | ||
35279 | ||
35280 | ||
35281 | ||
35282 | ||
35283 | ||
35284 | ||
35285 | ||
35286 | ||
35287 | ||
35288 | ||
35289 | ||
35290 | ||
35291 | ||
35292 | ||
35293 | ||
35294 | ||
35295 | ||
35296 | ||
35297 | ||
fe0895cf | 35298 | |
f0290fca VS |
35299 | |
35300 | ||
67c13b6c | 35301 | |
e6cc62c6 VS |
35302 | |
35303 | ||
35304 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35305 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35306 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
35307 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
35308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35309 | else | |
35310 | cat >conftest.make <<\_ACEOF | |
35311 | all: | |
35312 | @echo 'ac_maketemp="$(MAKE)"' | |
35313 | _ACEOF | |
35314 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35315 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35316 | if test -n "$ac_maketemp"; then | |
35317 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35318 | else | |
35319 | eval ac_cv_prog_make_${ac_make}_set=no | |
35320 | fi | |
35321 | rm -f conftest.make | |
35322 | fi | |
35323 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35324 | echo "$as_me:$LINENO: result: yes" >&5 | |
35325 | echo "${ECHO_T}yes" >&6 | |
35326 | SET_MAKE= | |
35327 | else | |
35328 | echo "$as_me:$LINENO: result: no" >&5 | |
35329 | echo "${ECHO_T}no" >&6 | |
35330 | SET_MAKE="MAKE=${MAKE-make}" | |
35331 | fi | |
35332 | ||
35333 | ||
35334 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
35335 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
35336 | fi | |
35337 | ||
35338 | ac_config_headers="$ac_config_headers setup.h" | |
35339 | ||
35340 | ||
81345eef | 35341 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
35342 | |
35343 | ||
35344 | ac_config_commands="$ac_config_commands default" | |
35345 | ||
35346 | ||
9de9b8f0 | 35347 | |
6c3e36af VZ |
35348 | if test "$wxUSE_GUI" = "yes"; then |
35349 | SUBDIRS="samples demos utils contrib" | |
35350 | else SUBDIRS="samples utils" | |
35351 | fi | |
e6cc62c6 | 35352 | |
166263e6 | 35353 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 35354 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 35355 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 35356 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
35357 | makefiles="samples/Makefile.in $makefiles" |
35358 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
35359 | if test -d $srcdir/samples/$sample; then |
35360 | makefiles="samples/$sample/Makefile.in $makefiles" | |
35361 | fi | |
35362 | done | |
35363 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
35364 | fi | |
6c3e36af | 35365 | else if test ${subdir} = "samples"; then |
8772a1a7 | 35366 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af VZ |
35367 | else makefiles="utils/HelpGen/Makefile.in \ |
35368 | utils/HelpGen/src/Makefile.in \ | |
35369 | utils/makegen/Makefile.in" | |
35370 | fi | |
35371 | fi | |
35372 | ||
9747f85d VS |
35373 | for mkin in $makefiles ; do |
35374 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
35375 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 35376 | |
9747f85d VS |
35377 | done |
35378 | fi | |
35379 | done | |
e6cc62c6 | 35380 | |
9de9b8f0 | 35381 | |
e6cc62c6 VS |
35382 | cat >confcache <<\_ACEOF |
35383 | # This file is a shell script that caches the results of configure | |
35384 | # tests run on this system so they can be shared between configure | |
35385 | # scripts and configure runs, see configure's option --config-cache. | |
35386 | # It is not useful on other systems. If it contains results you don't | |
35387 | # want to keep, you may remove or edit it. | |
35388 | # | |
35389 | # config.status only pays attention to the cache file if you give it | |
35390 | # the --recheck option to rerun configure. | |
35391 | # | |
35392 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35393 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35394 | # following values. | |
35395 | ||
35396 | _ACEOF | |
35397 | ||
35398 | # The following way of writing the cache mishandles newlines in values, | |
35399 | # but we know of no workaround that is simple, portable, and efficient. | |
35400 | # So, don't put newlines in cache variables' values. | |
35401 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35402 | # and sets the high bit in the cache file unless we assign to the vars. | |
35403 | { | |
35404 | (set) 2>&1 | | |
35405 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35406 | *ac_space=\ *) | |
35407 | # `set' does not quote correctly, so add quotes (double-quote | |
35408 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35409 | sed -n \ | |
35410 | "s/'/'\\\\''/g; | |
35411 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
35412 | ;; | |
35413 | *) | |
35414 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35415 | sed -n \ | |
35416 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
35417 | ;; | |
35418 | esac; | |
35419 | } | | |
35420 | sed ' | |
35421 | t clear | |
35422 | : clear | |
35423 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35424 | t end | |
35425 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35426 | : end' >>confcache | |
35427 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35428 | if test -w $cache_file; then | |
35429 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35430 | cat confcache >$cache_file | |
35431 | else | |
35432 | echo "not updating unwritable cache $cache_file" | |
35433 | fi | |
35434 | fi | |
35435 | rm -f confcache | |
35436 | ||
35437 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
35438 | # Let make expand exec_prefix. | |
35439 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
35440 | ||
35441 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
35442 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
35443 | # trailing colons and then remove the whole line if VPATH becomes empty | |
35444 | # (actually we leave an empty line to preserve line numbers). | |
35445 | if test "x$srcdir" = x.; then | |
35446 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
35447 | s/:*\$(srcdir):*/:/; | |
35448 | s/:*\${srcdir}:*/:/; | |
35449 | s/:*@srcdir@:*/:/; | |
35450 | s/^\([^=]*=[ ]*\):*/\1/; | |
35451 | s/:*$//; | |
35452 | s/^[^=]*=[ ]*$//; | |
35453 | }' | |
35454 | fi | |
35455 | ||
35456 | DEFS=-DHAVE_CONFIG_H | |
35457 | ||
35458 | ac_libobjs= | |
35459 | ac_ltlibobjs= | |
35460 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
35461 | # 1. Remove the extension, and $U if already installed. | |
35462 | ac_i=`echo "$ac_i" | | |
35463 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
35464 | # 2. Add them. | |
35465 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
35466 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
35467 | done | |
35468 | LIBOBJS=$ac_libobjs | |
35469 | ||
35470 | LTLIBOBJS=$ac_ltlibobjs | |
35471 | ||
35472 | ||
35473 | ||
35474 | : ${CONFIG_STATUS=./config.status} | |
35475 | ac_clean_files_save=$ac_clean_files | |
35476 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
35477 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
35478 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
35479 | cat >$CONFIG_STATUS <<_ACEOF | |
35480 | #! $SHELL | |
35481 | # Generated by $as_me. | |
35482 | # Run this file to recreate the current configuration. | |
35483 | # Compiler output produced by configure, useful for debugging | |
35484 | # configure, is in config.log if it exists. | |
35485 | ||
35486 | debug=false | |
35487 | ac_cs_recheck=false | |
35488 | ac_cs_silent=false | |
35489 | SHELL=\${CONFIG_SHELL-$SHELL} | |
35490 | _ACEOF | |
35491 | ||
35492 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35493 | ## --------------------- ## | |
35494 | ## M4sh Initialization. ## | |
35495 | ## --------------------- ## | |
35496 | ||
35497 | # Be Bourne compatible | |
35498 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35499 | emulate sh | |
35500 | NULLCMD=: | |
35501 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35502 | # is contrary to our usage. Disable this feature. | |
35503 | alias -g '${1+"$@"}'='"$@"' | |
35504 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
35505 | set -o posix | |
35506 | fi | |
35507 | ||
35508 | # Support unset when possible. | |
35509 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
35510 | as_unset=unset | |
35511 | else | |
35512 | as_unset=false | |
35513 | fi | |
35514 | ||
35515 | ||
35516 | # Work around bugs in pre-3.0 UWIN ksh. | |
35517 | $as_unset ENV MAIL MAILPATH | |
35518 | PS1='$ ' | |
35519 | PS2='> ' | |
35520 | PS4='+ ' | |
35521 | ||
35522 | # NLS nuisances. | |
35523 | for as_var in \ | |
35524 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
35525 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
35526 | LC_TELEPHONE LC_TIME | |
35527 | do | |
35528 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
35529 | eval $as_var=C; export $as_var | |
35530 | else | |
35531 | $as_unset $as_var | |
35532 | fi | |
35533 | done | |
35534 | ||
35535 | # Required to use basename. | |
35536 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35537 | as_expr=expr | |
35538 | else | |
35539 | as_expr=false | |
35540 | fi | |
35541 | ||
35542 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
35543 | as_basename=basename | |
35544 | else | |
35545 | as_basename=false | |
35546 | fi | |
35547 | ||
35548 | ||
35549 | # Name of the executable. | |
35550 | as_me=`$as_basename "$0" || | |
35551 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
35552 | X"$0" : 'X\(//\)$' \| \ | |
35553 | X"$0" : 'X\(/\)$' \| \ | |
35554 | . : '\(.\)' 2>/dev/null || | |
35555 | echo X/"$0" | | |
35556 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
35557 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
35558 | /^X\/\(\/\).*/{ s//\1/; q; } | |
35559 | s/.*/./; q'` | |
35560 | ||
35561 | ||
35562 | # PATH needs CR, and LINENO needs CR and PATH. | |
35563 | # Avoid depending upon Character Ranges. | |
35564 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35565 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35566 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35567 | as_cr_digits='0123456789' | |
35568 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35569 | ||
35570 | # The user is always right. | |
35571 | if test "${PATH_SEPARATOR+set}" != set; then | |
35572 | echo "#! /bin/sh" >conf$$.sh | |
35573 | echo "exit 0" >>conf$$.sh | |
35574 | chmod +x conf$$.sh | |
35575 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
35576 | PATH_SEPARATOR=';' | |
35577 | else | |
35578 | PATH_SEPARATOR=: | |
35579 | fi | |
35580 | rm -f conf$$.sh | |
35581 | fi | |
35582 | ||
35583 | ||
35584 | as_lineno_1=$LINENO | |
35585 | as_lineno_2=$LINENO | |
35586 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35587 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35588 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
35589 | # Find who we are. Look in the path if we contain no path at all | |
35590 | # relative or not. | |
35591 | case $0 in | |
35592 | *[\\/]* ) as_myself=$0 ;; | |
35593 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35594 | for as_dir in $PATH | |
35595 | do | |
35596 | IFS=$as_save_IFS | |
35597 | test -z "$as_dir" && as_dir=. | |
35598 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
35599 | done | |
35600 | ||
35601 | ;; | |
35602 | esac | |
35603 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
35604 | # in which case we are not to be found in the path. | |
35605 | if test "x$as_myself" = x; then | |
35606 | as_myself=$0 | |
35607 | fi | |
35608 | if test ! -f "$as_myself"; then | |
35609 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
35610 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
35611 | { (exit 1); exit 1; }; } | |
35612 | fi | |
35613 | case $CONFIG_SHELL in | |
35614 | '') | |
35615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35616 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
35617 | do | |
35618 | IFS=$as_save_IFS | |
35619 | test -z "$as_dir" && as_dir=. | |
35620 | for as_base in sh bash ksh sh5; do | |
35621 | case $as_dir in | |
35622 | /*) | |
35623 | if ("$as_dir/$as_base" -c ' | |
35624 | as_lineno_1=$LINENO | |
35625 | as_lineno_2=$LINENO | |
35626 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35627 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35628 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
35629 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
35630 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
35631 | CONFIG_SHELL=$as_dir/$as_base | |
35632 | export CONFIG_SHELL | |
35633 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
35634 | fi;; | |
35635 | esac | |
35636 | done | |
35637 | done | |
35638 | ;; | |
35639 | esac | |
35640 | ||
35641 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35642 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35643 | # line-number line before each line; the second 'sed' does the real | |
35644 | # work. The second script uses 'N' to pair each line-number line | |
35645 | # with the numbered line, and appends trailing '-' during | |
35646 | # substitution so that $LINENO is not a special case at line end. | |
35647 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35648 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35649 | sed '=' <$as_myself | | |
35650 | sed ' | |
35651 | N | |
35652 | s,$,-, | |
35653 | : loop | |
35654 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35655 | t loop | |
35656 | s,-$,, | |
35657 | s,^['$as_cr_digits']*\n,, | |
35658 | ' >$as_me.lineno && | |
35659 | chmod +x $as_me.lineno || | |
35660 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35661 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35662 | { (exit 1); exit 1; }; } | |
35663 | ||
35664 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35665 | # (the dirname of $[0] is not the place where we might find the | |
35666 | # original and so on. Autoconf is especially sensible to this). | |
35667 | . ./$as_me.lineno | |
35668 | # Exit status is that of the last command. | |
35669 | exit | |
35670 | } | |
35671 | ||
35672 | ||
35673 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35674 | *c*,-n*) ECHO_N= ECHO_C=' | |
35675 | ' ECHO_T=' ' ;; | |
35676 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35677 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35678 | esac | |
35679 | ||
35680 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35681 | as_expr=expr | |
35682 | else | |
35683 | as_expr=false | |
35684 | fi | |
35685 | ||
35686 | rm -f conf$$ conf$$.exe conf$$.file | |
35687 | echo >conf$$.file | |
35688 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35689 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35690 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35691 | if test -f conf$$.exe; then | |
35692 | # Don't use ln at all; we don't have any links | |
35693 | as_ln_s='cp -p' | |
35694 | else | |
35695 | as_ln_s='ln -s' | |
35696 | fi | |
35697 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35698 | as_ln_s=ln | |
35699 | else | |
35700 | as_ln_s='cp -p' | |
35701 | fi | |
35702 | rm -f conf$$ conf$$.exe conf$$.file | |
35703 | ||
35704 | if mkdir -p . 2>/dev/null; then | |
35705 | as_mkdir_p=: | |
35706 | else | |
35707 | as_mkdir_p=false | |
35708 | fi | |
35709 | ||
35710 | as_executable_p="test -f" | |
35711 | ||
35712 | # Sed expression to map a string onto a valid CPP name. | |
35713 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35714 | ||
35715 | # Sed expression to map a string onto a valid variable name. | |
35716 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35717 | ||
35718 | ||
35719 | # IFS | |
35720 | # We need space, tab and new line, in precisely that order. | |
35721 | as_nl=' | |
35722 | ' | |
35723 | IFS=" $as_nl" | |
35724 | ||
35725 | # CDPATH. | |
35726 | $as_unset CDPATH | |
35727 | ||
35728 | exec 6>&1 | |
35729 | ||
35730 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35731 | # report actual input values of CONFIG_FILES etc. instead of their | |
35732 | # values after options handling. Logging --version etc. is OK. | |
35733 | exec 5>>config.log | |
35734 | { | |
35735 | echo | |
35736 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35737 | ## Running $as_me. ## | |
35738 | _ASBOX | |
35739 | } >&5 | |
35740 | cat >&5 <<_CSEOF | |
35741 | ||
35742 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35743 | generated by GNU Autoconf 2.57. Invocation command line was | |
35744 | ||
35745 | CONFIG_FILES = $CONFIG_FILES | |
35746 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35747 | CONFIG_LINKS = $CONFIG_LINKS | |
35748 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35749 | $ $0 $@ | |
35750 | ||
35751 | _CSEOF | |
35752 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35753 | echo >&5 | |
35754 | _ACEOF | |
35755 | ||
35756 | # Files that config.status was made for. | |
35757 | if test -n "$ac_config_files"; then | |
35758 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35759 | fi | |
35760 | ||
35761 | if test -n "$ac_config_headers"; then | |
35762 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35763 | fi | |
35764 | ||
35765 | if test -n "$ac_config_links"; then | |
35766 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35767 | fi | |
35768 | ||
35769 | if test -n "$ac_config_commands"; then | |
35770 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35771 | fi | |
35772 | ||
35773 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35774 | ||
35775 | ac_cs_usage="\ | |
35776 | \`$as_me' instantiates files from templates according to the | |
35777 | current configuration. | |
35778 | ||
35779 | Usage: $0 [OPTIONS] [FILE]... | |
35780 | ||
35781 | -h, --help print this help, then exit | |
35782 | -V, --version print version number, then exit | |
35783 | -q, --quiet do not print progress messages | |
35784 | -d, --debug don't remove temporary files | |
35785 | --recheck update $as_me by reconfiguring in the same conditions | |
35786 | --file=FILE[:TEMPLATE] | |
35787 | instantiate the configuration file FILE | |
35788 | --header=FILE[:TEMPLATE] | |
35789 | instantiate the configuration header FILE | |
35790 | ||
35791 | Configuration files: | |
35792 | $config_files | |
35793 | ||
35794 | Configuration headers: | |
35795 | $config_headers | |
35796 | ||
35797 | Configuration commands: | |
35798 | $config_commands | |
35799 | ||
35800 | Report bugs to <bug-autoconf@gnu.org>." | |
35801 | _ACEOF | |
35802 | ||
35803 | cat >>$CONFIG_STATUS <<_ACEOF | |
35804 | ac_cs_version="\\ | |
35805 | wxWindows config.status 2.5.0 | |
35806 | configured by $0, generated by GNU Autoconf 2.57, | |
35807 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35808 | ||
35809 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35810 | Free Software Foundation, Inc. | |
35811 | This config.status script is free software; the Free Software Foundation | |
35812 | gives unlimited permission to copy, distribute and modify it." | |
35813 | srcdir=$srcdir | |
35814 | INSTALL="$INSTALL" | |
35815 | _ACEOF | |
35816 | ||
35817 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35818 | # If no file are specified by the user, then we need to provide default | |
35819 | # value. By we need to know if files were specified by the user. | |
35820 | ac_need_defaults=: | |
35821 | while test $# != 0 | |
35822 | do | |
35823 | case $1 in | |
35824 | --*=*) | |
35825 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35826 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35827 | ac_shift=: | |
35828 | ;; | |
35829 | -*) | |
35830 | ac_option=$1 | |
35831 | ac_optarg=$2 | |
35832 | ac_shift=shift | |
35833 | ;; | |
35834 | *) # This is not an option, so the user has probably given explicit | |
35835 | # arguments. | |
35836 | ac_option=$1 | |
35837 | ac_need_defaults=false;; | |
35838 | esac | |
35839 | ||
35840 | case $ac_option in | |
35841 | # Handling of the options. | |
35842 | _ACEOF | |
35843 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35844 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35845 | ac_cs_recheck=: ;; | |
35846 | --version | --vers* | -V ) | |
35847 | echo "$ac_cs_version"; exit 0 ;; | |
35848 | --he | --h) | |
35849 | # Conflict between --help and --header | |
35850 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35851 | Try \`$0 --help' for more information." >&5 | |
35852 | echo "$as_me: error: ambiguous option: $1 | |
35853 | Try \`$0 --help' for more information." >&2;} | |
35854 | { (exit 1); exit 1; }; };; | |
35855 | --help | --hel | -h ) | |
35856 | echo "$ac_cs_usage"; exit 0 ;; | |
35857 | --debug | --d* | -d ) | |
35858 | debug=: ;; | |
35859 | --file | --fil | --fi | --f ) | |
35860 | $ac_shift | |
35861 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35862 | ac_need_defaults=false;; | |
35863 | --header | --heade | --head | --hea ) | |
35864 | $ac_shift | |
35865 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35866 | ac_need_defaults=false;; | |
35867 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35868 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35869 | ac_cs_silent=: ;; | |
35870 | ||
35871 | # This is an error. | |
35872 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35873 | Try \`$0 --help' for more information." >&5 | |
35874 | echo "$as_me: error: unrecognized option: $1 | |
35875 | Try \`$0 --help' for more information." >&2;} | |
35876 | { (exit 1); exit 1; }; } ;; | |
35877 | ||
35878 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35879 | ||
35880 | esac | |
35881 | shift | |
35882 | done | |
35883 | ||
35884 | ac_configure_extra_args= | |
35885 | ||
35886 | if $ac_cs_silent; then | |
35887 | exec 6>/dev/null | |
35888 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35889 | fi |
35890 | ||
e6cc62c6 VS |
35891 | _ACEOF |
35892 | cat >>$CONFIG_STATUS <<_ACEOF | |
35893 | if \$ac_cs_recheck; then | |
35894 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35895 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35896 | fi |
35897 | ||
e6cc62c6 | 35898 | _ACEOF |
fe0895cf | 35899 | |
e6cc62c6 | 35900 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35901 | # |
e6cc62c6 | 35902 | # INIT-COMMANDS section. |
10f2d63a | 35903 | # |
10f2d63a | 35904 | |
a0b9e27f | 35905 | |
e6cc62c6 VS |
35906 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35907 | LN_S="${LN_S}" | |
10f2d63a | 35908 | |
10f2d63a | 35909 | |
10f2d63a | 35910 | |
e6cc62c6 | 35911 | _ACEOF |
8284b0c5 | 35912 | |
52127426 | 35913 | |
247f5006 | 35914 | |
e6cc62c6 VS |
35915 | cat >>$CONFIG_STATUS <<\_ACEOF |
35916 | for ac_config_target in $ac_config_targets | |
247f5006 | 35917 | do |
e6cc62c6 VS |
35918 | case "$ac_config_target" in |
35919 | # Handling of arguments. | |
81345eef VZ |
35920 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
35921 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35922 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 35923 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
35924 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
35925 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35926 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35927 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35928 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
35929 | esac |
35930 | done | |
35931 | ||
e6cc62c6 VS |
35932 | # If the user did not use the arguments to specify the items to instantiate, |
35933 | # then the envvar interface is used. Set only those that are not. | |
35934 | # We use the long form for the default assignment because of an extremely | |
35935 | # bizarre bug on SunOS 4.1.3. | |
35936 | if $ac_need_defaults; then | |
35937 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35938 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35939 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35940 | fi | |
35941 | ||
35942 | # Have a temporary directory for convenience. Make it in the build tree | |
35943 | # simply because there is no reason to put it here, and in addition, | |
35944 | # creating and moving files from /tmp can sometimes cause problems. | |
35945 | # Create a temporary directory, and hook for its removal unless debugging. | |
35946 | $debug || | |
35947 | { | |
35948 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35949 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35950 | } | |
247f5006 | 35951 | |
e6cc62c6 | 35952 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 35953 | |
e6cc62c6 VS |
35954 | { |
35955 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35956 | test -n "$tmp" && test -d "$tmp" | |
35957 | } || | |
35958 | { | |
35959 | tmp=./confstat$$-$RANDOM | |
35960 | (umask 077 && mkdir $tmp) | |
35961 | } || | |
35962 | { | |
35963 | echo "$me: cannot create a temporary directory in ." >&2 | |
35964 | { (exit 1); exit 1; } | |
35965 | } | |
35966 | ||
35967 | _ACEOF | |
35968 | ||
35969 | cat >>$CONFIG_STATUS <<_ACEOF | |
35970 | ||
35971 | # | |
35972 | # CONFIG_FILES section. | |
35973 | # | |
247f5006 | 35974 | |
e6cc62c6 VS |
35975 | # No need to generate the scripts if there are no CONFIG_FILES. |
35976 | # This happens for instance when ./config.status config.h | |
35977 | if test -n "\$CONFIG_FILES"; then | |
35978 | # Protect against being on the right side of a sed subst in config.status. | |
35979 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35980 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35981 | s,@SHELL@,$SHELL,;t t | |
35982 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35983 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35984 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35985 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35986 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35987 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35988 | s,@exec_prefix@,$exec_prefix,;t t | |
35989 | s,@prefix@,$prefix,;t t | |
35990 | s,@program_transform_name@,$program_transform_name,;t t | |
35991 | s,@bindir@,$bindir,;t t | |
35992 | s,@sbindir@,$sbindir,;t t | |
35993 | s,@libexecdir@,$libexecdir,;t t | |
35994 | s,@datadir@,$datadir,;t t | |
35995 | s,@sysconfdir@,$sysconfdir,;t t | |
35996 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35997 | s,@localstatedir@,$localstatedir,;t t | |
35998 | s,@libdir@,$libdir,;t t | |
35999 | s,@includedir@,$includedir,;t t | |
36000 | s,@oldincludedir@,$oldincludedir,;t t | |
36001 | s,@infodir@,$infodir,;t t | |
36002 | s,@mandir@,$mandir,;t t | |
36003 | s,@build_alias@,$build_alias,;t t | |
36004 | s,@host_alias@,$host_alias,;t t | |
36005 | s,@target_alias@,$target_alias,;t t | |
36006 | s,@DEFS@,$DEFS,;t t | |
36007 | s,@ECHO_C@,$ECHO_C,;t t | |
36008 | s,@ECHO_N@,$ECHO_N,;t t | |
36009 | s,@ECHO_T@,$ECHO_T,;t t | |
36010 | s,@LIBS@,$LIBS,;t t | |
36011 | s,@build@,$build,;t t | |
36012 | s,@build_cpu@,$build_cpu,;t t | |
36013 | s,@build_vendor@,$build_vendor,;t t | |
36014 | s,@build_os@,$build_os,;t t | |
36015 | s,@host@,$host,;t t | |
36016 | s,@host_cpu@,$host_cpu,;t t | |
36017 | s,@host_vendor@,$host_vendor,;t t | |
36018 | s,@host_os@,$host_os,;t t | |
36019 | s,@target@,$target,;t t | |
36020 | s,@target_cpu@,$target_cpu,;t t | |
36021 | s,@target_vendor@,$target_vendor,;t t | |
36022 | s,@target_os@,$target_os,;t t | |
36023 | s,@CC@,$CC,;t t | |
36024 | s,@CFLAGS@,$CFLAGS,;t t | |
36025 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36026 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36027 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36028 | s,@EXEEXT@,$EXEEXT,;t t | |
36029 | s,@OBJEXT@,$OBJEXT,;t t | |
36030 | s,@CPP@,$CPP,;t t | |
36031 | s,@EGREP@,$EGREP,;t t | |
36032 | s,@CXX@,$CXX,;t t | |
36033 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36034 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36035 | s,@RANLIB@,$RANLIB,;t t | |
36036 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36037 | s,@AR@,$AR,;t t | |
36038 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36039 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36040 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36041 | s,@STRIP@,$STRIP,;t t | |
36042 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
36043 | s,@LN_S@,$LN_S,;t t |
36044 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36045 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36046 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36047 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36048 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36049 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36050 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36051 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36052 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36053 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36054 | s,@X_LIBS@,$X_LIBS,;t t | |
36055 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36056 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36057 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36058 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36059 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36060 | s,@RESCOMP@,$RESCOMP,;t t |
36061 | s,@DEREZ@,$DEREZ,;t t | |
36062 | s,@SETFILE@,$SETFILE,;t t | |
36063 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36064 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36065 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36066 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36067 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36068 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36069 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36070 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36071 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36072 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36073 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36074 | s,@VENDOR@,$VENDOR,;t t |
36075 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36076 | s,@WXUNIV@,$WXUNIV,;t t |
36077 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36078 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36079 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
bb41dcbe | 36080 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36081 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36082 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36083 | s,@UNICODE@,$UNICODE,;t t |
36084 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36085 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36086 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36087 | s,@SHARED@,$SHARED,;t t |
36088 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36089 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36090 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 36091 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 36092 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36093 | s,@SET_MAKE@,$SET_MAKE,;t t |
36094 | s,@MAKE_SET@,$MAKE_SET,;t t | |
36095 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 36096 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36097 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36098 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36099 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36100 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36101 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
36102 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
131f235d | 36103 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
e6cc62c6 | 36104 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36105 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36106 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36107 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36108 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36109 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36110 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36111 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36112 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36113 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36114 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36115 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36116 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36117 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36118 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 36119 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 36120 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36121 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36122 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36123 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36124 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36125 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36126 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36127 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36128 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36129 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 36130 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 36131 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36132 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36133 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 36134 | 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 | 36135 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 36136 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 36137 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36138 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 36139 | 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 | 36140 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 36141 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
3af038c0 | 36142 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36143 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36144 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36145 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36146 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36147 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36148 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36149 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36150 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36151 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
8ee2dd05 | 36152 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 36153 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
8772a1a7 | 36154 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 VS |
36155 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
36156 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
36157 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 36158 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 36159 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
36160 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36161 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36162 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
36163 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
36164 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
36165 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
36166 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 36167 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 36168 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
36169 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36170 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36171 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36172 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 36173 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 36174 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 36175 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
36176 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36177 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36178 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
36179 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
36180 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36181 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36182 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36183 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36184 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 | 36185 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
8772a1a7 | 36186 | s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t |
6f628073 VS |
36187 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t |
36188 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
36189 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 VS |
36190 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
36191 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
36192 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36193 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36194 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36195 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36196 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36197 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
6f628073 VS |
36198 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36199 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36200 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36201 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36202 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36203 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36204 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36205 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36206 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36207 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36208 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36209 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
36210 | s,@PATH_IFS@,$PATH_IFS,;t t |
36211 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36212 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36213 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36214 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36215 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36216 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36217 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36218 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36219 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36220 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36221 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36222 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36223 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36224 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36225 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36226 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36227 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36228 | s,@WX_ALL@,$WX_ALL,;t t | |
36229 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36230 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36231 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36232 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36233 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36234 | s,@USE_GUI@,$USE_GUI,;t t | |
36235 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36236 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36237 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36238 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36239 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36240 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36241 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36242 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36243 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36244 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36245 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36246 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36247 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36248 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36249 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36250 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36251 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 36252 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 36253 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
36254 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36255 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36256 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36257 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36258 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36259 | s,@GUIDIST@,$GUIDIST,;t t | |
36260 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36261 | s,@DISTDIR@,$DISTDIR,;t t | |
36262 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36263 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36264 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36265 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36266 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36267 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36268 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36269 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36270 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36271 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36272 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
36273 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
36274 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
36275 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36276 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36277 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36278 | s,@GCC@,$GCC,;t t | |
36279 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36280 | s,@AS@,$AS,;t t | |
36281 | s,@NM@,$NM,;t t | |
36282 | s,@LD@,$LD,;t t | |
36283 | s,@MAKEINFO@,$MAKEINFO,;t t | |
36284 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
36285 | s,@LIBOBJS@,$LIBOBJS,;t t |
36286 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
36287 | CEOF |
36288 | ||
e6cc62c6 VS |
36289 | _ACEOF |
36290 | ||
36291 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36292 | # Split the substitutions into bite-sized pieces for seds with | |
36293 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
36294 | ac_max_sed_lines=48 | |
36295 | ac_sed_frag=1 # Number of current file. | |
36296 | ac_beg=1 # First line for current file. | |
36297 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
36298 | ac_more_lines=: | |
36299 | ac_sed_cmds= | |
36300 | while $ac_more_lines; do | |
36301 | if test $ac_beg -gt 1; then | |
36302 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 36303 | else |
e6cc62c6 VS |
36304 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
36305 | fi | |
36306 | if test ! -s $tmp/subs.frag; then | |
36307 | ac_more_lines=false | |
36308 | else | |
36309 | # The purpose of the label and of the branching condition is to | |
36310 | # speed up the sed processing (if there are no `@' at all, there | |
36311 | # is no need to browse any of the substitutions). | |
36312 | # These are the two extra sed commands mentioned above. | |
36313 | (echo ':t | |
36314 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
36315 | if test -z "$ac_sed_cmds"; then | |
36316 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
36317 | else | |
36318 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
36319 | fi | |
36320 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
36321 | ac_beg=$ac_end | |
36322 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 36323 | fi |
e6cc62c6 VS |
36324 | done |
36325 | if test -z "$ac_sed_cmds"; then | |
36326 | ac_sed_cmds=cat | |
10f2d63a | 36327 | fi |
e6cc62c6 | 36328 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 36329 | |
e6cc62c6 VS |
36330 | _ACEOF |
36331 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36332 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 36333 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36334 | case $ac_file in |
36335 | - | *:- | *:-:* ) # input from stdin | |
36336 | cat >$tmp/stdin | |
36337 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36338 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36339 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36340 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36341 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 36342 | esac |
247f5006 | 36343 | |
e6cc62c6 VS |
36344 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
36345 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36346 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36347 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36348 | X"$ac_file" : 'X\(//\)$' \| \ | |
36349 | X"$ac_file" : 'X\(/\)' \| \ | |
36350 | . : '\(.\)' 2>/dev/null || | |
36351 | echo X"$ac_file" | | |
36352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36353 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36354 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36355 | /^X\(\/\).*/{ s//\1/; q; } | |
36356 | s/.*/./; q'` | |
36357 | { if $as_mkdir_p; then | |
36358 | mkdir -p "$ac_dir" | |
a0b9e27f | 36359 | else |
e6cc62c6 VS |
36360 | as_dir="$ac_dir" |
36361 | as_dirs= | |
36362 | while test ! -d "$as_dir"; do | |
36363 | as_dirs="$as_dir $as_dirs" | |
36364 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36365 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36366 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36367 | X"$as_dir" : 'X\(//\)$' \| \ | |
36368 | X"$as_dir" : 'X\(/\)' \| \ | |
36369 | . : '\(.\)' 2>/dev/null || | |
36370 | echo X"$as_dir" | | |
36371 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36372 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36373 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36374 | /^X\(\/\).*/{ s//\1/; q; } | |
36375 | s/.*/./; q'` | |
36376 | done | |
36377 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36378 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36379 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36380 | { (exit 1); exit 1; }; }; } | |
36381 | ||
36382 | ac_builddir=. | |
36383 | ||
36384 | if test "$ac_dir" != .; then | |
36385 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36386 | # A "../" for each directory in $ac_dir_suffix. | |
36387 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36388 | else | |
36389 | ac_dir_suffix= ac_top_builddir= | |
36390 | fi | |
247f5006 | 36391 | |
e6cc62c6 VS |
36392 | case $srcdir in |
36393 | .) # No --srcdir option. We are building in place. | |
36394 | ac_srcdir=. | |
36395 | if test -z "$ac_top_builddir"; then | |
36396 | ac_top_srcdir=. | |
36397 | else | |
36398 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36399 | fi ;; | |
36400 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36401 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36402 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 36403 | *) # Relative path. |
e6cc62c6 VS |
36404 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
36405 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36406 | esac | |
36407 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36408 | # absolute. | |
36409 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36410 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36411 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36412 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 36413 | |
247f5006 | 36414 | |
e6cc62c6 VS |
36415 | case $INSTALL in |
36416 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
36417 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 36418 | esac |
247f5006 | 36419 | |
e6cc62c6 VS |
36420 | if test x"$ac_file" != x-; then |
36421 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
36422 | echo "$as_me: creating $ac_file" >&6;} | |
36423 | rm -f "$ac_file" | |
36424 | fi | |
36425 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36426 | # use $as_me), people would be surprised to read: | |
36427 | # /* config.h. Generated by config.status. */ | |
36428 | if test x"$ac_file" = x-; then | |
36429 | configure_input= | |
36430 | else | |
36431 | configure_input="$ac_file. " | |
36432 | fi | |
36433 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
36434 | sed 's,.*/,,'` by configure." | |
36435 | ||
36436 | # First look for the input files in the build tree, otherwise in the | |
36437 | # src tree. | |
36438 | ac_file_inputs=`IFS=: | |
36439 | for f in $ac_file_in; do | |
36440 | case $f in | |
36441 | -) echo $tmp/stdin ;; | |
36442 | [\\/$]*) | |
36443 | # Absolute (can't be DOS-style, as IFS=:) | |
36444 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36445 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36446 | { (exit 1); exit 1; }; } | |
36447 | echo $f;; | |
36448 | *) # Relative | |
36449 | if test -f "$f"; then | |
36450 | # Build tree | |
36451 | echo $f | |
36452 | elif test -f "$srcdir/$f"; then | |
36453 | # Source tree | |
36454 | echo $srcdir/$f | |
36455 | else | |
36456 | # /dev/null tree | |
36457 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36458 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36459 | { (exit 1); exit 1; }; } | |
36460 | fi;; | |
36461 | esac | |
36462 | done` || { (exit 1); exit 1; } | |
36463 | _ACEOF | |
36464 | cat >>$CONFIG_STATUS <<_ACEOF | |
36465 | sed "$ac_vpsub | |
36466 | $extrasub | |
36467 | _ACEOF | |
36468 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36469 | :t | |
36470 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
36471 | s,@configure_input@,$configure_input,;t t | |
36472 | s,@srcdir@,$ac_srcdir,;t t | |
36473 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
36474 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
36475 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
36476 | s,@builddir@,$ac_builddir,;t t | |
36477 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
36478 | s,@top_builddir@,$ac_top_builddir,;t t | |
36479 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
36480 | s,@INSTALL@,$ac_INSTALL,;t t | |
36481 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
36482 | rm -f $tmp/stdin | |
36483 | if test x"$ac_file" != x-; then | |
36484 | mv $tmp/out $ac_file | |
36485 | else | |
36486 | cat $tmp/out | |
36487 | rm -f $tmp/out | |
36488 | fi | |
36489 | ||
36490 | done | |
36491 | _ACEOF | |
36492 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36493 | ||
36494 | # | |
36495 | # CONFIG_HEADER section. | |
36496 | # | |
10f2d63a VZ |
36497 | |
36498 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
36499 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
36500 | # | |
36501 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
36502 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
36503 | ac_dB='[ ].*$,\1#\2' | |
36504 | ac_dC=' ' | |
36505 | ac_dD=',;t' | |
36506 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
36507 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
36508 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 36509 | ac_uC=' ' |
e6cc62c6 VS |
36510 | ac_uD=',;t' |
36511 | ||
36512 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 36513 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36514 | case $ac_file in |
36515 | - | *:- | *:-:* ) # input from stdin | |
36516 | cat >$tmp/stdin | |
36517 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36518 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36519 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36520 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36521 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
36522 | esac |
36523 | ||
e6cc62c6 VS |
36524 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
36525 | echo "$as_me: creating $ac_file" >&6;} | |
36526 | ||
36527 | # First look for the input files in the build tree, otherwise in the | |
36528 | # src tree. | |
36529 | ac_file_inputs=`IFS=: | |
36530 | for f in $ac_file_in; do | |
36531 | case $f in | |
36532 | -) echo $tmp/stdin ;; | |
36533 | [\\/$]*) | |
36534 | # Absolute (can't be DOS-style, as IFS=:) | |
36535 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36536 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36537 | { (exit 1); exit 1; }; } | |
36538 | echo $f;; | |
36539 | *) # Relative | |
36540 | if test -f "$f"; then | |
36541 | # Build tree | |
36542 | echo $f | |
36543 | elif test -f "$srcdir/$f"; then | |
36544 | # Source tree | |
36545 | echo $srcdir/$f | |
36546 | else | |
36547 | # /dev/null tree | |
36548 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36549 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36550 | { (exit 1); exit 1; }; } | |
36551 | fi;; | |
36552 | esac | |
36553 | done` || { (exit 1); exit 1; } | |
36554 | # Remove the trailing spaces. | |
36555 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
36556 | ||
36557 | _ACEOF | |
36558 | ||
36559 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
36560 | # `conftest.undefs', that substitutes the proper values into | |
36561 | # config.h.in to produce config.h. The first handles `#define' | |
36562 | # templates, and the second `#undef' templates. | |
36563 | # And first: Protect against being on the right side of a sed subst in | |
36564 | # config.status. Protect against being in an unquoted here document | |
36565 | # in config.status. | |
36566 | rm -f conftest.defines conftest.undefs | |
36567 | # Using a here document instead of a string reduces the quoting nightmare. | |
36568 | # Putting comments in sed scripts is not portable. | |
36569 | # | |
36570 | # `end' is used to avoid that the second main sed command (meant for | |
36571 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
36572 | # See the Autoconf documentation for `clear'. | |
36573 | cat >confdef2sed.sed <<\_ACEOF | |
36574 | s/[\\&,]/\\&/g | |
36575 | s,[\\$`],\\&,g | |
36576 | t clear | |
36577 | : clear | |
36578 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
36579 | t end | |
36580 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
36581 | : end | |
36582 | _ACEOF | |
36583 | # If some macros were called several times there might be several times | |
36584 | # the same #defines, which is useless. Nevertheless, we may not want to | |
36585 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
36586 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
36587 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
36588 | rm -f confdef2sed.sed | |
10f2d63a VZ |
36589 | |
36590 | # This sed command replaces #undef with comments. This is necessary, for | |
36591 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
36592 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
36593 | cat >>conftest.undefs <<\_ACEOF |
36594 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
36595 | _ACEOF | |
36596 | ||
36597 | # Break up conftest.defines because some shells have a limit on the size | |
36598 | # of here documents, and old seds have small limits too (100 cmds). | |
36599 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
36600 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
36601 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
36602 | echo ' :' >>$CONFIG_STATUS | |
36603 | rm -f conftest.tail | |
36604 | while grep . conftest.defines >/dev/null | |
36605 | do | |
36606 | # Write a limited-size here document to $tmp/defines.sed. | |
36607 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
36608 | # Speed up: don't consider the non `#define' lines. | |
36609 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
36610 | # Work around the forget-to-reset-the-flag bug. | |
36611 | echo 't clr' >>$CONFIG_STATUS | |
36612 | echo ': clr' >>$CONFIG_STATUS | |
36613 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
36614 | echo 'CEOF | |
36615 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
36616 | rm -f $tmp/in | |
36617 | mv $tmp/out $tmp/in | |
36618 | ' >>$CONFIG_STATUS | |
36619 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
36620 | rm -f conftest.defines | |
36621 | mv conftest.tail conftest.defines | |
36622 | done | |
36623 | rm -f conftest.defines | |
36624 | echo ' fi # grep' >>$CONFIG_STATUS | |
36625 | echo >>$CONFIG_STATUS | |
10f2d63a | 36626 | |
e6cc62c6 VS |
36627 | # Break up conftest.undefs because some shells have a limit on the size |
36628 | # of here documents, and old seds have small limits too (100 cmds). | |
36629 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 36630 | rm -f conftest.tail |
e6cc62c6 | 36631 | while grep . conftest.undefs >/dev/null |
10f2d63a | 36632 | do |
e6cc62c6 VS |
36633 | # Write a limited-size here document to $tmp/undefs.sed. |
36634 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
36635 | # Speed up: don't consider the non `#undef' | |
36636 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
36637 | # Work around the forget-to-reset-the-flag bug. | |
36638 | echo 't clr' >>$CONFIG_STATUS | |
36639 | echo ': clr' >>$CONFIG_STATUS | |
36640 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 36641 | echo 'CEOF |
e6cc62c6 VS |
36642 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
36643 | rm -f $tmp/in | |
36644 | mv $tmp/out $tmp/in | |
36645 | ' >>$CONFIG_STATUS | |
36646 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
36647 | rm -f conftest.undefs | |
36648 | mv conftest.tail conftest.undefs | |
10f2d63a | 36649 | done |
e6cc62c6 VS |
36650 | rm -f conftest.undefs |
36651 | ||
36652 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36653 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36654 | # use $as_me), people would be surprised to read: | |
36655 | # /* config.h. Generated by config.status. */ | |
36656 | if test x"$ac_file" = x-; then | |
36657 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 36658 | else |
e6cc62c6 | 36659 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 36660 | fi |
e6cc62c6 VS |
36661 | cat $tmp/in >>$tmp/config.h |
36662 | rm -f $tmp/in | |
36663 | if test x"$ac_file" != x-; then | |
36664 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
36665 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
36666 | echo "$as_me: $ac_file is unchanged" >&6;} | |
36667 | else | |
36668 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36669 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36670 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36671 | X"$ac_file" : 'X\(//\)$' \| \ | |
36672 | X"$ac_file" : 'X\(/\)' \| \ | |
36673 | . : '\(.\)' 2>/dev/null || | |
36674 | echo X"$ac_file" | | |
36675 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36676 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36677 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36678 | /^X\(\/\).*/{ s//\1/; q; } | |
36679 | s/.*/./; q'` | |
36680 | { if $as_mkdir_p; then | |
36681 | mkdir -p "$ac_dir" | |
36682 | else | |
36683 | as_dir="$ac_dir" | |
36684 | as_dirs= | |
36685 | while test ! -d "$as_dir"; do | |
36686 | as_dirs="$as_dir $as_dirs" | |
36687 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36688 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36689 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36690 | X"$as_dir" : 'X\(//\)$' \| \ | |
36691 | X"$as_dir" : 'X\(/\)' \| \ | |
36692 | . : '\(.\)' 2>/dev/null || | |
36693 | echo X"$as_dir" | | |
36694 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36695 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36696 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36697 | /^X\(\/\).*/{ s//\1/; q; } | |
36698 | s/.*/./; q'` | |
36699 | done | |
36700 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36701 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36702 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36703 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36704 | |
e6cc62c6 VS |
36705 | rm -f $ac_file |
36706 | mv $tmp/config.h $ac_file | |
36707 | fi | |
36708 | else | |
36709 | cat $tmp/config.h | |
36710 | rm -f $tmp/config.h | |
36711 | fi | |
36712 | done | |
36713 | _ACEOF | |
36714 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36715 | |
e6cc62c6 VS |
36716 | # |
36717 | # CONFIG_COMMANDS section. | |
36718 | # | |
36719 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36720 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36721 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36722 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36723 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36724 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36725 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36726 | X"$ac_dest" : 'X\(/\)' \| \ | |
36727 | . : '\(.\)' 2>/dev/null || | |
36728 | echo X"$ac_dest" | | |
36729 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36730 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36731 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36732 | /^X\(\/\).*/{ s//\1/; q; } | |
36733 | s/.*/./; q'` | |
36734 | ac_builddir=. | |
36735 | ||
36736 | if test "$ac_dir" != .; then | |
36737 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36738 | # A "../" for each directory in $ac_dir_suffix. | |
36739 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36740 | else | |
36741 | ac_dir_suffix= ac_top_builddir= | |
36742 | fi | |
36743 | ||
36744 | case $srcdir in | |
36745 | .) # No --srcdir option. We are building in place. | |
36746 | ac_srcdir=. | |
36747 | if test -z "$ac_top_builddir"; then | |
36748 | ac_top_srcdir=. | |
36749 | else | |
36750 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36751 | fi ;; | |
36752 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36753 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36754 | ac_top_srcdir=$srcdir ;; | |
36755 | *) # Relative path. | |
36756 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36757 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36758 | esac | |
36759 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36760 | # absolute. | |
36761 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36762 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36763 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36764 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36765 | ||
36766 | ||
36767 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36768 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36769 | case $ac_dest in | |
36770 | default ) | |
652d930d | 36771 | if test ! -h wx-config; then |
991a5759 | 36772 | chmod +x wx-config |
3a922bb4 RL |
36773 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36774 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36775 | fi |
665bbe97 | 36776 | |
00cf1208 RR |
36777 | if test ! -d lib; then |
36778 | mkdir lib | |
36779 | fi | |
36780 | if test ! -d lib/wx; then | |
36781 | mkdir lib/wx | |
36782 | fi | |
36783 | if test ! -d lib/wx/include; then | |
36784 | mkdir lib/wx/include | |
36785 | fi | |
3a922bb4 RL |
36786 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36787 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36788 | fi |
3a922bb4 RL |
36789 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36790 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36791 | fi |
36792 | if test -f setup.h; then | |
3a922bb4 | 36793 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36794 | fi |
e6cc62c6 VS |
36795 | ;; |
36796 | esac | |
36797 | done | |
36798 | _ACEOF | |
2224580a | 36799 | |
e6cc62c6 | 36800 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36801 | |
e6cc62c6 VS |
36802 | { (exit 0); exit 0; } |
36803 | _ACEOF | |
36804 | chmod +x $CONFIG_STATUS | |
36805 | ac_clean_files=$ac_clean_files_save | |
36806 | ||
36807 | ||
36808 | # configure is writing to config.log, and then calls config.status. | |
36809 | # config.status does its own redirection, appending to config.log. | |
36810 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36811 | # by configure, so config.status won't be able to write to it; its | |
36812 | # output is simply discarded. So we exec the FD to /dev/null, | |
36813 | # effectively closing config.log, so it can be properly (re)opened and | |
36814 | # appended to by config.status. When coming back to configure, we | |
36815 | # need to make the FD available again. | |
36816 | if test "$no_create" != yes; then | |
36817 | ac_cs_success=: | |
36818 | ac_config_status_args= | |
36819 | test "$silent" = yes && | |
36820 | ac_config_status_args="$ac_config_status_args --quiet" | |
36821 | exec 5>/dev/null | |
36822 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36823 | exec 5>>config.log | |
36824 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36825 | # would make configure fail if this is the last instruction. | |
36826 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36827 | fi |
36828 | ||
672abd7a VS |
36829 | # |
36830 | # CONFIG_SUBDIRS section. | |
36831 | # | |
36832 | if test "$no_recursion" != yes; then | |
36833 | ||
36834 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
36835 | ac_sub_configure_args= | |
36836 | ac_prev= | |
36837 | for ac_arg in $ac_configure_args; do | |
36838 | if test -n "$ac_prev"; then | |
36839 | ac_prev= | |
36840 | continue | |
36841 | fi | |
36842 | case $ac_arg in | |
36843 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
36844 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
36845 | ac_prev=cache_file ;; | |
36846 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
36847 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
36848 | | --c=*) | |
36849 | ;; | |
36850 | --config-cache | -C) | |
36851 | ;; | |
36852 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
36853 | ac_prev=srcdir ;; | |
36854 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
36855 | ;; | |
36856 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
36857 | ac_prev=prefix ;; | |
36858 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
36859 | ;; | |
36860 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
36861 | esac | |
36862 | done | |
36863 | ||
36864 | # Always prepend --prefix to ensure using the same prefix | |
36865 | # in subdir configurations. | |
36866 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
36867 | ||
36868 | ac_popdir=`pwd` | |
36869 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
36870 | ||
36871 | # Do not complain, so a configure script can configure whichever | |
36872 | # parts of a large source tree are present. | |
36873 | test -d $srcdir/$ac_dir || continue | |
36874 | ||
36875 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
36876 | echo "$as_me: configuring in $ac_dir" >&6;} | |
36877 | { if $as_mkdir_p; then | |
36878 | mkdir -p "$ac_dir" | |
36879 | else | |
36880 | as_dir="$ac_dir" | |
36881 | as_dirs= | |
36882 | while test ! -d "$as_dir"; do | |
36883 | as_dirs="$as_dir $as_dirs" | |
36884 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36885 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36886 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36887 | X"$as_dir" : 'X\(//\)$' \| \ | |
36888 | X"$as_dir" : 'X\(/\)' \| \ | |
36889 | . : '\(.\)' 2>/dev/null || | |
36890 | echo X"$as_dir" | | |
36891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36893 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36894 | /^X\(\/\).*/{ s//\1/; q; } | |
36895 | s/.*/./; q'` | |
36896 | done | |
36897 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36898 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36899 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36900 | { (exit 1); exit 1; }; }; } | |
36901 | ||
36902 | ac_builddir=. | |
36903 | ||
36904 | if test "$ac_dir" != .; then | |
36905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36906 | # A "../" for each directory in $ac_dir_suffix. | |
36907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36908 | else | |
36909 | ac_dir_suffix= ac_top_builddir= | |
36910 | fi | |
36911 | ||
36912 | case $srcdir in | |
36913 | .) # No --srcdir option. We are building in place. | |
36914 | ac_srcdir=. | |
36915 | if test -z "$ac_top_builddir"; then | |
36916 | ac_top_srcdir=. | |
36917 | else | |
36918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36919 | fi ;; | |
36920 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36921 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36922 | ac_top_srcdir=$srcdir ;; | |
36923 | *) # Relative path. | |
36924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36926 | esac | |
36927 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36928 | # absolute. | |
36929 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36930 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36931 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36932 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36933 | ||
36934 | ||
36935 | cd $ac_dir | |
36936 | ||
36937 | # Check for guested configure; otherwise get Cygnus style configure. | |
36938 | if test -f $ac_srcdir/configure.gnu; then | |
36939 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
36940 | elif test -f $ac_srcdir/configure; then | |
36941 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
36942 | elif test -f $ac_srcdir/configure.in; then | |
36943 | ac_sub_configure=$ac_configure | |
36944 | else | |
36945 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
36946 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
36947 | ac_sub_configure= | |
36948 | fi | |
36949 | ||
36950 | # The recursion is here. | |
36951 | if test -n "$ac_sub_configure"; then | |
36952 | # Make the cache file name correct relative to the subdirectory. | |
36953 | case $cache_file in | |
36954 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
36955 | *) # Relative path. | |
36956 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
36957 | esac | |
36958 | ||
36959 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
36960 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
36961 | # The eval makes quoting arguments work. | |
36962 | eval $ac_sub_configure $ac_sub_configure_args \ | |
36963 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
36964 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
36965 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
36966 | { (exit 1); exit 1; }; } | |
36967 | fi | |
36968 | ||
36969 | cd $ac_popdir | |
36970 | done | |
36971 | fi | |
36972 | ||
8284b0c5 | 36973 | |
2b5f62a0 VZ |
36974 | echo |
36975 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36976 | echo "" | |
36977 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 36978 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
36979 | |
36980 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36981 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36982 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36983 | ||
0c98a14e | 36984 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
36985 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
36986 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 36987 | |
2b5f62a0 VZ |
36988 | echo " Which libraries should wxWindows use?" |
36989 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
36990 | echo " png ${wxUSE_LIBPNG-none}" | |
36991 | echo " regex ${wxUSE_REGEX}" | |
36992 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
36993 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 36994 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 36995 | echo " expat ${wxUSE_EXPAT}" |
2b5f62a0 VZ |
36996 | |
36997 | echo "" | |
36998 |